1 2003-09-14 Michael Chastain <mec@shout.net>
3 * config/m68k/nm-apollo68v.h: Delete.
4 * config/m68k/xm-apollo68v.h: Delete.
6 2003-09-14 Andrew Cagney <cagney@redhat.com>
8 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
9 * dcache.c: Update copyrights and descriptions.
10 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
12 2003-09-14 Andrew Cagney <cagney@redhat.com>
14 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
15 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
17 2003-09-14 Andrew Cagney <cagney@redhat.com>
19 * alpha-nat.c: Remove some occurances of "register".
20 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
21 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
22 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
23 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
24 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
25 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
26 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
27 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
28 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
29 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
30 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
31 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
32 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
33 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
34 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
35 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
36 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
37 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
38 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
39 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
40 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
41 * values.c, vax-tdep.c, xcoffread.c: Ditto.
43 2003-09-13 Andrew Cagney <cagney@redhat.com>
45 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
46 * ppc-tdep.h (struct regcache): Declare opaque.
47 * objfiles.h (struct objfile_data): Declare opaque.
48 * cp-support.h (struct objfile): Declare opaque.
49 * linux-nat.h (target_waitstatus): Declare opaque.
51 2003-09-14 Mark Kettenis <kettenis@gnu.org>
53 * cris-tdep.c (cris_gdbarch_init): Set
54 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
55 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
56 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
57 * mips-tdep.c (mips_gdbarch_init): Likewise.
58 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
59 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
61 2003-09-13 Andrew Cagney <cagney@redhat.com>
63 * values.c (using_struct_return): Delete "function" and "funcaddr"
65 * value.h (using_struct_return): Update declaration.
66 * infcmd.c (finish_command_continuation): Update.
67 (finish_command): Update.
68 * infcall.c (call_function_by_hand): Update.
69 * eval.c (evaluate_subexp_standard): Update.
71 2003-09-13 Christopher Faylor <cgf@redhat.com>
73 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
74 SSE registers since gdb will not operate correctly without this.
75 Restore include file ordering munged in previous change.
76 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
78 2003-09-13 Mark Kettenis <kettenis@gnu.org>
80 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
82 * gdbarch.c, gdbarch.h: Updated.
83 * infcall.c (call_function_by_hand): Update.
84 * stabsread.c (define_symbol): Updated.
86 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
88 2003-09-12 Christopher Faylor <cgf@redhat.com>
90 * win32-nat.c: Reorganize so that defines used by target headers are
91 actually defined by the system headers.
92 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
93 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
95 2003-09-12 Jim Blandy <jimb@redhat.com>
97 * dbxread.c (read_dbx_symtab): Don't report an internal error if
98 the file has no .data, .bss, or .rodata sections. Instead wait
99 until we see a variable alleged to live in one of those sections.
101 * dbxread.c (read_dbx_symtab): If we have no .data section and no
102 .bss section, presume that any variables we find live in the
105 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
106 offsets for global and static variables.
108 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
109 symbol types are, by definition, in the .data section, so it is
110 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
111 If there is no .data section, there should be no N_DATA or N_DATA
114 2003-09-12 Mark Kettenis <kettenis@gnu.org>
116 * amd64fbsd-tdep.c: Fix sigtramp recognition.
117 (amd64fbsd_sigcontext_addr): Rewrite.
118 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
120 (amd64fbsd_sc_reg_offset): Initialize with correct values.
121 (amd64fbsd_init_abi): Fix typo.
123 2003-09-12 Andrew Cagney <cagney@redhat.com>
125 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
126 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
128 2003-09-12 Andrew Cagney <cagney@redhat.com>
130 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
131 "entry_file_highpc". Update comments.
132 * defs.h (deprecated_inside_entry_file): Rename
134 * blockframe.c (deprecated_inside_entry_file): Rename
136 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
137 * vax-tdep.c (vax_frame_chain): Update.
138 * sh64-tdep.c (sh64_frame_chain): Update.
139 * sh-tdep.c (sh_frame_chain): Update.
140 * rs6000-tdep.c (rs6000_frame_chain): Update.
141 * ns32k-tdep.c (ns32k_frame_chain): Update.
142 * mips-tdep.c (mips_frame_chain): Update.
143 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
144 * m32r-tdep.c (m32r_frame_this_id): Update.
145 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
146 * frv-tdep.c (frv_frame_this_id): Update.
147 * d10v-tdep.c (d10v_frame_this_id): Update.
148 * cris-tdep.c (cris_frame_chain): Update.
149 * blockframe.c (legacy_frame_chain_valid): Update.
150 * avr-tdep.c (avr_frame_this_id): Update.
151 * arm-tdep.c (arm_prologue_this_id): Update.
152 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
153 * objfiles.c (objfile_relocate): Update.
154 * mipsread.c (mipscoff_symfile_read): Update.
155 (mipscoff_symfile_read): Update.
156 * mdebugread.c (parse_partial_symbols): Update.
157 * dwarfread.c (read_file_scope): Update.
158 * dwarf2read.c (read_file_scope): Update.
159 * dbxread.c (read_dbx_symtab): Update.
160 (read_dbx_symtab): Update.
161 * coffread.c (complete_symtab): Update.
163 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
165 * top.c (quit_target): New static helper function.
166 (quit_force): Moved code to quit_target(). Call quit_target()
167 via catch_errors() to catch errors during quit.
169 2003-09-11 David Carlton <carlton@kealia.com>
171 * buildsym.c (finish_block): Use allocate_block to allocate the
173 * mdebugread.c (new_block): Add FIXME.
175 2003-09-11 David Carlton <carlton@kealia.com>
177 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
178 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
179 (recursive_dump_type): Ditto.
180 * printcmd.c (print_formatted): Ditto.
181 * typeprint.c (print_type_scalar): Ditto.
182 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
183 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
184 * cp-support.h: Declare cp_check_possible_namespace_symbols,
185 maint_cplus_cmd_list.
186 * cp-support.c: Make maint_cplus_cmd_list extern.
187 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
189 (lookup_symbol_file): Look in possible namespace blocks when
191 (initialize_namespace_symtab): New.
192 (get_possible_namespace_block, free_namespace_block)
193 (check_possible_namespace_symbols)
194 (check_possible_namespace_symbols_loop)
195 (check_one_possible_namespace_symbol)
196 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
197 (_initialize_cp_namespace): Ditto.
198 * block.h: Declare allocate_block.
199 * block.c (allocate_block): New.
200 * jv-lang.c (get_java_class_symtab): Allocate blocks via
202 * symfile.h: Update declaration of add_psymbol_to_list.
203 * symfile.c (add_psymbol_to_list): Return the partial symbol in
205 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
206 scan_partial_symbols_call.
207 (scan_partial_symbols): Add NAMESPACE argument; update calls to
209 (add_partial_symbol): If necessary, scan mangled names for names
211 (add_partial_namespace): Add NAMESPACE argument; generate partial
212 symbols associated to namespaces.
213 (add_partial_enumeration): Add NAMESPACE argument.
214 (new_symbol): Allow namespace syms.
215 (read_namespace): Generate namespace syms.
216 * objfiles.h: Add opaque declaration of struct symtab.
217 (struct objfile): Add cp_namespace_symtab member.
218 * objfiles.c (allocate_objfile): Set
219 objfile->cp_namespace_symtab.
220 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
221 dictionary_h, command_h.
223 2003-09-11 Andrew Cagney <cagney@redhat.com>
225 * rs6000-tdep.c (rs6000_push_dummy_call): Use
226 regcache_raw_write_signed to set SP_REGNUM, move the operation to
227 near the function's end.
228 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
229 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
230 regcache_raw_write_signed to set SP_REGNUM.
232 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
234 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
235 orig_addrs is set up properly.
237 2003-09-11 Andrew Cagney <cagney@redhat.com>
239 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
240 * gdbarch.h, gdbarch.c: Re-generate.
241 * infcall.c (call_function_by_hand): Update.
242 * hppa-tdep.c (hppa_push_arguments): Update.
243 * ada-lang.c (place_on_stack): Update.
244 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
245 * sparc-tdep.c (sparc_gdbarch_init): Update.
246 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
247 * hppa-tdep.c (hppa_gdbarch_init): Update.
248 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
251 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
253 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
254 register do need a frame.
256 2003-09-11 Andrew Cagney <cagney@redhat.com>
258 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
259 buildable since GDB 5.0.
260 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
261 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
262 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
263 * irix4-nat.c: Delete file.
264 * config/mips/irix4.mh: Delete file.
265 * config/mips/irix3.mh: Delete file.
266 * config/mips/irix3.mt: Delete file.
267 * config/mips/tm-irix3.h: Delete file.
268 * config/mips/nm-irix3.h: Delete file.
269 * config/mips/xm-irix3.h: Delete file.
270 * config/mips/nm-irix4.h: Delete file.
271 * config/mips/xm-irix4.h: Delete file.
272 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
274 2003-09-10 J. Brobecker <brobecker@gnat.com>
276 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
277 * Makefile.in (hppa-tdep.o): Update dependencies.
279 2003-09-10 James E Wilson <wilson@specifixinc.com>
281 * MAINTAINERS: Change my e-mail address. Move to paper trail
284 2003-09-10 Kevin Buettner <kevinb@redhat.com>
286 * MAINTAINERS (frv): New ISA entry.
288 2003-09-10 Kevin Buettner <kevinb@redhat.com>
290 * frv-tdep.c (dis-asm.h): Include.
291 * Makefile.in (frv-tdep.o): Update dependencies.
293 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
295 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
296 Fix typo for high range of floating registers.
298 2003-09-09 David Carlton <carlton@kealia.com>
300 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
301 highpc initialization here out of scan_partial_symbols.
302 (scan_partial_symbols): Restructure into a recursive version,
303 calling add_partial_namespace and add_partial_enumeration when
305 (add_partial_namespace): New.
306 (add_partial_enumeration, locate_pdi_sibling): Ditto.
308 2003-09-09 Andrew Cagney <cagney@redhat.com>
310 * rs6000-tdep.c (ppc_push_return_address): Delete function.
311 (rs6000_push_dummy_call): Set LR to BP_ADDR.
312 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
313 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
315 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
316 (rs6000_push_dummy_call): Set the "TOC" register.
318 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
319 methods "max_register_raw_size", "max_register_virtual_size" or
320 "register_virtual_size".
322 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
324 * MAINTAINERS: Update my e-mail address.
326 2003-09-09 Andrew Cagney <cagney@redhat.com>
328 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
329 (rs6000_push_dummy_call): Store the struct return address.
330 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
332 2003-09-09 Andrew Cagney <cagney@redhat.com>
334 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
335 "ppc_sysv_abi_push_arguments".
336 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
337 "ppc_sysv_abi_push_arguments".
338 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
339 instead of "push_arguments".
340 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
342 2003-09-09 Andrew Cagney <cagney@redhat.com>
344 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
345 instead of CALL_DUMMY_ADDRESS.
347 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
349 * p-lang.c: Eliminate "register".
358 * objc-lang.c: Ditto.
360 2003-09-09 Nick Clifton <nickc@redhat.com>
362 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
364 2003-09-04 Andrew Cagney <cagney@redhat.com>
366 * avr-tdep.c: Include "dis-asm.h".
367 * cris-tdep.c: Include "dis-asm.h".
368 (cris_delayed_get_disassembler): Use "struct disassemble_info"
369 instead of corresponding typedef.
370 * h8300-tdep.c: Include "dis-asm.h".
371 * ia64-tdep.c: Include "dis-asm.h".
372 * i386-tdep.c: Include "dis-asm.h".
373 (i386_print_insn): Use "struct disassemble_info" instead of
374 corresponding typedef.
375 * m68k-tdep.c: Include "dis-asm.h".
376 * mcore-tdep.c: Include "dis-asm.h".
377 * mips-tdep.c: Include "dis-asm.h".
378 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
379 instead of corresponding typedef.
380 * ns32k-tdep.c: Include "dis-asm.h".
381 * s390-tdep.c: Include "dis-asm.h".
382 * sparc-tdep.c: Include "dis-asm.h".
383 * vax-tdep.c: Include "dis-asm.h".
384 * v850-tdep.c: Include "dis-asm.h".
385 * mn10300-tdep.c: Include "dis-asm.h".
386 * rs6000-tdep.c: Include "dis-asm.h".
387 * xstormy16-tdep.c: Include "dis-asm.h".
388 (_initialize_xstormy16_tdep): Delete "extern" declaration of
389 print_insn_xstormy16.
390 * Makefile.in (v850-tdep.o): Update dependencies.
391 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
392 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
393 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
394 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
395 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
396 (gdbarch_h): Remove $(dis_asm_h).
397 * disasm.c: Include "dis-asm.h".
398 (dis_asm_read_memory): Use "struct disassemble_info" instead of
399 corresponding typedef.
400 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
401 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
402 * gdbarch.sh: Do not include "dis-asm.h".
403 (struct disassemble_info): Declare opaque.
404 (TARGET_PRINT_INSN): Update declaration.
405 * gdbarch.h, gdbarch.c: Re-generate.
407 2003-09-08 Andrew Cagney <cagney@redhat.com>
409 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
410 CALL_DUMMY_ADDRESS, change to a predicate.
411 * gdbarch.h, gdbarch.c: Re-generate.
412 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
413 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
414 * infcall.c (call_function_by_hand): Ditto.
415 * sparc-tdep.c (sparc_push_return_address): Ditto.
416 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
417 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
418 CALL_DUMMY_ADDRESS with entry_point_address.
419 * v850-tdep.c (v850_push_return_address): Ditto.
420 * s390-tdep.c (s390_push_return_address): Ditto.
421 * rs6000-tdep.c (ppc_push_return_address): Ditto.
422 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
423 * mcore-tdep.c (mcore_push_return_address): Ditto.
424 * cris-tdep.c (cris_push_return_address): Ditto.
425 * arm-tdep.c (arm_push_return_address): Ditto.
427 2003-09-08 Andrew Cagney <cagney@redhat.com>
429 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
430 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
431 and REG_UNMODIFIED to REG_SAME_VALUE.
432 (execute_cfa_program): Update.
433 (dwarf2_frame_cache): Update. Initialize table to
434 REG_UNSPECIFIED, complain if CFI fails to specify a register's
436 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
438 2003-09-08 Andrew Cagney <cagney@redhat.com>
440 * gnu-nat.c: Remove "inline" function attribute.
441 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
443 2003-09-08 Kevin Buettner <kevinb@redhat.com>
445 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
448 2003-09-08 Kevin Buettner <kevinb@redhat.com>
450 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
451 (frame_extra_info): Rename this struct to frv_unwind_cache.
452 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
453 Add fields ``prev_sp'' and ``base''.
454 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
455 (frv_saved_pc_after_call, frv_init_extra_frame_info)
456 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
458 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
459 Revise all callers. Fill in the unwind cache argument and make
460 other adjustments to account for new frame mechanisms.
461 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
462 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
463 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
464 (frv_frame_unwind, frv_frame_base): New structs.
465 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
466 additional arguments expected by this method and adjust function
468 (frv_gdbarch_init): Remove calls to the following functions:
469 set_gdbarch_deprecated_init_frame_pc(),
470 set_gdbarch_deprecated_saved_pc_after_call(),
471 set_gdbarch_deprecated_frame_chain(),
472 set_gdbarch_deprecated_frame_saved_pc(),
473 set_gdbarch_deprecated_frame_init_saved_regs(),
474 set_gdbarch_deprecated_push_arguments(),
475 set_gdbarch_deprecated_push_return_address(),
476 set_gdbarch_deprecated_pop_frame(),
477 set_gdbarch_deprecated_call_dummy_words(),
478 set_gdbarch_deprecated_sizeof_call_dummy_words(),
479 set_gdbarch_deprecated_init_extra_frame_info(),
480 set_gdbarch_deprecated_dummy_write_sp(), and
481 set_gdbarch_deprecated_pc_in_call_dummy().
482 Add calls to the following functions:
483 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
484 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
485 frame_base_set_default().
486 * Makefile.in (frv-tdep.o): Update dependencies.
488 2003-09-09 Mark Kettenis <kettenis@gnu.org>
490 * dwarf2-frame.c (read_encoded_value): Add support for
491 DW_EH_PE_aligned encoding.
493 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
495 * infrun.c (normal_stop): Don't print a message if the inferior
498 2003-09-08 Jim Blandy <jimb@redhat.com>
500 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
501 * dbxread.c: #include "gdb_assert.h".
502 (read_dbx_symtab): If the objfile has no .data section, use the
503 section index for the .bss section instead.
505 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
507 * frame.c (deprecated_safe_get_selected_frame): New function.
508 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
509 * findvar.c (read_var_value): Call it.
511 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
513 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
514 (sh64-tdep.o): Add dependencies.
515 * configure.tgt: Add FIXME to sh-*-linux*.
516 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
517 (sh_gdbarch_init): Always set correct sh_show_regs function
518 pointer. Call sh64_gdbarch_init() if machine type is sh5.
519 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
520 * sh64-tdep.c: New file, containing all sh64 related code from
522 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
523 * config/sh/linux.mt (TDEPFILES): Ditto.
524 * config/sh/nbsd.mt (TDEPFILES): Ditto.
525 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
526 * config/sh/wince.mt (TDEPFILES): Ditto.
528 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
530 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
531 (stop_wait_callback): Handle !lp->signalled also.
532 (lin_lwp_has_pending, flush_callback): New functions.
533 (lin_lwp_wait): Call flush_callback.
534 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
535 (linux_proc_pending_signals): New function.
536 * linux-nat.h (linux_proc_pending_signals): Add prototype.
538 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
540 From Nick Kelsey <nickk@ubicom.com>:
541 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
542 when the stop PC is at the beginning of a function also.
544 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
546 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
547 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
549 2003-09-06 Mark Kettenis <kettenis@gnu.org>
551 * sol-thread.c: Include "gdb_string.h".
553 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
555 * gcore.c: Reorder include files in alphabetical order. Include
556 "gdb_assert.h". Various coding style fixes.
557 (derive_stack_segment, derive_heap_segment): Replace check for
558 non-null BOTTOM and TOP with gdb_assert.
559 (derive_heap_segment): Replace check for successful creation of
560 ZERO with gdb_assert.
561 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
563 2003-09-04 Andrew Cagney <cagney@redhat.com>
565 * thread-db.c (verbose_dlsym): New function.
566 (thread_db_load): Use verbose_dlsym
567 (thread_db_new_objfile): Print that libthread_db was loaded, and
568 that thread debugging was enabled.
570 2003-09-04 Andrew Cagney <cagney@redhat.com>
572 * configure.tgt: Add "mips64*-*-*" target. Delete
573 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
574 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
575 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
576 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
577 mips*-sony-*, and mips64*-*-elf* targets.
578 * config/mips/embedl.mt: Delete file.
579 * config/mips/embedl64.mt: Delete file.
580 * config/mips/mips.mt: Delete file.
581 * config/mips/mips64.mt: Delete file.
582 * config/mips/tm-embed.h: Delete file.
583 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
584 * config/mips/embed64.mt: Delete out-of-date comment.
586 2003-09-04 Andrew Cagney <cagney@redhat.com>
588 * hppa-tdep.c (hppa_gdbarch_init): Set
589 "have_nonsteppable_watchpoint".
590 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
591 * mips-tdep.c (mips_dump_tdep): Do not print
592 HAVE_NONSTEPPABLE_WATCHPOINT.
593 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
594 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
595 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
596 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
598 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
600 * breakpoint.c (watchpoint_check): Remove accidentally checked in
601 unused code. Add comment.
603 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
605 * breakpoint.c (watchpoint_check): Check for pc being in an
606 epilogue if watchpoint frame couldn't be found.
608 2003-09-04 Andrew Cagney <cagney@redhat.com>
610 * Makefile.in: Re-generate all dependencies.
612 2003-09-03 Andrew Cagney <cagney@redhat.com>
614 * arch-utils.h (legacy_print_insn): Delete declaration.
615 * arch-utils.c (legacy_print_insn): Delete function.
616 * disasm.c (deprecated_tm_print_insn_info): Delete.
617 (_initialize_disasm): Delete function, contained code initializing
618 deprecated_tm_print_insn_info.
619 * gdbarch.sh (deprecated_tm_print_insn): Delete.
620 (deprecated_tm_print_insn_info): Delete.
621 (TARGET_PRINT_INSN): Do not provide a default.
622 * gdbarch.h, gdbarch.c: Re-generate.
624 2003-09-03 Andrew Cagney <cagney@redhat.com>
626 * disasm.c (fprintf_disasm): New function.
627 (gdb_disassemble_info): Call "init_disassemble_info", instead of
628 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
629 reverts 2003-08-14 change.
630 (_initialize_disasm): Call "init_disassemble_info", instead of
631 INIT_DISASSEMBLE_INFO_NO_ARCH.
633 2003-09-03 Michael Snyder <msnyder@redhat.com>
635 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
637 2003-09-03 Andrew Cagney <cagney@redhat.com>
639 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
640 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
641 * symfile.c (syms_from_objfile): Update.
642 (reread_symbols): `Update
643 * exec.c (exec_file_attach): Update.
644 (exec_file_attach): Update.
645 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
647 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
649 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
651 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
653 (arm_get_cache): Delete macro.
654 (struct arm_prologue_cache): Update comments. Make saved_regs into
655 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
657 (thumb_scan_prologue): Update for cache changes. Don't call
658 DEPRECATED_PC_IN_CALL_DUMMY.
659 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
660 argument and use it in desperation search for our prologue. Do not
661 search past the specified PC.
662 (arm_make_prologue_cache): Simplify.
664 (arm_prologue_this_id, arm_prologue_prev_register)
665 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
666 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
667 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
668 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
669 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
671 (arm_frame_chain_valid, arm_find_callers_reg)
672 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
673 (arm_pop_frame): Delete obsolete methods.
674 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
676 (arm_gdbarch_init): Update for new frame methods. Register prologue
677 and sigtramp unwinders. Set the default frame base method.
679 * Makefile.in (arm-tdep.o): Update dependencies.
680 * varobj.c (find_frame_addr_in_frame_chain): Call
681 get_frame_base_address.
682 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
684 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
686 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
687 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
688 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
689 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
690 Take NEXT_FRAME and CACHE arguments. Call
691 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
692 Set unwound_pc in CACHE instead of modifying the frame argument.
693 Don't bother checking the frame type when looking for sigtramp
695 (arm_make_prologue_cache, arm_frame_chain)
696 (arm_init_extra_frame_info): New functions.
698 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
700 * arm-tdep.c (arm_get_cache): Define.
701 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
702 unwound_sp, unwound_pc, and saved_regs.
703 (thumb_scan_prologue): Take a cache instead of the frame.
704 (arm_scan_prologue): Likewise.
705 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
706 instead of a temporary frame.
707 (arm_init_extra_frame_info): Allocate and use a cache.
708 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
710 2003-09-03 Andrew Cagney <cagney@redhat.com>
712 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
713 * config/mips/wince.mt (TM_CLIBS): Ditto.
714 * config/sh/wince.mt (TM_CLIBS): Ditto.
715 * config/pa/hppa64.mt (TM_CLIBS): Delete.
716 * config/sparc/sp64.mt (CC): Delete.
718 2003-09-03 Andrew Cagney <cagney@redhat.com>
720 * defs.h: Do not include "arch-utils.h".
721 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
723 * configure.in (GDB_MULTI_ARCH): Do not define.
724 * configure, config.in: Regenerate.
725 * configure.tgt: Do not set variable "gdb_multi_arch".
726 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
727 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
728 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
729 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
730 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
731 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
732 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
733 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
734 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
735 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
736 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
737 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
738 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
739 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
740 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
741 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
742 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
743 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
745 2003-08-30 Michael Chastain <mec@shout.net>
747 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
748 * config/m68k/nm-hp300hpux.h: Delete.
749 * config/m68k/tm-hp300hpux.h: Delete.
750 * config/m68k/xm-hp300hpux.h: Delete.
751 * config/m68k/xm-hp300bsd.h: Delete.
752 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
753 tm-hp300hpux.h, xm-hp300hpux.h.
754 * somsolib.c: Remove comment about hp300 shared libraries.
756 2003-08-31 Mark Kettenis <kettenis@gnu.org>
758 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
759 Only define PTRACE_GET_THREAD_AREA is not already defined.
760 Various style fixes in code and comments and some additional
761 spelling fixes in comments. Move after functions dealing with
763 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
766 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
767 frame_unwind_register_unsigned instead of
768 frame_unwind_unsigned_register.
770 2003-08-30 Mark Kettenis <kettenis@gnu.org>
772 * configure.in: Search for gethostbyname in libnsl.
773 * configure: Regenerated.
775 2003-08-29 Mark Kettenis <kettenis@gnu.org>
777 * configure.in: Remove redundant AC_MSG_RESULT in check for
778 uintptr_t in stdint.h.
779 * configure: Regenerated.
781 * amd64-nat.h (struct regcache): Add opaque declaration.
783 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
784 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
785 Change "register array" to "register cache" in comments.
786 (x86_64_linux_gregset64_reg_offset): New variable.
787 (GETREGS_SUPPLIES): Remove macro.
788 (supply_gregset): Call amd64_supply_native_gregset instead of
789 x86_64_linux_supply_gregset.
790 (fill_gregset): Rename `regno' to `regnum'. Call
791 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
792 (store_regs): Rename `regno' to `regnum'.
793 (store_fpregs): Rename `regno' to `regnum'.
794 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
795 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
796 Reorganize function a bit.
797 (store_inferior_registers): Rename `regno' to `regnum'. Use
798 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
799 Reorganize function a bit.
800 (_initialize_x86_64_linux_nat): New function.
801 * config/i386/x86-64linux.mh.
803 2003-08-29 Andrew Cagney <cagney@redhat.com>
805 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
806 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
807 (target_remove_watchpoint): Delete macro.
808 (target_insert_watchpoint): Delete macro.
809 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
810 (remote_mips_stopped_by_watchpoint): Delete declaration.
811 (remote_mips_remove_watchpoint): Delete declaration.
812 (remote_mips_set_watchpoint): Delete declaration.
813 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
814 * remote-mips.c (_initialize_remote_mips): Set
815 "to_insert_watchpoint", "to_stopped_by_watchpoint",
816 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
817 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
818 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
819 (mips_stopped_by_watchpoint): Rename
820 remote_mips_stopped_by_watchpoint.
821 (mips_can_hardware_watchpoint): Rename
822 remote_mips_can_use_hardware_watchpoint, update function
825 2003-08-29 Mark Kettenis <kettenis@gnu.org>
827 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
828 USER_DS. We haven't given them a register number yet.
830 * amd64-nat.h: New file.
831 * amd64-nat.c: New file.
832 * amd64fbsd-nat.c: Include "amd64-nat.h".
833 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
834 (amd64fbsd32_r_reg_offset): New variable.
835 (supply_gregset): Simply call amd64_supply_native_gregset.
836 (fill_gregset): Rename `regno' to `regnum'. Simply call
837 amd64_collect_native_gregset.
838 (fill_fpregset): Rename `regno' to `regnum'.
839 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
840 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
841 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
842 `fpregset_t'. Call amd64_supply_native_gregset instead of
843 supply_gregset. Call x86_64_supply_fxsave instead of
845 (store_inferior_registers): Rename `regno' to `regnum'. Replace
846 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
847 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
848 `fpregset_t'. Call amd64_collect_native_gregset instead of
849 fill_gregset. Call x86_64_collect_fxsave instead of
851 (_initialize_am64fbsd_nat): Initialize
852 amd64_native_gregset32_reg_offset and
853 amd64_native_gregset64_reg_offset.
854 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
856 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
857 null pointer. Fix typo in comment.
859 * regcache.c (supply_register): Reimplement to call
861 (regcache_collect): Reimplement by calling regcache_raw_collect.
863 2003-08-28 Mark Kettenis <kettenis@gnu.org>
865 * regcache.c (register_buffer): Consitify first argument.
866 (regcache_raw_supply, regcache_raw_collect): New
869 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
871 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
872 by Nathan J. Williams.
874 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
876 * lin-lwp.c (wait_lwp): New function, copied from
877 stop_wait_callback. Clean up.
878 (stop_wait_callback): Use wait_lwp.
880 2003-08-28 Andrew Cagney <cagney@redhat.com>
882 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
883 flavour and disassembler options.
884 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
885 (mips_gdbarch_init): Set "print_insn". Delete initialization of
886 deprecated_tm_print_insn_info.
888 2003-08-27 Andrew Cagney <cagney@redhat.com>
890 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
891 Use target_read_memory.
892 (s390_get_frame_info): Update. Do not reference
893 deprecated_tm_print_insn_info.
894 (s390_check_function_end, s390_is_sigreturn): Ditto.
896 2003-08-27 Andrew Cagney <cagney@redhat.com>
898 * Makefile.in (cris-tdep.o): Update dependencies.
899 * cris-tdep.c: Include "gdb_assert.h".
900 (cris_gdbarch_init): Set print_insn.
901 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
902 (cris_delayed_get_disassembler): Simplify, directly call the
903 disassembler returned by cris_get_disassembler.
904 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
905 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
906 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
907 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
908 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
909 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
910 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
911 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
912 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
913 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
914 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
915 (gdb_print_insn_sparc): Delete function.
916 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
917 deprecated_tm_print_insn_info.
918 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
919 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
920 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
921 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
922 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
923 * s390-tdep.c (gdb_print_insn_s390): Delete function.
924 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
925 (s390_gdbarch_init): Set print_insn.
927 2003-08-27 Andrew Cagney <cagney@redhat.com>
929 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
930 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
931 * infcall.c (call_function_by_hand): Convert the entry point
932 address into a code address.
934 2003-08-27 Andrew Cagney <cagney@redhat.com>
936 * dsrec.c: Include "gdb_string.h".
937 * Makefile.in (dsrec.o): Update dependencies.
939 2003-08-27 Michael Chastain <mec@shout.net>
941 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
943 2003-08-27 Andrew Cagney <cagney@redhat.com>
945 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
946 (alpha_osf1_init_abi): Do not set call_dummy_address.
948 2003-08-27 David Carlton <carlton@kealia.com>
950 From Randolph Chung <tausq@debian.org>:
951 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
952 compiles with -Wformat-nonliteral -Werror.
954 2003-08-26 Jim Blandy <jimb@redhat.com>
956 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
957 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
958 bfd_lookup_symbol, since we only want symbols in code sections.
959 (look_for_base): Pass zero as the SECT_FLAGS argument to
960 bfd_lookup_symbol, since we're not concerned about which section
963 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
965 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
966 we are frameless or the return address register is already known.
968 2003-08-26 Andrew Cagney <cagney@redhat.com>
970 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
971 in size. Add comments.
973 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
975 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
976 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
978 2003-08-26 Jason Merrill <jason@redhat.com>
980 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
981 case out of #ifdef MIPS block.
983 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
986 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
987 available before calling SECT_OFF_TEXT.
988 * PROBLEMS: Remove description of java/1322.
990 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
992 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
993 bof, and nat0-nat127 as pseudo-registers.
994 (ia64_frame_cache): New struct used to cache frame info.
995 (ia64_register_reggroup_p): New routine used to override default
996 register grouping so registers without names are still saved and
998 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1000 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1001 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1002 (ia64_alloc_frame_cache): New routine to create a new
1004 (examine_prologue): Change prototype to add next_frame pointer.
1005 Assume frameless until otherwise proven. Verify that the cfm for
1006 current frame matches the cfm that should occur for the prologues
1007 alloc insn and if equal, mark as not frameless. At end of routine,
1008 if not frameless, calculate registers for the previous frame and store
1009 in the cache, if a cache is provided.
1010 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1011 and pass 0 for next_frame.
1012 (ia64_store_return_value): Change to use convert_typed_floating()
1013 instead of calling ia64_convert_to_raw().
1014 (ia64_extract_return_value): Change to use convert_typed_floating()
1015 instead of calling ia64_convert_to_virtual().
1016 (ia64_frame_cache): New routine to support new frame model.
1017 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1018 (ia64_frame_sniffer): Ditto.
1019 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1020 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1021 (ia64_sigtramp_frame_prev_register): Ditto.
1022 (ia64_sigtramp_frame_sniffer): Ditto.
1023 (ia64_frame_base_address): Ditto.
1024 (ia64_extract_struct_value_address): Change to issue error message.
1025 (ia64_frame_align): New routine to align sp.
1026 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1027 (ia64_push_arguments): Removed. Logic moved to
1028 ia64_push_dummy_call().
1029 (ia64_push_return_address): Ditto.
1030 (ia64_unwind_dummy_id): New function.
1031 (ia64_unwind_pc): Ditto.
1032 (ia64_convert_register_p): Ditto.
1033 (ia64_register_to_value): Ditto.
1034 (ia64_value_to_register): Ditto.
1035 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1036 (ia64_register_byte, ia64_register_raw_size): Ditto.
1037 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1038 (ia64_saved_pc_after_call): Ditto.
1039 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1040 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1041 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1042 (ia64_register_convert_to_raw): Ditto.
1043 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1044 (ia64_init_extra_frame_info): Ditto.
1045 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1046 (ia64_gdbarch_init): Remove registering of deprecated functions that
1047 are no longer used. Add registration of new gdbarch functions.
1048 Remove registering deprecated_write_sp. Replace
1049 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1050 Delete set_gdbarch_deprecated_register_convertible(),
1051 set_gdbarch_deprecated_register_convert_to_virtual(), and
1052 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1053 set_gdbarch_deprecated_register_size(),
1054 set_gdbarch_deprecated_register_bytes(),
1055 set_gdbarch_pcregnum(),
1056 set_gdbarch_deprecated_register_byte(),
1057 set_gdbarch_deprecated_register_raw_size(),
1058 set_gdbarch_deprecated_max_register_raw_size(),
1059 set_gdbarch_deprecated_register_virtual_size(),
1060 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1061 Replace set_gdbarch_deprecated_extract_return_value() with
1062 set_gdbarch_extract_return_value(). Remove calls to:
1063 set_gdbarch_deprecated_saved_pc_after_call();
1064 set_gdbarch_deprecated_frame_chain(),
1065 set_gdbarch_deprecated_frame_saved_pc(),
1066 set_gdbarch_deprecated_frame_init_saved_regs(),
1067 set_gdbarch_deprecated_get_saved_register(),
1068 set_gdbarch_deprecated_call_dummy_words(),
1069 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1070 set_gdbarch_deprecated_init_extra_frame_info(),
1071 set_gdbarch_deprecated_frame_args_address(),
1072 set_gdbarch_deprecated_frame_locals_address(),
1073 and set_gdbarch_deprecated_dummy_write_sp().
1074 Add set_gdbarch_convert_register_p(),
1075 set_gdbarch_register_to_value(),
1076 set_gdbarch_value_to_register(),
1077 set_gdbarch_push_dummy_call(),
1078 set_gdbarch_frame_align(),
1079 set_gdbarch_unwind_dummy_id(),
1080 set_gdbarch_unwind_pc(),
1081 frame_unwind_append_sniffer(),
1082 frame_unwind_append_sniffer(),
1083 and frame_base_set_default().
1085 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1087 * configure.tgt: Document need for special "mipsisa64" handling.
1088 (mipsisa64*-*-linux64): Handle as target linux64.
1089 (mipsisa64*-*-*): Handle as target embed64.
1091 2003-08-18 Michael Chastain <mec@shout.net>
1093 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1096 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1098 * i387-tdep.h: Update copyright date.
1099 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1101 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1102 CFLAGS games to reflect reality.
1104 2003-08-24 Andrew Cagney <cagney@redhat.com>
1106 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1107 GDB_MULTI_ARCH is always non-zero.
1108 * osabi.c (_initialize_gdb_osabi): Ditto.
1109 (gdbarch_init_osabi): Ditto.
1110 * sparc-tdep.c: Ditto for #if code.
1112 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1114 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1116 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1118 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1119 x86_64_supply_fxsave.
1120 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1121 x86_64_supply_fxsave.
1122 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1123 x86_64_supply_fxsave.
1125 2003-08-23 Andreas Jaeger <aj@suse.de>
1127 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1130 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1132 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1133 i387_supply_register.
1134 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1135 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1137 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1139 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1141 * i386bsd-nat.c (supply_fpregset): Adjust call to
1143 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1144 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1146 (store_inferior_registers): Remove extraneous whitespace. Call
1147 i387_fill_fsave instead of fill_fpregset.
1148 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1149 (supply_fpregset): Likewise.
1150 * i386v4-nat.c (supply_fpregset): Adjust call to
1152 * i386-interix-nat.c (supply_fpregset): Adjust call to
1154 * i386-linux-nat.c (supply_fpregset): Adjust call to
1156 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1157 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1158 i387supply_fsave and i387_supply_fxsave.
1159 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1160 Incorporate code from `i387_supply_register.
1161 (i387_supply_register): Remove.
1162 (i387_supply_fxsave): Add `regnum' argument.
1164 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1166 (i387_supply_register): remove prototype.
1169 2003-08-22 Michael Chastain <mec@shout.net>
1171 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1172 Add lines for files in gdb/testsuite/gdb.cp/* that are
1173 still not 8.3 unique.
1175 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1177 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1178 TYPE_VPTR_FIELDNO is valid.
1180 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1182 * utils.c (set_width_command): Remove prototypes.
1183 (set_screen_size): New prototype.
1184 (init_page_info): Simplify by fetching the screen size from
1185 Readline. Call set_screen_size.
1186 (set_screen_size): New function.
1187 (set_width): Add missing whitespace in comment.
1188 (set_width_command): Call set_screen_size.
1189 (set_height_command): New function.
1190 (initialize_utils): Fix formatting. Make "set height" command
1191 call set_height_command. Remove redundant code that turns off
1192 pagination if output isn't a terminal. Remove redundant call to
1195 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1197 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1198 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1199 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1200 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1202 (sparc64_register_info): Give the reister with number
1203 SPARC64_STATE_REGNUM a name.
1204 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1206 (sparc64_push_dummy_call): Take BIAS into account when checking
1208 (sparc_software_single_step): Remove assertions that check whether
1209 NPC and NNPC were zero.
1210 (sparc_supply_rwindow): Make public. Merge functionality with
1211 sparc64_supply_rwindow.
1212 (sparc_fill_rwindow): Make public. Merge functionality with
1213 sparc64_fill_rwindow.
1214 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1215 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1216 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1217 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1218 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1220 * reggroups.c: Add whitespace after declarations of local
1221 variables in functions.
1223 2003-08-21 Michael Chastain <mec@shout.net>
1225 * gdbtypes.h: Change array bound type from an int to enum.
1227 2003-08-21 Andrew Cagney <cagney@redhat.com>
1229 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1230 * config/sparc/tm-sparc.h: Ditto.
1231 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1233 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1235 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1237 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1238 (register_objfile_data, set_objfile_data, objfile_data): New
1240 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1242 (allocate_objfile): Call objfile_alloc_data.
1243 (free_objfile): Call objfile_free_data.
1244 (struct objfile_data): New.
1245 (struct objfile_data_registration): New.
1246 (struct objfile_data_registry): New.
1247 (objfile_data_registry): New variable.
1248 (register_objfile_data): New function.
1249 (objfile_alloc_data, objfile_free_data): New functions.
1250 (set_objfile_data, objfile_data): New functions.
1251 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1252 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1253 (_initialize_dwarf2_frame): New function and prototype.
1255 2003-08-21 Andrew Cagney <cagney@redhat.com>
1257 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1258 a specific architecture.
1259 * arch-utils.h (set_architecture_from_arch_mach): Delete
1261 (target_architecture_hook): Delete declaration.
1262 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1263 (default_float_format): Assume GDB_MULTI_ARCH.
1264 (default_double_format): Assume GDB_MULTI_ARCH.
1265 (set_endian_from_file): Delete function.
1266 (arch_ok): Delete function.
1267 (set_arch): Delete function.
1268 (set_architecture_from_arch_mach): Delete function.
1269 (set_architecture_from_file): Delete function.
1270 (set_architecture): Assume GDB_MULTI_ARCH.
1271 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1273 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1275 Rewrite FreeBSD/sparc64 native configuration.
1276 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1277 * sparc64fbsd-nat.c: New file.
1278 * sparc64fbsd-tdep.c: New file.
1279 * sparc64-tdep.c sparc64-tdep.h: New files.
1280 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1281 sparc64fbsd-tdep.o): New dependencies.
1282 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1283 and sparc64fbsd-tdep.c.
1284 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1285 * config/sparc/fbsd.mh: Remove copyright notice.
1286 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1288 * config/sparc/fbsd.mt: Remove copyright notice.
1289 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1290 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1291 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1292 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1293 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1294 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1295 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1296 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1298 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1299 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1301 2003-08-21 Michael Chastain <mec@shout.net>
1303 * symtab.h: Add doco on the space critical structures and
1304 some measurements of space usage.
1306 2003-08-21 Michael Snyder <msnyder@redhat.com>
1308 * tracepoint.c (trace_dump_command): Trace break address
1309 is subject to DECR_PC_AFTER_BREAK.
1310 (set_traceframe_context): Make "trace_line" an int.
1311 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1313 2003-08-20 Michael Snyder <msnyder@redhat.com>
1315 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1316 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1317 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1319 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1320 functions, replace sh_push_dummy_call.
1321 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1323 2003-08-20 Michael Chastain <mec@shout.net>
1325 * gdbtypes.h (struct main_type): Rearrange to save space.
1327 2003-08-20 Michael Snyder <msnyder@redhat.com>
1329 * trad-frame.c: Comment typo fix.
1331 2003-08-20 Michael Snyder <msnyder@redhat.com>
1332 Kevin Buettner <kevinb@redhat.com>
1334 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1335 (frv_frame_init_saved_regs): Add declaration.
1336 (frame_extra_info): Add new field ``saved_regs''.
1337 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1338 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1339 Update frame related code.
1340 (frv_extract_struct_value_address): Adjust formatting.
1341 * Makefile.in (frv-tdep.o): Update dependencies.
1342 * config/frv/tm-frv.h (target_insert_watchpoint)
1343 (target_remove_watchpoint, target_insert_hw_breakpoint)
1344 (target_remove_hw_breakpoint): Delete these macros.
1345 (remote_insert_watchpoint, remote_remove_watchpoint)
1346 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1349 2003-08-20 Michael Chastain <mec@shout.net>
1351 * defs.h (ENUM_BITFIELD): New macro.
1352 * symtab.h (ENUM_BITFIELD): Use it.
1353 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1355 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1357 * MAINTAINERS (write after approval): Add myself.
1359 2003-08-18 Andrew Cagney <cagney@redhat.com>
1361 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1362 * gdbarch.h, gdbarch.c: Re-generate.
1363 * infcall.c (call_function_by_hand): Adjust the SP by
1364 frame_red_zone_size before allocating any stack space.
1365 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1366 * x86-64-tdep.c (x86_64_frame_align): New function.
1367 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1369 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1370 Remove code adjusting SP so that it skips over the Red Zone.
1372 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1374 * NEWS (New native configurations): Mention FreeBSD/amd64.
1376 2003-08-18 Andrew Cagney <cagney@redhat.com>
1378 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1379 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1381 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1383 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1385 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1387 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1389 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1391 * i386-linux-nat.c: Include "linux-nat.h".
1392 (child_post_startup_inferior): New function.
1394 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1396 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1397 at the start of a frameless function. This probably fixes PR
1400 2003-08-17 Michael Chastain <mec@shout.net>
1402 * symfile.c (find_sym_fns): Remove special case for apollo target.
1404 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1406 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1407 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1408 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1409 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1410 (linux_supports_tracevforkdone): New function.
1411 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1413 (child_follow_fork): Handle vfork.
1414 (linux_handle_extended_wait): Likewise. Also handle exec.
1415 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1416 * NEWS: Mention fork tracing.
1418 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1420 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1422 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1424 * Makefile.in (i386-linux-nat.o): Update dependencies.
1425 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1426 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1427 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1428 * i386-linux-nat.c: Include "linux-nat.h".
1429 (child_post_startup_inferior): New function.
1430 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1431 * infptrace.c (kill_inferior): Wrap in #ifdef.
1432 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1433 attaching to each LWP.
1434 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1435 (init_lin_lwp_ops): Fill in some more operations.
1436 * linux-nat.h (linux_enable_event_reporting)
1437 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1439 * linux-nat.c (linux_enable_event_reporting): New function.
1440 (child_post_attach, linux_child_post_startup_inferior)
1441 (child_post_startup_inferior, child_follow_fork)
1442 (linux_handle_extended_wait, kill_inferior): New functions.
1444 2003-08-16 Andrew Cagney <cagney@redhat.com>
1446 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1447 * gdbarch.h, gdbarch.c: Re-generate.
1449 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1451 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1453 2003-08-16 Andrew Cagney <cagney@redhat.com>
1455 * NEWS: Mention that "set prompt-escape-char" was deleted.
1456 * top.c (get_prompt_1): Delete function.
1457 (gdb_prompt_escape):
1458 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1459 prompt-escape-char" command.
1460 (MAX_PROMPT_SIZE): Delete macro.
1461 (get_prompt): Simplify, do not call get_prompt_1.
1463 2003-08-16 Andrew Cagney <cagney@redhat.com>
1465 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1466 -Werror. -Wformat-nonliteral problems.
1468 2003-08-15 J. Brobecker <brobecker@gnat.com>
1470 Further multiarching work mostly for hppa64-*-hpux11:
1471 * hppa-tdep.h: New file.
1472 * hppa-tdep.c: #include hppa-tdep.c.
1473 (hppa32_num_regs): Renamed from hppa_num_regs.
1474 (hppa64_num_regs): New constant.
1475 (hppa64_call_dummy_breakpoint_offset): New constant.
1476 (hppa32_call_dummy_length): New constant.
1477 (hppa64_call_dummy_length): New constant.
1478 (hppa32_stack_align): Make name 32bit explicit.
1479 (hppa32_register_virtual_type): Likewise.
1480 (hppa32_extract_return_value): Likewise.
1481 (hppa32_use_struct_convention): Likewise.
1482 (hppa32_store_return_value): Likewise.
1483 (hppa64_register_virtual_type): New function.
1484 (hppa64_extract_return_value): New function.
1485 (hppa64_use_struct_convention): New function.
1486 (hppa64_store_return_value): New function.
1487 (hppa_frame_locals_address): Remove declaration, function does
1489 (hppa_register_byte): Add support for PA64 ABI.
1490 (hppa_gdbarch_init): Add support for PA64 ABI.
1491 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1492 Make name 32bit explicit.
1493 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1494 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1495 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1496 (hppa64_hpux_frame_base_before_sigtramp): New function.
1497 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1498 * config/pa/tm-hppa64.h: Remove macros that are no longer
1499 necessary now that the gdbarch vector is properly setup.
1500 Transform some macros into function calls. Some minor cleanup.
1501 * config/pa/tm-hppah.h: Update function calls in macros
1502 following the function renaming in hppa-hpux-tdep.c.
1503 * Makefile.in (hppa_tdep_h): New variable.
1504 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1506 2003-08-14 Michael Snyder <msnyder@redhat.com>
1508 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1510 2003-08-13 J. Brobecker <brobecker@gnat.com>
1512 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1513 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1516 2003-08-13 Michael Snyder <msnyder@redhat.com>
1518 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1519 (frv_saved_pc_after_call): Use deprecated ftype.
1520 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1521 (frv_remote_translate_xfer_address): Remove.
1522 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1524 2003-08-13 J. Brobecker <brobecker@gnat.com>
1526 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1527 initialization after the common gdbarch initialization, not before.
1529 2003-08-13 J. Brobecker <brobecker@gnat.com>
1531 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1532 (ADDR_BITS_REMOVE): Remove, redundant.
1534 2003-08-13 J. Brobecker <brobecker@gnat.com>
1536 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1537 gdbarch method to clear the 2 low bits of text addresses.
1539 2003-08-12 Andrew Cagney <cagney@redhat.com>
1541 * Makefile.in (dsrec.o): Update dependencies.
1542 * dsrec.c: Include "gdb_assert.h".
1543 (make_srec): Use snprintf instead of sprintf, use a literal format
1546 2003-08-12 Andrew Cagney <cagney@redhat.com>
1548 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1549 FRAME_OBSTACK_ZALLOC.
1551 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1553 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1556 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1558 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1559 amd64fbsd_sc_reg_offset): Add extern declarations.
1560 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1563 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1565 * MAINTAINERS (write after approval): Update my mail address.
1567 2003-08-10 Andrew Cagney <cagney@redhat.com>
1569 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1571 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1573 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1574 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1575 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1576 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1577 i386bsd_sc_reg_offset): Add extern declarations.
1578 * i386obsd-nat.c: Include "i386-tdep.h"
1579 (_initialize_i386obsd_nat): Remove extern declarations.
1580 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1582 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1585 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1586 instead of frame_read_register.
1587 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1588 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1590 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1591 instead of frame_unwind_unsigned_register. Use
1592 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1593 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1594 instead of read_register. Use builtin_type_void_data_ptr instead
1595 of builtin_type_void_func_ptr when extracting the address of the
1597 (i386_extract_return_value, i386_store_return_value,
1598 i386_pseudo_register_read, i386_pseudo_register_write): Use
1599 register_size instead REGISTER_RAW_SIZE.
1601 2003-08-10 Andrew Cagney <cagney@redhat.com>
1603 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1604 sprintf. Make "name" constant.
1606 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1608 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1609 instead of frame_read_register.
1610 (i387_print_float_info): Use get_frame_register and
1611 get_frame_register_unsigned instead of frame_register_read.
1613 * i386fbsd-nat.c: Include "i386-tdep.h".
1614 (child_resume): Make `eflags' an ULONGEST. Use
1615 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1616 instead of register_read and register_write.
1618 * i386bsd-nat.c (fetch_inferior_registers,
1619 store_inferior_registers): Don't use && at the end of a line.
1620 (_initialize_i386bsd_nat): Fix typo.
1622 * frame.c (_initialize_frame): Add missing backslash.
1624 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1625 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1626 and supply_register instead of manipulating the register buffer
1629 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1630 * config/i386/nm-i386sol2.h
1631 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1633 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1634 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1635 instructions that GCC likes to mingle into the prologue. Fixes
1636 gdb/1253 and gdb/1255.
1638 2003-08-09 Andrew Cagney <cagney@redhat.com>
1641 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1642 * command.h (add_setshow_uinteger_cmd): Declare.
1643 * frame.c (set_backtrace_cmd): New function.
1644 (show_backtrace_cmd): New function.
1645 * frame.c (_initialize_frame): Replace "set/show
1646 backtrace-below-main" with "set/show backtrace past-main". Add
1647 command "set/show backtrace limit".
1648 (backtrace_past_main): Rename "backtrace_below_main".
1649 (backtrace_limit): New variable.
1650 (get_prev_frame): Update. Check the backtrace_limit.
1652 2003-08-09 Andrew Cagney <cagney@redhat.com>
1654 * defs.h (xstrprintf): Declare.
1655 * utils.c (xstrprintf): New function.
1656 * breakpoint.c (insert_breakpoints): Replace sprintf and
1657 non-literal format strings, with xstrprintf and cleanups.
1658 (delete_breakpoint,breakpoint_re_set): Ditto.
1659 (commands_command, insert_breakpoints): Ditto.
1660 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1661 (break_at_finish_command_1): Ditto.
1663 2003-08-09 Andrew Cagney <cagney@redhat.com>
1665 * MAINTAINERS (language support): List Adam Fedor as Objective C
1668 2003-08-08 J. Brobecker <brobecker@gnat.com>
1670 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1671 are now multiarched.
1673 2003-08-08 J. Brobecker <brobecker@gnat.com>
1675 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1676 longer necessary now that hppa64 is partially multiarch'ed.
1678 2003-08-08 Andrew Cagney <cagney@redhat.com>
1680 * interps.c (interp_set): Check for a NULL "old_interp".
1682 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1684 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1685 (install-only): Support DESTDIR.
1686 (uninstall): Likewise.
1687 (install-gdbtk): Likewise.
1689 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1691 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1692 contains something meaningful at all times.
1694 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1696 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1698 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1700 * MAINTAINERS (write after approval): Added self.
1702 2003-08-07 Andrew Cagney <cagney@redhat.com>
1704 * inferior.h (AT_SYMBOL): Define.
1705 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1706 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1707 * mips-tdep.c (mips_call_dummy_address): Delete function.
1708 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1709 set call_dummy_address.
1711 2003-08-07 Andrew Cagney <cagney@redhat.com>
1713 * language.c (op_error): Delete function.
1714 (binop_type_check): Delete function.
1715 * language.h (type_op_error, range_op_error): Delete macros.
1716 (op_error): Delete declaration.
1718 2003-08-07 Andrew Cagney <cagney@redhat.com>
1720 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1722 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1724 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1725 (x86_64_push_arguments): Skip the red zone.
1727 2003-08-05 Andrew Cagney <cagney@redhat.com>
1729 * reggroups.c (reggroup_next): Check for the final entry.
1731 2003-08-04 Andrew Cagney <cagney@redhat.com>
1733 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1734 * cli/cli-script.c (define_command): Call query directly, instead
1735 of passing it a buffer.
1736 * ocd.c (ocd_error): Pass error a constant format string.
1737 * remote-mips.c (mips_error): Use fputs_filtered.
1739 * solib-svr4.c (_initialize_svr4_solib): Update
1740 register_gdbarch_data call.
1741 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1743 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1744 (register_gdbarch_data): Delete "free" parameter. Update
1746 * gdbarch.h, gdbarch.c: Re-generate.
1747 * reggroups.c (_initialize_reggroup): Update.
1748 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1749 * frame-base.c (_initialize_frame_base): Update.
1750 * frame-unwind.c (_initialize_frame_unwind): Update.
1751 * user-regs.c (_initialize_user_regs): Update.
1752 * remote.c (_initialize_remote): Update.
1753 * regcache.c (_initialize_regcache): Update.
1755 * regcache.c (xfree_regcache_descr): Delete function.
1756 (_initialize_regcache): Update call to register_gdbarch_data.
1757 (init_regcache_descr, init_legacy_regcache_descr): Use
1758 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1760 * remote.c (free_remote_state): Delete function.
1761 (_initialize_remote): Update register_gdbarch_data.
1762 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1763 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1765 2003-08-04 Andrew Cagney <cagney@redhat.com>
1767 * reggroups.c (struct reggroup_el): Define.
1768 (struct reggroups): Delete field "nr_group". Replace array
1769 "group" with a "first" to "last" linked list.
1770 (reggroups_init): Update. Allocate using gdbarch's obstack.
1771 (reggroups_free): Delete function.
1772 (add_group): Update. Add "el" parameter.
1773 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1774 (default_groups): Update.
1775 (reggroup_next): Replace reggroups.
1776 (reggroups_dump): Update.
1777 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1778 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1779 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1781 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1783 * Makefile.in (tui-interp.o): Update dependencies.
1785 2003-08-04 David Carlton <carlton@kealia.com>
1787 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1788 to internal_error call.
1789 * source.c (forward_search_command): Add "%s" format argument.
1790 (reverse_search_command): Ditto.
1791 * top.c (quit_confirm): Ditto.
1792 * cli/cli-setshow.c (do_setshow_command): Ditto.
1793 * cp-valprint.c (cp_print_class_method): Replace
1794 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1795 (cp_print_class_member): Ditto.
1796 * event-top.c (command_line_handler): Ditto.
1797 * linux-proc.c (linux_info_proc_cmd): Ditto.
1798 * p-typeprint.c (pascal_type_print_base): Ditto.
1799 * p-valprint.c (pascal_object_print_class_method): Ditto.
1800 (pascal_object_print_class_member): Ditto.
1801 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1802 * remote.c (remote_cisco_section_offsets): Ditto.
1803 * top.c (command_line_input): Ditto.
1804 * utils.c (vwarning,error_stream,quit): Ditto.
1805 * valprint.c (print_floating,print_binary_chars)
1806 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1808 2003-08-04 Andrew Cagney <cagney@redhat.com>
1810 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1812 2003-08-02 Andrew Cagney <cagney@redhat.com>
1814 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1815 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1818 2003-08-02 Andrew Cagney <cagney@redhat.com>
1820 * Makefile.in: Update all dependencies and definitions.
1822 2003-08-02 Adam Fedor <fedor@gnu.org>
1824 * linespec.c (is_objc_method_format): New function
1825 (decode_line_1, locate_first_half): Use it.
1828 2003-08-01 Andrew Cagney <cagney@redhat.com>
1830 * NEWS: Mention that m32r is multi-arch.
1831 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1832 * configure.tgt: Recognize m32r-*-*.
1833 * config/m32r/tm-m32r.h: Delete file.
1834 * config/m32r/m32r.mt: New file.
1835 * m32r-rom.c (m32r_upload_command): Use hostent only when
1836 gethostname succeeds, in order to avoid a compilation
1838 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1841 2003-08-01 Michael Snyder <msnyder@redhat.com>
1843 * sh-tdep.c (sh_frame_align): New gdbarch method.
1844 (sh_gdbarch_init): Set up frame_align method.
1846 2003-07-31 Michael Snyder <msnyder@redhat.com>
1848 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1849 which is already covered by the new frames infrastructure.
1851 2003-07-31 Andrew Cagney <cagney@redhat.com>
1853 * user-regs.c (struct user_reg): Add "next" link.
1854 (struct user_regs): Replace "user" with "first" and "last" links.
1855 (append_user_reg): Add pre-allocated "reg" parameter.
1856 (builtin_user_regs): Provide initial value for "last".
1857 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1858 (user_regs_init): Allocate memory from the gdbarch obstack.
1859 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1860 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1862 (usernum_to_user_reg): New function.
1863 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1864 (value_of_user_reg): Use usernum_to_user_reg.
1865 (user_regs_free): Delete function.
1866 (_initialize_user_regs): Update register_gdbarch_data call.
1868 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1870 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1872 2003-07-30 Michael Snyder <msnyder@redhat.com>
1874 * value.h (value_being_returned): Add a struct_addr argument.
1875 * infcall.c (call_function_by_hand): Pass struct_addr to
1876 value_being_returned.
1877 * infcmd.c (print_return_value): Pass zero as struct_addr.
1878 * values.c (value_being_returned): If struct_addr is passed,
1879 use it instead of trying to recover it from the inferior.
1881 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1883 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1884 the prologue analyzer won't need to attempt to extract the pc
1885 value from the woefully incomplete dummy frame.
1886 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1887 possible. Disable code which modifies the frame.
1889 2003-07-28 Andrew Cagney <cagney@redhat.com>
1891 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1893 (annotate_breakpoints_table, annotate_record): Ditto.
1894 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1895 (annotate_field_name_end, annotate_field_value): Ditto.
1896 (annotate_field_end, annotate_frame_source_begin): Ditto.
1897 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1898 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1899 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1900 (annotate_frame_address_end, annotate_frame_address): Ditto.
1901 (annotate_frame_args, annotate_frame_end): Ditto.
1902 (annotate_frame_where, annotate_arg_begin): Ditto.
1903 (annotate_arg_name_end, annotate_arg_value): Ditto.
1904 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1905 (annotate_function_call, annotate_signal_name): Ditto.
1906 (annotate_signal_string, annotate_signal_name_end): Ditto.
1907 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1908 (annotate_value_begin, annotate_value_history_value): Ditto.
1909 (annotate_value_history_end, annotate_value_end): Ditto.
1910 (annotate_display_begin, annotate_display_number_end): Ditto.
1911 (annotate_display_format, annotate_display_expression): Ditto.
1912 (annotate_display_expression_end, annotate_display_value): Ditto.
1913 (annotate_display_end, annotate_array_section_begin): Ditto.
1914 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1915 (annotate_elt, annotate_array_section_end): Ditto.
1917 2003-07-28 Andrew Cagney <cagney@redhat.com>
1919 * regcache.c (struct regcache_descr): Update comments on
1921 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1922 sizeof_raw_register_valid_p.
1923 (init_regcache_descr): Set nr_raw_registers and
1924 sizeof_raw_register_valid_p before calling
1925 init_legacy_regcache_descr.
1927 2003-07-28 Andrew Cagney <cagney@redhat.com>
1929 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1932 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1934 * thread.c (info_threads_command): Use get_selected_frame ().
1935 Check that there is at least one non-sentinel frame.
1937 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1939 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1940 (m68hc11_pop_frame): Remove.
1941 (m68hc11_frame_saved_pc): Remove.
1942 (m68hc11_frame_chain): Remove.
1943 (m68hc11_frame_init_saved_regs): Remove.
1944 (m68hc11_init_extra_frame_info): Remove.
1945 (m68hc11_store_struct_return): Remove.
1946 (m68hc11_saved_pc_after_call): Remove.
1948 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1950 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1951 frame unwind information.
1952 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1953 and adapted for frame unwinding.
1954 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1955 (m68hc11_unwind_pc): New function.
1956 (m68hc11_frame_unwind_cache): New function to analyze frames.
1957 (m68hc11_frame_this_id): New function to create new frame struct.
1958 (m68hc11_frame_prev_register): New function to unwind a register from
1960 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1961 (m68hc11_frame_p): New function for the above.
1962 (m68hc11_frame_base_address): New function to return fp of frame.
1963 (m68hc11_frame_args_address): Update for frame.
1964 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1965 (m68hc11_unwind_sp): New function.
1966 (m68hc11_unwind_dummy_id): New function.
1967 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1970 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1972 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1973 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1974 when we are beyond the current pc.
1976 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1978 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1979 from m68hc11_push_arguments.
1980 (m68hc11_push_arguments): Remove.
1981 (m68hc11_push_return_address): Remove.
1982 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1983 handlers; remove deprecated_extra_stack_alignment_needed.
1985 2003-07-27 Andrew Cagney <cagney@redhat.com>
1987 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1988 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1989 REAL_PC and not the pointer.
1990 * hppa-hpux-tdep.c: Include frame.h
1992 2003-07-27 Andrew Cagney <cagney@redhat.com>
1994 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1995 GDB_MULTI_ACH_PARTIAL.
1997 2003-07-27 Andrew Cagney <cagney@redhat.com>
1999 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2000 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2001 operator at start and not end of line.
2002 (decode_prologue): Ditto.
2003 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2004 frame_unwind_register_unsigned instead of
2005 frame_unwind_unsigned_register.
2006 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2008 (m32r_push_dummy_call): Use register_size instead of
2010 (m32r_frame_sniffer): Replace m32r_frame_p.
2011 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2012 * m32r-rom.c (report_transfer_performance): Delete extern
2014 (m32r_load, m32r_upload_command): Use print_transfer_performance
2015 instead of report_transfer_performance.
2016 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2017 / add_show_from_set.
2019 2003-07-26 Andrew Cagney <cagney@redhat.com>
2021 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2022 store_return_value and extract_struct_value_address.
2024 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2027 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2028 NULL, default to the section containing PC.
2030 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2032 * NEWS: Mention "regs" deprecated for m68hc11 too.
2034 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2035 (m68hc11_print_register): New function to print out one register.
2036 (m68hc11_print_registers_info): New function to print registers.
2037 (show_regs): Deprecate and use the above.
2038 (m68hc11_gdbarch_init): Install the print_registers_info.
2040 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2042 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2043 that we have a SIGTRAP before returning non-zero.
2045 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2046 Elena Zannoni <ezannoni@redhat.com>
2048 * linespec.c (decode_line_2): Avoid crash if
2049 find_function_start_sal() returns empty record.
2051 2003-07-23 Andreas Schwab <schwab@suse.de>
2053 * ia64-tdep.c (ia64_print_insn): New function.
2054 (ia64_gdbarch_init): Set print_insn to it.
2055 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2056 deprecated_tm_print_insn_info.
2058 2003-07-22 Michael Snyder <msnyder@redhat.com>
2060 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2061 handle 8-bit returns (long long).
2062 (h8300h_extract_return_value): Ditto.
2063 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2065 2003-07-22 Andrew Cagney <cagney@redhat.com>
2067 * gdbarch.c Include "gdb_obstack.h".
2068 (struct gdbarch): Add an "obstack".
2069 (alloc_gdbarch_data): Allocate the gdbarch data using
2070 GDBARCH_OBSTACK_CALLOC.
2071 (free_gdbarch_data): Delete function.
2072 (gdbarch_obstack_zalloc): New function.
2073 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2074 Assert that the architecture is not initialized.
2075 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2076 vector from the obstack.
2077 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2078 architecture obstack.
2079 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2080 (set_gdbarch_data): Assert that the data is not initialized.
2081 (struct gdbarch_data): Delete member "free".
2082 (register_gdbarch_data): Do not initialize "free".
2083 * gdbarch.h, gdbarch.c: Re-generate.
2085 2003-07-22 Andrew Cagney <cagney@redhat.com>
2087 * configure.in (build_warnings): Add -Wformat-nonliteral.
2088 * configure: Re-generate.
2090 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2092 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2094 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2096 * findvar.c (read_var_value): Remove case for thread local storage
2097 variables. It is now entirely handled by the dwarf2 location
2099 * printcmd.c (address_info): Ditto.
2100 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2102 (struct symbol): Remove objfile field, which was used by
2103 LOC_THREAD_LOCAL_STATIC only.
2104 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2105 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2106 usage of objfile pointer.
2107 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2108 thread local variables.
2109 Add include of objfiles.h.
2110 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2112 * Makefile.in (dwarf2loc.o): Update dependencies.
2114 2003-07-22 Andrew Cagney <cagney@redhat.com>
2116 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2118 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2119 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2120 (struct value): Add opaque declaration.
2121 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2123 2003-07-21 Andrew Cagney <cagney@redhat.com>
2125 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2126 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2128 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2130 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2131 regcache_cooked_read_unsigned instead of read_register.
2132 (m68hc11_saved_pc_after_call): Likewise.
2133 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2134 instead of write_register.
2135 (m68hc11_register_type): New function.
2136 (m68hc11_register_virtual_type): Remove.
2137 (m68hc11_store_return_value): Convert to use the regcache.
2138 (m68hc11_extract_struct_value_address): Likewise.
2139 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2140 m68hc11_register_type; undeprecate store_return_value and
2141 extract_struct_value_address.
2143 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2145 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2146 and translate to use regcache.
2147 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2149 2003-07-18 Andrew Cagney <cagney@redhat.com>
2151 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2152 * gdbarch.h, gdbarch.c: Re-generate.
2153 * i386-tdep.c (i386_gdbarch_init): Do not set
2154 DWARF2_BUILD_FRAME_INFO.
2155 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2157 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2158 DWARF2_BUILD_FRAME_INFO.
2160 2003-07-18 Andrew Cagney <cagney@redhat.com>
2162 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2163 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2165 2003-07-18 Andrew Cagney <cagney@redhat.com>
2167 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2168 frame_unwind_address_in_block, instead of frame_pc_unwind.
2169 (dwarf2_frame_cache): Ditto.
2171 2003-07-18 Andrew Cagney <cagney@redhat.com>
2173 * user-regs.h (struct gdbarch): Declare opaque.
2174 * ui-out.h (struct ui_file): Declare opaque.
2175 * dwarf2-frame.h (struct frame_info): Declare opaque.
2177 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2179 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2181 (procfs_meminfo): Change strerror to safe_strerror.
2182 (procfs_can_run): Remove K&R badness.
2184 2003-07-17 Michael Snyder <msnyder@redhat.com>
2186 * remote-sim.c: Comment typo fix.
2188 2003-07-17 Andrew Cagney <cagney@redhat.com>
2190 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2192 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2193 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2194 GDB_MULTI_ARCH_PARTIAL.
2196 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2198 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2199 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2200 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2202 2003-07-16 Theodore A. Roth <troth@openavr.org>
2204 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2206 (avr_frame_unwind_cache): Don't unwind FP for main.
2208 Save the computed prev_sp.
2209 (avr_saved_regs_unwinder): Remove function.
2210 (avr_frame_prev_register): Use PC unwind logic from
2211 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2213 2003-07-16 Andrew Cagney <cagney@redhat.com>
2215 * frame-base.h (frame_base_p_ftype): Delete definition.
2216 (frame_base_append_predicate): Delete declaration.
2217 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2218 (frame_unwind_append_predicate): Delete declaration.
2219 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2220 (append_predicate): Delete parameter "p".
2221 (frame_unwind_append_predicate): Delete function.
2222 (frame_unwind_append_sniffer): Update call to append_predicate.
2223 (frame_unwind_free): Delete function.
2224 (_initialize_frame_unwind): Pass NULL as "free" to
2225 register_gdbarch_data.
2226 (frame_unwind_init): Append the dummy_frame_sniffer.
2227 (frame_unwind_find_by_frame): Simplify.
2228 * frame-base.c (struct frame_base_table): Delete field "p".
2229 (append_predicate): Delete parameter "p".
2230 (frame_base_append_predicate): Delete function.
2231 (frame_base_append_sniffer): Update call to append_predicate.
2232 (frame_base_free): Delete function.
2233 (frame_base_find_by_frame): Simplify.
2234 (_initialize_frame_base): Pass NULL as "free" to
2235 register_gdbarch_data.
2236 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2237 (x86_64_sigtramp_frame_sniffer): Replace
2238 "x86_64_sigtramp_frame_p".
2239 (x86_64_init_abi): Set the frame unwind sniffers.
2240 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2241 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2242 (m68k_gdbarch_init): Set the frame unwind sniffers.
2243 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2244 "i386_sigtramp_frame_p".
2245 (i386_frame_sniffer): Replace "i386_frame_p".
2246 (i386_gdbarch_init): Set the frame unwind sniffers.
2247 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2248 (avr_gdbarch_init): Set the frame unwind sniffers.
2249 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2250 "alpha_sigtramp_frame_p"
2251 (alpha_heuristic_frame_sniffer): Replace
2252 "alpha_heuristic_frame_p".
2253 (alpha_gdbarch_init): Set the frame unwind sniffers.
2254 (alpha_dwarf2_init_abi): Ditto.
2255 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2256 "alpha_debug_frame_p".
2257 (alpha_mdebug_frame_base_sniffer): Replace
2258 "alpha_mdebug_frame_base_p".
2259 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2260 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2261 (d10v_gdbarch_init): Set the frame unwind sniffer.
2262 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2263 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2264 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2265 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2266 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2267 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2269 2003-07-16 Michael Snyder <msnyder@redhat.com>
2271 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2272 should go thru sh_dsp_register_sim_regno, else the dsp regs
2273 will not get the right values.
2275 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2277 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2278 deprecated_store_floating by call to store_typed_floating.
2279 (sh_sh4_register_convert_to_raw): Substitute call to
2280 deprecated_extract_floating by call to extract_typed_floating.
2282 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2284 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2286 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2288 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2289 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2290 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2292 (do_pseudo_register): Remove.
2293 (sh_push_dummy_code): New function.
2294 (sh64_store_struct_return): Rename from sh_store_struct_return.
2295 Only called for sh64 now.
2296 (sh_extract_struct_value_address): Regcache'ify.
2297 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2298 and accomodate new tasks.
2299 (sh64_push_return_address): Rename from sh_push_return_address.
2300 Only called for sh64 now.
2301 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2303 (sh3e_sh4_extract_return_value): Regcache'ify.
2304 (sh_default_store_return_value): Ditto.
2305 (sh3e_sh4_store_return_value): Ditto.
2306 (sh_default_register_byte): Remove.
2307 (sh_sh4_register_byte): Remove.
2308 (sh_default_register_raw_size): Remove.
2309 (sh_sh4_register_raw_size): Remove.
2310 (sh_register_virtual_size): Remove.
2311 (sh_sh3e_register_virtual_type): Remove.
2312 (sh_sh3e_register_type): New function.
2313 (sh_sh4_register_virtual_type): Remove.
2314 (sh_sh4_register_type): New function.
2315 (sh_default_register_virtual_type): Remove.
2316 (sh_default_register_type): New function.
2317 (do_fv_register_info): Add parameters to accomodate call from
2318 sh_print_registers_info.
2319 (do_dr_register_info): Ditto.
2320 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2321 Add parameters to accomodate call from sh_print_registers_info.
2322 (sh_do_fp_register): Ditto.
2323 (sh64_do_pseudo_register): Call do_dr_register_info,
2324 do_fv_register_info and sh_do_fp_register with default parameters.
2325 (sh_do_register): Add parameters to accomodate call from
2326 sh_print_registers_info.
2327 (sh_print_register): Ditto.
2328 (sh_print_registers_info): Rename from sh_do_registers_info.
2329 Add parameters to be used as gdbarch_print_registers_info
2330 implementation. Accomodate removed do_pseudo_register function
2332 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2333 function pointer. Call sh_print_register with default parameters.
2334 (sh64_do_registers_info): Call sh_print_registers_info instead of
2335 sh_do_registers_info.
2336 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2337 detection of deprecated vs. non-deprecated functionality.
2338 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2339 function pointer assignments by direct function calls.
2341 2003-07-15 Andrew Cagney <cagney@redhat.com>
2343 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2344 (frame_register_unwind, create_new_frame): Ditto.
2345 (legacy_get_prev_frame, get_frame_type): Ditto.
2346 (get_frame_base_address): Use frame_base_find_by_frame.
2347 (get_frame_locals_address): Use frame_base_find_by_frame.
2348 (get_frame_args_address): Use frame_base_find_by_frame.
2349 * frame-base.h (frame_base_sniffer_ftype): Declare.
2350 (frame_base_append_sniffer): Declare.
2351 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2352 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2353 (frame_base_append_sniffer): New function.
2354 (frame_base_append_predicate): Add a NULL sniffer.
2355 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2356 (struct frame_base_table): Add "sniffer".
2357 (frame_base_free): Free the "sniffer" table.
2358 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2359 (frame_unwind_append_sniffer): Declare.
2360 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2361 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2362 (struct frame_unwind_table): Add "sniffer", delete "middle".
2363 (append_predicate): Add "sniffer" parameter, append the sniffer.
2364 (frame_unwind_init): Update append_predicate call.
2365 (frame_unwind_append_sniffer): New function.
2366 (frame_unwind_append_predicate): Update append_predicate call.
2367 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2369 2003-07-15 Andrew Cagney <cagney@redhat.com>
2371 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2372 before code inhibiting repeated unwind attempts. Add to
2373 commentary on that test's problems.
2374 * blockframe.c (inside_main_func): Look for "main" in the minimal
2376 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2379 2003-07-15 Andrew Cagney <cagney@redhat.com>
2381 * complaints.c (struct explanation): Define.
2382 (struct complaints): Change type of "explanation" to "struct
2384 (symfile_explanations): Convert to a "struct explanation" table.
2385 (vcomplaint): Update.
2387 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2389 * x86-64-linux-nat.c (regmap): Removed.
2390 (supply_gregset, fill_gregset): Call
2391 x86_64_linux_(fill,supply)_gregset functions.
2392 * x86-64-linux-tdep.c (USER_*): New defines.
2393 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2394 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2396 (fetch_core_registers): Ditto.
2397 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2398 * x86-64-linux-tdep.h: New file.
2399 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2401 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2403 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2405 * x86-64-tdep.c (x86_64_store_return_value): Use
2406 regcache_cooked_write_part instead of regcache_cooked_write.
2408 * configure.host: Add x86_64-*-freebsd*.
2409 * configure.tgt: Add x86_64-*-freebsd*.
2410 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2411 * amd64fbsd-nat.c: New file.
2412 * amd64fbsd-tdep.c: New file.
2413 * config/i386/nm-fbsd64.h: New file.
2414 * config/i386/fbsd64.mh: New file.
2415 * config/i386/fbsd64.mt: New file.
2417 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2419 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2420 `sc_regs_offset' and `sc_fpregs_offset'.
2421 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2422 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2423 (alpha_sigtramp_register_address): Rewrite to use new members of
2424 `struct gdbarch_tdep'.
2425 (alpha_gdbarch_init): Initialize new members of struct
2427 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2428 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2429 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2430 (alphafbsd_pc_in_sigtramp): Implement.
2431 (alphafbsd_sigtramp_offset): New function.
2432 (alphafbsd_sigcontext_addr): New function.
2433 (alphafbsd_init_abi): Initialize signal trampoline related members
2434 of `struct gdbarch_tdep'.
2435 (_initialize_alphafbsd_tdep): Add prototype.
2437 2003-07-11 Theodore A. Roth <troth@openavr.org>
2439 * Makefile.in (install-only): Quote sed expression when generating
2442 2003-07-11 Richard Henderson <rth@redhat.com>
2444 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2445 * dwarf2-frame.c: Include complaints.h.
2446 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2447 variable initialization; return NULL on error.
2448 (decode_frame_entry): New.
2450 2003-07-11 Andrew Cagney <cagney@redhat.com>
2452 * frame.h (frame_address_in_block): Delete declaration.
2453 * blockframe.c (frame_address_in_block): Delete function.
2454 (get_frame_block): Use get_frame_address_in_block.
2455 (block_innermost_frame): Ditto.
2456 * stack.c (print_frame, backtrace_command_1): Ditto.
2458 * frame.h (get_frame_address_in_block): Declare.
2459 (frame_unwind_address_in_block): Declare.
2460 * frame.c (frame_unwind_address_in_block): New function.
2461 (get_frame_address_in_block): New function.
2463 2003-07-10 Andrew Cagney <cagney@redhat.com>
2465 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2466 pre-default. Note: re-generate has no effect.
2468 2003-07-10 Andrew Cagney <cagney@redhat.com>
2470 * gdbarch.sh: When a variable, but not a function, compare against
2471 0. Fix problem in previous patch.
2472 * gdbarch.c: Re-generate.
2474 2003-07-10 Andrew Cagney <cagney@redhat.com>
2476 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2477 functions against NULL, not 0.
2478 * gdbarch.c: Re-generate.
2480 2003-07-10 Fred Fish <fnf@ninemoons.com>
2482 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2483 null string instead of a null pointer.
2484 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2486 2003-07-09 Michael Snyder <msnyder@redhat.com>
2488 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2490 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2492 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2493 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2494 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2495 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2496 * x86-64-tdep.c: ... from here.
2498 2003-07-09 Andreas Schwab <schwab@suse.de>
2500 * m68k-tdep.h (enum struct_return): Define.
2501 (struct gdbarch_tdep): Add struct_return.
2502 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2503 bytes are padded to the right, not to the left. Pass struct value
2504 address in register %a1, not on stack.
2505 (m68k_use_struct_convention): New function.
2506 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2507 struct_return in tdep to pcc_struct_return.
2508 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2511 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2513 * somread.c (som_symfile_offsets): Fix compilation error.
2515 2003-07-09 Andrew Cagney <cagney@redhat.com>
2517 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2518 Add comments about the checks.
2520 2003-07-08 Andrew Cagney <cagney@redhat.com>
2522 * Makefile.in: Make dependency section headers consistent.
2523 (config_h): Move to $BUILD headers section.
2524 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2525 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2526 (ada-exp.tab.c): Move to YACC/LEX section.
2527 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2528 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2530 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2532 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2533 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2534 of strerror with safe_strerror, use ISO C function definitions,
2535 and replace instances of sprintf with snprintf.
2537 2003-07-07 Andrew Cagney <cagney@redhat.com>
2539 * frame.c (get_prev_frame): Enable check for identical frames.
2540 Update comments. Update error messages.
2542 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2544 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2546 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2548 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2549 sort_symtab_syms, no longer necessary.
2551 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2553 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2555 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2557 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2558 (mips_register_byte): Likewise.
2560 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2562 * Makefile.in (sparc_tdep_h): New.
2563 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2564 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2565 * sparc-linux-nat.c: Include "sparc-tdep.h".
2566 * sparc-nat.c: Likewise.
2567 * sparc-tdep.c: Likewise.
2568 * sparc64nbsd-nat.c: Likewise.
2569 * sparcnbsd-nat.c: Likewise.
2570 * sparcnbsd-tdep.c: Likewise.
2571 * sparc-tdep.h: New file.
2572 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2573 and sparc_npc_regnum.
2575 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2577 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2578 (mips_linux_cannot_store_register): List supported instead of
2579 unsupported registers.
2581 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2583 * disasm.c (dump_insns): Separate instructions from addresses.
2585 2003-07-07 Andreas Schwab <schwab@suse.de>
2587 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2589 * m68k-tdep.c (NUM_FREGS): Delete.
2590 (SIG_PC_FP_OFFSET): Delete.
2591 (TARGET_M68K): Delete.
2592 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2593 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2594 P_MOVEL_SP, P_MOVEML_SP): Define.
2595 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2597 (m68k_register_raw_size): Delete.
2598 (m68k_register_virtual_size): Delete.
2599 (m68k_register_type): Renamed from m68k_register_virtual_type and
2600 add gdbarch argument.
2601 (m68k_store_struct_return): Delete.
2602 (m68k_deprecated_extract_return_value): Delete.
2603 (m68k_deprecated_extract_struct_value_address): Delete.
2604 (m68k_frame_chain): Delete.
2605 (m68k_frame_saved_pc): Delete.
2606 (m68k_fix_call_dummy): Delete.
2607 (m68k_push_dummy_frame): Delete.
2608 (m68k_pop_frame): Delete.
2609 (m68k_extract_return_value): New function.
2610 (m68k_store_return_value): Rewrite using regcache.
2611 (m68k_extract_struct_value_address): Rewrite using regcache.
2612 (m68k_push_dummy_call): New function.
2613 (struct m68k_frame_cache): Define.
2614 (m68k_alloc_frame_cache): New function.
2615 (m68k_analyze_frame_setup): New function.
2616 (m68k_analyze_register_saves): New function.
2617 (m68k_analyze_prologue): New function.
2618 (m68k_skip_prologue): Rewrite using above functions.
2619 (m68k_unwind_pc): New function.
2620 (m68k_frame_cache): New function.
2621 (m68k_frame_this_id): New function.
2622 (m68k_frame_prev_register): New function.
2623 (m68k_frame_unwind): New variable.
2624 (m68k_frame_p): New function.
2625 (m68k_sigtramp_frame_cache): New function.
2626 (m68k_sigtramp_frame_this_id): New function.
2627 (m68k_sigtramp_frame_prev_register): New function.
2628 (m68k_sigtramp_frame_unwind): New variable.
2629 (m68k_sigtramp_frame_p): New function.
2630 (m68k_frame_base_address): New function.
2631 (m68k_frame_base): New function.
2632 (m68k_unwind_dummy_id): New function.
2633 (fill_gregset): Use regcache_collect.
2634 (fill_fpregset): Likewise.
2635 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2637 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2638 deprecated_init_frame_pc, deprecated_store_struct_return,
2639 deprecated_extract_return_value, deprecated_store_return_value,
2640 deprecated_frame_chain, deprecated_frame_saved_pc,
2641 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2642 deprecated_register_virtual_size,
2643 deprecated_max_register_raw_size,
2644 deprecated_max_register_virtual_size,
2645 deprecated_register_virtual_type, deprecated_register_size,
2646 deprecated_register_byte, deprecated_register_bytes,
2647 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2648 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2649 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2650 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2651 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2652 deprecated_push_dummy_frame, deprecated_pop_frame,
2653 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2654 only if SYSCALL_TRAP is defined. Set extract_return_value,
2655 store_return_value, extract_struct_value_address, register_type,
2656 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2658 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2659 M68K_MAX_REGISTER_SIZE): Define.
2660 (struct m68k_sigtramp_info): Define.
2661 (struct gdbarch_tdep): Add get_sigtramp_info.
2662 * m68klinux-nat.c (fetch_register): Use register_size instead of
2663 REGISTER_RAW_SIZE. Don't put assignment in if.
2664 (store_register): Likewise.
2665 (fetch_inferior_registers): Likewise.
2666 (store_inferior_registers): Likewise.
2667 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2668 (m68k_linux_frame_saved_pc): Delete.
2669 (m68k_linux_sigcontext_reg_offset,
2670 m68k_linux_ucontext_reg_offset): Define.
2671 (m68k_linux_get_sigtramp_info): New function.
2672 (m68k_linux_extract_return_value): Rewrite using regcache.
2673 (m68k_linux_store_return_value): Likewise.
2674 (m68k_linux_extract_struct_value_address): Likewise.
2675 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2676 Don't set deprecated_frame_saved_pc,
2677 deprecated_extract_return_value, deprecated_store_return_value,
2678 deprecated_extract_struct_value_address. Set
2679 extract_return_value, store_return_value,
2680 extract_struct_value_address.
2682 2003-07-07 Andrew Cagney <cagney@redhat.com>
2684 * expprint.c: Include "user-regs.h" instead of "frame.h".
2685 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2686 frame_map_regnum_to_name.
2687 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2688 (frame_map_name_to_regnum): Simplify, call
2689 user_reg_map_name_to_regnum.
2690 (frame_map_regnum_to_name): Simplify, call
2691 user_reg_map_regnum_to_name.
2692 (frame_register_unwind): Update.
2693 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2694 (_initialize_frame_reg): Call user_reg_add_builtin.
2695 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2696 (value_of_register): Use value_of_user_reg.
2697 * eval.c (evaluate_subexp_standard): Update.
2698 * parse.c (write_dollar_variable): Update.
2699 * d10v-tdep.c (d10v_print_registers_info): Update.
2700 * infcmd.c (registers_info): Update.
2701 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2702 (builtin_regs_h): Delete macro.
2703 (user_regs_h): Define.
2704 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2705 (builtin-regs.o): Delete target.
2706 (user-regs.o): Specify dependencies.
2707 (expprint.o): Update dependencies.
2708 (findvar.o): Update dependencies.
2709 (frame.o): Update dependencies.
2710 (std-regs.o): Update dependencies.
2712 2003-07-06 Christopher Faylor <cgf@redhat.com>
2714 * win32-nat.c (solib_symbols_add): Use one variable for all section
2715 address stuff. Pass variable rather than address of variable to
2716 safe_symbol_file_add.
2718 2003-07-06 Andreas Schwab <schwab@suse.de>
2720 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2722 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2724 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2726 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2728 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2730 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2732 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2733 * config/i386/nto.mh: New file.
2734 * config/i386/nm-nto.h: New file.
2735 * configure.host: Add i[3456]86-*-nto*.
2737 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2739 * remote-vx.c (vx_add_symbols): Fix compilation error.
2741 2003-07-03 Andrew Cagney <cagney@redhat.com>
2743 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2744 * gdbarch.h, gdbarch.c: Re-generate.
2745 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2746 (legacy_register_name): Declare.
2747 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2748 (REGISTER_NAME): Define.
2749 * sparc-tdep.c (legacy_register_name): New function.
2750 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2751 (REGISTER_NAME): Define.
2752 (hppa64_register_name): Declare.
2753 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2754 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2755 (hppa64_register_name): New function.
2756 (hppa_register_name): New function.
2757 * arch-utils.c (legacy_register_name): Delete.
2758 * arch-utils.h (legacy_register_name): Delete.
2760 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2762 * cli/cli-interp.c (cli_interpreter_resume): Update the
2763 cli_uiout's stream to gdb_stdout.
2765 2003-07-03 Andrew Cagney <cagney@redhat.com>
2767 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2769 * gdbarch.h, gdbarch.c: Re-generate.
2770 * regcache.c (init_regcache_descr): Use legacy code when either
2771 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2773 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2775 * NEWS: Move "set logging" entry into GDB 6.0 section.
2777 2003-07-02 Jim Blandy <jimb@redhat.com>
2779 * s390-tdep.c (struct frame_extra_info): new member:
2780 'stack_bought_valid'.
2781 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2782 initialize fextra_info->stack_bought.
2783 (s390_frameless_function_invocation): Don't trust the value of
2784 fextra_info_ptr->stack_bought unless
2785 fextra_info->stack_bought_valid is set.
2787 New S390 prologue analyzer.
2788 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2789 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2790 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2791 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2792 compute_x_addr, s390_on_stack, s390_store,
2793 s390_get_signal_frame_info): New functions.
2794 (S390_NUM_SPILL_SLOTS): New macro.
2795 (s390_get_frame_info): Rewritten.
2796 (is_arg_reg): Deleted.
2798 Break out the decoding of S/390 instructions into separate
2799 functions, to make it more legible, and easier to check
2801 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2802 is_rx, is_rxe): New functions.
2803 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2804 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2805 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2806 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2807 enums for opcode values. (Is this an improvement?)
2809 2003-07-02 Andrew Cagney <cagney@redhat.com>
2811 * i386-tdep.c: Revert change committed as part of trad-frame code
2814 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2816 * breakpoint.c (insert_catchpoint): Make static.
2818 2003-07-02 Andreas Schwab <schwab@suse.de>
2820 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2821 former ia64_push_arguments and ia64_push_return_address, and use
2822 regcache functions instead of read/write_register.
2823 (ia64_gdbarch_init): Set push_dummy_call instead of
2824 deprecated_push_arguments and deprecated_push_return_address.
2826 2003-07-01 Andreas Jaeger <aj@suse.de>
2828 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2830 Set %rax only to number of SSE registers used.
2832 2003-07-01 Andrew Cagney <cagney@redhat.com>
2834 * trad-frame.h: Update comments, a -1 .addr is reserved.
2835 (trad_frame_value_p, trad_frame_addr_p): Declare.
2836 (trad_frame_reg_p): Declare.
2837 (trad_frame_set_value): Rename trad_frame_register_value.
2838 (trad_frame_set_unknown): Declare.
2839 * trad-frame.c (trad_frame_realreg_p): New function.
2840 (trad_frame_addr_p, trad_frame_value_p): New function.
2841 (trad_frame_set_unknown): New function.
2842 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2843 (trad_frame_prev_register): Use trad_frame_realreg_p,
2844 trad_frame_addr_p and trad_frame_value_p.
2845 (trad_frame_set_value): Rename trad_frame_register_value.
2846 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2847 and trad_frame_set_value.
2849 2003-06-30 Jim Blandy <jimb@redhat.com>
2851 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2852 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2853 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2854 for 16 registers, and then 32 more bytes.
2855 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2857 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2858 Move up in the file, since it's now used by is_simple_arg.
2859 (is_simple_arg): Don't assume registers are four bytes long.
2860 Exclude all double arguments. Extended floats are not simple
2862 (is_power_of_two): New function.
2863 (pass_by_copy_ref): Call is_power_of_two, and check that the
2864 length fits in a register, rather than listing all the acceptable
2865 sizes. Extended floats are not passed by reference.
2866 (s390_push_arguments): Don't assume registers are four bytes long.
2867 Reserve an argument register to point to the buffer for structures
2868 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2869 S390_STACK_FRAME_OVERHEAD.
2871 2003-06-30 Andreas Schwab <schwab@suse.de>
2873 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2874 format error message.
2876 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2878 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2880 2003-06-30 David Carlton <carlton@kealia.com>
2882 Band-aid for PR c++/1245.
2883 * Makefile.in (cp-support.o): Depend on complaints_h.
2884 * cp-support.c: Include complaints.h. Add declaration for
2885 find_last_component.
2886 (cp_find_first_component): Separate code into
2887 cp_find_first_component_aux.
2888 (cp_find_first_component_aux): Call demangled_name_complaint.
2889 (demangled_name_complaint): New.
2891 2003-06-30 Andrew Cagney <cagney@redhat.com>
2893 * remote.c (remote_write_bytes): Explicitly compute and then use
2894 the payload size. Update comments to reflect. Fixes problem of
2895 GDB not sending small packets as found by Fred Fish.
2897 2003-06-30 Andrew Cagney <cagney@redhat.com>
2899 * remote.c (remote_async_wait): Fix -Wformat problem.
2901 2003-06-29 Andrew Cagney <cagney@redhat.com>
2903 * remote.c (remote_wait): Call error, and not warning, when the
2905 (remote_async_wait): Ditto.
2907 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2909 * sparc-tdep.c (sparc_y_regnum): Make external again.
2911 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2913 * cli/cli-logging.c (pop_output_files): Add void to function
2916 2003-06-29 Andrew Cagney <cagney@redhat.com>
2918 * frame.c (frame_register_unwind): Use unsigned char when dumping
2919 the buffer contents.
2921 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2923 * cli/cli-logging.c: New file.
2924 * cli-out.c (struct ui_out_data): Add original_stream.
2925 (cli_redirect): New function.
2926 (cli_ui_out_impl): Add cli_redirect.
2927 (cli_out_new): Initialize original_stream.
2928 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2929 (uo_redirect, ui_out_redirect): New.
2930 * ui-out.h (struct ui_out_impl): Add redirect member.
2931 (redirect_ftype): New.
2932 (ui_out_redirect): Add prototype.
2933 * Makefile.in: Add rules for cli-logging.c.
2934 * NEWS: Mention "set logging".
2936 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2938 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2940 2003-06-27 Andrew Cagney <cagney@redhat.com>
2942 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2943 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2944 * avr-tdep.c (avr_call_dummy_address): Delete function.
2945 (avr_gdbarch_init): Do not set call_dummy_address.
2947 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2949 * symfile.c (syms_from_objfile): Move variables to inner block.
2950 Move the checks for the non-mainline case a bit earlier to avoid
2951 doing some useless computations.
2953 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2955 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2957 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2959 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2962 2003-06-26 Michael Chastain <mec@shout.net>
2964 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2965 gdb/testsuite/gdb.c++/pr-1210.exp.
2967 2003-06-26 Andrew Cagney <cagney@redhat.com>
2969 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2970 altivec_expression.h and altivec_registers.h.
2972 2003-06-26 Andrew Cagney <cagney@redhat.com>
2974 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2975 info->mach when MIPS16. Patch suggested by Fred Fish.
2977 2003-06-26 Andrew Cagney <cagney@redhat.com>
2979 * utils.c (internal_vproblem): Print the problem to a reason
2980 buffer and then pass to query. Make the msg variable more local.
2982 2003-06-26 Andrew Cagney <cagney@redhat.com>
2984 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2985 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2986 * gdbarch.h, gdbarch.c: Re-generate.
2987 * frame-base.c (default_frame_args_address): Update. Use
2988 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2990 (default_frame_locals_address): Ditto for
2991 DEPRECATED_FRAME_LOCALS_ADDRESS.
2992 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2993 (vax_frame_num_args): Update.
2994 (vax_gdbarch_init): Update.
2995 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2996 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2997 * mcore-tdep.c (mcore_gdbarch_init): Update.
2998 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2999 * ia64-tdep.c (ia64_gdbarch_init): Update.
3000 * symtab.h (address_class): Update comments.
3001 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3002 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3003 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3004 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3005 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3006 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3007 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3008 * alpha-mdebug-tdep.c: Update.
3009 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3011 2003-06-26 Andreas Jaeger <aj@suse.de>
3013 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3014 of SSE registers so that varargs functions work. Rework handling
3015 of passing arguments on the stack.
3016 (x86_64_store_return_value): Return double and float values in SSE
3019 2003-06-24 Michael Chastain <mec@shout.net>
3021 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3022 the "constructor breakpoints ignored" bug.
3024 2003-06-25 David Carlton <carlton@kealia.com>
3026 * MAINTAINERS: Update e-mail address.
3028 2003-06-24 Jim Blandy <jimb@redhat.com>
3030 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3032 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3034 (ppc_linux_init_abi): Register it as the
3035 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3037 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3038 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3041 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3042 (ppc64_standard_linkage_target): Use it.
3044 2003-06-23 Andrew Cagney <cagney@redhat.com>
3046 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3047 for 0 "int0" and 4 "int32" sized registers.
3048 * gdbtypes.c (builtin_type_int0): Define.
3049 (build_gdbtypes): Initialize builtin_type_int0.
3050 * gdbtypes.h (builtin_type_int0): Declare.
3052 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3054 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3055 as characters are unsigned.
3057 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3060 * dwarfread.c (struct_type): Skip static fields without crashing.
3062 2003-06-22 Andrew Cagney <cagney@redhat.com>
3064 GDB 6.0 branch created.
3066 * PROBLEMS: Update. Empty.
3069 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3071 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3072 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3074 2003-06-22 Andrew Cagney <cagney@redhat.com>
3076 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3077 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3080 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3082 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3085 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3087 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3088 argument of val_print.
3089 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3090 to the address argument of baseclass_offset or target_read_memory.
3091 Do add it to the argument of cp_print_value_fields.
3093 2003-06-21 Andrew Cagney <cagney@redhat.com>
3095 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3096 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3097 instead of 0..NUM_REGS.
3098 (mips_register_reggroup_p): New function.
3099 (mips_pseudo_register_write): New function.
3100 (mips_pseudo_register_read): New function.
3101 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3102 based on the register's type.
3103 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3105 (mips_get_saved_register): Simplify. Assert that REGNO is a
3107 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3108 (mips_register_type): Replace mips_register_virtual_type. Map
3109 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3111 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3112 that the register is cooked / virtual.
3113 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3114 Only get the extra info when needed.
3115 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3116 (mips32_heuristic_proc_desc): Fetch the cooked register.
3117 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3118 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3119 (mips_print_register): Use gdbarch_register_type, instead of
3120 REGISTER_VIRTUAL_TYPE.
3121 (print_gp_register_row): Use gdbarch_register_type, instead of
3122 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3123 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3124 Print the pseudo / cooked registers.
3125 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3126 Print the pseudo / cooked registers.
3127 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3128 REG_NUM is pseudo / cooked.
3129 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3130 (mips_n32n64_xfer_return_value): Ditto.
3131 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3132 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3133 (mips_register_sim_regno): New function.
3134 (mips_gdbarch_init): Set deprecated_register_byte,
3135 register_group_p, pseudo_register_write, pseudo_register_read,
3136 register_sim_regno, and num_pseudo_regs. Set register_type,
3137 instead of register_virtual_type.
3138 * Makefile.in (mips-tdep.o): Update dependencies.
3139 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3140 REGISTER_VIRTUAL_TYPE.
3141 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3142 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3143 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3144 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3145 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3147 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3149 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3150 * cli/cli-cmds.c: Include "gdb_vfork.h".
3151 (shell_escape): Use vfork.
3153 2003-06-21 Andrew Cagney <cagney@redhat.com>
3155 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3156 32 bit floating-point register saves.
3158 * frame.h (deprecated_unwind_get_saved_register): Delete.
3159 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3160 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3161 and deprecated_get_next_frame_hack instead of
3162 deprecated_unwind_get_saved_register.
3164 * mips-tdep.c (mips_dump_tdep): Do not print
3165 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3167 * frame.c (get_frame_register): New function.
3168 (frame_unwind_register_signed): New function.
3169 (get_frame_register_signed): New function.
3170 (frame_unwind_register_unsigned): New function.
3171 (get_frame_register_unsigned): New function.
3172 * frame.h: Add comments on naming schema.
3173 (get_frame_register, frame_unwind_register_signed): Declare.
3174 (get_frame_register_signed, get_frame_register_signed): Declare.
3175 (frame_unwind_register_unsigned): Declare.
3176 (get_frame_register_unsigned): Declare.
3178 2003-06-20 Theodore A. Roth <troth@openavr.org>
3180 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3182 2003-06-20 Theodore A. Roth <troth@openavr.org>
3184 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3185 (avr_read_sp): Ditto.
3187 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3189 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3190 * config/arm/nm-linux.h: Likewise.
3191 * config/arm/tm-linux.h: Likewise.
3192 * config/ia64/nm-linux.h: Likewise.
3193 * config/ia64/tm-ia64.h: Likewise.
3194 * config/s390/tm-linux.h: Likewise.
3195 * config/s390/tm-s390.h: Likewise.
3196 * s390-nat.c: Likewise.
3197 * s390-tdep.c: Likewise.
3199 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3200 * config/ia64/linux.mt: Likewise.
3201 * config/m68k/linux.mh: Likewise.
3202 * config/mips/linux.mt: Likewise.
3203 * config/powerpc/linux.mh: Likewise.
3204 * config/sh/linux.mt: Likewise.
3206 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3208 * solib.c (solib_open): Change tests for whether to search
3209 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3212 2003-06-19 Theodore A. Roth <troth@openavr.org>
3214 * avr-tdep.c (avr_frame_address): Delete function.
3215 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3216 set_gdbarch_frame_args_address.
3218 2003-06-19 Andrew Cagney <cagney@redhat.com>
3220 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3221 (REGISTER_CONVERT_FROM_TYPE): Delete.
3222 (mips_register_convert_to_type): Delete declaration.
3223 (mips_register_convert_from_type): Delete declaration.
3224 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3227 2003-06-19 Michael Snyder <msnyder@redhat.com>
3229 * linux-nat.h: New file.
3230 * linux-nat.c: Include linux-nat.h.
3231 * lin-lwp.c: Include linux-nat.h.
3232 Move struct lwp_info def to linux-nat.h.
3233 * linux-proc.c: Include linux-nat.h.
3234 (linux_make_note_section): Iterate over lwps instead of threads.
3235 (linux_do_thread_registers): Use lwp instead of merged pid.
3236 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3237 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3238 Add dependency on linux_nat_h.
3240 2003-06-19 Theodore A. Roth <troth@openavr.org>
3242 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3244 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3246 * varobj.c (get_type, get_target_type): Use check_typedef.
3248 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3250 * breakpoint.c (insert_catchpoint): Call internal_error.
3252 2003-06-19 Theodore A. Roth <troth@openavr.org>
3254 * avr-tdep.c (avr_push_dummy_code): Delete function.
3255 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3257 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3259 * arch-utils.c (default_prepare_to_proceed): Remove.
3260 (generic_prepare_to_proceed): Remove.
3261 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3262 (generic_prepare_to_proceed): Remove prototype.
3263 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3264 * gdbarch.c: Regenerate.
3265 * gdbarch.h: Regenerate.
3266 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3267 * hppah-nat.c (hppa_switched_threads): Remove.
3268 * infrun.c (prepare_to_proceed): New static function, copied from
3269 generic_prepare_to_proceed. Remove select_it argument.
3270 (proceed): Call prepare_to_proceed.
3271 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3273 (ptrace_wait): Don't set the removed variables.
3274 (hppa_switched_threads): Remove.
3275 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3276 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3277 (lin_lwp_prepare_to_proceed): Remove prototype.
3278 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3279 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3281 2003-06-18 Theodore A. Roth <troth@openavr.org>
3283 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3285 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3286 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3287 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3288 (AVR_PROLOGUE_*): Enumerate prologue types.
3289 (struct frame_extra_info): Remove.
3290 (struct avr_unwind_cache): Define.
3291 (avr_write_sp): Delete function.
3292 (avr_read_fp): Ditto.
3293 (avr_init_extra_frame_info): Ditto.
3294 (avr_pop_frame): Ditto.
3295 (avr_frame_saved_pc): Ditto.
3296 (avr_saved_pc_after_call): Ditto.
3297 (avr_push_return_address): Ditto.
3298 (avr_frame_chain): Ditto.
3299 (avr_store_struct_return): Ditto.
3300 (avr_push_arguments): Ditto.
3301 (avr_scan_prologue): Update comments. Changed to set up the info for
3302 cache unwinding. Now returns end of prologue PC.
3303 (avr_skip_prologue): Better handling of functions lacking a prologue
3304 by using avr_scan_prologue.
3305 (avr_scan_arg_moves): New function.
3306 (avr_saved_regs_unwinder): Ditto.
3307 (avr_frame_unwind_cache): Ditto.
3308 (avr_unwind_pc): Ditto.
3309 (avr_frame_this_id): Ditto.
3310 (avr_frame_prev_register): Ditto.
3311 (avr_frame_p): Ditto.
3312 (avr_frame_base_address ): Ditto.
3313 (avr_unwind_dummy_id): Ditto.
3314 (avr_push_dummy_code): Ditto.
3315 (push_stack_item): Ditto.
3316 (pop_stack_item): Ditto.
3317 (avr_push_dummy_call): Ditto.
3318 (struct stack_item): Define.
3319 (avr_frame_unwind): Declare structure.
3320 (avr_frame_base): Ditto.
3321 (avr_gdbarch_init): Remove calls to
3322 set_gdbarch_deprecated_init_frame_pc,
3323 set_gdbarch_deprecated_target_read_fp,
3324 set_gdbarch_deprecated_dummy_write_sp,
3325 set_gdbarch_deprecated_fp_regnum,
3326 set_gdbarch_deprecated_push_arguments,
3327 set_gdbarch_deprecated_push_return_address,
3328 set_gdbarch_deprecated_pop_frame,
3329 set_gdbarch_deprecated_store_struct_return,
3330 set_gdbarch_deprecated_frame_init_saved_regs,
3331 set_gdbarch_deprecated_init_extra_frame_info,
3332 set_gdbarch_deprecated_frame_chain,
3333 set_gdbarch_deprecated_frame_saved_pc,
3334 set_gdbarch_deprecated_saved_pc_after_call.
3335 Add calls to set_gdbarch_push_dummy_call,
3336 set_gdbarch_push_dummy_code,
3337 frame_unwind_append_predicate,
3338 frame_base_set_default,
3339 set_gdbarch_unwind_dummy_id,
3340 set_gdbarch_unwind_pc.
3343 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3345 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3346 registers for H8/300S.
3347 (h8300_print_registers_info): Ditto.
3348 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3350 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3352 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3353 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3354 (lin_lwp_wait): Likewise. Update comments.
3355 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3356 (pull_pid_from_list, linux_record_stopped_pid): New.
3358 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3360 * ada-lang.c (scan_discrim_bound): Name first argument.
3361 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3362 declared by ALL_BLOCK_SYMBOLS.
3364 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3366 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3367 ("regcache.h"): Include it.
3368 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3370 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3372 * NEWS: Mention gdbserver detach change and "disconnect" command.
3373 * infcmd.c (disconnect_command): New function.
3374 (_initialize_infcmd): Add ``disconnect'' command.
3375 * remote.c (remote_async_detach): Delete.
3376 (remote_detach): Merge remote_async_detach.
3377 (remote_disconnect): New.
3378 (init_remote_ops): Set to_disconnect.
3379 (init_remote_cisco_ops): Likewise.
3380 (init_remote_async_ops): Likewise. Use remote_detach.
3381 * target.c (cleanup_target): Default to_disconnect.
3382 (update_current_target): Inherit to_disconnect.
3383 (target_disconnect, debug_to_disconnect): New functions.
3384 (setup_target_debug): Set to_disconnect.
3385 * target.h (struct target_ops): Add to_disconnect.
3386 (target_disconnect): Add prototype.
3388 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3390 * breakpoint.c (insert_catchpoint): New function.
3391 (insert_breakpoints): Use catch_exceptions to call
3392 insert_catchpoint. Disable catchpoints if they fail to insert.
3394 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3396 * symfile.c (reread_symbols): Clear sym_private.
3398 2003-06-17 Andrew Cagney <cagney@redhat.com>
3400 * trad-frame.h (struct frame_info): Add opaque declaration.
3401 * remote-fileio.h (struct cmd_list_element): Add opaque
3403 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3406 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3408 * remote.c (remote_prepare_to_store): Replace call to
3409 deprecated_read_register_bytes with multiple regcache_raw_read
3412 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3414 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3415 (nto_find_and_open_solib): Likewise.
3416 (nto_init_solib_absolute_prefix): Likewise.
3417 (_initialize_nto_tdep): Fix indentation.
3419 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3421 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3423 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3425 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3427 2003-06-17 Jim Blandy <jimb@redhat.com>
3429 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3431 2003-06-16 Theodore A. Roth <troth@openavr.org>
3433 * avr-tdep.c (avr_extract_return_value): New function.
3434 (avr_gdbarch_init): Set extract_return_value method.
3436 2003-06-16 Andrew Cagney <cagney@redhat.com>
3438 * frame.h (deprecated_get_next_frame_hack): Declare.
3439 * frame.c (legacy_saved_regs_prev_register): Only require
3440 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3441 there are always saved regs.
3442 (deprecated_generic_get_saved_register): Do not require
3443 DEPRECATED_FRAME_INIT_SAVED_REGS.
3444 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3445 use frame ID unwind instead.
3446 (deprecated_get_next_frame_hack): New function.
3448 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3450 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3451 (h8300_push_dummy_call): ...this function. Some minor optimization.
3452 (h8300_push_return_address): Remove.
3453 (h8300_gdbarch_init): Remove calls to
3454 set_gdbarch_deprecated_dummy_write_sp,
3455 set_gdbarch_deprecated_push_arguments and
3456 set_gdbarch_deprecated_push_return_address.
3457 Add call to set_gdbarch_push_dummy_call.
3459 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3461 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3462 (E_PSEUDO_EXR_REGNUM): Ditto.
3463 (h8300_is_argument_spill): Check for instructions moving argument
3464 registers into safe registers.
3465 (h8300_skip_prologue): Check for stm instruction to push registers
3466 used for register variables onto stack.
3467 (gdb_print_insn_h8300): Remove.
3468 (h8300_examine_prologue): Add a comment.
3469 (h8300_register_name): Take pseudo registers into account.
3470 (h8300s_register_name): Ditto.
3471 (h8300sx_register_name): Ditto.
3472 (h8300_print_register): Ditto.
3473 (h8300_print_registers_info): Define "nice" printing order.
3474 (h8300_saved_pc_after_call): Take pseudo registers into account.
3475 (h8300_register_type): Ditto. Return type used for remote connection
3476 when requesting real CCR or EXR register, return actual type when
3477 requesting pseudo CCR or EXR.
3478 (h8300_pseudo_register_read): New function.
3479 (h8300_pseudo_register_write): Ditto.
3480 (h8300_dbg_reg_to_regnum): Ditto.
3481 (h8300s_dbg_reg_to_regnum): Ditto.
3482 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3483 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3484 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3485 set_gdbarch_print_insn architecture dependent.
3486 Call set_gdbarch_pseudo_register_read and
3487 set_gdbarch_pseudo_register_write.
3488 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3490 2003-06-16 Andrew Cagney <cagney@redhat.com>
3492 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3493 * gdbarch.h, gdbarch.c: Re-generate.
3494 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3495 * s390-tdep.c (s390_gdbarch_init): Update.
3496 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3497 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3498 * mips-tdep.c (mips_gdbarch_init): Update.
3499 * mcore-tdep.c (mcore_gdbarch_init): Update.
3500 * cris-tdep.c (cris_gdbarch_init): Update.
3501 * infcall.c (call_function_by_hand): Update.
3502 * ia64-tdep.c (ia64_push_arguments): Update comment.
3503 * frame.c (legacy_get_prev_frame): Do not assume
3504 SAVE_DUMMY_FRAME_TOS_P.
3505 * dummy-frame.c (find_dummy_frame): Update comment.
3507 2003-06-16 Andrew Cagney <cagney@redhat.com>
3509 * regcache.c (do_cooked_read): Do not use register_valid_p.
3511 2003-06-15 Theodore A. Roth <troth@openavr.org>
3513 * avr-tdep.c (avr_register_type): Remove a blank line.
3514 (avr_scan_prologue): Correct some comments.
3516 2003-06-15 Theodore A. Roth <troth@openavr.org>
3518 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3520 Properly scan prologues generated by gcc with the -mcall-prologues
3522 Add code to scan -mcall-prologues for mega devices.
3524 2003-06-15 Theodore A. Roth <troth@openavr.org>
3526 * avr-tdep.c (avr_register_byte): Delete function.
3527 (avr_register_raw_size): Delete function.
3528 (avr_register_virtual_size): Delete function.
3529 (avr_register_virtual_type): Delete function.
3530 (avr_register_type): New function.
3531 (avr_address_to_pointer): Remove unused code.
3532 (avr_read_fp): Need to read FP as two separate bytes due to change to
3533 avr_register_type() usage.
3534 (avr_gdbarch_init): Don't set deprecated_register_size.
3535 Don't set deprecated_register_bytes.
3536 Don't set deprecated_register_byte.
3537 Don't set deprecated_register_raw_size.
3538 Don't set deprecated_max_register_raw_size.
3539 Don't set deprecated_register_virtual_size.
3540 Don't set deprecated_max_register_virtual_size.
3541 Don't set deprecated_register_virtual_type.
3542 Set register_type method.
3544 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3546 * Makefile.in (linux-nat.o): Add rule.
3547 * linux-nat.c: New file.
3548 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3549 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3550 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3551 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3552 * config/arm/linux.mh (NATDEPFILES): Likewise.
3553 * config/i386/linux.mh (NATDEPFILES): Likewise.
3554 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3555 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3556 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3557 * config/mips/linux.mh (NATDEPFILES): Likewise.
3558 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3559 * config/s390/s390.mh (NATDEPFILES): Likewise.
3560 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3562 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3564 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3565 replace out-of-date comment.
3567 2003-06-15 Andrew Cagney <cagney@redhat.com>
3569 * rdi-share/host.h (Fail): Change to a varargs function.
3570 * remote-rdi.c (Fail): Update.
3572 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3574 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3575 (i386_convert_register_p, i386_register_to_value,
3576 i386_register_from_value): Handle types longer than 8 bytes.
3578 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3580 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3581 Move floating-point code to new function in i387-tdep.c.
3582 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3583 New functions containing code moved here from i386-tdep.c.
3584 * i387-tdep.h: Add opaque declaration for `struct type'.
3585 (i387_register_to_value, i387_value_to_register): New prototypes.
3586 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3587 (x86_64_init_abi): Set convert_register_p, register_to_value and
3588 value_to_register here.
3590 2003-06-14 Andrew Cagney <cagney@redhat.com>
3592 * mips-tdep.c (mips_register_to_value): Make static.
3593 (mips_value_to_register): Make static.
3594 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3595 * ia64-tdep.c (ia64_register_raw_size): Make static.
3596 (ia64_register_virtual_size): Make static.
3597 (ia64_register_byte): Make static.
3598 * i387-tdep.c: Include "i387-tdep.h".
3599 (print_387_control_word): Delete function.
3600 (print_387_status_word): Delete function.
3601 (print_387_status_bits): Delete function.
3602 (print_387_control_bits): Delete function.
3603 * Makefile.in (i387-tdep.o): Update dependencies.
3604 * rdi-share/host.h (Fail): Declare.
3605 * remote-rdi.c (Fail): Update to match declaration.
3607 2003-06-14 Andrew Cagney <cagney@redhat.com>
3609 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3610 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3611 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3612 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3613 * README: Delete reference to remote-array.
3614 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3615 (remote-array.o): Delete target.
3616 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3617 * remote-array.c: Delete file.
3619 2003-06-14 Andrew Cagney <cagney@redhat.com>
3620 Mark Kettenis <kettenis@gnu.org>
3622 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3623 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3624 parameter with "frame".
3625 * gdbarch.h, gdbarch.c: Re-generate.
3626 * frame.h (put_frame_register): Declare.
3627 * frame.c (put_frame_register): New function.
3628 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3629 (legacy_register_to_value): Rewrite, use "frame" to get the
3631 (legacy_value_to_register): Rewrite, use "frame" to find the
3632 register's location before storing.
3633 * arch-utils.h (legacy_convert_register_p): Update.
3634 (legacy_register_to_value, legacy_value_to_register): Update.
3635 * findvar.c (value_from_register): Rewrite, eliminate use of
3636 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3637 "frame" to REGISTER_TO_VALUE.
3638 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3639 lval_reg_frame_relative + lval_register branch of the switch. Do
3640 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3641 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3642 I386_EDI_REGNUM): New defines.
3643 (i386_next_regnum, i386_convert_register_p,
3644 i386_register_to_value, i386_value_to_register): New functions.
3645 (i386_register_convertible, i386_register_convert_to_virtual,
3646 i386_convert_to_raw): Remove functions.
3647 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3648 value_to_register instead of register_convertible,
3649 register_convert_to_virtual and register_convert_to_raw.
3650 * mips-tdep.c (mips_convert_register_p): New function.
3651 (mips_value_to_register): Replace mips_register_convert_from_type.
3652 (mips_register_to_value): Replace mips_register_convert_to_type.
3653 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3655 * alpha-tdep.c (alpha_convert_register_p): Update.
3656 (alpha_value_to_register): Update, store the register.
3657 (alpha_register_to_value): Update, fetch the register.
3659 2003-06-14 Theodore A. Roth <troth@openavr.org>
3661 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3662 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3663 Don't set deprecated_call_dummy_words.
3664 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3665 Don't set remote_translate_xfer_address.
3666 (avr_io_reg_read_command): Remove commented out debug printf.
3669 2003-06-14 Theodore A. Roth <troth@openavr.org>
3671 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3672 causes gdb to seg fault.
3674 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3676 * sparc-nat.c (fetch_inferior_registers): Correct
3677 a reference to "registers".
3679 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3681 * Makefile.in (exc_request_U_h): Define
3682 (exc_request_S_h): Likewise.
3683 (msg_reply_S_h): Likewise.
3684 (msg_U_h): Likewise.
3685 (notify_S_h): Likewise.
3686 (process_reply_S_h): Likewise.
3687 (gnu-nat.o): Depend on gdb_obstack_h
3688 * gnu-nat.c: Include "gdb_obstack.h".
3690 2003-06-13 Andrew Cagney <cagney@redhat.com>
3692 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3693 * gdbarch.h, gdbarch.c: Re-generate.
3695 2003-06-13 Andrew Cagney <cagney@redhat.com>
3697 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3698 when deprecated REGISTER macros can be deleted.
3699 * gdbarch.h, gdbarch.c: Re-generate.
3701 2003-06-13 Jim Blandy <jimb@redhat.com>
3703 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3704 Linux entry point symbols for _dl_debug_state, too.
3706 2003-06-13 Andrew Cagney <cagney@redhat.com>
3708 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3709 available, do not use the FP register, and always save the TOS.
3710 * dummy-frame.c (dummy_frame_this_id): Do not assert
3711 SAVE_DUMMY_FRAME_TOS.
3712 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3713 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3714 (i386_push_dummy_call): Add 8 to the returned SP.
3715 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3716 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3717 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3718 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3719 (x86_64_push_dummy_call): Return "sp + 16".
3720 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3721 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3722 save_dummy_frame_tos.
3724 2003-06-13 Jim Blandy <jimb@redhat.com>
3726 * frv-tdep.c (frv_use_struct_convention): Delete static
3727 declaration for function deleted in my change of 2003-06-12.
3729 2003-06-13 Theodore A. Roth <troth@openavr.org>
3731 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3732 (avr_pointer_to_address): Shift code addrs left 1 bit.
3733 (avr_convert_from_func_ptr_addr): Delete function since operation is
3734 better handled by avr_address_to_pointer and avr_pointer_to_address.
3735 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3737 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3739 From Kelley Cook <kelleycook@wideopenwest.com>:
3740 * configure.host: Accept i[34567]86 variants.
3741 * configure.tgt: Likewise.
3742 * nlm/configure.in: Likewise.
3743 * nlm/configure: Regenerated.
3745 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3747 * arm-tdep.c (solib-svr4.h): Dont' include it.
3748 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3749 * arm-linux-tdep.c: ... here. Make static.
3750 (arm_linux_init_abi): Register it.
3751 (solib-svr4.h): Include it.
3752 * Makefile.in: Update dependencies.
3753 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3754 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3756 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3758 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3759 indicate registers used for return values.
3760 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3761 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3763 (h8300_init_extra_frame_info): Ditto.
3764 (h8300_frame_locals_address): Removed.
3765 (h8300_frame_args_address): Removed.
3766 (h8300_extract_return_value): Use new regcache structure. Only care
3768 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3769 (h8300_store_return_value): Use new regcache structure. Only care
3771 (h8300h_store_return_value): Same function for 32 bit CPUs.
3772 (h8300_store_struct_return): Removed.
3773 (h8300_extract_struct_value_address): Use new regcache structure.
3774 (h8300h_extract_struct_value_address): Removed.
3775 (h8300_push_dummy_code): New function.
3776 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3777 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3778 set_gdbarch_store_return_value architecture dependent.
3779 Call set_gdbarch_push_dummy_code and
3780 set_gdbarch_extract_struct_value_address.
3781 Remove calls to set_gdbarch_frame_args_address,
3782 set_gdbarch_frame_locals_address,
3783 set_gdbarch_deprecated_store_struct_return,
3784 set_gdbarch_deprecated_extract_return_value,
3785 set_gdbarch_deprecated_extract_struct_value_address,
3786 set_gdbarch_deprecated_call_dummy_words and
3787 set_gdbarch_deprecated_sizeof_call_dummy_words.
3789 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3791 * h8300-tdep.c (h8300_register_byte): Remove.
3792 (h8300h_register_byte): Remove.
3793 (h8300_register_virtual_type): Remove. Substitute by...
3794 (h8300_register_type): New function.
3795 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3796 (h8300h_extract_struct_value_address): Ditto.
3797 (h8300_gdbarch_init): Drop calls to
3798 set_gdbarch_deprecated_register_byte and
3799 set_gdbarch_deprecated_register_virtual_type.
3800 Add call to set_gdbarch_register_type.
3802 2003-06-13 Andrew Cagney <cagney@redhat.com>
3804 * gdbarch.sh: Update comments on registers.
3805 (deprecated_register_byte): Rename register_byte.
3806 (deprecated_register_raw_size): Rename register_raw_size.
3807 (deprecated_register_virtual_size): Rename register_virtual_size.
3808 (deprecated_register_virtual_type): Rename register_virtual_type.
3809 * gdbarch.h, gdbarch.c: Re-generate.
3810 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3811 * vax-tdep.c (vax_gdbarch_init): Update.
3812 * v850-tdep.c (v850_gdbarch_init): Update.
3813 * sparc-tdep.c (sparc_gdbarch_init): Update.
3814 * sh-tdep.c (sh_gdbarch_init): Update.
3815 * s390-tdep.c (s390_gdbarch_init): Update.
3816 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3817 * ns32k-tdep.c: Update.
3818 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3819 * mips-tdep.c (mips_gdbarch_init): Update.
3820 * mcore-tdep.c (mcore_gdbarch_init): Update.
3821 * m68k-tdep.c (m68k_gdbarch_init): Update.
3822 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3823 * ia64-tdep.c (ia64_gdbarch_init): Update.
3824 * hppa-tdep.c (hppa_gdbarch_init): Update.
3825 * h8300-tdep.c (h8300_gdbarch_init): Update.
3826 * frv-tdep.c (frv_gdbarch_init): Update.
3827 * cris-tdep.c (cris_gdbarch_init): Update.
3828 * avr-tdep.c (avr_gdbarch_init): Update.
3829 * alpha-tdep.c (alpha_gdbarch_init): Update.
3830 * arm-tdep.c (arm_gdbarch_init): Update.
3832 2003-06-13 Andrew Cagney <cagney@redhat.com>
3834 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3835 mips_o32_use_struct_convention with always_use_struct_convention.
3837 2003-06-12 David Carlton <carlton@kealia.com>
3839 * cp-namespace.c (cp_set_block_scope): Comment out
3840 processing_has_namespace_info branch.
3842 2003-06-12 Jim Blandy <jimb@redhat.com>
3844 Recognize and skip 64-bit PowerPC Linux linkage functions.
3845 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3846 insn_pattern, insns_match_pattern, d_field, ds_field): New
3847 functions, macros, and types for working with PPC instructions.
3848 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3849 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3850 ppc64_skip_trampoline_code): New functions, variables, and macros
3851 for recognizing and skipping linkage functions.
3852 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3853 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3855 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3856 register offsets for both the 32- and 64-bit interfaces.
3858 Actually finish the job started by my change of 2003-05-29.
3859 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3860 other #definition of this.
3861 (ppc_linux_skip_trampoline_code): Remove declaration.
3862 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3864 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3867 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3868 'long' on ppc64-*-linux*.
3870 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3871 isn't #defined, assume the register doesn't exist: act as if
3872 tdep->ppc_mq_regnum were -1.
3874 * configure.host, configure.tgt: Add entries for
3875 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3877 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3880 * arch-utils.c (always_use_struct_convention): New function.
3881 * arch-utils.h (always_use_struct_convention): New prototype.
3882 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3883 (alpha_gdbarch_init): Register always_use_struct_convention,
3884 instead of alpha_use_struct_convention.
3885 * cris-tdep.c (cris_use_struct_convention): Delete.
3886 (cris_gdbarch_init): Register always_use_struct_convention,
3887 instead of cris_use_struct_convention.
3888 * frv-tdep.c (frv_use_struct_convention): Delete.
3889 (frv_gdbarch_init): Register always_use_struct_convention,
3890 instead of frv_use_struct_convention.
3891 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3892 (h8300_gdbarch_init): Register always_use_struct_convention,
3893 instead of h8300_use_struct_convention.
3894 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3895 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3896 instead of mips_o32_use_struct_convention.
3898 2003-06-12 Andrew Cagney <cagney@redhat.com>
3900 * wince.c: Include "mips-tdep.h".
3901 * mips-tdep.h (mips_next_pc): Declare.
3902 * mcore-tdep.c: Make more local functions static.
3903 * Makefile.in (wince.o): Update dependencies.
3905 2003-06-12 David Carlton <carlton@kealia.com>
3907 * symtab.c (lookup_symbol_aux_minsyms): Replace
3908 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3909 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3910 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3911 SYMBOL_NATURAL_NAME.
3913 2003-06-12 Andreas Schwab <schwab@suse.de>
3915 * Makefile.in (tuiDisassem.o): Update dependencies.
3917 2003-06-12 David Carlton <carlton@bactrian.org>
3919 * symtab.h: Delete declaration of make_symbol_overload_list.
3920 Add declaration of lookup_partial_symbol.
3921 * symtab.c (remove_params): Move to cp-support.c.
3922 (overload_list_add_symbol, make_symbol_overload_list)
3923 (sym_return_val_size, sym_return_val_index): Ditto.
3924 (lookup_partial_symbol): Make extern.
3925 * cp-support.h: Add declaration of make_symbol_overload_list.
3926 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3927 symtab.h, and block.h.
3928 (remove_params): Move here from symtab.c.
3929 (overload_list_add_symbol, make_symbol_overload_list)
3930 (sym_return_val_size, sym_return_val_index): Ditto.
3931 * valops.c: Include cp-support.h.
3932 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3933 frame_h, and block_h.
3934 (valops.o): Depend on cp_support_h.
3936 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3938 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3939 substitute by NUM_REGS throughout.
3940 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3941 (h8300s_register_name): New function for H8S registers.
3942 (h8300sx_register_name): Ditto for H8SX registers.
3943 (h8300_print_register): Revise register printing, avoid depending
3945 (h8300_register_byte): Only care for H8/300 registers.
3946 (h8300h_register_byte): New function for any other architecture.
3947 (h8300_register_raw_size): Remove.
3948 (h8300_register_virtual_type): Revise to return actually useful
3950 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3951 (h8300h_extract_struct_value_address): New function for any other
3953 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3954 set_gdbarch_register_name, set_gdbarch_register_byte,
3955 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3956 Remove calls to set_gdbarch_deprecated_register_size,
3957 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3958 set_gdbarch_deprecated_max_register_raw_size,
3959 set_gdbarch_register_virtual_size and
3960 set_gdbarch_deprecated_max_register_virtual_size entirely.
3961 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3962 set_gdbarch_long_double_bit.
3964 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3966 * doublest.c (convert_doublest_to_floatformat): When dealing
3967 with the implied integer bit, only alter mant_bits if we are
3968 processing a full 32 bits of mantissa.
3970 2003-06-11 David Carlton <carlton@bactrian.org>
3972 * dictionary.h: New.
3973 * dictionary.c: New.
3974 * block.h: Add opaque declaration for struct dictionary.
3975 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3977 (BLOCK_DICT): New macro.
3978 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3979 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3981 (ALL_BLOCK_SYMBOLS): Update definition.
3982 * Makefile.in (SFILES): Add dictionary.c.
3983 (dictionary_h): New.
3984 (COMMON_OBS): Add dictionary.o.
3985 (dictionary.o): New.
3986 (ada-lang.o): Depend on dictionary_h.
3987 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3988 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3989 (mi-cmd-stack.o): Ditto.
3990 (gdbtk-cmds.o): Update dependencies.
3991 (gdbtk-stack.o): Ditto.
3992 * ada-lang.c: Include dictionary.h.
3993 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3994 (fill_in_ada_prototype, debug_print_block): Ditto.
3995 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3996 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3998 * mdebugread.c: Include dictionary.h.
3999 (struct parse_stack): Delete 'maxsyms' member.
4000 (parse_symbol): Update calls to new_block. Delete calls to
4001 shrink_block. Use dictionary methods.
4002 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4003 Update calls to new_symtab. Don't maintain maxsyms data.
4004 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4005 (add_symbol): Just call dict_add_symbol.
4006 (new_symtab): Delete 'maxsyms' argument.
4007 (new_symtab): Update calls to new_block.
4008 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4009 (shrink_block): Delete function.
4010 (fixup_sigtramp): Update call to new_block. Add symbol via
4012 * jv-lang.c: Include dictionary.h.
4013 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4014 appropriately. Set class_symtab->free_func. Make sure the
4015 blockvector is big enough to hold two blocks.
4016 (add_class_symtab_symbol): Use dictionary methods.
4017 (free_class_block): New function.
4018 (type_from_class): Replace explicit iteration by
4020 * symtab.h (struct symtab): Replace 'free_ptr' method by
4022 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4024 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4026 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4027 Include dictionary.h.
4028 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4029 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4031 * objfiles.c: Include dictionary.h.
4032 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4033 * buildsym.c: Include dictionary.h.
4034 (finish_block): Use dictionary methods.
4035 (end_symtab): Set free_func to NULL, not free_ptr.
4036 * tracepoint.c: Include dictionary.h.
4037 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4038 (scope_info): Ditto.
4039 * stack.c: Include dictionary.h.
4040 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4041 (print_block_frame_labels, print_frame_arg_vars)
4042 (print_frame_args): Ditto.
4043 * symmisc.c (free_symtab_block): Use dictionary methods.
4044 (dump_symtab): Ditto.
4045 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4046 Include dictionary.h.
4047 * symfile.h: Delete declarations of sort_block_syms,
4049 * symfile.c (sort_block_syms): Delete.
4050 (sort_symtab_syms): Delete.
4051 * symtab.c: Include dictionary.h.
4052 (lookup_block_symbol): Use dictionary iterators.
4053 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4054 (search_symbols, make_symbol_completion_list): Ditto.
4055 (make_symbol_overload_list): Ditto.
4056 * valops.c (value_of_local): Use dict_empty.
4057 Include dictionary.h.
4059 2003-06-11 J. Brobecker <brobecker@gnat.com>
4061 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4063 2003-06-11 David Carlton <carlton@bactrian.org>
4065 * block.h (BLOCK_SHOULD_SORT): Delete.
4066 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4068 * ada-lang.c (ada_add_block_symbols): Ditto.
4069 * symfile.c (sort_block_syms): Delete.
4070 (sort_symtab_syms): Ditto.
4071 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4073 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4074 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4075 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4076 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4077 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4078 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4079 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4081 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4083 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4086 2003-06-11 Andrew Cagney <cagney@redhat.com>
4088 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4089 REGISTER_CONVERTIBLE.
4090 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4091 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4092 * gdbarch.h, gdbarch.c: Re-generate.
4093 * arch-utils.h (deprecated_register_convertible_not): Rename
4094 generic_register_convertible_not.
4095 * arch-utils.c (deprecated_register_convertible_not): Rename
4096 generic_register_convertible.
4097 (legacy_convert_register_p, legacy_register_to_value): Update.
4098 * sh-tdep.c (sh64_push_arguments): Update.
4099 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4100 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4101 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4102 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4103 * arch-utils.c (legacy_value_to_register): Update.
4104 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4105 (rs6000_register_convert_to_raw): Make parameter "from" const.
4106 * mips-tdep.c (mips_gdbarch_init): Update.
4107 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4108 * infcmd.c (default_print_registers_info): Update.
4109 * ia64-tdep.c (ia64_gdbarch_init): Update.
4110 (ia64_register_convert_to_raw): Make parameter "from" const.
4111 * i386-tdep.c (i386_gdbarch_init): Update.
4112 (i386_register_convert_to_raw): Update.
4114 2003-06-11 Andrew Cagney <cagney@redhat.com>
4116 * remote-fileio.c: Include "remote-fileio.h".
4117 * Makefile.in (remote-fileio.o): Update dependencies.
4118 (remote_fileio_h): Fix typo.
4120 2003-06-11 Andrew Cagney <cagney@redhat.com>
4122 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4123 (xstormy16_save_dummy_frame_tos): Make static.
4124 (_initialize_xstormy16_tdep): Add declaration.
4125 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4126 * v850-tdep.c: Make local functions static.
4127 (_initialize_v850_tdep): Add declaration.
4128 * sparc-tdep.c: Make local functions static.
4129 (_initialize_sparc_tdep): Add declaration.
4130 * sh-tdep.c: Make local functions static.
4131 (_initialize_sh_tdep): Add declaration.
4132 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4133 * s390-tdep.c: Make local functions static.
4134 (_initialize_s390_tdep): Add declaration.
4135 * dbxread.c (find_stab_function_addr): Make static.
4136 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4137 * ocd.c (_initialize_remote_ocd): Add declaration.
4138 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4139 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4140 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4141 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4142 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4143 * remote-array.c (_initialize_array): Add declaration.
4144 (_initialize_remote_monitors): Add declaration.
4145 * remote-mips.c: Make local functions static.
4146 (_initialize_remote_mips): Add declaration.
4147 * mcore-tdep.c: Make all local functions static.
4148 (_initialize_mcore_tdep): Add declaration.
4149 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4150 * abug-rom.c (_initialize_abug_rom): Add declaration.
4151 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4152 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4153 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4154 * remote-est.c (_initialize_est): Add declaration.
4155 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4156 (m68hc11_call_dummy_address): Make static.
4157 * ia64-tdep.c: Make local functions static.
4158 (_initialize_ia64_tdep): Add declaration.
4159 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4160 * monitor.c (monitor_wait_filter): Make static.
4161 (_initialize_remote_monitors): Add declaration.
4162 * remote-hms.c (_initialize_remote_hms): Add declaration.
4163 * remote-e7000.c (fetch_regs_from_dump): Make static.
4164 (expect_n): Make static.
4165 (_initialize_remote_e7000): Add declaration.
4166 * ser-e7kpc.c: Always include "defs.h".
4167 (_initialize_ser_e7000pc): Add declaration.
4168 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4169 * cris-tdep.c: Make all but one function static.
4170 (_initialize_cris_tdep): Add declaration.
4171 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4172 * solib.c (update_solib_list): Make static.
4173 (_initialize_solib): Add declaration.
4174 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4175 (_initialize_avr_tdep): Add declaration.
4176 * remote-rdi.c (voiddummy): Make static.
4177 (_initialize_remote_rdi): Add declaration.
4178 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4179 * remote-rdp.c (send_rdp): Make static.
4180 (_initialize_remote_rdp): Add declaration.
4181 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4183 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4185 * remote-fileio.c: Make ari happy.
4187 2003-06-10 J. Brobecker <brobecker@gnat.com>
4189 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4190 fetching the trailing bytes of the buffer we are about to write.
4192 2003-06-10 Andrew Cagney <cagney@redhat.com>
4194 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4195 * Makefile.in (remote-fileio.o): Update dependencies.
4196 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4197 include <setjmp.h>, or <sys/types.h> conditional on USG.
4198 (remote_fio_jmp_buf): Delete global variable.
4200 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4201 Martin M. Hunt <hunt@redhat.com>
4203 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4204 (SFILES): Add remote-fileio.c.
4205 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4206 dependencies for building remote.o.
4207 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4208 * remote-fileio.h: New header file defining remote File-I/O interface.
4209 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4210 static storage class.
4211 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4213 (_initialize_remote): Call initialize_remote_fileio().
4214 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4215 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4216 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4217 (captured_main): Initialize new ui_files.
4218 * ui-file.c: Add read and fgets input functions.
4219 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4220 (null_file_read): New function.
4221 (ui_file_read): New function.
4222 (set_ui_file_read): New function.
4223 (stdio_file_read): New function.
4224 * ui-file.h: New type ui_file_read_ftype.
4225 (set_ui_file_read): Declare.
4226 (ui_file_read): Declare.
4228 2003-06-09 Andrew Cagney <cagney@redhat.com>
4230 * frame.h (deprecated_unwind_get_saved_register): Rename
4231 generic_unwind_get_saved_register, update comments.
4232 * mips-tdep.c (mips_get_saved_register): Update.
4233 * frame.c (deprecated_unwind_get_saved_register): Update.
4235 2003-06-09 Andrew Cagney <cagney@redhat.com>
4237 * vax-tdep.c (vax_frame_locals_address): Delete function.
4238 (vax_gdbarch_init): Do not set frame_locals_address.
4239 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4240 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4241 * s390-tdep.c (s390_frame_args_address): Delete function.
4242 (s390_gdbarch_init): Do not set frame_args_address or
4243 frame_locals_address.
4244 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4245 (ns32k_gdbarch_init): Do not set frame_locals_address.
4246 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4247 (hppa_frame_locals_address): Delete function.
4248 (hppa_gdbarch_init): Do not set frame_args_address, or
4249 frame_locals_address.
4250 * arm-tdep.c (arm_frame_args_address): Delete.
4251 (arm_frame_locals_address): Delete.
4252 (arm_gdbarch_init): Do not set frame_args_address, or
4253 frame_locals_address.
4255 2003-06-09 Andrew Cagney <cagney@redhat.com>
4257 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4258 * gdbarch.h, gdbarch.c: Re-generate.
4259 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4260 * arch-utils.c (frame_num_args_unknown): Delete function.
4261 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4262 (frame_info): Use FRAME_NUM_ARGS_P.
4263 * arm-tdep.c (arm_frame_num_args): Delete function.
4264 (arm_gdbarch_init): Do not set frame_num_args.
4265 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4266 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4267 (hppa_gdbarch_init): Do not set frame_num_args.
4268 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4269 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4270 frame_num_args to default frame_num_args_unknown.
4271 * v850-tdep.c (v850_gdbarch_init): Ditto.
4272 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4273 * sh-tdep.c (sh_gdbarch_init): Ditto.
4274 * s390-tdep.c (s390_gdbarch_init): Ditto.
4275 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4276 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4277 * mips-tdep.c (mips_gdbarch_init): Ditto.
4278 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4279 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4280 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4281 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4282 * i386-tdep.c (i386_gdbarch_init): Ditto.
4283 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4284 * frv-tdep.c (frv_gdbarch_init): Ditto.
4285 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4286 * cris-tdep.c (cris_gdbarch_init): Ditto.
4287 * avr-tdep.c (avr_gdbarch_init): Ditto.
4288 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4290 2003-06-09 Andrew Cagney <cagney@redhat.com>
4292 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4293 (print_frame_args): Moved to "stack.c".
4294 * stack.c: Include "gdb_assert.h".
4295 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4296 (print_frame_args): Moved from "printcmd.c".
4297 * frame.h (print_frame_args): Delete declaration.
4298 * Makefile.in (stack.o): Update dependencies.
4300 2003-06-08 Andrew Cagney <cagney@redhat.com>
4302 * frame.c (get_prev_frame): Remove reference to
4303 frame_args_address_correct in comments.
4304 * frame-base.c (default_frame_args_address): Delete code
4305 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4306 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4307 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4308 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4309 (vax_frame_args_address_correct): Delete declaration.
4311 2003-06-08 Andrew Cagney <cagney@redhat.com>
4313 * gdbarch.sh (UNWIND_SP): Add.
4314 * gdbarch.h, gdbarch.c: Re-generate.
4315 * frame.c (frame_sp_unwind): New function.
4316 (get_frame_sp): New function.
4317 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4318 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4319 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4321 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4322 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4324 2003-06-08 Andrew Cagney <cagney@redhat.com>
4326 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4329 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4330 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4331 * config/m68k/tm-sun3.h: Update.
4332 * config/m68k/tm-m68klynx.h: Update.
4333 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4335 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4336 trad_frame". Update comments.
4337 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4338 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4339 (trad_frame_register_value, trad_frame_prev_register): Update.
4341 2003-06-08 Andrew Cagney <cagney@redhat.com>
4343 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4344 from GCC's acinclude.m4.
4345 * configure.in: Check for getopt's delcaration.
4346 * aclocal.m4, config.in, configure: Re-generate.
4347 * main.c (error_init): Delete declaration.
4348 * defs.h (error_init): Declare.
4349 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4350 (rs6000_convert_from_func_ptr_addr): Make static.
4351 (_initialize_rs6000_tdep): Add declaration.
4352 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4353 (show_commands, set_verbose, show_history): Delete declaration.
4354 * top.h (set_verbose): Add declaration.
4355 (show_history, set_history, show_commands): Add declaration.
4356 (do_restore_instream_cleanup): Add declaration.
4357 * objc-lang.c (specialcmp): Make static.
4358 (print_object_command): Make static.
4359 (find_objc_msgsend): Make static.
4360 (find_objc_msgcall_submethod_helper): Make static.
4361 (find_objc_msgcall_submethod): Make static.
4362 (_initialize_objc_language): Add declaration.
4363 (find_implementation_from_class): Make static.
4364 (find_implementation): Make static.
4365 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4366 * objc-lang.h (lookup_struct_typedef): Add declaration.
4367 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4368 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4369 (do_restore_user_call_depth): Make static.
4370 (do_restore_instream_cleanup): Delete declaration.
4371 (dont_repeat): Delete declaration.
4372 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4373 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4374 * reggroups.c (_initialize_reggroup): Add declaration.
4375 * cp-support.c (_initialize_cp_support): Add declaration.
4376 * cp-abi.c (_initialize_cp_abi): Add declaration.
4377 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4378 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4379 (_initialize_gnu_v3_abi): Add declaration.
4380 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4381 (_initialize_gnu_v2_abi): Add declaration.
4382 * frame-base.c (_initialize_frame_base): Add declaration.
4383 * doublest.c (floatformat_from_length): Make static.
4384 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4385 * frame.c (create_sentinel_frame): Make static.
4386 (_initialize_frame): Add declaration.
4387 * top.c (do_catch_errors): Make static.
4388 (gdb_rl_operate_and_get_next_completion): Make static.
4389 * typeprint.c: Include "typeprint.h".
4390 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4391 (sentinel_frame_this_id): Make static.
4392 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4393 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4394 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4395 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4396 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4397 * maint.c (maintenance_print_architecture): Make static.
4398 * signals/signals.c (_initialize_signals): Add declaration.
4399 * std-regs.c (_initialize_frame_reg): Add declaration.
4400 * jv-exp.y (push_variable): ISO C definition.
4401 (push_qualified_expression_name): Ditto.
4402 * memattr.c (_initialize_mem): Add declaration.
4403 * remote.c (remote_check_watch_resources): Make static.
4404 (remote_stopped_by_watchpoint): Make static.
4405 (remote_stopped_data_address): Make static.
4406 * d10v-tdep.c (nr_dmap_regs): Make static.
4407 (a0_regnum): Make static.
4408 (d10v_frame_unwind_cache): Make static.
4409 (d10v_frame_p): Make static.
4410 * osabi.c (show_osabi): Make static.
4411 (_initialize_gdb_osabi): Add extern declaration.
4412 * gdbtypes.c (make_qualified_type): Make static.
4413 (safe_parse_type): Make static.
4414 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4415 * macrotab.c (macro_bcache_free): Make static.
4416 * interps.c (interp_set_quiet): Make static.
4417 (interpreter_exec_cmd): Make static.
4418 * stack.h (select_frame_command): New file.
4419 * stack.c: Include "stack.h".
4420 (select_frame_command_wrapper): Delete function.
4421 (select_frame_command): Make global.
4422 * infcall.c: Include "infcall.h".
4423 * linespec.c: Include "linespec.h".
4424 * symfile.c (sections_overlap): Make static.
4425 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4426 * charset.c (_initialize_charset): Add missing prototype.
4427 * regcache.c (init_legacy_regcache_descr): Make static.
4428 (do_regcache_xfree): Make static.
4429 (regcache_xfer_part): Make static.
4430 (_initialize_regcache): Add missing prototype.
4431 * breakpoint.c (parse_breakpoint_sals): Make static.
4432 (breakpoint_sals_to_pc): Make static.
4433 * interps.h (clear_interpreter_hooks): ISO C declaration.
4434 * Makefile.in (stack_h): Define.
4435 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4436 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4438 2003-06-08 Andrew Cagney <cagney@redhat.com>
4440 * Makefile.in (d10v-tdep.o): Update dependencies.
4441 (SFILES): Add trad-frame.c.
4442 (trad_frame_h): Define.
4443 (COMMON_OBS): Add trad-frame.o.
4444 (trad-frame.o): Specify dependencies.
4445 * d10v-tdep.c: Include "trad-frame.h".
4446 (saved_regs_unwinder): Delete function.
4447 (d10v_frame_prev_register): Use trad_frame_prev_register.
4448 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4449 trad_frame", delete "regs" and "prev_sp".
4450 (prologue_find_regs): Use trad-frame.
4451 * trad-frame.h, trad-frame.c: New files.
4453 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4455 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4457 2003-06-07 Adam Fedor <fedor@gnu.org>
4459 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4460 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4461 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4462 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4463 resolve_msgsend_super, resolve_msgsend_super_stret):
4466 2003-06-07 Andrew Cagney <cagney@redhat.com>
4468 * symfile.h: Re-indent, clean up comments.
4470 2003-06-07 Andrew Cagney <cagney@redhat.com>
4472 * inferior.h (deprecated_write_sp): Replace
4473 generic_target_write_sp.
4474 * regcache.c (deprecated_write_sp): Replace
4475 generic_target_write_sp.
4476 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4477 * vax-tdep.c (vax_gdbarch_init): Update.
4478 * v850-tdep.c (v850_gdbarch_init): Update.
4479 * sparc-tdep.c (sparc_gdbarch_init): Update.
4480 * sh-tdep.c (sh_gdbarch_init): Update.
4481 * s390-tdep.c (s390_gdbarch_init): Update.
4482 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4483 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4484 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4485 * mcore-tdep.c (mcore_gdbarch_init): Update.
4486 * m68k-tdep.c (m68k_gdbarch_init): Update.
4487 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4488 * ia64-tdep.c (ia64_gdbarch_init): Update.
4489 * h8300-tdep.c (h8300_gdbarch_init): Update.
4490 * frv-tdep.c (frv_gdbarch_init): Update.
4491 * cris-tdep.c (cris_gdbarch_init): Update.
4492 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4494 2003-06-07 Andrew Cagney <cagney@redhat.com>
4496 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4497 Assert that PC_REGNUM is valid.
4498 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4500 2003-06-07 Andrew Cagney <cagney@redhat.com>
4502 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4503 * gdbarch.h, gdbarch.c: Regenerate.
4504 * mn10300-tdep.c: Include "gdb_assert.h".
4505 (mn10300_read_fp): New function.
4506 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4507 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4508 * ia64-tdep.c: Include "gdb_assert.h".
4509 (ia64_read_fp): New function.
4510 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4511 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4512 * regcache.c (generic_target_read_sp): Delete function.
4513 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4514 * inferior.h (generic_target_read_sp): Delete declaration.
4515 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4516 generic_target_read_sp.
4517 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4518 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4519 * sh-tdep.c (sh_gdbarch_init): Ditto.
4520 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4521 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4523 2003-06-07 Andrew Cagney <cagney@redhat.com>
4525 * gdbarch.sh: Comment each field of startup_gdbarch.
4526 * gdbarch.h, gdbarch.c: Re-generate.
4528 2003-06-07 Andrew Cagney <cagney@redhat.com>
4530 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4531 * gdbarch.h, gdbarch.c: Re-generate.
4532 * regcache.c: Update comments on read_pc et.al.
4533 (generic_target_read_pc): Delete function.
4534 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4535 * inferior.h (generic_target_read_pc): Delete declaration.
4536 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4537 generic_target_read_pc.
4538 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4539 * sh-tdep.c (sh_gdbarch_init): Ditto.
4540 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4541 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4543 2003-06-07 Andrew Cagney <cagney@redhat.com>
4545 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4546 "index" with "special_local_sect". Use strcmp instead of STREQ.
4547 Append period to coments.
4549 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4551 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4552 (elfstab_offset_sections): Likewise.
4553 * gdb-stabs.h (stab_section_info): Likewise.
4554 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4555 * objfiles.c (objfile_relocate): Likewise.
4556 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4557 * remote.c (get_offsets): Likewise.
4558 (remote_cisco_objfile_relocate): Likewise.
4559 * somread.c (som_symfile_offsets): Likewise.
4560 * symfile.c (alloc_section_addr_info): New function.
4561 (build_section_addr_info_from_section_tab): Use it.
4562 (free_section_addr_info): Adjust.
4563 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4564 (syms_from_objfile): Allocate local_addr dynamically.
4565 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4567 (add_symbol_file_command): Allocate sect_opts dynamically.
4568 (reread_symbols): Avoid use of SECT_OFF_MAX.
4569 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4570 (alloc_section_addr_info): Declare it.
4571 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4572 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4574 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4576 2003-06-06 Andrew Cagney <cagney@redhat.com>
4578 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4579 (d10v_frame_unwind_cache): Do not set "return_pc".
4581 2003-06-06 Michael Snyder <msnyder@redhat.com>
4583 * h8300-tdep.c: Make tidy (long lines).
4585 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4587 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4588 to regcache_collect().
4590 2003-06-05 J. Brobecker <brobecker@gnat.com>
4592 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4593 pc_in_sigtramp multiarch method.
4594 (hppa_hpux_som_init_abi): Use it.
4595 (hppa_hpux_elf_init_abi): Likewise.
4596 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4597 macro has been multiarched.
4598 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4599 macro here, as hppa64 isn't multiarched yet.
4601 2003-06-05 Andrew Cagney <cagney@redhat.com>
4603 * Makefile.in (value_h): Add $(frame_h).
4604 * value.h: Include "frame.h".
4605 (struct value): Replace "frame_addr" with "frame_id".
4606 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4607 * values.c (allocate_value): Use VALUE_FRAME_ID.
4608 (value_copy): Use VALUE_FRAME_ID.
4609 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4610 * valops.c (value_assign): Update. Use frame_find_by_id.
4612 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4614 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4617 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4619 * thread-db.c (check_event): For create/death event breakpoints,
4620 loop through all messages to ensure that we read the message
4621 corresponding to the breakpoint we are at.
4623 2003-06-04 Michael Snyder <msnyder@redhat.com>
4625 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4627 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4629 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4630 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4631 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4632 when handling .eh_frame sections.
4634 2003-06-04 J. Brobecker <brobecker@gnat.com>
4636 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4637 prepare_to_proceed procedure instead of the hppa-specific one.
4638 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4640 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4642 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4643 * config.in: Regenerated.
4644 * configure.in: Add test for syscall function and check for
4645 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4646 * configure: Regenerated.
4647 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4649 (kill_lwp): New function that uses tkill syscall or
4650 uses kill, depending on whether threading model is nptl or not.
4651 All callers of kill() changed to use kill_lwp().
4652 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4653 see if all threads have already exited in the nptl model.
4654 (stop_and_resume_callback): New callback function used by the
4655 lin_lwp_wait thread exit handling code.
4656 (stop_wait_callback): Check for threads already having exited and
4657 delete such threads fromt the lwp list when discovered.
4658 (stop_callback): Don't assert retcode of kill call.
4660 Roland McGrath <roland@redhat.com>
4661 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4664 2003-06-03 Richard Henderson <rth@redhat.com>
4666 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4667 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4668 (alpha_sigtramp_frame_prev_register): Likewise.
4669 (alpha_heuristic_frame_prev_register): Likewise.
4670 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4672 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4673 alpha-specific register id names.
4674 (alpha_mdebug_frame_unwind_cache): Likewise.
4675 (alpha_mdebug_frame_prev_register): Likewise.
4677 2003-06-03 Richard Henderson <rth@redhat.com>
4679 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4680 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4681 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4682 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4684 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4685 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4686 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4688 * alpha-linux-tdep.c: Remove unnecessary includes.
4689 * Makefile.in (alpha-linux-tdep.o): Update.
4691 2003-06-03 Richard Henderson <rth@redhat.com>
4693 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4694 (alphabsd_fill_fpreg): Likewise.
4696 2003-06-03 J. Brobecker <brobecker@gnat.com>
4698 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4699 references to struct frame_info fields by calls to the equivalent
4700 accessors. Necessary now that frame_info is opaque.
4702 2003-06-03 J. Brobecker <brobecker@gnat.com>
4704 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4705 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4706 structure, field no longer exists.
4708 2003-06-03 J. Brobecker <brobecker@gnat.com>
4710 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4711 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4713 2003-06-03 J. Brobecker <brobecker@gnat.com>
4715 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4716 references to struct frame_info fields by calls to the equivalent
4717 accessors. Necessary now that frame_info is opaque.
4719 2003-06-03 J. Brobecker <brobecker@gnat.com>
4721 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4722 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4723 structure, field no longer exists.
4725 2003-06-03 Theodore A. Roth <troth@openavr.org>
4727 * remote.c (init_remote_state): Compute sizeof_g_packet by
4728 accumulation of the size of all registers instead of blindly using
4729 DEPRECATED_REGISTER_BYTES.
4731 2003-06-03 Michael Snyder <msnyder@redhat.com>
4733 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4734 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4737 2003-06-03 J. Brobecker <brobecker@gnat.com>
4739 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4740 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4742 2003-06-03 Andrew Cagney <cagney@redhat.com>
4744 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4745 (sparc_convert_to_raw): Delete function.
4746 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4747 register_convert_to_virtual.
4749 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4751 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4752 layer if not dealing with a statically-linked threaded program.
4754 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4756 * solib.c (solib_open): Update comment to reflect actual search order.
4758 2003-06-03 Andrew Cagney <cagney@redhat.com>
4760 * frame.c (get_frame_memory_signed): New function.
4761 (get_frame_memory, get_frame_memory_unsigned): New function.
4762 (get_frame_arch): New function.
4763 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4764 (get_frame_memory, get_frame_unsigned_memory): Declare.
4765 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4766 get_frame_memory_unsigned and get_frame_arch.
4767 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4769 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4771 * MAINTAINERS (write after approval): Add myself.
4773 2003-06-03 Jim Blandy <jimb@redhat.com>
4775 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4776 elements of gregset_t are 64 bits each, but access registers
4777 are still 32 bits, so they're packed two per gregset_t
4778 element. Unpack/pack them properly.
4780 2003-06-02 David Carlton <carlton@bactrian.org>
4782 * linespec.c (find_methods): Break out code into
4783 add_matching_methods and add_constructors.
4784 (add_matching_methods): New.
4785 (add_constructors): Ditto.
4787 2003-06-02 Andrew Cagney <cagney@redhat.com>
4789 * sparc-tdep.c (sparc_print_registers): Delete call to
4790 REGISTER_CONVERTIBLE.
4791 (sparc_gdbarch_init): Do not set register_convertible.
4792 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4793 * frv-tdep.c (frv_gdbarch_init): Ditto.
4794 * cris-tdep.c (cris_gdbarch_init): Ditto.
4796 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4798 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4799 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4800 (syms_from_objfile): Ditto.
4802 2003-06-03 Andreas Schwab <schwab@suse.de>
4804 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4805 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4807 2003-06-02 Richard Henderson <rth@redhat.com>
4809 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4810 a member of all_reggroup.
4812 2003-06-02 Richard Henderson <rth@redhat.com>
4814 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4815 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4816 (alpha_lds, alpha_sts): New.
4817 (alpha_convert_register_p): Change from _register_convertible.
4818 (alpha_register_to_value): Change from _convert_to_virtual;
4819 restructure and fail for type sizes other than 4 or 8.
4820 (alpha_value_to_register): Similarly.
4821 (alpha_extract_return_value): Use alpha_sts.
4822 (alpha_store_return_value): Use alpha_lds.
4823 (alpha_gdbarch_init): Update hooks.
4825 2003-06-02 Richard Henderson <rth@redhat.com>
4827 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4829 (alpha_sigtramp_register_address): Likewise.
4831 2003-06-02 Richard Henderson <rth@redhat.com>
4833 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4834 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4835 * alpha-tdep.h: Declare them.
4837 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4838 Remove zerobuf. Don't error on UNIQUE.
4839 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4840 (ALPHA_REGSET_UNIQUE): Provide default.
4841 (supply_gregset): Use alpha_supply_int_regs.
4842 (fill_gregset): Use alpha_fill_int_regs.
4843 (supply_fpregset): Use alpha_supply_fp_regs.
4844 (fill_fpregset): Use alpha_fill_fp_regs.
4845 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4846 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4847 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4848 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4849 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4850 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4852 2003-06-02 Richard Henderson <rth@redhat.com>
4854 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4856 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4857 (alpha_store_return_value): Likewise.
4859 2003-06-02 David Carlton <carlton@math.stanford.edu>
4861 * block.c (contained_in): Add 'const' to arguments.
4862 (block_function): Ditto.
4863 * block.h: Update declarations for block_function and
4866 2003-06-02 David Carlton <carlton@math.stanford.edu>
4868 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4869 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4870 * p-valprint.c (pascal_val_print): Ditto.
4871 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4873 2003-06-02 Richard Henderson <rth@redhat.com>
4875 * alpha-tdep.c (alpha_push_dummy_call): Use
4876 builtin_type_ieee_double_little instead of builtin_type_double.
4878 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4879 sign-extension of 32-bit values.
4880 (alpha_store_return_value): Similarly.
4882 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4883 (alpha_extract_return_value): Likewise.
4884 (alpha_store_return_value): Likewise.
4886 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4887 (alpha_store_return_value): Error on IEEE Quad floats.
4889 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4890 (alpha_extract_struct_value_address): Likewise.
4891 (alpha_store_return_value): Likewise.
4892 (alpha_store_struct_return): Remove.
4893 (alpha_gdbarch_init): Update hook registration to match.
4895 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4896 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4897 macros where appropriate.
4898 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4899 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4901 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4902 for SP, GP; void_func_ptr for PC; non-language-specific types
4904 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4906 2003-06-02 Richard Henderson <rth@redhat.com>
4908 * top.h (lim_at_start): Declare.
4909 * main.c (captured_main): Set it.
4910 * top.c (lim_at_start): Define.
4911 (command_loop): Use it instead of &environ.
4912 * event-top.c (command_handler): Likewise.
4914 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4916 * mipsnbsd-tdep.c: Update copyright years.
4917 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4919 2003-06-01 Richard Henderson <rth@redhat.com>
4921 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4922 (alpha-linux-tdep.o): Update dependencies.
4923 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4924 * alpha-mdebug-tdep.c: Remove unneeded includes.
4926 2003-06-01 Richard Henderson <rth@redhat.com>
4928 * alpha-tdep.c (alpha_register_reggroup_p): New.
4929 (alpha_gdbarch_init): Register it.
4931 2003-06-02 Andrew Cagney <cagney@redhat.com>
4933 * dwarfread.c: Eliminate "register"
4934 (decode_die_type): Eliminate assignment within "if".
4935 (struct_type, decode_array_element_type): Ditto.
4936 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4937 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4938 (decode_modified_type, completedieinfo): Ditto.
4939 * block.c: Eliminate "register".
4940 (blockvector_for_pc_sect): Eliminate assignment within "if".
4941 * cp-support.h (struct symbol): Opaque declaration.
4942 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4944 2003-06-01 Richard Henderson <rth@redhat.com>
4946 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4947 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4949 2003-06-01 Adam Fedor <fedor@gnu.org>
4951 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4952 * gdbarch.[ch]: Regenerate.
4953 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4954 (hppa_gdbarch_init): Set it in the gdbarch vector.
4955 * i386-tdep.c (i386_fetch_pointer_argument): New
4956 (i386_gdbarch_init): Set it into gdbarch.
4957 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4958 (rs6000_gdbarch_init): Set it in gdbarch.
4959 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4960 (sparc_gdbarch_init): Set it in gdbarch.
4962 2003-06-01 Andrew Cagney <cagney@redhat.com>
4964 * defs.h (extract_address): Delete declaration.
4965 * findvar.c (extract_address): Delete function.
4966 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4967 extract_address with the inline equivalent,
4968 extract_unsigned_integer.
4969 (xstormy16_extract_struct_value_address): Ditto.
4970 (xstormy16_pointer_to_address): Ditto.
4971 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4972 * v850-tdep.c (v850_push_arguments): Ditto.
4973 (v850_extract_return_value): Ditto.
4974 (v850_extract_struct_value_address): Ditto.
4975 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4976 (sparcnbsd_get_longjmp_target_64): Ditto.
4977 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4978 (get_longjmp_target): Ditto.
4979 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4980 (sh64_extract_struct_value_address): Ditto.
4981 (sh_push_arguments): Ditto.
4982 (sh64_push_arguments): Ditto.
4983 * remote-vxsparc.c (vx_read_register): Ditto.
4984 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4985 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4986 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4987 * mipsv4-nat.c (get_longjmp_target): Ditto.
4988 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4989 * mips-nat.c (get_longjmp_target): Ditto.
4990 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4991 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4992 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4993 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4994 * irix5-nat.c (get_longjmp_target): Ditto.
4995 * irix4-nat.c (get_longjmp_target): Ditto.
4996 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4997 (ia64_push_arguments): Ditto.
4998 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4999 * h8300-tdep.c (h8300_push_arguments): Ditto.
5000 (h8300_store_return_value): Ditto.
5001 (h8300_extract_struct_value_address): Ditto.
5002 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5003 (frv_push_arguments): Ditto.
5004 * avr-tdep.c (avr_pointer_to_address): Ditto.
5005 (avr_push_arguments): Ditto.
5006 * arm-tdep.c (arm_push_dummy_call): Ditto.
5007 (arm_get_longjmp_target): Ditto.
5008 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5009 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5010 (alpha_get_longjmp_target): Ditto.
5012 * solib-irix.c (extract_mips_address): Inline extract_address,
5013 replacing it with extract_signed_integer.
5014 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5015 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5016 (first_link_map_member, open_symbol_file_object): Ditto.
5017 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5018 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5019 (LM_NEXT, LM_NAME): Ditto.
5021 2003-06-01 Richard Henderson <rth@redhat.com>
5023 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5024 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5025 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5026 (alpha_cannot_store_register): Likewise.
5027 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5028 * alpha-nat.c (supply_gregset): Likewise.
5029 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5031 2003-06-01 Andrew Cagney <cagney@redhat.com>
5033 * infcall.c (call_function_by_hand): Update comment on
5034 DEPRECATED_DUMMY_WRITE_SP.
5036 * mips-tdep.c (mips_gdbarch_init): Do not set
5037 deprecated_dummy_write_sp.
5038 (mips_eabi_push_dummy_call): Set the SP register.
5039 (mips_o64_push_dummy_call): Set the SP register.
5040 (mips_o32_push_dummy_call): Set the SP register.
5041 (mips_n32n64_push_dummy_call): Set the SP register.
5043 2003-06-01 Richard Henderson <rth@redhat.com>
5045 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5046 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5047 (supply_gregset): Likewise.
5048 * alpha-tdep.c (alpha_store_return_value): Likewise.
5049 (alpha_get_longjmp_target): Likewise.
5050 (alpha_register_name): Constify array.
5051 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5052 deprecated_register_size, deprecated_register_bytes,
5053 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5054 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5055 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5057 2003-06-01 Richard Henderson <rth@redhat.com>
5059 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5060 from arg_reg_buffer to regcache to avoid double conversion.
5062 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5064 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5066 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5067 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5069 2003-06-01 Richard Henderson <rth@redhat.com>
5071 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5072 (decode_frame_entry): Set it. Skip FDE augmentation.
5074 2003-06-01 Richard Henderson <rth@redhat.com>
5076 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5077 not overlapping PC_REGNUM.
5079 2003-06-01 Richard Henderson <rth@redhat.com>
5081 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5082 alpha_push_arguments. Don't dump argument register data to
5083 the target stack. Fix float and 128-bit long double semantics.
5084 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5085 (alpha_fix_call_dummy): Remove.
5086 (alpha_call_dummy_words): Remove.
5087 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5089 2003-06-01 Richard Henderson <rth@redhat.com>
5091 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5093 2003-06-01 Andrew Cagney <cagney@redhat.com>
5095 * mips-tdep.c (is_mips16_addr): New function.
5096 (make_mips16_addr, unmake_mips16_addr): New functions.
5097 (pc_is_mips16, mips_fetch_instruction): Use.
5098 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5099 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5100 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5101 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5103 * config/mips/tm-mips.h: Update copyright.
5104 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5105 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5106 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5107 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5108 (TM_PRINT_INSN_MACH): Delete.
5109 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5111 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5112 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5113 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5114 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5115 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5116 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5117 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5118 mips*-*-riscos* and mips*-*-sysv* onto mips.
5119 * config/mips/mips64.mt: New file.
5120 * config/mips/mips.mt: New file.
5121 * config/mips/littlemips.mt: Delete file.
5122 * config/mips/decstation.mt: Delete file.
5123 * config/mips/vr4300el.mt: Delete file.
5124 * config/mips/vr5000el.mt: Delete file.
5125 * config/mips/vr5000.mt: Delete file.
5126 * config/mips/vr4100.mt: Delete file.
5127 * config/mips/vr4xxxel.mt: Delete file.
5128 * config/mips/vr4300.mt: Delete file.
5129 * config/mips/vr4xxx.mt: Delete file.
5130 * config/mips/bigmips.mt: Delete file.
5131 * config/mips/bigmips64.mt: Delete file.
5132 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5133 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5134 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5135 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5136 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5138 * config/mips/tm-irix3.h: Ditto.
5139 * config/mips/tm-mipsv4.h: Ditto.
5140 * config/mips/tm-embed.h: Ditto.
5141 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5143 * config/mips/tm-vr5000el.h: Delete file.
5144 * config/mips/tm-tx39l.h: Delete file.
5145 * config/mips/tm-vr4300el.h: Delete file.
5146 * config/mips/tm-vr4xxxel.h: Delete file.
5147 * config/mips/tm-vr4300.h: Delete file.
5148 * config/mips/tm-vr4100.h: Delete file.
5149 * config/mips/tm-vr4xxx.h: Delete file.
5150 * config/mips/tm-vr5000.h: Delete file.
5151 * config/mips/tm-embedl64.h: Delete file.
5152 * config/mips/tm-embedl.h: Delete file.
5153 * config/mips/tm-embed64.h: Delete file.
5154 * config/mips/tm-bigmips64.h: Delete file.
5155 * config/mips/tm-bigmips.h: Delete file.
5157 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5160 * shnbsd-nat.c: Include "sh-tdep.h".
5162 From Richard Henderson <rth@redhat.com>:
5163 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5165 2003-05-31 Andrew Cagney <cagney@redhat.com>
5167 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5168 forward declaration.
5169 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5170 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5171 (mips_find_saved_regs): Use set_reg_offset.
5172 (mips_frame_init_saved_regs): Delete function.
5173 (mips_pop_frame): Call mips_find_saved_regs instead of
5174 DEPRECATED_FRAME_INIT_SAVED_REGS.
5176 2003-05-31 Andrew Cagney <cagney@redhat.com>
5178 * mips-tdep.c (mips_gdbarch_init): Do not set
5179 deprecated_max_register_raw_size, register_virtual_size, and
5180 deprecated_max_register_virtual_size.
5182 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5184 * i386-tdep.c: Include "dwarf2-frame.h".
5185 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5186 * Makefile.in (i386-tdep.o): Update dependencies.
5188 * dwarf2-frame.c, dwarf2-frame.h: New files.
5189 * Makefile.in (SFILES): Add dwarf2-frame.c.
5190 (dwarf2_frame_h): Define.
5191 (COMMON_OBS): Add dwarf2-frame.o.
5192 (dwarf2-frame.o): Add dependencies.
5194 2003-05-31 Andreas Jaeger <aj@suse.de>
5196 * x86-64-linux-nat.c: Fix comment.
5198 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5200 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5203 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5204 have a sigcontext_addr handler.
5205 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5206 sigcontext_addr handler.
5208 2003-05-31 Andrew Cagney <cagney@redhat.com>
5210 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5211 (print_fp_register_row): Replace do_fp_register_row.
5212 (mips_print_fp_register): Add "file" and "frame" parameters.
5213 (mips_print_register): Add "file" and "frame" parameters.
5214 (mips_print_registers_info): Replace mips_do_registers_info.
5215 (mips_gdbarch_init): Set print_registers_info instead of
5216 deprecated_do_registers_info.
5217 (mips_read_fp_register_single): Add "frame" parameter.
5218 (mips_read_fp_register_double): Add "frame" parameter.
5220 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5222 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5223 Fixes a bug where GDB would print the wrong register names for
5224 targets without SSE.
5226 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5227 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5230 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5231 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5232 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5235 From Michal Ludvig <mludvig@suse.cz>:
5236 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5238 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5239 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5240 I386_ST0_REGNUM): Move here from...
5241 * i386-tdep.c: ... here.
5242 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5243 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5244 registers if possible.
5245 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5246 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5248 (i386bsd_sc_reg_offset): New variable.
5249 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5250 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5252 (i386fbsd_sc_reg_offset): New variable.
5253 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5255 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5257 (i386fbsd4_sc_reg_offset): New variable.
5258 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5259 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5261 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5262 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5263 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5265 (i386nbsd_sc_reg_offset): New variable.
5266 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5267 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5269 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5271 (i386obsd_sc_reg_offset): New variable.
5272 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5273 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5275 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5276 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5277 for frame pointer offset in `struct sigcontext'.
5279 2003-05-31 Andrew Cagney <cagney@redhat.com>
5281 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5282 architecture methods call_dummy_words, sizeof_call_dummy_words,
5283 push_return_address, store_struct_return, and fix_call_dummy. Set
5284 push_dummy_call instead of deprecated_push_arguments.
5285 (mips_store_struct_return): Delete function.
5286 (mips_fix_call_dummy): Delete function.
5287 (mips_push_return_address): Delete function.
5288 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5289 RA_REGNUM and T9_REGNUM.
5290 (mips_n32n64_push_dummy_call): Ditto for
5291 mips_n32n64_push_arguments.
5292 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5293 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5295 2003-05-31 Andrew Cagney <cagney@redhat.com>
5297 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5298 "dummy_addr" to "bp_addr".
5299 * infcall.c (call_function_by_hand): Pass "funaddr" to
5300 gdbarch_push_dummy_call.
5301 * gdbarch.h, gdbarch.c: Re-generate.
5302 * i386-tdep.c (i386_push_dummy_call): Update.
5303 * arm-tdep.c (arm_push_dummy_call): Update.
5304 * d10v-tdep.c (d10v_push_dummy_call): Update.
5306 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5308 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5309 variable declarations.
5310 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5311 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5312 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5313 x86_64_init_frame_pc, x86_64_init_frame_pc,
5314 x86_64_function_has_prologue): Remove prototypes.
5315 (X86_64_NUM_GREGS): New define.
5316 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5317 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5318 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5319 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5320 XMM1_REGNUM): Remove defines.
5321 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5322 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5323 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5324 X86_64_XMM1_REGNUM): New defines.
5325 (struct x86_64_register_info): Renamed from `struct
5326 register_info'. Remove `size' member.
5327 (x86_64_register_info_table): Remove variable.
5328 (x86_64_register_info): New variable.
5329 (X86_64_NUM_REGS): New define.
5330 (X86_64_NUM_GREGS): Remove define.
5331 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5332 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5334 (x86_54_dwarf2_reg_to_regnum): Remove function.
5335 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5336 (x86_64_dwarf_reg_to_regnum): New function.
5337 (x86_64_register_name): Rewrite.
5338 (x86_64_register_raw_size): Remove function.
5339 (x86_64_register_byte_table): Remove variable.
5340 (x86_64_register_byte): Remove function.
5341 (x86_64_register_virtual_type): Remove function.
5342 (x86_64_register_type): New function.
5343 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5344 x86_64_register_convert_to_raw): Remove functions.
5345 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5346 (x86_64_use_struct_convention): Make static. Adjust for renamed
5348 (x86_64_frame_init_saved_regs): Remove function.
5349 (x86_64_push_arguments): Make static. Change to accept a regcache
5351 (x86_64_store_return_value, x86_64_extract_return_value): Make
5352 static. Rewrite based on i386 counterparts.
5353 (x86_64_push_dummy_call): New function.
5354 (X86_64_NUM_SAVED_REGS): New define.
5355 (x86_64_register_number): Remove function.
5356 (x86_64_store_struct_return): Remove function.
5357 (x86_64_frameless_function_invocation,
5358 x86_64_function_has_prologue): Remove functions.
5359 (PROLOG_BUFSIZE): Remove define.
5360 (struct x86_64_frame_cache): New structure.
5361 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5362 x86_64_frame_cache, x86_64_frame_this_id,
5363 x86_64_frame_prev_register, x86_64_frame_p,
5364 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5365 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5367 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5369 (x86_64_skip_prologue): Rewrite in terms of
5370 x86_64_analyze_prologue.
5371 (x86_64_frame_base_address): New function.
5372 (x86_64_frame_base): New variable.
5373 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5374 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5375 set deprecated_fp_regnum, deprecated_register_size,
5376 deprecated_register_bytes, register_raw_size, register_byte,
5377 register_virtual_type, register_convertiable,
5378 register_convert_to_virtual, convert_to_raw,
5379 deprecated_get_saved_register, deprecated_target_read_fp,
5380 deprecated_push_arguments, deprecated_push_return_address,
5381 deprecated_pop_frame, deprecated_store_struct_return,
5382 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5383 frameless_function_invocation, deprecated_frame_saved_pc,
5384 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5385 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5386 deprecated_init_frame_pc and virtual_frame_pointer. Call
5387 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5388 and x86_64_frame_p. Call frame_base_set_default to register
5390 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5391 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5392 (_initialize_x86_64_tdep): Remove function.
5393 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5394 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5395 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5397 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5398 (x86_64_linux_sigcontext_addr): Rewrite.
5399 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5400 x86_64_linux_frame_saved_pc): Remove functions.
5401 (x86_64_linux_pc_in_sigtramp): Renamed from
5402 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5404 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5406 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5407 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5408 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5409 (x86_64_regmap): Rename to regmap.
5410 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5412 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5414 (x86_64_fxsave_offset): Remove function.
5415 (supply_fpregset): Simply call x86_64_supply_fxsave.
5416 (fill_fpregset): Simply call x86_64_fill_fxsave.
5417 (fetch_inferior_registers, store_inferior_registers): Avoid
5418 asignment in if-statement.
5419 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5420 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5421 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5422 (fetch_core_registers): Remove function.
5423 (linux_elf_core_fns): Remove.
5424 (offsetoff): Don't define.
5425 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5426 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5427 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5429 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5430 protection against multiple includes instead of NM_X86_64_h. Add
5431 various comments. Include "config/nm-linux.h". Don't include
5433 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5434 GET_THREAD_SIGNALS): Remove defines.
5435 (x86_64_register_u_addr, kernel_u_size,
5436 lin_thread_get_thread_signals): Remove prototypes.
5437 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5438 [HAVE_LINK_H]: Don't include "solib.h".
5439 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5440 * config/i386/tm-x86-64linux.h: Fix comments.
5441 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5442 x86-64-tdep.o): Update dependencies.
5444 2003-05-30 Andrew Cagney <cagney@redhat.com>
5446 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5447 Change parameter type to a "struct regcache *".
5449 * gdbarch.sh: Regardless of the multi-arch level, always define
5450 the macro when not already defined.
5451 * gdbarch.h, gdbarch.c: Re-generate.
5453 2003-05-30 Richard Henderson <rth@redhat.com>
5455 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5456 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5457 (alpha_mdebug_frame_this_id): Likewise.
5458 (alpha_mdebug_frame_prev_register): Likewise.
5459 (alpha_mdebug_frame_base_address): Likewise.
5460 (alpha_mdebug_frame_locals_address): Likewise.
5461 (alpha_mdebug_frame_args_address): Likewise.
5462 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5463 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5464 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5466 (alpha_heuristic_frame_this_id): Make static.
5467 (alpha_heuristic_frame_prev_register): Likewise.
5468 (alpha_heuristic_frame_base_address): Likewise.
5469 * alpha-tdep.h: Update.
5471 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5473 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5474 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5476 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5477 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5478 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5479 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5480 I386_ST0_REGNUM): New defines.
5481 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5482 codestream_get): Remove define.
5483 (codestream_next_addr, condestream_addr, condestream_buf,
5484 codestream_off, codestream_cnt): Remove variables.
5485 (codestream_fill, codestream_seek, codestream_read): Remove
5487 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5489 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5490 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5491 i386_frame_saved_pc, i386_saved_pc_after_call,
5492 i386_frame_num_args, i386_frame_init_saved_regs,
5493 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5494 i386_push_arguments): Remove functions.
5495 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5496 functionality. Use i386_analyze_prologue instead of
5497 i386_get_frame_setup.
5498 (I386_NUM_SAVED_REGS): New define.
5499 (struct i386_frame_cache): New structure.
5500 (i386_alloc_frame_cache, i386_analyze_struct_return,
5501 i386_skip_probe, i386_analyze_frame_setup,
5502 i386_analyze_register_saves, i386_analyze_prologue,
5503 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5504 i386_frame_prev_register, i386_sigtramp_frame_cache,
5505 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5506 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5507 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5509 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5511 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5512 I386_EAX_REGNUM and I386_EDX_REGNUM.
5513 (i386_extract_return_value, i386_store_return_value): Use
5514 I386_ST0_REGNUM where appropriate.
5515 (i386_extract_struct_value_address): Rewrite to use extract_address.
5516 (i386_svr4_pc_in_sigtramp): Add comment.
5517 (i386_svr4_sigcontext_addr): Rewrite.
5518 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5520 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5521 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5522 of new defines. Set push_dummy_call, don't set
5523 deprecated_push_arguments, deprecated_push_return_address,
5524 deprecated_pop_frame. Don't set parm_boundary. Don't set
5525 deprecated_frame_chain, deprecated_frame_saved_pc,
5526 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5527 save_dummy_frame_tos, unwind_pc. Call
5528 frame_unwind_append_predicate and frame_base_set_default. Don't
5529 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5530 Don't set frameless_function_invocation. Don't set
5531 deprecated_register_bytes, deprecated_register_size,
5532 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5533 * i386-linux-tdep.c: Fix formatting in some comments.
5534 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5535 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5536 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5537 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5538 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5539 redundant parentheses.
5540 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5541 (i386_linux_sigcontext_addr): Use it. Rewrite.
5542 (find_minsym_and_objfile): Change name of second argument.
5543 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5544 changed. Use frame_pc_unwind instead of
5545 DEPRECATED_SAVED_PC_AFTER_CALL.
5546 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5547 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5548 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5550 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5552 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5553 (_initialize_i386_cygwin_tdep): New prototype.
5554 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5555 deprecated_frame_chain_valid.
5556 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5557 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5558 Rely on the SVR4 defaults.
5559 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5560 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5562 2003-05-30 Andrew Cagney <cagney@redhat.com>
5564 * infcall.c (call_function_by_hand): Always call
5565 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5567 2003-05-30 Richard Henderson <rth@redhat.com>
5569 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5572 2003-05-29 Jim Blandy <jimb@redhat.com>
5574 Use gdbarch methods for solib stuff on PowerPC Linux.
5575 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5576 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5578 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5579 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5580 giving the same effect as the #definitions above.
5582 2003-05-29 Adam Fedor <fedor@gnu.org>
5584 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5585 (find_implementation_from_class): Replace it with the standard
5586 case i.e. do nothing.
5588 2003-05-29 Richard Henderson <rth@redhat.com>
5590 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5591 (alpha_linux_sigtramp_offset): Use it. Make static.
5592 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5593 update for new frame model.
5594 * alpha-mdebug-tdep.c: New file.
5595 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5596 (alpha_osf1_init_abi): Install it.
5597 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5598 (linked_proc_desc_table): Remove.
5599 (alpha_frame_past_sigtramp_frame): Remove.
5600 (alpha_dynamic_sigtramp_offset): Remove.
5601 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5602 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5603 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5604 (push_sigtramp_desc): Remove.
5605 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5606 (alpha_cannot_store_register): Likewise.
5607 (alpha_sigcontext_addr): Remove.
5608 (alpha_find_saved_regs): Remove.
5609 (alpha_frame_init_saved_regs): Remove.
5610 (alpha_init_frame_pc_first): Remove.
5611 (read_next_frame_reg): Remove.
5612 (alpha_frame_saved_pc): Remove.
5613 (alpha_saved_pc_after_call): Remove.
5614 (temp_proc_desc, temp_saved_regs): Remove.
5615 (alpha_about_to_return): Remove.
5616 (cached_proc_desc): Remove.
5617 (alpha_frame_chain): Remove.
5618 (alpha_print_extra_frame_info): Remove.
5619 (alpha_init_extra_frame_info): Remove.
5620 (alpha_frame_locals_address): Remove.
5621 (alpha_frame_args_address): Remove.
5622 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5623 (alpha_push_dummy_frame): Remove.
5624 (alpha_pop_frame): Remove.
5625 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5626 (alpha_read_insn): New.
5627 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5628 for different insn encodings.
5629 (alpha_in_lenient_prologue): Remove.
5630 (struct alpha_sigtramp_unwind_cache): New.
5631 (alpha_sigtramp_frame_unwind_cache): New.
5632 (alpha_sigtramp_register_address): New.
5633 (alpha_sigtramp_frame_this_id): New.
5634 (alpha_sigtramp_frame_prev_register): New.
5635 (alpha_sigtramp_frame_unwind): New.
5636 (alpha_sigtramp_frame_p): New.
5637 (struct alpha_heuristic_unwind_cache): New.
5638 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5639 don't count nop insns that occur between functions.
5640 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5641 heuristic_proc_desc, but without the mdebug wrapping.
5642 (alpha_heuristic_frame_this_id): New.
5643 (alpha_heuristic_frame_prev_register): New.
5644 (alpha_heuristic_frame_unwind): New.
5645 (alpha_heuristic_frame_p): New.
5646 (alpha_heuristic_frame_base_address): New.
5647 (alpha_heuristic_frame_base): New.
5648 (alpha_unwind_dummy_id): New.
5649 (alpha_unwind_pc): New.
5650 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5651 frame related deprecated initializations; install replacements.
5652 (alpha_dump_tdep): Remove.
5653 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5654 (alpha_read_insn, alpha_after_prologue,
5655 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5656 alpha_heuristic_frame_prev_register,
5657 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5658 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5659 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5660 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5662 2003-05-29 Andrew Cagney <cagney@redhat.com>
5664 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5665 dependant on the availability of ASSERT_FUNCTION.
5666 (ASSERT_FUNCTION): Do not define when there is no function name.
5668 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5670 From Jimi X <jimix@watson.ibm.com>:
5671 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5673 2003-05-28 Jim Blandy <jimb@redhat.com>
5675 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5676 argument to ptrace to int; the system headers should give it the
5677 right type, and pointers don't fit in ints on powerpc64-*-*.
5679 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5681 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5684 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5686 * stabsread.c (dbx_lookup_type): Make static.
5688 (add_undefined_type): Ditto.
5689 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5692 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5694 * hpread.c (hpread_has_name): Make static.
5695 (hpread_psymtab_to_symtab): Ditto.
5696 (file_exists): Ditto.
5697 (hpread_call_pxdb): Ditto.
5698 (hpread_pxdb_needed): Ditto.
5699 (hpread_quick_traverse): Ditto.
5700 (hpread_get_header): Ditto.
5701 (hpread_get_lntt): Ditto.
5702 (hpread_get_slt): Ditto.
5705 2003-05-25 Andreas Schwab <schwab@suse.de>
5707 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5708 stack_align and deprecated_extra_stack_alignment_needed.
5709 (m68k_stack_align): Delete.
5711 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5712 (m68k_register_virtual_size): Likewise.
5713 (altos_skip_prologue): Remove obsolete function.
5714 (isi_frame_num_args): Likewise.
5715 (news_frame_num_args): Likewise.
5716 (m68k_fix_call_dummy): Make static.
5717 (m68k_push_dummy_frame): Likewise.
5718 (m68k_pop_frame): Likewise.
5719 (m68k_skip_prologue): Likewise.
5720 (m68k_frame_init_saved_regs): Likewise.
5721 (m68k_saved_pc_after_call): Likewise.
5722 (m68k_get_longjmp_target): Make multi-arch.
5723 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5724 structure. Register m68k_get_longjmp_target if enabled.
5725 * m68k-tdep.h (struct gdbarch_tdep): Define.
5726 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5728 * Makefile.in (config.status): Also depend on configure.tgt
5730 (m68klinux-tdep.o): Update dependencies.
5731 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5732 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5733 (M68K_LINUX_JB_PC): Define.
5734 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5735 and take additional parameter.
5736 (m68k_linux_sigtramp_saved_pc): Update.
5737 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5738 m68k_linux_pc_in_sigtramp, in_plt_section,
5739 find_solib_trampoline_target.
5740 * config/m68k/tm-linux.h: Don't include any tm headers.
5741 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5742 (JB_ELEMENT_SIZE): Likewise.
5744 (GET_LONGJMP_TARGET): Likewise.
5745 (IN_SIGTRAMP): Likewise.
5746 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5748 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5750 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5751 (sparc32_push_arguments): Re-implement by calling
5752 sparc32_do_push_arguments.
5754 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5756 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5757 SPARC_O1_REGNUM): New defines.
5758 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5759 (sparc32_store_return_value): New function.
5760 (sparc_extract_struct_value_address): Rewrite to operate on a
5762 (sparc_gdbarch_init): Don't set
5763 deprecated_extract_struct_value_address. Set
5764 extract_struct_value_address instead. Don't set
5765 deprecated_extract_return_value and deprecated_store_return_value
5766 for 32-bit targets. Set extract_return_value and
5767 store_return_value instead.
5768 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5769 DEPRECTAED_EXTRACT_RETURN_VALUE,
5770 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5771 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5772 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5773 (sparc_store_return_value): Remove prototype.
5774 (sparc32_store_return_value): New prototype.
5775 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5778 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5780 * sparcnbsd-tdep.c: Include "gdb_string.h".
5782 2003-05-23 Andrew Cagney <cagney@redhat.com>
5784 * p-valprint.c (pascal_val_print): Replace extract_address with
5785 the inline equivalent extract_unsigned_integer.
5786 * jv-valprint.c (java_value_print): Ditto.
5787 * ada-valprint.c (ada_val_print_1): Ditto.
5788 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5790 2003-05-23 Theodore A. Roth <troth@openavr.org>
5792 * blockframe.c (frameless_look_for_prologue): Remove unused
5793 after_prologue variable.
5795 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5797 * blockframe.c (get_pc_function_start): Rewrite to avoid
5798 asignments in if-statements.
5800 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5802 Committed by Elena Zannoni <ezannoni@redhat.com>.
5803 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5804 files, don't relocate absolute symbols (and do use mst_abs).
5806 2003-05-23 Andrew Cagney <cagney@redhat.com>
5808 * objc-lang.c: Include "gdb_assert.h".
5809 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5810 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5811 (gdb_check, gdb_check_fatal): Delete functions.
5812 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5814 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5815 * Makefile.in (objc-lang.o): Update dependencies.
5817 2003-05-22 Ian Lance Taylor <ian@airs.com>
5819 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5820 with fprintf_filtered, not fprintf_unfiltered.
5822 2003-05-22 Andrew Cagney <cagney@redhat.com>
5824 * stack.c (frame_info): Inline extract_address, replacing it with
5825 extract_unsigned_integer.
5826 * findvar.c (unsigned_pointer_to_address): Ditto.
5827 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5828 * dwarf2expr.c (dwarf2_read_address): Ditto.
5829 * frame.c (frame_pc_unwind): Update comment.
5830 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5832 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5834 * infptrace.c (detach): Call print_sys_errmsg rather than
5835 perror_with_name to issue warning message when errno is non-zero
5836 after calling ptrace detach.
5838 2003-05-21 J. Brobecker <brobecker@gnat.com>
5840 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5841 macro definitions from here...
5842 * hppa-tdep.c: ...to there.
5844 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5846 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5847 register_ptrace_addr(). Fix all callers.
5849 2003-05-21 Andreas Schwab <schwab@suse.de>
5851 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5853 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5855 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5856 (_initialize_m68k_linux_tdep): New function.
5857 (m68k_linux_frame_saved_pc): Make static.
5858 (m68k_linux_extract_return_value): Likewise.
5859 (m68k_linux_store_return_value): Likewise.
5860 (m68k_linux_extract_struct_value_address): Likewise.
5861 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5863 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5864 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5865 (DEPRECATED_FRAME_SAVED_PC): Remove.
5867 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5869 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5870 regset numbering rather than our own.
5872 2003-05-19 David Carlton <carlton@bactrian.org>
5874 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5876 2003-05-19 David Carlton <carlton@bactrian.org>
5878 Partial fix for PR c++/827.
5879 * cp-support.h: Include symtab.h.
5880 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5881 * cp-namespace.c: Update contributors.
5882 (cp_lookup_symbol_nonlocal): New.
5883 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5884 (lookup_symbol_file): Ditto.
5885 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5886 * block.h: Declare block_scope, block_using, block_global_block.
5887 * block.c (block_scope): New.
5888 (block_using, block_global_block): Ditto.
5889 * Makefile.in (cp_support_h): Depend on symtab_h.
5890 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5892 2003-05-19 David Carlton <carlton@bactrian.org>
5894 * language.h (struct language_defn): Add 'la_value_of_this'
5895 and 'la_lookup_symbol_nonlocal' members.
5896 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5897 lookup_symbol_static, lookup_symbol_global,
5898 lookup_symbol_aux_block.
5899 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5900 if we should search fields of this and how to do static/global
5902 (lookup_symbol_aux_block): Make extern.
5903 (basic_lookup_symbol_nonlocal): New.
5904 (lookup_symbol_static, lookup_symbol_global): Ditto.
5905 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5906 'la_lookup_symbol_nonlocal' members.
5907 * c-lang.c (c_language_defn, cplus_language_defn)
5908 (asm_language_defn, minimal_language_defn): Ditto.
5909 * jv-lang.c (java_language_defn): Ditto.
5910 * language.c (unknown_language_defn, auto_language_defn)
5911 (local_language_defn): Ditto.
5912 * m2-lang.c (m2_language_defn): Ditto.
5913 * objc-lang.c (objc_language_defn): Ditto.
5914 * scm-lang.c (scm_language_defn): Ditto.
5915 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5916 * p-lang.c (pascal_language_defn): Ditto for both.
5917 * Makefile.in (f-lang.o): Depend on value_h.
5920 2003-05-19 David Carlton <carlton@bactrian.org>
5922 * block.h: Declare block_static_block.
5923 * block.c (block_static_block): New.
5924 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5925 lookup_symbol_aux_local, calling block_static_block instead.
5926 (lookup_symbol_aux_local): Delete 'static_block' argument.
5928 2003-05-19 David Carlton <carlton@bactrian.org>
5930 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5932 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5934 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5935 register numbers mapping.
5937 2003-05-18 Adam Fedor <fedor@gnu.org>
5939 * symtab.c (completion_list_objc_symbol): New function.
5940 (make_symbol_completion_list): Use it to add ObjC symbols
5941 when looking though the list.
5942 (language_search_unquoted_string): New function.
5943 (make_file_symbol_completion_list): Use it.
5945 2003-05-18 Andreas Schwab <schwab@suse.de>
5947 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5949 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5950 as m68k_linux_extract_return_value.
5951 (DEPRECATED_STORE_RETURN_VALUE): Define as
5952 m68k_linux_store_return_value.
5953 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5954 m68k_linux_extract_struct_value_address.
5955 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5956 get_next_frame, get_frame_base, get_frame_pc.
5957 (m68k_linux_frame_saved_pc): Use get_frame_base.
5958 (m68k_linux_extract_return_value): New function.
5959 (m68k_linux_store_return_value): New function.
5960 (m68k_linux_extract_struct_value_address): New function.
5961 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5963 * c-exp.y (typebase): Remove duplicate occurence of
5964 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5965 of lookup_signed_typename.
5967 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5969 * dwarf2loc.c (find_location_expression): Change type of second
5970 argument to `size_t *'.
5971 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5974 2003-05-18 David Carlton <carlton@bactrian.org>
5976 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5977 'linkage_name'. Add comment.
5978 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5980 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5981 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5982 (lookup_block_symbol): Ditto.
5984 2003-05-16 Andrew Cagney <cagney@redhat.com>
5986 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5987 * gdbarch.h, gdbarch.c: Re-generate.
5988 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5989 * TODO (REGISTER_BYTES): Delete reference.
5990 * alpha-tdep.c (alpha_gdbarch_init): Update.
5991 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5992 * x86-64-tdep.c (x86_64_init_abi): Update.
5993 * vax-tdep.c (vax_gdbarch_init): Update.
5994 * v850-tdep.c (v850_gdbarch_init): Update.
5995 * sparc-tdep.c (sparc_gdbarch_init): Update.
5996 * sh-tdep.c (sh_gdbarch_init): Update.
5997 * s390-tdep.c (s390_gdbarch_init): Update.
5998 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5999 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6000 (ns32k_gdbarch_init_32382): Update.
6001 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6002 * mcore-tdep.c (mcore_gdbarch_init): Update.
6003 * m68k-tdep.c (m68k_gdbarch_init): Update.
6004 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6005 * ia64-tdep.c (ia64_gdbarch_init): Update.
6006 * i386-tdep.c (i386_gdbarch_init): Update.
6007 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6008 * hppa-tdep.c (hppa_gdbarch_init): Update.
6009 * h8300-tdep.c (h8300_gdbarch_init): Update.
6010 * frv-tdep.c (frv_gdbarch_init): Update.
6011 * cris-tdep.c (cris_gdbarch_init): Update.
6012 * avr-tdep.c (avr_gdbarch_init): Update.
6013 * arm-tdep.c (arm_gdbarch_init): Update.
6014 * sparc-tdep.c (sparc_pop_frame): Update.
6015 * rs6000-tdep.c (rs6000_pop_frame): Update.
6016 * remote.c (init_remote_state): Update.
6017 (remote_prepare_to_store): Update.
6018 * remote-vx.c (vx_prepare_to_store): Update.
6019 * remote-sds.c (sds_fetch_registers): Update.
6020 (sds_prepare_to_store): Update.
6021 * remote-array.c: Update.
6022 * regcache.c (init_legacy_regcache_descr): Update.
6023 (init_regcache_descr): Update.
6024 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6025 (mips_o64_extract_return_value): Update.
6026 * irix5-nat.c (fetch_core_registers): Update.
6027 * irix4-nat.c (fetch_core_registers): Update.
6028 * i386-tdep.h: Update.
6029 * hppa-tdep.c (pa_do_registers_info): Update.
6030 (pa_do_strcat_registers_info): Update.
6031 * cris-tdep.c (cris_register_bytes_ok): Update.
6032 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6033 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6034 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6035 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6036 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6037 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6038 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6039 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6040 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6041 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6042 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6043 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6044 (REGISTER_BYTES_OK): Update.
6045 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6046 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6048 2003-05-16 Ian Lance Taylor <ian@airs.com>
6050 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6051 (vax_print_insn, print_insn_arg): Remove static functions.
6052 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6053 print_insn_vax from opcodes library.
6054 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6056 2003-05-15 Andrew Cagney <cagney@redhat.com>
6058 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6059 * target.h (memory_breakpoint_from_pc): Delete declaration.
6060 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6061 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6062 * monitor.c (monitor_insert_breakpoint): Use
6063 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6064 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6065 * gdbarch.h, gdbarch.c: Re-generate.
6066 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6067 (sparc_gdbarch_init): Set breakpoint_from_pc to
6068 sparc_breakpoint_from_pc.
6069 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6070 (BREAKPOINT_FROM_PC): Define.
6071 (sparc_breakpoint_from_pc): Declare.
6072 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6073 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6074 (BREAKPOINT_FROM_PC): Define.
6075 (BREAKPOINT): Delete macro.
6076 * target.h: Update comment.
6077 * s390-tdep.c (s390_gdbarch_init): Update comments.
6078 * remote.c: Update comments.
6079 * remote-mips.c: Update comments.
6080 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6081 * mem-break.c: Update comment.
6082 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6083 (ia64_memory_insert_breakpoint): Update.
6084 * config/sparc/tm-sparc.h: Update comment.
6085 * config/pa/tm-hppa64.h: Update comment.
6086 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6087 (rs6000_breakpoint_from_pc): Update.
6088 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6089 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6090 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6091 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6092 (mips_breakpoint_from_pc): Update.
6093 (mips_dump_tdep): Update.
6095 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6096 * minsyms.c (lookup_minimal_symbol): Inline
6097 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6099 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6100 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6101 * p-lang.c (pascal_printstr): Ditto.
6102 * objc-lang.c (objc_printstr): Ditto.
6103 * m2-lang.c (m2_printstr): Ditto.
6104 * jv-valprint.c (java_print_value_fields): Ditto.
6105 * f-lang.c (f_printstr): Ditto.
6106 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6107 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6108 for repeat_count_threshold.
6109 * Makefile.in (cp-valprint.o): Update dependencies.
6111 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6113 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6114 (examine_prologue): Support looking through leaf functions, knowing
6115 they start with mov r2,r12. Support skipping over indirect stores
6116 of the input registers. Upon hitting a non-nop branch instruction
6117 or predicated instruction, bail out by setting lim_pc to the current
6118 pc value in the loop. At the end, if the lim_pc value is still
6119 beyond our calculated value and we have trust_limit set,
6120 use the lim_pc value.
6122 2003-05-15 Andrew Cagney <cagney@redhat.com>
6124 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6125 generic_find_dummy_frame.
6126 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6127 (deprecated_generic_find_dummy_frame): Update.
6128 (deprecated_read_register_dummy): Update.
6129 * frame.c (deprecated_generic_get_saved_register): Update.
6131 2003-05-15 Theodore A. Roth <troth@openavr.org>
6133 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6134 (avr_gdbarch_init): Set breakpoint_from_pc method.
6136 2003-05-15 Andrew Cagney <cagney@redhat.com>
6138 * regcache.c (build_regcache): Set deprecated_register_valid
6140 (deprecated_grub_regcache_for_register_valid): Delete function.
6141 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6144 2003-05-15 David Carlton <carlton@bactrian.org>
6146 Committed by Elena Zannoni <ezannoni@redhat.com>
6147 * symtab.c (lookup_symbol_aux): Delete calls to
6148 lookup_symbol_aux_minsyms.
6149 (lookup_symbol_aux_minsyms): Comment out function and
6150 prototype. Delete lookup by mangled name.
6152 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6154 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6155 correctly indicate an empty stack and ``stack_allocated'' to the
6156 indicate the number of elements initially allocated.
6157 (dwarf_expr_grow_stack): Simplify method for computing new
6158 stack size. Don't loop infinitely if ``stack_len'' is zero.
6159 (execute_stack_op): Move ``ctx->in_reg'' initialization
6160 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6161 be used in conjuction with DW_OP_piece. Revise error message
6164 2003-05-14 Theodore A. Roth <troth@openavr.org>
6166 * MAINTAINERS: Update my email address.
6167 * avr-tdep.c: Ditto.
6169 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6171 * symtab.h (enum domain_enum): Rename from namespace_enum.
6172 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6173 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6174 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6175 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6176 TYPES_NAMESPACE, METHODS_NAMESPACE.
6177 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6178 (struct symbol, struct partial_symbol): Rename field
6179 'namespace_enum namespace' to 'domain_enum domain'.
6180 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6181 Delete old define kludge for namespace.
6183 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6184 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6185 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6186 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6187 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6188 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6189 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6190 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6191 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6192 occurrences of the above.
6194 2003-05-14 Ian Lance Taylor <ian@airs.com>
6196 * Makefile.in (install-only): Use $(SHELL) when running
6199 2003-05-13 Ian Lance Taylor <ian@airs.com>
6201 * MAINTAINERS (write after approval): Add myself.
6203 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6204 second and third arguments.
6205 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6206 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6208 2003-05-13 Andrew Cagney <cagney@redhat.com>
6210 * defs.h (store_address): Delete declaration.
6211 findvar.c (store_address): Delete function.
6212 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6213 store_unsigned_integer.
6214 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6215 * v850-tdep.c (v850_push_arguments): Ditto.
6216 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6217 * sh-tdep.c (sh64_get_saved_register): Ditto.
6218 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6219 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6220 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6221 (mips_get_saved_register): Ditto.
6222 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6223 (find_func_descr, ia64_push_arguments): Ditto.
6224 * i386-tdep.c (i386_push_arguments): Ditto.
6225 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6226 * frv-tdep.c (frv_push_arguments): Ditto.
6227 * frame.c (legacy_saved_regs_prev_register): Ditto.
6228 (deprecated_generic_get_saved_register): Ditto.
6229 * findvar.c (unsigned_address_to_pointer): Ditto.
6230 * dwarf2read.c (dwarf2_const_value): Ditto.
6231 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6232 * alpha-tdep.c (alpha_push_arguments): Ditto.
6234 2003-05-12 J. Brobecker <brobecker@gnat.com>
6236 * NEWS: Mention that the hppa-hpux port has been partially
6237 multiarched (32bit ABIT only, so far).
6239 2003-05-11 Andrew Cagney <cagney@redhat.com>
6241 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6242 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6243 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6244 sim/testsuite/sim/arm/misaligned2.ms, and
6245 sim/testsuite/sim/arm/misaligned3.ms.
6246 * disasm.h (struct ui_file): Add opaque struct declaration.
6247 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6248 * frame.h (struct ui_file): Ditto.
6250 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6252 * value.h: Pretty print.
6254 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6256 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6258 2003-05-08 Andrew Cagney <cagney@redhat.com>
6260 * regcache.h (max_register_size): Delete declaration.
6261 * regcache.c (max_register_size): Delete function.
6262 (struct regcache_descr): Delete field "max_register_size".
6263 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6264 registers fit in MAX_REGISTER_SIZE.
6265 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6266 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6267 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6268 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6269 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6270 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6271 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6272 * dve3900-rom.c, hppa-tdep.c: Ditto.
6274 2003-05-08 David Carlton <carlton@math.stanford.edu>
6276 * valops.c (push_word): Fix typo.
6278 2003-05-08 Andrew Cagney <cagney@redhat.com>
6280 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6281 * gdbarch.h: Re-generate.
6282 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6283 (legacy_max_register_raw_size): Delete declaration.
6284 * regcache.c (legacy_max_register_raw_size): Delete function.
6285 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6286 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6287 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6288 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6289 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6290 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6291 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6292 * findvar.c, dwarf2cfi.c: Ditto.
6294 2003-05-08 Andrew Cagney <cagney@redhat.com>
6296 * mips-tdep.c (read_signed_register): New function, moved to here
6298 (read_signed_register_pid): Ditto.
6299 * regcache.c (read_signed_register_pid): Delete function, moved to
6301 (read_signed_register): Ditto.
6302 * regcache.h (read_signed_register): Delete declaration.
6303 (read_signed_register_pid): Delete declaration.
6305 2003-05-08 Andrew Cagney <cagney@redhat.com>
6307 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6308 * gdbarch.h: Re-generate.
6309 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6310 (legacy_max_register_virtual_size): Delete declaration.
6311 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6312 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6313 * tracepoint.c (memrange_sortmerge): Ditto.
6314 * sparc-tdep.c (sparc_print_registers): Ditto.
6315 * regcache.c (legacy_max_register_virtual_size): Delete function.
6317 2002-05-08 J. Brobecker <brobecker@gnat.com>
6319 * fork-child.c (escape_bang_in_quoted_argument): New function.
6320 (fork_inferior): Escape '!' characters in quoted arguments
6323 2003-05-08 J. Brobecker <brobecker@gnat.com>
6325 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6326 the language of the CU is not currently supported by GDB.
6328 2003-05-08 J. Brobecker <brobecker@gnat.com>
6330 * defs.h (language): Add language_minimal enum value.
6331 * c-lang.c (minimal_language_defn): New language definition.
6332 (_initialize_c_language): Add the new minimal language to the list
6333 of languages known to GDB.
6335 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6337 * frame.c (get_frame_type): Don't attempt to lazily initialize
6338 frame's unwinder for legacy frames.
6340 2003-05-07 Andrew Cagney <cagney@redhat.com>
6342 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6343 and "regcache" parameters.
6344 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6346 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6348 * dwarf2read.c (dwarf_decode_lines): Only use output of
6349 check_cu_functions() when calling record_line(). Do not update
6350 the current address.
6352 2003-05-07 Andrew Cagney <cagney@redhat.com>
6354 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6357 2003-05-07 Jim Blandy <jimb@redhat.com>
6359 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6360 'maint info symtabs' and 'maint info psymtabs'.
6361 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6362 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6363 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6364 Declarations updated.
6365 * maint.c (maintenance_list_command): Delete.
6366 (_initialize_maint_cmds): Update calls to add_cmd.
6367 * gdbcmd.h (maintenancelistlist): Delete declaration.
6368 * cli/cli-cmds.c (maintenancelistlist): Delete.
6369 (init_cmd_lists): Don't initialize it.
6370 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6372 2003-05-07 Andrew Cagney <cagney@redhat.com>
6374 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6376 (d10v_print_registers_info): Update.
6377 (d10v_dmap_register, d10v_imap_register): Delete functions.
6378 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6379 and "imap_register".
6380 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6381 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6382 * arch-utils.c (generic_remote_translate_xfer_address): Add
6383 "regcache" and "gdbarch" parameters.
6384 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6385 parameter. Change class to multi-arch.
6386 * gdbarch.h, gdbarch.c: Re-generate.
6387 * remote.c (remote_xfer_memory): Use
6388 gdbarch_remote_translate_xfer_address.
6390 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6392 * infrun.c (prev_pc): Move declaration ahead of proceed().
6393 (proceed): Refresh prev_pc value before resuming.
6394 (stop_stepping): Remove code to refresh prev_pc.
6396 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6398 * nto-tdep.c: Removed stray comment.
6400 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6402 * i386-nto-tdep.c: Fix old K&R function definitions.
6403 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6404 Also change add_show_from_set() call to add_setshow_cmd().
6405 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6407 2003-05-05 Andrew Cagney <cagney@redhat.com>
6409 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6410 (fprint_dummy_frames): New function.
6411 (maintenance_print_dummy_frames): New function.
6412 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6413 * frame.c (fprint_frame_id): Make global.
6414 * frame.h (fprint_frame_id): Declare.
6415 * Makefile.in (dummy-frame.o): Update dependencies.
6417 2003-05-05 Andrew Cagney <cagney@redhat.com>
6419 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6420 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6421 SIZEOF_CALL_DUMMY_WORDS.
6422 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6423 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6424 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6425 CALL_DUMMY_BREAKPOINT_OFFSET.
6426 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6427 CALL_DUMMY_START_OFFSET.
6428 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6429 * gdbarch.h, gdbarch.c: Re-generate.
6430 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6431 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6432 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6433 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6434 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6435 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6436 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6437 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6438 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6439 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6440 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6441 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6442 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6443 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6444 * config/sparc/tm-sparc.h: Update.
6446 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6448 * configure.tgt: Add i[3456]86-*-nto*.
6449 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6450 * nto-tdep.c: New file. Neutrino target support routines.
6451 * nto-tdep.h: New file. Neutrino target header.
6452 * config/tm-qnxnto.h: New file.
6453 * config/i386/i386nto.mt: New file.
6454 * config/i386/tm-i386nto.h: New file.
6456 2003-05-04 Andrew Cagney <cagney@redhat.com>
6458 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6459 (load_infrun_state): Ditto.
6460 (struct thread_info): Drop "prev_func_name" field.
6461 * thread.c (load_infrun_state): Update.
6462 (save_infrun_state): Update.
6463 * infrun.c (prev_func_name): Delete variable.
6464 (init_wait_for_inferior): Do not clear prev_func_name.
6465 (stop_stepping, keep_going, context_switch): Do not swap
6467 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6468 instead of PC_IN_SIGTRAMP.
6470 2003-05-04 Andrew Cagney <cagney@redhat.com>
6472 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6473 REGISTER_BYTE with register_offset_hack.
6474 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6475 that REGISTER_BYTE is consistent with the regcache.
6476 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6477 * gdbarch.h, gdbarch.c: Regenerate.
6479 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6481 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6482 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6484 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6486 2003-05-03 J. Brobecker <brobecker@gnat.com>
6488 From Thierry Schneider <tpschneider1@yahoo.com>
6489 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6490 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6491 (mi-cmd-symbol.o): Add rule.
6493 2003-05-03 Andrew Cagney <cagney@redhat.com>
6495 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6496 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6497 * gdbarch.h, gdbarch.c: Re-generate.
6498 * d10v-tdep.c (d10v_push_dummy_code): New function.
6499 (d10v_gdbarch_init): Set push_dummy_code.
6500 * infcall.c (legacy_push_dummy_code): New function.
6501 (generic_push_dummy_code): New function.
6502 (push_dummy_code): New function.
6503 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6504 instead of dummy_addr, to push_dummy_call. Move call to
6505 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6507 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6509 2003-05-03 Andrew Cagney <cagney@redhat.com>
6511 * disasm.h (print_insn): Declare.
6512 * disasm.c (init_gdb_disassemble_info): New function.
6513 (gdb_disassembly): Call init_gdb_disassemble_info.
6514 (gdb_print_insn): New function.
6515 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6516 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6517 * mcore-tdep.c: Include "disasm.h"
6518 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6519 * d10v-tdep.c: Include "disasm.h".
6520 (display_trace): Call gdb_print_insn, instead of print_insn.
6521 (print_insn): Delete function.
6522 * printcmd.c: Include "disasm.h".
6523 (print_insn): Delete function.
6524 (print_formatted): Call gdb_print_insn, instead of print_insn.
6525 * Makefile.in (printcmd.o): Update dependencies.
6526 (mcore-tdep.o, d10v-tdep.o): Ditto.
6528 2003-05-02 Andrew Cagney <cagney@redhat.com>
6530 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6531 PC_REGNUM, re-indent.
6532 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6533 PC_REGNUM isn't set.
6535 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6536 * gdbarch.h, gdbarch.c: Re-generate.
6537 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6538 register_virtual_size, pc_regnum, or register_bytes.
6539 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6540 (d10v_register_type): Use D10V_PC_REGNUM.
6541 (d10v_print_registers_info, d10v_read_pc): Ditto.
6542 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6543 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6545 2003-05-02 David Carlton <carlton@bactrian.org>
6547 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6548 the name with mstrsave.
6550 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6552 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6553 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6554 (host_charset_name, target_charset_name): New vars for use by
6556 (host_charset_enum, target_charset_enum): New enums for set/show
6558 (set_charset_sfunc, set_host_charset_sfunc,
6559 set_target_charset_sfunc): New functions.
6560 (set_host_charset, set_target_charset): Make static.
6561 (list_charsets, set_host_charset_command,
6562 set_target_charset_command): Delete functions.
6563 (show_charset_command): Rewrite as....
6564 (show_charset): Hook this up with the set/show command mechanism.
6565 (_initialize_charset): Change names of charsets to match the
6566 set/show enums. Use host_charset_name and target_charset_name.
6567 Use set/show mechanism for charset, host-charset, target-charset
6568 commands. Do not make 'show host-charset' and 'show
6569 target-charset' be aliases of 'show charset'.
6571 * charset.h (set_host_charset, set_target_charset): Don't export,
6572 they are not used outside the file.
6574 2003-05-01 Andrew Cagney <cagney@redhat.com>
6576 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6577 (gdb_disassembly): Make "di" non static, always initialize and
6578 cleanup. Always use dis_asm_read_memory.
6579 (gdb_dis_asm_read_memory): Delete function.
6581 2003-05-01 Andrew Cagney <cagney@redhat.com>
6583 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6584 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6586 2003-04-30 Andrew Cagney <cagney@redhat.com>
6588 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6589 "tm_print_insn_info".
6590 (TARGET_PRINT_INSN_INFO): Delete macro.
6591 (dis_asm_read_memory): Delete function declaration.
6592 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6593 (tm_print_insn_info): Delete variable definition.
6594 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6595 * gdbarch.h, gdbarch.c: Re-generate.
6596 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6597 "deprecated_tm_print_insn_info".
6598 * mcore-tdep.c (mcore_dump_insn): Ditto.
6599 * mips-tdep.c (mips_gdbarch_init): Ditto.
6600 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6601 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6602 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6603 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6604 instead of TARGET_PRINT_INSN_INFO, add comment.
6605 * s390-tdep.c (s390_get_frame_info): Instead of
6606 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6607 (s390_check_function_end, s390_is_sigreturn): Ditto.
6608 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6609 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6610 * disasm.c: Include "gdbcore.h".
6611 (_initialize_disasm): New function, initialize
6612 "deprecated_tm_print_insn_info".
6613 (deprecated_tm_print_insn_info): New variable.
6614 (dis_asm_read_memory): Moved from "corefile.c", made static.
6615 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6616 * Makefile.in (disasm.o): Update dependencies.
6618 2003-04-30 Andrew Cagney <cagney@redhat.com>
6620 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6622 2003-04-29 Adam Fedor <fedor@gnu.org>
6624 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6625 * infcall.c (find_function_addr): Make non-static.
6626 * infcall.h (find_function_addr): Declare.
6627 * Makefile.in (eval.o): Update dependencies.
6629 2003-04-28 Adam Fedor <fedor@gnu.org>
6631 * symtab.c (symbol_find_demangled_name): Check for and demangle
6633 (symbol_init_demangled_name): Init for language_objc as well.
6635 2003-04-28 Andrew Cagney <cagney@redhat.com>
6637 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6638 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6639 * gdbarch.h, gdbarch.c: Re-generate.
6640 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6641 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6642 * inferior.h (deprecated_read_fp): Rename read_fp.
6643 (generic_target_read_fp): Delete declaration.
6644 * regcache.c (generic_target_read_fp): Delete function.
6645 (deprecated_read_fp): Replace read_fp, use
6646 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6647 * d10v-tdep.c (d10v_read_fp): Delete function.
6648 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6650 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6651 deprecated_target_read_fp to generic_target_read_fp.
6652 * sh-tdep.c (sh_gdbarch_init): Ditto.
6653 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6654 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6655 * frv-tdep.c (frv_gdbarch_init): Ditto.
6657 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6658 deprecated_fp_regnum.
6659 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6660 * vax-tdep.c (vax_gdbarch_init): Ditto.
6661 * v850-tdep.c (v850_gdbarch_init): Ditto.
6662 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6663 * sh-tdep.c (sh_gdbarch_init): Ditto.
6664 * s390-tdep.c (s390_gdbarch_init): Ditto.
6665 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6666 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6667 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6668 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6669 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6670 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6671 * i386-tdep.c (i386_gdbarch_init): Ditto.
6672 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6673 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6674 * frv-tdep.c (frv_gdbarch_init): Ditto.
6675 * cris-tdep.c (cris_gdbarch_init): Ditto.
6676 * avr-tdep.c (avr_gdbarch_init): Ditto.
6677 * arm-tdep.c (arm_gdbarch_init): Ditto.
6678 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6680 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6681 * v850-tdep.c (v850_gdbarch_init): Ditto.
6682 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6683 * sh-tdep.c (sh_gdbarch_init): Ditto.
6684 * s390-tdep.c (s390_gdbarch_init): Ditto.
6685 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6686 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6687 * mips-tdep.c (mips_gdbarch_init): Ditto.
6688 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6689 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6690 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6691 * frv-tdep.c (frv_gdbarch_init): Ditto.
6692 * avr-tdep.c (avr_gdbarch_init): Ditto.
6693 * arm-tdep.c (arm_gdbarch_init): Ditto.
6695 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6696 DEPRECATED_FP_REGNUM.
6697 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6698 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6699 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6700 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6701 (sparc32_register_virtual_type): Ditto.
6702 * sh-tdep.c (sh64_frame_chain): Ditto.
6703 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6704 (sh_nofp_frame_init_saved_regs): Ditto.
6705 (sh64_nofp_frame_init_saved_regs): Ditto.
6706 (sh_fp_frame_init_saved_regs): Ditto.
6707 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6708 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6709 * procfs.c (procfs_fetch_registers): Ditto.
6710 (procfs_store_registers): Ditto.
6711 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6712 (store_inferior_registers, fetch_core_registers): Ditto.
6713 (fetch_kcore_registers, clear_regs): Ditto.
6714 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6715 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6716 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6717 * nlm/i386.c (do_status): Ditto.
6718 * mipsv4-nat.c (supply_gregset): Ditto.
6719 * mips-tdep.c: Ditto for comments.
6720 * mips-nat.c (fetch_inferior_registers): Ditto.
6721 (store_inferior_registers, fetch_core_registers): Ditto.
6722 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6723 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6724 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6725 (i386_do_pop_frame, i386_register_type): Ditto.
6726 * hppa-tdep.c (hppa_frame_chain): Ditto.
6727 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6728 (hppa_pop_frame, hppa_read_fp): Ditto.
6729 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6730 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6731 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6732 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6733 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6734 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6735 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6736 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6737 * blockframe.c: Ditto for comments.
6738 * arch-utils.h: Ditto for comments.
6739 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6740 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6741 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6742 * alpha-tdep.h: Ditto for comments.
6743 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6744 (alpha_cannot_store_register): Ditto.
6745 (alpha_push_dummy_frame): Ditto.
6746 * alpha-nat.c (supply_gregset): Ditto.
6748 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6749 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6750 * config/sparc/tm-sparc.h: Update comment.
6752 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6753 deprecated_read_fp instead of TARGET_READ_FP.
6754 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6755 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6756 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6757 deprecated_read_fp instead of read_fp.
6758 * s390-tdep.c (s390_push_arguments): Ditto.
6759 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6760 * frame.h: Ditto in comments.
6761 * frame.c (legacy_get_prev_frame): Ditto.
6762 * dummy-frame.c (dummy_frame_this_id): Ditto.
6763 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6765 2003-04-28 Andrew Cagney <cagney@redhat.com>
6767 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6768 * gdbarch.h, gdbarch.c: Re-generate.
6769 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6770 * vax-tdep.c (_initialize_vax_tdep): Update.
6771 * v850-tdep.c (_initialize_v850_tdep): Update.
6772 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6773 * s390-tdep.c (_initialize_s390_tdep): Update.
6774 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6775 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6776 * mips-tdep.c (_initialize_mips_tdep): Update.
6777 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6778 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6779 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6780 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6781 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6782 * frv-tdep.c (_initialize_frv_tdep): Update.
6783 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6784 (_initialize_cris_tdep): Update.
6785 * arch-utils.c (legacy_print_insn): Update.
6786 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6788 2003-04-26 Adam Fedor <fedor@gnu.org>
6790 * linespec.c (decode_objc): New function to decode ObjC calls
6791 (decode_line_1): Check for ObjC calls (using decode_objc)
6792 * Makefile (linespec.o): Update dependencies.
6794 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6796 * breakpoint.h (struct breakpoint_ops): New.
6797 (struct breakpoint): Add ops member.
6799 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6800 (mention): Use new breakpoint ops member.
6801 (set_raw_breakpoint): Initialize ops field to NULL.
6802 (print_exception_catchpoint, print_one_exception_catchpoint)
6803 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6804 (gnu_v3_exception_catchpoint_ops): New.
6805 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6807 2003-04-25 Adam Fedor <fedor@gnu.org>
6809 * Makefile.in (COMMON_OBS): Add objc-lang.o
6811 2003-04-25 Andrew Cagney <cagney@redhat.com>
6813 * d10v-tdep.c (print_insn): Delete function.
6814 (display_trace): Use TARGET_PRINT_INSN.
6815 (_initialize_d10v_tdep): Do not set tm_print_insn.
6816 (d10v_gdbarch_init): Set print_insn.
6818 2003-04-25 Andrew Cagney <cagney@redhat.com>
6820 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6821 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6822 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6823 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6824 (nr_dmap_regs, a0_regnum): ... new functions.
6825 (d10v_print_registers_info): Use a0_regnum, use register_size.
6826 (d10v_register_byte): Delete function.
6827 (d10v_register_raw_size): Delete function.
6828 (d10v_register_type): Use a0_regnum.
6829 (d10v_print_registers_info): Use a0_regnum.
6830 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6831 (d10v_gdbarch_init): Do not set register_byte or
6832 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6833 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6835 (trace_command): Use XCALLOC.
6836 (print_insn): Delete reference to tm_print_insn.
6837 (saved_regs_unwinder): Use store_unsigned_integer instead of
6839 * frame.h (FRAME_OBSTACK_CALLOC): Define
6841 2003-04-25 David Carlton <carlton@bactrian.org>
6843 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6845 2003-04-24 Adam Fedor <fedor@gnu.org>
6847 * objc-lang.c: Include "valprint.h"
6848 * Makefile.in (objc-lang.o): Update dependencies.
6850 2003-04-24 Adam Fedor <fedor@gnu.org>
6852 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6853 architecture dependant compilation and mark as unimplemented
6854 (until they get put in the gdbarch vector).
6856 2003-04-23 David Carlton <carlton@bactrian.org>
6858 * cp-support.c (cp_find_first_component): Accept 'operator' in
6861 2003-04-23 Andrew Cagney <cagney@redhat.com>
6863 * infcall.c (call_function_by_hand): Eliminate redundant
6864 indentation. Move "saved_async" and "old_cleanups" to where they
6867 2003-04-23 Andrew Cagney <cagney@redhat.com>
6869 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6870 and "buffer". Move the "name" code to where it is needed.
6872 2003-04-23 Andrew Cagney <cagney@redhat.com>
6874 * infcall.c (call_function_by_hand): Move variables "start_sp",
6875 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6876 code to ON_STACK switch branch.
6878 2003-04-23 Andrew Cagney <cagney@redhat.com>
6880 * infcall.c (call_function_by_hand): Make declaration of "i",
6881 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6884 2003-04-23 Andrew Cagney <cagney@redhat.com>
6886 * infcall.c (call_function_by_hand): Delete variable
6887 "n_method_args". Localize "param_type"'s declaration to the loop
6888 that it is used. Reinstate code assigning to said variable -
6889 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6890 Rationalize code using "param_type".
6892 2003-04-22 Andrew Cagney <cagney@redhat.com>
6894 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6895 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6896 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6897 to DEPRECATED_PUSH_RETURN_ADDRESS.
6899 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6901 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6902 on the DWARF2 register number prior to fetching a register.
6904 2003-04-22 J. Brobecker <brobecker@gnat.com>
6906 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6907 Update all the tests using SOFT_FLOAT considering the fact that
6908 this macro was always set to 0.
6909 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6910 considering the fact that this macro was always set to 0.
6911 * hppa-tdep.h (hppa_store_return_value): Likewise.
6912 (hppa_extract_return_value): Likewise.
6914 2003-04-22 J. Brobecker <brobecker@gnat.com>
6916 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6917 the hppa-pro target only.
6919 2003-04-21 J. Brobecker <brobecker@gnat.com>
6921 Ongoing multi-arch conversion effort for HP/UX:
6922 * config/pa/tm-hppa.h: Move all macro that are no longer
6923 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6924 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6926 2003-04-21 J. Brobecker <brobecker@gnat.com>
6928 * config/pa/tm-hppa.h: Obsolete a section that was only used
6931 2003-04-21 J. Brobecker <brobecker@gnat.com>
6933 Ongoing multi-arch conversion for HP/UX.
6934 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6935 if already defined (allows hppa64 to stay non-multiarched for now).
6936 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6938 2003-04-21 Andrew Cagney <cagney@redhat.com>
6940 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6942 2003-04-21 Andrew Cagney <cagney@redhat.com>
6944 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6945 "i386_num_mmx_regs".
6947 2003-04-21 Andrew Cagney <cagney@redhat.com>
6949 * infcall.c: New file.
6950 * infcall.h: New file.
6951 * valarith.c: Include "infcall.h".
6952 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6953 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6954 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6955 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6956 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6957 (SFILES): Add "infcall.c"
6958 (COMMON_OBS): Add "infcall.o".
6959 (infcall.o): Specify dependencies.
6960 * value.h (call_function_by_hand): Delete declaration.
6961 * inferior.h (run_stack_dummy): Delete declaration.
6962 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6963 (run_stack_dummy): Move to "infcall.c", merged into
6964 call_function_by_hand.
6965 * valops.c (call_function_by_hand): Moved to "infcall.c".
6966 (find_function_addr, value_arg_coerce): Ditto.
6967 (unwindonsignal_p, coerce_float_to_double): Ditto.
6968 (_initialize_valops): Move "set/show coerce-float-to-double", and
6969 "set/show unwindonsignal" commands to "infcall.c".
6970 * v850-tdep.c, target.h: Update comments.
6971 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6972 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6973 (sh64_init_extra_frame_info): Update comments.
6974 * mn10300-tdep.c: Update comments.
6975 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6976 * config/sparc/tm-sparc.h: Update comments.
6977 * breakpoint.h: Update comments.
6978 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6979 * arm-tdep.c: Update comment.
6981 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6983 * i386-tdep.c (i386_num_register_names): New variable.
6984 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6985 (MM0_REGNUM): Remove redundant parentheses in define.
6986 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6987 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6988 i386_mxcsr_regnum_p): Remove redundant parentheses.
6989 (i386_register_name): Use i386_num_register_names.
6991 * i386-tdep.c (i386_extract_return_value,
6992 i386_store_return_value): Correct check for availability of
6993 floating-point registers.
6995 * i386-tdep.c (i386_frame_num_args): Remove function.
6996 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6998 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6999 mmx_regnum_to_fp_regnum. Adjust all callers.
7001 * i386-tdep.c (i386_get_longjmp_target): Use
7002 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7003 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7006 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7008 * core-regset.c: Update comments to reflect reality. Re-order
7010 (fetch_core_registers): Use switch instead of if. Remove
7011 redundant prototype.
7013 2003-04-18 Jim Blandy <jimb@redhat.com>
7015 * s390-tdep.c (s390_frame_align): New function.
7016 (s390_gdbarch_init): Register it with the gdbarch object.
7018 2003-04-17 Richard Henderson <rth@redhat.com>
7020 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7022 2003-04-17 Michael Snyder <msnyder@redhat.com>
7023 Karen Bennet <bennet@redhat.com>
7025 Committed by Elena Zannoni <ezannoni@redhat.com>
7026 * gdb_gcore.sh: New script to create a core dump of a process.
7028 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7030 * values.c (value_being_returned): Don't fetch the return
7031 value if the return type is void.
7033 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7035 * thread-db.c: Reindented.
7037 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7039 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7040 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7067 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7069 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7070 the size of ``long double'' to 16, instead of 8.
7072 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7074 * i386-linux-nat.c: Add some whitespace to make things more
7076 (fetch_register, store_register, fetch_inferior_registers,
7077 store_inferior_registers): Get rid of assignment in if-statement.
7078 (store_register): Fix typo in error message.
7080 2003-04-16 Andrew Cagney <cagney@redhat.com>
7082 * utils.c (xmmalloc): Always allocate something, matches
7083 libiberty/xmalloc's semantics.
7084 (xmrealloc, xmcalloc): Ditto.
7086 2003-04-16 Andrew Cagney <cagney@redhat.com>
7088 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7090 (get_frame_type): Initialize unwind and type when needed.
7091 (get_frame_id, frame_register_unwind): Ditto.
7093 2003-04-16 Andrew Cagney <cagney@redhat.com>
7095 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7097 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7098 * sparcl-stub.c: Obsolete file.
7099 * config/sparc/tm-sparclet.h: Obsolete file.
7100 * sparclet-stub.c: Obsolete file.
7101 * sparclet-rom.c: Obsolete file.
7102 * sparcl-tdep.c: Obsolete file.
7103 * config/sparc/tm-sparclite.h: Obsolete file.
7104 * config/sparc/sparclite.mt: Obsolete file.
7105 * config/sparc/sparclet.mt: Obsolete file.
7106 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7107 sparc86x-*-* obsolete.
7109 2003-04-15 David Carlton <carlton@math.stanford.edu>
7111 * Makefile.in (SFILES): Add cp-namespace.c.
7112 (COMMON_OBS): Add cp-namespace.o.
7113 (block.o): Depend on gdb_obstack_h and cp_support_h.
7114 (buildsym.o): Depend on cp_support_h.
7115 (cp-namespace.o): New.
7116 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7117 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7118 (dwarf2read.o): Depend on cp_support_h.
7119 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7120 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7121 processing_current_namespace.
7122 (read_namespace): Update processing_current_namespace; check for
7123 anonymous namespaces.
7124 (dwarf2_name): New function.
7125 (dwarf2_extension): Ditto.
7126 * cp-support.h: Update copyright, contributors.
7127 Add inclusion guards.
7128 Add opaque declaration for structs obstack, block, symbol.
7129 (struct using_direct): New struct.
7130 Add declarations for cp_find_first_component,
7131 cp_entire_prefix_len, processing_has_namespace_info,
7132 processing_current_namespace, cp_is_anonymous,
7133 cp_add_using_directive, cp_initialize_namespace,
7134 cp_finalize_namespace, cp_set_block_scope,
7135 cp_scan_for_anonymous_namespaces.
7136 * cp-namespace.c: New file.
7137 * cp-support.c: Update copyright.
7138 Include ctype.h, gdb_assert.h, gdbcmd.h.
7139 New variable maint_cplus_cmd_list.
7140 (cp_find_first_component): New function.
7141 (cp_entire_prefix_len, maint_cplus_command)
7142 (first_component_command, _initialize_cp_support): Ditto.
7143 * buildsym.c: Include cp-support.h.
7144 New variable using_list.
7145 (add_symbol_to_list): Check for anonymous namespaces.
7146 (finish_block): Set block's scope.
7147 (start_symtab): Initialize C++ namespace support.
7148 (end_symtab): Finalize C++ namespace support.
7149 * block.h: Add opaque declarations for structs
7150 block_namespace_info, using_direct, and obstack.
7151 Add declarations for block_set_scope and block_set_using.
7152 (struct block): Add 'language_specific' member.
7153 (BLOCK_NAMESPACE): New macro.
7154 * block.c: Include gdb_obstack.h and cp-support.h.
7155 (struct block_namespace_info): New struct.
7156 (block_set_scope): New function.
7157 (block_set_using, block_initialize_namespace): Ditto.
7159 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7161 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7162 (locate_base): Return early if there aren't any link map offsets.
7163 (svr4_solib_create_inferior_hook): Warn if shared library support
7166 2003-04-14 David Carlton <carlton@math.stanford.edu>
7168 * symtab.c (symbol_set_names): Add prefix when storing Java names
7169 in hash table. Fix for PR java/1039.
7171 2003-04-14 David Carlton <carlton@math.stanford.edu>
7173 * symtab.c (symbol_set_names): Rename 'name' arg to
7174 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7175 * symtab.h: Change 'name' argument in declaration of
7176 symbol_set_names to 'linkage_name'.
7177 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7179 2003-04-14 Andrew Cagney <cagney@redhat.com>
7181 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7182 return the fully sign-extended register value.
7183 (get_frame_pointer): Ditto.
7184 (mips_pop_frame): Initialize "proc_desc" after checking for a
7187 2003-04-14 Andrew Cagney <cagney@redhat.com>
7189 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7190 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7191 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7192 (mips_push_register): Delete function.
7193 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7196 2003-04-14 Jim Blandy <jimb@redhat.com>
7198 * symmisc.c: #include "gdb_regex.h".
7199 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7201 * maint.c (maintenance_list_command): New function.
7202 (_initialize_maint_cmds): Register the above as commands.
7203 * symtab.h (maintenance_list_symtabs,
7204 maintenance_list_psymtabs): New declarations.
7205 * cli/cli-cmds.c (maintenancelistlist): New variable.
7206 (init_cmd_lists): Initialize it.
7207 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7208 * gdbcmd.h (maintenancelistlist): New declaration.
7209 * Makefile.in (symmisc.o): Update dependencies.
7211 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7213 * s390-nat.c: Include asm/types.h for addr_t.
7215 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7217 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7218 actually incoming type.
7220 2003-04-13 Andrew Cagney <cagney@redhat.com>
7222 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7223 get_next_frame and get_frame_saved_regs.
7225 2003-04-13 Andrew Cagney <cagney@redhat.com>
7227 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7228 of gdbarch_num_regs.
7230 2003-04-13 Andrew Cagney <cagney@redhat.com>
7232 * frame.h: Mention what replaced what in "struct frame_info".
7233 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7234 deprecated_update_frame_base_hack and
7235 deprecated_update_frame_pc_hack.
7236 * hppa-tdep.c: Ditto.
7238 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7240 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7241 to read_reg and update its comment. Remove regnum member.
7242 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7243 Don't call read_reg when setting in_reg. Call read_reg to get
7244 the frame base if it's in a register. Return the register number
7245 on the stack instead of in the context. Remove extra arguments
7247 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7248 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7249 the register number on the expression stack.
7250 (needs_frame_read_reg): Remove extra arguments.
7252 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7254 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7256 (execute_stack_op): All callers updated.
7257 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7258 * dwarf2loc.c (find_location_expression): New function.
7259 (dwarf_expr_frame_base): Call it.
7260 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7261 (dwarf2_tracepoint_var_ref): New function, broken out from
7262 locexpr_tracepoint_var_ref.
7263 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7265 (loclist_read_variable, loclist_read_needs_frame): New functions.
7266 (loclist_describe_location, loclist_tracepoint_var_ref): New
7268 (dwarf2_loclist_funcs): New struct location_funcs.
7269 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7270 (struct dwarf2_locexpr_baton): Add comments.
7271 (dwarf2_loclist_funcs): New extern.
7272 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7273 base_address and base_known.
7274 (dwarf_loc_buffer): New variable.
7275 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7276 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7277 (dwarf2_has_info): Initialize dwarf_loc_offset.
7278 (dwarf2_build_psymtabs): Read in .debug_loc.
7279 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7281 (psymtab_to_symtab_1): Likewise. Move base address calculation
7283 (dwarf2_get_pc_bounds): ... here. Use the base address from
7285 (dwarf2_symbol_mark_computed): Handle location lists.
7287 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7289 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7290 if the linkage name demangled successfully.
7292 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7294 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7295 disassmbly_flavour): Removed.
7297 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7299 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7301 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7303 2003-04-12 Andrew Cagney <cagney@redhat.com>
7305 * frame.h (struct frame_info): Move definition from here ...
7306 * frame.c (struct frame_info): ... to here.
7308 2003-04-12 Andrew Cagney <cagney@redhat.com>
7310 * gdbthread.h (save_infrun_state): Delete parameter
7312 (struct thread_info): Delete field "prev_func_start".
7313 (load_infrun_state): Ditto.
7314 * thread.c (load_infrun_state, save_infrun_state): Update.
7315 * infrun.c (prev_func_start): Delete variable.
7316 (context_switch, init_wait_for_inferior): Update.
7317 (stop_stepping, keep_going): Update.
7319 2003-04-12 Andrew Cagney <cagney@redhat.com>
7321 * gdbarch.sh: Add missing opaque declarations.
7322 * gdbarch.h: Regnerate.
7323 * symtab.h: Add missing opaque declarations.
7324 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7325 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7326 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7327 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7328 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7329 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7330 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7331 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7332 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7333 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7334 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7335 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7336 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7338 2003-04-11 Andrew Cagney <cagney@redhat.com>
7340 * frame.c (get_frame_id): Return this frame's "id".
7341 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7343 (legacy_saved_regs_this_id): Replace function body with
7345 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7346 FRAME_OBSTACK_ZALLOC.
7347 (create_new_frame): Mark the frame ID as valid.
7349 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7351 * Makefile.in (libbfd_h): Added missing setting.
7352 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7353 according to the selected ABI.
7355 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7357 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7359 2003-04-11 Andrew Cagney <cagney@redhat.com>
7361 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7362 SAVED_PC_AFTER_CALL.
7363 * gdbarch.h, gdbarch.c: Regenerate.
7364 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7365 * x86-64-tdep.c (x86_64_init_abi): Update.
7366 * vax-tdep.c (vax_gdbarch_init): Update.
7367 * v850-tdep.c (v850_gdbarch_init): Update.
7368 * sparc-tdep.c (sparc_gdbarch_init): Update.
7369 * sh-tdep.c (sh_gdbarch_init): Update.
7370 * s390-tdep.c (s390_gdbarch_init): Update.
7371 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7372 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7373 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7374 * mips-tdep.c (mips_gdbarch_init): Update.
7375 * mcore-tdep.c (mcore_gdbarch_init): Update.
7376 * m68k-tdep.c (m68k_gdbarch_init): Update.
7377 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7378 * ia64-tdep.c (ia64_gdbarch_init): Update.
7379 (ia64_saved_pc_after_call): Update declaration.
7380 * i386ly-tdep.c (i386lynx_init_abi): Update.
7381 * i386-tdep.c (i386_gdbarch_init): Update.
7382 * hppa-tdep.c (hppa_gdbarch_init): Update.
7383 * h8300-tdep.c (h8300_gdbarch_init): Update.
7384 * frv-tdep.c (frv_gdbarch_init): Update.
7385 * cris-tdep.c (cris_gdbarch_init): Update.
7386 * avr-tdep.c (avr_gdbarch_init): Update.
7387 * arm-tdep.c (arm_gdbarch_init): Update.
7388 * alpha-tdep.c (alpha_gdbarch_init): Update.
7389 * ns32knbsd-nat.c (frame_num_args): Update.
7390 * ns32k-tdep.c (umax_frame_num_args): Update.
7391 * mips-tdep.c (mips_init_frame_pc_first): Update.
7392 * infrun.c (step_over_function): Update.
7393 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7394 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7395 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7396 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7397 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7398 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7399 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7400 * arch-utils.c (init_frame_pc_default): Update.
7401 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7402 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7405 2003-04-11 Andrew Cagney <cagney@redhat.com>
7407 * i387-tdep.c: Update copyright.
7408 (i387_to_double): Delete function.
7409 (double_to_i387): Delete function.
7411 2003-04-10 Andrew Cagney <cagney@redhat.com>
7413 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7414 frame's function's address. Simplify.
7415 (d10v_frame_unwind_cache): Check that the frame's function is
7418 2003-04-10 Jim Blandy <jimb@redhat.com>
7420 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7421 call to set_gdbarch_deprecated_push_arguments.
7423 2003-04-10 Andrew Cagney <cagney@redhat.com>
7425 * frame.c (fprint_frame_id): New function.
7426 (fprint_frame_type, fprint_frame): New function.
7427 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7428 (create_sentinel_frame, get_frame_id): Ditto.
7429 (frame_id_p, frame_id_eq): Ditto.
7430 (frame_id_inner, create_new_frame): Ditto.
7431 (legacy_get_prev_frame, get_prev_frame): Ditto.
7432 (deprecated_update_frame_pc_hack): Ditto.
7433 (frame_register_unwind): Ditto.
7434 (deprecated_update_frame_base_hack): Ditto.
7436 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7438 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7439 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7440 frame_chain function.
7441 * Makefile.in: Add dependencies due to above change.
7443 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7445 * blockframe.c (legacy_frame_chain_valid): Move call to
7446 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7449 2003-04-09 Andrew Cagney <cagney@redhat.com>
7451 * frame.h (struct frame_id): Replace "pc" and "base" with
7452 "stack_addr" and "code_addr". Update comments.
7453 (frame_id_build): Update parameter names and comment.
7454 (struct frame_info): Replace "id_p" and "id" with "this_id".
7455 * dummy-frame.c (dummy_frame_this_id): Update.
7456 * breakpoint.c (print_one_breakpoint): Update.
7457 * frame.c (get_frame_id): Update.
7458 (get_frame_base, frame_id_build): Update.
7459 (create_sentinel_frame, legacy_get_prev_frame): Update.
7460 (deprecated_update_frame_base_hack): Update.
7461 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7462 (frame_id_inner): Ditto.
7464 2003-04-09 Andrew Cagney <cagney@redhat.com>
7466 * defs.h (gdb_print_host_address): Make "addr" parameter a
7468 * utils.c (gdb_print_host_address): Update.
7470 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7472 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7473 register number for R0 is 0.
7475 2003-04-09 J. Brobecker <brobecker@gnat.com>
7477 * frame.h (struct gdbarch): Add opaque structure definition
7478 to avoid a compilation warning on LynxOS 4.0.
7480 2003-04-09 Andrew Cagney <cagney@redhat.com>
7482 * frame.h (struct frame_info): Delete field "pc". Replace
7483 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7485 * frame.c (frame_pc_unwind): Update.
7486 (create_sentinel_frame): Do not set "pc".
7487 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7488 (get_frame_pc): Call frame_pc_unwind.
7489 (deprecated_update_frame_pc_hack): Update.
7490 (create_new_frame): Use "pc" not "->pc".
7492 2003-04-09 Andrew Cagney <cagney@redhat.com>
7494 * frame.c (get_frame_id): Eliminate code updating "frame".
7495 (legacy_get_prev_frame): Ditto.
7496 (get_frame_base): Return id.base directly.
7497 (deprecated_update_frame_base_hack): Update "id.base".
7498 * frame.h (struct frame_info): Delete field "frame".
7500 2003-04-09 Andrew Cagney <cagney@redhat.com>
7502 * NEWS: Mention that the "Sequent family" is obsolete.
7503 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7504 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7505 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7506 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7507 * config/i386/tm-ptx4.h: Obsolete file.
7508 * config/i386/tm-ptx.h: Obsolete file.
7509 * symm-tdep.c: Obsolete file.
7510 * config/i386/symmetry.mt: Obsolete file.
7511 * config/i386/tm-symmetry.h: Obsolete file.
7512 * symm-nat.c: Obsolete file.
7513 * config/i386/nm-symmetry.h: Obsolete file.
7514 * config/i386/xm-symmetry.h: Obsolete file.
7515 * config/i386/symmetry.mh: Obsolete file.
7516 * config/i386/nm-ptx4.h: Obsolete file.
7517 * config/i386/ptx4.mh: Obsolete file.
7518 * config/i386/ptx.mt: Obsolete file.
7519 * config/i386/ptx.mh: Obsolete file.
7520 * config/i386/xm-ptx4.h: Obsolete file.
7521 * config/i386/xm-ptx.h: Obsolete file.
7523 2003-04-09 Andrew Cagney <cagney@redhat.com>
7525 Obsolete mips*-*-mach3*.
7526 * NEWS: Mention that mips*-*-mach3* is obsolete.
7527 * m3-nat.c: Obsolete file.
7528 * config/nm-m3.h: Obsolete file.
7529 * config/mips/tm-mipsm3.h: Obsolete file.
7530 * config/mips/mipsm3.mt: Obsolete file.
7531 * config/mips/mipsm3.mh: Obsolete file.
7532 * config/mips/xm-mipsm3.h: Obsolete file.
7533 * mipsm3-nat.c: Obsolete file.
7534 * configure.host: Obsolete mips-dec-mach3*.
7535 * configure.tgt: Obsolete mips*-*-mach3*.
7537 2003-04-09 Andrew Cagney <cagney@redhat.com>
7539 * doublest.h: Update copyright.
7540 (deprecated_store_floating, deprecated_extract_floating): Rename
7541 store_floating and extract_floating. Update comments.
7542 * doublest.c: Update copyright.
7543 (extract_floating_by_length): Replace extract_floating.
7544 (store_floating_by_length): Replace store_floating.
7545 (deprecated_extract_floating): New function.
7546 (deprecated_store_floating): New function.
7547 (extract_typed_floating): Call extract_floating_by_length.
7548 (store_typed_floating): Call store_floating_by_length.
7549 * x86-64-tdep.c (x86_64_store_return_value): Update.
7550 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7551 (sh64_extract_return_value): Update.
7552 (sh_sh4_register_convert_to_virtual): Update.
7553 (sh_sh64_register_convert_to_virtual): Update.
7554 (sh_sh4_register_convert_to_raw): Update.
7555 (sh_sh64_register_convert_to_raw): Update.
7556 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7557 (rs6000_register_convert_to_raw): Update.
7558 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7559 (ia64_register_convert_to_raw): Update.
7560 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7561 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7562 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7563 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7564 (alpha_register_convert_to_raw): Update.
7566 2003-04-08 Andrew Cagney <cagney@redhat.com>
7568 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7569 * gdbarch.h, gdbarch.c: Re-generate.
7570 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7571 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7572 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7573 conditionally, use frame_pc_unwind as an alternative. Add
7575 * arch-utils.c (init_frame_pc_default): Only call
7576 SAVED_PC_AFTER_CALL when available.
7578 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7580 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7581 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7582 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7583 (start_remote): Ditto.
7584 (handle_inferior_event): Ditto.
7585 (save_inferior_status): Ditto.
7586 (restore_inferior_status): Ditto.
7587 * infcmd.c (attach_command): Ditto.
7588 * fork-child.c (startup_inferior): Ditto.
7589 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7590 * alpha-tdep.c (heuristic_proc_start): Ditto.
7591 * mips-tdep.c (heuristic_proc_start): Ditto.
7592 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7593 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7594 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7595 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7596 * remote-vx.c (vx_create_inferior): Ditto.
7598 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7600 * infrun.c (stop_soon_quietly): Make it an enum, to better
7601 override the default behavior of handle_inferior_event.
7602 (clear_proceed_status): Update uses of stop_soon_quietly to
7603 reflect that it is now an enum.
7604 (start_remote): Ditto.
7605 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7606 is set to handle the new GNU/Linux kernel behavior for
7607 attach/sigstop. Update uses of stop_soon_quietly.
7608 * inferior.h (enum stop_kind): New enum.
7609 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7610 Reset normal handle_inferior_event behavior, afterwards.
7611 * fork-child.c (startup_inferior): Update.
7612 * alpha-tdep.c (heuristic_proc_start): Update.
7613 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7614 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7615 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7616 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7617 * remote-vx.c (vx_create_inferior): Update.
7618 * mips-tdep.c (heuristic_proc_start): Update.
7620 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7622 * disasm.c (dump_insns): Move variables inside loop, or they will
7623 be freed more than once, causing wild memory corruptions.
7624 (gdb_disassembly): Look for the substring "-thread",
7625 instead of "-threads" in the target name, to make sure to find
7626 the 'multi-thread' target. Also, make sure we do the right thing
7627 with the "core" target.
7629 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7631 * mips-tdep.c (mips_print_fp_register): New function, created from
7632 do_fp_register_row(). Registers are now (also) printed as hex.
7633 Only one register is printed per row.
7634 (mips_print_register, do_fp_register_row): Print floating point
7635 registers with mips_print_fp_register().
7637 2003-04-06 Andrew Cagney <cagney@redhat.com>
7639 * valprint.h (inspect_it): Add extern declaration.
7640 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7641 (selectors_info, classes_info): Ditto.
7642 (find_objc_msgcall): Fix indentation.
7643 (objc_printstr): Delete extern declarations.
7645 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7647 2003-04-06 Andrew Cagney <cagney@redhat.com>
7649 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7651 * frame.c (legacy_saved_regs_this_id): Update.
7652 (legacy_get_prev_frame): Update.
7653 * xstormy16-tdep.c: Update comment.
7654 * sparc-tdep.c (sparc_frame_chain): Update comment.
7655 * blockframe.c (legacy_frame_chain_valid): Update.
7657 2003-04-06 Andrew Cagney <cagney@redhat.com>
7659 * valprint.c (val_print_type_code_int): Delete #ifdef
7660 PRINT_TYPELESS_INTEGER code.
7662 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7663 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7664 multi-arch definition.
7665 * gdbarch.h: Re-generate.
7667 2003-04-05 Andrew Cagney <cagney@redhat.com>
7669 Eliminate FRAME_FIND_SAVED_REGS.
7670 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7671 Change FSR parameter to a pointer.
7672 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7673 Assume FSR parameter is a pointer.
7674 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7676 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7677 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7678 saved_regs a pointer.
7679 (hppa_frame_saved_pc): Ditto.
7680 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7681 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7683 (restore_pc_queue): Make fsr a pointer.
7684 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7685 (hppa_frame_chain): Make saved_regs a pointer, call
7686 hppa_frame_init_saved_regs.
7687 * sparc-tdep.c: Include "gdb_assert.h".
7688 (sparc_frame_find_saved_regs): Replace internal_error with
7690 * remote-vxsparc.c (vx_read_register): Delete reference to
7691 FRAME_FIND_SAVED_REGS.
7692 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7693 * gdbarch.h: Regenerate.
7694 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7695 (deprecated_get_frame_saved_regs): Delete declaration.
7696 (struct frame_saved_regs): Delete definition.
7697 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7698 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7699 (hppa_frame_find_saved_regs): Delete declaration.
7700 (FRAME_FIND_SAVED_REGS): Delete macro.
7701 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7702 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7703 FRAME_FIND_SAVED_REGS in comment.
7705 2003-04-05 Andrew Cagney <cagney@redhat.com>
7707 * frame.c (frame_func_unwind, get_frame_func): New functions.
7708 * frame.h (get_frame_func, frame_func_unwind): Declare.
7709 (struct frame_info): Add field "prev_func" for caching the
7710 previous frame's function address.
7711 * arm-tdep.c (arm_frameless_function_invocation): Combine
7712 get_pc_function_start and get_frame_pc into get_frame_func.
7713 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7714 (sh64_nofp_frame_init_saved_regs): Ditto.
7715 * s390-tdep.c (s390_function_start): Ditto.
7716 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7717 (rs6000_frameless_function_invocation): Ditto.
7718 (rs6000_frame_saved_pc): Ditto.
7719 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7720 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7721 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7722 (i386_frame_init_saved_regs): Ditto.
7723 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7724 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7725 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7726 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7727 * blockframe.c (frameless_look_for_prologue): Ditto.
7729 2003-04-05 Andrew Cagney <cagney@redhat.com>
7731 * frame.c (legacy_get_prev_frame): Link prev to next at the
7732 function start. Update comments.
7734 2003-04-05 Andrew Cagney <cagney@redhat.com>
7736 * frame.c (get_frame_id): Update comment.
7737 (legacy_get_prev_frame): Update comment.
7738 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7739 * gdbarch.h: Regenerate.
7740 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7741 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7743 2003-04-05 Andrew Cagney <cagney@redhat.com>
7745 * stack.c (print_frame_info): Use get_frame_pc.
7747 2003-04-04 Andrew Cagney <cagney@redhat.com>
7749 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7750 the frame's type from the unwinder.
7751 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7752 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7753 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7754 (get_frame_base_address): Use get_frame_type.
7755 (get_frame_locals_address, get_frame_args_address): Ditto.
7756 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7757 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7758 (struct frame_info): Add comment explaining why the frame contains
7760 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7761 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7762 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7764 * frame-unwind.h: Include "frame.h".
7765 (struct frame_unwind): Add "type" field.
7766 * Makefile.in (frame_unwind_h): Add $(frame_h).
7768 2003-04-04 Andrew Cagney <cagney@redhat.com>
7770 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7771 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7772 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7774 (d10v_unwind_dummy_id): Use frame_id_build.
7775 * frame.c (find_frame_sal): Use get_frame_pc.
7776 (create_new_frame): Use deprecated_update_frame_pc_hack and
7777 deprecated_update_frame_base_hack.
7778 (create_sentinel_frame): Add comment about ->pc going away.
7779 (get_prev_frame): Add comment about ->pc going away.
7780 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7781 frame_id_build, deprecated_update_frame_pc_hack and
7782 deprecated_update_frame_base_hack.
7783 (select_frame): Use get_frame_pc.
7784 (legacy_saved_regs_this_id): Use frame_id_build.
7786 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7788 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7789 signed integer case.
7790 (classify_argument): Handle enumerations and references.
7792 2003-04-04 Andrew Cagney <cagney@redhat.com>
7794 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7797 2003-04-01 Adam Fedor <fedor@gnu.org>
7799 * gdb/objc-lang.c (selectors_info): Replace calls to
7800 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7801 SYMBOL_NATURAL_NAME.
7802 (classes_info, find_methods): Likewise.
7804 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7806 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7807 ``mach'' to the value determined by bfd_default_set_arch_mach().
7809 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7811 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7812 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7813 (mi-cmd-file.o): Update dependencies.
7815 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7817 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7818 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7820 2003-04-01 Adam Fedor <fedor@gnu.org>
7822 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7823 * language.h (struct language_defn): Add la_demangle.
7824 (language_demangle): Declare.
7825 * language.c (language_demangle): New function.
7826 (unk_lang_demangle): Likewise.
7827 (unknown_language_defn, auto_language_defn, local_language_defn):
7828 Add ukn_lang_demangle.
7829 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7830 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7831 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7832 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7833 * jv-lang.c (java_demangle): New function
7834 (java_language_defn): Use it for la_demangle element.
7835 * objc-lang.c (objc_demangle): Add options argument
7836 (objc_language_defn): Use objc_demangle for la_demangle element.
7837 * maint.c (maintenance_demangle): Replace switch with
7838 call to language_demangle.
7839 * utils.c (fprintf_symbol_filtered): Likewise.
7841 2003-04-01 Andrew Cagney <cagney@redhat.com>
7843 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7844 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7845 PRINT_TYPELESS_INTEGER.
7846 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7847 PUSH_RETURN_ADDRESS.
7849 2003-04-01 Andrew Cagney <cagney@redhat.com>
7851 * Makefile.in (d10v-tdep.o): Update dependencies.
7852 * d10v-tdep.c: Include "frame-base.h".
7853 (d10v_frame_unwind): Make constant.
7854 (d10v_frame_base_address): New function.
7855 (d10v_frame_base): New variable.
7856 (d10v_gdbarch_init): Set frame_base default.
7857 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7859 (d10v_frame_unwind_cache): Set and use "prev_sp".
7860 (d10v_frame_this_id): Use the previous frame's inner most stack
7861 address and this frame's func address for the frame ID. Use
7862 frame_id_build. Don't analyze beyond the current instruction.
7864 2003-04-01 Andrew Cagney <cagney@redhat.com>
7866 * frame.h (get_frame_locals_address, get_frame_args_address):
7867 Refer to the base address, instead of the address of the first
7870 2003-04-01 Andrew Cagney <cagney@redhat.com>
7872 Add frame debug info addresses:
7873 * frame-base.c: New file.
7874 * frame-base.h: New file.
7875 * frame.h (struct frame_base): Add opaque declaration.
7876 (get_frame_base): Update comment.
7877 (get_frame_base_address): Declare.
7878 (get_frame_locals_address): Declare.
7879 (get_frame_args_address): Declare.
7880 (struct frame_info): Add "base" and "base_cache". Update
7881 comments on the unwinder.
7882 * frame.c: Include "frame-base.h".
7883 (get_frame_locals_address): New function.
7884 (get_frame_base_address): New function.
7885 (get_frame_args_address): New function.
7886 * findvar.c (read_var_value): Use get_frame_locals_address and
7887 get_frame_args_address.
7888 * stack.c (frame_info): Use get_frame_locals_address and
7889 get_frame_args_address.
7890 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7891 moved to "frame-base.c".
7892 * printcmd.c (print_frame_nameless_args): Ditto.
7893 * symtab.h (address_class): Update comments.
7894 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7895 get_frame_base_address.
7896 * dwarf2expr.c (execute_stack_op): Ditto.
7897 * Makefile.in (frame_base_h): Define.
7898 (frame.o): Update dependencies.
7899 (frame-base.o): Add dependencies.
7900 (SFILES): Add frame-base.c.
7901 (COMMON_OBS): Add frame-base.o.
7903 2003-04-01 Andrew Cagney <cagney@redhat.com>
7905 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7906 CALL_DUMMY_LENGTH): Ditto.
7907 * gdbarch.c: Re-generate.
7908 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7909 (CALL_DUMMY_LENGTH): Delete macro.
7910 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7911 * arm-tdep.c (arm_gdbarch_init): Ditto.
7912 * avr-tdep.c (avr_gdbarch_init): Ditto.
7913 * cris-tdep.c (cris_gdbarch_init): Ditto.
7914 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7915 * frv-tdep.c (frv_gdbarch_init): Ditto.
7916 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7917 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7918 * i386-tdep.c (i386_gdbarch_init): Ditto.
7919 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7920 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7921 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7922 * mips-tdep.c (mips_gdbarch_init): Ditto.
7923 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7924 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7925 * s390-tdep.c (s390_gdbarch_init): Ditto.
7926 * sh-tdep.c (sh_gdbarch_init): Ditto.
7927 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7928 * v850-tdep.c (v850_gdbarch_init): Ditto.
7929 * vax-tdep.c (vax_gdbarch_init): Ditto.
7930 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7932 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7934 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7936 2003-04-01 Andrew Cagney <cagney@redhat.com>
7938 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7939 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7940 * gdbarch.h, gdbarch.c: Re-generate.
7941 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7942 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7943 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7944 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7945 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7946 * infcmd.c (run_stack_dummy): Simplify assuming
7947 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7948 * infrun.c (handle_inferior_event): Ditto.
7949 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7950 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7951 * arm-tdep.c (arm_gdbarch_init): Ditto.
7952 * avr-tdep.c (avr_gdbarch_init): Ditto.
7953 * cris-tdep.c (cris_gdbarch_init): Ditto.
7954 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7955 * frv-tdep.c (frv_gdbarch_init): Ditto.
7956 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7957 * i386-tdep.c (i386_gdbarch_init): Ditto.
7958 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7959 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7960 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7961 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7962 * mips-tdep.c (mips_gdbarch_init): Ditto.
7963 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7964 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7965 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7966 * s390-tdep.c (s390_gdbarch_init): Ditto.
7967 * sh-tdep.c (sh_gdbarch_init): Ditto.
7968 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7969 * v850-tdep.c (v850_gdbarch_init): Ditto.
7970 * vax-tdep.c (vax_gdbarch_init): Ditto.
7971 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7973 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7975 * symfile.c (symfile_relocate_debug_section): Update call to
7976 bfd_simple_get_relocated_section_contents.
7978 2003-03-31 Andrew Cagney <cagney@redhat.com>
7980 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7981 * gdbarch.h, gdbarch.c: Regenerate.
7982 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7983 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7985 * frame.h (generic_fix_call_dummy): Delete declaration.
7986 * dummy-frame.h: Update comment.
7987 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7988 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7990 * sh-tdep.c (sh_gdbarch_init): Ditto.
7991 * s390-tdep.c (s390_gdbarch_init): Ditto.
7992 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7993 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7994 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7995 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7996 * i386-tdep.c (i386_gdbarch_init): Ditto.
7997 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7998 * frv-tdep.c (frv_gdbarch_init): Ditto.
7999 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8000 * cris-tdep.c (cris_gdbarch_init): Ditto.
8001 * avr-tdep.c (avr_gdbarch_init): Ditto.
8002 * arm-tdep.c (arm_gdbarch_init): Ditto.
8004 2003-03-31 J. Brobecker <brobecker@gnat.com>
8006 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8007 (INIT_FRAME_AP): Likewise.
8008 (EXTRA_FRAME_INFO): Likewise.
8010 2003-03-31 Andrew Cagney <cagney@redhat.com>
8012 * gdbarch.sh: Include "symfile.h".
8013 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8014 * gdbarch.h, gdbarch.c: Re-generate.
8015 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8016 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8017 call_dummy_address, the default is at entry_point_address.
8018 * v850-tdep.c (v850_gdbarch_init): Ditto.
8019 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8020 * sh-tdep.c (sh_gdbarch_init): Ditto.
8021 * s390-tdep.c (s390_gdbarch_init): Ditto.
8022 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8023 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8024 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8025 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8026 * i386-tdep.c (i386_gdbarch_init): Ditto.
8027 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8028 * frv-tdep.c (frv_gdbarch_init): Ditto.
8029 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8030 * cris-tdep.c (cris_gdbarch_init): Ditto.
8031 * arm-tdep.c (arm_gdbarch_init): Ditto.
8033 2003-03-31 Andrew Cagney <cagney@redhat.com>
8035 * gdbarch.sh (CALL_DUMMY_P): Delete.
8036 * gdbarch.h, gdbarch.c: Re-generate.
8037 * inferior.h (CALL_DUMMY_P): Delete macro.
8038 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8039 * vax-tdep.c (vax_gdbarch_init): Update.
8040 * v850-tdep.c (v850_gdbarch_init): Update.
8041 * sparc-tdep.c (sparc_gdbarch_init): Update.
8042 * sh-tdep.c (sh_gdbarch_init): Update.
8043 * s390-tdep.c (s390_gdbarch_init): Update.
8044 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8045 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8046 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8047 * mips-tdep.c (mips_gdbarch_init): Update.
8048 * mcore-tdep.c (mcore_gdbarch_init): Update.
8049 * m68k-tdep.c (m68k_gdbarch_init): Update.
8050 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8051 * ia64-tdep.c (ia64_gdbarch_init): Update.
8052 * i386-tdep.c (i386_gdbarch_init): Update.
8053 * h8300-tdep.c (h8300_gdbarch_init): Update.
8054 * frv-tdep.c (frv_gdbarch_init): Update.
8055 * d10v-tdep.c (d10v_gdbarch_init): Update.
8056 * cris-tdep.c (cris_gdbarch_init): Update.
8057 * breakpoint.c (deprecated_frame_in_dummy): Update.
8058 * avr-tdep.c (avr_gdbarch_init): Update.
8059 * alpha-tdep.c (alpha_gdbarch_init): Update.
8060 * arm-tdep.c (arm_gdbarch_init): Update.
8061 * dummy-frame.c (dummy_frame_this_id): Update comments.
8062 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8063 * frame.c (legacy_get_prev_frame): Ditto.
8064 * valops.c (call_function_by_hand): Delete function.
8065 (hand_function_call): Rename to call_function_by_hand
8067 2003-03-30 Andrew Cagney <cagney@redhat.com>
8069 2002-11-10 Klee Dienes <kdienes@apple.com>
8070 * value.h (struct value): Update comment.
8072 2003-03-30 Andrew Cagney <cagney@redhat.com>
8074 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8076 (d10v_gdbarch_init): Do not set fp_regnum.
8078 * frame.c (get_frame_base): Force ID initialization.
8079 (get_prev_frame): Move computation of the frame ID from here ...
8080 (get_frame_id): ... to here.
8081 (legacy_get_prev_frame): Mark the frame ID as valid.
8082 * frame.h (struct frame_info): Add field "id_p".
8084 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8086 * i386-tdep.c (i386_store_struct_return): Removed.
8087 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8089 2003-03-30 Andrew Cagney <cagney@redhat.com>
8091 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8092 * gdbarch.h, gdbarch.c: Regenerate.
8093 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8094 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8095 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8096 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8097 * i386-tdep.c (i386_gdbarch_init): Ditto.
8098 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8099 * cris-tdep.c (cris_gdbarch_init): Ditto.
8100 * vax-tdep.c (vax_gdbarch_init): Ditto.
8101 * s390-tdep.c (s390_gdbarch_init): Ditto.
8102 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8103 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8104 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8105 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8106 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8107 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8108 * sparc-tdep.c (sparc_gdbarch_init): Update.
8109 * sh-tdep.c (sh_gdbarch_init): Update.
8110 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8111 * mips-tdep.c (mips_gdbarch_init): Update.
8112 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8113 * ia64-tdep.c (ia64_gdbarch_init): Update.
8114 * frv-tdep.c (frv_gdbarch_init): Update.
8115 * avr-tdep.c (avr_gdbarch_init): Update.
8116 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8117 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8118 instead of when push_dummy_call is not available.
8120 2003-03-30 Andrew Cagney <cagney@redhat.com>
8122 * infttrace.c: Include "gdbthread.h".
8123 (parent_attach_all): Fix function signature.
8124 (call_ptrace): Update call.
8125 * Makefile.in (infttrace.o): Update dependencies.
8127 2003-03-30 Andrew Cagney <cagney@redhat.com>
8129 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8130 PUSH_RETURN_ADDRESS.
8131 * gdbarch.h, gdbarch.c: Regenerate.
8132 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8133 * x86-64-tdep.c (x86_64_init_abi): Update.
8134 * v850-tdep.c (v850_gdbarch_init): Update.
8135 * sparc-tdep.c (sparc_gdbarch_init): Update.
8136 * sh-tdep.c (sh_gdbarch_init): Update.
8137 * s390-tdep.c (s390_gdbarch_init): Update.
8138 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8139 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8140 * mips-tdep.c (mips_gdbarch_init): Update.
8141 * mcore-tdep.c (mcore_gdbarch_init): Update.
8142 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8143 * ia64-tdep.c (ia64_gdbarch_init): Update.
8144 * i386-tdep.c (i386_gdbarch_init): Update.
8145 * h8300-tdep.c (h8300_gdbarch_init): Update.
8146 * frv-tdep.c (frv_gdbarch_init): Update.
8147 * cris-tdep.c (cris_gdbarch_init): Update.
8148 * avr-tdep.c (avr_gdbarch_init): Update.
8149 * arm-tdep.c (arm_gdbarch_init): Update.
8150 * valops.c (hand_function_call): Update.
8152 2003-03-29 Andrew Cagney <cagney@redhat.com>
8154 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8155 sizeof_call_dummy_words.
8156 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8158 * gdbarch.h: Regenerate.
8160 2003-03-29 Andrew Cagney <cagney@redhat.com>
8162 * infttrace.h: New file.
8163 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8164 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8165 (hpread_read_doc_function_type): Detect an initialized type1.
8166 (hpread_quick_traverse): Initialize mod_name_string.
8167 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8168 (som_solib_get_solib_by_pc): Declare.
8169 (so_lib_thread_start_addr): Declare.
8170 (no_shared_libraries): Declare.
8171 * somread.c (init_import_symbols): Make static. Add forward
8173 * config/pa/nm-hppah.h: Include "infttrace.h" for
8175 (hppa_insert_hw_watchpoint): Declare.
8176 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8177 * hppah-nat.c: Include "gdb_string.h".
8178 (parent_attach_all): Delete extern declaration, moved to
8180 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8182 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8183 * Makefile.in (infttrace_h): Define.
8184 (hpread.o): Update dependencies.
8185 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8186 * hppa-hpux-tdep.c: Include "gdb_string.h".
8187 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8188 * infrun.c (handle_inferior_event): Always initialize
8189 stepped_after_stopped_by_watchpoint. Add default and remove
8190 fallthrough in switch statement.
8191 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8193 (hppa_remove_hw_watchpoint): Ditto.
8195 2003-03-29 Andrew Cagney <cagney@redhat.com>
8197 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8200 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8202 * arm-tdep.c (arm_push_arguments): Delete.
8203 (struct stack_item): New type.
8204 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8205 (arm_store_struct_return): Delte.
8206 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8207 arm_push_arguments or arm_store_struct_return.
8209 2003-03-28 Andrew Cagney <cagney@redhat.com>
8211 * Makefile.in (d10v-tdep.o): Update dependencies.
8212 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8213 * d10v-tdep.c: Include "remote.h".
8214 (target_resume_hook): Delete extern declaration.
8215 (target_wait_loop_hook): Ditto.
8216 (tdisassemble_command): Eliminate assignment in "if" conditional.
8217 (d10v_ts2_register_sim_regno): Eliminate call to
8218 legacy_register_sim_regno.
8219 (d10v_ts3_register_sim_regno): Ditto.
8221 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8223 * thread.c: Reindented.
8225 * linux-proc.c: Ditto.
8227 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8229 * MAINTAINERS (write after approval): Add myself.
8231 2003-03-27 Theodore A. Roth <troth@openavr.org>
8233 * objc-exp.y: Add missing semi-colons.
8235 2003-03-27 Andrew Cagney <cagney@redhat.com>
8237 * regcache.c (write_sp): Delete function and references.
8238 * inferior.h (write_sp): Delete declaration.
8239 * valops.c (hand_function_call): Replace write_sp with
8241 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8242 (sparc_pop_frame): Ditto.
8244 2003-03-27 Andrew Cagney <cagney@redhat.com>
8246 * NEWS: Mention removal of support for hppa*-*-bsd* and
8247 hppa*-*-osf* natives, and hppa*-*-pro* target.
8248 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8249 * config/pa/xm-pa.h: Obsolete file.
8250 * config/pa/xm-hppab.h: Obsolete file.
8251 * config/pa/nm-hppab.h: Obsolete file.
8252 * config/pa/tm-hppab.h: Obsolete file.
8253 * config/pa/tm-hppao.h: Obsolete file.
8254 * config/pa/nm-hppao.h: Obsolete file.
8255 * config/pa/tm-pro.h: Obsolete file.
8256 * config/pa/hppaosf.mt: Obsolete file.
8257 * config/pa/hppaosf.mh: Obsolete file.
8258 * config/pa/hppapro.mt: Obsolete file.
8259 * config/pa/hppabsd.mt: Obsolete file.
8260 * config/pa/hppabsd.mh: Obsolete file.
8261 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8262 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8265 2003-03-27 Andrew Cagney <cagney@redhat.com>
8267 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8268 push_arguments. Don't set push_return_address or write_sp.
8269 (d10v_push_dummy_call): Replace d10v_push_arguments.
8270 (d10v_push_return_address, d10v_write_sp): Delete function,
8271 handled by push_dummy_call.
8273 2003-03-26 Andrew Cagney <cagney@redhat.com>
8275 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8276 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8277 regcache and dummy_addr parameters.
8278 * gdbarch.h, gdbarch.c: Re-generate.
8279 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8280 available; assume it will handle stack alignment and return
8281 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8282 legacy_push_arguments.
8283 (legacy_push_arguments): Rename default_push_arguments.
8284 * value.h (legacy_push_arguments): Rename default_push_arguments.
8285 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8286 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8287 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8288 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8289 * config/i386/tm-symmetry.h: Update.
8290 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8291 * x86-64-tdep.c (x86_64_init_abi): Update.
8292 * v850-tdep.c (v850_gdbarch_init): Update.
8293 * sparc-tdep.c (sparc_gdbarch_init): Update.
8294 * sh-tdep.c (sh_gdbarch_init): Update.
8295 * s390-tdep.c (s390_gdbarch_init): Update.
8296 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8297 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8298 * mips-tdep.c (mips_gdbarch_init): Update.
8299 * mcore-tdep.c (mcore_gdbarch_init): Update.
8300 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8301 * ia64-tdep.c (ia64_gdbarch_init): Update.
8302 * i386-tdep.c (i386_gdbarch_init): Update.
8303 * hppa-tdep.c (hppa_gdbarch_init): Update.
8304 * h8300-tdep.c (h8300_gdbarch_init): Update.
8305 * frv-tdep.c (frv_gdbarch_init): Update.
8306 * d10v-tdep.c (d10v_gdbarch_init): Update.
8307 * cris-tdep.c (cris_gdbarch_init): Update.
8308 * avr-tdep.c (avr_gdbarch_init): Update.
8309 * arm-tdep.c (arm_gdbarch_init): Update.
8310 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8311 * alpha-tdep.c (alpha_gdbarch_init): Update.
8313 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8315 * signals/signals.c (do_target_signal_to_host): Correct realtime
8318 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8320 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8321 (struct sal_chain, map_catch_names): Remove.
8322 (catch_exception_command_1): Don't call
8323 handle_gnu_4_16_catch_command.
8325 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8327 From Mark Dettinger <dettinge@de.ibm.com>:
8328 * dwarf2cfi.c (read_2u): Increment pointer by two.
8330 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8332 * signals/signals.c: Fix typos in last change.
8334 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8336 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8337 not already defined. Use __SIGRTMIN if available.
8338 (target_signal_from_host): Remove SIGRTMIN block.
8339 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8340 the signal is within the realtime range.
8342 2003-03-25 Adam Fedor <fedor@gnu.org>
8344 * Makefile.in (infrun.o): Add $(language_h)
8345 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8346 for language specific trampolines.
8347 * language.h (struct language_defn): Add skip_trampoline.
8348 (skip_language_trampoline): Declare.
8349 * language.c (unk_lang_trampoline, skip_language_trampoline):
8351 (unknown_language_defn, auto_language_defn, local_language_defn):
8352 Add ukn_lang_trampoline.
8353 * ada-lang.c (ada_language_defn): Add NULL for language
8354 specific skip_trampoline.
8355 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8356 scm-lang.c: Likewise.
8357 * objc-lang.c (objc_skip_trampoline): New function.
8358 (objc_language_defn): Add objc_skip_trampoline.
8360 2003-03-25 Andrew Cagney <cagney@redhat.com>
8362 * frame.c (get_prev_frame): Delay validating a frame's ID -
8363 non-NULL, didn't go backwards - until an attempt to unwind it to
8366 2003-03-25 Andrew Cagney <cagney@redhat.com>
8368 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8369 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8370 * gdbarch.h, gdbarch.c: Re-generate.
8371 * config/sparc/tm-sparc.h
8372 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8373 * sparc-tdep.c (sparc_gdbarch_init): Set
8374 deprecated_extra_stack_alignment_needed.
8375 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8376 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8377 extra_stack_alignment_needed.
8378 * v850-tdep.c (v850_gdbarch_init): Ditto.
8379 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8380 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8381 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8382 * cris-tdep.c (cris_gdbarch_init): Ditto.
8383 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8384 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8386 2003-03-25 Andrew Cagney <cagney@redhat.com>
8388 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8389 STORE_STRUCT_RETURN.
8390 * gdbarch.h, gdbarch.c: Regenerate.
8391 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8392 (d10v_push_arguments): Set the struct return register.
8393 (d10v_gdbarch_init): Update.
8394 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8395 * x86-64-tdep.c (x86_64_init_abi): Update.
8396 * vax-tdep.c (vax_gdbarch_init): Update.
8397 * v850-tdep.c (v850_gdbarch_init): Update.
8398 * sparc-tdep.c (sparc_gdbarch_init): Update.
8399 * sh-tdep.c (sh_gdbarch_init): Update.
8400 * s390-tdep.c (s390_gdbarch_init): Update.
8401 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8402 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8403 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8404 * mips-tdep.c (mips_gdbarch_init): Update.
8405 * mcore-tdep.c (mcore_gdbarch_init): Update.
8406 * m68k-tdep.c (m68k_gdbarch_init): Update.
8407 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8408 * ia64-tdep.c (ia64_gdbarch_init): Update.
8409 * i386-tdep.c (i386_gdbarch_init): Update.
8410 * hppa-tdep.c (hppa_gdbarch_init): Update.
8411 * h8300-tdep.c (h8300_gdbarch_init): Update.
8412 * frv-tdep.c (frv_gdbarch_init): Update.
8413 * cris-tdep.c (cris_gdbarch_init): Update.
8414 * avr-tdep.c (avr_gdbarch_init): Update.
8415 * arm-tdep.c (arm_gdbarch_init): Update.
8416 * alpha-tdep.c (alpha_gdbarch_init): Update.
8418 2003-03-25 Andrew Cagney <cagney@redhat.com>
8420 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8421 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8422 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8423 * gdbarch.h, gdbarch.c: Regenerate.
8424 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8425 call_dummy_stack_adjust_p.
8426 * vax-tdep.c (vax_gdbarch_init): Ditto.
8427 * v850-tdep.c (v850_gdbarch_init): Ditto.
8428 * sh-tdep.c (sh_gdbarch_init): Ditto.
8429 * s390-tdep.c (s390_gdbarch_init): Ditto.
8430 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8431 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8432 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8433 * mips-tdep.c (mips_gdbarch_init): Ditto.
8434 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8435 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8436 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8437 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8438 * i386-tdep.c (i386_gdbarch_init): Ditto.
8439 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8440 * frv-tdep.c (frv_gdbarch_init): Ditto.
8441 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8442 * cris-tdep.c (cris_gdbarch_init): Ditto.
8443 * avr-tdep.c (avr_gdbarch_init): Ditto.
8444 * arm-tdep.c (arm_gdbarch_init): Ditto.
8445 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8446 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8447 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8448 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8449 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8450 call_dummy_stack_adjust_p.
8451 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8452 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8453 * sparc-tdep.c (sparc32_push_arguments): Update.
8454 * valops.c (hand_function_call): Update.
8456 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8458 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8459 set_gdbarch_char_signed.
8461 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8464 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8466 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8468 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8469 (_initialize_arm_tdep): Don't set tm_print_insn.
8471 2003-03-24 Adam Fedor <fedor@gnu.org>
8473 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8474 * objc-lang.h: Add multiple inclusion protection.
8475 (start_msglist, add_msglist, end_msglist): Additional declarations.
8477 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8479 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8480 value was renamed to ARM_FLOAT_SOFT_FPA.
8482 2003-03-23 Andrew Cagney <cagney@redhat.com>
8484 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8485 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8486 * gdbarch.h, gdbarch.c: Regenerate.
8487 * valops.c (hand_function_call): Update.
8488 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8489 * frame.c (legacy_saved_regs_this_id): Update.
8490 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8491 * dummy-frame.h: Update.
8492 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8493 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8494 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8495 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8496 * config/m68k/tm-sun3.h: Update.
8497 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8498 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8499 * x86-64-tdep.c (x86_64_init_abi): Update.
8500 * vax-tdep.c (vax_gdbarch_init): Update.
8501 * v850-tdep.c (v850_gdbarch_init): Update.
8502 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8503 * sh-tdep.c (sh_gdbarch_init): Update.
8504 * s390-tdep.c (s390_gdbarch_init): Update.
8505 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8506 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8507 (frame_get_saved_regs): Update.
8508 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8509 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8510 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8511 * mips-tdep.c (mips_gdbarch_init): Update.
8512 * mcore-tdep.c (mcore_gdbarch_init): Update.
8513 * m68k-tdep.c (m68k_gdbarch_init): Update.
8514 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8515 * ia64-tdep.c (ia64_gdbarch_init): Update.
8516 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8517 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8518 (i386_interix_back_one_frame): Update.
8519 * hppa-tdep.c (hppa_gdbarch_init): Update.
8520 (hppa_init_extra_frame_info): Update.
8521 * h8300-tdep.c (h8300_gdbarch_init): Update.
8522 * frv-tdep.c (frv_gdbarch_init): Update.
8523 * cris-tdep.c (cris_gdbarch_init): Update.
8524 * avr-tdep.c (avr_gdbarch_init): Update.
8525 * arm-tdep.c (arm_gdbarch_init): Update.
8526 * alpha-tdep.c (alpha_gdbarch_init): Update.
8528 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8530 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8531 (arm_get_fp_model): Declare.
8532 * arm-tdep.c (fp_model_strings): New string array.
8533 (arm_fp_model, current_fp_model): New variables.
8534 (arm_get_fp_model): New function.
8535 (arm_set_fp): New function.
8536 (set_fp_model_sfunc): New function.
8537 (show_fp_model): New function.
8538 (_initialize_arm_tdep): Add new command to set/show the FPU.
8539 (arm_extract_return_value): Use arm_get_fp_model.
8540 (arm_store_return_value): Likewise.
8541 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8542 to initialize the floating-point data types.
8543 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8546 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8548 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8549 the current setting of each value.
8550 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8551 new_set and new_show. Use add_setshow_cmd_full and
8552 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8553 commands and add new version as subcommands of "set/show arm".
8555 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8557 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8558 (set_arm_command, show_arm_command): New functions.
8559 (_initialize_arm_tdep): Add them.
8560 (num_disassembly_options): Renamed from num_flavor_options.
8561 (valid_disassembly_styles): Renamed from valid_flavors.
8562 (disassembly_style): Renamed from disassembly_flavor.
8563 (set_disassembly_style_sfunc): Renamed from
8564 set_disassembly_flavor_sfunc.
8565 (set_disassembly_style): Renamed from set_disassembly_flavor.
8566 (arm_othernames): Updated.
8567 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8568 command. Add "set/show arm disassembly" commands. Deprecate
8569 "othernames" command.
8571 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8573 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8574 (arm-tdep.o): Depend on elf_arm_h.
8576 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8578 * Makefile.in (coff_internal_h): Define.
8579 (arm-tdep.o): Update dependencies.
8581 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8583 * arm-tdep.c (prologue_cache): Delete.
8584 (check_prologue_cache, save_prologue_cache): Delete.
8585 (arm_scan_prologue): Don't check or update the prologue_cache.
8586 (arm_gdb_arch_init): Don't initialize it.
8587 (_initialize_arm_tdep): Likewise.
8589 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8591 * MAINTAINERS (tui): Maintainer of tui code.
8593 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8595 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8596 (i386-cygwin-tdep.o): Add dependencies.
8597 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8598 * i386-cygwin-tdep.c: New file.
8599 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8600 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8602 2003-03-20 Andrew Cagney <cagney@redhat.com>
8604 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8605 (handle_inferior_event): Remove code calling
8606 DYNAMIC_TRAMPOLINE_NEXTPC.
8608 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8609 already has a full path.
8611 * main.c (gdb_main): Return 1.
8612 (captured_main): Call error to report an invalid interpreter.
8614 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8615 * alpha-osf1-tdep.c: Include "gdb_string.h".
8617 2003-03-19 J. Brobecker <brobecker@gnat.com>
8619 Continuing work to convert the hppa targets to multiarch partial.
8621 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8622 method, now that hppa_push_dummy_frame has a conformant prototype.
8623 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8624 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8625 for the switch to multiarch partial.
8627 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8629 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8630 when iss is issNull.
8632 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8634 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8635 NUM_REGS bounds check.
8637 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8639 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8640 * mips-tdep.c (gdb_assert.h): Include.
8641 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8642 (mips_register_name): Handle integer registers explicitly. Add
8644 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8645 (mips_lsi33k_reg_names): Don't list integer registers; they're
8646 handled by mips_register_name() now.
8647 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8648 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8649 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8650 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8651 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8653 2003-03-18 Andrew Cagney <cagney@redhat.com>
8655 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8657 * gdbtypes.h (print_scalar_formatted): Update declaration.
8658 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8660 2003-03-18 J. Brobecker <brobecker@gnat.com>
8662 * infrun.c (observer.h): Add #include.
8663 (normal_stop): Add call to observer_notify_normal_stop.
8664 * Makefile.in (infrun.o): Add dependency on observer.h.
8666 2003-03-18 J. Brobecker <brobecker@gnat.com>
8668 Continuing work to convert the hppa targets to multiarch partial.
8669 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8670 parameter. Reformat comment.
8671 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8672 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8673 to match new profile.
8675 2003-03-18 J. Brobecker <brobecker@gnat.com>
8677 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8678 appear to be working in any case.
8680 2003-03-18 J. Brobecker <brobecker@gnat.com>
8682 * observer.c (observer_test_first_observer): New static variable.
8683 (observer_test_second_observer): Likewise.
8684 (observer_test_third_observer): Likewise.
8685 (observer_test_first_notification_function): New static function.
8686 (observer_test_second_notification_function): Likewise.
8687 (observer_test_third_notification_function): Likewise.
8689 2003-03-17 J. Brobecker <brobecker@gnat.com>
8691 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8692 * somsolib.c (gdb_assert.h): Likewise.
8693 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8694 (somsolib.o): Likewise.
8696 2003-03-17 Andrew Cagney <cagney@redhat.com>
8698 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8699 BFD. Simplify setting of di.endian.
8701 2003-03-17 Andrew Cagney <cagney@redhat.com>
8703 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8704 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8706 From Elena Zannoni <ezannoni@redhat.com>
8707 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8708 vector and floating-point parameters.
8709 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8711 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8713 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8715 * MAINTAINERS: Remove my name from several maintainership roles.
8717 2003-03-17 Andrew Cagney <cagney@redhat.com>
8719 Fix frame off-by-one bug.
8720 * frame-unwind.h (frame_this_id_ftype): Replace
8721 frame_unwind_id_ftype.
8722 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8723 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8724 with "prev_register".
8725 * frame-unwind.c (frame_unwind_find_by_pc): Return
8726 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8728 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8729 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8730 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8731 (dummy_frame_unwind): Update.
8732 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8733 sentinel_frame_register_unwind.
8734 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8735 (sentinel_frame_unwinder): Update.
8736 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8737 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8738 * frame.c (create_sentinel_frame): Update. Initialize
8739 "prologue_cache" instead of "unwind_cache".
8740 (frame_register_unwind): Call this frame's prev_register with the
8741 next frame and this frame's prologue cache.
8742 (get_prev_frame): Simplify. Always call prev frame's this_id with
8743 this frame and prev frame's prologue cache. Document that this
8744 call is shifted one to the left when compared to the
8745 frame_register_unwind call.
8746 (legacy_saved_regs_prev_register): Replace
8747 frame_saved_regs_register_unwind.
8748 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8749 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8750 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8751 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8752 (d10v_frame_unwind): Update.
8753 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8754 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8755 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8756 "saved_regs" with "this_saved_regs".
8758 2003-03-16 Andrew Cagney <cagney@redhat.com>
8760 * frame.c (frame_pop): Don't call target_store_registers. Fix
8761 problem reported by Mark Kettenis.
8763 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8765 * i386-tdep.c (i386_register_type): Renamed from
8766 i386_register_virtual_type. Adjust function signature.
8767 (i386_gdbarch_init): Set register_type instead of
8768 deprecated_max_register_raw_size,
8769 deprecated_max_register_virtual_size and register_virtual_type.
8771 2003-03-14 Andrew Cagney <cagney@redhat.com>
8773 * frame.c (get_prev_frame): When a legacy frame, always call
8774 legacy_get_prev_frame. Simplify unwind code using assumption that
8775 the unwinder is new.
8776 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8777 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8778 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8780 2003-03-14 Andrew Cagney <cagney@redhat.com>
8782 * frame.c (get_saved_register): Delete function.
8783 * frame.h (get_saved_register): Delete declaration.
8784 * xstormy16-tdep.c: Update comment.
8785 * regcache.h: Update comments.
8786 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8787 get_saved_register and extract_address, use
8788 frame_read_unsigned_register.
8789 (sparc_frame_saved_pc): Ditto.
8790 (sparc_get_saved_register): Instead of get_saved_register, use
8792 (sparc_pop_frame): Ditto.
8793 * findvar.c: Update comments.
8794 (value_of_register): Call frame_register instead of
8796 (value_from_register): Ditto.
8797 * config/sparc/tm-sparc.h: Update comment.
8798 * breakpoint.c: Update comment.
8800 2003-03-14 Andrew Cagney <cagney@redhat.com>
8802 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8804 * gdbarch.h, gdbarch.c: Re-generate.
8805 * frame.h: Update comments.
8806 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8807 * x86-64-tdep.c (x86_64_init_abi): Update.
8808 * sparc-tdep.c (sparc_gdbarch_init): Update.
8809 * sh-tdep.c (sh_gdbarch_init): Update.
8810 * mips-tdep.c (mips_gdbarch_init): Update.
8811 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8812 * cris-tdep.c (cris_gdbarch_init): Update.
8813 * ia64-tdep.c (ia64_gdbarch_init): Update.
8814 * frame.c (frame_register): Update.
8815 (get_saved_register): Update.
8816 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8818 2003-03-13 Andrew Cagney <cagney@redhat.com>
8820 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8821 * gdbarch.h, gdbarch.c: Regenerate.
8822 * valops.c (hand_function_call): Update comment.
8823 * stack.c (return_command): Update comment.
8824 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8825 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8826 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8827 * x86-64-tdep.c (x86_64_init_abi): Update.
8828 * vax-tdep.c (vax_gdbarch_init): Update.
8829 * v850-tdep.c (v850_gdbarch_init): Update.
8830 * sparc-tdep.c (sparc_gdbarch_init): Update.
8831 * sh-tdep.c (sh_gdbarch_init): Update.
8832 * s390-tdep.c (s390_gdbarch_init): Update.
8833 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8834 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8835 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8836 * mips-tdep.c (mips_gdbarch_init): Update.
8837 * mcore-tdep.c (mcore_gdbarch_init): Update.
8838 * m68k-tdep.c (m68k_gdbarch_init): Update.
8839 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8840 * ia64-tdep.c (ia64_gdbarch_init): Update.
8841 * i386-tdep.c (i386_gdbarch_init): Update.
8842 * hppa-tdep.c (hppa_gdbarch_init): Update.
8843 * h8300-tdep.c (h8300_gdbarch_init): Update.
8844 * frv-tdep.c (frv_gdbarch_init): Update.
8845 * cris-tdep.c (cris_gdbarch_init): Update.
8846 * avr-tdep.c (avr_gdbarch_init): Update.
8847 * arm-tdep.c (arm_gdbarch_init): Update.
8848 * alpha-tdep.c (alpha_gdbarch_init): Update.
8850 2003-03-13 Andrew Cagney <cagney@redhat.com>
8852 * frame.c (legacy_frame_p): New function.
8853 (get_prev_frame): Use legacy_frame_p.
8854 * frame.h (legacy_frame_p): Declare.
8856 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8858 * MAINTAINERS (write after approval): Alphabetically
8861 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8863 * MAINTAINERS (write after approval): Add myself.
8865 2003-03-12 Andrew Cagney <cagney@redhat.com>
8867 * frame.c (get_prev_frame): Rename the frame parameter to
8869 (get_next_frame, legacy_get_prev_frame): Ditto.
8871 2003-03-12 Andrew Cagney <cagney@redhat.com>
8873 * frame.c (get_current_frame): Check target_has_registers before
8874 checking target_has_stack.
8875 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8876 instead of deprecated_selected_frame.
8877 * findvar.c (value_of_register): Pass "frame", not
8878 deprecated_selected_frame, to value_of_builtin_reg.
8880 2003-03-12 Andrew Cagney <cagney@redhat.com>
8882 * regcache.c (regcache_cooked_write_signed): New function.
8883 (regcache_cooked_write_unsigned): New function.
8884 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8885 (regcache_cooked_read_signed): Fix regnum in range assertion.
8886 * regcache.h (regcache_cooked_write_signed): Declare.
8887 (regcache_cooked_write_unsigned): Declare.
8889 2003-03-12 Andrew Cagney <cagney@redhat.com>
8891 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8892 * gdbarch.h, gdbarch.c: Re-generate.
8893 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8894 * x86-64-tdep.h: Update.
8895 * x86-64-tdep.c (x86_64_init_abi): Update.
8896 * v850-tdep.c (v850_gdbarch_init): Update.
8897 * sparc-tdep.c (sparc_gdbarch_init): Update.
8898 * sh-tdep.c (sh_gdbarch_init): Update.
8899 * s390-tdep.c (s390_gdbarch_init): Update.
8900 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8901 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8902 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8903 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8904 * mips-tdep.c (mips_gdbarch_init): Update.
8905 * mcore-tdep.c (mcore_gdbarch_init): Update.
8906 * m68k-tdep.c (m68k_gdbarch_init): Update.
8907 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8908 * ia64-tdep.c (ia64_gdbarch_init): Update.
8909 * i386-tdep.c (i386_gdbarch_init): Update.
8910 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8911 * hppa-tdep.c (hppa_gdbarch_init): Update.
8912 * h8300-tdep.c (h8300_gdbarch_init): Update.
8913 * frv-tdep.c (frv_gdbarch_init): Update.
8914 * cris-tdep.c (cris_gdbarch_init): Update.
8915 * avr-tdep.c (avr_gdbarch_init): Update.
8916 * arm-tdep.c (arm_gdbarch_init): Update.
8917 * alpha-tdep.c (alpha_gdbarch_init): Update.
8918 * sh-tdep.c (sh_init_extra_frame_info): Update.
8919 (sh64_init_extra_frame_info): Update.
8920 * ns32knbsd-nat.c (frame_num_args): Update.
8921 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8922 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8923 (xstormy16_frame_chain_valid): Update.
8924 * vax-tdep.c (vax_saved_pc_after_call): Update.
8925 * v850-tdep.c (v850_frame_chain): Update.
8926 (v850_pop_frame): Update.
8927 (v850_init_extra_frame_info): Update.
8928 * sparc-tdep.c (setup_arbitrary_frame): Update.
8929 * ns32k-tdep.c (umax_frame_num_args): Update.
8930 * s390-tdep.c (s390_pop_frame_regular): Update.
8931 * mn10300-tdep.c (mn10300_frame_chain): Update.
8932 (mn10300_pop_frame_regular): Update.
8933 (mn10300_init_extra_frame_info): Update.
8934 * mips-tdep.c (mips_init_frame_pc_first): Update.
8935 (mips_frame_chain): Update.
8936 (mips_pop_frame): Update.
8937 * mcore-tdep.c (mcore_frame_chain): Update.
8938 (mcore_pop_frame): Update.
8939 (mcore_init_extra_frame_info): Update.
8940 * arch-utils.c (init_frame_pc_default): Update.
8941 * m68k-tdep.c (isi_frame_num_args): Update.
8942 (delta68_frame_num_args): Update.
8943 (news_frame_num_args): Update.
8944 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8945 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8946 (alpha_frame_chain): Update.
8947 (alpha_pop_frame): Update.
8948 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8949 (hppa_init_extra_frame_info): Update.
8950 (hppa_frame_chain): Update.
8951 (hppa_frame_chain_valid): Update.
8952 * cris-tdep.c (cris_init_extra_frame_info): Update.
8953 * avr-tdep.c (avr_init_extra_frame_info): Update.
8954 * arm-tdep.c (arm_frame_chain_valid): Update.
8955 (arm_init_extra_frame_info): Update.
8956 (arm_pop_frame): Update.
8957 * frame.c (frame_pc_unwind): Update.
8958 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8959 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8960 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8961 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8962 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8963 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8965 2003-03-12 Andrew Cagney <cagney@redhat.com>
8967 Eliminate the need for POP_FRAME.
8968 * frame.c (do_frame_unwind_register): New function.
8969 (frame_pop): When no POP_FRAME, pop the frame using register
8970 unwind and a scratch regcache.
8971 (frame_saved_regs_pop): Delete function.
8972 (trad_frame_unwinder): Update.
8973 * d10v-tdep.c (d10v_frame_pop): Delete function.
8974 (d10v_frame_unwind): Update.
8975 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8976 (sentinel_frame_unwinder): Update.
8977 * dummy-frame.c (dummy_frame_pop): Delete function.
8978 (dummy_frame_unwind): Update.
8979 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8980 (struct frame_unwind): Update.
8982 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8984 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8985 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8986 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8987 Do range checks on register number obtained from debugging info.
8988 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8989 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8990 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8992 (do_fp_register_row): Fix typo which caused double type to be
8993 used when attempting to unpack a float.
8995 2003-03-11 J. Brobecker <brobecker@gnat.com>
8997 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8999 2003-03-11 Andrew Cagney <cagney@redhat.com>
9001 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9002 frame. Problem found by Corinna Vinschen.
9004 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9006 * doublest.c (floatformat_from_length): Accept also
9007 the real size of 'long double' type.
9009 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9011 From Klee Dienes <kdienes@apple.com>:
9012 * breakpoint.c (bpstat_copy): Copy the command lines as well
9013 as the old value, to match what is freed in bpstat_clear.
9015 2003-03-10 David Carlton <carlton@math.stanford.edu>
9017 * minsyms.c (add_minsym_to_hash_table): Replace
9018 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9019 (compare_minimal_symbols, compact_minimal_symbols)
9020 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9021 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9022 of DEPRECATED_SYMBOL_MATCHES_NAME.
9023 (lookup_minimal_symbol_solib_trampoline): Ditto.
9025 2003-03-10 Andrew Cagney <cagney@redhat.com>
9027 * regcache.h (regcache_cooked_read_ftype): Define.
9028 (regcache_save, regcache_restore): Add a cooked_read parameter.
9029 * regcache.c (regcache_save, regcache_restore): Update.
9030 (do_cooked_read): New function.
9031 (regcache_cpy): Pass do_cooked_read to regcache_save and
9034 2003-03-10 Andrew Cagney <cagney@redhat.com>
9036 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9037 * gdbarch.h, gdbarch.c: Re-generate.
9038 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9039 * x86-64-tdep.h: Update.
9040 * x86-64-tdep.c (x86_64_init_abi): Update.
9041 * v850-tdep.c (v850_gdbarch_init): Update.
9042 * sparc-tdep.c (sparc_gdbarch_init): Update.
9043 * sh-tdep.c (sh_gdbarch_init): Update.
9044 * s390-tdep.c (s390_gdbarch_init): Update.
9045 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9046 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9047 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9048 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9049 * mips-tdep.c (mips_gdbarch_init): Update.
9050 * mcore-tdep.c (mcore_gdbarch_init): Update.
9051 * m68k-tdep.c (m68k_gdbarch_init): Update.
9052 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9053 * ia64-tdep.c (ia64_gdbarch_init): Update.
9054 * i386-tdep.c (i386_gdbarch_init): Update.
9055 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9056 * hppa-tdep.c (hppa_gdbarch_init): Update.
9057 * h8300-tdep.c (h8300_gdbarch_init): Update.
9058 * frv-tdep.c (frv_gdbarch_init): Update.
9059 * cris-tdep.c (cris_gdbarch_init): Update.
9060 * avr-tdep.c (avr_gdbarch_init): Update.
9061 * arm-tdep.c (arm_gdbarch_init): Update.
9062 * alpha-tdep.c (alpha_gdbarch_init): Update.
9063 * sh-tdep.c (sh_init_extra_frame_info): Update.
9064 (sh64_init_extra_frame_info): Update.
9065 * ns32knbsd-nat.c (frame_num_args): Update.
9066 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9067 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9068 (xstormy16_frame_chain_valid): Update.
9069 * vax-tdep.c (vax_saved_pc_after_call): Update.
9070 * v850-tdep.c (v850_frame_chain): Update.
9071 (v850_pop_frame): Update.
9072 (v850_init_extra_frame_info): Update.
9073 * sparc-tdep.c (setup_arbitrary_frame): Update.
9074 * ns32k-tdep.c (umax_frame_num_args): Update.
9075 * s390-tdep.c (s390_pop_frame_regular): Update.
9076 * mn10300-tdep.c (mn10300_frame_chain): Update.
9077 (mn10300_pop_frame_regular): Update.
9078 (mn10300_init_extra_frame_info): Update.
9079 * mips-tdep.c (mips_init_frame_pc_first): Update.
9080 (mips_frame_chain): Update.
9081 (mips_pop_frame): Update.
9082 * mcore-tdep.c (mcore_frame_chain): Update.
9083 (mcore_pop_frame): Update.
9084 (mcore_init_extra_frame_info): Update.
9085 * arch-utils.c (init_frame_pc_default): Update.
9086 * m68k-tdep.c (isi_frame_num_args): Update.
9087 (delta68_frame_num_args): Update.
9088 (news_frame_num_args): Update.
9089 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9090 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9091 (alpha_frame_chain): Update.
9092 (alpha_pop_frame): Update.
9093 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9094 (hppa_init_extra_frame_info): Update.
9095 (hppa_frame_chain): Update.
9096 (hppa_frame_chain_valid): Update.
9097 * cris-tdep.c (cris_init_extra_frame_info): Update.
9098 * avr-tdep.c (avr_init_extra_frame_info): Update.
9099 * arm-tdep.c (arm_frame_chain_valid): Update.
9100 (arm_init_extra_frame_info): Update.
9101 (arm_pop_frame): Update.
9102 * frame.c (frame_pc_unwind): Update.
9103 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9104 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9105 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9106 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9107 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9108 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9110 2003-03-10 Andrew Cagney <cagney@redhat.com>
9112 * gdbarch.sh (gdbarch_unwind_pc): New method.
9113 * gdbarch.h, gdbarch.c: Regenerate.
9114 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9115 but use read_pc and FRAME_SAVED_PC as fall backs.
9116 (frame_saved_regs_pc_unwind): Delete function.
9117 (trad_frame_unwinder): Update.
9118 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9119 (struct frame_unwind): Update.
9120 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9121 (dummy_frame_unwind): Update.
9122 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9123 (sentinel_frame_unwinder): Update.
9124 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9125 (d10v_frame_unwind): Update.
9126 (d10v_unwind_pc): New function.
9127 (d10v_gdbarch_init): Set unwind_pc.
9129 2003-03-10 Andrew Cagney <cagney@redhat.com>
9131 * gdbarch.h: Re-generate.
9133 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9135 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9138 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9140 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9142 2003-03-08 Andrew Cagney <cagney@redhat.com>
9144 * cli-out.c: Update copyright.
9145 (cli_out_data): Define typedef. Use instead of ui_out_data.
9147 2003-03-08 Andrew Cagney <cagney@redhat.com>
9149 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9152 2003-03-07 Andrew Cagney <cagney@redhat.com>
9154 * gdbarch.sh: Don't generate two macro definitions when an
9155 undefined macro taking no arguments.
9156 * gdbarch.h: Regenerate.
9158 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9160 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9161 (x86_64_unwind_dummy_id): New functions.
9162 (x86_64_init_abi): Register these two new functions.
9164 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9166 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9167 (x86_64_skip_prologue): Move prologue detection to
9169 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9171 2003-03-05 Andrew Cagney <cagney@redhat.com>
9173 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9174 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9175 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9176 to use unwind_dummy_id when a dummy frame.
9177 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9179 * gdbarch.h, gdbarch.c: Regneerate.
9181 2003-03-05 Andrew Cagney <cagney@redhat.com>
9183 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9184 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9185 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9188 2003-03-05 Andrew Cagney <cagney@redhat.com>
9190 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9191 (struct d10v_unwind_cache): Delete field "frameless". Replace
9192 "next_addr" with "sp_offset". Add "r11_offset".
9193 (d10v_frame_unwind_cache): Update.
9194 (prologue_find_regs): Update. When "mv r11, sp", save the
9195 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9196 RN was saved in r11_offset.
9198 2003-03-05 Andrew Cagney <cagney@redhat.com>
9200 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9201 cached PC value in the next frame.
9203 2003-03-05 Andrew Cagney <cagney@redhat.com>
9205 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9206 "id_unwind_cache" with "id".
9207 (frame_id_unwind): Delete declaration.
9208 * frame.c (frame_id_unwind): Delete function.
9209 (get_prev_frame): Call the frame id unwind method directly. Store
9210 the returned next frame's ID value in NEXT_FRAME. Note that there
9211 is a problem with the wrong unwind ID being called with the wrong
9214 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9216 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9218 2003-03-05 James Ingham <jingham@apple.com>
9219 Daniel Jacobowitz <drow@mvista.com>
9221 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9222 (auto_cp_abi): New variable.
9223 (current_cp_abi, num_cp_abis): Make static.
9224 (CP_ABI_MAX): Define.
9225 (cp_abis): Turn into an array.
9226 (value_virtual_fn_field): Fix formatting.
9227 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9229 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9230 (list_cp_abis, _initialize_cp_abi): New functions.
9231 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9232 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9233 switch_to_cp_abi. Update prototype for register_cp_abi.
9234 * Makefile.in (cp-abi.o): Update dependencies.
9235 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9236 instead of switch_to_cp_abi.
9237 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9239 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9241 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9243 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9245 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9246 * dwarf2loc.c: Include "regcache.h".
9247 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9249 * Makefile.in (dwarf2loc.o): Update dependencies.
9251 2003-03-04 Theodore A. Roth <troth@openavr.org>
9253 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9254 number of io registers reported by remote target is not a multiple of
9257 2003-03-04 David Carlton <carlton@math.stanford.edu>
9259 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9260 (lookup_symbol_aux_psymtabs): Update call to
9261 lookup_partial_symbol.
9262 (lookup_transparent_type, find_main_psymtab)
9263 (make_symbol_overload_list): Ditto.
9265 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9267 * MAINTAINERS (Write after approval): Update my email address.
9269 2003-03-03 Andrew Cagney <cagney@redhat.com>
9271 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9272 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9273 predicate. Replace MAX_REGISTER_RAW_SIZE.
9274 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9275 MAX_REGISTER_VIRTUAL_SIZE.
9276 * regcache.c (legacy_max_register_raw_size): New function.
9277 (legacy_max_register_virtual_size): New function.
9278 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9279 (MAX_REGISTER_RAW_SIZE): Define.
9280 (legacy_max_register_raw_size): Declare.
9281 (legacy_max_register_virtual_size): Declare.
9282 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9283 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9284 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9285 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9286 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9287 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9288 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9289 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9290 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9291 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9292 * vax-tdep.c (vax_gdbarch_init): Update.
9293 * v850-tdep.c (v850_gdbarch_init): Update.
9294 * sparc-tdep.c (sparc_gdbarch_init): Update.
9295 * sh-tdep.c (sh_gdbarch_init): Update.
9296 * s390-tdep.c (s390_gdbarch_init): Update.
9297 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9298 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9299 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9300 * mips-tdep.c (mips_gdbarch_init): Update.
9301 * mcore-tdep.c (mcore_gdbarch_init): Update.
9302 * m68k-tdep.c (m68k_gdbarch_init): Update.
9303 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9304 * ia64-tdep.c (ia64_gdbarch_init): Update.
9305 * i386-tdep.c (i386_gdbarch_init): Update.
9306 * hppa-tdep.c (hppa_gdbarch_init): Update.
9307 * h8300-tdep.c (h8300_gdbarch_init): Update.
9308 * frv-tdep.c (frv_gdbarch_init): Update.
9309 * cris-tdep.c (cris_gdbarch_init): Update.
9310 * avr-tdep.c (avr_gdbarch_init): Update.
9311 * arm-tdep.c (arm_gdbarch_init): Update.
9312 * alpha-tdep.c (alpha_gdbarch_init): Update.
9313 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9314 max_register_raw_size or max_register_virtual_size.
9316 2003-03-03 David Carlton <carlton@math.stanford.edu>
9318 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9319 SYMBOL_MATCHES_NAME, add comment.
9320 (SYMBOL_MATCHES_NATURAL_NAME): New.
9321 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9322 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9323 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9324 * symtab.c (lookup_partial_symbol): Use
9325 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9327 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9328 SYMBOL_MATCHES_NAME.
9331 2003-03-03 David Carlton <carlton@math.stanford.edu>
9333 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9334 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9335 by regexp matching against SYMBOL_NATURAL_NAME.
9337 2003-03-03 David Carlton <carlton@math.stanford.edu>
9339 * linespec.c (find_method): Extract code into collect_methods.
9340 (collect_methods): New.
9342 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9344 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9347 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9348 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9350 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9352 * arch-utils.c (generic_register_byte): Fix to use the loop index
9353 and not regnum when summing the size of all registers up to regnum.
9355 2003-03-01 Andrew Cagney <cagney@redhat.com>
9357 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9358 FRAME_INIT_SAVED_REGS.
9359 * gdbarch.h, gdbarch.c: Regenerate.
9360 * stack.c (frame_info): Update.
9361 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9362 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9363 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9364 * ns32k-tdep.c (ns32k_pop_frame): Update.
9365 * mips-tdep.c (mips_pop_frame): Update.
9366 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9367 * ia64-tdep.c (ia64_frame_chain): Update.
9368 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9369 (ia64_frameless_function_invocation): Update.
9370 (ia64_init_extra_frame_info): Update.
9371 (ia64_pop_frame_regular): Update.
9372 * frame.h (struct frame_info): Update comment.
9373 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9374 * frame.c (frame_saved_regs_register_unwind): Update.
9375 (frame_saved_regs_register_unwind): Update.
9376 (deprecated_generic_get_saved_register): Update.
9377 * cris-tdep.c: Update comment.
9378 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9380 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9381 * x86-64-tdep.c (x86_64_init_abi): Update.
9382 * vax-tdep.c (vax_gdbarch_init): Update.
9383 * v850-tdep.c (v850_gdbarch_init): Update.
9384 * sparc-tdep.c (sparc_gdbarch_init): Update.
9385 * sh-tdep.c (sh_gdbarch_init): Update.
9386 * s390-tdep.c (s390_gdbarch_init): Update.
9387 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9388 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9389 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9390 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9391 * mips-tdep.c (mips_gdbarch_init): Update.
9392 * mcore-tdep.c (mcore_gdbarch_init): Update.
9393 * m68k-tdep.c (m68k_gdbarch_init): Update.
9394 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9395 * ia64-tdep.c (ia64_gdbarch_init): Update.
9396 * i386-tdep.c (i386_gdbarch_init): Update.
9397 * frv-tdep.c (frv_gdbarch_init): Update.
9398 * avr-tdep.c (avr_gdbarch_init): Update.
9399 * arm-tdep.c (arm_gdbarch_init): Update.
9400 * alpha-tdep.c (alpha_gdbarch_init): Update.
9402 2003-03-01 Andrew Cagney <cagney@redhat.com>
9404 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9405 option enum and switch. When no windows, set the interpreter to
9408 2003-03-01 Andrew Cagney <cagney@redhat.com>
9410 * main.c (captured_main): Replace magic option characters with an
9413 2003-03-01 Andrew Cagney <cagney@redhat.com>
9415 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9416 INIT_EXTRA_FRAME_INFO.
9417 * gdbarch.h, gdbarch.c: Regenerate.
9418 * arm-tdep.c: Update comments.
9419 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9420 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9421 * frame.h, avr-tdep.c: Ditto.
9422 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9423 (create_new_frame, legacy_get_prev_frame): Ditto.
9424 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9425 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9426 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9427 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9428 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9429 * v850-tdep.c (v850_gdbarch_init): Ditto.
9430 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9431 * sh-tdep.c (sh_gdbarch_init): Ditto.
9432 * s390-tdep.c (s390_gdbarch_init): Ditto.
9433 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9434 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9435 * mips-tdep.c (mips_gdbarch_init): Ditto.
9436 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9437 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9438 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9439 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9440 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9441 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9442 * frv-tdep.c (frv_gdbarch_init): Ditto.
9443 * cris-tdep.c (cris_gdbarch_init): Ditto.
9444 * avr-tdep.c (avr_gdbarch_init): Ditto.
9445 * arm-tdep.c (arm_gdbarch_init): Ditto.
9446 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9447 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9449 2003-03-01 Andrew Cagney <cagney@redhat.com>
9451 * gdbarch.sh (register_type): New function with predicate.
9452 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9453 * gdbarch.h, gdbarch.c: Re-generate.
9454 * arch-utils.c (generic_register_byte): Use generic_register_size.
9455 (generic_register_size): When available, use
9456 gdbarch_register_type.
9457 * regcache.c (init_regcache_descr): When available, initialize the
9458 register type array using gdbarch_register_type. If the
9459 architecture supplies gdbarch_register_type, do not use the legacy
9461 * d10v-tdep.c (d10v_register_type): Replace
9462 d10v_register_virtual_type.
9463 (d10v_gdbarch_init): Set register_type instead of
9464 register_virtual_type.
9466 2003-03-01 Andrew Cagney <cagney@redhat.com>
9468 * Makefile.in (ax-gdb.o): Update dependencies.
9469 * ax-gdb.c: Include "regcache.h".
9470 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9471 * findvar.c (value_of_register): Ditto.
9472 * infcmd.c (default_print_registers_info): Ditto.
9474 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9476 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9477 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9479 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9481 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9484 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9486 * Makefile.in (dwarf2loc.o): Update dependencies.
9487 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9488 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9489 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9490 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9491 (locexpr_tracepoint_var_ref): New function.
9492 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9494 2003-02-28 Andrew Cagney <cagney@redhat.com>
9496 * regcache.c (register_size): New function.
9497 * regcache.h (register_size): Declare
9498 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9499 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9501 2003-02-28 David Carlton <carlton@math.stanford.edu>
9503 * linespec.c (decode_compound): Extract code into find_method.
9506 2003-02-28 J. Brobecker <brobecker@gnat.com>
9508 * Makefile.in: Add rules to build and link in observer.o.
9510 2003-02-27 J. Brobecker <brobecker@gnat.com>
9512 * observer.c: Minor comments edits.
9514 2003-02-27 J. Brobecker <brobecker@gnat.com>
9516 * observer.h, observer.c: New file.
9518 2003-02-27 Andrew Cagney <cagney@redhat.com>
9520 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9522 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9524 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9525 (M6812_OP_STS_EXT): Likewise.
9526 (m6811_prologue): Use the above to recognize prologue.
9527 (m6812_prologue): Likewise.
9529 2003-02-27 David Carlton <carlton@math.stanford.edu>
9531 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9533 (compare_psymbols): Ditto.
9534 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9536 2003-02-27 Michael Snyder <msnyder@redhat.com>
9538 * f-lang.c (build_fortran_types): New function.
9539 (_initialize_f_language): Gdbarch-register built-in fortran types.
9540 * doublest.c (extract_floating): Fix warning text.
9542 2003-02-27 Andrew Cagney <cagney@redhat.com>
9544 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9545 predicate. Replaces PUSH_DUMMY_FRAME.
9546 * gdbarch.h, gdbarch.c: Regnerate.
9547 * valops.c (hand_function_call): Update. Call
9548 generic_push_dummy_frame directly.
9549 * vax-tdep.c (vax_gdbarch_init): Update.
9550 * sparc-tdep.c (sparc_gdbarch_init): Update.
9551 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9552 * m68k-tdep.c (m68k_gdbarch_init): Update.
9553 * hppa-tdep.c (hppa_gdbarch_init): Update.
9554 * alpha-tdep.c (alpha_gdbarch_init): Update.
9555 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9556 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9557 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9558 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9559 push_dummy_frame to generic_push_dummy_frame.
9560 * v850-tdep.c (v850_gdbarch_init): Ditto.
9561 * sh-tdep.c (sh_gdbarch_init): Ditto.
9562 * s390-tdep.c (s390_gdbarch_init): Ditto.
9563 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9564 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9565 * mips-tdep.c (mips_gdbarch_init): Ditto.
9566 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9567 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9568 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9569 * i386-tdep.c (i386_gdbarch_init): Ditto.
9570 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9571 * frv-tdep.c (frv_gdbarch_init): Ditto.
9572 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9573 * cris-tdep.c (cris_gdbarch_init): Ditto.
9574 * avr-tdep.c (avr_gdbarch_init): Ditto.
9575 * arm-tdep.c (arm_gdbarch_init): Ditto.
9577 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9579 * mips-tdep.c (show_mips_abi): New function.
9580 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9581 command ``show mips abi''.
9583 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9585 From Elena Zannoni <ezannoni@redhat.com>
9586 * dbxread.c (process_one_symbol): Only record line 0 if one or
9587 more sline entries have been seen for the function.
9589 2003-02-26 Michael Chastain <mec@shout.net>
9591 * configure: Regenerate with autoconf 000227.
9593 2003-02-26 Michael Chastain <mec@shout.net>
9596 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9597 for old libc5/glibc.
9598 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9600 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9602 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9603 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9605 2003-02-26 Michael Chastain <mec@shout.net>
9607 * configure.in: New variable HAVE_UINTPTR_T.
9608 * configure, config.in: Regenerated.
9610 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9613 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9615 2003-02-25 Andrew Cagney <cagney@redhat.com>
9617 * frame.c (get_prev_frame): Add comment on check for
9618 inside_entry_func. Only check for inside_entry_file when not a
9619 dummy and not a sentinel. Check that the new frame is not inner
9622 2003-02-25 Andrew Cagney <cagney@redhat.com>
9624 * frame.c (frame_debug): New variable.
9625 (_initialize_frame): Add "set/show debug frame" command.
9626 (get_prev_frame): When frame_debug, print reason why unwind
9629 2003-02-25 Michael Chastain <mec@shout.net>
9631 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9632 to avoid uintptr_t definition problems.
9634 2003-02-25 David Carlton <carlton@math.stanford.edu>
9636 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9637 (SYMBOL_LINKAGE_NAME): Ditto.
9638 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9639 SYMBOL_LINKAGE_NAME.
9640 (struct general_symbol_info): Expand comment.
9641 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9642 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9643 (SYMBOL_MATCHES_REGEXP): Ditto.
9644 * symtab.c (symbol_natural_name): New function.
9645 * objfiles.h: Replace all uses of SYMBOL_NAME by
9646 DEPRECATED_SYMBOL_NAME.
9647 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9648 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9649 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9650 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9651 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9652 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9653 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9654 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9655 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9656 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9658 * ada-exp.y: Update copyright.
9659 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9660 * cp-valprint.c: Ditto.
9662 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9664 * infptrace.c (detach): Do not flag error if ptrace detach fails
9665 and errno is set to ESRCH.
9667 2003-02-24 Andrew Cagney <cagney@redhat.com>
9669 * infptrace.c (udot_info): Change type of udot_off to long. Use
9670 paddr when printing udot_off's value.
9672 2003-02-24 David Carlton <carlton@math.stanford.edu>
9674 * symtab.c (make_symbol_overload_list): Only read in partial
9675 symtabs containing a matching partial symbol.
9677 2003-02-24 David Carlton <carlton@math.stanford.edu>
9679 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9680 do the comparison, not strcmp.
9681 * symfile.c (compare_psymbols): Ditto.
9682 * defs.h: Declare strcmp_iw_ordered.
9683 * utils.c (strcmp_iw_ordered): New function.
9685 2003-02-24 Jim Blandy <jimb@redhat.com>
9687 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9688 support, shared libs): Remove my name from here, to better reflect
9691 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9693 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9694 (target_ops): Add to_have_continuable_watchpoint.
9695 * target.c (update_current_target): Add INHERIT line for
9696 to_have_continuable_watchpoint.
9697 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9698 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9699 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9700 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9702 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9704 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9707 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9709 * solib.c (solib_open): Call target defined search function after
9710 failing with solib-search-path.
9711 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9712 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9714 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9716 * MAINTAINERS: Add myself to Write After section.
9718 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9720 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9722 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9724 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9725 (m68hc11_add_reggroups): New function.
9726 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9727 (m68hc11_gdbarch_init): Install the reggroups.
9728 (_initialize_m68hc11_tdep): Initialize them.
9730 2003-02-21 James E Wilson <wilson@tuliptree.org>
9732 * MAINTAINERS: Update my email address.
9734 2003-02-21 David Carlton <carlton@math.stanford.edu>
9736 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9738 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9740 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9741 * symtab.h: Add opaque declarations of struct axs_value and
9743 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9744 (struct location_funcs): New type.
9745 (struct symbol): Add "loc" to aux_value.
9746 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9747 * dwarf2read.c: Include "dwarf2expr.h".
9748 (dwarf2_symbol_mark_computed): New function.
9749 (read_func_scope): Use it.
9750 (var_decode_location): New function.
9751 (new_symbol): Use it.
9752 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9754 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9755 (dwarf2expr_h, dwarf2loc_h): New variables.
9756 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9757 (dwarf2expr.o, dwarf2loc.o): New rules.
9758 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9759 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9761 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9762 * m2-exp.y (yylex): Likewise.
9763 * printcmd.c (address_info, print_frame_args): Likewise.
9764 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9765 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9766 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9767 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9768 * symtab.c (lookup_block_symbol): Likewise.
9770 2003-02-20 Adam Fedor <fedor@gnu.org>
9772 * symtab.h: Remove objc_specific struct
9773 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9774 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9775 Have language_objc use cplus_specific struct.
9777 2003-02-20 Tom Tromey <tromey@redhat.com>
9779 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9780 TYPE_NAME, when printing a String value. PR java/1075.
9782 2003-02-20 Adam Fedor <fedor@gnu.org>
9784 * objc-lang.h (find_methods): Remove declaration.
9785 * objc-lang.c (find_methods): Make static.
9787 2003-02-20 Christopher Faylor <cgf@redhat.com>
9789 * win32-nat.c (get_image_name): Check return value from
9791 (child_xfer_memory): Ditto.
9793 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9795 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9796 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9797 '${exec_prefix}' (in addition to the expansion thereof) as
9799 * configure: Rebuilt.
9801 2003-02-20 David Carlton <carlton@math.stanford.edu>
9803 * symtab.c (search_symbols): Revert the search_symbols part of my
9804 2002-12-23 patch. Add comment.
9806 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9808 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9809 * dbxread.c (elfstab_build_psymtabs): Don't call
9810 install_minimal_symbols.
9811 (stabsect_build_psymtabs): Likewise.
9812 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9814 * somread.c (som_symfile_read): Call install_minimal_symbols
9815 and do_cleanups earlier.
9816 * nlmread.c (nlm_symfile_read): Likewise.
9817 * mdebugread.c (elfmdebug_build_psymtabs): Call
9818 install_minimal_symbols and make appropriate cleanups.
9820 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9822 * solib.c (reload_shared_libraries): New function.
9823 (_initialize_solib): Add callbacks for ``set solib-search-path''
9824 and ``set solib-absolute-prefix''.
9826 2003-02-20 David Carlton <carlton@math.stanford.edu>
9828 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9830 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9831 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9832 * ada-typeprint.c (ada_typedef_print): Ditto.
9833 * ax-gdb.c (gen_var_ref): Ditto.
9834 * breakpoint.c (print_one_breakpoint): Ditto.
9835 * buildsym.c (finish_block): Ditto.
9836 * c-valprint.c (c_val_print): Ditto.
9837 * expprint.c (print_subexp): Ditto.
9838 * findvar.c (locate_var_value): Ditto.
9839 * infcmd.c (jump_command): Ditto.
9840 * linespec.c (decode_line_2, decode_compound): Ditto.
9841 * maint.c (maintenance_translate_address): Ditto.
9842 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9843 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9845 * p-valprint.c (pascal_val_print): Ditto.
9846 * stabsread.c (define_symbol): Ditto.
9847 * stack.c (print_frame, frame_info, print_block_frame_locals)
9848 (print_frame_arg_vars, return_command): Ditto.
9849 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9850 * symmisc.c (print_symbol): Ditto.
9851 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9852 (compare_search_syms, print_symbol_info, print_msymbol_info)
9853 (rbreak_command): Ditto.
9854 * tracepoint.c (tracepoints_info): Ditto.
9855 * typeprint.c (typedef_print): Ditto.
9856 * valops.c (value_of_variable, hand_function_call): Ditto.
9857 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9858 * ada-typeprint.c: Update Copyright.
9859 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9860 * tracepoint.c, cli/cli-cmds.c: Ditto.
9862 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9864 * frame.c (generic_unwind_get_saved_register): Make non-static.
9865 * frame.h (generic_unwind_get_saved_register): Declare.
9866 * mips-tdep.c (read_next_frame_reg): Fetch register from
9867 current regcache when frame is NULL.
9868 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9870 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9871 instead of frame_register_unwind().
9873 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9875 * remote-sim.c (gdbsim_insert_breakpoint)
9876 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9879 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9881 * remote.c (_initialize_remote): Add commands "set/show remote
9882 hardware-watchpoint-limit" and "set/show remote
9883 hardware-breakpoint-limit".
9884 (remote_hw_watchpoint_limit): Initialize to -1.
9885 (remote_hw_breakpoint_limit): Ditto.
9886 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9888 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9890 * coff-pe-read.c: New file - support reading of minimal symbols from a
9891 portable executable using the export table.
9892 * coff-pe-read.h: New file.
9893 * coffread.c: Include coff-pe-read.h.
9894 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9895 debugging symbols found.
9896 * Makefile.in (SFILES): Add coff-pe-read.o.
9897 (coff_pe_read_h): Define.
9898 (COMMON_OBS): Add coff-pe-read.o.
9899 (coffread.o): Add coff_pe_read_h dependency.
9900 (coff-pe-read.o): New target.
9902 2003-02-19 David Carlton <carlton@math.stanford.edu>
9904 * Makefile.in (SFILES): Add block.c.
9906 (COMMON_OBS): Add block.o.
9908 (x86-64-tdep.o): Add $(block_h).
9909 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9910 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9911 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9912 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9913 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9914 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9915 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9916 * value.h: Add opaque declaration for struct block.
9917 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9918 * ada-lang.h: Ditto.
9919 * x86-64-tdep.c: #include "block.h"
9920 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9921 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9922 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9923 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9924 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9925 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9926 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9927 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9928 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9929 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9930 * symtab.c (block_function): Ditto.
9931 (contained_in): Ditto.
9932 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9933 block.h. Add opaque declaration for struct block.
9934 * symtab.h: Move block_function and contained_in declarations to
9935 block.h. Add opaque declarations for struct block, struct
9937 (struct block): Move to block.h.
9938 (struct blockvector): Ditto.
9939 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9940 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9941 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9942 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9943 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9945 * block.c: New file.
9946 * block.h: New file.
9948 2003-02-19 Theodore A. Roth <troth@openavr.org>
9950 * avr-tdep.c (avr_extract_return_value): Remove function.
9951 (avr_store_return_value): Remove function.
9952 (avr_extract_struct_value_address): Remove function.
9953 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9955 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9957 * rs6000-tdep.c: Include "gdb_assert.h".
9958 (registers_e500): Add "acc" and "spefscr".
9959 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9960 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9961 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9963 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9965 2003-02-18 Keith Seitz <keiths@redhat.com>
9967 * Makefile.in: Add gdbtk-interps.c.
9969 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9971 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9972 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9974 2003-02-18 Andrew Cagney <cagney@redhat.com>
9976 * symtab.h (struct objfile): Add opaque declaration.
9978 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9980 From Jim Ingham <jingham@apple.com>:
9981 * dbxread.c (process_one_symbol): Use last_function_start rather
9982 than function_start_offset to find the real beginning of the
9983 current function. The latter is just the text section offset on
9984 some systems, the former is always the real function start.
9986 2003-02-17 Andrew Cagney <cagney@redhat.com>
9988 * configure.in: Revert ${target} != ${host}.
9990 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9992 * configure.in (Makefile): Use the test ${target} != ${host},
9993 instead of the absence of the "nm.h" file, to determine of the
9994 configuration non-native.
9995 * configure: Regenerate.
9997 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9999 From Brian Ford <ford@vss.fsi.com>
10001 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10002 conditionalize tui_active test.
10003 (lookup_cmd_1): Ditto.
10005 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10007 * configure.in: Add check for _etext.
10008 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10010 * config.in, configure: regenerated.
10012 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10014 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10016 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10018 * main.c (tui_version): Delete variable.
10019 (captured_main): When --tui, set interpreter_p to "tui" instead of
10020 enabling tui_version.
10021 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10023 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10024 * cli/cli-cmds.c (disassemble_command): Ditto.
10025 * defs.h (tui_version): Delete declaration.
10026 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10027 (tui-interp.o): Add rules.
10028 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10030 2003-02-14 Christopher Faylor <cgf@redhat.com>
10032 * win32-nat.c (register_loaded_dll): Correctly set address range for
10035 2003-02-12 Jason Molenda (jmolenda@apple.com)
10037 * symmisc.c (print_objfile_statistics): Include information about
10038 the number of psymtabs and symtabs in each object file.
10040 2003-02-13 Keith R Seitz <keiths@redhat.com>
10042 * main.h (struct captured_main_args): Add interpreter_p.
10043 * main.c (captured_main): Initialize interpreter_p from context.
10044 * gdb.c (main): Set interpreter_p argument.
10045 * Makefile.in (gdb.o): Add dependency for interps.h.
10047 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10049 * event-top.c (cli_command_loop): Delete declaration.
10050 (_initialize_event_loop): Delete function setting event_loop_hook.
10051 * event-top.h (cli_command_loop): Declare. Update copyright.
10052 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10053 * interps.c (current_interp_command_loop): When event_loop_p, call
10056 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10058 * interps.h (interp_command_loop_ftype): Change return type to
10061 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10063 * x86-64-tdep.c (x86_64_extract_return_value)
10064 (x86_64_store_return_value): Use regcache instead of regbuf.
10065 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10066 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10068 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10070 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10071 * aclocal.m4: Regenerate.
10072 * configure: Regenerate.
10074 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10075 TCL_LD_SEARCH_FLAGS.
10077 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10079 * dwarf2cfi.c: Reindented.
10081 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10083 * interps.c (clear_interpreter_hooks): Convert function definition
10086 2003-02-07 David Carlton <carlton@math.stanford.edu>
10088 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10090 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10092 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10093 (struct type): ...to here.
10094 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10096 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10097 (replace_type): Set length on all type variants for a given type.
10099 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10101 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10103 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10105 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10107 * Makefile.in (symm-nat.o): Update dependencies.
10108 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10109 (lynx-nat.o, ia64-linux-nat.): Ditto.
10110 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10111 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10112 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10114 * Makefile.in (inflow_h): Define.
10115 (procfs.o, inflow.o, procfs.o): Update dependencies.
10116 * inftarg.c (child_stop): Delete extern declaration of
10117 inferior_process_group. Include "inflow.h".
10118 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10119 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10120 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10121 (our_process_group, inferior_process_group): Extern declarations.
10123 * procfs.c: Include "gdb_assert.h".
10125 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10126 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10127 * jv-typeprint.c (java_type_print_base): Ditto.
10128 * typeprint.c (typedef_print): Eliminate STREQ.
10129 * cli/cli-script.c (define_command, define_command): Ditto.
10130 * main.c (captured_main): Ditto.
10131 * values.c (lookup_internalvar): Ditto.
10132 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10133 within `if' conditional.
10134 * linespec.c (decode_line_2): Ditto.
10135 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10136 (bfd_openw_with_cleanup): Ditto.
10138 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10140 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10141 legacy_extract_return_value and store_return_value to
10142 legacy_return_value.
10144 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10146 * win32-nat.c (get_relocated_section_addrs): New function. Find
10147 section load addresses for symbol handling in relocated DLLs.
10148 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10150 2003-02-05 Fred Fish <fnf@intrinsity.com>
10152 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10154 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10156 (angel_RDI_info): Ditto.
10157 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10159 (threads_continue_all_with_signals): Ditto.
10161 2003-02-05 Jim Ingham <jingham@apple.com>
10162 Keith Seitz <keiths@redhat.com>
10163 Elena Zannoni <ezannoni@redhat.com>
10164 Andrew Cagney <ac131313@redhat.com>
10166 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10167 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10168 (SUBDIR_MI_OBS): Add "mi-interp.o".
10169 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10170 (SFILES): Add "interps.c".
10171 (COMMON_OBS): Add "interps.o".
10172 (interps_h, mi_main_h): Define.
10173 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10174 (mi-main.o, main.o, event-top.o): Update dependencies.
10175 * cli/cli-interp.c: New file.
10176 * interps.h, interps.c: New files.
10177 * top.c: (gdb_init): Don't install the default interpreter, handed
10179 * main.c: Include "interps.h".
10180 (interpreter_p): Note that it should malloc'ed.
10181 (captured_command_loop): Call current_interp_command_loop.
10182 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10183 xfree and xstrdup when updating interpreter_p. Install the
10184 default interpreter. Add hack to stop mi1's copyright notice
10186 * event-top.h (gdb_setup_readline): Declare.
10187 (gdb_disable_readline): Declare.
10188 * event-top.c: Include "interps.h".
10189 (display_gdb_prompt): Call current_interp_display_prompt_p.
10190 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10191 gdb_stdlog, and gdb_stdtarg.
10192 (_initialize_event_loop): Don't call gdb_setup_readline.
10193 * cli-out.c (cli_out_set_stream): New function.
10194 * cli-out.h (cli_out_set_stream): Declare.
10196 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10198 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10199 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10200 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10201 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10202 config/i386/i386v42mp.mt: Removed.
10204 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10206 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10209 2003-02-05 Michael Chastain <mec@shout.net>
10211 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10212 2.12.1 and earlier versions.
10214 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10216 Remove orphaned hosts, targets and files.
10217 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10218 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10219 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10220 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10221 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10222 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10223 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10224 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10225 * config/sparc/tm-sp64sim.h: Delete.
10226 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10228 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10229 mips*-dec-mach3* targets.
10231 2003-02-04 Michael Chastain <mec@shout.net>
10233 * NEWS: Fix typo: sepcifying -> specifying.
10235 2003-02-04 Michael Chastain <mec@shout.net>
10237 * dwarfread.c: Add documentation on the state of dwarf-1,
10238 looking towards obsoletion.
10240 2003-02-03 Michael Chastain <mec@shout.net>
10242 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10243 gdb/testsuite/gdb.c++/pr-1023.exp.
10245 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10247 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10248 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10250 * utils.c (init_page_info): Delete reference to MPW in comments.
10251 * main.c (captured_main): Delete #ifdef MPW.
10253 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10255 * NEWS: Note that the m32r-*-elf* is obsolete.
10256 * monitor.c (monitor_expect): Obsolete reference to m32r.
10257 * configure.tgt: Mark m32r-*-elf* as obsolete.
10258 * MAINTAINERS: Mark m32k as obsolete.
10259 * m32r-rom.c: Obsolete file.
10260 * config/m32r/m32r.mt: Obsolete file.
10261 * config/m32r/tm-m32r.h: Obsolete file.
10262 * m32r-stub.c: Obsolete file.
10263 * m32r-tdep.c: Obsolete file.
10265 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10267 * NEWS: Mention that the z8k-zilog-none is obsolete.
10268 * MAINTAINERS: Mark z8k as obsolete.
10269 * configure.tgt: Obsolete the z8k-*-coff* target.
10270 * config/z8k/z8k.mt: Obsolete file.
10271 * config/z8k/tm-z8k.h: Obsolete file.
10272 * z8k-tdep.c: Obsolete file.
10274 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10276 * NEWS: Mention that the mn10200-elf is obsolete.
10277 * configure.tgt: Obsolete mn10200-*-* target.
10278 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10279 mention that the mn10200 is obsolete.
10280 * breakpoint.h: Ditto.
10281 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10282 * config/mn10200/mn10200.mt: Obsolete file.
10283 * config/mn10200/tm-mn10200.h: Obsolete file.
10284 * mn10200-tdep.c: Obsolete file.
10286 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10288 * MAINTAINERS: Mark h8500 as obsolete.
10289 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10290 * findvar.c (value_from_register): Ditto.
10291 * h8500-tdep.c: Mark file as obsolete.
10292 * config/h8500/h8500.mt: Ditto.
10293 * config/h8500/tm-h8500.h: Ditto.
10294 * NEWS: Mention that h8500 is obsolete.
10296 2003-02-04 David Carlton <carlton@math.stanford.edu>
10298 * objfiles.c (allocate_objfile): Always set name. Add comment at
10300 * jv-lang.c (get_dynamics_objfile): Add comment.
10302 2003-02-04 David Carlton <carlton@math.stanford.edu>
10304 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10305 * printcmd.c (build_address_symbolic): Replace uses of
10306 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10307 SYMBOL_NAME, and asm_demangle.
10310 2003-02-04 David Carlton <carlton@math.stanford.edu>
10312 * linespec.c (decode_compound): Extract code into
10314 (lookup_prefix_sym): New function.
10316 2003-02-04 David Carlton <carlton@math.stanford.edu>
10318 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10319 FLOAT_COERCION_BADNESS.
10320 * gdbtypes.c (rank_one_type): Replace all uses of
10321 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10323 2003-02-04 Jim Blandy <jimb@redhat.com>
10325 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10326 section, let dwarf_macinfo_section point to it, not
10329 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10331 Pointed out by Anton Blanchard <anton@samba.org>.
10332 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10333 (ppc_linux_at_sigtramp_return_path): Use it.
10335 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10337 * defs.h (streq): Add prototype.
10338 * utils.c (streq): New function.
10340 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10341 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10342 * mdebugread.c (new_symbol): Likewise.
10343 * stabsread.c (define_symbol): Likewise.
10344 * coffread.c (process_coff_symbol): Likewise.
10345 * dwarfread.c (new_symbol): Likewise.
10347 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10348 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10350 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10351 SYMBOL_INIT_DEMANGLED_NAME.
10352 * objfiles.c: Include "hashtab.h".
10353 (allocate_objfile): Call htab_set_functions_ex for the
10354 demangled_names_hash.
10355 (free_objfile): Call htab_delete for the demangled_names_hash.
10356 * objfiles.h (struct htab): Add declaration.
10357 (struct objfile): Add demangled_names_hash.
10358 * symfile.c: Include "hashtab.h".
10359 (reread_symbols): Call htab_delete for the demangled_names_hash.
10360 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10361 SYMBOL_NAME in the bcache.
10362 * symtab.c: Include "hashtab.h". Update comments.
10363 (create_demangled_names_hash, symbol_set_names): New functions.
10364 (symbol_find_demangled_name): New function, broken out from
10365 symbol_init_demangled_names.
10366 (symbol_init_demangled_names): Use it.
10367 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10368 (SYMBOL_SET_NAMES): New macro.
10369 (symbol_set_names): Add prototype.
10371 2003-02-03 Jim Blandy <jimb@redhat.com>
10373 Use a single, consistent representation for an empty minimal
10374 symbol table in an objfile.
10375 * objfiles.c (terminate_minimal_symbol_table): New function.
10376 (allocate_objfile): Call it.
10377 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10378 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10380 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10381 objfile has minimal symbols, compare minimal_symbol_count to zero,
10382 instead of comparing msymbols with NULL.
10383 * objfiles.c (have_minimal_symbols): Same.
10384 * solib-sunos.c (solib_add_common_symbols): Call
10385 terminate_minimal_symbol_table.
10386 * symfile.c (reread_symbols): Same.
10388 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10390 * s390-tdep.c (s390_address_class_type_flags)
10391 (s390_address_class_type_flags_to_name)
10392 (s390_address_class_name_to_type_flags): New functions.
10393 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10394 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10396 2003-02-03 Michael Snyder <msnyder@redhat.com>
10398 * arm-tdep.c: Fix spell-o in comment.
10400 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10402 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10403 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10404 error messages to contain BFD filename.
10406 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10408 Fix PR gdb/742 gdb/743 gdb/877
10409 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10410 (do_mixed_source_and_assembly): Use
10411 make_cleanup_ui_out_tuple_begin_end and
10412 make_cleanup_ui_out_tuple_begin_end.
10413 (do_mixed_source_and_assembly): Ditto.
10414 * thread.c (do_captured_list_thread_ids): Ditto.
10415 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10416 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10417 ui_out_tuple_end): Delete prototypes.
10418 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10419 ui_out_list_end, ui_out_tuple_end): Delete.
10421 From Kevin Buettner <kevinb@redhat.com>:
10422 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10423 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10424 (do_cleanup_table_end): New functions.
10425 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10426 Use cleanups to invoke_ui_out_tuple_end().
10427 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10428 * cli/cli-setshow.c (cmd_show_list): Use
10429 make_cleanup_ui_out_tuple_begin_end.
10431 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10433 * frame.c (frame_unwind_register): New function.
10434 (frame_unwind_unsigned_register): Use.
10435 (frame_unwind_signed_register): Use.
10436 (frame_read_register): New function.
10437 * frame.h (frame_unwind_register): Declare.
10438 (frame_read_register): Declare.
10440 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10441 and frame_unwind_register instead of read_memory, write_register
10442 and deprecated_write_register_bytes.
10444 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10446 * frame.h: Note that namelen can be negative.
10447 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10450 * NEWS: Mention that the d10v's `regs' command is deprecated.
10451 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10452 (d10v_print_registers_info): New function.
10453 (show_regs): Call d10v_print_registers_info.
10454 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10456 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10458 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10459 lost in the previous patch.
10461 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10463 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10464 * stack.c (print_frame_info_base): Output complete FRAME tuple
10465 for synthesized frames.
10467 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10469 * mips-nat.c (zerobuf): Delete.
10470 (fetch_inferior_registers): Alloc local zerobuf.
10471 (fetch_core_registers): Alloc local zerobuf.
10472 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10473 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10474 * thread-db.c (thread_db_store_registers): Ditto.
10475 * sh-tdep.c (sh_do_register): Ditto.
10476 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10477 * remote-sim.c (gdbsim_store_register): Ditto.
10478 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10479 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10480 * monitor.c (monitor_supply_register): Ditto.
10481 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10482 * mips-nat.c (fetch_inferior_registers): Ditto.
10483 * m68klinux-nat.c (fetch_register): Ditto.
10484 * lynx-nat.c (fetch_inferior_registers): Ditto.
10485 (fetch_inferior_registers): Ditto.
10486 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10487 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10488 (hpux_thread_store_registers): Ditto.
10489 * hppah-nat.c (fetch_register): Ditto.
10490 * hppab-nat.c (fetch_register): Ditto.
10491 * hppa-tdep.c (pa_register_look_aside): Ditto.
10492 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10493 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10495 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10497 * gdbarch.sh: Explictly specify all method levels. When a
10498 variable with an empty level, provide a non-multi-arch default.
10499 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10500 * gdbarch.h: Re-generate.
10501 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10502 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10504 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10506 * defs.h (host_pointer_to_address): Delete declaration.
10507 (address_to_host_pointer): Delete declaration.
10508 * utils.c (host_pointer_to_address): Delete function.
10509 (address_to_host_pointer): Delete function.
10510 * procfs.c (procfs_address_to_host_pointer): New function.
10511 * procfs.c (proc_set_watchpoint): Use.
10512 (procfs_can_use_hw_breakpoint): Update comments.
10513 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10514 (som_solib_add): Use.
10515 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10516 * hppa-tdep.c (unwind_command): Use.
10518 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10520 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10523 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10524 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10525 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10526 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10527 (define_symbol): Update.
10528 * symfile.c (generic_load): Remove references to nindy.
10529 * symtab.c: Remove references to nindy.
10531 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10533 * infcmd.c (print_float_info): Delete code conditional on
10535 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10536 * config/m68k/nm-apollo68b.h: Ditto.
10537 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10538 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10539 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10541 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10543 * config/i386/tm-i386os9k.h: Removed.
10545 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10546 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10547 they're identical to i[3456]86-*-sysv* now.
10548 * config/i386/i386v32.mh: Removed.
10549 * config/i386/xm-i386v32.h: Removed.
10550 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10552 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10554 * config/i386/i386dgux.mh: Removed.
10555 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10557 * configure.in: Fix typo.
10558 * configure: Regenerated.
10560 2003-01-31 David Carlton <carlton@math.stanford.edu>
10562 * dwarf2read.c (dwarf2_locate_sections): Set
10563 dwarf_ranges_section.
10565 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10567 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10568 * utils.c: Update comments documenting legitimate uses of PTR.
10570 * utils.c: Re-indent.
10572 * config/djgpp/fnchange.lst: Delete nindy files.
10573 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10574 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10575 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10576 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10577 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10578 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10579 * Makefile.in (init.c): Remove nindy references.
10580 (saber_gdb): Delete rule.
10581 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10582 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10584 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10585 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10586 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10587 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10588 nindy-share/stop.h.
10589 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10590 * saber.suppress: Delete file.
10592 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10594 * dbxread.c (stabs_data): New static variable.
10595 (fill_symbuf): Support an in-memory buffer for stabs data.
10596 (stabs_seek): New function.
10597 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10598 (read_ofile_symtab): Use stabs_seek.
10599 (elfstab_build_psymtabs): Take an asection* instead of
10600 an offset and size. Relocate the stabs data if necessary.
10601 Save the section* for dbx_psymtab_to_symtab.
10602 * dwarf2read.c: Add section variables for each debug section.
10603 (dwarf2_locate_sections): Fill them in.
10604 (dwarf2_read_section): Take an asection* argument.
10605 Relocate the section contents if necessary.
10606 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10607 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10608 it to dwarf2_read_section.
10609 (dwarf2_build_frame_info): Update callers.
10610 * elfread.c (elf_symfile_read): Update call to
10611 elfstab_build_psymtabs.
10612 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10613 (DBX_STAB_SECTION): New macro.
10614 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10615 * symfile.c (symfile_dummy_outputs): New function.
10616 (symfile_relocate_debug_section): New function.
10617 * symfile.h (symfile_relocate_debug_section): Add prototype.
10619 2003-01-31 Richard Henderson <rth@redhat.com>
10621 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10622 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10623 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10624 * alpha-tdep.c (alpha_register_name): Add "unique".
10625 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10626 (ALPHA_UNIQUE_REGNUM): New.
10627 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10629 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10631 * README: Remove reference to Ericsson 1800 monitor.
10632 * Makefile.in (remote-es.o): Delete rule.
10633 (ALLDEPFILES): Delete remote-es.c.
10634 * remote-es.c: Delete file.
10635 * config/m68k/es1800.mt: Delete file.
10636 * config/djgpp/fnchange.lst: Update.
10637 * configure.tgt: Delete m68*-ericsson-* target.
10639 2003-01-31 Adam Fedor <fedor@gnu.org>
10641 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10642 Remove duplicate/shadowing variable of same name.
10644 2003-01-30 Jim Blandy <jimb@redhat.com>
10646 * symfile.c (find_separate_debug_file): Assert that the objfile's
10647 directory name we compute ends with a slash, and then assume that
10648 that's so everywhere we use it.
10650 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10652 * valops.c (value_assign): Flush frame cache after stores to memory
10655 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10657 * Makefile.in (mon960-rom.o): Delete rule.
10658 * mon960-rom.c: Delete file.
10660 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10662 * d10v-tdep.c: Include "frame-unwind.h".
10663 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10665 (next_addr, uses_frame): Delete.
10666 (struct d10v_unwind_cache): Define.
10667 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10668 Use info instead of next_addr and uses_frame globals.
10669 (d10v_frame_init_saved_regs): Delete function.
10670 (d10v_init_extra_frame_info): Delete function.
10671 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10672 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10673 init_frame_pc or frame_saved_pc.
10674 (d10v_pop_frame): Delete function.
10675 (do_d10v_pop_frame): Delete function.
10676 (d10v_frame_chain): Delete function.
10677 (d10v_frame_chain_valid): Delete function.
10678 (d10v_frame_pc_unwind): New function.
10679 (d10v_frame_id_unwind): New function.
10680 (saved_regs_unwinder): New function.
10681 (d10v_frame_register_unwind): New function.
10682 (d10v_frame_pop): New function.
10683 (d10v_frame_unwind): New variable.
10684 (d10v_frame_p): New function.
10685 (d10v_frame_saved_pc): Delete function.
10686 * Makefile.in (d10v-tdep.o): Update dependencies.
10688 2003-01-30 J. Brobecker <brobecker@gnat.com>
10690 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10691 causing some regressions due to a change in the default value
10694 2003-01-29 Richard Henderson <rth@redhat.com>
10695 Elena Zannoni <ezannoni@redhat.com>
10696 Daniel Jacobowitz <drow@mvista.com>
10699 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10701 (RANGES_SECTION): New.
10702 (dwarf_ranges_buffer): New variable.
10703 (struct comp_unit_head): Add member "die".
10704 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10705 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10706 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10707 (dwarf2_locate_sections): Likewise.
10708 (dwarf2_build_psymtabs): Read .debug_ranges.
10709 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10710 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10711 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10712 Look for DW_AT_ranges and return the bounding box.
10714 2003-01-29 Brian Ford <ford@vss.fsi.com>
10716 * win32-nat.c (cygwin_pid): Removed as unused.
10717 (child_attach): Try fall back to Cygwin pid.
10719 2003-01-29 Jim Blandy <jimb@redhat.com>
10721 * objfiles.h (struct objfile): Doc fix.
10723 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10725 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10726 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10727 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10728 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10729 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10730 (FRAME_SAVED_PC): Change to a function with predicate.
10731 * gdbarch.h, gdbarch.c: Re-generate.
10733 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10735 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10737 * complaints.c (complain): Delete function.
10738 * complaints.h (struct deprecated_complaint): Delete definition.
10739 (complain): Delete declaration.
10741 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10743 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10746 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10748 * sentinel-frame.h, sentinel-frame.c: New files.
10749 * Makefile.in (frame.o): Update dependencies.
10750 (SFILES): Add sentinel-frame.c.
10751 (sentinel_frame_h): Define.
10752 (COMMON_OBS): Add sentinel-frame.o.
10753 (sentinel-frame.o): Specify dependencies.
10754 * frame.c: Include "sentinel-frame.h".
10755 (frame_register_unwind): Rewrite assuming that there is always a a
10757 (frame_register, generic_unwind_get_saved_register): Ditto.
10758 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10759 (create_sentinel_frame, unwind_to_current_frame): New functions.
10760 (get_current_frame): Rewrite using create_sentinel_frame and
10761 unwind_to_current_frame. When possible, always create a frame.
10762 (create_new_frame): Set next to the sentinel frame.
10763 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10764 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10765 ID cache when necessary.
10766 (frame_saved_regs_id_unwind): Use frame_relative_level.
10767 (deprecated_generic_get_saved_register): Use frame_relative_level,
10768 get_frame_saved_regs, get_frame_pc, get_frame_base and
10770 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10773 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10775 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10777 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10779 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10780 (maintenance_set_profile_cmd): Use error () instead of warning ().
10782 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10784 * configure.in: Check that -pg works if using --enable-profiling.
10785 Check for monstartup and _mcleanup regardless of --enable-profiling.
10786 * maint.c: Check for monstartup and _mcleanup before using them.
10787 * config.in: Regenerated.
10788 * configure: Regenerated.
10790 2003-01-24 Nick Clifton <nickc@redhat.com>
10792 * Add sh2e support:
10794 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10796 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10797 (sh2e_show_regs): New.
10798 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10799 * config/sh/tm-sh.h: Added sh2e to comments.
10801 2003-01-23 Jim Blandy <jimb@redhat.com>
10803 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10804 symbols found)" message here; we haven't checked for a separate
10805 debug info file yet, so we don't know yet.
10806 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10807 we've looked everywhere. Also, there's no need to print a special
10808 message when we're loading the separate debug info file: the one
10809 symbol_file_add prints is fine.
10811 2003-01-23 Alexander Larsson <alexl@redhat.com>
10812 Jim Blandy <jimb@redhat.com>
10814 Add support for executables whose debug info has been separated
10815 out into a separate file, leaving only a link behind.
10816 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10817 and separate_debug_objfile_backlink.
10818 (put_objfile_before): New declaration.
10819 * symfile.c: #include "filenames.h".
10820 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10821 debug info in a separate file, read that, too. Save the addrs
10822 argument, so we can use it again to read the separated debug info;
10823 syms_from_objfile modifies the table we pass it.
10824 (reread_symbols): After re-reading an objfile, call
10825 reread_separate_symbols to refresh its separate debug info
10826 objfile, if it has one.
10827 (reread_separate_symbols, find_separate_debug_file,
10828 get_debug_link_info, separate_debug_file_exists): New functions.
10829 (debug_file_directory): New global var.
10830 (_initialize_symfile): Initialize debug_file_directory, and
10831 provide the new `set debug-file-directory' command to let the user
10833 * objfiles.c (free_objfile): If this objfile has its debug info in
10834 a separate objfile, free that one too. If this is itself a
10835 separate debug info objfile, clear our parent's backlink.
10836 (put_objfile_before): New function.
10837 * utils.c (gnu_debuglink_crc32): New function.
10838 * defs.h (gnu_debuglink_crc32): New declaration.
10839 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10840 * configure.in: Handle --with-separate-debug-dir config option.
10841 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10842 * acconfig.h (DEBUGDIR): New macro.
10843 * configure, aclocal.m4, config.in: Regenerated.
10845 2003-01-22 Jim Blandy <jimb@redhat.com>
10847 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10848 like the old symbol_file_add, but taking new arguments: you can
10849 now pass in either a `struct section_addr_info' list to say where
10850 each section is loaded, or a `struct section_offsets' table. Pass
10851 these new arguments through to syms_from_objfile as appropriate.
10852 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10853 with the appropriate quiescent values for the new arguments.
10855 * symfile.c: #include "gdb_assert.h".
10856 (syms_from_objfile): Add the ability to pass in a section offset
10857 table directly, as an alternative to the section_addr_info table.
10858 Document arguments better.
10859 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10860 * symfile.h (syms_from_objfile): Update declaration.
10861 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10863 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10865 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10867 Original patch by Tom Tromey <tromey@cygnus.com> and
10868 Jason Molenda <jmolenda@apple.com>.
10869 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10870 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10871 * NEWS: Mention profiling.
10872 * configure.in (--enable-gdbtk): Fix typo.
10873 (--enable-profiling): New. Set PROFILE_CFLAGS.
10874 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10876 (profiling_state): New variable.
10877 (mcleanup_wrapper): New function.
10878 (_initialize_maint): Remove NOTYET, fix call to
10879 add_setshow_boolean_cmd for "maint set profile".
10880 * configure: Regenerated.
10882 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10884 * Makefile.in (install-gdbtk): Install PNG images too.
10886 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10888 * exec.c (text_start): Delete global variable.
10889 (exec_file_attach): Make text_start local to the function.
10890 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10891 * valops.c (hand_function_call): Delete code that handles
10892 BEFORE_TEXT_END and AFTER_TEXT_END.
10893 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10894 of CALL_DUMMY_LOCATION.
10895 * gdbarch.c: Regenerate.
10896 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10897 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10898 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10899 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10900 (text_end): Delete extern declaration.
10902 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10904 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10905 * blockframe.c (backtrace_below_main): Move to "frame.c".
10906 (frame_chain_valid): Delete check for backtrace_below_main.
10907 (_initialize_blockframe): Delete initialization, move ``set
10908 backtrace-below-main'' command to "frame.c".
10909 (do_flush_frames_sfunc): Delete function.
10910 * frame.c: Include "command.h" and "gdbcmd.h".
10911 (frame_type_from_pc): New function.
10912 (create_new_frame): Use frame_type_from_pc.
10913 (legacy_get_prev_frame): New function.
10914 (get_prev_frame): Rewrite. When an old style frame, call
10915 legacy_get_prev_frame. Otherwize, unwind the PC first.
10916 (_initialize_frame): Add ``set backtrace-below-main'' command.
10917 * Makefile.in (frame.o): Update dependencies.
10919 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10921 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10922 DEPRECATED_REGISTERS_INFO.
10924 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10926 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10927 Maintainers'. Update `Various Maintainers'.
10929 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10931 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10932 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10933 Suppress actual parameters when `-'.
10934 * gdbarch.h, gdbarch.c: Regenerate.
10936 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10938 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10939 code handling dummy frames.
10941 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10943 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10944 (struct frame_unwind): Add field pop.
10945 * frame.h (frame_pop): Declare.
10946 * frame.c (frame_saved_regs_pop): New function.
10947 (trad_frame_unwinder): Add frame_saved_regs_pop.
10948 (frame_pop): New function.
10949 * dummy-frame.c (dummy_frame_pop): New function.
10950 (discard_innermost_dummy): New function.
10951 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10952 (dummy_frame_unwind): Add dummy_frame_pop.
10953 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10954 * valops.c (hand_function_call): Ditto.
10955 * stack.c (return_command): Ditto.
10957 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10959 * cris-tdep.c: Fix function declaration indentation.
10960 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10961 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10962 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10963 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10964 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10965 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10967 2003-01-18 Michael Chastain <mec@shout.net>
10969 * README (Unpacking and Installation -- quick overview):
10970 Warn against ".../gdb-5.3/gdb/configure".
10972 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10974 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10975 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10976 (struct frame_unwind): Declare opaque.
10977 (dummy_frame_p): Declare function.
10978 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10979 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10980 * dummy-frame.c: Include "frame-unwind.h".
10981 (dummy_frame_p): New function.
10982 (dummy_frame_unwind): New variable.
10983 * frame.c: Include "frame-unwind.h".
10984 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10985 to use the new unwind field.
10986 (set_unwind_by_pc): Delete function.
10987 (create_new_frame, get_prev_frame): Set unwind field using
10988 frame_unwind_find_by_pc.
10989 (trad_frame_unwind, trad_frame_unwinder): New variables.
10990 * frame.h (trad_frame_unwind): Declare variable.
10991 (frame_id_unwind_ftype): Delete declaration.
10992 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10993 (struct frame_unwind): Declare opaque.
10994 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10995 register_unwind with a single unwind pointer.
10996 * frame-unwind.h, frame-unwind.c: New files.
10997 * Makefile.in (SFILES): Add frame-unwind.c.
10998 (frame_unwind_h): Define.
10999 (COMMON_OBS): Add frame-unwind.o.
11000 (frame-unwind.o): Specify dependencies.
11001 (frame.o, dummy-frame.o): Update dependencies.
11003 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11005 * ada-valprint.c: Eliminate PTR.
11006 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11007 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11008 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11009 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11010 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11011 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11012 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11014 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11016 * main.c (captured_main): Don't use PTR.
11017 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11018 * gdbtypes.c (lookup_primitive_typename): Ditto.
11019 (lookup_struct_elt_type): Ditto.
11020 * f-valprint.c (info_common_command): Ditto.
11021 (list_all_visible_commons): Ditto.
11022 * jv-typeprint.c (java_type_print_base): Ditto.
11024 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11025 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11026 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11027 i386-interix-nat.c and i386-interix-tdep.c. Rename
11028 m68klinux-nat.c and m68klinux-tdep.c. Rename
11029 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11030 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11031 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11032 * main.c (captured_main): Use xfree, not free.
11034 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11036 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11037 ID back using a parameter.
11038 * frame.c (frame_id_unwind): Update call.
11039 (frame_saved_regs_id_unwind): Update.
11040 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11041 * dummy-frame.h (struct frame_id): Add opaque declaration.
11042 (dummy_frame_id_unwind): Update declaration.
11044 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11046 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11048 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11050 * MAINTAINERS (Stephen P. Smith): Updated email address.
11052 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11055 * breakpoint.c (until_break_command): Add new argument. Use it to
11056 decide whether to stop only at the current frame or not.
11057 * breakpoint.h (until_break_command): Update prototype.
11058 * infcmd.c (until_command): Add new argument to until_break_command
11060 (advance_command): New function.
11061 (_initialize_infcmd): Update help string for 'until' command.
11062 Add new 'advance' command.
11064 2003-01-14 David Carlton <carlton@math.stanford.edu>
11066 * linespec.c (decode_line_1): Normalize comments.
11067 (set_flags): Ditto.
11068 (locate_first_half): Ditto.
11069 (decode_compound): Ditto.
11070 (symtab_from_filename): Ditto.
11071 (decode_all_digits): Ditto.
11072 (decode_dollar): Ditto.
11073 (find_methods): Ditto.
11074 (find_toplevel_char): Ditto.
11076 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11078 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11079 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11080 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11081 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11082 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11083 * language.c, language.h, m32r-tdep.c: Update copyright.
11084 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11085 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11086 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11087 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11088 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11089 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11091 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11093 * stabsread.h (process_later, resolve_cfront_continuation):
11095 Update copyright years.
11096 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11097 Update copyright year.
11098 * dbxread.c(struct cont_elem): Obsolete.
11099 (process_later, process_now): Obsolete functions.
11100 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11101 Update copyright year.
11102 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11103 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11104 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11105 (parse_partial_symbols): Obsolete cfront support.
11107 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11109 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11110 read_cfront_baseclasses, read_cfront_member_functions,
11111 resolve_cfront_continuation,read_cfront_static_fields,
11112 copy_cfront_struct_fields): Obsolete functions.
11113 (define_symbol, read_one_struct_field): Obsolete cfront support.
11114 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11115 Update Copyright year.
11117 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11119 * stack.c (print_frame_info, print_stack_frame_base_stub,
11120 print_stack_frame_base, show_and_print_stack_frame_stub,
11121 show_and_print_stack_frame, print_only_stack_frame_stub,
11122 print_only_stack_frame): Delete functions.
11123 (print_stack_frame_stub): Call print_frame_info instead of
11124 print_frame_info_base.
11125 (print_frame_info_base): Rename to print_frame_info.
11126 (backtrace_command_1): Call print_frame_info, instead of
11127 print_frame_info_base.
11128 (current_frame_command): Call print_stack_frame, instead of
11129 print_only_stack_frame.
11130 (frame_command): Call print_stack_frame, instead of
11131 show_and_print_stack_frame.
11132 (up_command): Ditto.
11133 (down_command): Ditto.
11134 * frame.h (print_only_stack_frame): Delete prototype.
11135 * infrun.c (normal_stop): Call print_stack_frame, instead of
11136 show_and_print_stack_frame.
11137 * thread.c (info_threads_command): Call print_stack_frame, instead
11138 of print_only_stack_frame.
11140 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11142 * README (Graphical interface to GDB): Update URL. Point at
11145 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11148 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11150 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11153 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11155 * thread-db.c (attach_thread): Prototype.
11156 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11157 thread information (ti), and valid flags (th_valid, ti_valid).
11158 (attach_thread): Move target_pid_to_str call to after the thread
11159 is added to GDB's list. Initialize the cache.
11160 (thread_get_info_callback, thread_db_map_id2thr)
11161 (thread_db_get_info): New functions.
11162 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11163 (thread_db_store_registers, thread_db_thread_alive)
11164 (thread_db_get_thread_local_address): Use them.
11165 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11166 of calling error() for threads in unknown state.
11168 (clear_lwpid_callback): New function.
11169 (thread_db_resume): Use it to clear the cache.
11171 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11173 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11174 (resume_callback): Remove dead code.
11176 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11178 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11180 * gdbarch.h, gdbarch.c: Regenerate.
11181 * stack.c (frame_info): Only initialize the saved registers when
11182 FRAME_INIT_SAVED_REGS_P.
11183 * frame.c (frame_saved_regs_register_unwind): Assert
11184 FRAME_INIT_SAVED_REGS_P.
11185 (deprecated_generic_get_saved_register): Ditto.
11187 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11189 * source.c (openp): Squelch warning about "filename".
11191 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11193 * source.c (openp): If the file does not exist don't necessarily
11196 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11199 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11200 (integer_types_same_name_p): New function.
11201 (rank_one_type): Use it.
11202 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11204 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11206 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11208 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11209 * configure.in: Add --with-sysroot.
11210 * configure: Regenerated.
11211 * main.c (gdb_sysroot): New variable.
11212 (captured_main): Initialize gdb_sysroot.
11213 * defs.h (gdb_sysroot): New extern declaration.
11214 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11216 2003-01-12 Michael Chastain <mec@shout.net>
11218 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11220 2003-01-12 Michael Chastain <mec@shout.net>
11222 * top.c (print_gdb_version): Bump copyright year to 2003.
11224 2003-01-12 David Carlton <carlton@bactrian.org>
11226 * linespec.c (symtab_from_filename): Rename variable 's' to
11229 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11231 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11233 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11235 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11237 * d10v-tdep.c: Include "gdb_assert.h".
11238 (d10v_store_return_value): Rewrite to match current interface.
11239 (d10v_extract_struct_value_address): Ditto.
11240 (d10v_extract_return_value): Ditto.
11241 (d10v_gdbarch_init): Set store_restore_value,
11242 extract_struct_value_address and extract_return_value.
11244 2003-01-12 J. Brobecker <brobecker@gnat.com>
11246 * hpread.c (set_namestring): New procedure replacing the
11247 SET_NAMESTRING macro.
11248 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11249 by calls to set_namestring.
11251 2003-01-11 J. Brobecker <brobecker@gnat.com>
11253 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11254 a compilation warning.
11255 (hpread_process_one_debug_symbol): Likewise.
11257 2003-01-10 David Carlton <carlton@math.stanford.edu>
11259 * linespec.c (decode_line_1): Rename variable 's' to
11261 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11262 (decode_dollar): Ditto.
11263 (decode_variable): Ditto.
11264 (symbol_found): Ditto.
11266 2003-01-09 Michael Chastain <mec@shout.net>
11268 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11270 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11272 * win32-nat.c (set_process_privilege): New function.
11273 (child_attach): Call set_process_privilege() to enable the
11274 SE_DEBUG_NAME user privilege if available in process token.
11276 2003-01-10 J. Brobecker <brobecker@gnat.com>
11278 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11279 compilation error in the previous revision.
11281 2003-01-09 David Carlton <carlton@math.stanford.edu>
11283 * linespec.c: Update copyright.
11285 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11287 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11288 than inferior_ptid.
11289 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11291 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11293 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11295 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11296 (frame_saved_regs_zalloc): Update.
11297 (frame_saved_regs_register_unwind): Update.
11298 (create_new_frame): Update.
11299 (get_prev_frame): Update.
11300 (frame_extra_info_zalloc): Update.
11301 (deprecated_get_frame_saved_regs): Update.
11302 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11303 * cris-tdep.c: Update comment.
11305 * somsolib.h: Fix function indentation.
11306 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11307 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11308 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11309 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11310 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11312 * infrun.c (follow_fork): Use ISO C definition.
11313 * expprint.c (print_subexp): Use xfree instead of free.
11314 * charset.c: Include "gdb_string.h" instead of <string.h>.
11315 (register_iconv_charsets): Use ISO C definition.
11316 (host_charset, target_charset): Ditto.
11317 * Makefile.in (charset.o): Update dependencies.
11318 (mi-cmd-env.o): Update dependencies.
11320 2003-01-08 Andrew Cagney <cagney@redhat.com>
11322 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11325 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11327 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11328 build directories. Save edited gdb output in Mbuild.log. If a
11329 build fails, remove any final GDB executable.
11331 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11333 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11334 replacing hex constants with function names and stripping leading
11335 file name directory prefixes.
11337 2003-01-08 Andrew Cagney <cagney@redhat.com>
11339 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11342 2003-01-08 David Carlton <carlton@math.stanford.edu>
11344 * linespec.c (decode_line_1): Move code into decode_variable.
11345 (decode_variable): New function.
11347 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11349 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11351 2003-01-08 Andrew Cagney <cagney@redhat.com>
11353 * cris-tdep.c (cris_frame_init_saved_regs): Use
11354 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11356 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11357 (sh64_nofp_frame_init_saved_regs): Ditto.
11358 (sh_fp_frame_init_saved_regs): Ditto.
11359 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11360 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11361 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11362 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11364 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11366 * minsyms.c (lookup_minimal_symbol): Update comment.
11367 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11368 (lookup_minimal_symbol_solib_trampoline): Likewise.
11370 2003-01-08 Andrew Cagney <cagney@redhat.com>
11372 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11373 frame_relative_level.
11375 * alpha-tdep.c: Use get_frame_extra_info.
11376 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11377 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11378 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11379 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11381 * alpha-tdep.c: Use get_next_frame.
11382 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11383 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11384 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11385 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11386 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11387 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11388 * xstormy16-tdep.c: Ditto.
11390 2003-01-07 Andrew Cagney <cagney@redhat.com>
11392 * alpha-tdep.c: Use get_frame_base.
11393 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11394 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11395 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11396 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11397 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11398 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11399 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11400 * config/sparc/tm-sparc.h: Ditto.
11402 2003-01-07 Andrew Cagney <cagney@redhat.com>
11404 * frame.c (deprecated_get_frame_context): New function.
11405 (deprecated_set_frame_context): New function.
11406 * frame.h (deprecated_get_frame_context): Declare.
11407 (deprecated_set_frame_context): Declare.
11408 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11409 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11411 2003-01-07 Andrew Cagney <cagney@redhat.com>
11413 * frame.c (deprecated_set_frame_next_hack): New function.
11414 (deprecated_set_frame_prev_hack): New function.
11415 * frame.h (deprecated_set_frame_next_hack): Declare.
11416 (deprecated_set_frame_prev_hack): Declare.
11417 * mcore-tdep.c (analyze_dummy_frame): Use
11418 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11419 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11421 2003-01-07 David Carlton <carlton@math.stanford.edu>
11423 * linespec.c (decode_line_1): Move code into decode_dollar.
11424 (decode_dollar): New function.
11426 2003-01-07 Andrew Cagney <cagney@redhat.com>
11428 * arm-tdep.c (arm_init_extra_frame_info): Use
11429 deprecated_update_frame_base_hack.
11430 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11431 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11432 (fix_frame_pointer): Ditto.
11433 (mn10300_analyze_prologue): Ditto.
11435 2003-01-07 Andrew Cagney <cagney@redhat.com>
11437 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11438 extra_info using frame_extra_info_zalloc.
11439 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11440 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11441 (sh64_init_extra_frame_info): Ditto.
11442 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11443 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11444 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11445 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11446 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11447 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11448 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11449 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11450 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11451 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11452 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11453 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11455 * mn10300-tdep.c (analyze_dummy_frame): Use
11456 deprecated_set_frame_extra_info_hack.
11457 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11459 2003-01-07 J. Brobecker <brobecker@gnat.com>
11461 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11462 class is not scText. These do not define "real" procedures.
11463 (parse_partial_symbols): Likewise.
11465 2003-01-06 Michael Snyder <msnyder@redhat.com>
11467 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11469 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11471 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11472 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11473 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11474 deprecated_frame_xmalloc_with_cleanup.
11475 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11476 deprecated_frame_xmalloc.
11477 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11478 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11480 2003-01-06 Andrew Cagney <cagney@redhat.com>
11482 * x86-64-linux-tdep.c: Include "osabi.h".
11483 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11485 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11487 2003-01-06 Andrew Cagney <cagney@redhat.com>
11489 * MAINTAINERS (Target Instruction Set Architectures): Update
11490 arm-elf. Can be built with -Werror, has been multiarched.
11492 * value.h (unpack_long): Make buffer parameter constant.
11493 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11494 * scm-lang.h (scm_parse): Ditto.
11495 * defs.h (extract_typed_address, extract_address): Ditto.
11496 (extract_long_unsigned_integer): Ditto.
11497 * inferior.h (unsigned_pointer_to_address): Ditto.
11498 (signed_pointer_to_address): Ditto.
11499 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11500 * gdbarch.h, gdbarch.c: Regenerate.
11501 * findvar.c (extract_long_unsigned_integer): Update.
11502 (extract_address): Update.
11503 (extract_typed_address): Update.
11504 (unsigned_pointer_to_address): Update.
11505 * values.c (unpack_long): Update.
11506 (unpack_double): Update.
11507 (unpack_pointer): Update.
11508 (unpack_field_as_long): Update.
11509 * d10v-tdep.c (d10v_pointer_to_address): Update.
11510 * avr-tdep.c (avr_pointer_to_address): Update.
11511 * scm-lang.c (scm_unpack): Update.
11512 * findvar.c (signed_pointer_to_address): Update.
11514 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11516 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11517 since it is in i386-tdep.c.
11519 2003-01-06 J. Brobecker <brobecker@gnat.com>
11521 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11522 failure introduced in the previous change.
11524 2003-01-05 Michael Chastain <mec@shout.net>
11526 * README: Remove references to deleted remote-*.c files:
11527 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11528 remote-nrom.c, remote-os9k.c, remote-udi.c.
11530 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11532 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11533 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11534 i386_get_longjmp_target.
11536 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11538 * arm-tdep.c (prologue_cache): Change to a pointer.
11539 (_initialize_arm_tdep): Allocate prologue_cache.
11540 (check_prologue_cache): Update.
11541 (save_prologue_cache): Update.
11542 (arm_gdbarch_init): Update.
11544 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11546 * stabsread.c (update_method_name_from_physname): Call complaint()
11549 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11551 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11552 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11553 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11555 * blockframe.c: Include "gdbcmd.h" and "command.h".
11556 (backtrace_below_main): New variable.
11557 (file_frame_chain_valid, func_frame_chain_valid)
11558 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11559 (generic_func_frame_chain_valid): Remove functions.
11560 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11561 (_initialize_blockframe): New function.
11562 * Makefile.in (blockframe.o): Update dependencies.
11563 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11564 comment. Call frame_chain_valid ().
11565 * frame.h: Remove old prototypes. Add prototype for
11566 frame_chain_valid and update comments to match.
11567 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11568 Remove old comment.
11569 * gdbarch.h: Regenerated.
11570 * gdbarch.c: Regenerated.
11572 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11573 set_gdbarch_frame_chain_valid.
11574 * avr-tdep.c (avr_gdbarch_init): Likewise.
11575 * cris-tdep.c (cris_gdbarch_init): Likewise.
11576 * frv-tdep.c (frv_gdbarch_init): Likewise.
11577 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11578 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11579 (i386_nw_init_abi): Likewise.
11580 (i386_gdbarch_init): Likewise.
11581 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11582 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11583 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11584 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11585 * mips-tdep.c (mips_gdbarch_init): Likewise.
11586 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11587 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11588 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11589 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11590 * s390-tdep.c (s390_gdbarch_init): Likewise.
11591 * sh-tdep.c (sh_gdbarch_init): Likewise.
11592 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11593 * v850-tdep.c (v850_gdbarch_init): Likewise.
11594 * vax-tdep.c (vax_gdbarch_init): Likewise.
11595 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11597 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11598 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11599 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11600 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11601 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11602 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11603 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11604 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11606 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11608 * Makefile.in (acconfig_h): Remove incorrect macro.
11609 (config_h): Define.
11610 (osabi.o): Update dependencies.
11611 * configure.tgt: Set gdb_osabi based on target triplet.
11612 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11613 * configure: Regenerated.
11614 * config.in: Regenerated.
11615 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11616 (GDB_OSABI_DEFAULT): Define if not already defined.
11617 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11618 (set_osabi_string): New variables.
11619 (gdbarch_register_osabi): Add new OS ABI to
11620 gdb_osabi_available_names.
11621 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11622 (set_osabi, show_osabi): New functions.
11623 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11625 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11627 * arch-utils.c (gdbarch_info_init): Set osabi to
11628 GDB_OSABI_UNINITIALIZED.
11629 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11630 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11631 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11632 * gdbarch.c: Regenerated.
11633 * gdbarch.h: Regenerated.
11634 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11636 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11637 * osabi.h (enum gdb_osabi): Move to defs.h.
11638 (gdbarch_init_osabi): Update prototype.
11639 * defs.h (enum gdb_osabi): Moved here.
11640 * Makefile.in: Update dependencies.
11642 * alpha-tdep.h: Don't include "osabi.h".
11643 (struct gdbarch_tdep): Remove osabi member.
11644 * alpha-tdep.c: Include "osabi.h".
11645 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11646 iterate over arches. Update call to gdbarch_init_osabi.
11647 (alpha_dump_tdep): Don't dump osabi.
11648 * alpha-linux-tdep.c: Include "osabi.h".
11649 * alpha-osf1-tdep.c: Include "osabi.h".
11650 * alphafbsd-tdep.c: Include "osabi.h".
11651 * alphanbsd-tdep.c: Include "osabi.h".
11653 * arm-tdep.h: Don't include "osabi.h".
11654 (struct gdbarch_tdep): Remove osabi member.
11655 * arm-tdep.c: Include "osabi.h".
11656 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11657 iterate over arches. Update call to gdbarch_init_osabi.
11658 (arm_dump_tdep): Don't dump osabi.
11659 * arm-linux-tdep.c: Include "osabi.h".
11660 * armnbsd-tdep.c: Include "osabi.h".
11662 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11663 Update call to gdbarch_init_osabi.
11665 * i386-tdep.h: Don't include "osabi.h".
11666 (struct gdbarch_tdep): Remove osabi member.
11667 * i386-tdep.c: Include "osabi.h".
11668 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11669 iterate over arches. Update call to gdbarch_init_osabi.
11670 (i386_dump_tdep): Don't dump osabi.
11671 * i386-linux-tdep.c: Include "osabi.h".
11672 * i386-sol2-tdep.c: Include "osabi.h".
11673 * i386bsd-tdep.c: Include "osabi.h".
11674 * i386gnu-tdep.c: Include "osabi.h".
11675 * i386ly-tdep.c: Include "osabi.h".
11676 * i386nbsd-tdep.c: Include "osabi.h".
11677 * i386obsd-tdep.c: Include "osabi.h".
11679 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11680 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11681 check osabi when iterating over arches. Update call to
11682 gdbarch_init_osabi.
11683 (mips_dump_tdep): Don't dump osabi.
11685 * ns32k-tdep.h: Don't include "osabi.h".
11686 (struct gdbarch_tdep): Remove.
11687 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11688 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11689 allocate tdep. Update call to gdbarch_init_osabi.
11690 (ns32k_dump_tdep): Remove.
11691 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11692 * ns32knbsd-tdep.c: Include "osabi.h".
11694 * ppc-tdep.h: Don't include "osabi.h".
11695 (struct gdbarch_tdep): Remove osabi member.
11696 * rs6000-tdep.c: Include "osabi.h".
11697 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11698 osabi when iterating over arches. Update call to
11699 gdbarch_init_osabi.
11700 (rs6000_dump_tdep): Don't dump osabi.
11701 * ppc-linux-tdep.c: Include "osabi.h".
11702 * ppcnbsd-tdep.c: Include "osabi.h".
11704 * sh-tdep.h: Don't include "osabi.h".
11705 (struct gdbarch_tdep): Remove osabi member.
11706 * sh-tdep.c: Include "osabi.h".
11707 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11708 iterate over arches. Update call to gdbarch_init_osabi.
11709 (sh_dump_tdep): Don't dump osabi.
11710 * shnbsd-tdep.c: Include "osabi.h".
11712 * sparc-tdep.c: Include "osabi.h".
11713 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11714 iterate over arches. Update call to gdbarch_init_osabi.
11715 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11718 * vax-tdep.h: Don't include "osabi.h".
11719 (struct gdbarch_tdep): Remove.
11720 * vax-tdep.c: Include "osabi.h".
11721 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11722 iterate over arches. Don't allocate tdep. Update call
11723 to gdbarch_init_osabi.
11724 (vax_dump_tdep): Remove.
11725 (_initialize_vax_tdep): Update call to gdbarch_register.
11727 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11729 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11731 (breakpoint_re_set_one): Don't fetch the value for a disabled
11734 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11736 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11737 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11738 (COERCE_FLOAT_TO_DOUBLE): Remove.
11739 * gdbarch.c: Regenerate.
11740 * gdbarch.h: Regenerate.
11741 * Makefile.in: Remove value_h from gdbarch_h.
11742 * valops.c (coerce_float_to_double): New variable.
11743 (default_coerce_float_to_double): Remove.
11744 (standard_coerce_float_to_double): Remove.
11745 (value_arg_coerce): Use coerce_float_to_double.
11746 (_initialize_valops): Add "set coerce-float-to-double".
11747 * value.h (default_coerce_float_to_double): Remove prototype.
11748 (standard_coerce_float_to_double): Remove prototype.
11750 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11752 * mdebugread.c (parse_symbol): Likewise.
11753 * stabsread.c (define_symbol): Mark all functions as prototyped.
11755 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11756 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11757 set_gdbarch_coerce_float_to_double.
11758 * arm-tdep.c (arm_gdbarch_init): Likewise.
11759 * frv-tdep.c (frv_gdbarch_init): Likewise.
11760 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11761 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11762 * mips-tdep.c (mips_gdbarch_init): Likewise.
11763 (mips_coerce_float_to_double): Remove.
11764 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11765 (rs6000_coerce_float_to_double): Remove.
11766 * s390-tdep.c (s390_gdbarch_init): Likewise.
11767 * sh-tdep.c (sh_gdbarch_init): Likewise.
11768 (sh_coerce_float_to_double): Remove.
11769 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11770 (sparc_coerce_float_to_double): Remove.
11771 * v850-tdep.c (v850_gdbarch_init): Likewise.
11772 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11773 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11774 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11775 (hppa_coerce_float_to_double): Remove prototype.
11776 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11778 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11780 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11782 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11784 Suggested by Stewart Brown <sb24@avaya.com>:
11785 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11786 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11787 (c_type_print_varspec_suffix): Likewise.
11789 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11791 * configure.in: Don't set and AC_SUBST SUBDIRS.
11792 * configure: Regenerated.
11794 * configure.in: Remove code dealing with shared libraries.
11795 * Makefile.in: Remove HLDFLAGS and HLDENV.
11796 * configure: Regenerated.
11798 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11800 * frame.c (deprecated_frame_xmalloc): New function.
11801 (deprecated_set_frame_saved_regs_hack): New function.
11802 (deprecated_set_frame_extra_info_hack): New function.
11803 * frame.h (deprecated_frame_xmalloc): Declare.
11804 (deprecated_set_frame_saved_regs_hack): Declare.
11805 (deprecated_set_frame_extra_info_hack): Declare.
11807 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11809 * configure.in: Move code that provides the --enable-gdbtk option
11810 right after the code that handles the --enable-tui option, and
11811 polish it somewhat.
11812 * configure: Regenerated.
11814 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11815 AC_CHECK_FUNCS and remove the old check for pread64.
11816 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11817 * acconfig.h (_GNU_SOURCE): Add.
11818 (HAVE_PREAD64): Remove.
11819 * configure, aclocal.m4, config.in: Regenerated.
11821 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11823 * alpha-tdep.c: Use get_frame_saved_regs.
11824 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11825 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11826 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11827 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11828 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11830 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11832 * configure.in: Remove all use of the SUBDIRS variable; add
11833 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11834 code providing the --enable-multi-ice option, and move it right in
11835 front of the code that checks whether gdbserver is supported.
11837 * configure: Regenerated.
11838 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11841 2003-01-03 Andrew Cagney <cagney@redhat.com>
11843 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11844 * avr-tdep.c, cris-tdep.c: Ditto.
11845 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11846 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11848 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11850 * configure.in: Remove --enable-netrom option.
11851 * configure: Regenerated.
11853 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11855 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11856 declaration for `struct re_pattern_buffer' instead.
11857 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11859 2003-01-03 J. Brobecker <brobecker@gnat.com>
11861 * mdebugread.c (parse_symbol): Count until the stEnd matching
11862 the structure name.
11864 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11866 * configure.in: Remove --with-cpu option.
11867 subscripts. Remove evil changequotes here.
11868 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11869 * config.in, configure: Regenerated.
11871 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11872 * configure.in: Cleanup section that sources GDB and BFD configure
11873 subscripts. Remove evil changequotes here.
11874 * config.in, configure: Regenerated.
11876 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11878 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11879 frame accessor methods.
11880 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11881 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11882 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11883 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11884 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11885 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11886 * z8k-tdep.c: Ditto.
11888 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11890 * configure.in: Remove UI_OUT configuration code.
11891 * ada-lang.c: Update assuming UI_OUT is always true.
11892 * Makefile.in (UIOUT_CFLAGS): Remove.
11893 * configure: Regenerated.
11894 * TODO: Remove blurb about elimination of -DUI_OUT.
11896 * configure.in: Move code that provides the --enable-gdbcli,
11897 --enable-gdbmi options right before the code that handles the
11898 --enable-tui option. Polish a bit.
11899 * configure: Regenerated.
11901 * configure.in: Rewrite check for GNU regex and the
11902 --without-included regex option, and move it into the "Checks for
11903 library functions" section. This makes us use the system regex
11904 again by default on systems with version 2 of the GNU C library.
11905 This was apparently broken.
11906 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11907 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11908 * config.in, configure: Regenerated.
11910 * configure.in: Move code that provides the --enable-tui option
11911 before the "Checks for libraries" section. Polish the code
11912 somewhat and set need_curses to yes if we build the TUI. Rewrite
11913 code that looks for a library providing termcap functionality to
11914 match more closely what's done in the Readline library, and move
11915 it into to the "Checks for libraries" section.
11916 * configure: Regenerated.
11917 * Makefile.in (TERMCAP): Remove variable.
11918 * config/i386/go32.mh (TERMCAP): Remove variable.
11920 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11922 * MAINTAINERS: Mention gdb_mbuild.sh.
11923 * gdb_mbuild.sh: Rewrite.
11925 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11927 * configure.in: Fix typo in last change.
11928 * config.in, configure: Regenerated.
11930 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11932 * valarith.c (value_binop): Delete obsolete code and comments.
11933 * configure.host: Ditto.
11934 * buildsym.h (make_blockvector): Ditto.
11935 * buildsym.c (make_blockvector): Ditto.
11936 * defs.h (enum language): Ditto.
11937 (chill_demangle): Ditto.
11938 * elfread.c (elf_symtab_read): Ditto.
11939 * dwarfread.c (CHILL_PRODUCER): Ditto.
11940 (set_cu_language): Ditto.
11941 (handle_producer): Ditto.
11942 * expprint.c (print_subexp): Ditto.
11943 * gdbtypes.c (chill_varying_type): Ditto.
11944 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11945 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11946 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11947 (chill_varying_type): Ditto.
11948 * language.h (_LANG_chill): Ditto.
11949 * language.c (binop_result_type, integral_type): Ditto.
11950 (character_type, string_type, structured_type): Ditto.
11951 (lang_bool_type, binop_type_check): Ditto.
11952 * stabsread.h (os9k_stabs): Ditto.
11953 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11954 (define_symbol, read_type, read_struct_fields): Ditto.
11955 (read_array_type, read_enum_type, read_huge_number): Ditto.
11956 (read_range_type, start_stabs): Ditto.
11957 * symfile.c (init_filename_language_table): Ditto.
11958 (add_psymbol_with_dem_name_to_list): Ditto.
11959 * symtab.c (symbol_init_language_specific): Ditto.
11960 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11961 * symtab.h (struct general_symbol_info): Ditto.
11962 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11963 * typeprint.c (typedef_print): Ditto.
11964 * utils.c (fprintf_symbol_filtered): Ditto.
11965 * valops.c (value_cast, search_struct_field, value_slice): Delete
11967 (varying_to_slice): Delete function.
11968 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11969 (varying_to_slice): Delete declaration.
11970 * MAINTAINERS: Update.
11972 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11974 * configure.in: Reorganize "Checks for library functions section"
11975 a bit. Remove check for `btowc' and `isascii' functions.
11976 * configure: Regenerated.
11978 * acconfig.h (_MSE_INT_H): Remove.
11979 * configure.in: Create "Checks for header files" section, and move
11980 appropriate tests there. Don't check for objlist.h, wchar.h,
11981 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11982 misdetection fix. Also add "Checks for types", "Checks for
11983 compiler characteristics" and "Checks for library functions"
11985 * config.in, configure: Regenerated.
11987 * configure.in: Create "Checks for programs" section, and move
11988 appropriate tests there.
11990 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11992 * configure.in: Create "Checks for libraries" section, and move
11993 appropriate tests there. Cleanup check for wctype in libw. Use
11994 AC_SEARCH_LIBS to see whether we need libsocket.
11995 * configure: Regenerated.
11997 For older changes see ChangeLog-2002
12003 version-control: never