1 2003-09-16 Andrew Cagney <cagney@redhat.com>
3 * buildsym.c: Remove more occurances of "register".
4 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
5 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
6 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
7 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
8 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
9 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
10 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
11 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
13 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
15 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
16 numbers to enumeration values.
17 * sh-tdep.c: Accomodate above change.
18 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
19 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
20 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
21 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
22 (IS_FPUSH): Rename from IS_FMOV.
23 (sh_extract_struct_value_address): Remove useless comment.
24 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
25 instead of own local values.
26 (sh_dump_tdep): Remove.
27 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
28 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
30 2003-09-15 Andrew Cagney <cagney@redhat.com>
32 * doublest.c (convert_floatformat_to_doublest): No longer need to
33 cast "exp_bias" to an int. Reverts 2002-12-04 change.
35 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
37 * values.c (unpack_double): Call floatformat_is_valid.
39 2003-09-15 Mark Kettenis <kettenis@gnu.org>
41 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
42 ps_strings into a long.
44 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
45 _initialize_am64fbsd_nat.
47 2003-09-15 Kevin Buettner <kevinb@redhat.com>
49 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
50 associated with DW_AT_ranges attribute is out of bounds.
52 2003-09-15 David Lecomber <dsl@sources.redhat.com>
54 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
56 2003-09-14 Michael Chastain <mec@shout.net>
58 * config/m68k/nm-apollo68v.h: Delete.
59 * config/m68k/xm-apollo68v.h: Delete.
61 2003-09-14 Andrew Cagney <cagney@redhat.com>
63 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
64 * dcache.c: Update copyrights and descriptions.
65 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
67 2003-09-14 Andrew Cagney <cagney@redhat.com>
69 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
70 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
72 2003-09-14 Andrew Cagney <cagney@redhat.com>
74 * alpha-nat.c: Remove some occurances of "register".
75 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
76 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
77 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
78 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
79 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
80 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
81 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
82 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
83 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
84 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
85 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
86 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
87 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
88 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
89 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
90 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
91 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
92 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
93 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
94 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
95 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
96 * values.c, vax-tdep.c, xcoffread.c: Ditto.
98 2003-09-13 Andrew Cagney <cagney@redhat.com>
100 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
101 * ppc-tdep.h (struct regcache): Declare opaque.
102 * objfiles.h (struct objfile_data): Declare opaque.
103 * cp-support.h (struct objfile): Declare opaque.
104 * linux-nat.h (target_waitstatus): Declare opaque.
106 2003-09-14 Mark Kettenis <kettenis@gnu.org>
108 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
109 (stabs_argument_has_addr): New architecture method.
110 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
111 * arch-utils.c: Include "buildsym.h".
112 (default_stabs_argument_has_addr): New function.
113 * stabsread.c (define_symbol): Use stabs_argument_has_addr
114 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
116 * cris-tdep.c (cris_gdbarch_init): Set
117 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
118 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
119 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
120 * mips-tdep.c (mips_gdbarch_init): Likewise.
121 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
122 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
124 2003-09-13 Andrew Cagney <cagney@redhat.com>
126 * values.c (using_struct_return): Delete "function" and "funcaddr"
128 * value.h (using_struct_return): Update declaration.
129 * infcmd.c (finish_command_continuation): Update.
130 (finish_command): Update.
131 * infcall.c (call_function_by_hand): Update.
132 * eval.c (evaluate_subexp_standard): Update.
134 2003-09-13 Christopher Faylor <cgf@redhat.com>
136 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
137 SSE registers since gdb will not operate correctly without this.
138 Restore include file ordering munged in previous change.
139 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
141 2003-09-13 Mark Kettenis <kettenis@gnu.org>
143 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
145 * gdbarch.c, gdbarch.h: Updated.
146 * infcall.c (call_function_by_hand): Update.
147 * stabsread.c (define_symbol): Updated.
149 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
151 2003-09-12 Christopher Faylor <cgf@redhat.com>
153 * win32-nat.c: Reorganize so that defines used by target headers are
154 actually defined by the system headers.
155 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
156 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
158 2003-09-12 Jim Blandy <jimb@redhat.com>
160 * dbxread.c (read_dbx_symtab): Don't report an internal error if
161 the file has no .data, .bss, or .rodata sections. Instead wait
162 until we see a variable alleged to live in one of those sections.
164 * dbxread.c (read_dbx_symtab): If we have no .data section and no
165 .bss section, presume that any variables we find live in the
168 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
169 offsets for global and static variables.
171 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
172 symbol types are, by definition, in the .data section, so it is
173 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
174 If there is no .data section, there should be no N_DATA or N_DATA
177 2003-09-12 Mark Kettenis <kettenis@gnu.org>
179 * amd64fbsd-tdep.c: Fix sigtramp recognition.
180 (amd64fbsd_sigcontext_addr): Rewrite.
181 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
183 (amd64fbsd_sc_reg_offset): Initialize with correct values.
184 (amd64fbsd_init_abi): Fix typo.
186 2003-09-12 Andrew Cagney <cagney@redhat.com>
188 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
189 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
191 2003-09-12 Andrew Cagney <cagney@redhat.com>
193 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
194 "entry_file_highpc". Update comments.
195 * defs.h (deprecated_inside_entry_file): Rename
197 * blockframe.c (deprecated_inside_entry_file): Rename
199 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
200 * vax-tdep.c (vax_frame_chain): Update.
201 * sh64-tdep.c (sh64_frame_chain): Update.
202 * sh-tdep.c (sh_frame_chain): Update.
203 * rs6000-tdep.c (rs6000_frame_chain): Update.
204 * ns32k-tdep.c (ns32k_frame_chain): Update.
205 * mips-tdep.c (mips_frame_chain): Update.
206 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
207 * m32r-tdep.c (m32r_frame_this_id): Update.
208 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
209 * frv-tdep.c (frv_frame_this_id): Update.
210 * d10v-tdep.c (d10v_frame_this_id): Update.
211 * cris-tdep.c (cris_frame_chain): Update.
212 * blockframe.c (legacy_frame_chain_valid): Update.
213 * avr-tdep.c (avr_frame_this_id): Update.
214 * arm-tdep.c (arm_prologue_this_id): Update.
215 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
216 * objfiles.c (objfile_relocate): Update.
217 * mipsread.c (mipscoff_symfile_read): Update.
218 (mipscoff_symfile_read): Update.
219 * mdebugread.c (parse_partial_symbols): Update.
220 * dwarfread.c (read_file_scope): Update.
221 * dwarf2read.c (read_file_scope): Update.
222 * dbxread.c (read_dbx_symtab): Update.
223 (read_dbx_symtab): Update.
224 * coffread.c (complete_symtab): Update.
226 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
228 * top.c (quit_target): New static helper function.
229 (quit_force): Moved code to quit_target(). Call quit_target()
230 via catch_errors() to catch errors during quit.
232 2003-09-11 David Carlton <carlton@kealia.com>
234 * buildsym.c (finish_block): Use allocate_block to allocate the
236 * mdebugread.c (new_block): Add FIXME.
238 2003-09-11 David Carlton <carlton@kealia.com>
240 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
241 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
242 (recursive_dump_type): Ditto.
243 * printcmd.c (print_formatted): Ditto.
244 * typeprint.c (print_type_scalar): Ditto.
245 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
246 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
247 * cp-support.h: Declare cp_check_possible_namespace_symbols,
248 maint_cplus_cmd_list.
249 * cp-support.c: Make maint_cplus_cmd_list extern.
250 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
252 (lookup_symbol_file): Look in possible namespace blocks when
254 (initialize_namespace_symtab): New.
255 (get_possible_namespace_block, free_namespace_block)
256 (check_possible_namespace_symbols)
257 (check_possible_namespace_symbols_loop)
258 (check_one_possible_namespace_symbol)
259 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
260 (_initialize_cp_namespace): Ditto.
261 * block.h: Declare allocate_block.
262 * block.c (allocate_block): New.
263 * jv-lang.c (get_java_class_symtab): Allocate blocks via
265 * symfile.h: Update declaration of add_psymbol_to_list.
266 * symfile.c (add_psymbol_to_list): Return the partial symbol in
268 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
269 scan_partial_symbols_call.
270 (scan_partial_symbols): Add NAMESPACE argument; update calls to
272 (add_partial_symbol): If necessary, scan mangled names for names
274 (add_partial_namespace): Add NAMESPACE argument; generate partial
275 symbols associated to namespaces.
276 (add_partial_enumeration): Add NAMESPACE argument.
277 (new_symbol): Allow namespace syms.
278 (read_namespace): Generate namespace syms.
279 * objfiles.h: Add opaque declaration of struct symtab.
280 (struct objfile): Add cp_namespace_symtab member.
281 * objfiles.c (allocate_objfile): Set
282 objfile->cp_namespace_symtab.
283 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
284 dictionary_h, command_h.
286 2003-09-11 Andrew Cagney <cagney@redhat.com>
288 * rs6000-tdep.c (rs6000_push_dummy_call): Use
289 regcache_raw_write_signed to set SP_REGNUM, move the operation to
290 near the function's end.
291 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
292 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
293 regcache_raw_write_signed to set SP_REGNUM.
295 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
297 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
298 orig_addrs is set up properly.
300 2003-09-11 Andrew Cagney <cagney@redhat.com>
302 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
303 * gdbarch.h, gdbarch.c: Re-generate.
304 * infcall.c (call_function_by_hand): Update.
305 * hppa-tdep.c (hppa_push_arguments): Update.
306 * ada-lang.c (place_on_stack): Update.
307 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
308 * sparc-tdep.c (sparc_gdbarch_init): Update.
309 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
310 * hppa-tdep.c (hppa_gdbarch_init): Update.
311 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
314 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
316 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
317 register do need a frame.
319 2003-09-11 Andrew Cagney <cagney@redhat.com>
321 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
322 buildable since GDB 5.0.
323 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
324 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
325 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
326 * irix4-nat.c: Delete file.
327 * config/mips/irix4.mh: Delete file.
328 * config/mips/irix3.mh: Delete file.
329 * config/mips/irix3.mt: Delete file.
330 * config/mips/tm-irix3.h: Delete file.
331 * config/mips/nm-irix3.h: Delete file.
332 * config/mips/xm-irix3.h: Delete file.
333 * config/mips/nm-irix4.h: Delete file.
334 * config/mips/xm-irix4.h: Delete file.
335 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
337 2003-09-10 J. Brobecker <brobecker@gnat.com>
339 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
340 * Makefile.in (hppa-tdep.o): Update dependencies.
342 2003-09-10 James E Wilson <wilson@specifixinc.com>
344 * MAINTAINERS: Change my e-mail address. Move to paper trail
347 2003-09-10 Kevin Buettner <kevinb@redhat.com>
349 * MAINTAINERS (frv): New ISA entry.
351 2003-09-10 Kevin Buettner <kevinb@redhat.com>
353 * frv-tdep.c (dis-asm.h): Include.
354 * Makefile.in (frv-tdep.o): Update dependencies.
356 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
358 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
359 Fix typo for high range of floating registers.
361 2003-09-09 David Carlton <carlton@kealia.com>
363 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
364 highpc initialization here out of scan_partial_symbols.
365 (scan_partial_symbols): Restructure into a recursive version,
366 calling add_partial_namespace and add_partial_enumeration when
368 (add_partial_namespace): New.
369 (add_partial_enumeration, locate_pdi_sibling): Ditto.
371 2003-09-09 Andrew Cagney <cagney@redhat.com>
373 * rs6000-tdep.c (ppc_push_return_address): Delete function.
374 (rs6000_push_dummy_call): Set LR to BP_ADDR.
375 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
376 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
378 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
379 (rs6000_push_dummy_call): Set the "TOC" register.
381 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
382 methods "max_register_raw_size", "max_register_virtual_size" or
383 "register_virtual_size".
385 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
387 * MAINTAINERS: Update my e-mail address.
389 2003-09-09 Andrew Cagney <cagney@redhat.com>
391 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
392 (rs6000_push_dummy_call): Store the struct return address.
393 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
395 2003-09-09 Andrew Cagney <cagney@redhat.com>
397 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
398 "ppc_sysv_abi_push_arguments".
399 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
400 "ppc_sysv_abi_push_arguments".
401 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
402 instead of "push_arguments".
403 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
405 2003-09-09 Andrew Cagney <cagney@redhat.com>
407 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
408 instead of CALL_DUMMY_ADDRESS.
410 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
412 * p-lang.c: Eliminate "register".
421 * objc-lang.c: Ditto.
423 2003-09-09 Nick Clifton <nickc@redhat.com>
425 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
427 2003-09-04 Andrew Cagney <cagney@redhat.com>
429 * avr-tdep.c: Include "dis-asm.h".
430 * cris-tdep.c: Include "dis-asm.h".
431 (cris_delayed_get_disassembler): Use "struct disassemble_info"
432 instead of corresponding typedef.
433 * h8300-tdep.c: Include "dis-asm.h".
434 * ia64-tdep.c: Include "dis-asm.h".
435 * i386-tdep.c: Include "dis-asm.h".
436 (i386_print_insn): Use "struct disassemble_info" instead of
437 corresponding typedef.
438 * m68k-tdep.c: Include "dis-asm.h".
439 * mcore-tdep.c: Include "dis-asm.h".
440 * mips-tdep.c: Include "dis-asm.h".
441 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
442 instead of corresponding typedef.
443 * ns32k-tdep.c: Include "dis-asm.h".
444 * s390-tdep.c: Include "dis-asm.h".
445 * sparc-tdep.c: Include "dis-asm.h".
446 * vax-tdep.c: Include "dis-asm.h".
447 * v850-tdep.c: Include "dis-asm.h".
448 * mn10300-tdep.c: Include "dis-asm.h".
449 * rs6000-tdep.c: Include "dis-asm.h".
450 * xstormy16-tdep.c: Include "dis-asm.h".
451 (_initialize_xstormy16_tdep): Delete "extern" declaration of
452 print_insn_xstormy16.
453 * Makefile.in (v850-tdep.o): Update dependencies.
454 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
455 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
456 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
457 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
458 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
459 (gdbarch_h): Remove $(dis_asm_h).
460 * disasm.c: Include "dis-asm.h".
461 (dis_asm_read_memory): Use "struct disassemble_info" instead of
462 corresponding typedef.
463 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
464 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
465 * gdbarch.sh: Do not include "dis-asm.h".
466 (struct disassemble_info): Declare opaque.
467 (TARGET_PRINT_INSN): Update declaration.
468 * gdbarch.h, gdbarch.c: Re-generate.
470 2003-09-08 Andrew Cagney <cagney@redhat.com>
472 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
473 CALL_DUMMY_ADDRESS, change to a predicate.
474 * gdbarch.h, gdbarch.c: Re-generate.
475 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
476 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
477 * infcall.c (call_function_by_hand): Ditto.
478 * sparc-tdep.c (sparc_push_return_address): Ditto.
479 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
480 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
481 CALL_DUMMY_ADDRESS with entry_point_address.
482 * v850-tdep.c (v850_push_return_address): Ditto.
483 * s390-tdep.c (s390_push_return_address): Ditto.
484 * rs6000-tdep.c (ppc_push_return_address): Ditto.
485 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
486 * mcore-tdep.c (mcore_push_return_address): Ditto.
487 * cris-tdep.c (cris_push_return_address): Ditto.
488 * arm-tdep.c (arm_push_return_address): Ditto.
490 2003-09-08 Andrew Cagney <cagney@redhat.com>
492 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
493 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
494 and REG_UNMODIFIED to REG_SAME_VALUE.
495 (execute_cfa_program): Update.
496 (dwarf2_frame_cache): Update. Initialize table to
497 REG_UNSPECIFIED, complain if CFI fails to specify a register's
499 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
501 2003-09-08 Andrew Cagney <cagney@redhat.com>
503 * gnu-nat.c: Remove "inline" function attribute.
504 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
506 2003-09-08 Kevin Buettner <kevinb@redhat.com>
508 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
511 2003-09-08 Kevin Buettner <kevinb@redhat.com>
513 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
514 (frame_extra_info): Rename this struct to frv_unwind_cache.
515 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
516 Add fields ``prev_sp'' and ``base''.
517 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
518 (frv_saved_pc_after_call, frv_init_extra_frame_info)
519 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
521 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
522 Revise all callers. Fill in the unwind cache argument and make
523 other adjustments to account for new frame mechanisms.
524 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
525 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
526 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
527 (frv_frame_unwind, frv_frame_base): New structs.
528 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
529 additional arguments expected by this method and adjust function
531 (frv_gdbarch_init): Remove calls to the following functions:
532 set_gdbarch_deprecated_init_frame_pc(),
533 set_gdbarch_deprecated_saved_pc_after_call(),
534 set_gdbarch_deprecated_frame_chain(),
535 set_gdbarch_deprecated_frame_saved_pc(),
536 set_gdbarch_deprecated_frame_init_saved_regs(),
537 set_gdbarch_deprecated_push_arguments(),
538 set_gdbarch_deprecated_push_return_address(),
539 set_gdbarch_deprecated_pop_frame(),
540 set_gdbarch_deprecated_call_dummy_words(),
541 set_gdbarch_deprecated_sizeof_call_dummy_words(),
542 set_gdbarch_deprecated_init_extra_frame_info(),
543 set_gdbarch_deprecated_dummy_write_sp(), and
544 set_gdbarch_deprecated_pc_in_call_dummy().
545 Add calls to the following functions:
546 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
547 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
548 frame_base_set_default().
549 * Makefile.in (frv-tdep.o): Update dependencies.
551 2003-09-09 Mark Kettenis <kettenis@gnu.org>
553 * dwarf2-frame.c (read_encoded_value): Add support for
554 DW_EH_PE_aligned encoding.
556 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
558 * infrun.c (normal_stop): Don't print a message if the inferior
561 2003-09-08 Jim Blandy <jimb@redhat.com>
563 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
564 * dbxread.c: #include "gdb_assert.h".
565 (read_dbx_symtab): If the objfile has no .data section, use the
566 section index for the .bss section instead.
568 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
570 * frame.c (deprecated_safe_get_selected_frame): New function.
571 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
572 * findvar.c (read_var_value): Call it.
574 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
576 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
577 (sh64-tdep.o): Add dependencies.
578 * configure.tgt: Add FIXME to sh-*-linux*.
579 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
580 (sh_gdbarch_init): Always set correct sh_show_regs function
581 pointer. Call sh64_gdbarch_init() if machine type is sh5.
582 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
583 * sh64-tdep.c: New file, containing all sh64 related code from
585 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
586 * config/sh/linux.mt (TDEPFILES): Ditto.
587 * config/sh/nbsd.mt (TDEPFILES): Ditto.
588 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
589 * config/sh/wince.mt (TDEPFILES): Ditto.
591 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
593 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
594 (stop_wait_callback): Handle !lp->signalled also.
595 (lin_lwp_has_pending, flush_callback): New functions.
596 (lin_lwp_wait): Call flush_callback.
597 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
598 (linux_proc_pending_signals): New function.
599 * linux-nat.h (linux_proc_pending_signals): Add prototype.
601 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
603 From Nick Kelsey <nickk@ubicom.com>:
604 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
605 when the stop PC is at the beginning of a function also.
607 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
609 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
610 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
612 2003-09-06 Mark Kettenis <kettenis@gnu.org>
614 * sol-thread.c: Include "gdb_string.h".
616 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
618 * gcore.c: Reorder include files in alphabetical order. Include
619 "gdb_assert.h". Various coding style fixes.
620 (derive_stack_segment, derive_heap_segment): Replace check for
621 non-null BOTTOM and TOP with gdb_assert.
622 (derive_heap_segment): Replace check for successful creation of
623 ZERO with gdb_assert.
624 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
626 2003-09-04 Andrew Cagney <cagney@redhat.com>
628 * thread-db.c (verbose_dlsym): New function.
629 (thread_db_load): Use verbose_dlsym
630 (thread_db_new_objfile): Print that libthread_db was loaded, and
631 that thread debugging was enabled.
633 2003-09-04 Andrew Cagney <cagney@redhat.com>
635 * configure.tgt: Add "mips64*-*-*" target. Delete
636 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
637 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
638 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
639 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
640 mips*-sony-*, and mips64*-*-elf* targets.
641 * config/mips/embedl.mt: Delete file.
642 * config/mips/embedl64.mt: Delete file.
643 * config/mips/mips.mt: Delete file.
644 * config/mips/mips64.mt: Delete file.
645 * config/mips/tm-embed.h: Delete file.
646 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
647 * config/mips/embed64.mt: Delete out-of-date comment.
649 2003-09-04 Andrew Cagney <cagney@redhat.com>
651 * hppa-tdep.c (hppa_gdbarch_init): Set
652 "have_nonsteppable_watchpoint".
653 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
654 * mips-tdep.c (mips_dump_tdep): Do not print
655 HAVE_NONSTEPPABLE_WATCHPOINT.
656 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
657 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
658 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
659 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
661 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
663 * breakpoint.c (watchpoint_check): Remove accidentally checked in
664 unused code. Add comment.
666 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
668 * breakpoint.c (watchpoint_check): Check for pc being in an
669 epilogue if watchpoint frame couldn't be found.
671 2003-09-04 Andrew Cagney <cagney@redhat.com>
673 * Makefile.in: Re-generate all dependencies.
675 2003-09-03 Andrew Cagney <cagney@redhat.com>
677 * arch-utils.h (legacy_print_insn): Delete declaration.
678 * arch-utils.c (legacy_print_insn): Delete function.
679 * disasm.c (deprecated_tm_print_insn_info): Delete.
680 (_initialize_disasm): Delete function, contained code initializing
681 deprecated_tm_print_insn_info.
682 * gdbarch.sh (deprecated_tm_print_insn): Delete.
683 (deprecated_tm_print_insn_info): Delete.
684 (TARGET_PRINT_INSN): Do not provide a default.
685 * gdbarch.h, gdbarch.c: Re-generate.
687 2003-09-03 Andrew Cagney <cagney@redhat.com>
689 * disasm.c (fprintf_disasm): New function.
690 (gdb_disassemble_info): Call "init_disassemble_info", instead of
691 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
692 reverts 2003-08-14 change.
693 (_initialize_disasm): Call "init_disassemble_info", instead of
694 INIT_DISASSEMBLE_INFO_NO_ARCH.
696 2003-09-03 Michael Snyder <msnyder@redhat.com>
698 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
700 2003-09-03 Andrew Cagney <cagney@redhat.com>
702 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
703 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
704 * symfile.c (syms_from_objfile): Update.
705 (reread_symbols): `Update
706 * exec.c (exec_file_attach): Update.
707 (exec_file_attach): Update.
708 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
710 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
712 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
714 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
716 (arm_get_cache): Delete macro.
717 (struct arm_prologue_cache): Update comments. Make saved_regs into
718 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
720 (thumb_scan_prologue): Update for cache changes. Don't call
721 DEPRECATED_PC_IN_CALL_DUMMY.
722 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
723 argument and use it in desperation search for our prologue. Do not
724 search past the specified PC.
725 (arm_make_prologue_cache): Simplify.
727 (arm_prologue_this_id, arm_prologue_prev_register)
728 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
729 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
730 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
731 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
732 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
734 (arm_frame_chain_valid, arm_find_callers_reg)
735 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
736 (arm_pop_frame): Delete obsolete methods.
737 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
739 (arm_gdbarch_init): Update for new frame methods. Register prologue
740 and sigtramp unwinders. Set the default frame base method.
742 * Makefile.in (arm-tdep.o): Update dependencies.
743 * varobj.c (find_frame_addr_in_frame_chain): Call
744 get_frame_base_address.
745 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
747 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
749 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
750 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
751 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
752 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
753 Take NEXT_FRAME and CACHE arguments. Call
754 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
755 Set unwound_pc in CACHE instead of modifying the frame argument.
756 Don't bother checking the frame type when looking for sigtramp
758 (arm_make_prologue_cache, arm_frame_chain)
759 (arm_init_extra_frame_info): New functions.
761 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
763 * arm-tdep.c (arm_get_cache): Define.
764 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
765 unwound_sp, unwound_pc, and saved_regs.
766 (thumb_scan_prologue): Take a cache instead of the frame.
767 (arm_scan_prologue): Likewise.
768 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
769 instead of a temporary frame.
770 (arm_init_extra_frame_info): Allocate and use a cache.
771 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
773 2003-09-03 Andrew Cagney <cagney@redhat.com>
775 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
776 * config/mips/wince.mt (TM_CLIBS): Ditto.
777 * config/sh/wince.mt (TM_CLIBS): Ditto.
778 * config/pa/hppa64.mt (TM_CLIBS): Delete.
779 * config/sparc/sp64.mt (CC): Delete.
781 2003-09-03 Andrew Cagney <cagney@redhat.com>
783 * defs.h: Do not include "arch-utils.h".
784 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
786 * configure.in (GDB_MULTI_ARCH): Do not define.
787 * configure, config.in: Regenerate.
788 * configure.tgt: Do not set variable "gdb_multi_arch".
789 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
790 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
791 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
792 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
793 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
794 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
795 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
796 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
797 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
798 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
799 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
800 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
801 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
802 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
803 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
804 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
805 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
806 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
808 2003-08-30 Michael Chastain <mec@shout.net>
810 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
811 * config/m68k/nm-hp300hpux.h: Delete.
812 * config/m68k/tm-hp300hpux.h: Delete.
813 * config/m68k/xm-hp300hpux.h: Delete.
814 * config/m68k/xm-hp300bsd.h: Delete.
815 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
816 tm-hp300hpux.h, xm-hp300hpux.h.
817 * somsolib.c: Remove comment about hp300 shared libraries.
819 2003-08-31 Mark Kettenis <kettenis@gnu.org>
821 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
822 Only define PTRACE_GET_THREAD_AREA is not already defined.
823 Various style fixes in code and comments and some additional
824 spelling fixes in comments. Move after functions dealing with
826 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
829 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
830 frame_unwind_register_unsigned instead of
831 frame_unwind_unsigned_register.
833 2003-08-30 Mark Kettenis <kettenis@gnu.org>
835 * configure.in: Search for gethostbyname in libnsl.
836 * configure: Regenerated.
838 2003-08-29 Mark Kettenis <kettenis@gnu.org>
840 * configure.in: Remove redundant AC_MSG_RESULT in check for
841 uintptr_t in stdint.h.
842 * configure: Regenerated.
844 * amd64-nat.h (struct regcache): Add opaque declaration.
846 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
847 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
848 Change "register array" to "register cache" in comments.
849 (x86_64_linux_gregset64_reg_offset): New variable.
850 (GETREGS_SUPPLIES): Remove macro.
851 (supply_gregset): Call amd64_supply_native_gregset instead of
852 x86_64_linux_supply_gregset.
853 (fill_gregset): Rename `regno' to `regnum'. Call
854 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
855 (store_regs): Rename `regno' to `regnum'.
856 (store_fpregs): Rename `regno' to `regnum'.
857 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
858 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
859 Reorganize function a bit.
860 (store_inferior_registers): Rename `regno' to `regnum'. Use
861 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
862 Reorganize function a bit.
863 (_initialize_x86_64_linux_nat): New function.
864 * config/i386/x86-64linux.mh.
866 2003-08-29 Andrew Cagney <cagney@redhat.com>
868 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
869 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
870 (target_remove_watchpoint): Delete macro.
871 (target_insert_watchpoint): Delete macro.
872 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
873 (remote_mips_stopped_by_watchpoint): Delete declaration.
874 (remote_mips_remove_watchpoint): Delete declaration.
875 (remote_mips_set_watchpoint): Delete declaration.
876 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
877 * remote-mips.c (_initialize_remote_mips): Set
878 "to_insert_watchpoint", "to_stopped_by_watchpoint",
879 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
880 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
881 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
882 (mips_stopped_by_watchpoint): Rename
883 remote_mips_stopped_by_watchpoint.
884 (mips_can_hardware_watchpoint): Rename
885 remote_mips_can_use_hardware_watchpoint, update function
888 2003-08-29 Mark Kettenis <kettenis@gnu.org>
890 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
891 USER_DS. We haven't given them a register number yet.
893 * amd64-nat.h: New file.
894 * amd64-nat.c: New file.
895 * amd64fbsd-nat.c: Include "amd64-nat.h".
896 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
897 (amd64fbsd32_r_reg_offset): New variable.
898 (supply_gregset): Simply call amd64_supply_native_gregset.
899 (fill_gregset): Rename `regno' to `regnum'. Simply call
900 amd64_collect_native_gregset.
901 (fill_fpregset): Rename `regno' to `regnum'.
902 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
903 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
904 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
905 `fpregset_t'. Call amd64_supply_native_gregset instead of
906 supply_gregset. Call x86_64_supply_fxsave instead of
908 (store_inferior_registers): Rename `regno' to `regnum'. Replace
909 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
910 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
911 `fpregset_t'. Call amd64_collect_native_gregset instead of
912 fill_gregset. Call x86_64_collect_fxsave instead of
914 (_initialize_am64fbsd_nat): Initialize
915 amd64_native_gregset32_reg_offset and
916 amd64_native_gregset64_reg_offset.
917 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
919 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
920 null pointer. Fix typo in comment.
922 * regcache.c (supply_register): Reimplement to call
924 (regcache_collect): Reimplement by calling regcache_raw_collect.
926 2003-08-28 Mark Kettenis <kettenis@gnu.org>
928 * regcache.c (register_buffer): Consitify first argument.
929 (regcache_raw_supply, regcache_raw_collect): New
932 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
934 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
935 by Nathan J. Williams.
937 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
939 * lin-lwp.c (wait_lwp): New function, copied from
940 stop_wait_callback. Clean up.
941 (stop_wait_callback): Use wait_lwp.
943 2003-08-28 Andrew Cagney <cagney@redhat.com>
945 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
946 flavour and disassembler options.
947 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
948 (mips_gdbarch_init): Set "print_insn". Delete initialization of
949 deprecated_tm_print_insn_info.
951 2003-08-27 Andrew Cagney <cagney@redhat.com>
953 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
954 Use target_read_memory.
955 (s390_get_frame_info): Update. Do not reference
956 deprecated_tm_print_insn_info.
957 (s390_check_function_end, s390_is_sigreturn): Ditto.
959 2003-08-27 Andrew Cagney <cagney@redhat.com>
961 * Makefile.in (cris-tdep.o): Update dependencies.
962 * cris-tdep.c: Include "gdb_assert.h".
963 (cris_gdbarch_init): Set print_insn.
964 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
965 (cris_delayed_get_disassembler): Simplify, directly call the
966 disassembler returned by cris_get_disassembler.
967 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
968 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
969 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
970 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
971 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
972 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
973 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
974 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
975 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
976 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
977 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
978 (gdb_print_insn_sparc): Delete function.
979 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
980 deprecated_tm_print_insn_info.
981 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
982 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
983 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
984 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
985 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
986 * s390-tdep.c (gdb_print_insn_s390): Delete function.
987 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
988 (s390_gdbarch_init): Set print_insn.
990 2003-08-27 Andrew Cagney <cagney@redhat.com>
992 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
993 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
994 * infcall.c (call_function_by_hand): Convert the entry point
995 address into a code address.
997 2003-08-27 Andrew Cagney <cagney@redhat.com>
999 * dsrec.c: Include "gdb_string.h".
1000 * Makefile.in (dsrec.o): Update dependencies.
1002 2003-08-27 Michael Chastain <mec@shout.net>
1004 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1006 2003-08-27 Andrew Cagney <cagney@redhat.com>
1008 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1009 (alpha_osf1_init_abi): Do not set call_dummy_address.
1011 2003-08-27 David Carlton <carlton@kealia.com>
1013 From Randolph Chung <tausq@debian.org>:
1014 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1015 compiles with -Wformat-nonliteral -Werror.
1017 2003-08-26 Jim Blandy <jimb@redhat.com>
1019 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1020 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1021 bfd_lookup_symbol, since we only want symbols in code sections.
1022 (look_for_base): Pass zero as the SECT_FLAGS argument to
1023 bfd_lookup_symbol, since we're not concerned about which section
1026 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1028 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1029 we are frameless or the return address register is already known.
1031 2003-08-26 Andrew Cagney <cagney@redhat.com>
1033 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1034 in size. Add comments.
1036 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1038 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1039 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1041 2003-08-26 Jason Merrill <jason@redhat.com>
1043 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1044 case out of #ifdef MIPS block.
1046 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1049 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1050 available before calling SECT_OFF_TEXT.
1051 * PROBLEMS: Remove description of java/1322.
1053 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1055 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1056 bof, and nat0-nat127 as pseudo-registers.
1057 (ia64_frame_cache): New struct used to cache frame info.
1058 (ia64_register_reggroup_p): New routine used to override default
1059 register grouping so registers without names are still saved and
1061 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1063 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1064 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1065 (ia64_alloc_frame_cache): New routine to create a new
1067 (examine_prologue): Change prototype to add next_frame pointer.
1068 Assume frameless until otherwise proven. Verify that the cfm for
1069 current frame matches the cfm that should occur for the prologues
1070 alloc insn and if equal, mark as not frameless. At end of routine,
1071 if not frameless, calculate registers for the previous frame and store
1072 in the cache, if a cache is provided.
1073 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1074 and pass 0 for next_frame.
1075 (ia64_store_return_value): Change to use convert_typed_floating()
1076 instead of calling ia64_convert_to_raw().
1077 (ia64_extract_return_value): Change to use convert_typed_floating()
1078 instead of calling ia64_convert_to_virtual().
1079 (ia64_frame_cache): New routine to support new frame model.
1080 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1081 (ia64_frame_sniffer): Ditto.
1082 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1083 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1084 (ia64_sigtramp_frame_prev_register): Ditto.
1085 (ia64_sigtramp_frame_sniffer): Ditto.
1086 (ia64_frame_base_address): Ditto.
1087 (ia64_extract_struct_value_address): Change to issue error message.
1088 (ia64_frame_align): New routine to align sp.
1089 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1090 (ia64_push_arguments): Removed. Logic moved to
1091 ia64_push_dummy_call().
1092 (ia64_push_return_address): Ditto.
1093 (ia64_unwind_dummy_id): New function.
1094 (ia64_unwind_pc): Ditto.
1095 (ia64_convert_register_p): Ditto.
1096 (ia64_register_to_value): Ditto.
1097 (ia64_value_to_register): Ditto.
1098 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1099 (ia64_register_byte, ia64_register_raw_size): Ditto.
1100 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1101 (ia64_saved_pc_after_call): Ditto.
1102 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1103 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1104 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1105 (ia64_register_convert_to_raw): Ditto.
1106 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1107 (ia64_init_extra_frame_info): Ditto.
1108 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1109 (ia64_gdbarch_init): Remove registering of deprecated functions that
1110 are no longer used. Add registration of new gdbarch functions.
1111 Remove registering deprecated_write_sp. Replace
1112 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1113 Delete set_gdbarch_deprecated_register_convertible(),
1114 set_gdbarch_deprecated_register_convert_to_virtual(), and
1115 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1116 set_gdbarch_deprecated_register_size(),
1117 set_gdbarch_deprecated_register_bytes(),
1118 set_gdbarch_pcregnum(),
1119 set_gdbarch_deprecated_register_byte(),
1120 set_gdbarch_deprecated_register_raw_size(),
1121 set_gdbarch_deprecated_max_register_raw_size(),
1122 set_gdbarch_deprecated_register_virtual_size(),
1123 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1124 Replace set_gdbarch_deprecated_extract_return_value() with
1125 set_gdbarch_extract_return_value(). Remove calls to:
1126 set_gdbarch_deprecated_saved_pc_after_call();
1127 set_gdbarch_deprecated_frame_chain(),
1128 set_gdbarch_deprecated_frame_saved_pc(),
1129 set_gdbarch_deprecated_frame_init_saved_regs(),
1130 set_gdbarch_deprecated_get_saved_register(),
1131 set_gdbarch_deprecated_call_dummy_words(),
1132 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1133 set_gdbarch_deprecated_init_extra_frame_info(),
1134 set_gdbarch_deprecated_frame_args_address(),
1135 set_gdbarch_deprecated_frame_locals_address(),
1136 and set_gdbarch_deprecated_dummy_write_sp().
1137 Add set_gdbarch_convert_register_p(),
1138 set_gdbarch_register_to_value(),
1139 set_gdbarch_value_to_register(),
1140 set_gdbarch_push_dummy_call(),
1141 set_gdbarch_frame_align(),
1142 set_gdbarch_unwind_dummy_id(),
1143 set_gdbarch_unwind_pc(),
1144 frame_unwind_append_sniffer(),
1145 frame_unwind_append_sniffer(),
1146 and frame_base_set_default().
1148 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1150 * configure.tgt: Document need for special "mipsisa64" handling.
1151 (mipsisa64*-*-linux64): Handle as target linux64.
1152 (mipsisa64*-*-*): Handle as target embed64.
1154 2003-08-18 Michael Chastain <mec@shout.net>
1156 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1159 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1161 * i387-tdep.h: Update copyright date.
1162 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1164 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1165 CFLAGS games to reflect reality.
1167 2003-08-24 Andrew Cagney <cagney@redhat.com>
1169 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1170 GDB_MULTI_ARCH is always non-zero.
1171 * osabi.c (_initialize_gdb_osabi): Ditto.
1172 (gdbarch_init_osabi): Ditto.
1173 * sparc-tdep.c: Ditto for #if code.
1175 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1177 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1179 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1181 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1182 x86_64_supply_fxsave.
1183 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1184 x86_64_supply_fxsave.
1185 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1186 x86_64_supply_fxsave.
1188 2003-08-23 Andreas Jaeger <aj@suse.de>
1190 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1193 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1195 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1196 i387_supply_register.
1197 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1198 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1200 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1202 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1204 * i386bsd-nat.c (supply_fpregset): Adjust call to
1206 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1207 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1209 (store_inferior_registers): Remove extraneous whitespace. Call
1210 i387_fill_fsave instead of fill_fpregset.
1211 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1212 (supply_fpregset): Likewise.
1213 * i386v4-nat.c (supply_fpregset): Adjust call to
1215 * i386-interix-nat.c (supply_fpregset): Adjust call to
1217 * i386-linux-nat.c (supply_fpregset): Adjust call to
1219 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1220 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1221 i387supply_fsave and i387_supply_fxsave.
1222 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1223 Incorporate code from `i387_supply_register.
1224 (i387_supply_register): Remove.
1225 (i387_supply_fxsave): Add `regnum' argument.
1227 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1229 (i387_supply_register): remove prototype.
1232 2003-08-22 Michael Chastain <mec@shout.net>
1234 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1235 Add lines for files in gdb/testsuite/gdb.cp/* that are
1236 still not 8.3 unique.
1238 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1240 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1241 TYPE_VPTR_FIELDNO is valid.
1243 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1245 * utils.c (set_width_command): Remove prototypes.
1246 (set_screen_size): New prototype.
1247 (init_page_info): Simplify by fetching the screen size from
1248 Readline. Call set_screen_size.
1249 (set_screen_size): New function.
1250 (set_width): Add missing whitespace in comment.
1251 (set_width_command): Call set_screen_size.
1252 (set_height_command): New function.
1253 (initialize_utils): Fix formatting. Make "set height" command
1254 call set_height_command. Remove redundant code that turns off
1255 pagination if output isn't a terminal. Remove redundant call to
1258 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1260 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1261 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1262 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1263 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1265 (sparc64_register_info): Give the reister with number
1266 SPARC64_STATE_REGNUM a name.
1267 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1269 (sparc64_push_dummy_call): Take BIAS into account when checking
1271 (sparc_software_single_step): Remove assertions that check whether
1272 NPC and NNPC were zero.
1273 (sparc_supply_rwindow): Make public. Merge functionality with
1274 sparc64_supply_rwindow.
1275 (sparc_fill_rwindow): Make public. Merge functionality with
1276 sparc64_fill_rwindow.
1277 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1278 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1279 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1280 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1281 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1283 * reggroups.c: Add whitespace after declarations of local
1284 variables in functions.
1286 2003-08-21 Michael Chastain <mec@shout.net>
1288 * gdbtypes.h: Change array bound type from an int to enum.
1290 2003-08-21 Andrew Cagney <cagney@redhat.com>
1292 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1293 * config/sparc/tm-sparc.h: Ditto.
1294 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1296 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1298 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1300 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1301 (register_objfile_data, set_objfile_data, objfile_data): New
1303 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1305 (allocate_objfile): Call objfile_alloc_data.
1306 (free_objfile): Call objfile_free_data.
1307 (struct objfile_data): New.
1308 (struct objfile_data_registration): New.
1309 (struct objfile_data_registry): New.
1310 (objfile_data_registry): New variable.
1311 (register_objfile_data): New function.
1312 (objfile_alloc_data, objfile_free_data): New functions.
1313 (set_objfile_data, objfile_data): New functions.
1314 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1315 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1316 (_initialize_dwarf2_frame): New function and prototype.
1318 2003-08-21 Andrew Cagney <cagney@redhat.com>
1320 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1321 a specific architecture.
1322 * arch-utils.h (set_architecture_from_arch_mach): Delete
1324 (target_architecture_hook): Delete declaration.
1325 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1326 (default_float_format): Assume GDB_MULTI_ARCH.
1327 (default_double_format): Assume GDB_MULTI_ARCH.
1328 (set_endian_from_file): Delete function.
1329 (arch_ok): Delete function.
1330 (set_arch): Delete function.
1331 (set_architecture_from_arch_mach): Delete function.
1332 (set_architecture_from_file): Delete function.
1333 (set_architecture): Assume GDB_MULTI_ARCH.
1334 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1336 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1338 Rewrite FreeBSD/sparc64 native configuration.
1339 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1340 * sparc64fbsd-nat.c: New file.
1341 * sparc64fbsd-tdep.c: New file.
1342 * sparc64-tdep.c sparc64-tdep.h: New files.
1343 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1344 sparc64fbsd-tdep.o): New dependencies.
1345 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1346 and sparc64fbsd-tdep.c.
1347 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1348 * config/sparc/fbsd.mh: Remove copyright notice.
1349 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1351 * config/sparc/fbsd.mt: Remove copyright notice.
1352 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1353 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1354 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1355 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1356 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1357 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1358 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1359 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1361 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1362 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1364 2003-08-21 Michael Chastain <mec@shout.net>
1366 * symtab.h: Add doco on the space critical structures and
1367 some measurements of space usage.
1369 2003-08-21 Michael Snyder <msnyder@redhat.com>
1371 * tracepoint.c (trace_dump_command): Trace break address
1372 is subject to DECR_PC_AFTER_BREAK.
1373 (set_traceframe_context): Make "trace_line" an int.
1374 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1376 2003-08-20 Michael Snyder <msnyder@redhat.com>
1378 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1379 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1380 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1382 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1383 functions, replace sh_push_dummy_call.
1384 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1386 2003-08-20 Michael Chastain <mec@shout.net>
1388 * gdbtypes.h (struct main_type): Rearrange to save space.
1390 2003-08-20 Michael Snyder <msnyder@redhat.com>
1392 * trad-frame.c: Comment typo fix.
1394 2003-08-20 Michael Snyder <msnyder@redhat.com>
1395 Kevin Buettner <kevinb@redhat.com>
1397 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1398 (frv_frame_init_saved_regs): Add declaration.
1399 (frame_extra_info): Add new field ``saved_regs''.
1400 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1401 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1402 Update frame related code.
1403 (frv_extract_struct_value_address): Adjust formatting.
1404 * Makefile.in (frv-tdep.o): Update dependencies.
1405 * config/frv/tm-frv.h (target_insert_watchpoint)
1406 (target_remove_watchpoint, target_insert_hw_breakpoint)
1407 (target_remove_hw_breakpoint): Delete these macros.
1408 (remote_insert_watchpoint, remote_remove_watchpoint)
1409 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1412 2003-08-20 Michael Chastain <mec@shout.net>
1414 * defs.h (ENUM_BITFIELD): New macro.
1415 * symtab.h (ENUM_BITFIELD): Use it.
1416 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1418 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1420 * MAINTAINERS (write after approval): Add myself.
1422 2003-08-18 Andrew Cagney <cagney@redhat.com>
1424 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1425 * gdbarch.h, gdbarch.c: Re-generate.
1426 * infcall.c (call_function_by_hand): Adjust the SP by
1427 frame_red_zone_size before allocating any stack space.
1428 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1429 * x86-64-tdep.c (x86_64_frame_align): New function.
1430 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1432 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1433 Remove code adjusting SP so that it skips over the Red Zone.
1435 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1437 * NEWS (New native configurations): Mention FreeBSD/amd64.
1439 2003-08-18 Andrew Cagney <cagney@redhat.com>
1441 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1442 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1444 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1446 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1448 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1450 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1452 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1454 * i386-linux-nat.c: Include "linux-nat.h".
1455 (child_post_startup_inferior): New function.
1457 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1459 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1460 at the start of a frameless function. This probably fixes PR
1463 2003-08-17 Michael Chastain <mec@shout.net>
1465 * symfile.c (find_sym_fns): Remove special case for apollo target.
1467 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1469 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1470 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1471 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1472 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1473 (linux_supports_tracevforkdone): New function.
1474 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1476 (child_follow_fork): Handle vfork.
1477 (linux_handle_extended_wait): Likewise. Also handle exec.
1478 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1479 * NEWS: Mention fork tracing.
1481 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1483 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1485 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1487 * Makefile.in (i386-linux-nat.o): Update dependencies.
1488 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1489 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1490 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1491 * i386-linux-nat.c: Include "linux-nat.h".
1492 (child_post_startup_inferior): New function.
1493 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1494 * infptrace.c (kill_inferior): Wrap in #ifdef.
1495 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1496 attaching to each LWP.
1497 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1498 (init_lin_lwp_ops): Fill in some more operations.
1499 * linux-nat.h (linux_enable_event_reporting)
1500 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1502 * linux-nat.c (linux_enable_event_reporting): New function.
1503 (child_post_attach, linux_child_post_startup_inferior)
1504 (child_post_startup_inferior, child_follow_fork)
1505 (linux_handle_extended_wait, kill_inferior): New functions.
1507 2003-08-16 Andrew Cagney <cagney@redhat.com>
1509 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1510 * gdbarch.h, gdbarch.c: Re-generate.
1512 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1514 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1516 2003-08-16 Andrew Cagney <cagney@redhat.com>
1518 * NEWS: Mention that "set prompt-escape-char" was deleted.
1519 * top.c (get_prompt_1): Delete function.
1520 (gdb_prompt_escape):
1521 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1522 prompt-escape-char" command.
1523 (MAX_PROMPT_SIZE): Delete macro.
1524 (get_prompt): Simplify, do not call get_prompt_1.
1526 2003-08-16 Andrew Cagney <cagney@redhat.com>
1528 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1529 -Werror. -Wformat-nonliteral problems.
1531 2003-08-15 J. Brobecker <brobecker@gnat.com>
1533 Further multiarching work mostly for hppa64-*-hpux11:
1534 * hppa-tdep.h: New file.
1535 * hppa-tdep.c: #include hppa-tdep.c.
1536 (hppa32_num_regs): Renamed from hppa_num_regs.
1537 (hppa64_num_regs): New constant.
1538 (hppa64_call_dummy_breakpoint_offset): New constant.
1539 (hppa32_call_dummy_length): New constant.
1540 (hppa64_call_dummy_length): New constant.
1541 (hppa32_stack_align): Make name 32bit explicit.
1542 (hppa32_register_virtual_type): Likewise.
1543 (hppa32_extract_return_value): Likewise.
1544 (hppa32_use_struct_convention): Likewise.
1545 (hppa32_store_return_value): Likewise.
1546 (hppa64_register_virtual_type): New function.
1547 (hppa64_extract_return_value): New function.
1548 (hppa64_use_struct_convention): New function.
1549 (hppa64_store_return_value): New function.
1550 (hppa_frame_locals_address): Remove declaration, function does
1552 (hppa_register_byte): Add support for PA64 ABI.
1553 (hppa_gdbarch_init): Add support for PA64 ABI.
1554 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1555 Make name 32bit explicit.
1556 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1557 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1558 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1559 (hppa64_hpux_frame_base_before_sigtramp): New function.
1560 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1561 * config/pa/tm-hppa64.h: Remove macros that are no longer
1562 necessary now that the gdbarch vector is properly setup.
1563 Transform some macros into function calls. Some minor cleanup.
1564 * config/pa/tm-hppah.h: Update function calls in macros
1565 following the function renaming in hppa-hpux-tdep.c.
1566 * Makefile.in (hppa_tdep_h): New variable.
1567 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1569 2003-08-14 Michael Snyder <msnyder@redhat.com>
1571 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1573 2003-08-13 J. Brobecker <brobecker@gnat.com>
1575 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1576 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1579 2003-08-13 Michael Snyder <msnyder@redhat.com>
1581 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1582 (frv_saved_pc_after_call): Use deprecated ftype.
1583 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1584 (frv_remote_translate_xfer_address): Remove.
1585 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1587 2003-08-13 J. Brobecker <brobecker@gnat.com>
1589 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1590 initialization after the common gdbarch initialization, not before.
1592 2003-08-13 J. Brobecker <brobecker@gnat.com>
1594 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1595 (ADDR_BITS_REMOVE): Remove, redundant.
1597 2003-08-13 J. Brobecker <brobecker@gnat.com>
1599 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1600 gdbarch method to clear the 2 low bits of text addresses.
1602 2003-08-12 Andrew Cagney <cagney@redhat.com>
1604 * Makefile.in (dsrec.o): Update dependencies.
1605 * dsrec.c: Include "gdb_assert.h".
1606 (make_srec): Use snprintf instead of sprintf, use a literal format
1609 2003-08-12 Andrew Cagney <cagney@redhat.com>
1611 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1612 FRAME_OBSTACK_ZALLOC.
1614 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1616 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1619 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1621 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1622 amd64fbsd_sc_reg_offset): Add extern declarations.
1623 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1626 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1628 * MAINTAINERS (write after approval): Update my mail address.
1630 2003-08-10 Andrew Cagney <cagney@redhat.com>
1632 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1634 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1636 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1637 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1638 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1639 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1640 i386bsd_sc_reg_offset): Add extern declarations.
1641 * i386obsd-nat.c: Include "i386-tdep.h"
1642 (_initialize_i386obsd_nat): Remove extern declarations.
1643 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1645 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1648 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1649 instead of frame_read_register.
1650 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1651 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1653 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1654 instead of frame_unwind_unsigned_register. Use
1655 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1656 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1657 instead of read_register. Use builtin_type_void_data_ptr instead
1658 of builtin_type_void_func_ptr when extracting the address of the
1660 (i386_extract_return_value, i386_store_return_value,
1661 i386_pseudo_register_read, i386_pseudo_register_write): Use
1662 register_size instead REGISTER_RAW_SIZE.
1664 2003-08-10 Andrew Cagney <cagney@redhat.com>
1666 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1667 sprintf. Make "name" constant.
1669 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1671 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1672 instead of frame_read_register.
1673 (i387_print_float_info): Use get_frame_register and
1674 get_frame_register_unsigned instead of frame_register_read.
1676 * i386fbsd-nat.c: Include "i386-tdep.h".
1677 (child_resume): Make `eflags' an ULONGEST. Use
1678 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1679 instead of register_read and register_write.
1681 * i386bsd-nat.c (fetch_inferior_registers,
1682 store_inferior_registers): Don't use && at the end of a line.
1683 (_initialize_i386bsd_nat): Fix typo.
1685 * frame.c (_initialize_frame): Add missing backslash.
1687 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1688 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1689 and supply_register instead of manipulating the register buffer
1692 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1693 * config/i386/nm-i386sol2.h
1694 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1696 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1697 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1698 instructions that GCC likes to mingle into the prologue. Fixes
1699 gdb/1253 and gdb/1255.
1701 2003-08-09 Andrew Cagney <cagney@redhat.com>
1704 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1705 * command.h (add_setshow_uinteger_cmd): Declare.
1706 * frame.c (set_backtrace_cmd): New function.
1707 (show_backtrace_cmd): New function.
1708 * frame.c (_initialize_frame): Replace "set/show
1709 backtrace-below-main" with "set/show backtrace past-main". Add
1710 command "set/show backtrace limit".
1711 (backtrace_past_main): Rename "backtrace_below_main".
1712 (backtrace_limit): New variable.
1713 (get_prev_frame): Update. Check the backtrace_limit.
1715 2003-08-09 Andrew Cagney <cagney@redhat.com>
1717 * defs.h (xstrprintf): Declare.
1718 * utils.c (xstrprintf): New function.
1719 * breakpoint.c (insert_breakpoints): Replace sprintf and
1720 non-literal format strings, with xstrprintf and cleanups.
1721 (delete_breakpoint,breakpoint_re_set): Ditto.
1722 (commands_command, insert_breakpoints): Ditto.
1723 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1724 (break_at_finish_command_1): Ditto.
1726 2003-08-09 Andrew Cagney <cagney@redhat.com>
1728 * MAINTAINERS (language support): List Adam Fedor as Objective C
1731 2003-08-08 J. Brobecker <brobecker@gnat.com>
1733 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1734 are now multiarched.
1736 2003-08-08 J. Brobecker <brobecker@gnat.com>
1738 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1739 longer necessary now that hppa64 is partially multiarch'ed.
1741 2003-08-08 Andrew Cagney <cagney@redhat.com>
1743 * interps.c (interp_set): Check for a NULL "old_interp".
1745 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1747 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1748 (install-only): Support DESTDIR.
1749 (uninstall): Likewise.
1750 (install-gdbtk): Likewise.
1752 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1754 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1755 contains something meaningful at all times.
1757 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1759 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1761 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1763 * MAINTAINERS (write after approval): Added self.
1765 2003-08-07 Andrew Cagney <cagney@redhat.com>
1767 * inferior.h (AT_SYMBOL): Define.
1768 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1769 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1770 * mips-tdep.c (mips_call_dummy_address): Delete function.
1771 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1772 set call_dummy_address.
1774 2003-08-07 Andrew Cagney <cagney@redhat.com>
1776 * language.c (op_error): Delete function.
1777 (binop_type_check): Delete function.
1778 * language.h (type_op_error, range_op_error): Delete macros.
1779 (op_error): Delete declaration.
1781 2003-08-07 Andrew Cagney <cagney@redhat.com>
1783 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1785 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1787 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1788 (x86_64_push_arguments): Skip the red zone.
1790 2003-08-05 Andrew Cagney <cagney@redhat.com>
1792 * reggroups.c (reggroup_next): Check for the final entry.
1794 2003-08-04 Andrew Cagney <cagney@redhat.com>
1796 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1797 * cli/cli-script.c (define_command): Call query directly, instead
1798 of passing it a buffer.
1799 * ocd.c (ocd_error): Pass error a constant format string.
1800 * remote-mips.c (mips_error): Use fputs_filtered.
1802 * solib-svr4.c (_initialize_svr4_solib): Update
1803 register_gdbarch_data call.
1804 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1806 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1807 (register_gdbarch_data): Delete "free" parameter. Update
1809 * gdbarch.h, gdbarch.c: Re-generate.
1810 * reggroups.c (_initialize_reggroup): Update.
1811 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1812 * frame-base.c (_initialize_frame_base): Update.
1813 * frame-unwind.c (_initialize_frame_unwind): Update.
1814 * user-regs.c (_initialize_user_regs): Update.
1815 * remote.c (_initialize_remote): Update.
1816 * regcache.c (_initialize_regcache): Update.
1818 * regcache.c (xfree_regcache_descr): Delete function.
1819 (_initialize_regcache): Update call to register_gdbarch_data.
1820 (init_regcache_descr, init_legacy_regcache_descr): Use
1821 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1823 * remote.c (free_remote_state): Delete function.
1824 (_initialize_remote): Update register_gdbarch_data.
1825 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1826 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1828 2003-08-04 Andrew Cagney <cagney@redhat.com>
1830 * reggroups.c (struct reggroup_el): Define.
1831 (struct reggroups): Delete field "nr_group". Replace array
1832 "group" with a "first" to "last" linked list.
1833 (reggroups_init): Update. Allocate using gdbarch's obstack.
1834 (reggroups_free): Delete function.
1835 (add_group): Update. Add "el" parameter.
1836 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1837 (default_groups): Update.
1838 (reggroup_next): Replace reggroups.
1839 (reggroups_dump): Update.
1840 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1841 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1842 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1844 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1846 * Makefile.in (tui-interp.o): Update dependencies.
1848 2003-08-04 David Carlton <carlton@kealia.com>
1850 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1851 to internal_error call.
1852 * source.c (forward_search_command): Add "%s" format argument.
1853 (reverse_search_command): Ditto.
1854 * top.c (quit_confirm): Ditto.
1855 * cli/cli-setshow.c (do_setshow_command): Ditto.
1856 * cp-valprint.c (cp_print_class_method): Replace
1857 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1858 (cp_print_class_member): Ditto.
1859 * event-top.c (command_line_handler): Ditto.
1860 * linux-proc.c (linux_info_proc_cmd): Ditto.
1861 * p-typeprint.c (pascal_type_print_base): Ditto.
1862 * p-valprint.c (pascal_object_print_class_method): Ditto.
1863 (pascal_object_print_class_member): Ditto.
1864 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1865 * remote.c (remote_cisco_section_offsets): Ditto.
1866 * top.c (command_line_input): Ditto.
1867 * utils.c (vwarning,error_stream,quit): Ditto.
1868 * valprint.c (print_floating,print_binary_chars)
1869 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1871 2003-08-04 Andrew Cagney <cagney@redhat.com>
1873 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1875 2003-08-02 Andrew Cagney <cagney@redhat.com>
1877 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1878 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1881 2003-08-02 Andrew Cagney <cagney@redhat.com>
1883 * Makefile.in: Update all dependencies and definitions.
1885 2003-08-02 Adam Fedor <fedor@gnu.org>
1887 * linespec.c (is_objc_method_format): New function
1888 (decode_line_1, locate_first_half): Use it.
1891 2003-08-01 Andrew Cagney <cagney@redhat.com>
1893 * NEWS: Mention that m32r is multi-arch.
1894 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1895 * configure.tgt: Recognize m32r-*-*.
1896 * config/m32r/tm-m32r.h: Delete file.
1897 * config/m32r/m32r.mt: New file.
1898 * m32r-rom.c (m32r_upload_command): Use hostent only when
1899 gethostname succeeds, in order to avoid a compilation
1901 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1904 2003-08-01 Michael Snyder <msnyder@redhat.com>
1906 * sh-tdep.c (sh_frame_align): New gdbarch method.
1907 (sh_gdbarch_init): Set up frame_align method.
1909 2003-07-31 Michael Snyder <msnyder@redhat.com>
1911 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1912 which is already covered by the new frames infrastructure.
1914 2003-07-31 Andrew Cagney <cagney@redhat.com>
1916 * user-regs.c (struct user_reg): Add "next" link.
1917 (struct user_regs): Replace "user" with "first" and "last" links.
1918 (append_user_reg): Add pre-allocated "reg" parameter.
1919 (builtin_user_regs): Provide initial value for "last".
1920 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1921 (user_regs_init): Allocate memory from the gdbarch obstack.
1922 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1923 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1925 (usernum_to_user_reg): New function.
1926 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1927 (value_of_user_reg): Use usernum_to_user_reg.
1928 (user_regs_free): Delete function.
1929 (_initialize_user_regs): Update register_gdbarch_data call.
1931 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1933 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1935 2003-07-30 Michael Snyder <msnyder@redhat.com>
1937 * value.h (value_being_returned): Add a struct_addr argument.
1938 * infcall.c (call_function_by_hand): Pass struct_addr to
1939 value_being_returned.
1940 * infcmd.c (print_return_value): Pass zero as struct_addr.
1941 * values.c (value_being_returned): If struct_addr is passed,
1942 use it instead of trying to recover it from the inferior.
1944 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1946 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1947 the prologue analyzer won't need to attempt to extract the pc
1948 value from the woefully incomplete dummy frame.
1949 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1950 possible. Disable code which modifies the frame.
1952 2003-07-28 Andrew Cagney <cagney@redhat.com>
1954 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1956 (annotate_breakpoints_table, annotate_record): Ditto.
1957 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1958 (annotate_field_name_end, annotate_field_value): Ditto.
1959 (annotate_field_end, annotate_frame_source_begin): Ditto.
1960 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1961 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1962 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1963 (annotate_frame_address_end, annotate_frame_address): Ditto.
1964 (annotate_frame_args, annotate_frame_end): Ditto.
1965 (annotate_frame_where, annotate_arg_begin): Ditto.
1966 (annotate_arg_name_end, annotate_arg_value): Ditto.
1967 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1968 (annotate_function_call, annotate_signal_name): Ditto.
1969 (annotate_signal_string, annotate_signal_name_end): Ditto.
1970 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1971 (annotate_value_begin, annotate_value_history_value): Ditto.
1972 (annotate_value_history_end, annotate_value_end): Ditto.
1973 (annotate_display_begin, annotate_display_number_end): Ditto.
1974 (annotate_display_format, annotate_display_expression): Ditto.
1975 (annotate_display_expression_end, annotate_display_value): Ditto.
1976 (annotate_display_end, annotate_array_section_begin): Ditto.
1977 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1978 (annotate_elt, annotate_array_section_end): Ditto.
1980 2003-07-28 Andrew Cagney <cagney@redhat.com>
1982 * regcache.c (struct regcache_descr): Update comments on
1984 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1985 sizeof_raw_register_valid_p.
1986 (init_regcache_descr): Set nr_raw_registers and
1987 sizeof_raw_register_valid_p before calling
1988 init_legacy_regcache_descr.
1990 2003-07-28 Andrew Cagney <cagney@redhat.com>
1992 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1995 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1997 * thread.c (info_threads_command): Use get_selected_frame ().
1998 Check that there is at least one non-sentinel frame.
2000 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2002 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2003 (m68hc11_pop_frame): Remove.
2004 (m68hc11_frame_saved_pc): Remove.
2005 (m68hc11_frame_chain): Remove.
2006 (m68hc11_frame_init_saved_regs): Remove.
2007 (m68hc11_init_extra_frame_info): Remove.
2008 (m68hc11_store_struct_return): Remove.
2009 (m68hc11_saved_pc_after_call): Remove.
2011 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2013 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2014 frame unwind information.
2015 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2016 and adapted for frame unwinding.
2017 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2018 (m68hc11_unwind_pc): New function.
2019 (m68hc11_frame_unwind_cache): New function to analyze frames.
2020 (m68hc11_frame_this_id): New function to create new frame struct.
2021 (m68hc11_frame_prev_register): New function to unwind a register from
2023 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2024 (m68hc11_frame_p): New function for the above.
2025 (m68hc11_frame_base_address): New function to return fp of frame.
2026 (m68hc11_frame_args_address): Update for frame.
2027 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2028 (m68hc11_unwind_sp): New function.
2029 (m68hc11_unwind_dummy_id): New function.
2030 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2033 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2035 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2036 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2037 when we are beyond the current pc.
2039 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2041 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2042 from m68hc11_push_arguments.
2043 (m68hc11_push_arguments): Remove.
2044 (m68hc11_push_return_address): Remove.
2045 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2046 handlers; remove deprecated_extra_stack_alignment_needed.
2048 2003-07-27 Andrew Cagney <cagney@redhat.com>
2050 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2051 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2052 REAL_PC and not the pointer.
2053 * hppa-hpux-tdep.c: Include frame.h
2055 2003-07-27 Andrew Cagney <cagney@redhat.com>
2057 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2058 GDB_MULTI_ACH_PARTIAL.
2060 2003-07-27 Andrew Cagney <cagney@redhat.com>
2062 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2063 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2064 operator at start and not end of line.
2065 (decode_prologue): Ditto.
2066 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2067 frame_unwind_register_unsigned instead of
2068 frame_unwind_unsigned_register.
2069 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2071 (m32r_push_dummy_call): Use register_size instead of
2073 (m32r_frame_sniffer): Replace m32r_frame_p.
2074 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2075 * m32r-rom.c (report_transfer_performance): Delete extern
2077 (m32r_load, m32r_upload_command): Use print_transfer_performance
2078 instead of report_transfer_performance.
2079 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2080 / add_show_from_set.
2082 2003-07-26 Andrew Cagney <cagney@redhat.com>
2084 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2085 store_return_value and extract_struct_value_address.
2087 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2090 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2091 NULL, default to the section containing PC.
2093 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2095 * NEWS: Mention "regs" deprecated for m68hc11 too.
2097 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2098 (m68hc11_print_register): New function to print out one register.
2099 (m68hc11_print_registers_info): New function to print registers.
2100 (show_regs): Deprecate and use the above.
2101 (m68hc11_gdbarch_init): Install the print_registers_info.
2103 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2105 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2106 that we have a SIGTRAP before returning non-zero.
2108 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2109 Elena Zannoni <ezannoni@redhat.com>
2111 * linespec.c (decode_line_2): Avoid crash if
2112 find_function_start_sal() returns empty record.
2114 2003-07-23 Andreas Schwab <schwab@suse.de>
2116 * ia64-tdep.c (ia64_print_insn): New function.
2117 (ia64_gdbarch_init): Set print_insn to it.
2118 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2119 deprecated_tm_print_insn_info.
2121 2003-07-22 Michael Snyder <msnyder@redhat.com>
2123 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2124 handle 8-bit returns (long long).
2125 (h8300h_extract_return_value): Ditto.
2126 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2128 2003-07-22 Andrew Cagney <cagney@redhat.com>
2130 * gdbarch.c Include "gdb_obstack.h".
2131 (struct gdbarch): Add an "obstack".
2132 (alloc_gdbarch_data): Allocate the gdbarch data using
2133 GDBARCH_OBSTACK_CALLOC.
2134 (free_gdbarch_data): Delete function.
2135 (gdbarch_obstack_zalloc): New function.
2136 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2137 Assert that the architecture is not initialized.
2138 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2139 vector from the obstack.
2140 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2141 architecture obstack.
2142 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2143 (set_gdbarch_data): Assert that the data is not initialized.
2144 (struct gdbarch_data): Delete member "free".
2145 (register_gdbarch_data): Do not initialize "free".
2146 * gdbarch.h, gdbarch.c: Re-generate.
2148 2003-07-22 Andrew Cagney <cagney@redhat.com>
2150 * configure.in (build_warnings): Add -Wformat-nonliteral.
2151 * configure: Re-generate.
2153 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2155 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2157 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2159 * findvar.c (read_var_value): Remove case for thread local storage
2160 variables. It is now entirely handled by the dwarf2 location
2162 * printcmd.c (address_info): Ditto.
2163 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2165 (struct symbol): Remove objfile field, which was used by
2166 LOC_THREAD_LOCAL_STATIC only.
2167 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2168 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2169 usage of objfile pointer.
2170 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2171 thread local variables.
2172 Add include of objfiles.h.
2173 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2175 * Makefile.in (dwarf2loc.o): Update dependencies.
2177 2003-07-22 Andrew Cagney <cagney@redhat.com>
2179 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2181 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2182 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2183 (struct value): Add opaque declaration.
2184 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2186 2003-07-21 Andrew Cagney <cagney@redhat.com>
2188 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2189 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2191 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2193 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2194 regcache_cooked_read_unsigned instead of read_register.
2195 (m68hc11_saved_pc_after_call): Likewise.
2196 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2197 instead of write_register.
2198 (m68hc11_register_type): New function.
2199 (m68hc11_register_virtual_type): Remove.
2200 (m68hc11_store_return_value): Convert to use the regcache.
2201 (m68hc11_extract_struct_value_address): Likewise.
2202 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2203 m68hc11_register_type; undeprecate store_return_value and
2204 extract_struct_value_address.
2206 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2208 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2209 and translate to use regcache.
2210 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2212 2003-07-18 Andrew Cagney <cagney@redhat.com>
2214 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2215 * gdbarch.h, gdbarch.c: Re-generate.
2216 * i386-tdep.c (i386_gdbarch_init): Do not set
2217 DWARF2_BUILD_FRAME_INFO.
2218 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2220 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2221 DWARF2_BUILD_FRAME_INFO.
2223 2003-07-18 Andrew Cagney <cagney@redhat.com>
2225 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2226 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2228 2003-07-18 Andrew Cagney <cagney@redhat.com>
2230 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2231 frame_unwind_address_in_block, instead of frame_pc_unwind.
2232 (dwarf2_frame_cache): Ditto.
2234 2003-07-18 Andrew Cagney <cagney@redhat.com>
2236 * user-regs.h (struct gdbarch): Declare opaque.
2237 * ui-out.h (struct ui_file): Declare opaque.
2238 * dwarf2-frame.h (struct frame_info): Declare opaque.
2240 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2242 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2244 (procfs_meminfo): Change strerror to safe_strerror.
2245 (procfs_can_run): Remove K&R badness.
2247 2003-07-17 Michael Snyder <msnyder@redhat.com>
2249 * remote-sim.c: Comment typo fix.
2251 2003-07-17 Andrew Cagney <cagney@redhat.com>
2253 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2255 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2256 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2257 GDB_MULTI_ARCH_PARTIAL.
2259 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2261 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2262 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2263 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2265 2003-07-16 Theodore A. Roth <troth@openavr.org>
2267 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2269 (avr_frame_unwind_cache): Don't unwind FP for main.
2271 Save the computed prev_sp.
2272 (avr_saved_regs_unwinder): Remove function.
2273 (avr_frame_prev_register): Use PC unwind logic from
2274 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2276 2003-07-16 Andrew Cagney <cagney@redhat.com>
2278 * frame-base.h (frame_base_p_ftype): Delete definition.
2279 (frame_base_append_predicate): Delete declaration.
2280 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2281 (frame_unwind_append_predicate): Delete declaration.
2282 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2283 (append_predicate): Delete parameter "p".
2284 (frame_unwind_append_predicate): Delete function.
2285 (frame_unwind_append_sniffer): Update call to append_predicate.
2286 (frame_unwind_free): Delete function.
2287 (_initialize_frame_unwind): Pass NULL as "free" to
2288 register_gdbarch_data.
2289 (frame_unwind_init): Append the dummy_frame_sniffer.
2290 (frame_unwind_find_by_frame): Simplify.
2291 * frame-base.c (struct frame_base_table): Delete field "p".
2292 (append_predicate): Delete parameter "p".
2293 (frame_base_append_predicate): Delete function.
2294 (frame_base_append_sniffer): Update call to append_predicate.
2295 (frame_base_free): Delete function.
2296 (frame_base_find_by_frame): Simplify.
2297 (_initialize_frame_base): Pass NULL as "free" to
2298 register_gdbarch_data.
2299 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2300 (x86_64_sigtramp_frame_sniffer): Replace
2301 "x86_64_sigtramp_frame_p".
2302 (x86_64_init_abi): Set the frame unwind sniffers.
2303 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2304 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2305 (m68k_gdbarch_init): Set the frame unwind sniffers.
2306 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2307 "i386_sigtramp_frame_p".
2308 (i386_frame_sniffer): Replace "i386_frame_p".
2309 (i386_gdbarch_init): Set the frame unwind sniffers.
2310 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2311 (avr_gdbarch_init): Set the frame unwind sniffers.
2312 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2313 "alpha_sigtramp_frame_p"
2314 (alpha_heuristic_frame_sniffer): Replace
2315 "alpha_heuristic_frame_p".
2316 (alpha_gdbarch_init): Set the frame unwind sniffers.
2317 (alpha_dwarf2_init_abi): Ditto.
2318 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2319 "alpha_debug_frame_p".
2320 (alpha_mdebug_frame_base_sniffer): Replace
2321 "alpha_mdebug_frame_base_p".
2322 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2323 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2324 (d10v_gdbarch_init): Set the frame unwind sniffer.
2325 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2326 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2327 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2328 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2329 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2330 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2332 2003-07-16 Michael Snyder <msnyder@redhat.com>
2334 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2335 should go thru sh_dsp_register_sim_regno, else the dsp regs
2336 will not get the right values.
2338 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2340 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2341 deprecated_store_floating by call to store_typed_floating.
2342 (sh_sh4_register_convert_to_raw): Substitute call to
2343 deprecated_extract_floating by call to extract_typed_floating.
2345 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2347 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2349 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2351 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2352 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2353 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2355 (do_pseudo_register): Remove.
2356 (sh_push_dummy_code): New function.
2357 (sh64_store_struct_return): Rename from sh_store_struct_return.
2358 Only called for sh64 now.
2359 (sh_extract_struct_value_address): Regcache'ify.
2360 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2361 and accomodate new tasks.
2362 (sh64_push_return_address): Rename from sh_push_return_address.
2363 Only called for sh64 now.
2364 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2366 (sh3e_sh4_extract_return_value): Regcache'ify.
2367 (sh_default_store_return_value): Ditto.
2368 (sh3e_sh4_store_return_value): Ditto.
2369 (sh_default_register_byte): Remove.
2370 (sh_sh4_register_byte): Remove.
2371 (sh_default_register_raw_size): Remove.
2372 (sh_sh4_register_raw_size): Remove.
2373 (sh_register_virtual_size): Remove.
2374 (sh_sh3e_register_virtual_type): Remove.
2375 (sh_sh3e_register_type): New function.
2376 (sh_sh4_register_virtual_type): Remove.
2377 (sh_sh4_register_type): New function.
2378 (sh_default_register_virtual_type): Remove.
2379 (sh_default_register_type): New function.
2380 (do_fv_register_info): Add parameters to accomodate call from
2381 sh_print_registers_info.
2382 (do_dr_register_info): Ditto.
2383 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2384 Add parameters to accomodate call from sh_print_registers_info.
2385 (sh_do_fp_register): Ditto.
2386 (sh64_do_pseudo_register): Call do_dr_register_info,
2387 do_fv_register_info and sh_do_fp_register with default parameters.
2388 (sh_do_register): Add parameters to accomodate call from
2389 sh_print_registers_info.
2390 (sh_print_register): Ditto.
2391 (sh_print_registers_info): Rename from sh_do_registers_info.
2392 Add parameters to be used as gdbarch_print_registers_info
2393 implementation. Accomodate removed do_pseudo_register function
2395 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2396 function pointer. Call sh_print_register with default parameters.
2397 (sh64_do_registers_info): Call sh_print_registers_info instead of
2398 sh_do_registers_info.
2399 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2400 detection of deprecated vs. non-deprecated functionality.
2401 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2402 function pointer assignments by direct function calls.
2404 2003-07-15 Andrew Cagney <cagney@redhat.com>
2406 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2407 (frame_register_unwind, create_new_frame): Ditto.
2408 (legacy_get_prev_frame, get_frame_type): Ditto.
2409 (get_frame_base_address): Use frame_base_find_by_frame.
2410 (get_frame_locals_address): Use frame_base_find_by_frame.
2411 (get_frame_args_address): Use frame_base_find_by_frame.
2412 * frame-base.h (frame_base_sniffer_ftype): Declare.
2413 (frame_base_append_sniffer): Declare.
2414 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2415 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2416 (frame_base_append_sniffer): New function.
2417 (frame_base_append_predicate): Add a NULL sniffer.
2418 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2419 (struct frame_base_table): Add "sniffer".
2420 (frame_base_free): Free the "sniffer" table.
2421 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2422 (frame_unwind_append_sniffer): Declare.
2423 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2424 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2425 (struct frame_unwind_table): Add "sniffer", delete "middle".
2426 (append_predicate): Add "sniffer" parameter, append the sniffer.
2427 (frame_unwind_init): Update append_predicate call.
2428 (frame_unwind_append_sniffer): New function.
2429 (frame_unwind_append_predicate): Update append_predicate call.
2430 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2432 2003-07-15 Andrew Cagney <cagney@redhat.com>
2434 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2435 before code inhibiting repeated unwind attempts. Add to
2436 commentary on that test's problems.
2437 * blockframe.c (inside_main_func): Look for "main" in the minimal
2439 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2442 2003-07-15 Andrew Cagney <cagney@redhat.com>
2444 * complaints.c (struct explanation): Define.
2445 (struct complaints): Change type of "explanation" to "struct
2447 (symfile_explanations): Convert to a "struct explanation" table.
2448 (vcomplaint): Update.
2450 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2452 * x86-64-linux-nat.c (regmap): Removed.
2453 (supply_gregset, fill_gregset): Call
2454 x86_64_linux_(fill,supply)_gregset functions.
2455 * x86-64-linux-tdep.c (USER_*): New defines.
2456 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2457 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2459 (fetch_core_registers): Ditto.
2460 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2461 * x86-64-linux-tdep.h: New file.
2462 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2464 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2466 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2468 * x86-64-tdep.c (x86_64_store_return_value): Use
2469 regcache_cooked_write_part instead of regcache_cooked_write.
2471 * configure.host: Add x86_64-*-freebsd*.
2472 * configure.tgt: Add x86_64-*-freebsd*.
2473 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2474 * amd64fbsd-nat.c: New file.
2475 * amd64fbsd-tdep.c: New file.
2476 * config/i386/nm-fbsd64.h: New file.
2477 * config/i386/fbsd64.mh: New file.
2478 * config/i386/fbsd64.mt: New file.
2480 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2482 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2483 `sc_regs_offset' and `sc_fpregs_offset'.
2484 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2485 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2486 (alpha_sigtramp_register_address): Rewrite to use new members of
2487 `struct gdbarch_tdep'.
2488 (alpha_gdbarch_init): Initialize new members of struct
2490 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2491 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2492 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2493 (alphafbsd_pc_in_sigtramp): Implement.
2494 (alphafbsd_sigtramp_offset): New function.
2495 (alphafbsd_sigcontext_addr): New function.
2496 (alphafbsd_init_abi): Initialize signal trampoline related members
2497 of `struct gdbarch_tdep'.
2498 (_initialize_alphafbsd_tdep): Add prototype.
2500 2003-07-11 Theodore A. Roth <troth@openavr.org>
2502 * Makefile.in (install-only): Quote sed expression when generating
2505 2003-07-11 Richard Henderson <rth@redhat.com>
2507 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2508 * dwarf2-frame.c: Include complaints.h.
2509 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2510 variable initialization; return NULL on error.
2511 (decode_frame_entry): New.
2513 2003-07-11 Andrew Cagney <cagney@redhat.com>
2515 * frame.h (frame_address_in_block): Delete declaration.
2516 * blockframe.c (frame_address_in_block): Delete function.
2517 (get_frame_block): Use get_frame_address_in_block.
2518 (block_innermost_frame): Ditto.
2519 * stack.c (print_frame, backtrace_command_1): Ditto.
2521 * frame.h (get_frame_address_in_block): Declare.
2522 (frame_unwind_address_in_block): Declare.
2523 * frame.c (frame_unwind_address_in_block): New function.
2524 (get_frame_address_in_block): New function.
2526 2003-07-10 Andrew Cagney <cagney@redhat.com>
2528 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2529 pre-default. Note: re-generate has no effect.
2531 2003-07-10 Andrew Cagney <cagney@redhat.com>
2533 * gdbarch.sh: When a variable, but not a function, compare against
2534 0. Fix problem in previous patch.
2535 * gdbarch.c: Re-generate.
2537 2003-07-10 Andrew Cagney <cagney@redhat.com>
2539 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2540 functions against NULL, not 0.
2541 * gdbarch.c: Re-generate.
2543 2003-07-10 Fred Fish <fnf@ninemoons.com>
2545 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2546 null string instead of a null pointer.
2547 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2549 2003-07-09 Michael Snyder <msnyder@redhat.com>
2551 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2553 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2555 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2556 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2557 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2558 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2559 * x86-64-tdep.c: ... from here.
2561 2003-07-09 Andreas Schwab <schwab@suse.de>
2563 * m68k-tdep.h (enum struct_return): Define.
2564 (struct gdbarch_tdep): Add struct_return.
2565 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2566 bytes are padded to the right, not to the left. Pass struct value
2567 address in register %a1, not on stack.
2568 (m68k_use_struct_convention): New function.
2569 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2570 struct_return in tdep to pcc_struct_return.
2571 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2574 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2576 * somread.c (som_symfile_offsets): Fix compilation error.
2578 2003-07-09 Andrew Cagney <cagney@redhat.com>
2580 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2581 Add comments about the checks.
2583 2003-07-08 Andrew Cagney <cagney@redhat.com>
2585 * Makefile.in: Make dependency section headers consistent.
2586 (config_h): Move to $BUILD headers section.
2587 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2588 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2589 (ada-exp.tab.c): Move to YACC/LEX section.
2590 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2591 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2593 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2595 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2596 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2597 of strerror with safe_strerror, use ISO C function definitions,
2598 and replace instances of sprintf with snprintf.
2600 2003-07-07 Andrew Cagney <cagney@redhat.com>
2602 * frame.c (get_prev_frame): Enable check for identical frames.
2603 Update comments. Update error messages.
2605 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2607 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2609 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2611 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2612 sort_symtab_syms, no longer necessary.
2614 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2616 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2618 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2620 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2621 (mips_register_byte): Likewise.
2623 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2625 * Makefile.in (sparc_tdep_h): New.
2626 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2627 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2628 * sparc-linux-nat.c: Include "sparc-tdep.h".
2629 * sparc-nat.c: Likewise.
2630 * sparc-tdep.c: Likewise.
2631 * sparc64nbsd-nat.c: Likewise.
2632 * sparcnbsd-nat.c: Likewise.
2633 * sparcnbsd-tdep.c: Likewise.
2634 * sparc-tdep.h: New file.
2635 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2636 and sparc_npc_regnum.
2638 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2640 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2641 (mips_linux_cannot_store_register): List supported instead of
2642 unsupported registers.
2644 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2646 * disasm.c (dump_insns): Separate instructions from addresses.
2648 2003-07-07 Andreas Schwab <schwab@suse.de>
2650 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2652 * m68k-tdep.c (NUM_FREGS): Delete.
2653 (SIG_PC_FP_OFFSET): Delete.
2654 (TARGET_M68K): Delete.
2655 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2656 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2657 P_MOVEL_SP, P_MOVEML_SP): Define.
2658 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2660 (m68k_register_raw_size): Delete.
2661 (m68k_register_virtual_size): Delete.
2662 (m68k_register_type): Renamed from m68k_register_virtual_type and
2663 add gdbarch argument.
2664 (m68k_store_struct_return): Delete.
2665 (m68k_deprecated_extract_return_value): Delete.
2666 (m68k_deprecated_extract_struct_value_address): Delete.
2667 (m68k_frame_chain): Delete.
2668 (m68k_frame_saved_pc): Delete.
2669 (m68k_fix_call_dummy): Delete.
2670 (m68k_push_dummy_frame): Delete.
2671 (m68k_pop_frame): Delete.
2672 (m68k_extract_return_value): New function.
2673 (m68k_store_return_value): Rewrite using regcache.
2674 (m68k_extract_struct_value_address): Rewrite using regcache.
2675 (m68k_push_dummy_call): New function.
2676 (struct m68k_frame_cache): Define.
2677 (m68k_alloc_frame_cache): New function.
2678 (m68k_analyze_frame_setup): New function.
2679 (m68k_analyze_register_saves): New function.
2680 (m68k_analyze_prologue): New function.
2681 (m68k_skip_prologue): Rewrite using above functions.
2682 (m68k_unwind_pc): New function.
2683 (m68k_frame_cache): New function.
2684 (m68k_frame_this_id): New function.
2685 (m68k_frame_prev_register): New function.
2686 (m68k_frame_unwind): New variable.
2687 (m68k_frame_p): New function.
2688 (m68k_sigtramp_frame_cache): New function.
2689 (m68k_sigtramp_frame_this_id): New function.
2690 (m68k_sigtramp_frame_prev_register): New function.
2691 (m68k_sigtramp_frame_unwind): New variable.
2692 (m68k_sigtramp_frame_p): New function.
2693 (m68k_frame_base_address): New function.
2694 (m68k_frame_base): New function.
2695 (m68k_unwind_dummy_id): New function.
2696 (fill_gregset): Use regcache_collect.
2697 (fill_fpregset): Likewise.
2698 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2700 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2701 deprecated_init_frame_pc, deprecated_store_struct_return,
2702 deprecated_extract_return_value, deprecated_store_return_value,
2703 deprecated_frame_chain, deprecated_frame_saved_pc,
2704 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2705 deprecated_register_virtual_size,
2706 deprecated_max_register_raw_size,
2707 deprecated_max_register_virtual_size,
2708 deprecated_register_virtual_type, deprecated_register_size,
2709 deprecated_register_byte, deprecated_register_bytes,
2710 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2711 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2712 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2713 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2714 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2715 deprecated_push_dummy_frame, deprecated_pop_frame,
2716 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2717 only if SYSCALL_TRAP is defined. Set extract_return_value,
2718 store_return_value, extract_struct_value_address, register_type,
2719 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2721 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2722 M68K_MAX_REGISTER_SIZE): Define.
2723 (struct m68k_sigtramp_info): Define.
2724 (struct gdbarch_tdep): Add get_sigtramp_info.
2725 * m68klinux-nat.c (fetch_register): Use register_size instead of
2726 REGISTER_RAW_SIZE. Don't put assignment in if.
2727 (store_register): Likewise.
2728 (fetch_inferior_registers): Likewise.
2729 (store_inferior_registers): Likewise.
2730 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2731 (m68k_linux_frame_saved_pc): Delete.
2732 (m68k_linux_sigcontext_reg_offset,
2733 m68k_linux_ucontext_reg_offset): Define.
2734 (m68k_linux_get_sigtramp_info): New function.
2735 (m68k_linux_extract_return_value): Rewrite using regcache.
2736 (m68k_linux_store_return_value): Likewise.
2737 (m68k_linux_extract_struct_value_address): Likewise.
2738 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2739 Don't set deprecated_frame_saved_pc,
2740 deprecated_extract_return_value, deprecated_store_return_value,
2741 deprecated_extract_struct_value_address. Set
2742 extract_return_value, store_return_value,
2743 extract_struct_value_address.
2745 2003-07-07 Andrew Cagney <cagney@redhat.com>
2747 * expprint.c: Include "user-regs.h" instead of "frame.h".
2748 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2749 frame_map_regnum_to_name.
2750 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2751 (frame_map_name_to_regnum): Simplify, call
2752 user_reg_map_name_to_regnum.
2753 (frame_map_regnum_to_name): Simplify, call
2754 user_reg_map_regnum_to_name.
2755 (frame_register_unwind): Update.
2756 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2757 (_initialize_frame_reg): Call user_reg_add_builtin.
2758 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2759 (value_of_register): Use value_of_user_reg.
2760 * eval.c (evaluate_subexp_standard): Update.
2761 * parse.c (write_dollar_variable): Update.
2762 * d10v-tdep.c (d10v_print_registers_info): Update.
2763 * infcmd.c (registers_info): Update.
2764 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2765 (builtin_regs_h): Delete macro.
2766 (user_regs_h): Define.
2767 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2768 (builtin-regs.o): Delete target.
2769 (user-regs.o): Specify dependencies.
2770 (expprint.o): Update dependencies.
2771 (findvar.o): Update dependencies.
2772 (frame.o): Update dependencies.
2773 (std-regs.o): Update dependencies.
2775 2003-07-06 Christopher Faylor <cgf@redhat.com>
2777 * win32-nat.c (solib_symbols_add): Use one variable for all section
2778 address stuff. Pass variable rather than address of variable to
2779 safe_symbol_file_add.
2781 2003-07-06 Andreas Schwab <schwab@suse.de>
2783 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2785 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2787 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2789 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2791 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2793 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2795 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2796 * config/i386/nto.mh: New file.
2797 * config/i386/nm-nto.h: New file.
2798 * configure.host: Add i[3456]86-*-nto*.
2800 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2802 * remote-vx.c (vx_add_symbols): Fix compilation error.
2804 2003-07-03 Andrew Cagney <cagney@redhat.com>
2806 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2807 * gdbarch.h, gdbarch.c: Re-generate.
2808 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2809 (legacy_register_name): Declare.
2810 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2811 (REGISTER_NAME): Define.
2812 * sparc-tdep.c (legacy_register_name): New function.
2813 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2814 (REGISTER_NAME): Define.
2815 (hppa64_register_name): Declare.
2816 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2817 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2818 (hppa64_register_name): New function.
2819 (hppa_register_name): New function.
2820 * arch-utils.c (legacy_register_name): Delete.
2821 * arch-utils.h (legacy_register_name): Delete.
2823 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2825 * cli/cli-interp.c (cli_interpreter_resume): Update the
2826 cli_uiout's stream to gdb_stdout.
2828 2003-07-03 Andrew Cagney <cagney@redhat.com>
2830 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2832 * gdbarch.h, gdbarch.c: Re-generate.
2833 * regcache.c (init_regcache_descr): Use legacy code when either
2834 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2836 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2838 * NEWS: Move "set logging" entry into GDB 6.0 section.
2840 2003-07-02 Jim Blandy <jimb@redhat.com>
2842 * s390-tdep.c (struct frame_extra_info): new member:
2843 'stack_bought_valid'.
2844 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2845 initialize fextra_info->stack_bought.
2846 (s390_frameless_function_invocation): Don't trust the value of
2847 fextra_info_ptr->stack_bought unless
2848 fextra_info->stack_bought_valid is set.
2850 New S390 prologue analyzer.
2851 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2852 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2853 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2854 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2855 compute_x_addr, s390_on_stack, s390_store,
2856 s390_get_signal_frame_info): New functions.
2857 (S390_NUM_SPILL_SLOTS): New macro.
2858 (s390_get_frame_info): Rewritten.
2859 (is_arg_reg): Deleted.
2861 Break out the decoding of S/390 instructions into separate
2862 functions, to make it more legible, and easier to check
2864 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2865 is_rx, is_rxe): New functions.
2866 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2867 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2868 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2869 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2870 enums for opcode values. (Is this an improvement?)
2872 2003-07-02 Andrew Cagney <cagney@redhat.com>
2874 * i386-tdep.c: Revert change committed as part of trad-frame code
2877 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2879 * breakpoint.c (insert_catchpoint): Make static.
2881 2003-07-02 Andreas Schwab <schwab@suse.de>
2883 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2884 former ia64_push_arguments and ia64_push_return_address, and use
2885 regcache functions instead of read/write_register.
2886 (ia64_gdbarch_init): Set push_dummy_call instead of
2887 deprecated_push_arguments and deprecated_push_return_address.
2889 2003-07-01 Andreas Jaeger <aj@suse.de>
2891 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2893 Set %rax only to number of SSE registers used.
2895 2003-07-01 Andrew Cagney <cagney@redhat.com>
2897 * trad-frame.h: Update comments, a -1 .addr is reserved.
2898 (trad_frame_value_p, trad_frame_addr_p): Declare.
2899 (trad_frame_reg_p): Declare.
2900 (trad_frame_set_value): Rename trad_frame_register_value.
2901 (trad_frame_set_unknown): Declare.
2902 * trad-frame.c (trad_frame_realreg_p): New function.
2903 (trad_frame_addr_p, trad_frame_value_p): New function.
2904 (trad_frame_set_unknown): New function.
2905 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2906 (trad_frame_prev_register): Use trad_frame_realreg_p,
2907 trad_frame_addr_p and trad_frame_value_p.
2908 (trad_frame_set_value): Rename trad_frame_register_value.
2909 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2910 and trad_frame_set_value.
2912 2003-06-30 Jim Blandy <jimb@redhat.com>
2914 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2915 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2916 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2917 for 16 registers, and then 32 more bytes.
2918 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2920 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2921 Move up in the file, since it's now used by is_simple_arg.
2922 (is_simple_arg): Don't assume registers are four bytes long.
2923 Exclude all double arguments. Extended floats are not simple
2925 (is_power_of_two): New function.
2926 (pass_by_copy_ref): Call is_power_of_two, and check that the
2927 length fits in a register, rather than listing all the acceptable
2928 sizes. Extended floats are not passed by reference.
2929 (s390_push_arguments): Don't assume registers are four bytes long.
2930 Reserve an argument register to point to the buffer for structures
2931 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2932 S390_STACK_FRAME_OVERHEAD.
2934 2003-06-30 Andreas Schwab <schwab@suse.de>
2936 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2937 format error message.
2939 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2941 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2943 2003-06-30 David Carlton <carlton@kealia.com>
2945 Band-aid for PR c++/1245.
2946 * Makefile.in (cp-support.o): Depend on complaints_h.
2947 * cp-support.c: Include complaints.h. Add declaration for
2948 find_last_component.
2949 (cp_find_first_component): Separate code into
2950 cp_find_first_component_aux.
2951 (cp_find_first_component_aux): Call demangled_name_complaint.
2952 (demangled_name_complaint): New.
2954 2003-06-30 Andrew Cagney <cagney@redhat.com>
2956 * remote.c (remote_write_bytes): Explicitly compute and then use
2957 the payload size. Update comments to reflect. Fixes problem of
2958 GDB not sending small packets as found by Fred Fish.
2960 2003-06-30 Andrew Cagney <cagney@redhat.com>
2962 * remote.c (remote_async_wait): Fix -Wformat problem.
2964 2003-06-29 Andrew Cagney <cagney@redhat.com>
2966 * remote.c (remote_wait): Call error, and not warning, when the
2968 (remote_async_wait): Ditto.
2970 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2972 * sparc-tdep.c (sparc_y_regnum): Make external again.
2974 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2976 * cli/cli-logging.c (pop_output_files): Add void to function
2979 2003-06-29 Andrew Cagney <cagney@redhat.com>
2981 * frame.c (frame_register_unwind): Use unsigned char when dumping
2982 the buffer contents.
2984 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2986 * cli/cli-logging.c: New file.
2987 * cli-out.c (struct ui_out_data): Add original_stream.
2988 (cli_redirect): New function.
2989 (cli_ui_out_impl): Add cli_redirect.
2990 (cli_out_new): Initialize original_stream.
2991 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2992 (uo_redirect, ui_out_redirect): New.
2993 * ui-out.h (struct ui_out_impl): Add redirect member.
2994 (redirect_ftype): New.
2995 (ui_out_redirect): Add prototype.
2996 * Makefile.in: Add rules for cli-logging.c.
2997 * NEWS: Mention "set logging".
2999 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3001 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3003 2003-06-27 Andrew Cagney <cagney@redhat.com>
3005 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3006 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3007 * avr-tdep.c (avr_call_dummy_address): Delete function.
3008 (avr_gdbarch_init): Do not set call_dummy_address.
3010 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3012 * symfile.c (syms_from_objfile): Move variables to inner block.
3013 Move the checks for the non-mainline case a bit earlier to avoid
3014 doing some useless computations.
3016 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3018 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3020 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3022 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3025 2003-06-26 Michael Chastain <mec@shout.net>
3027 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3028 gdb/testsuite/gdb.c++/pr-1210.exp.
3030 2003-06-26 Andrew Cagney <cagney@redhat.com>
3032 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3033 altivec_expression.h and altivec_registers.h.
3035 2003-06-26 Andrew Cagney <cagney@redhat.com>
3037 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3038 info->mach when MIPS16. Patch suggested by Fred Fish.
3040 2003-06-26 Andrew Cagney <cagney@redhat.com>
3042 * utils.c (internal_vproblem): Print the problem to a reason
3043 buffer and then pass to query. Make the msg variable more local.
3045 2003-06-26 Andrew Cagney <cagney@redhat.com>
3047 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3048 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3049 * gdbarch.h, gdbarch.c: Re-generate.
3050 * frame-base.c (default_frame_args_address): Update. Use
3051 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3053 (default_frame_locals_address): Ditto for
3054 DEPRECATED_FRAME_LOCALS_ADDRESS.
3055 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3056 (vax_frame_num_args): Update.
3057 (vax_gdbarch_init): Update.
3058 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3059 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3060 * mcore-tdep.c (mcore_gdbarch_init): Update.
3061 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3062 * ia64-tdep.c (ia64_gdbarch_init): Update.
3063 * symtab.h (address_class): Update comments.
3064 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3065 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3066 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3067 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3068 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3069 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3070 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3071 * alpha-mdebug-tdep.c: Update.
3072 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3074 2003-06-26 Andreas Jaeger <aj@suse.de>
3076 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3077 of SSE registers so that varargs functions work. Rework handling
3078 of passing arguments on the stack.
3079 (x86_64_store_return_value): Return double and float values in SSE
3082 2003-06-24 Michael Chastain <mec@shout.net>
3084 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3085 the "constructor breakpoints ignored" bug.
3087 2003-06-25 David Carlton <carlton@kealia.com>
3089 * MAINTAINERS: Update e-mail address.
3091 2003-06-24 Jim Blandy <jimb@redhat.com>
3093 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3095 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3097 (ppc_linux_init_abi): Register it as the
3098 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3100 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3101 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3104 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3105 (ppc64_standard_linkage_target): Use it.
3107 2003-06-23 Andrew Cagney <cagney@redhat.com>
3109 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3110 for 0 "int0" and 4 "int32" sized registers.
3111 * gdbtypes.c (builtin_type_int0): Define.
3112 (build_gdbtypes): Initialize builtin_type_int0.
3113 * gdbtypes.h (builtin_type_int0): Declare.
3115 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3117 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3118 as characters are unsigned.
3120 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3123 * dwarfread.c (struct_type): Skip static fields without crashing.
3125 2003-06-22 Andrew Cagney <cagney@redhat.com>
3127 GDB 6.0 branch created.
3129 * PROBLEMS: Update. Empty.
3132 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3134 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3135 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3137 2003-06-22 Andrew Cagney <cagney@redhat.com>
3139 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3140 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3143 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3145 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3148 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3150 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3151 argument of val_print.
3152 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3153 to the address argument of baseclass_offset or target_read_memory.
3154 Do add it to the argument of cp_print_value_fields.
3156 2003-06-21 Andrew Cagney <cagney@redhat.com>
3158 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3159 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3160 instead of 0..NUM_REGS.
3161 (mips_register_reggroup_p): New function.
3162 (mips_pseudo_register_write): New function.
3163 (mips_pseudo_register_read): New function.
3164 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3165 based on the register's type.
3166 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3168 (mips_get_saved_register): Simplify. Assert that REGNO is a
3170 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3171 (mips_register_type): Replace mips_register_virtual_type. Map
3172 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3174 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3175 that the register is cooked / virtual.
3176 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3177 Only get the extra info when needed.
3178 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3179 (mips32_heuristic_proc_desc): Fetch the cooked register.
3180 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3181 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3182 (mips_print_register): Use gdbarch_register_type, instead of
3183 REGISTER_VIRTUAL_TYPE.
3184 (print_gp_register_row): Use gdbarch_register_type, instead of
3185 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3186 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3187 Print the pseudo / cooked registers.
3188 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3189 Print the pseudo / cooked registers.
3190 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3191 REG_NUM is pseudo / cooked.
3192 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3193 (mips_n32n64_xfer_return_value): Ditto.
3194 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3195 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3196 (mips_register_sim_regno): New function.
3197 (mips_gdbarch_init): Set deprecated_register_byte,
3198 register_group_p, pseudo_register_write, pseudo_register_read,
3199 register_sim_regno, and num_pseudo_regs. Set register_type,
3200 instead of register_virtual_type.
3201 * Makefile.in (mips-tdep.o): Update dependencies.
3202 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3203 REGISTER_VIRTUAL_TYPE.
3204 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3205 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3206 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3207 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3208 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3210 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3212 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3213 * cli/cli-cmds.c: Include "gdb_vfork.h".
3214 (shell_escape): Use vfork.
3216 2003-06-21 Andrew Cagney <cagney@redhat.com>
3218 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3219 32 bit floating-point register saves.
3221 * frame.h (deprecated_unwind_get_saved_register): Delete.
3222 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3223 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3224 and deprecated_get_next_frame_hack instead of
3225 deprecated_unwind_get_saved_register.
3227 * mips-tdep.c (mips_dump_tdep): Do not print
3228 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3230 * frame.c (get_frame_register): New function.
3231 (frame_unwind_register_signed): New function.
3232 (get_frame_register_signed): New function.
3233 (frame_unwind_register_unsigned): New function.
3234 (get_frame_register_unsigned): New function.
3235 * frame.h: Add comments on naming schema.
3236 (get_frame_register, frame_unwind_register_signed): Declare.
3237 (get_frame_register_signed, get_frame_register_signed): Declare.
3238 (frame_unwind_register_unsigned): Declare.
3239 (get_frame_register_unsigned): Declare.
3241 2003-06-20 Theodore A. Roth <troth@openavr.org>
3243 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3245 2003-06-20 Theodore A. Roth <troth@openavr.org>
3247 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3248 (avr_read_sp): Ditto.
3250 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3252 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3253 * config/arm/nm-linux.h: Likewise.
3254 * config/arm/tm-linux.h: Likewise.
3255 * config/ia64/nm-linux.h: Likewise.
3256 * config/ia64/tm-ia64.h: Likewise.
3257 * config/s390/tm-linux.h: Likewise.
3258 * config/s390/tm-s390.h: Likewise.
3259 * s390-nat.c: Likewise.
3260 * s390-tdep.c: Likewise.
3262 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3263 * config/ia64/linux.mt: Likewise.
3264 * config/m68k/linux.mh: Likewise.
3265 * config/mips/linux.mt: Likewise.
3266 * config/powerpc/linux.mh: Likewise.
3267 * config/sh/linux.mt: Likewise.
3269 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3271 * solib.c (solib_open): Change tests for whether to search
3272 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3275 2003-06-19 Theodore A. Roth <troth@openavr.org>
3277 * avr-tdep.c (avr_frame_address): Delete function.
3278 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3279 set_gdbarch_frame_args_address.
3281 2003-06-19 Andrew Cagney <cagney@redhat.com>
3283 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3284 (REGISTER_CONVERT_FROM_TYPE): Delete.
3285 (mips_register_convert_to_type): Delete declaration.
3286 (mips_register_convert_from_type): Delete declaration.
3287 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3290 2003-06-19 Michael Snyder <msnyder@redhat.com>
3292 * linux-nat.h: New file.
3293 * linux-nat.c: Include linux-nat.h.
3294 * lin-lwp.c: Include linux-nat.h.
3295 Move struct lwp_info def to linux-nat.h.
3296 * linux-proc.c: Include linux-nat.h.
3297 (linux_make_note_section): Iterate over lwps instead of threads.
3298 (linux_do_thread_registers): Use lwp instead of merged pid.
3299 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3300 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3301 Add dependency on linux_nat_h.
3303 2003-06-19 Theodore A. Roth <troth@openavr.org>
3305 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3307 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3309 * varobj.c (get_type, get_target_type): Use check_typedef.
3311 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3313 * breakpoint.c (insert_catchpoint): Call internal_error.
3315 2003-06-19 Theodore A. Roth <troth@openavr.org>
3317 * avr-tdep.c (avr_push_dummy_code): Delete function.
3318 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3320 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3322 * arch-utils.c (default_prepare_to_proceed): Remove.
3323 (generic_prepare_to_proceed): Remove.
3324 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3325 (generic_prepare_to_proceed): Remove prototype.
3326 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3327 * gdbarch.c: Regenerate.
3328 * gdbarch.h: Regenerate.
3329 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3330 * hppah-nat.c (hppa_switched_threads): Remove.
3331 * infrun.c (prepare_to_proceed): New static function, copied from
3332 generic_prepare_to_proceed. Remove select_it argument.
3333 (proceed): Call prepare_to_proceed.
3334 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3336 (ptrace_wait): Don't set the removed variables.
3337 (hppa_switched_threads): Remove.
3338 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3339 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3340 (lin_lwp_prepare_to_proceed): Remove prototype.
3341 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3342 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3344 2003-06-18 Theodore A. Roth <troth@openavr.org>
3346 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3348 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3349 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3350 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3351 (AVR_PROLOGUE_*): Enumerate prologue types.
3352 (struct frame_extra_info): Remove.
3353 (struct avr_unwind_cache): Define.
3354 (avr_write_sp): Delete function.
3355 (avr_read_fp): Ditto.
3356 (avr_init_extra_frame_info): Ditto.
3357 (avr_pop_frame): Ditto.
3358 (avr_frame_saved_pc): Ditto.
3359 (avr_saved_pc_after_call): Ditto.
3360 (avr_push_return_address): Ditto.
3361 (avr_frame_chain): Ditto.
3362 (avr_store_struct_return): Ditto.
3363 (avr_push_arguments): Ditto.
3364 (avr_scan_prologue): Update comments. Changed to set up the info for
3365 cache unwinding. Now returns end of prologue PC.
3366 (avr_skip_prologue): Better handling of functions lacking a prologue
3367 by using avr_scan_prologue.
3368 (avr_scan_arg_moves): New function.
3369 (avr_saved_regs_unwinder): Ditto.
3370 (avr_frame_unwind_cache): Ditto.
3371 (avr_unwind_pc): Ditto.
3372 (avr_frame_this_id): Ditto.
3373 (avr_frame_prev_register): Ditto.
3374 (avr_frame_p): Ditto.
3375 (avr_frame_base_address ): Ditto.
3376 (avr_unwind_dummy_id): Ditto.
3377 (avr_push_dummy_code): Ditto.
3378 (push_stack_item): Ditto.
3379 (pop_stack_item): Ditto.
3380 (avr_push_dummy_call): Ditto.
3381 (struct stack_item): Define.
3382 (avr_frame_unwind): Declare structure.
3383 (avr_frame_base): Ditto.
3384 (avr_gdbarch_init): Remove calls to
3385 set_gdbarch_deprecated_init_frame_pc,
3386 set_gdbarch_deprecated_target_read_fp,
3387 set_gdbarch_deprecated_dummy_write_sp,
3388 set_gdbarch_deprecated_fp_regnum,
3389 set_gdbarch_deprecated_push_arguments,
3390 set_gdbarch_deprecated_push_return_address,
3391 set_gdbarch_deprecated_pop_frame,
3392 set_gdbarch_deprecated_store_struct_return,
3393 set_gdbarch_deprecated_frame_init_saved_regs,
3394 set_gdbarch_deprecated_init_extra_frame_info,
3395 set_gdbarch_deprecated_frame_chain,
3396 set_gdbarch_deprecated_frame_saved_pc,
3397 set_gdbarch_deprecated_saved_pc_after_call.
3398 Add calls to set_gdbarch_push_dummy_call,
3399 set_gdbarch_push_dummy_code,
3400 frame_unwind_append_predicate,
3401 frame_base_set_default,
3402 set_gdbarch_unwind_dummy_id,
3403 set_gdbarch_unwind_pc.
3406 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3408 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3409 registers for H8/300S.
3410 (h8300_print_registers_info): Ditto.
3411 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3413 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3415 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3416 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3417 (lin_lwp_wait): Likewise. Update comments.
3418 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3419 (pull_pid_from_list, linux_record_stopped_pid): New.
3421 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3423 * ada-lang.c (scan_discrim_bound): Name first argument.
3424 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3425 declared by ALL_BLOCK_SYMBOLS.
3427 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3429 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3430 ("regcache.h"): Include it.
3431 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3433 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3435 * NEWS: Mention gdbserver detach change and "disconnect" command.
3436 * infcmd.c (disconnect_command): New function.
3437 (_initialize_infcmd): Add ``disconnect'' command.
3438 * remote.c (remote_async_detach): Delete.
3439 (remote_detach): Merge remote_async_detach.
3440 (remote_disconnect): New.
3441 (init_remote_ops): Set to_disconnect.
3442 (init_remote_cisco_ops): Likewise.
3443 (init_remote_async_ops): Likewise. Use remote_detach.
3444 * target.c (cleanup_target): Default to_disconnect.
3445 (update_current_target): Inherit to_disconnect.
3446 (target_disconnect, debug_to_disconnect): New functions.
3447 (setup_target_debug): Set to_disconnect.
3448 * target.h (struct target_ops): Add to_disconnect.
3449 (target_disconnect): Add prototype.
3451 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3453 * breakpoint.c (insert_catchpoint): New function.
3454 (insert_breakpoints): Use catch_exceptions to call
3455 insert_catchpoint. Disable catchpoints if they fail to insert.
3457 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3459 * symfile.c (reread_symbols): Clear sym_private.
3461 2003-06-17 Andrew Cagney <cagney@redhat.com>
3463 * trad-frame.h (struct frame_info): Add opaque declaration.
3464 * remote-fileio.h (struct cmd_list_element): Add opaque
3466 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3469 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3471 * remote.c (remote_prepare_to_store): Replace call to
3472 deprecated_read_register_bytes with multiple regcache_raw_read
3475 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3477 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3478 (nto_find_and_open_solib): Likewise.
3479 (nto_init_solib_absolute_prefix): Likewise.
3480 (_initialize_nto_tdep): Fix indentation.
3482 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3484 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3486 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3488 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3490 2003-06-17 Jim Blandy <jimb@redhat.com>
3492 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3494 2003-06-16 Theodore A. Roth <troth@openavr.org>
3496 * avr-tdep.c (avr_extract_return_value): New function.
3497 (avr_gdbarch_init): Set extract_return_value method.
3499 2003-06-16 Andrew Cagney <cagney@redhat.com>
3501 * frame.h (deprecated_get_next_frame_hack): Declare.
3502 * frame.c (legacy_saved_regs_prev_register): Only require
3503 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3504 there are always saved regs.
3505 (deprecated_generic_get_saved_register): Do not require
3506 DEPRECATED_FRAME_INIT_SAVED_REGS.
3507 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3508 use frame ID unwind instead.
3509 (deprecated_get_next_frame_hack): New function.
3511 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3513 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3514 (h8300_push_dummy_call): ...this function. Some minor optimization.
3515 (h8300_push_return_address): Remove.
3516 (h8300_gdbarch_init): Remove calls to
3517 set_gdbarch_deprecated_dummy_write_sp,
3518 set_gdbarch_deprecated_push_arguments and
3519 set_gdbarch_deprecated_push_return_address.
3520 Add call to set_gdbarch_push_dummy_call.
3522 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3524 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3525 (E_PSEUDO_EXR_REGNUM): Ditto.
3526 (h8300_is_argument_spill): Check for instructions moving argument
3527 registers into safe registers.
3528 (h8300_skip_prologue): Check for stm instruction to push registers
3529 used for register variables onto stack.
3530 (gdb_print_insn_h8300): Remove.
3531 (h8300_examine_prologue): Add a comment.
3532 (h8300_register_name): Take pseudo registers into account.
3533 (h8300s_register_name): Ditto.
3534 (h8300sx_register_name): Ditto.
3535 (h8300_print_register): Ditto.
3536 (h8300_print_registers_info): Define "nice" printing order.
3537 (h8300_saved_pc_after_call): Take pseudo registers into account.
3538 (h8300_register_type): Ditto. Return type used for remote connection
3539 when requesting real CCR or EXR register, return actual type when
3540 requesting pseudo CCR or EXR.
3541 (h8300_pseudo_register_read): New function.
3542 (h8300_pseudo_register_write): Ditto.
3543 (h8300_dbg_reg_to_regnum): Ditto.
3544 (h8300s_dbg_reg_to_regnum): Ditto.
3545 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3546 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3547 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3548 set_gdbarch_print_insn architecture dependent.
3549 Call set_gdbarch_pseudo_register_read and
3550 set_gdbarch_pseudo_register_write.
3551 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3553 2003-06-16 Andrew Cagney <cagney@redhat.com>
3555 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3556 * gdbarch.h, gdbarch.c: Re-generate.
3557 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3558 * s390-tdep.c (s390_gdbarch_init): Update.
3559 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3560 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3561 * mips-tdep.c (mips_gdbarch_init): Update.
3562 * mcore-tdep.c (mcore_gdbarch_init): Update.
3563 * cris-tdep.c (cris_gdbarch_init): Update.
3564 * infcall.c (call_function_by_hand): Update.
3565 * ia64-tdep.c (ia64_push_arguments): Update comment.
3566 * frame.c (legacy_get_prev_frame): Do not assume
3567 SAVE_DUMMY_FRAME_TOS_P.
3568 * dummy-frame.c (find_dummy_frame): Update comment.
3570 2003-06-16 Andrew Cagney <cagney@redhat.com>
3572 * regcache.c (do_cooked_read): Do not use register_valid_p.
3574 2003-06-15 Theodore A. Roth <troth@openavr.org>
3576 * avr-tdep.c (avr_register_type): Remove a blank line.
3577 (avr_scan_prologue): Correct some comments.
3579 2003-06-15 Theodore A. Roth <troth@openavr.org>
3581 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3583 Properly scan prologues generated by gcc with the -mcall-prologues
3585 Add code to scan -mcall-prologues for mega devices.
3587 2003-06-15 Theodore A. Roth <troth@openavr.org>
3589 * avr-tdep.c (avr_register_byte): Delete function.
3590 (avr_register_raw_size): Delete function.
3591 (avr_register_virtual_size): Delete function.
3592 (avr_register_virtual_type): Delete function.
3593 (avr_register_type): New function.
3594 (avr_address_to_pointer): Remove unused code.
3595 (avr_read_fp): Need to read FP as two separate bytes due to change to
3596 avr_register_type() usage.
3597 (avr_gdbarch_init): Don't set deprecated_register_size.
3598 Don't set deprecated_register_bytes.
3599 Don't set deprecated_register_byte.
3600 Don't set deprecated_register_raw_size.
3601 Don't set deprecated_max_register_raw_size.
3602 Don't set deprecated_register_virtual_size.
3603 Don't set deprecated_max_register_virtual_size.
3604 Don't set deprecated_register_virtual_type.
3605 Set register_type method.
3607 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3609 * Makefile.in (linux-nat.o): Add rule.
3610 * linux-nat.c: New file.
3611 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3612 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3613 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3614 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3615 * config/arm/linux.mh (NATDEPFILES): Likewise.
3616 * config/i386/linux.mh (NATDEPFILES): Likewise.
3617 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3618 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3619 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3620 * config/mips/linux.mh (NATDEPFILES): Likewise.
3621 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3622 * config/s390/s390.mh (NATDEPFILES): Likewise.
3623 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3625 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3627 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3628 replace out-of-date comment.
3630 2003-06-15 Andrew Cagney <cagney@redhat.com>
3632 * rdi-share/host.h (Fail): Change to a varargs function.
3633 * remote-rdi.c (Fail): Update.
3635 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3637 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3638 (i386_convert_register_p, i386_register_to_value,
3639 i386_register_from_value): Handle types longer than 8 bytes.
3641 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3643 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3644 Move floating-point code to new function in i387-tdep.c.
3645 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3646 New functions containing code moved here from i386-tdep.c.
3647 * i387-tdep.h: Add opaque declaration for `struct type'.
3648 (i387_register_to_value, i387_value_to_register): New prototypes.
3649 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3650 (x86_64_init_abi): Set convert_register_p, register_to_value and
3651 value_to_register here.
3653 2003-06-14 Andrew Cagney <cagney@redhat.com>
3655 * mips-tdep.c (mips_register_to_value): Make static.
3656 (mips_value_to_register): Make static.
3657 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3658 * ia64-tdep.c (ia64_register_raw_size): Make static.
3659 (ia64_register_virtual_size): Make static.
3660 (ia64_register_byte): Make static.
3661 * i387-tdep.c: Include "i387-tdep.h".
3662 (print_387_control_word): Delete function.
3663 (print_387_status_word): Delete function.
3664 (print_387_status_bits): Delete function.
3665 (print_387_control_bits): Delete function.
3666 * Makefile.in (i387-tdep.o): Update dependencies.
3667 * rdi-share/host.h (Fail): Declare.
3668 * remote-rdi.c (Fail): Update to match declaration.
3670 2003-06-14 Andrew Cagney <cagney@redhat.com>
3672 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3673 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3674 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3675 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3676 * README: Delete reference to remote-array.
3677 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3678 (remote-array.o): Delete target.
3679 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3680 * remote-array.c: Delete file.
3682 2003-06-14 Andrew Cagney <cagney@redhat.com>
3683 Mark Kettenis <kettenis@gnu.org>
3685 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3686 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3687 parameter with "frame".
3688 * gdbarch.h, gdbarch.c: Re-generate.
3689 * frame.h (put_frame_register): Declare.
3690 * frame.c (put_frame_register): New function.
3691 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3692 (legacy_register_to_value): Rewrite, use "frame" to get the
3694 (legacy_value_to_register): Rewrite, use "frame" to find the
3695 register's location before storing.
3696 * arch-utils.h (legacy_convert_register_p): Update.
3697 (legacy_register_to_value, legacy_value_to_register): Update.
3698 * findvar.c (value_from_register): Rewrite, eliminate use of
3699 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3700 "frame" to REGISTER_TO_VALUE.
3701 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3702 lval_reg_frame_relative + lval_register branch of the switch. Do
3703 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3704 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3705 I386_EDI_REGNUM): New defines.
3706 (i386_next_regnum, i386_convert_register_p,
3707 i386_register_to_value, i386_value_to_register): New functions.
3708 (i386_register_convertible, i386_register_convert_to_virtual,
3709 i386_convert_to_raw): Remove functions.
3710 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3711 value_to_register instead of register_convertible,
3712 register_convert_to_virtual and register_convert_to_raw.
3713 * mips-tdep.c (mips_convert_register_p): New function.
3714 (mips_value_to_register): Replace mips_register_convert_from_type.
3715 (mips_register_to_value): Replace mips_register_convert_to_type.
3716 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3718 * alpha-tdep.c (alpha_convert_register_p): Update.
3719 (alpha_value_to_register): Update, store the register.
3720 (alpha_register_to_value): Update, fetch the register.
3722 2003-06-14 Theodore A. Roth <troth@openavr.org>
3724 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3725 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3726 Don't set deprecated_call_dummy_words.
3727 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3728 Don't set remote_translate_xfer_address.
3729 (avr_io_reg_read_command): Remove commented out debug printf.
3732 2003-06-14 Theodore A. Roth <troth@openavr.org>
3734 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3735 causes gdb to seg fault.
3737 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3739 * sparc-nat.c (fetch_inferior_registers): Correct
3740 a reference to "registers".
3742 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3744 * Makefile.in (exc_request_U_h): Define
3745 (exc_request_S_h): Likewise.
3746 (msg_reply_S_h): Likewise.
3747 (msg_U_h): Likewise.
3748 (notify_S_h): Likewise.
3749 (process_reply_S_h): Likewise.
3750 (gnu-nat.o): Depend on gdb_obstack_h
3751 * gnu-nat.c: Include "gdb_obstack.h".
3753 2003-06-13 Andrew Cagney <cagney@redhat.com>
3755 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3756 * gdbarch.h, gdbarch.c: Re-generate.
3758 2003-06-13 Andrew Cagney <cagney@redhat.com>
3760 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3761 when deprecated REGISTER macros can be deleted.
3762 * gdbarch.h, gdbarch.c: Re-generate.
3764 2003-06-13 Jim Blandy <jimb@redhat.com>
3766 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3767 Linux entry point symbols for _dl_debug_state, too.
3769 2003-06-13 Andrew Cagney <cagney@redhat.com>
3771 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3772 available, do not use the FP register, and always save the TOS.
3773 * dummy-frame.c (dummy_frame_this_id): Do not assert
3774 SAVE_DUMMY_FRAME_TOS.
3775 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3776 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3777 (i386_push_dummy_call): Add 8 to the returned SP.
3778 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3779 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3780 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3781 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3782 (x86_64_push_dummy_call): Return "sp + 16".
3783 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3784 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3785 save_dummy_frame_tos.
3787 2003-06-13 Jim Blandy <jimb@redhat.com>
3789 * frv-tdep.c (frv_use_struct_convention): Delete static
3790 declaration for function deleted in my change of 2003-06-12.
3792 2003-06-13 Theodore A. Roth <troth@openavr.org>
3794 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3795 (avr_pointer_to_address): Shift code addrs left 1 bit.
3796 (avr_convert_from_func_ptr_addr): Delete function since operation is
3797 better handled by avr_address_to_pointer and avr_pointer_to_address.
3798 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3800 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3802 From Kelley Cook <kelleycook@wideopenwest.com>:
3803 * configure.host: Accept i[34567]86 variants.
3804 * configure.tgt: Likewise.
3805 * nlm/configure.in: Likewise.
3806 * nlm/configure: Regenerated.
3808 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3810 * arm-tdep.c (solib-svr4.h): Dont' include it.
3811 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3812 * arm-linux-tdep.c: ... here. Make static.
3813 (arm_linux_init_abi): Register it.
3814 (solib-svr4.h): Include it.
3815 * Makefile.in: Update dependencies.
3816 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3817 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3819 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3821 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3822 indicate registers used for return values.
3823 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3824 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3826 (h8300_init_extra_frame_info): Ditto.
3827 (h8300_frame_locals_address): Removed.
3828 (h8300_frame_args_address): Removed.
3829 (h8300_extract_return_value): Use new regcache structure. Only care
3831 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3832 (h8300_store_return_value): Use new regcache structure. Only care
3834 (h8300h_store_return_value): Same function for 32 bit CPUs.
3835 (h8300_store_struct_return): Removed.
3836 (h8300_extract_struct_value_address): Use new regcache structure.
3837 (h8300h_extract_struct_value_address): Removed.
3838 (h8300_push_dummy_code): New function.
3839 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3840 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3841 set_gdbarch_store_return_value architecture dependent.
3842 Call set_gdbarch_push_dummy_code and
3843 set_gdbarch_extract_struct_value_address.
3844 Remove calls to set_gdbarch_frame_args_address,
3845 set_gdbarch_frame_locals_address,
3846 set_gdbarch_deprecated_store_struct_return,
3847 set_gdbarch_deprecated_extract_return_value,
3848 set_gdbarch_deprecated_extract_struct_value_address,
3849 set_gdbarch_deprecated_call_dummy_words and
3850 set_gdbarch_deprecated_sizeof_call_dummy_words.
3852 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3854 * h8300-tdep.c (h8300_register_byte): Remove.
3855 (h8300h_register_byte): Remove.
3856 (h8300_register_virtual_type): Remove. Substitute by...
3857 (h8300_register_type): New function.
3858 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3859 (h8300h_extract_struct_value_address): Ditto.
3860 (h8300_gdbarch_init): Drop calls to
3861 set_gdbarch_deprecated_register_byte and
3862 set_gdbarch_deprecated_register_virtual_type.
3863 Add call to set_gdbarch_register_type.
3865 2003-06-13 Andrew Cagney <cagney@redhat.com>
3867 * gdbarch.sh: Update comments on registers.
3868 (deprecated_register_byte): Rename register_byte.
3869 (deprecated_register_raw_size): Rename register_raw_size.
3870 (deprecated_register_virtual_size): Rename register_virtual_size.
3871 (deprecated_register_virtual_type): Rename register_virtual_type.
3872 * gdbarch.h, gdbarch.c: Re-generate.
3873 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3874 * vax-tdep.c (vax_gdbarch_init): Update.
3875 * v850-tdep.c (v850_gdbarch_init): Update.
3876 * sparc-tdep.c (sparc_gdbarch_init): Update.
3877 * sh-tdep.c (sh_gdbarch_init): Update.
3878 * s390-tdep.c (s390_gdbarch_init): Update.
3879 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3880 * ns32k-tdep.c: Update.
3881 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3882 * mips-tdep.c (mips_gdbarch_init): Update.
3883 * mcore-tdep.c (mcore_gdbarch_init): Update.
3884 * m68k-tdep.c (m68k_gdbarch_init): Update.
3885 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3886 * ia64-tdep.c (ia64_gdbarch_init): Update.
3887 * hppa-tdep.c (hppa_gdbarch_init): Update.
3888 * h8300-tdep.c (h8300_gdbarch_init): Update.
3889 * frv-tdep.c (frv_gdbarch_init): Update.
3890 * cris-tdep.c (cris_gdbarch_init): Update.
3891 * avr-tdep.c (avr_gdbarch_init): Update.
3892 * alpha-tdep.c (alpha_gdbarch_init): Update.
3893 * arm-tdep.c (arm_gdbarch_init): Update.
3895 2003-06-13 Andrew Cagney <cagney@redhat.com>
3897 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3898 mips_o32_use_struct_convention with always_use_struct_convention.
3900 2003-06-12 David Carlton <carlton@kealia.com>
3902 * cp-namespace.c (cp_set_block_scope): Comment out
3903 processing_has_namespace_info branch.
3905 2003-06-12 Jim Blandy <jimb@redhat.com>
3907 Recognize and skip 64-bit PowerPC Linux linkage functions.
3908 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3909 insn_pattern, insns_match_pattern, d_field, ds_field): New
3910 functions, macros, and types for working with PPC instructions.
3911 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3912 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3913 ppc64_skip_trampoline_code): New functions, variables, and macros
3914 for recognizing and skipping linkage functions.
3915 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3916 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3918 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3919 register offsets for both the 32- and 64-bit interfaces.
3921 Actually finish the job started by my change of 2003-05-29.
3922 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3923 other #definition of this.
3924 (ppc_linux_skip_trampoline_code): Remove declaration.
3925 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3927 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3930 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3931 'long' on ppc64-*-linux*.
3933 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3934 isn't #defined, assume the register doesn't exist: act as if
3935 tdep->ppc_mq_regnum were -1.
3937 * configure.host, configure.tgt: Add entries for
3938 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3940 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3943 * arch-utils.c (always_use_struct_convention): New function.
3944 * arch-utils.h (always_use_struct_convention): New prototype.
3945 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3946 (alpha_gdbarch_init): Register always_use_struct_convention,
3947 instead of alpha_use_struct_convention.
3948 * cris-tdep.c (cris_use_struct_convention): Delete.
3949 (cris_gdbarch_init): Register always_use_struct_convention,
3950 instead of cris_use_struct_convention.
3951 * frv-tdep.c (frv_use_struct_convention): Delete.
3952 (frv_gdbarch_init): Register always_use_struct_convention,
3953 instead of frv_use_struct_convention.
3954 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3955 (h8300_gdbarch_init): Register always_use_struct_convention,
3956 instead of h8300_use_struct_convention.
3957 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3958 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3959 instead of mips_o32_use_struct_convention.
3961 2003-06-12 Andrew Cagney <cagney@redhat.com>
3963 * wince.c: Include "mips-tdep.h".
3964 * mips-tdep.h (mips_next_pc): Declare.
3965 * mcore-tdep.c: Make more local functions static.
3966 * Makefile.in (wince.o): Update dependencies.
3968 2003-06-12 David Carlton <carlton@kealia.com>
3970 * symtab.c (lookup_symbol_aux_minsyms): Replace
3971 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3972 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3973 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3974 SYMBOL_NATURAL_NAME.
3976 2003-06-12 Andreas Schwab <schwab@suse.de>
3978 * Makefile.in (tuiDisassem.o): Update dependencies.
3980 2003-06-12 David Carlton <carlton@bactrian.org>
3982 * symtab.h: Delete declaration of make_symbol_overload_list.
3983 Add declaration of lookup_partial_symbol.
3984 * symtab.c (remove_params): Move to cp-support.c.
3985 (overload_list_add_symbol, make_symbol_overload_list)
3986 (sym_return_val_size, sym_return_val_index): Ditto.
3987 (lookup_partial_symbol): Make extern.
3988 * cp-support.h: Add declaration of make_symbol_overload_list.
3989 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3990 symtab.h, and block.h.
3991 (remove_params): Move here from symtab.c.
3992 (overload_list_add_symbol, make_symbol_overload_list)
3993 (sym_return_val_size, sym_return_val_index): Ditto.
3994 * valops.c: Include cp-support.h.
3995 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3996 frame_h, and block_h.
3997 (valops.o): Depend on cp_support_h.
3999 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4001 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4002 substitute by NUM_REGS throughout.
4003 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4004 (h8300s_register_name): New function for H8S registers.
4005 (h8300sx_register_name): Ditto for H8SX registers.
4006 (h8300_print_register): Revise register printing, avoid depending
4008 (h8300_register_byte): Only care for H8/300 registers.
4009 (h8300h_register_byte): New function for any other architecture.
4010 (h8300_register_raw_size): Remove.
4011 (h8300_register_virtual_type): Revise to return actually useful
4013 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4014 (h8300h_extract_struct_value_address): New function for any other
4016 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4017 set_gdbarch_register_name, set_gdbarch_register_byte,
4018 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4019 Remove calls to set_gdbarch_deprecated_register_size,
4020 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4021 set_gdbarch_deprecated_max_register_raw_size,
4022 set_gdbarch_register_virtual_size and
4023 set_gdbarch_deprecated_max_register_virtual_size entirely.
4024 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4025 set_gdbarch_long_double_bit.
4027 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4029 * doublest.c (convert_doublest_to_floatformat): When dealing
4030 with the implied integer bit, only alter mant_bits if we are
4031 processing a full 32 bits of mantissa.
4033 2003-06-11 David Carlton <carlton@bactrian.org>
4035 * dictionary.h: New.
4036 * dictionary.c: New.
4037 * block.h: Add opaque declaration for struct dictionary.
4038 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4040 (BLOCK_DICT): New macro.
4041 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4042 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4044 (ALL_BLOCK_SYMBOLS): Update definition.
4045 * Makefile.in (SFILES): Add dictionary.c.
4046 (dictionary_h): New.
4047 (COMMON_OBS): Add dictionary.o.
4048 (dictionary.o): New.
4049 (ada-lang.o): Depend on dictionary_h.
4050 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4051 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4052 (mi-cmd-stack.o): Ditto.
4053 (gdbtk-cmds.o): Update dependencies.
4054 (gdbtk-stack.o): Ditto.
4055 * ada-lang.c: Include dictionary.h.
4056 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4057 (fill_in_ada_prototype, debug_print_block): Ditto.
4058 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4059 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4061 * mdebugread.c: Include dictionary.h.
4062 (struct parse_stack): Delete 'maxsyms' member.
4063 (parse_symbol): Update calls to new_block. Delete calls to
4064 shrink_block. Use dictionary methods.
4065 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4066 Update calls to new_symtab. Don't maintain maxsyms data.
4067 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4068 (add_symbol): Just call dict_add_symbol.
4069 (new_symtab): Delete 'maxsyms' argument.
4070 (new_symtab): Update calls to new_block.
4071 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4072 (shrink_block): Delete function.
4073 (fixup_sigtramp): Update call to new_block. Add symbol via
4075 * jv-lang.c: Include dictionary.h.
4076 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4077 appropriately. Set class_symtab->free_func. Make sure the
4078 blockvector is big enough to hold two blocks.
4079 (add_class_symtab_symbol): Use dictionary methods.
4080 (free_class_block): New function.
4081 (type_from_class): Replace explicit iteration by
4083 * symtab.h (struct symtab): Replace 'free_ptr' method by
4085 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4087 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4089 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4090 Include dictionary.h.
4091 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4092 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4094 * objfiles.c: Include dictionary.h.
4095 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4096 * buildsym.c: Include dictionary.h.
4097 (finish_block): Use dictionary methods.
4098 (end_symtab): Set free_func to NULL, not free_ptr.
4099 * tracepoint.c: Include dictionary.h.
4100 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4101 (scope_info): Ditto.
4102 * stack.c: Include dictionary.h.
4103 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4104 (print_block_frame_labels, print_frame_arg_vars)
4105 (print_frame_args): Ditto.
4106 * symmisc.c (free_symtab_block): Use dictionary methods.
4107 (dump_symtab): Ditto.
4108 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4109 Include dictionary.h.
4110 * symfile.h: Delete declarations of sort_block_syms,
4112 * symfile.c (sort_block_syms): Delete.
4113 (sort_symtab_syms): Delete.
4114 * symtab.c: Include dictionary.h.
4115 (lookup_block_symbol): Use dictionary iterators.
4116 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4117 (search_symbols, make_symbol_completion_list): Ditto.
4118 (make_symbol_overload_list): Ditto.
4119 * valops.c (value_of_local): Use dict_empty.
4120 Include dictionary.h.
4122 2003-06-11 J. Brobecker <brobecker@gnat.com>
4124 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4126 2003-06-11 David Carlton <carlton@bactrian.org>
4128 * block.h (BLOCK_SHOULD_SORT): Delete.
4129 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4131 * ada-lang.c (ada_add_block_symbols): Ditto.
4132 * symfile.c (sort_block_syms): Delete.
4133 (sort_symtab_syms): Ditto.
4134 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4136 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4137 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4138 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4139 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4140 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4141 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4142 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4144 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4146 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4149 2003-06-11 Andrew Cagney <cagney@redhat.com>
4151 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4152 REGISTER_CONVERTIBLE.
4153 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4154 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4155 * gdbarch.h, gdbarch.c: Re-generate.
4156 * arch-utils.h (deprecated_register_convertible_not): Rename
4157 generic_register_convertible_not.
4158 * arch-utils.c (deprecated_register_convertible_not): Rename
4159 generic_register_convertible.
4160 (legacy_convert_register_p, legacy_register_to_value): Update.
4161 * sh-tdep.c (sh64_push_arguments): Update.
4162 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4163 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4164 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4165 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4166 * arch-utils.c (legacy_value_to_register): Update.
4167 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4168 (rs6000_register_convert_to_raw): Make parameter "from" const.
4169 * mips-tdep.c (mips_gdbarch_init): Update.
4170 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4171 * infcmd.c (default_print_registers_info): Update.
4172 * ia64-tdep.c (ia64_gdbarch_init): Update.
4173 (ia64_register_convert_to_raw): Make parameter "from" const.
4174 * i386-tdep.c (i386_gdbarch_init): Update.
4175 (i386_register_convert_to_raw): Update.
4177 2003-06-11 Andrew Cagney <cagney@redhat.com>
4179 * remote-fileio.c: Include "remote-fileio.h".
4180 * Makefile.in (remote-fileio.o): Update dependencies.
4181 (remote_fileio_h): Fix typo.
4183 2003-06-11 Andrew Cagney <cagney@redhat.com>
4185 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4186 (xstormy16_save_dummy_frame_tos): Make static.
4187 (_initialize_xstormy16_tdep): Add declaration.
4188 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4189 * v850-tdep.c: Make local functions static.
4190 (_initialize_v850_tdep): Add declaration.
4191 * sparc-tdep.c: Make local functions static.
4192 (_initialize_sparc_tdep): Add declaration.
4193 * sh-tdep.c: Make local functions static.
4194 (_initialize_sh_tdep): Add declaration.
4195 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4196 * s390-tdep.c: Make local functions static.
4197 (_initialize_s390_tdep): Add declaration.
4198 * dbxread.c (find_stab_function_addr): Make static.
4199 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4200 * ocd.c (_initialize_remote_ocd): Add declaration.
4201 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4202 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4203 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4204 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4205 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4206 * remote-array.c (_initialize_array): Add declaration.
4207 (_initialize_remote_monitors): Add declaration.
4208 * remote-mips.c: Make local functions static.
4209 (_initialize_remote_mips): Add declaration.
4210 * mcore-tdep.c: Make all local functions static.
4211 (_initialize_mcore_tdep): Add declaration.
4212 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4213 * abug-rom.c (_initialize_abug_rom): Add declaration.
4214 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4215 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4216 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4217 * remote-est.c (_initialize_est): Add declaration.
4218 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4219 (m68hc11_call_dummy_address): Make static.
4220 * ia64-tdep.c: Make local functions static.
4221 (_initialize_ia64_tdep): Add declaration.
4222 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4223 * monitor.c (monitor_wait_filter): Make static.
4224 (_initialize_remote_monitors): Add declaration.
4225 * remote-hms.c (_initialize_remote_hms): Add declaration.
4226 * remote-e7000.c (fetch_regs_from_dump): Make static.
4227 (expect_n): Make static.
4228 (_initialize_remote_e7000): Add declaration.
4229 * ser-e7kpc.c: Always include "defs.h".
4230 (_initialize_ser_e7000pc): Add declaration.
4231 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4232 * cris-tdep.c: Make all but one function static.
4233 (_initialize_cris_tdep): Add declaration.
4234 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4235 * solib.c (update_solib_list): Make static.
4236 (_initialize_solib): Add declaration.
4237 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4238 (_initialize_avr_tdep): Add declaration.
4239 * remote-rdi.c (voiddummy): Make static.
4240 (_initialize_remote_rdi): Add declaration.
4241 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4242 * remote-rdp.c (send_rdp): Make static.
4243 (_initialize_remote_rdp): Add declaration.
4244 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4246 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4248 * remote-fileio.c: Make ari happy.
4250 2003-06-10 J. Brobecker <brobecker@gnat.com>
4252 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4253 fetching the trailing bytes of the buffer we are about to write.
4255 2003-06-10 Andrew Cagney <cagney@redhat.com>
4257 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4258 * Makefile.in (remote-fileio.o): Update dependencies.
4259 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4260 include <setjmp.h>, or <sys/types.h> conditional on USG.
4261 (remote_fio_jmp_buf): Delete global variable.
4263 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4264 Martin M. Hunt <hunt@redhat.com>
4266 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4267 (SFILES): Add remote-fileio.c.
4268 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4269 dependencies for building remote.o.
4270 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4271 * remote-fileio.h: New header file defining remote File-I/O interface.
4272 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4273 static storage class.
4274 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4276 (_initialize_remote): Call initialize_remote_fileio().
4277 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4278 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4279 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4280 (captured_main): Initialize new ui_files.
4281 * ui-file.c: Add read and fgets input functions.
4282 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4283 (null_file_read): New function.
4284 (ui_file_read): New function.
4285 (set_ui_file_read): New function.
4286 (stdio_file_read): New function.
4287 * ui-file.h: New type ui_file_read_ftype.
4288 (set_ui_file_read): Declare.
4289 (ui_file_read): Declare.
4291 2003-06-09 Andrew Cagney <cagney@redhat.com>
4293 * frame.h (deprecated_unwind_get_saved_register): Rename
4294 generic_unwind_get_saved_register, update comments.
4295 * mips-tdep.c (mips_get_saved_register): Update.
4296 * frame.c (deprecated_unwind_get_saved_register): Update.
4298 2003-06-09 Andrew Cagney <cagney@redhat.com>
4300 * vax-tdep.c (vax_frame_locals_address): Delete function.
4301 (vax_gdbarch_init): Do not set frame_locals_address.
4302 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4303 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4304 * s390-tdep.c (s390_frame_args_address): Delete function.
4305 (s390_gdbarch_init): Do not set frame_args_address or
4306 frame_locals_address.
4307 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4308 (ns32k_gdbarch_init): Do not set frame_locals_address.
4309 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4310 (hppa_frame_locals_address): Delete function.
4311 (hppa_gdbarch_init): Do not set frame_args_address, or
4312 frame_locals_address.
4313 * arm-tdep.c (arm_frame_args_address): Delete.
4314 (arm_frame_locals_address): Delete.
4315 (arm_gdbarch_init): Do not set frame_args_address, or
4316 frame_locals_address.
4318 2003-06-09 Andrew Cagney <cagney@redhat.com>
4320 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4321 * gdbarch.h, gdbarch.c: Re-generate.
4322 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4323 * arch-utils.c (frame_num_args_unknown): Delete function.
4324 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4325 (frame_info): Use FRAME_NUM_ARGS_P.
4326 * arm-tdep.c (arm_frame_num_args): Delete function.
4327 (arm_gdbarch_init): Do not set frame_num_args.
4328 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4329 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4330 (hppa_gdbarch_init): Do not set frame_num_args.
4331 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4332 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4333 frame_num_args to default frame_num_args_unknown.
4334 * v850-tdep.c (v850_gdbarch_init): Ditto.
4335 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4336 * sh-tdep.c (sh_gdbarch_init): Ditto.
4337 * s390-tdep.c (s390_gdbarch_init): Ditto.
4338 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4339 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4340 * mips-tdep.c (mips_gdbarch_init): Ditto.
4341 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4342 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4343 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4344 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4345 * i386-tdep.c (i386_gdbarch_init): Ditto.
4346 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4347 * frv-tdep.c (frv_gdbarch_init): Ditto.
4348 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4349 * cris-tdep.c (cris_gdbarch_init): Ditto.
4350 * avr-tdep.c (avr_gdbarch_init): Ditto.
4351 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4353 2003-06-09 Andrew Cagney <cagney@redhat.com>
4355 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4356 (print_frame_args): Moved to "stack.c".
4357 * stack.c: Include "gdb_assert.h".
4358 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4359 (print_frame_args): Moved from "printcmd.c".
4360 * frame.h (print_frame_args): Delete declaration.
4361 * Makefile.in (stack.o): Update dependencies.
4363 2003-06-08 Andrew Cagney <cagney@redhat.com>
4365 * frame.c (get_prev_frame): Remove reference to
4366 frame_args_address_correct in comments.
4367 * frame-base.c (default_frame_args_address): Delete code
4368 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4369 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4370 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4371 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4372 (vax_frame_args_address_correct): Delete declaration.
4374 2003-06-08 Andrew Cagney <cagney@redhat.com>
4376 * gdbarch.sh (UNWIND_SP): Add.
4377 * gdbarch.h, gdbarch.c: Re-generate.
4378 * frame.c (frame_sp_unwind): New function.
4379 (get_frame_sp): New function.
4380 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4381 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4382 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4384 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4385 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4387 2003-06-08 Andrew Cagney <cagney@redhat.com>
4389 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4392 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4393 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4394 * config/m68k/tm-sun3.h: Update.
4395 * config/m68k/tm-m68klynx.h: Update.
4396 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4398 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4399 trad_frame". Update comments.
4400 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4401 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4402 (trad_frame_register_value, trad_frame_prev_register): Update.
4404 2003-06-08 Andrew Cagney <cagney@redhat.com>
4406 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4407 from GCC's acinclude.m4.
4408 * configure.in: Check for getopt's delcaration.
4409 * aclocal.m4, config.in, configure: Re-generate.
4410 * main.c (error_init): Delete declaration.
4411 * defs.h (error_init): Declare.
4412 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4413 (rs6000_convert_from_func_ptr_addr): Make static.
4414 (_initialize_rs6000_tdep): Add declaration.
4415 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4416 (show_commands, set_verbose, show_history): Delete declaration.
4417 * top.h (set_verbose): Add declaration.
4418 (show_history, set_history, show_commands): Add declaration.
4419 (do_restore_instream_cleanup): Add declaration.
4420 * objc-lang.c (specialcmp): Make static.
4421 (print_object_command): Make static.
4422 (find_objc_msgsend): Make static.
4423 (find_objc_msgcall_submethod_helper): Make static.
4424 (find_objc_msgcall_submethod): Make static.
4425 (_initialize_objc_language): Add declaration.
4426 (find_implementation_from_class): Make static.
4427 (find_implementation): Make static.
4428 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4429 * objc-lang.h (lookup_struct_typedef): Add declaration.
4430 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4431 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4432 (do_restore_user_call_depth): Make static.
4433 (do_restore_instream_cleanup): Delete declaration.
4434 (dont_repeat): Delete declaration.
4435 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4436 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4437 * reggroups.c (_initialize_reggroup): Add declaration.
4438 * cp-support.c (_initialize_cp_support): Add declaration.
4439 * cp-abi.c (_initialize_cp_abi): Add declaration.
4440 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4441 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4442 (_initialize_gnu_v3_abi): Add declaration.
4443 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4444 (_initialize_gnu_v2_abi): Add declaration.
4445 * frame-base.c (_initialize_frame_base): Add declaration.
4446 * doublest.c (floatformat_from_length): Make static.
4447 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4448 * frame.c (create_sentinel_frame): Make static.
4449 (_initialize_frame): Add declaration.
4450 * top.c (do_catch_errors): Make static.
4451 (gdb_rl_operate_and_get_next_completion): Make static.
4452 * typeprint.c: Include "typeprint.h".
4453 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4454 (sentinel_frame_this_id): Make static.
4455 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4456 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4457 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4458 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4459 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4460 * maint.c (maintenance_print_architecture): Make static.
4461 * signals/signals.c (_initialize_signals): Add declaration.
4462 * std-regs.c (_initialize_frame_reg): Add declaration.
4463 * jv-exp.y (push_variable): ISO C definition.
4464 (push_qualified_expression_name): Ditto.
4465 * memattr.c (_initialize_mem): Add declaration.
4466 * remote.c (remote_check_watch_resources): Make static.
4467 (remote_stopped_by_watchpoint): Make static.
4468 (remote_stopped_data_address): Make static.
4469 * d10v-tdep.c (nr_dmap_regs): Make static.
4470 (a0_regnum): Make static.
4471 (d10v_frame_unwind_cache): Make static.
4472 (d10v_frame_p): Make static.
4473 * osabi.c (show_osabi): Make static.
4474 (_initialize_gdb_osabi): Add extern declaration.
4475 * gdbtypes.c (make_qualified_type): Make static.
4476 (safe_parse_type): Make static.
4477 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4478 * macrotab.c (macro_bcache_free): Make static.
4479 * interps.c (interp_set_quiet): Make static.
4480 (interpreter_exec_cmd): Make static.
4481 * stack.h (select_frame_command): New file.
4482 * stack.c: Include "stack.h".
4483 (select_frame_command_wrapper): Delete function.
4484 (select_frame_command): Make global.
4485 * infcall.c: Include "infcall.h".
4486 * linespec.c: Include "linespec.h".
4487 * symfile.c (sections_overlap): Make static.
4488 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4489 * charset.c (_initialize_charset): Add missing prototype.
4490 * regcache.c (init_legacy_regcache_descr): Make static.
4491 (do_regcache_xfree): Make static.
4492 (regcache_xfer_part): Make static.
4493 (_initialize_regcache): Add missing prototype.
4494 * breakpoint.c (parse_breakpoint_sals): Make static.
4495 (breakpoint_sals_to_pc): Make static.
4496 * interps.h (clear_interpreter_hooks): ISO C declaration.
4497 * Makefile.in (stack_h): Define.
4498 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4499 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4501 2003-06-08 Andrew Cagney <cagney@redhat.com>
4503 * Makefile.in (d10v-tdep.o): Update dependencies.
4504 (SFILES): Add trad-frame.c.
4505 (trad_frame_h): Define.
4506 (COMMON_OBS): Add trad-frame.o.
4507 (trad-frame.o): Specify dependencies.
4508 * d10v-tdep.c: Include "trad-frame.h".
4509 (saved_regs_unwinder): Delete function.
4510 (d10v_frame_prev_register): Use trad_frame_prev_register.
4511 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4512 trad_frame", delete "regs" and "prev_sp".
4513 (prologue_find_regs): Use trad-frame.
4514 * trad-frame.h, trad-frame.c: New files.
4516 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4518 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4520 2003-06-07 Adam Fedor <fedor@gnu.org>
4522 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4523 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4524 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4525 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4526 resolve_msgsend_super, resolve_msgsend_super_stret):
4529 2003-06-07 Andrew Cagney <cagney@redhat.com>
4531 * symfile.h: Re-indent, clean up comments.
4533 2003-06-07 Andrew Cagney <cagney@redhat.com>
4535 * inferior.h (deprecated_write_sp): Replace
4536 generic_target_write_sp.
4537 * regcache.c (deprecated_write_sp): Replace
4538 generic_target_write_sp.
4539 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4540 * vax-tdep.c (vax_gdbarch_init): Update.
4541 * v850-tdep.c (v850_gdbarch_init): Update.
4542 * sparc-tdep.c (sparc_gdbarch_init): Update.
4543 * sh-tdep.c (sh_gdbarch_init): Update.
4544 * s390-tdep.c (s390_gdbarch_init): Update.
4545 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4546 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4547 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4548 * mcore-tdep.c (mcore_gdbarch_init): Update.
4549 * m68k-tdep.c (m68k_gdbarch_init): Update.
4550 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4551 * ia64-tdep.c (ia64_gdbarch_init): Update.
4552 * h8300-tdep.c (h8300_gdbarch_init): Update.
4553 * frv-tdep.c (frv_gdbarch_init): Update.
4554 * cris-tdep.c (cris_gdbarch_init): Update.
4555 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4557 2003-06-07 Andrew Cagney <cagney@redhat.com>
4559 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4560 Assert that PC_REGNUM is valid.
4561 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4563 2003-06-07 Andrew Cagney <cagney@redhat.com>
4565 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4566 * gdbarch.h, gdbarch.c: Regenerate.
4567 * mn10300-tdep.c: Include "gdb_assert.h".
4568 (mn10300_read_fp): New function.
4569 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4570 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4571 * ia64-tdep.c: Include "gdb_assert.h".
4572 (ia64_read_fp): New function.
4573 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4574 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4575 * regcache.c (generic_target_read_sp): Delete function.
4576 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4577 * inferior.h (generic_target_read_sp): Delete declaration.
4578 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4579 generic_target_read_sp.
4580 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4581 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4582 * sh-tdep.c (sh_gdbarch_init): Ditto.
4583 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4584 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4586 2003-06-07 Andrew Cagney <cagney@redhat.com>
4588 * gdbarch.sh: Comment each field of startup_gdbarch.
4589 * gdbarch.h, gdbarch.c: Re-generate.
4591 2003-06-07 Andrew Cagney <cagney@redhat.com>
4593 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4594 * gdbarch.h, gdbarch.c: Re-generate.
4595 * regcache.c: Update comments on read_pc et.al.
4596 (generic_target_read_pc): Delete function.
4597 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4598 * inferior.h (generic_target_read_pc): Delete declaration.
4599 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4600 generic_target_read_pc.
4601 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4602 * sh-tdep.c (sh_gdbarch_init): Ditto.
4603 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4604 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4606 2003-06-07 Andrew Cagney <cagney@redhat.com>
4608 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4609 "index" with "special_local_sect". Use strcmp instead of STREQ.
4610 Append period to coments.
4612 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4614 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4615 (elfstab_offset_sections): Likewise.
4616 * gdb-stabs.h (stab_section_info): Likewise.
4617 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4618 * objfiles.c (objfile_relocate): Likewise.
4619 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4620 * remote.c (get_offsets): Likewise.
4621 (remote_cisco_objfile_relocate): Likewise.
4622 * somread.c (som_symfile_offsets): Likewise.
4623 * symfile.c (alloc_section_addr_info): New function.
4624 (build_section_addr_info_from_section_tab): Use it.
4625 (free_section_addr_info): Adjust.
4626 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4627 (syms_from_objfile): Allocate local_addr dynamically.
4628 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4630 (add_symbol_file_command): Allocate sect_opts dynamically.
4631 (reread_symbols): Avoid use of SECT_OFF_MAX.
4632 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4633 (alloc_section_addr_info): Declare it.
4634 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4635 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4637 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4639 2003-06-06 Andrew Cagney <cagney@redhat.com>
4641 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4642 (d10v_frame_unwind_cache): Do not set "return_pc".
4644 2003-06-06 Michael Snyder <msnyder@redhat.com>
4646 * h8300-tdep.c: Make tidy (long lines).
4648 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4650 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4651 to regcache_collect().
4653 2003-06-05 J. Brobecker <brobecker@gnat.com>
4655 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4656 pc_in_sigtramp multiarch method.
4657 (hppa_hpux_som_init_abi): Use it.
4658 (hppa_hpux_elf_init_abi): Likewise.
4659 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4660 macro has been multiarched.
4661 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4662 macro here, as hppa64 isn't multiarched yet.
4664 2003-06-05 Andrew Cagney <cagney@redhat.com>
4666 * Makefile.in (value_h): Add $(frame_h).
4667 * value.h: Include "frame.h".
4668 (struct value): Replace "frame_addr" with "frame_id".
4669 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4670 * values.c (allocate_value): Use VALUE_FRAME_ID.
4671 (value_copy): Use VALUE_FRAME_ID.
4672 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4673 * valops.c (value_assign): Update. Use frame_find_by_id.
4675 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4677 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4680 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4682 * thread-db.c (check_event): For create/death event breakpoints,
4683 loop through all messages to ensure that we read the message
4684 corresponding to the breakpoint we are at.
4686 2003-06-04 Michael Snyder <msnyder@redhat.com>
4688 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4690 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4692 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4693 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4694 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4695 when handling .eh_frame sections.
4697 2003-06-04 J. Brobecker <brobecker@gnat.com>
4699 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4700 prepare_to_proceed procedure instead of the hppa-specific one.
4701 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4703 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4705 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4706 * config.in: Regenerated.
4707 * configure.in: Add test for syscall function and check for
4708 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4709 * configure: Regenerated.
4710 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4712 (kill_lwp): New function that uses tkill syscall or
4713 uses kill, depending on whether threading model is nptl or not.
4714 All callers of kill() changed to use kill_lwp().
4715 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4716 see if all threads have already exited in the nptl model.
4717 (stop_and_resume_callback): New callback function used by the
4718 lin_lwp_wait thread exit handling code.
4719 (stop_wait_callback): Check for threads already having exited and
4720 delete such threads fromt the lwp list when discovered.
4721 (stop_callback): Don't assert retcode of kill call.
4723 Roland McGrath <roland@redhat.com>
4724 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4727 2003-06-03 Richard Henderson <rth@redhat.com>
4729 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4730 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4731 (alpha_sigtramp_frame_prev_register): Likewise.
4732 (alpha_heuristic_frame_prev_register): Likewise.
4733 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4735 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4736 alpha-specific register id names.
4737 (alpha_mdebug_frame_unwind_cache): Likewise.
4738 (alpha_mdebug_frame_prev_register): Likewise.
4740 2003-06-03 Richard Henderson <rth@redhat.com>
4742 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4743 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4744 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4745 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4747 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4748 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4749 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4751 * alpha-linux-tdep.c: Remove unnecessary includes.
4752 * Makefile.in (alpha-linux-tdep.o): Update.
4754 2003-06-03 Richard Henderson <rth@redhat.com>
4756 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4757 (alphabsd_fill_fpreg): Likewise.
4759 2003-06-03 J. Brobecker <brobecker@gnat.com>
4761 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4762 references to struct frame_info fields by calls to the equivalent
4763 accessors. Necessary now that frame_info is opaque.
4765 2003-06-03 J. Brobecker <brobecker@gnat.com>
4767 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4768 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4769 structure, field no longer exists.
4771 2003-06-03 J. Brobecker <brobecker@gnat.com>
4773 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4774 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4776 2003-06-03 J. Brobecker <brobecker@gnat.com>
4778 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4779 references to struct frame_info fields by calls to the equivalent
4780 accessors. Necessary now that frame_info is opaque.
4782 2003-06-03 J. Brobecker <brobecker@gnat.com>
4784 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4785 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4786 structure, field no longer exists.
4788 2003-06-03 Theodore A. Roth <troth@openavr.org>
4790 * remote.c (init_remote_state): Compute sizeof_g_packet by
4791 accumulation of the size of all registers instead of blindly using
4792 DEPRECATED_REGISTER_BYTES.
4794 2003-06-03 Michael Snyder <msnyder@redhat.com>
4796 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4797 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4800 2003-06-03 J. Brobecker <brobecker@gnat.com>
4802 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4803 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4805 2003-06-03 Andrew Cagney <cagney@redhat.com>
4807 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4808 (sparc_convert_to_raw): Delete function.
4809 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4810 register_convert_to_virtual.
4812 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4814 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4815 layer if not dealing with a statically-linked threaded program.
4817 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4819 * solib.c (solib_open): Update comment to reflect actual search order.
4821 2003-06-03 Andrew Cagney <cagney@redhat.com>
4823 * frame.c (get_frame_memory_signed): New function.
4824 (get_frame_memory, get_frame_memory_unsigned): New function.
4825 (get_frame_arch): New function.
4826 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4827 (get_frame_memory, get_frame_unsigned_memory): Declare.
4828 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4829 get_frame_memory_unsigned and get_frame_arch.
4830 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4832 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4834 * MAINTAINERS (write after approval): Add myself.
4836 2003-06-03 Jim Blandy <jimb@redhat.com>
4838 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4839 elements of gregset_t are 64 bits each, but access registers
4840 are still 32 bits, so they're packed two per gregset_t
4841 element. Unpack/pack them properly.
4843 2003-06-02 David Carlton <carlton@bactrian.org>
4845 * linespec.c (find_methods): Break out code into
4846 add_matching_methods and add_constructors.
4847 (add_matching_methods): New.
4848 (add_constructors): Ditto.
4850 2003-06-02 Andrew Cagney <cagney@redhat.com>
4852 * sparc-tdep.c (sparc_print_registers): Delete call to
4853 REGISTER_CONVERTIBLE.
4854 (sparc_gdbarch_init): Do not set register_convertible.
4855 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4856 * frv-tdep.c (frv_gdbarch_init): Ditto.
4857 * cris-tdep.c (cris_gdbarch_init): Ditto.
4859 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4861 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4862 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4863 (syms_from_objfile): Ditto.
4865 2003-06-03 Andreas Schwab <schwab@suse.de>
4867 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4868 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4870 2003-06-02 Richard Henderson <rth@redhat.com>
4872 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4873 a member of all_reggroup.
4875 2003-06-02 Richard Henderson <rth@redhat.com>
4877 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4878 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4879 (alpha_lds, alpha_sts): New.
4880 (alpha_convert_register_p): Change from _register_convertible.
4881 (alpha_register_to_value): Change from _convert_to_virtual;
4882 restructure and fail for type sizes other than 4 or 8.
4883 (alpha_value_to_register): Similarly.
4884 (alpha_extract_return_value): Use alpha_sts.
4885 (alpha_store_return_value): Use alpha_lds.
4886 (alpha_gdbarch_init): Update hooks.
4888 2003-06-02 Richard Henderson <rth@redhat.com>
4890 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4892 (alpha_sigtramp_register_address): Likewise.
4894 2003-06-02 Richard Henderson <rth@redhat.com>
4896 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4897 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4898 * alpha-tdep.h: Declare them.
4900 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4901 Remove zerobuf. Don't error on UNIQUE.
4902 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4903 (ALPHA_REGSET_UNIQUE): Provide default.
4904 (supply_gregset): Use alpha_supply_int_regs.
4905 (fill_gregset): Use alpha_fill_int_regs.
4906 (supply_fpregset): Use alpha_supply_fp_regs.
4907 (fill_fpregset): Use alpha_fill_fp_regs.
4908 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4909 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4910 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4911 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4912 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4913 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4915 2003-06-02 Richard Henderson <rth@redhat.com>
4917 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4919 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4920 (alpha_store_return_value): Likewise.
4922 2003-06-02 David Carlton <carlton@math.stanford.edu>
4924 * block.c (contained_in): Add 'const' to arguments.
4925 (block_function): Ditto.
4926 * block.h: Update declarations for block_function and
4929 2003-06-02 David Carlton <carlton@math.stanford.edu>
4931 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4932 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4933 * p-valprint.c (pascal_val_print): Ditto.
4934 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4936 2003-06-02 Richard Henderson <rth@redhat.com>
4938 * alpha-tdep.c (alpha_push_dummy_call): Use
4939 builtin_type_ieee_double_little instead of builtin_type_double.
4941 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4942 sign-extension of 32-bit values.
4943 (alpha_store_return_value): Similarly.
4945 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4946 (alpha_extract_return_value): Likewise.
4947 (alpha_store_return_value): Likewise.
4949 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4950 (alpha_store_return_value): Error on IEEE Quad floats.
4952 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4953 (alpha_extract_struct_value_address): Likewise.
4954 (alpha_store_return_value): Likewise.
4955 (alpha_store_struct_return): Remove.
4956 (alpha_gdbarch_init): Update hook registration to match.
4958 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4959 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4960 macros where appropriate.
4961 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4962 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4964 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4965 for SP, GP; void_func_ptr for PC; non-language-specific types
4967 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4969 2003-06-02 Richard Henderson <rth@redhat.com>
4971 * top.h (lim_at_start): Declare.
4972 * main.c (captured_main): Set it.
4973 * top.c (lim_at_start): Define.
4974 (command_loop): Use it instead of &environ.
4975 * event-top.c (command_handler): Likewise.
4977 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4979 * mipsnbsd-tdep.c: Update copyright years.
4980 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4982 2003-06-01 Richard Henderson <rth@redhat.com>
4984 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4985 (alpha-linux-tdep.o): Update dependencies.
4986 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4987 * alpha-mdebug-tdep.c: Remove unneeded includes.
4989 2003-06-01 Richard Henderson <rth@redhat.com>
4991 * alpha-tdep.c (alpha_register_reggroup_p): New.
4992 (alpha_gdbarch_init): Register it.
4994 2003-06-02 Andrew Cagney <cagney@redhat.com>
4996 * dwarfread.c: Eliminate "register"
4997 (decode_die_type): Eliminate assignment within "if".
4998 (struct_type, decode_array_element_type): Ditto.
4999 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5000 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5001 (decode_modified_type, completedieinfo): Ditto.
5002 * block.c: Eliminate "register".
5003 (blockvector_for_pc_sect): Eliminate assignment within "if".
5004 * cp-support.h (struct symbol): Opaque declaration.
5005 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5007 2003-06-01 Richard Henderson <rth@redhat.com>
5009 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5010 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5012 2003-06-01 Adam Fedor <fedor@gnu.org>
5014 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5015 * gdbarch.[ch]: Regenerate.
5016 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5017 (hppa_gdbarch_init): Set it in the gdbarch vector.
5018 * i386-tdep.c (i386_fetch_pointer_argument): New
5019 (i386_gdbarch_init): Set it into gdbarch.
5020 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5021 (rs6000_gdbarch_init): Set it in gdbarch.
5022 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5023 (sparc_gdbarch_init): Set it in gdbarch.
5025 2003-06-01 Andrew Cagney <cagney@redhat.com>
5027 * defs.h (extract_address): Delete declaration.
5028 * findvar.c (extract_address): Delete function.
5029 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5030 extract_address with the inline equivalent,
5031 extract_unsigned_integer.
5032 (xstormy16_extract_struct_value_address): Ditto.
5033 (xstormy16_pointer_to_address): Ditto.
5034 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5035 * v850-tdep.c (v850_push_arguments): Ditto.
5036 (v850_extract_return_value): Ditto.
5037 (v850_extract_struct_value_address): Ditto.
5038 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5039 (sparcnbsd_get_longjmp_target_64): Ditto.
5040 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5041 (get_longjmp_target): Ditto.
5042 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5043 (sh64_extract_struct_value_address): Ditto.
5044 (sh_push_arguments): Ditto.
5045 (sh64_push_arguments): Ditto.
5046 * remote-vxsparc.c (vx_read_register): Ditto.
5047 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5048 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5049 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5050 * mipsv4-nat.c (get_longjmp_target): Ditto.
5051 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5052 * mips-nat.c (get_longjmp_target): Ditto.
5053 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5054 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5055 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5056 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5057 * irix5-nat.c (get_longjmp_target): Ditto.
5058 * irix4-nat.c (get_longjmp_target): Ditto.
5059 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5060 (ia64_push_arguments): Ditto.
5061 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5062 * h8300-tdep.c (h8300_push_arguments): Ditto.
5063 (h8300_store_return_value): Ditto.
5064 (h8300_extract_struct_value_address): Ditto.
5065 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5066 (frv_push_arguments): Ditto.
5067 * avr-tdep.c (avr_pointer_to_address): Ditto.
5068 (avr_push_arguments): Ditto.
5069 * arm-tdep.c (arm_push_dummy_call): Ditto.
5070 (arm_get_longjmp_target): Ditto.
5071 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5072 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5073 (alpha_get_longjmp_target): Ditto.
5075 * solib-irix.c (extract_mips_address): Inline extract_address,
5076 replacing it with extract_signed_integer.
5077 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5078 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5079 (first_link_map_member, open_symbol_file_object): Ditto.
5080 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5081 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5082 (LM_NEXT, LM_NAME): Ditto.
5084 2003-06-01 Richard Henderson <rth@redhat.com>
5086 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5087 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5088 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5089 (alpha_cannot_store_register): Likewise.
5090 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5091 * alpha-nat.c (supply_gregset): Likewise.
5092 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5094 2003-06-01 Andrew Cagney <cagney@redhat.com>
5096 * infcall.c (call_function_by_hand): Update comment on
5097 DEPRECATED_DUMMY_WRITE_SP.
5099 * mips-tdep.c (mips_gdbarch_init): Do not set
5100 deprecated_dummy_write_sp.
5101 (mips_eabi_push_dummy_call): Set the SP register.
5102 (mips_o64_push_dummy_call): Set the SP register.
5103 (mips_o32_push_dummy_call): Set the SP register.
5104 (mips_n32n64_push_dummy_call): Set the SP register.
5106 2003-06-01 Richard Henderson <rth@redhat.com>
5108 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5109 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5110 (supply_gregset): Likewise.
5111 * alpha-tdep.c (alpha_store_return_value): Likewise.
5112 (alpha_get_longjmp_target): Likewise.
5113 (alpha_register_name): Constify array.
5114 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5115 deprecated_register_size, deprecated_register_bytes,
5116 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5117 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5118 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5120 2003-06-01 Richard Henderson <rth@redhat.com>
5122 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5123 from arg_reg_buffer to regcache to avoid double conversion.
5125 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5127 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5129 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5130 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5132 2003-06-01 Richard Henderson <rth@redhat.com>
5134 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5135 (decode_frame_entry): Set it. Skip FDE augmentation.
5137 2003-06-01 Richard Henderson <rth@redhat.com>
5139 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5140 not overlapping PC_REGNUM.
5142 2003-06-01 Richard Henderson <rth@redhat.com>
5144 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5145 alpha_push_arguments. Don't dump argument register data to
5146 the target stack. Fix float and 128-bit long double semantics.
5147 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5148 (alpha_fix_call_dummy): Remove.
5149 (alpha_call_dummy_words): Remove.
5150 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5152 2003-06-01 Richard Henderson <rth@redhat.com>
5154 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5156 2003-06-01 Andrew Cagney <cagney@redhat.com>
5158 * mips-tdep.c (is_mips16_addr): New function.
5159 (make_mips16_addr, unmake_mips16_addr): New functions.
5160 (pc_is_mips16, mips_fetch_instruction): Use.
5161 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5162 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5163 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5164 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5166 * config/mips/tm-mips.h: Update copyright.
5167 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5168 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5169 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5170 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5171 (TM_PRINT_INSN_MACH): Delete.
5172 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5174 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5175 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5176 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5177 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5178 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5179 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5180 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5181 mips*-*-riscos* and mips*-*-sysv* onto mips.
5182 * config/mips/mips64.mt: New file.
5183 * config/mips/mips.mt: New file.
5184 * config/mips/littlemips.mt: Delete file.
5185 * config/mips/decstation.mt: Delete file.
5186 * config/mips/vr4300el.mt: Delete file.
5187 * config/mips/vr5000el.mt: Delete file.
5188 * config/mips/vr5000.mt: Delete file.
5189 * config/mips/vr4100.mt: Delete file.
5190 * config/mips/vr4xxxel.mt: Delete file.
5191 * config/mips/vr4300.mt: Delete file.
5192 * config/mips/vr4xxx.mt: Delete file.
5193 * config/mips/bigmips.mt: Delete file.
5194 * config/mips/bigmips64.mt: Delete file.
5195 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5196 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5197 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5198 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5199 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5201 * config/mips/tm-irix3.h: Ditto.
5202 * config/mips/tm-mipsv4.h: Ditto.
5203 * config/mips/tm-embed.h: Ditto.
5204 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5206 * config/mips/tm-vr5000el.h: Delete file.
5207 * config/mips/tm-tx39l.h: Delete file.
5208 * config/mips/tm-vr4300el.h: Delete file.
5209 * config/mips/tm-vr4xxxel.h: Delete file.
5210 * config/mips/tm-vr4300.h: Delete file.
5211 * config/mips/tm-vr4100.h: Delete file.
5212 * config/mips/tm-vr4xxx.h: Delete file.
5213 * config/mips/tm-vr5000.h: Delete file.
5214 * config/mips/tm-embedl64.h: Delete file.
5215 * config/mips/tm-embedl.h: Delete file.
5216 * config/mips/tm-embed64.h: Delete file.
5217 * config/mips/tm-bigmips64.h: Delete file.
5218 * config/mips/tm-bigmips.h: Delete file.
5220 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5223 * shnbsd-nat.c: Include "sh-tdep.h".
5225 From Richard Henderson <rth@redhat.com>:
5226 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5228 2003-05-31 Andrew Cagney <cagney@redhat.com>
5230 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5231 forward declaration.
5232 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5233 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5234 (mips_find_saved_regs): Use set_reg_offset.
5235 (mips_frame_init_saved_regs): Delete function.
5236 (mips_pop_frame): Call mips_find_saved_regs instead of
5237 DEPRECATED_FRAME_INIT_SAVED_REGS.
5239 2003-05-31 Andrew Cagney <cagney@redhat.com>
5241 * mips-tdep.c (mips_gdbarch_init): Do not set
5242 deprecated_max_register_raw_size, register_virtual_size, and
5243 deprecated_max_register_virtual_size.
5245 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5247 * i386-tdep.c: Include "dwarf2-frame.h".
5248 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5249 * Makefile.in (i386-tdep.o): Update dependencies.
5251 * dwarf2-frame.c, dwarf2-frame.h: New files.
5252 * Makefile.in (SFILES): Add dwarf2-frame.c.
5253 (dwarf2_frame_h): Define.
5254 (COMMON_OBS): Add dwarf2-frame.o.
5255 (dwarf2-frame.o): Add dependencies.
5257 2003-05-31 Andreas Jaeger <aj@suse.de>
5259 * x86-64-linux-nat.c: Fix comment.
5261 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5263 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5266 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5267 have a sigcontext_addr handler.
5268 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5269 sigcontext_addr handler.
5271 2003-05-31 Andrew Cagney <cagney@redhat.com>
5273 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5274 (print_fp_register_row): Replace do_fp_register_row.
5275 (mips_print_fp_register): Add "file" and "frame" parameters.
5276 (mips_print_register): Add "file" and "frame" parameters.
5277 (mips_print_registers_info): Replace mips_do_registers_info.
5278 (mips_gdbarch_init): Set print_registers_info instead of
5279 deprecated_do_registers_info.
5280 (mips_read_fp_register_single): Add "frame" parameter.
5281 (mips_read_fp_register_double): Add "frame" parameter.
5283 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5285 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5286 Fixes a bug where GDB would print the wrong register names for
5287 targets without SSE.
5289 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5290 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5293 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5294 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5295 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5298 From Michal Ludvig <mludvig@suse.cz>:
5299 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5301 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5302 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5303 I386_ST0_REGNUM): Move here from...
5304 * i386-tdep.c: ... here.
5305 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5306 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5307 registers if possible.
5308 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5309 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5311 (i386bsd_sc_reg_offset): New variable.
5312 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5313 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5315 (i386fbsd_sc_reg_offset): New variable.
5316 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5318 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5320 (i386fbsd4_sc_reg_offset): New variable.
5321 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5322 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5324 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5325 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5326 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5328 (i386nbsd_sc_reg_offset): New variable.
5329 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5330 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5332 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5334 (i386obsd_sc_reg_offset): New variable.
5335 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5336 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5338 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5339 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5340 for frame pointer offset in `struct sigcontext'.
5342 2003-05-31 Andrew Cagney <cagney@redhat.com>
5344 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5345 architecture methods call_dummy_words, sizeof_call_dummy_words,
5346 push_return_address, store_struct_return, and fix_call_dummy. Set
5347 push_dummy_call instead of deprecated_push_arguments.
5348 (mips_store_struct_return): Delete function.
5349 (mips_fix_call_dummy): Delete function.
5350 (mips_push_return_address): Delete function.
5351 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5352 RA_REGNUM and T9_REGNUM.
5353 (mips_n32n64_push_dummy_call): Ditto for
5354 mips_n32n64_push_arguments.
5355 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5356 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5358 2003-05-31 Andrew Cagney <cagney@redhat.com>
5360 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5361 "dummy_addr" to "bp_addr".
5362 * infcall.c (call_function_by_hand): Pass "funaddr" to
5363 gdbarch_push_dummy_call.
5364 * gdbarch.h, gdbarch.c: Re-generate.
5365 * i386-tdep.c (i386_push_dummy_call): Update.
5366 * arm-tdep.c (arm_push_dummy_call): Update.
5367 * d10v-tdep.c (d10v_push_dummy_call): Update.
5369 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5371 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5372 variable declarations.
5373 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5374 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5375 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5376 x86_64_init_frame_pc, x86_64_init_frame_pc,
5377 x86_64_function_has_prologue): Remove prototypes.
5378 (X86_64_NUM_GREGS): New define.
5379 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5380 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5381 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5382 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5383 XMM1_REGNUM): Remove defines.
5384 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5385 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5386 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5387 X86_64_XMM1_REGNUM): New defines.
5388 (struct x86_64_register_info): Renamed from `struct
5389 register_info'. Remove `size' member.
5390 (x86_64_register_info_table): Remove variable.
5391 (x86_64_register_info): New variable.
5392 (X86_64_NUM_REGS): New define.
5393 (X86_64_NUM_GREGS): Remove define.
5394 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5395 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5397 (x86_54_dwarf2_reg_to_regnum): Remove function.
5398 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5399 (x86_64_dwarf_reg_to_regnum): New function.
5400 (x86_64_register_name): Rewrite.
5401 (x86_64_register_raw_size): Remove function.
5402 (x86_64_register_byte_table): Remove variable.
5403 (x86_64_register_byte): Remove function.
5404 (x86_64_register_virtual_type): Remove function.
5405 (x86_64_register_type): New function.
5406 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5407 x86_64_register_convert_to_raw): Remove functions.
5408 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5409 (x86_64_use_struct_convention): Make static. Adjust for renamed
5411 (x86_64_frame_init_saved_regs): Remove function.
5412 (x86_64_push_arguments): Make static. Change to accept a regcache
5414 (x86_64_store_return_value, x86_64_extract_return_value): Make
5415 static. Rewrite based on i386 counterparts.
5416 (x86_64_push_dummy_call): New function.
5417 (X86_64_NUM_SAVED_REGS): New define.
5418 (x86_64_register_number): Remove function.
5419 (x86_64_store_struct_return): Remove function.
5420 (x86_64_frameless_function_invocation,
5421 x86_64_function_has_prologue): Remove functions.
5422 (PROLOG_BUFSIZE): Remove define.
5423 (struct x86_64_frame_cache): New structure.
5424 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5425 x86_64_frame_cache, x86_64_frame_this_id,
5426 x86_64_frame_prev_register, x86_64_frame_p,
5427 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5428 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5430 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5432 (x86_64_skip_prologue): Rewrite in terms of
5433 x86_64_analyze_prologue.
5434 (x86_64_frame_base_address): New function.
5435 (x86_64_frame_base): New variable.
5436 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5437 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5438 set deprecated_fp_regnum, deprecated_register_size,
5439 deprecated_register_bytes, register_raw_size, register_byte,
5440 register_virtual_type, register_convertiable,
5441 register_convert_to_virtual, convert_to_raw,
5442 deprecated_get_saved_register, deprecated_target_read_fp,
5443 deprecated_push_arguments, deprecated_push_return_address,
5444 deprecated_pop_frame, deprecated_store_struct_return,
5445 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5446 frameless_function_invocation, deprecated_frame_saved_pc,
5447 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5448 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5449 deprecated_init_frame_pc and virtual_frame_pointer. Call
5450 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5451 and x86_64_frame_p. Call frame_base_set_default to register
5453 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5454 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5455 (_initialize_x86_64_tdep): Remove function.
5456 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5457 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5458 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5460 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5461 (x86_64_linux_sigcontext_addr): Rewrite.
5462 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5463 x86_64_linux_frame_saved_pc): Remove functions.
5464 (x86_64_linux_pc_in_sigtramp): Renamed from
5465 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5467 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5469 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5470 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5471 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5472 (x86_64_regmap): Rename to regmap.
5473 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5475 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5477 (x86_64_fxsave_offset): Remove function.
5478 (supply_fpregset): Simply call x86_64_supply_fxsave.
5479 (fill_fpregset): Simply call x86_64_fill_fxsave.
5480 (fetch_inferior_registers, store_inferior_registers): Avoid
5481 asignment in if-statement.
5482 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5483 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5484 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5485 (fetch_core_registers): Remove function.
5486 (linux_elf_core_fns): Remove.
5487 (offsetoff): Don't define.
5488 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5489 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5490 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5492 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5493 protection against multiple includes instead of NM_X86_64_h. Add
5494 various comments. Include "config/nm-linux.h". Don't include
5496 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5497 GET_THREAD_SIGNALS): Remove defines.
5498 (x86_64_register_u_addr, kernel_u_size,
5499 lin_thread_get_thread_signals): Remove prototypes.
5500 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5501 [HAVE_LINK_H]: Don't include "solib.h".
5502 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5503 * config/i386/tm-x86-64linux.h: Fix comments.
5504 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5505 x86-64-tdep.o): Update dependencies.
5507 2003-05-30 Andrew Cagney <cagney@redhat.com>
5509 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5510 Change parameter type to a "struct regcache *".
5512 * gdbarch.sh: Regardless of the multi-arch level, always define
5513 the macro when not already defined.
5514 * gdbarch.h, gdbarch.c: Re-generate.
5516 2003-05-30 Richard Henderson <rth@redhat.com>
5518 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5519 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5520 (alpha_mdebug_frame_this_id): Likewise.
5521 (alpha_mdebug_frame_prev_register): Likewise.
5522 (alpha_mdebug_frame_base_address): Likewise.
5523 (alpha_mdebug_frame_locals_address): Likewise.
5524 (alpha_mdebug_frame_args_address): Likewise.
5525 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5526 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5527 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5529 (alpha_heuristic_frame_this_id): Make static.
5530 (alpha_heuristic_frame_prev_register): Likewise.
5531 (alpha_heuristic_frame_base_address): Likewise.
5532 * alpha-tdep.h: Update.
5534 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5536 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5537 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5539 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5540 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5541 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5542 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5543 I386_ST0_REGNUM): New defines.
5544 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5545 codestream_get): Remove define.
5546 (codestream_next_addr, condestream_addr, condestream_buf,
5547 codestream_off, codestream_cnt): Remove variables.
5548 (codestream_fill, codestream_seek, codestream_read): Remove
5550 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5552 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5553 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5554 i386_frame_saved_pc, i386_saved_pc_after_call,
5555 i386_frame_num_args, i386_frame_init_saved_regs,
5556 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5557 i386_push_arguments): Remove functions.
5558 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5559 functionality. Use i386_analyze_prologue instead of
5560 i386_get_frame_setup.
5561 (I386_NUM_SAVED_REGS): New define.
5562 (struct i386_frame_cache): New structure.
5563 (i386_alloc_frame_cache, i386_analyze_struct_return,
5564 i386_skip_probe, i386_analyze_frame_setup,
5565 i386_analyze_register_saves, i386_analyze_prologue,
5566 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5567 i386_frame_prev_register, i386_sigtramp_frame_cache,
5568 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5569 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5570 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5572 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5574 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5575 I386_EAX_REGNUM and I386_EDX_REGNUM.
5576 (i386_extract_return_value, i386_store_return_value): Use
5577 I386_ST0_REGNUM where appropriate.
5578 (i386_extract_struct_value_address): Rewrite to use extract_address.
5579 (i386_svr4_pc_in_sigtramp): Add comment.
5580 (i386_svr4_sigcontext_addr): Rewrite.
5581 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5583 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5584 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5585 of new defines. Set push_dummy_call, don't set
5586 deprecated_push_arguments, deprecated_push_return_address,
5587 deprecated_pop_frame. Don't set parm_boundary. Don't set
5588 deprecated_frame_chain, deprecated_frame_saved_pc,
5589 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5590 save_dummy_frame_tos, unwind_pc. Call
5591 frame_unwind_append_predicate and frame_base_set_default. Don't
5592 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5593 Don't set frameless_function_invocation. Don't set
5594 deprecated_register_bytes, deprecated_register_size,
5595 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5596 * i386-linux-tdep.c: Fix formatting in some comments.
5597 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5598 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5599 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5600 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5601 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5602 redundant parentheses.
5603 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5604 (i386_linux_sigcontext_addr): Use it. Rewrite.
5605 (find_minsym_and_objfile): Change name of second argument.
5606 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5607 changed. Use frame_pc_unwind instead of
5608 DEPRECATED_SAVED_PC_AFTER_CALL.
5609 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5610 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5611 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5613 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5615 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5616 (_initialize_i386_cygwin_tdep): New prototype.
5617 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5618 deprecated_frame_chain_valid.
5619 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5620 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5621 Rely on the SVR4 defaults.
5622 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5623 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5625 2003-05-30 Andrew Cagney <cagney@redhat.com>
5627 * infcall.c (call_function_by_hand): Always call
5628 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5630 2003-05-30 Richard Henderson <rth@redhat.com>
5632 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5635 2003-05-29 Jim Blandy <jimb@redhat.com>
5637 Use gdbarch methods for solib stuff on PowerPC Linux.
5638 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5639 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5641 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5642 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5643 giving the same effect as the #definitions above.
5645 2003-05-29 Adam Fedor <fedor@gnu.org>
5647 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5648 (find_implementation_from_class): Replace it with the standard
5649 case i.e. do nothing.
5651 2003-05-29 Richard Henderson <rth@redhat.com>
5653 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5654 (alpha_linux_sigtramp_offset): Use it. Make static.
5655 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5656 update for new frame model.
5657 * alpha-mdebug-tdep.c: New file.
5658 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5659 (alpha_osf1_init_abi): Install it.
5660 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5661 (linked_proc_desc_table): Remove.
5662 (alpha_frame_past_sigtramp_frame): Remove.
5663 (alpha_dynamic_sigtramp_offset): Remove.
5664 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5665 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5666 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5667 (push_sigtramp_desc): Remove.
5668 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5669 (alpha_cannot_store_register): Likewise.
5670 (alpha_sigcontext_addr): Remove.
5671 (alpha_find_saved_regs): Remove.
5672 (alpha_frame_init_saved_regs): Remove.
5673 (alpha_init_frame_pc_first): Remove.
5674 (read_next_frame_reg): Remove.
5675 (alpha_frame_saved_pc): Remove.
5676 (alpha_saved_pc_after_call): Remove.
5677 (temp_proc_desc, temp_saved_regs): Remove.
5678 (alpha_about_to_return): Remove.
5679 (cached_proc_desc): Remove.
5680 (alpha_frame_chain): Remove.
5681 (alpha_print_extra_frame_info): Remove.
5682 (alpha_init_extra_frame_info): Remove.
5683 (alpha_frame_locals_address): Remove.
5684 (alpha_frame_args_address): Remove.
5685 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5686 (alpha_push_dummy_frame): Remove.
5687 (alpha_pop_frame): Remove.
5688 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5689 (alpha_read_insn): New.
5690 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5691 for different insn encodings.
5692 (alpha_in_lenient_prologue): Remove.
5693 (struct alpha_sigtramp_unwind_cache): New.
5694 (alpha_sigtramp_frame_unwind_cache): New.
5695 (alpha_sigtramp_register_address): New.
5696 (alpha_sigtramp_frame_this_id): New.
5697 (alpha_sigtramp_frame_prev_register): New.
5698 (alpha_sigtramp_frame_unwind): New.
5699 (alpha_sigtramp_frame_p): New.
5700 (struct alpha_heuristic_unwind_cache): New.
5701 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5702 don't count nop insns that occur between functions.
5703 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5704 heuristic_proc_desc, but without the mdebug wrapping.
5705 (alpha_heuristic_frame_this_id): New.
5706 (alpha_heuristic_frame_prev_register): New.
5707 (alpha_heuristic_frame_unwind): New.
5708 (alpha_heuristic_frame_p): New.
5709 (alpha_heuristic_frame_base_address): New.
5710 (alpha_heuristic_frame_base): New.
5711 (alpha_unwind_dummy_id): New.
5712 (alpha_unwind_pc): New.
5713 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5714 frame related deprecated initializations; install replacements.
5715 (alpha_dump_tdep): Remove.
5716 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5717 (alpha_read_insn, alpha_after_prologue,
5718 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5719 alpha_heuristic_frame_prev_register,
5720 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5721 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5722 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5723 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5725 2003-05-29 Andrew Cagney <cagney@redhat.com>
5727 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5728 dependant on the availability of ASSERT_FUNCTION.
5729 (ASSERT_FUNCTION): Do not define when there is no function name.
5731 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5733 From Jimi X <jimix@watson.ibm.com>:
5734 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5736 2003-05-28 Jim Blandy <jimb@redhat.com>
5738 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5739 argument to ptrace to int; the system headers should give it the
5740 right type, and pointers don't fit in ints on powerpc64-*-*.
5742 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5744 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5747 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5749 * stabsread.c (dbx_lookup_type): Make static.
5751 (add_undefined_type): Ditto.
5752 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5755 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5757 * hpread.c (hpread_has_name): Make static.
5758 (hpread_psymtab_to_symtab): Ditto.
5759 (file_exists): Ditto.
5760 (hpread_call_pxdb): Ditto.
5761 (hpread_pxdb_needed): Ditto.
5762 (hpread_quick_traverse): Ditto.
5763 (hpread_get_header): Ditto.
5764 (hpread_get_lntt): Ditto.
5765 (hpread_get_slt): Ditto.
5768 2003-05-25 Andreas Schwab <schwab@suse.de>
5770 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5771 stack_align and deprecated_extra_stack_alignment_needed.
5772 (m68k_stack_align): Delete.
5774 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5775 (m68k_register_virtual_size): Likewise.
5776 (altos_skip_prologue): Remove obsolete function.
5777 (isi_frame_num_args): Likewise.
5778 (news_frame_num_args): Likewise.
5779 (m68k_fix_call_dummy): Make static.
5780 (m68k_push_dummy_frame): Likewise.
5781 (m68k_pop_frame): Likewise.
5782 (m68k_skip_prologue): Likewise.
5783 (m68k_frame_init_saved_regs): Likewise.
5784 (m68k_saved_pc_after_call): Likewise.
5785 (m68k_get_longjmp_target): Make multi-arch.
5786 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5787 structure. Register m68k_get_longjmp_target if enabled.
5788 * m68k-tdep.h (struct gdbarch_tdep): Define.
5789 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5791 * Makefile.in (config.status): Also depend on configure.tgt
5793 (m68klinux-tdep.o): Update dependencies.
5794 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5795 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5796 (M68K_LINUX_JB_PC): Define.
5797 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5798 and take additional parameter.
5799 (m68k_linux_sigtramp_saved_pc): Update.
5800 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5801 m68k_linux_pc_in_sigtramp, in_plt_section,
5802 find_solib_trampoline_target.
5803 * config/m68k/tm-linux.h: Don't include any tm headers.
5804 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5805 (JB_ELEMENT_SIZE): Likewise.
5807 (GET_LONGJMP_TARGET): Likewise.
5808 (IN_SIGTRAMP): Likewise.
5809 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5811 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5813 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5814 (sparc32_push_arguments): Re-implement by calling
5815 sparc32_do_push_arguments.
5817 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5819 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5820 SPARC_O1_REGNUM): New defines.
5821 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5822 (sparc32_store_return_value): New function.
5823 (sparc_extract_struct_value_address): Rewrite to operate on a
5825 (sparc_gdbarch_init): Don't set
5826 deprecated_extract_struct_value_address. Set
5827 extract_struct_value_address instead. Don't set
5828 deprecated_extract_return_value and deprecated_store_return_value
5829 for 32-bit targets. Set extract_return_value and
5830 store_return_value instead.
5831 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5832 DEPRECTAED_EXTRACT_RETURN_VALUE,
5833 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5834 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5835 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5836 (sparc_store_return_value): Remove prototype.
5837 (sparc32_store_return_value): New prototype.
5838 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5841 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5843 * sparcnbsd-tdep.c: Include "gdb_string.h".
5845 2003-05-23 Andrew Cagney <cagney@redhat.com>
5847 * p-valprint.c (pascal_val_print): Replace extract_address with
5848 the inline equivalent extract_unsigned_integer.
5849 * jv-valprint.c (java_value_print): Ditto.
5850 * ada-valprint.c (ada_val_print_1): Ditto.
5851 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5853 2003-05-23 Theodore A. Roth <troth@openavr.org>
5855 * blockframe.c (frameless_look_for_prologue): Remove unused
5856 after_prologue variable.
5858 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5860 * blockframe.c (get_pc_function_start): Rewrite to avoid
5861 asignments in if-statements.
5863 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5865 Committed by Elena Zannoni <ezannoni@redhat.com>.
5866 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5867 files, don't relocate absolute symbols (and do use mst_abs).
5869 2003-05-23 Andrew Cagney <cagney@redhat.com>
5871 * objc-lang.c: Include "gdb_assert.h".
5872 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5873 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5874 (gdb_check, gdb_check_fatal): Delete functions.
5875 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5877 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5878 * Makefile.in (objc-lang.o): Update dependencies.
5880 2003-05-22 Ian Lance Taylor <ian@airs.com>
5882 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5883 with fprintf_filtered, not fprintf_unfiltered.
5885 2003-05-22 Andrew Cagney <cagney@redhat.com>
5887 * stack.c (frame_info): Inline extract_address, replacing it with
5888 extract_unsigned_integer.
5889 * findvar.c (unsigned_pointer_to_address): Ditto.
5890 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5891 * dwarf2expr.c (dwarf2_read_address): Ditto.
5892 * frame.c (frame_pc_unwind): Update comment.
5893 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5895 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5897 * infptrace.c (detach): Call print_sys_errmsg rather than
5898 perror_with_name to issue warning message when errno is non-zero
5899 after calling ptrace detach.
5901 2003-05-21 J. Brobecker <brobecker@gnat.com>
5903 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5904 macro definitions from here...
5905 * hppa-tdep.c: ...to there.
5907 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5909 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5910 register_ptrace_addr(). Fix all callers.
5912 2003-05-21 Andreas Schwab <schwab@suse.de>
5914 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5916 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5918 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5919 (_initialize_m68k_linux_tdep): New function.
5920 (m68k_linux_frame_saved_pc): Make static.
5921 (m68k_linux_extract_return_value): Likewise.
5922 (m68k_linux_store_return_value): Likewise.
5923 (m68k_linux_extract_struct_value_address): Likewise.
5924 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5926 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5927 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5928 (DEPRECATED_FRAME_SAVED_PC): Remove.
5930 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5932 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5933 regset numbering rather than our own.
5935 2003-05-19 David Carlton <carlton@bactrian.org>
5937 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5939 2003-05-19 David Carlton <carlton@bactrian.org>
5941 Partial fix for PR c++/827.
5942 * cp-support.h: Include symtab.h.
5943 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5944 * cp-namespace.c: Update contributors.
5945 (cp_lookup_symbol_nonlocal): New.
5946 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5947 (lookup_symbol_file): Ditto.
5948 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5949 * block.h: Declare block_scope, block_using, block_global_block.
5950 * block.c (block_scope): New.
5951 (block_using, block_global_block): Ditto.
5952 * Makefile.in (cp_support_h): Depend on symtab_h.
5953 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5955 2003-05-19 David Carlton <carlton@bactrian.org>
5957 * language.h (struct language_defn): Add 'la_value_of_this'
5958 and 'la_lookup_symbol_nonlocal' members.
5959 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5960 lookup_symbol_static, lookup_symbol_global,
5961 lookup_symbol_aux_block.
5962 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5963 if we should search fields of this and how to do static/global
5965 (lookup_symbol_aux_block): Make extern.
5966 (basic_lookup_symbol_nonlocal): New.
5967 (lookup_symbol_static, lookup_symbol_global): Ditto.
5968 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5969 'la_lookup_symbol_nonlocal' members.
5970 * c-lang.c (c_language_defn, cplus_language_defn)
5971 (asm_language_defn, minimal_language_defn): Ditto.
5972 * jv-lang.c (java_language_defn): Ditto.
5973 * language.c (unknown_language_defn, auto_language_defn)
5974 (local_language_defn): Ditto.
5975 * m2-lang.c (m2_language_defn): Ditto.
5976 * objc-lang.c (objc_language_defn): Ditto.
5977 * scm-lang.c (scm_language_defn): Ditto.
5978 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5979 * p-lang.c (pascal_language_defn): Ditto for both.
5980 * Makefile.in (f-lang.o): Depend on value_h.
5983 2003-05-19 David Carlton <carlton@bactrian.org>
5985 * block.h: Declare block_static_block.
5986 * block.c (block_static_block): New.
5987 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5988 lookup_symbol_aux_local, calling block_static_block instead.
5989 (lookup_symbol_aux_local): Delete 'static_block' argument.
5991 2003-05-19 David Carlton <carlton@bactrian.org>
5993 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5995 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5997 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5998 register numbers mapping.
6000 2003-05-18 Adam Fedor <fedor@gnu.org>
6002 * symtab.c (completion_list_objc_symbol): New function.
6003 (make_symbol_completion_list): Use it to add ObjC symbols
6004 when looking though the list.
6005 (language_search_unquoted_string): New function.
6006 (make_file_symbol_completion_list): Use it.
6008 2003-05-18 Andreas Schwab <schwab@suse.de>
6010 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6012 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6013 as m68k_linux_extract_return_value.
6014 (DEPRECATED_STORE_RETURN_VALUE): Define as
6015 m68k_linux_store_return_value.
6016 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6017 m68k_linux_extract_struct_value_address.
6018 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6019 get_next_frame, get_frame_base, get_frame_pc.
6020 (m68k_linux_frame_saved_pc): Use get_frame_base.
6021 (m68k_linux_extract_return_value): New function.
6022 (m68k_linux_store_return_value): New function.
6023 (m68k_linux_extract_struct_value_address): New function.
6024 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6026 * c-exp.y (typebase): Remove duplicate occurence of
6027 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6028 of lookup_signed_typename.
6030 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6032 * dwarf2loc.c (find_location_expression): Change type of second
6033 argument to `size_t *'.
6034 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6037 2003-05-18 David Carlton <carlton@bactrian.org>
6039 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6040 'linkage_name'. Add comment.
6041 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6043 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6044 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6045 (lookup_block_symbol): Ditto.
6047 2003-05-16 Andrew Cagney <cagney@redhat.com>
6049 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6050 * gdbarch.h, gdbarch.c: Re-generate.
6051 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6052 * TODO (REGISTER_BYTES): Delete reference.
6053 * alpha-tdep.c (alpha_gdbarch_init): Update.
6054 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6055 * x86-64-tdep.c (x86_64_init_abi): Update.
6056 * vax-tdep.c (vax_gdbarch_init): Update.
6057 * v850-tdep.c (v850_gdbarch_init): Update.
6058 * sparc-tdep.c (sparc_gdbarch_init): Update.
6059 * sh-tdep.c (sh_gdbarch_init): Update.
6060 * s390-tdep.c (s390_gdbarch_init): Update.
6061 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6062 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6063 (ns32k_gdbarch_init_32382): Update.
6064 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6065 * mcore-tdep.c (mcore_gdbarch_init): Update.
6066 * m68k-tdep.c (m68k_gdbarch_init): Update.
6067 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6068 * ia64-tdep.c (ia64_gdbarch_init): Update.
6069 * i386-tdep.c (i386_gdbarch_init): Update.
6070 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6071 * hppa-tdep.c (hppa_gdbarch_init): Update.
6072 * h8300-tdep.c (h8300_gdbarch_init): Update.
6073 * frv-tdep.c (frv_gdbarch_init): Update.
6074 * cris-tdep.c (cris_gdbarch_init): Update.
6075 * avr-tdep.c (avr_gdbarch_init): Update.
6076 * arm-tdep.c (arm_gdbarch_init): Update.
6077 * sparc-tdep.c (sparc_pop_frame): Update.
6078 * rs6000-tdep.c (rs6000_pop_frame): Update.
6079 * remote.c (init_remote_state): Update.
6080 (remote_prepare_to_store): Update.
6081 * remote-vx.c (vx_prepare_to_store): Update.
6082 * remote-sds.c (sds_fetch_registers): Update.
6083 (sds_prepare_to_store): Update.
6084 * remote-array.c: Update.
6085 * regcache.c (init_legacy_regcache_descr): Update.
6086 (init_regcache_descr): Update.
6087 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6088 (mips_o64_extract_return_value): Update.
6089 * irix5-nat.c (fetch_core_registers): Update.
6090 * irix4-nat.c (fetch_core_registers): Update.
6091 * i386-tdep.h: Update.
6092 * hppa-tdep.c (pa_do_registers_info): Update.
6093 (pa_do_strcat_registers_info): Update.
6094 * cris-tdep.c (cris_register_bytes_ok): Update.
6095 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6096 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6097 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6098 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6099 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6100 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6101 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6102 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6103 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6104 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6105 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6106 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6107 (REGISTER_BYTES_OK): Update.
6108 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6109 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6111 2003-05-16 Ian Lance Taylor <ian@airs.com>
6113 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6114 (vax_print_insn, print_insn_arg): Remove static functions.
6115 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6116 print_insn_vax from opcodes library.
6117 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6119 2003-05-15 Andrew Cagney <cagney@redhat.com>
6121 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6122 * target.h (memory_breakpoint_from_pc): Delete declaration.
6123 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6124 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6125 * monitor.c (monitor_insert_breakpoint): Use
6126 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6127 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6128 * gdbarch.h, gdbarch.c: Re-generate.
6129 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6130 (sparc_gdbarch_init): Set breakpoint_from_pc to
6131 sparc_breakpoint_from_pc.
6132 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6133 (BREAKPOINT_FROM_PC): Define.
6134 (sparc_breakpoint_from_pc): Declare.
6135 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6136 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6137 (BREAKPOINT_FROM_PC): Define.
6138 (BREAKPOINT): Delete macro.
6139 * target.h: Update comment.
6140 * s390-tdep.c (s390_gdbarch_init): Update comments.
6141 * remote.c: Update comments.
6142 * remote-mips.c: Update comments.
6143 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6144 * mem-break.c: Update comment.
6145 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6146 (ia64_memory_insert_breakpoint): Update.
6147 * config/sparc/tm-sparc.h: Update comment.
6148 * config/pa/tm-hppa64.h: Update comment.
6149 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6150 (rs6000_breakpoint_from_pc): Update.
6151 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6152 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6153 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6154 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6155 (mips_breakpoint_from_pc): Update.
6156 (mips_dump_tdep): Update.
6158 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6159 * minsyms.c (lookup_minimal_symbol): Inline
6160 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6162 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6163 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6164 * p-lang.c (pascal_printstr): Ditto.
6165 * objc-lang.c (objc_printstr): Ditto.
6166 * m2-lang.c (m2_printstr): Ditto.
6167 * jv-valprint.c (java_print_value_fields): Ditto.
6168 * f-lang.c (f_printstr): Ditto.
6169 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6170 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6171 for repeat_count_threshold.
6172 * Makefile.in (cp-valprint.o): Update dependencies.
6174 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6176 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6177 (examine_prologue): Support looking through leaf functions, knowing
6178 they start with mov r2,r12. Support skipping over indirect stores
6179 of the input registers. Upon hitting a non-nop branch instruction
6180 or predicated instruction, bail out by setting lim_pc to the current
6181 pc value in the loop. At the end, if the lim_pc value is still
6182 beyond our calculated value and we have trust_limit set,
6183 use the lim_pc value.
6185 2003-05-15 Andrew Cagney <cagney@redhat.com>
6187 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6188 generic_find_dummy_frame.
6189 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6190 (deprecated_generic_find_dummy_frame): Update.
6191 (deprecated_read_register_dummy): Update.
6192 * frame.c (deprecated_generic_get_saved_register): Update.
6194 2003-05-15 Theodore A. Roth <troth@openavr.org>
6196 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6197 (avr_gdbarch_init): Set breakpoint_from_pc method.
6199 2003-05-15 Andrew Cagney <cagney@redhat.com>
6201 * regcache.c (build_regcache): Set deprecated_register_valid
6203 (deprecated_grub_regcache_for_register_valid): Delete function.
6204 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6207 2003-05-15 David Carlton <carlton@bactrian.org>
6209 Committed by Elena Zannoni <ezannoni@redhat.com>
6210 * symtab.c (lookup_symbol_aux): Delete calls to
6211 lookup_symbol_aux_minsyms.
6212 (lookup_symbol_aux_minsyms): Comment out function and
6213 prototype. Delete lookup by mangled name.
6215 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6217 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6218 correctly indicate an empty stack and ``stack_allocated'' to the
6219 indicate the number of elements initially allocated.
6220 (dwarf_expr_grow_stack): Simplify method for computing new
6221 stack size. Don't loop infinitely if ``stack_len'' is zero.
6222 (execute_stack_op): Move ``ctx->in_reg'' initialization
6223 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6224 be used in conjuction with DW_OP_piece. Revise error message
6227 2003-05-14 Theodore A. Roth <troth@openavr.org>
6229 * MAINTAINERS: Update my email address.
6230 * avr-tdep.c: Ditto.
6232 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6234 * symtab.h (enum domain_enum): Rename from namespace_enum.
6235 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6236 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6237 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6238 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6239 TYPES_NAMESPACE, METHODS_NAMESPACE.
6240 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6241 (struct symbol, struct partial_symbol): Rename field
6242 'namespace_enum namespace' to 'domain_enum domain'.
6243 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6244 Delete old define kludge for namespace.
6246 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6247 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6248 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6249 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6250 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6251 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6252 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6253 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6254 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6255 occurrences of the above.
6257 2003-05-14 Ian Lance Taylor <ian@airs.com>
6259 * Makefile.in (install-only): Use $(SHELL) when running
6262 2003-05-13 Ian Lance Taylor <ian@airs.com>
6264 * MAINTAINERS (write after approval): Add myself.
6266 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6267 second and third arguments.
6268 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6269 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6271 2003-05-13 Andrew Cagney <cagney@redhat.com>
6273 * defs.h (store_address): Delete declaration.
6274 findvar.c (store_address): Delete function.
6275 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6276 store_unsigned_integer.
6277 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6278 * v850-tdep.c (v850_push_arguments): Ditto.
6279 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6280 * sh-tdep.c (sh64_get_saved_register): Ditto.
6281 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6282 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6283 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6284 (mips_get_saved_register): Ditto.
6285 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6286 (find_func_descr, ia64_push_arguments): Ditto.
6287 * i386-tdep.c (i386_push_arguments): Ditto.
6288 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6289 * frv-tdep.c (frv_push_arguments): Ditto.
6290 * frame.c (legacy_saved_regs_prev_register): Ditto.
6291 (deprecated_generic_get_saved_register): Ditto.
6292 * findvar.c (unsigned_address_to_pointer): Ditto.
6293 * dwarf2read.c (dwarf2_const_value): Ditto.
6294 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6295 * alpha-tdep.c (alpha_push_arguments): Ditto.
6297 2003-05-12 J. Brobecker <brobecker@gnat.com>
6299 * NEWS: Mention that the hppa-hpux port has been partially
6300 multiarched (32bit ABIT only, so far).
6302 2003-05-11 Andrew Cagney <cagney@redhat.com>
6304 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6305 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6306 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6307 sim/testsuite/sim/arm/misaligned2.ms, and
6308 sim/testsuite/sim/arm/misaligned3.ms.
6309 * disasm.h (struct ui_file): Add opaque struct declaration.
6310 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6311 * frame.h (struct ui_file): Ditto.
6313 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6315 * value.h: Pretty print.
6317 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6319 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6321 2003-05-08 Andrew Cagney <cagney@redhat.com>
6323 * regcache.h (max_register_size): Delete declaration.
6324 * regcache.c (max_register_size): Delete function.
6325 (struct regcache_descr): Delete field "max_register_size".
6326 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6327 registers fit in MAX_REGISTER_SIZE.
6328 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6329 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6330 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6331 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6332 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6333 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6334 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6335 * dve3900-rom.c, hppa-tdep.c: Ditto.
6337 2003-05-08 David Carlton <carlton@math.stanford.edu>
6339 * valops.c (push_word): Fix typo.
6341 2003-05-08 Andrew Cagney <cagney@redhat.com>
6343 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6344 * gdbarch.h: Re-generate.
6345 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6346 (legacy_max_register_raw_size): Delete declaration.
6347 * regcache.c (legacy_max_register_raw_size): Delete function.
6348 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6349 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6350 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6351 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6352 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6353 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6354 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6355 * findvar.c, dwarf2cfi.c: Ditto.
6357 2003-05-08 Andrew Cagney <cagney@redhat.com>
6359 * mips-tdep.c (read_signed_register): New function, moved to here
6361 (read_signed_register_pid): Ditto.
6362 * regcache.c (read_signed_register_pid): Delete function, moved to
6364 (read_signed_register): Ditto.
6365 * regcache.h (read_signed_register): Delete declaration.
6366 (read_signed_register_pid): Delete declaration.
6368 2003-05-08 Andrew Cagney <cagney@redhat.com>
6370 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6371 * gdbarch.h: Re-generate.
6372 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6373 (legacy_max_register_virtual_size): Delete declaration.
6374 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6375 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6376 * tracepoint.c (memrange_sortmerge): Ditto.
6377 * sparc-tdep.c (sparc_print_registers): Ditto.
6378 * regcache.c (legacy_max_register_virtual_size): Delete function.
6380 2002-05-08 J. Brobecker <brobecker@gnat.com>
6382 * fork-child.c (escape_bang_in_quoted_argument): New function.
6383 (fork_inferior): Escape '!' characters in quoted arguments
6386 2003-05-08 J. Brobecker <brobecker@gnat.com>
6388 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6389 the language of the CU is not currently supported by GDB.
6391 2003-05-08 J. Brobecker <brobecker@gnat.com>
6393 * defs.h (language): Add language_minimal enum value.
6394 * c-lang.c (minimal_language_defn): New language definition.
6395 (_initialize_c_language): Add the new minimal language to the list
6396 of languages known to GDB.
6398 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6400 * frame.c (get_frame_type): Don't attempt to lazily initialize
6401 frame's unwinder for legacy frames.
6403 2003-05-07 Andrew Cagney <cagney@redhat.com>
6405 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6406 and "regcache" parameters.
6407 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6409 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6411 * dwarf2read.c (dwarf_decode_lines): Only use output of
6412 check_cu_functions() when calling record_line(). Do not update
6413 the current address.
6415 2003-05-07 Andrew Cagney <cagney@redhat.com>
6417 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6420 2003-05-07 Jim Blandy <jimb@redhat.com>
6422 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6423 'maint info symtabs' and 'maint info psymtabs'.
6424 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6425 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6426 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6427 Declarations updated.
6428 * maint.c (maintenance_list_command): Delete.
6429 (_initialize_maint_cmds): Update calls to add_cmd.
6430 * gdbcmd.h (maintenancelistlist): Delete declaration.
6431 * cli/cli-cmds.c (maintenancelistlist): Delete.
6432 (init_cmd_lists): Don't initialize it.
6433 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6435 2003-05-07 Andrew Cagney <cagney@redhat.com>
6437 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6439 (d10v_print_registers_info): Update.
6440 (d10v_dmap_register, d10v_imap_register): Delete functions.
6441 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6442 and "imap_register".
6443 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6444 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6445 * arch-utils.c (generic_remote_translate_xfer_address): Add
6446 "regcache" and "gdbarch" parameters.
6447 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6448 parameter. Change class to multi-arch.
6449 * gdbarch.h, gdbarch.c: Re-generate.
6450 * remote.c (remote_xfer_memory): Use
6451 gdbarch_remote_translate_xfer_address.
6453 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6455 * infrun.c (prev_pc): Move declaration ahead of proceed().
6456 (proceed): Refresh prev_pc value before resuming.
6457 (stop_stepping): Remove code to refresh prev_pc.
6459 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6461 * nto-tdep.c: Removed stray comment.
6463 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6465 * i386-nto-tdep.c: Fix old K&R function definitions.
6466 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6467 Also change add_show_from_set() call to add_setshow_cmd().
6468 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6470 2003-05-05 Andrew Cagney <cagney@redhat.com>
6472 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6473 (fprint_dummy_frames): New function.
6474 (maintenance_print_dummy_frames): New function.
6475 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6476 * frame.c (fprint_frame_id): Make global.
6477 * frame.h (fprint_frame_id): Declare.
6478 * Makefile.in (dummy-frame.o): Update dependencies.
6480 2003-05-05 Andrew Cagney <cagney@redhat.com>
6482 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6483 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6484 SIZEOF_CALL_DUMMY_WORDS.
6485 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6486 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6487 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6488 CALL_DUMMY_BREAKPOINT_OFFSET.
6489 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6490 CALL_DUMMY_START_OFFSET.
6491 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6492 * gdbarch.h, gdbarch.c: Re-generate.
6493 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6494 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6495 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6496 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6497 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6498 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6499 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6500 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6501 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6502 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6503 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6504 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6505 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6506 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6507 * config/sparc/tm-sparc.h: Update.
6509 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6511 * configure.tgt: Add i[3456]86-*-nto*.
6512 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6513 * nto-tdep.c: New file. Neutrino target support routines.
6514 * nto-tdep.h: New file. Neutrino target header.
6515 * config/tm-qnxnto.h: New file.
6516 * config/i386/i386nto.mt: New file.
6517 * config/i386/tm-i386nto.h: New file.
6519 2003-05-04 Andrew Cagney <cagney@redhat.com>
6521 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6522 (load_infrun_state): Ditto.
6523 (struct thread_info): Drop "prev_func_name" field.
6524 * thread.c (load_infrun_state): Update.
6525 (save_infrun_state): Update.
6526 * infrun.c (prev_func_name): Delete variable.
6527 (init_wait_for_inferior): Do not clear prev_func_name.
6528 (stop_stepping, keep_going, context_switch): Do not swap
6530 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6531 instead of PC_IN_SIGTRAMP.
6533 2003-05-04 Andrew Cagney <cagney@redhat.com>
6535 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6536 REGISTER_BYTE with register_offset_hack.
6537 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6538 that REGISTER_BYTE is consistent with the regcache.
6539 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6540 * gdbarch.h, gdbarch.c: Regenerate.
6542 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6544 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6545 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6547 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6549 2003-05-03 J. Brobecker <brobecker@gnat.com>
6551 From Thierry Schneider <tpschneider1@yahoo.com>
6552 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6553 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6554 (mi-cmd-symbol.o): Add rule.
6556 2003-05-03 Andrew Cagney <cagney@redhat.com>
6558 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6559 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6560 * gdbarch.h, gdbarch.c: Re-generate.
6561 * d10v-tdep.c (d10v_push_dummy_code): New function.
6562 (d10v_gdbarch_init): Set push_dummy_code.
6563 * infcall.c (legacy_push_dummy_code): New function.
6564 (generic_push_dummy_code): New function.
6565 (push_dummy_code): New function.
6566 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6567 instead of dummy_addr, to push_dummy_call. Move call to
6568 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6570 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6572 2003-05-03 Andrew Cagney <cagney@redhat.com>
6574 * disasm.h (print_insn): Declare.
6575 * disasm.c (init_gdb_disassemble_info): New function.
6576 (gdb_disassembly): Call init_gdb_disassemble_info.
6577 (gdb_print_insn): New function.
6578 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6579 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6580 * mcore-tdep.c: Include "disasm.h"
6581 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6582 * d10v-tdep.c: Include "disasm.h".
6583 (display_trace): Call gdb_print_insn, instead of print_insn.
6584 (print_insn): Delete function.
6585 * printcmd.c: Include "disasm.h".
6586 (print_insn): Delete function.
6587 (print_formatted): Call gdb_print_insn, instead of print_insn.
6588 * Makefile.in (printcmd.o): Update dependencies.
6589 (mcore-tdep.o, d10v-tdep.o): Ditto.
6591 2003-05-02 Andrew Cagney <cagney@redhat.com>
6593 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6594 PC_REGNUM, re-indent.
6595 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6596 PC_REGNUM isn't set.
6598 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6599 * gdbarch.h, gdbarch.c: Re-generate.
6600 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6601 register_virtual_size, pc_regnum, or register_bytes.
6602 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6603 (d10v_register_type): Use D10V_PC_REGNUM.
6604 (d10v_print_registers_info, d10v_read_pc): Ditto.
6605 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6606 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6608 2003-05-02 David Carlton <carlton@bactrian.org>
6610 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6611 the name with mstrsave.
6613 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6615 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6616 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6617 (host_charset_name, target_charset_name): New vars for use by
6619 (host_charset_enum, target_charset_enum): New enums for set/show
6621 (set_charset_sfunc, set_host_charset_sfunc,
6622 set_target_charset_sfunc): New functions.
6623 (set_host_charset, set_target_charset): Make static.
6624 (list_charsets, set_host_charset_command,
6625 set_target_charset_command): Delete functions.
6626 (show_charset_command): Rewrite as....
6627 (show_charset): Hook this up with the set/show command mechanism.
6628 (_initialize_charset): Change names of charsets to match the
6629 set/show enums. Use host_charset_name and target_charset_name.
6630 Use set/show mechanism for charset, host-charset, target-charset
6631 commands. Do not make 'show host-charset' and 'show
6632 target-charset' be aliases of 'show charset'.
6634 * charset.h (set_host_charset, set_target_charset): Don't export,
6635 they are not used outside the file.
6637 2003-05-01 Andrew Cagney <cagney@redhat.com>
6639 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6640 (gdb_disassembly): Make "di" non static, always initialize and
6641 cleanup. Always use dis_asm_read_memory.
6642 (gdb_dis_asm_read_memory): Delete function.
6644 2003-05-01 Andrew Cagney <cagney@redhat.com>
6646 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6647 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6649 2003-04-30 Andrew Cagney <cagney@redhat.com>
6651 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6652 "tm_print_insn_info".
6653 (TARGET_PRINT_INSN_INFO): Delete macro.
6654 (dis_asm_read_memory): Delete function declaration.
6655 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6656 (tm_print_insn_info): Delete variable definition.
6657 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6658 * gdbarch.h, gdbarch.c: Re-generate.
6659 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6660 "deprecated_tm_print_insn_info".
6661 * mcore-tdep.c (mcore_dump_insn): Ditto.
6662 * mips-tdep.c (mips_gdbarch_init): Ditto.
6663 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6664 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6665 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6666 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6667 instead of TARGET_PRINT_INSN_INFO, add comment.
6668 * s390-tdep.c (s390_get_frame_info): Instead of
6669 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6670 (s390_check_function_end, s390_is_sigreturn): Ditto.
6671 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6672 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6673 * disasm.c: Include "gdbcore.h".
6674 (_initialize_disasm): New function, initialize
6675 "deprecated_tm_print_insn_info".
6676 (deprecated_tm_print_insn_info): New variable.
6677 (dis_asm_read_memory): Moved from "corefile.c", made static.
6678 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6679 * Makefile.in (disasm.o): Update dependencies.
6681 2003-04-30 Andrew Cagney <cagney@redhat.com>
6683 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6685 2003-04-29 Adam Fedor <fedor@gnu.org>
6687 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6688 * infcall.c (find_function_addr): Make non-static.
6689 * infcall.h (find_function_addr): Declare.
6690 * Makefile.in (eval.o): Update dependencies.
6692 2003-04-28 Adam Fedor <fedor@gnu.org>
6694 * symtab.c (symbol_find_demangled_name): Check for and demangle
6696 (symbol_init_demangled_name): Init for language_objc as well.
6698 2003-04-28 Andrew Cagney <cagney@redhat.com>
6700 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6701 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6702 * gdbarch.h, gdbarch.c: Re-generate.
6703 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6704 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6705 * inferior.h (deprecated_read_fp): Rename read_fp.
6706 (generic_target_read_fp): Delete declaration.
6707 * regcache.c (generic_target_read_fp): Delete function.
6708 (deprecated_read_fp): Replace read_fp, use
6709 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6710 * d10v-tdep.c (d10v_read_fp): Delete function.
6711 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6713 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6714 deprecated_target_read_fp to generic_target_read_fp.
6715 * sh-tdep.c (sh_gdbarch_init): Ditto.
6716 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6717 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6718 * frv-tdep.c (frv_gdbarch_init): Ditto.
6720 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6721 deprecated_fp_regnum.
6722 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6723 * vax-tdep.c (vax_gdbarch_init): Ditto.
6724 * v850-tdep.c (v850_gdbarch_init): Ditto.
6725 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6726 * sh-tdep.c (sh_gdbarch_init): Ditto.
6727 * s390-tdep.c (s390_gdbarch_init): Ditto.
6728 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6729 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6730 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6731 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6732 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6733 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6734 * i386-tdep.c (i386_gdbarch_init): Ditto.
6735 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6736 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6737 * frv-tdep.c (frv_gdbarch_init): Ditto.
6738 * cris-tdep.c (cris_gdbarch_init): Ditto.
6739 * avr-tdep.c (avr_gdbarch_init): Ditto.
6740 * arm-tdep.c (arm_gdbarch_init): Ditto.
6741 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6743 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6744 * v850-tdep.c (v850_gdbarch_init): Ditto.
6745 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6746 * sh-tdep.c (sh_gdbarch_init): Ditto.
6747 * s390-tdep.c (s390_gdbarch_init): Ditto.
6748 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6749 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6750 * mips-tdep.c (mips_gdbarch_init): Ditto.
6751 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6752 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6753 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6754 * frv-tdep.c (frv_gdbarch_init): Ditto.
6755 * avr-tdep.c (avr_gdbarch_init): Ditto.
6756 * arm-tdep.c (arm_gdbarch_init): Ditto.
6758 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6759 DEPRECATED_FP_REGNUM.
6760 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6761 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6762 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6763 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6764 (sparc32_register_virtual_type): Ditto.
6765 * sh-tdep.c (sh64_frame_chain): Ditto.
6766 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6767 (sh_nofp_frame_init_saved_regs): Ditto.
6768 (sh64_nofp_frame_init_saved_regs): Ditto.
6769 (sh_fp_frame_init_saved_regs): Ditto.
6770 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6771 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6772 * procfs.c (procfs_fetch_registers): Ditto.
6773 (procfs_store_registers): Ditto.
6774 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6775 (store_inferior_registers, fetch_core_registers): Ditto.
6776 (fetch_kcore_registers, clear_regs): Ditto.
6777 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6778 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6779 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6780 * nlm/i386.c (do_status): Ditto.
6781 * mipsv4-nat.c (supply_gregset): Ditto.
6782 * mips-tdep.c: Ditto for comments.
6783 * mips-nat.c (fetch_inferior_registers): Ditto.
6784 (store_inferior_registers, fetch_core_registers): Ditto.
6785 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6786 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6787 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6788 (i386_do_pop_frame, i386_register_type): Ditto.
6789 * hppa-tdep.c (hppa_frame_chain): Ditto.
6790 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6791 (hppa_pop_frame, hppa_read_fp): Ditto.
6792 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6793 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6794 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6795 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6796 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6797 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6798 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6799 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6800 * blockframe.c: Ditto for comments.
6801 * arch-utils.h: Ditto for comments.
6802 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6803 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6804 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6805 * alpha-tdep.h: Ditto for comments.
6806 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6807 (alpha_cannot_store_register): Ditto.
6808 (alpha_push_dummy_frame): Ditto.
6809 * alpha-nat.c (supply_gregset): Ditto.
6811 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6812 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6813 * config/sparc/tm-sparc.h: Update comment.
6815 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6816 deprecated_read_fp instead of TARGET_READ_FP.
6817 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6818 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6819 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6820 deprecated_read_fp instead of read_fp.
6821 * s390-tdep.c (s390_push_arguments): Ditto.
6822 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6823 * frame.h: Ditto in comments.
6824 * frame.c (legacy_get_prev_frame): Ditto.
6825 * dummy-frame.c (dummy_frame_this_id): Ditto.
6826 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6828 2003-04-28 Andrew Cagney <cagney@redhat.com>
6830 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6831 * gdbarch.h, gdbarch.c: Re-generate.
6832 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6833 * vax-tdep.c (_initialize_vax_tdep): Update.
6834 * v850-tdep.c (_initialize_v850_tdep): Update.
6835 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6836 * s390-tdep.c (_initialize_s390_tdep): Update.
6837 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6838 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6839 * mips-tdep.c (_initialize_mips_tdep): Update.
6840 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6841 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6842 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6843 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6844 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6845 * frv-tdep.c (_initialize_frv_tdep): Update.
6846 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6847 (_initialize_cris_tdep): Update.
6848 * arch-utils.c (legacy_print_insn): Update.
6849 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6851 2003-04-26 Adam Fedor <fedor@gnu.org>
6853 * linespec.c (decode_objc): New function to decode ObjC calls
6854 (decode_line_1): Check for ObjC calls (using decode_objc)
6855 * Makefile (linespec.o): Update dependencies.
6857 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6859 * breakpoint.h (struct breakpoint_ops): New.
6860 (struct breakpoint): Add ops member.
6862 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6863 (mention): Use new breakpoint ops member.
6864 (set_raw_breakpoint): Initialize ops field to NULL.
6865 (print_exception_catchpoint, print_one_exception_catchpoint)
6866 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6867 (gnu_v3_exception_catchpoint_ops): New.
6868 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6870 2003-04-25 Adam Fedor <fedor@gnu.org>
6872 * Makefile.in (COMMON_OBS): Add objc-lang.o
6874 2003-04-25 Andrew Cagney <cagney@redhat.com>
6876 * d10v-tdep.c (print_insn): Delete function.
6877 (display_trace): Use TARGET_PRINT_INSN.
6878 (_initialize_d10v_tdep): Do not set tm_print_insn.
6879 (d10v_gdbarch_init): Set print_insn.
6881 2003-04-25 Andrew Cagney <cagney@redhat.com>
6883 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6884 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6885 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6886 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6887 (nr_dmap_regs, a0_regnum): ... new functions.
6888 (d10v_print_registers_info): Use a0_regnum, use register_size.
6889 (d10v_register_byte): Delete function.
6890 (d10v_register_raw_size): Delete function.
6891 (d10v_register_type): Use a0_regnum.
6892 (d10v_print_registers_info): Use a0_regnum.
6893 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6894 (d10v_gdbarch_init): Do not set register_byte or
6895 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6896 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6898 (trace_command): Use XCALLOC.
6899 (print_insn): Delete reference to tm_print_insn.
6900 (saved_regs_unwinder): Use store_unsigned_integer instead of
6902 * frame.h (FRAME_OBSTACK_CALLOC): Define
6904 2003-04-25 David Carlton <carlton@bactrian.org>
6906 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6908 2003-04-24 Adam Fedor <fedor@gnu.org>
6910 * objc-lang.c: Include "valprint.h"
6911 * Makefile.in (objc-lang.o): Update dependencies.
6913 2003-04-24 Adam Fedor <fedor@gnu.org>
6915 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6916 architecture dependant compilation and mark as unimplemented
6917 (until they get put in the gdbarch vector).
6919 2003-04-23 David Carlton <carlton@bactrian.org>
6921 * cp-support.c (cp_find_first_component): Accept 'operator' in
6924 2003-04-23 Andrew Cagney <cagney@redhat.com>
6926 * infcall.c (call_function_by_hand): Eliminate redundant
6927 indentation. Move "saved_async" and "old_cleanups" to where they
6930 2003-04-23 Andrew Cagney <cagney@redhat.com>
6932 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6933 and "buffer". Move the "name" code to where it is needed.
6935 2003-04-23 Andrew Cagney <cagney@redhat.com>
6937 * infcall.c (call_function_by_hand): Move variables "start_sp",
6938 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6939 code to ON_STACK switch branch.
6941 2003-04-23 Andrew Cagney <cagney@redhat.com>
6943 * infcall.c (call_function_by_hand): Make declaration of "i",
6944 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6947 2003-04-23 Andrew Cagney <cagney@redhat.com>
6949 * infcall.c (call_function_by_hand): Delete variable
6950 "n_method_args". Localize "param_type"'s declaration to the loop
6951 that it is used. Reinstate code assigning to said variable -
6952 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6953 Rationalize code using "param_type".
6955 2003-04-22 Andrew Cagney <cagney@redhat.com>
6957 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6958 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6959 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6960 to DEPRECATED_PUSH_RETURN_ADDRESS.
6962 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6964 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6965 on the DWARF2 register number prior to fetching a register.
6967 2003-04-22 J. Brobecker <brobecker@gnat.com>
6969 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6970 Update all the tests using SOFT_FLOAT considering the fact that
6971 this macro was always set to 0.
6972 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6973 considering the fact that this macro was always set to 0.
6974 * hppa-tdep.h (hppa_store_return_value): Likewise.
6975 (hppa_extract_return_value): Likewise.
6977 2003-04-22 J. Brobecker <brobecker@gnat.com>
6979 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6980 the hppa-pro target only.
6982 2003-04-21 J. Brobecker <brobecker@gnat.com>
6984 Ongoing multi-arch conversion effort for HP/UX:
6985 * config/pa/tm-hppa.h: Move all macro that are no longer
6986 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6987 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6989 2003-04-21 J. Brobecker <brobecker@gnat.com>
6991 * config/pa/tm-hppa.h: Obsolete a section that was only used
6994 2003-04-21 J. Brobecker <brobecker@gnat.com>
6996 Ongoing multi-arch conversion for HP/UX.
6997 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6998 if already defined (allows hppa64 to stay non-multiarched for now).
6999 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7001 2003-04-21 Andrew Cagney <cagney@redhat.com>
7003 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7005 2003-04-21 Andrew Cagney <cagney@redhat.com>
7007 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7008 "i386_num_mmx_regs".
7010 2003-04-21 Andrew Cagney <cagney@redhat.com>
7012 * infcall.c: New file.
7013 * infcall.h: New file.
7014 * valarith.c: Include "infcall.h".
7015 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7016 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7017 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7018 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7019 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7020 (SFILES): Add "infcall.c"
7021 (COMMON_OBS): Add "infcall.o".
7022 (infcall.o): Specify dependencies.
7023 * value.h (call_function_by_hand): Delete declaration.
7024 * inferior.h (run_stack_dummy): Delete declaration.
7025 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7026 (run_stack_dummy): Move to "infcall.c", merged into
7027 call_function_by_hand.
7028 * valops.c (call_function_by_hand): Moved to "infcall.c".
7029 (find_function_addr, value_arg_coerce): Ditto.
7030 (unwindonsignal_p, coerce_float_to_double): Ditto.
7031 (_initialize_valops): Move "set/show coerce-float-to-double", and
7032 "set/show unwindonsignal" commands to "infcall.c".
7033 * v850-tdep.c, target.h: Update comments.
7034 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7035 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7036 (sh64_init_extra_frame_info): Update comments.
7037 * mn10300-tdep.c: Update comments.
7038 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7039 * config/sparc/tm-sparc.h: Update comments.
7040 * breakpoint.h: Update comments.
7041 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7042 * arm-tdep.c: Update comment.
7044 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7046 * i386-tdep.c (i386_num_register_names): New variable.
7047 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7048 (MM0_REGNUM): Remove redundant parentheses in define.
7049 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7050 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7051 i386_mxcsr_regnum_p): Remove redundant parentheses.
7052 (i386_register_name): Use i386_num_register_names.
7054 * i386-tdep.c (i386_extract_return_value,
7055 i386_store_return_value): Correct check for availability of
7056 floating-point registers.
7058 * i386-tdep.c (i386_frame_num_args): Remove function.
7059 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7061 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7062 mmx_regnum_to_fp_regnum. Adjust all callers.
7064 * i386-tdep.c (i386_get_longjmp_target): Use
7065 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7066 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7069 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7071 * core-regset.c: Update comments to reflect reality. Re-order
7073 (fetch_core_registers): Use switch instead of if. Remove
7074 redundant prototype.
7076 2003-04-18 Jim Blandy <jimb@redhat.com>
7078 * s390-tdep.c (s390_frame_align): New function.
7079 (s390_gdbarch_init): Register it with the gdbarch object.
7081 2003-04-17 Richard Henderson <rth@redhat.com>
7083 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7085 2003-04-17 Michael Snyder <msnyder@redhat.com>
7086 Karen Bennet <bennet@redhat.com>
7088 Committed by Elena Zannoni <ezannoni@redhat.com>
7089 * gdb_gcore.sh: New script to create a core dump of a process.
7091 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7093 * values.c (value_being_returned): Don't fetch the return
7094 value if the return type is void.
7096 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7098 * thread-db.c: Reindented.
7100 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7102 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7103 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7130 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7132 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7133 the size of ``long double'' to 16, instead of 8.
7135 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7137 * i386-linux-nat.c: Add some whitespace to make things more
7139 (fetch_register, store_register, fetch_inferior_registers,
7140 store_inferior_registers): Get rid of assignment in if-statement.
7141 (store_register): Fix typo in error message.
7143 2003-04-16 Andrew Cagney <cagney@redhat.com>
7145 * utils.c (xmmalloc): Always allocate something, matches
7146 libiberty/xmalloc's semantics.
7147 (xmrealloc, xmcalloc): Ditto.
7149 2003-04-16 Andrew Cagney <cagney@redhat.com>
7151 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7153 (get_frame_type): Initialize unwind and type when needed.
7154 (get_frame_id, frame_register_unwind): Ditto.
7156 2003-04-16 Andrew Cagney <cagney@redhat.com>
7158 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7160 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7161 * sparcl-stub.c: Obsolete file.
7162 * config/sparc/tm-sparclet.h: Obsolete file.
7163 * sparclet-stub.c: Obsolete file.
7164 * sparclet-rom.c: Obsolete file.
7165 * sparcl-tdep.c: Obsolete file.
7166 * config/sparc/tm-sparclite.h: Obsolete file.
7167 * config/sparc/sparclite.mt: Obsolete file.
7168 * config/sparc/sparclet.mt: Obsolete file.
7169 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7170 sparc86x-*-* obsolete.
7172 2003-04-15 David Carlton <carlton@math.stanford.edu>
7174 * Makefile.in (SFILES): Add cp-namespace.c.
7175 (COMMON_OBS): Add cp-namespace.o.
7176 (block.o): Depend on gdb_obstack_h and cp_support_h.
7177 (buildsym.o): Depend on cp_support_h.
7178 (cp-namespace.o): New.
7179 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7180 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7181 (dwarf2read.o): Depend on cp_support_h.
7182 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7183 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7184 processing_current_namespace.
7185 (read_namespace): Update processing_current_namespace; check for
7186 anonymous namespaces.
7187 (dwarf2_name): New function.
7188 (dwarf2_extension): Ditto.
7189 * cp-support.h: Update copyright, contributors.
7190 Add inclusion guards.
7191 Add opaque declaration for structs obstack, block, symbol.
7192 (struct using_direct): New struct.
7193 Add declarations for cp_find_first_component,
7194 cp_entire_prefix_len, processing_has_namespace_info,
7195 processing_current_namespace, cp_is_anonymous,
7196 cp_add_using_directive, cp_initialize_namespace,
7197 cp_finalize_namespace, cp_set_block_scope,
7198 cp_scan_for_anonymous_namespaces.
7199 * cp-namespace.c: New file.
7200 * cp-support.c: Update copyright.
7201 Include ctype.h, gdb_assert.h, gdbcmd.h.
7202 New variable maint_cplus_cmd_list.
7203 (cp_find_first_component): New function.
7204 (cp_entire_prefix_len, maint_cplus_command)
7205 (first_component_command, _initialize_cp_support): Ditto.
7206 * buildsym.c: Include cp-support.h.
7207 New variable using_list.
7208 (add_symbol_to_list): Check for anonymous namespaces.
7209 (finish_block): Set block's scope.
7210 (start_symtab): Initialize C++ namespace support.
7211 (end_symtab): Finalize C++ namespace support.
7212 * block.h: Add opaque declarations for structs
7213 block_namespace_info, using_direct, and obstack.
7214 Add declarations for block_set_scope and block_set_using.
7215 (struct block): Add 'language_specific' member.
7216 (BLOCK_NAMESPACE): New macro.
7217 * block.c: Include gdb_obstack.h and cp-support.h.
7218 (struct block_namespace_info): New struct.
7219 (block_set_scope): New function.
7220 (block_set_using, block_initialize_namespace): Ditto.
7222 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7224 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7225 (locate_base): Return early if there aren't any link map offsets.
7226 (svr4_solib_create_inferior_hook): Warn if shared library support
7229 2003-04-14 David Carlton <carlton@math.stanford.edu>
7231 * symtab.c (symbol_set_names): Add prefix when storing Java names
7232 in hash table. Fix for PR java/1039.
7234 2003-04-14 David Carlton <carlton@math.stanford.edu>
7236 * symtab.c (symbol_set_names): Rename 'name' arg to
7237 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7238 * symtab.h: Change 'name' argument in declaration of
7239 symbol_set_names to 'linkage_name'.
7240 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7242 2003-04-14 Andrew Cagney <cagney@redhat.com>
7244 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7245 return the fully sign-extended register value.
7246 (get_frame_pointer): Ditto.
7247 (mips_pop_frame): Initialize "proc_desc" after checking for a
7250 2003-04-14 Andrew Cagney <cagney@redhat.com>
7252 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7253 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7254 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7255 (mips_push_register): Delete function.
7256 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7259 2003-04-14 Jim Blandy <jimb@redhat.com>
7261 * symmisc.c: #include "gdb_regex.h".
7262 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7264 * maint.c (maintenance_list_command): New function.
7265 (_initialize_maint_cmds): Register the above as commands.
7266 * symtab.h (maintenance_list_symtabs,
7267 maintenance_list_psymtabs): New declarations.
7268 * cli/cli-cmds.c (maintenancelistlist): New variable.
7269 (init_cmd_lists): Initialize it.
7270 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7271 * gdbcmd.h (maintenancelistlist): New declaration.
7272 * Makefile.in (symmisc.o): Update dependencies.
7274 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7276 * s390-nat.c: Include asm/types.h for addr_t.
7278 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7280 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7281 actually incoming type.
7283 2003-04-13 Andrew Cagney <cagney@redhat.com>
7285 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7286 get_next_frame and get_frame_saved_regs.
7288 2003-04-13 Andrew Cagney <cagney@redhat.com>
7290 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7291 of gdbarch_num_regs.
7293 2003-04-13 Andrew Cagney <cagney@redhat.com>
7295 * frame.h: Mention what replaced what in "struct frame_info".
7296 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7297 deprecated_update_frame_base_hack and
7298 deprecated_update_frame_pc_hack.
7299 * hppa-tdep.c: Ditto.
7301 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7303 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7304 to read_reg and update its comment. Remove regnum member.
7305 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7306 Don't call read_reg when setting in_reg. Call read_reg to get
7307 the frame base if it's in a register. Return the register number
7308 on the stack instead of in the context. Remove extra arguments
7310 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7311 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7312 the register number on the expression stack.
7313 (needs_frame_read_reg): Remove extra arguments.
7315 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7317 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7319 (execute_stack_op): All callers updated.
7320 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7321 * dwarf2loc.c (find_location_expression): New function.
7322 (dwarf_expr_frame_base): Call it.
7323 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7324 (dwarf2_tracepoint_var_ref): New function, broken out from
7325 locexpr_tracepoint_var_ref.
7326 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7328 (loclist_read_variable, loclist_read_needs_frame): New functions.
7329 (loclist_describe_location, loclist_tracepoint_var_ref): New
7331 (dwarf2_loclist_funcs): New struct location_funcs.
7332 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7333 (struct dwarf2_locexpr_baton): Add comments.
7334 (dwarf2_loclist_funcs): New extern.
7335 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7336 base_address and base_known.
7337 (dwarf_loc_buffer): New variable.
7338 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7339 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7340 (dwarf2_has_info): Initialize dwarf_loc_offset.
7341 (dwarf2_build_psymtabs): Read in .debug_loc.
7342 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7344 (psymtab_to_symtab_1): Likewise. Move base address calculation
7346 (dwarf2_get_pc_bounds): ... here. Use the base address from
7348 (dwarf2_symbol_mark_computed): Handle location lists.
7350 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7352 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7353 if the linkage name demangled successfully.
7355 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7357 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7358 disassmbly_flavour): Removed.
7360 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7362 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7364 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7366 2003-04-12 Andrew Cagney <cagney@redhat.com>
7368 * frame.h (struct frame_info): Move definition from here ...
7369 * frame.c (struct frame_info): ... to here.
7371 2003-04-12 Andrew Cagney <cagney@redhat.com>
7373 * gdbthread.h (save_infrun_state): Delete parameter
7375 (struct thread_info): Delete field "prev_func_start".
7376 (load_infrun_state): Ditto.
7377 * thread.c (load_infrun_state, save_infrun_state): Update.
7378 * infrun.c (prev_func_start): Delete variable.
7379 (context_switch, init_wait_for_inferior): Update.
7380 (stop_stepping, keep_going): Update.
7382 2003-04-12 Andrew Cagney <cagney@redhat.com>
7384 * gdbarch.sh: Add missing opaque declarations.
7385 * gdbarch.h: Regnerate.
7386 * symtab.h: Add missing opaque declarations.
7387 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7388 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7389 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7390 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7391 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7392 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7393 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7394 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7395 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7396 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7397 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7398 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7399 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7401 2003-04-11 Andrew Cagney <cagney@redhat.com>
7403 * frame.c (get_frame_id): Return this frame's "id".
7404 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7406 (legacy_saved_regs_this_id): Replace function body with
7408 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7409 FRAME_OBSTACK_ZALLOC.
7410 (create_new_frame): Mark the frame ID as valid.
7412 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7414 * Makefile.in (libbfd_h): Added missing setting.
7415 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7416 according to the selected ABI.
7418 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7420 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7422 2003-04-11 Andrew Cagney <cagney@redhat.com>
7424 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7425 SAVED_PC_AFTER_CALL.
7426 * gdbarch.h, gdbarch.c: Regenerate.
7427 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7428 * x86-64-tdep.c (x86_64_init_abi): Update.
7429 * vax-tdep.c (vax_gdbarch_init): Update.
7430 * v850-tdep.c (v850_gdbarch_init): Update.
7431 * sparc-tdep.c (sparc_gdbarch_init): Update.
7432 * sh-tdep.c (sh_gdbarch_init): Update.
7433 * s390-tdep.c (s390_gdbarch_init): Update.
7434 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7435 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7436 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7437 * mips-tdep.c (mips_gdbarch_init): Update.
7438 * mcore-tdep.c (mcore_gdbarch_init): Update.
7439 * m68k-tdep.c (m68k_gdbarch_init): Update.
7440 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7441 * ia64-tdep.c (ia64_gdbarch_init): Update.
7442 (ia64_saved_pc_after_call): Update declaration.
7443 * i386ly-tdep.c (i386lynx_init_abi): Update.
7444 * i386-tdep.c (i386_gdbarch_init): Update.
7445 * hppa-tdep.c (hppa_gdbarch_init): Update.
7446 * h8300-tdep.c (h8300_gdbarch_init): Update.
7447 * frv-tdep.c (frv_gdbarch_init): Update.
7448 * cris-tdep.c (cris_gdbarch_init): Update.
7449 * avr-tdep.c (avr_gdbarch_init): Update.
7450 * arm-tdep.c (arm_gdbarch_init): Update.
7451 * alpha-tdep.c (alpha_gdbarch_init): Update.
7452 * ns32knbsd-nat.c (frame_num_args): Update.
7453 * ns32k-tdep.c (umax_frame_num_args): Update.
7454 * mips-tdep.c (mips_init_frame_pc_first): Update.
7455 * infrun.c (step_over_function): Update.
7456 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7457 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7458 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7459 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7460 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7461 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7462 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7463 * arch-utils.c (init_frame_pc_default): Update.
7464 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7465 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7468 2003-04-11 Andrew Cagney <cagney@redhat.com>
7470 * i387-tdep.c: Update copyright.
7471 (i387_to_double): Delete function.
7472 (double_to_i387): Delete function.
7474 2003-04-10 Andrew Cagney <cagney@redhat.com>
7476 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7477 frame's function's address. Simplify.
7478 (d10v_frame_unwind_cache): Check that the frame's function is
7481 2003-04-10 Jim Blandy <jimb@redhat.com>
7483 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7484 call to set_gdbarch_deprecated_push_arguments.
7486 2003-04-10 Andrew Cagney <cagney@redhat.com>
7488 * frame.c (fprint_frame_id): New function.
7489 (fprint_frame_type, fprint_frame): New function.
7490 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7491 (create_sentinel_frame, get_frame_id): Ditto.
7492 (frame_id_p, frame_id_eq): Ditto.
7493 (frame_id_inner, create_new_frame): Ditto.
7494 (legacy_get_prev_frame, get_prev_frame): Ditto.
7495 (deprecated_update_frame_pc_hack): Ditto.
7496 (frame_register_unwind): Ditto.
7497 (deprecated_update_frame_base_hack): Ditto.
7499 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7501 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7502 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7503 frame_chain function.
7504 * Makefile.in: Add dependencies due to above change.
7506 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7508 * blockframe.c (legacy_frame_chain_valid): Move call to
7509 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7512 2003-04-09 Andrew Cagney <cagney@redhat.com>
7514 * frame.h (struct frame_id): Replace "pc" and "base" with
7515 "stack_addr" and "code_addr". Update comments.
7516 (frame_id_build): Update parameter names and comment.
7517 (struct frame_info): Replace "id_p" and "id" with "this_id".
7518 * dummy-frame.c (dummy_frame_this_id): Update.
7519 * breakpoint.c (print_one_breakpoint): Update.
7520 * frame.c (get_frame_id): Update.
7521 (get_frame_base, frame_id_build): Update.
7522 (create_sentinel_frame, legacy_get_prev_frame): Update.
7523 (deprecated_update_frame_base_hack): Update.
7524 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7525 (frame_id_inner): Ditto.
7527 2003-04-09 Andrew Cagney <cagney@redhat.com>
7529 * defs.h (gdb_print_host_address): Make "addr" parameter a
7531 * utils.c (gdb_print_host_address): Update.
7533 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7535 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7536 register number for R0 is 0.
7538 2003-04-09 J. Brobecker <brobecker@gnat.com>
7540 * frame.h (struct gdbarch): Add opaque structure definition
7541 to avoid a compilation warning on LynxOS 4.0.
7543 2003-04-09 Andrew Cagney <cagney@redhat.com>
7545 * frame.h (struct frame_info): Delete field "pc". Replace
7546 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7548 * frame.c (frame_pc_unwind): Update.
7549 (create_sentinel_frame): Do not set "pc".
7550 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7551 (get_frame_pc): Call frame_pc_unwind.
7552 (deprecated_update_frame_pc_hack): Update.
7553 (create_new_frame): Use "pc" not "->pc".
7555 2003-04-09 Andrew Cagney <cagney@redhat.com>
7557 * frame.c (get_frame_id): Eliminate code updating "frame".
7558 (legacy_get_prev_frame): Ditto.
7559 (get_frame_base): Return id.base directly.
7560 (deprecated_update_frame_base_hack): Update "id.base".
7561 * frame.h (struct frame_info): Delete field "frame".
7563 2003-04-09 Andrew Cagney <cagney@redhat.com>
7565 * NEWS: Mention that the "Sequent family" is obsolete.
7566 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7567 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7568 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7569 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7570 * config/i386/tm-ptx4.h: Obsolete file.
7571 * config/i386/tm-ptx.h: Obsolete file.
7572 * symm-tdep.c: Obsolete file.
7573 * config/i386/symmetry.mt: Obsolete file.
7574 * config/i386/tm-symmetry.h: Obsolete file.
7575 * symm-nat.c: Obsolete file.
7576 * config/i386/nm-symmetry.h: Obsolete file.
7577 * config/i386/xm-symmetry.h: Obsolete file.
7578 * config/i386/symmetry.mh: Obsolete file.
7579 * config/i386/nm-ptx4.h: Obsolete file.
7580 * config/i386/ptx4.mh: Obsolete file.
7581 * config/i386/ptx.mt: Obsolete file.
7582 * config/i386/ptx.mh: Obsolete file.
7583 * config/i386/xm-ptx4.h: Obsolete file.
7584 * config/i386/xm-ptx.h: Obsolete file.
7586 2003-04-09 Andrew Cagney <cagney@redhat.com>
7588 Obsolete mips*-*-mach3*.
7589 * NEWS: Mention that mips*-*-mach3* is obsolete.
7590 * m3-nat.c: Obsolete file.
7591 * config/nm-m3.h: Obsolete file.
7592 * config/mips/tm-mipsm3.h: Obsolete file.
7593 * config/mips/mipsm3.mt: Obsolete file.
7594 * config/mips/mipsm3.mh: Obsolete file.
7595 * config/mips/xm-mipsm3.h: Obsolete file.
7596 * mipsm3-nat.c: Obsolete file.
7597 * configure.host: Obsolete mips-dec-mach3*.
7598 * configure.tgt: Obsolete mips*-*-mach3*.
7600 2003-04-09 Andrew Cagney <cagney@redhat.com>
7602 * doublest.h: Update copyright.
7603 (deprecated_store_floating, deprecated_extract_floating): Rename
7604 store_floating and extract_floating. Update comments.
7605 * doublest.c: Update copyright.
7606 (extract_floating_by_length): Replace extract_floating.
7607 (store_floating_by_length): Replace store_floating.
7608 (deprecated_extract_floating): New function.
7609 (deprecated_store_floating): New function.
7610 (extract_typed_floating): Call extract_floating_by_length.
7611 (store_typed_floating): Call store_floating_by_length.
7612 * x86-64-tdep.c (x86_64_store_return_value): Update.
7613 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7614 (sh64_extract_return_value): Update.
7615 (sh_sh4_register_convert_to_virtual): Update.
7616 (sh_sh64_register_convert_to_virtual): Update.
7617 (sh_sh4_register_convert_to_raw): Update.
7618 (sh_sh64_register_convert_to_raw): Update.
7619 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7620 (rs6000_register_convert_to_raw): Update.
7621 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7622 (ia64_register_convert_to_raw): Update.
7623 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7624 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7625 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7626 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7627 (alpha_register_convert_to_raw): Update.
7629 2003-04-08 Andrew Cagney <cagney@redhat.com>
7631 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7632 * gdbarch.h, gdbarch.c: Re-generate.
7633 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7634 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7635 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7636 conditionally, use frame_pc_unwind as an alternative. Add
7638 * arch-utils.c (init_frame_pc_default): Only call
7639 SAVED_PC_AFTER_CALL when available.
7641 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7643 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7644 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7645 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7646 (start_remote): Ditto.
7647 (handle_inferior_event): Ditto.
7648 (save_inferior_status): Ditto.
7649 (restore_inferior_status): Ditto.
7650 * infcmd.c (attach_command): Ditto.
7651 * fork-child.c (startup_inferior): Ditto.
7652 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7653 * alpha-tdep.c (heuristic_proc_start): Ditto.
7654 * mips-tdep.c (heuristic_proc_start): Ditto.
7655 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7656 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7657 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7658 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7659 * remote-vx.c (vx_create_inferior): Ditto.
7661 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7663 * infrun.c (stop_soon_quietly): Make it an enum, to better
7664 override the default behavior of handle_inferior_event.
7665 (clear_proceed_status): Update uses of stop_soon_quietly to
7666 reflect that it is now an enum.
7667 (start_remote): Ditto.
7668 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7669 is set to handle the new GNU/Linux kernel behavior for
7670 attach/sigstop. Update uses of stop_soon_quietly.
7671 * inferior.h (enum stop_kind): New enum.
7672 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7673 Reset normal handle_inferior_event behavior, afterwards.
7674 * fork-child.c (startup_inferior): Update.
7675 * alpha-tdep.c (heuristic_proc_start): Update.
7676 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7677 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7678 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7679 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7680 * remote-vx.c (vx_create_inferior): Update.
7681 * mips-tdep.c (heuristic_proc_start): Update.
7683 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7685 * disasm.c (dump_insns): Move variables inside loop, or they will
7686 be freed more than once, causing wild memory corruptions.
7687 (gdb_disassembly): Look for the substring "-thread",
7688 instead of "-threads" in the target name, to make sure to find
7689 the 'multi-thread' target. Also, make sure we do the right thing
7690 with the "core" target.
7692 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7694 * mips-tdep.c (mips_print_fp_register): New function, created from
7695 do_fp_register_row(). Registers are now (also) printed as hex.
7696 Only one register is printed per row.
7697 (mips_print_register, do_fp_register_row): Print floating point
7698 registers with mips_print_fp_register().
7700 2003-04-06 Andrew Cagney <cagney@redhat.com>
7702 * valprint.h (inspect_it): Add extern declaration.
7703 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7704 (selectors_info, classes_info): Ditto.
7705 (find_objc_msgcall): Fix indentation.
7706 (objc_printstr): Delete extern declarations.
7708 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7710 2003-04-06 Andrew Cagney <cagney@redhat.com>
7712 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7714 * frame.c (legacy_saved_regs_this_id): Update.
7715 (legacy_get_prev_frame): Update.
7716 * xstormy16-tdep.c: Update comment.
7717 * sparc-tdep.c (sparc_frame_chain): Update comment.
7718 * blockframe.c (legacy_frame_chain_valid): Update.
7720 2003-04-06 Andrew Cagney <cagney@redhat.com>
7722 * valprint.c (val_print_type_code_int): Delete #ifdef
7723 PRINT_TYPELESS_INTEGER code.
7725 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7726 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7727 multi-arch definition.
7728 * gdbarch.h: Re-generate.
7730 2003-04-05 Andrew Cagney <cagney@redhat.com>
7732 Eliminate FRAME_FIND_SAVED_REGS.
7733 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7734 Change FSR parameter to a pointer.
7735 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7736 Assume FSR parameter is a pointer.
7737 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7739 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7740 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7741 saved_regs a pointer.
7742 (hppa_frame_saved_pc): Ditto.
7743 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7744 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7746 (restore_pc_queue): Make fsr a pointer.
7747 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7748 (hppa_frame_chain): Make saved_regs a pointer, call
7749 hppa_frame_init_saved_regs.
7750 * sparc-tdep.c: Include "gdb_assert.h".
7751 (sparc_frame_find_saved_regs): Replace internal_error with
7753 * remote-vxsparc.c (vx_read_register): Delete reference to
7754 FRAME_FIND_SAVED_REGS.
7755 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7756 * gdbarch.h: Regenerate.
7757 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7758 (deprecated_get_frame_saved_regs): Delete declaration.
7759 (struct frame_saved_regs): Delete definition.
7760 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7761 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7762 (hppa_frame_find_saved_regs): Delete declaration.
7763 (FRAME_FIND_SAVED_REGS): Delete macro.
7764 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7765 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7766 FRAME_FIND_SAVED_REGS in comment.
7768 2003-04-05 Andrew Cagney <cagney@redhat.com>
7770 * frame.c (frame_func_unwind, get_frame_func): New functions.
7771 * frame.h (get_frame_func, frame_func_unwind): Declare.
7772 (struct frame_info): Add field "prev_func" for caching the
7773 previous frame's function address.
7774 * arm-tdep.c (arm_frameless_function_invocation): Combine
7775 get_pc_function_start and get_frame_pc into get_frame_func.
7776 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7777 (sh64_nofp_frame_init_saved_regs): Ditto.
7778 * s390-tdep.c (s390_function_start): Ditto.
7779 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7780 (rs6000_frameless_function_invocation): Ditto.
7781 (rs6000_frame_saved_pc): Ditto.
7782 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7783 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7784 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7785 (i386_frame_init_saved_regs): Ditto.
7786 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7787 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7788 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7789 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7790 * blockframe.c (frameless_look_for_prologue): Ditto.
7792 2003-04-05 Andrew Cagney <cagney@redhat.com>
7794 * frame.c (legacy_get_prev_frame): Link prev to next at the
7795 function start. Update comments.
7797 2003-04-05 Andrew Cagney <cagney@redhat.com>
7799 * frame.c (get_frame_id): Update comment.
7800 (legacy_get_prev_frame): Update comment.
7801 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7802 * gdbarch.h: Regenerate.
7803 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7804 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7806 2003-04-05 Andrew Cagney <cagney@redhat.com>
7808 * stack.c (print_frame_info): Use get_frame_pc.
7810 2003-04-04 Andrew Cagney <cagney@redhat.com>
7812 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7813 the frame's type from the unwinder.
7814 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7815 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7816 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7817 (get_frame_base_address): Use get_frame_type.
7818 (get_frame_locals_address, get_frame_args_address): Ditto.
7819 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7820 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7821 (struct frame_info): Add comment explaining why the frame contains
7823 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7824 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7825 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7827 * frame-unwind.h: Include "frame.h".
7828 (struct frame_unwind): Add "type" field.
7829 * Makefile.in (frame_unwind_h): Add $(frame_h).
7831 2003-04-04 Andrew Cagney <cagney@redhat.com>
7833 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7834 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7835 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7837 (d10v_unwind_dummy_id): Use frame_id_build.
7838 * frame.c (find_frame_sal): Use get_frame_pc.
7839 (create_new_frame): Use deprecated_update_frame_pc_hack and
7840 deprecated_update_frame_base_hack.
7841 (create_sentinel_frame): Add comment about ->pc going away.
7842 (get_prev_frame): Add comment about ->pc going away.
7843 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7844 frame_id_build, deprecated_update_frame_pc_hack and
7845 deprecated_update_frame_base_hack.
7846 (select_frame): Use get_frame_pc.
7847 (legacy_saved_regs_this_id): Use frame_id_build.
7849 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7851 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7852 signed integer case.
7853 (classify_argument): Handle enumerations and references.
7855 2003-04-04 Andrew Cagney <cagney@redhat.com>
7857 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7860 2003-04-01 Adam Fedor <fedor@gnu.org>
7862 * gdb/objc-lang.c (selectors_info): Replace calls to
7863 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7864 SYMBOL_NATURAL_NAME.
7865 (classes_info, find_methods): Likewise.
7867 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7869 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7870 ``mach'' to the value determined by bfd_default_set_arch_mach().
7872 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7874 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7875 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7876 (mi-cmd-file.o): Update dependencies.
7878 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7880 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7881 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7883 2003-04-01 Adam Fedor <fedor@gnu.org>
7885 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7886 * language.h (struct language_defn): Add la_demangle.
7887 (language_demangle): Declare.
7888 * language.c (language_demangle): New function.
7889 (unk_lang_demangle): Likewise.
7890 (unknown_language_defn, auto_language_defn, local_language_defn):
7891 Add ukn_lang_demangle.
7892 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7893 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7894 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7895 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7896 * jv-lang.c (java_demangle): New function
7897 (java_language_defn): Use it for la_demangle element.
7898 * objc-lang.c (objc_demangle): Add options argument
7899 (objc_language_defn): Use objc_demangle for la_demangle element.
7900 * maint.c (maintenance_demangle): Replace switch with
7901 call to language_demangle.
7902 * utils.c (fprintf_symbol_filtered): Likewise.
7904 2003-04-01 Andrew Cagney <cagney@redhat.com>
7906 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7907 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7908 PRINT_TYPELESS_INTEGER.
7909 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7910 PUSH_RETURN_ADDRESS.
7912 2003-04-01 Andrew Cagney <cagney@redhat.com>
7914 * Makefile.in (d10v-tdep.o): Update dependencies.
7915 * d10v-tdep.c: Include "frame-base.h".
7916 (d10v_frame_unwind): Make constant.
7917 (d10v_frame_base_address): New function.
7918 (d10v_frame_base): New variable.
7919 (d10v_gdbarch_init): Set frame_base default.
7920 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7922 (d10v_frame_unwind_cache): Set and use "prev_sp".
7923 (d10v_frame_this_id): Use the previous frame's inner most stack
7924 address and this frame's func address for the frame ID. Use
7925 frame_id_build. Don't analyze beyond the current instruction.
7927 2003-04-01 Andrew Cagney <cagney@redhat.com>
7929 * frame.h (get_frame_locals_address, get_frame_args_address):
7930 Refer to the base address, instead of the address of the first
7933 2003-04-01 Andrew Cagney <cagney@redhat.com>
7935 Add frame debug info addresses:
7936 * frame-base.c: New file.
7937 * frame-base.h: New file.
7938 * frame.h (struct frame_base): Add opaque declaration.
7939 (get_frame_base): Update comment.
7940 (get_frame_base_address): Declare.
7941 (get_frame_locals_address): Declare.
7942 (get_frame_args_address): Declare.
7943 (struct frame_info): Add "base" and "base_cache". Update
7944 comments on the unwinder.
7945 * frame.c: Include "frame-base.h".
7946 (get_frame_locals_address): New function.
7947 (get_frame_base_address): New function.
7948 (get_frame_args_address): New function.
7949 * findvar.c (read_var_value): Use get_frame_locals_address and
7950 get_frame_args_address.
7951 * stack.c (frame_info): Use get_frame_locals_address and
7952 get_frame_args_address.
7953 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7954 moved to "frame-base.c".
7955 * printcmd.c (print_frame_nameless_args): Ditto.
7956 * symtab.h (address_class): Update comments.
7957 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7958 get_frame_base_address.
7959 * dwarf2expr.c (execute_stack_op): Ditto.
7960 * Makefile.in (frame_base_h): Define.
7961 (frame.o): Update dependencies.
7962 (frame-base.o): Add dependencies.
7963 (SFILES): Add frame-base.c.
7964 (COMMON_OBS): Add frame-base.o.
7966 2003-04-01 Andrew Cagney <cagney@redhat.com>
7968 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7969 CALL_DUMMY_LENGTH): Ditto.
7970 * gdbarch.c: Re-generate.
7971 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7972 (CALL_DUMMY_LENGTH): Delete macro.
7973 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7974 * arm-tdep.c (arm_gdbarch_init): Ditto.
7975 * avr-tdep.c (avr_gdbarch_init): Ditto.
7976 * cris-tdep.c (cris_gdbarch_init): Ditto.
7977 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7978 * frv-tdep.c (frv_gdbarch_init): Ditto.
7979 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7980 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7981 * i386-tdep.c (i386_gdbarch_init): Ditto.
7982 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7983 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7984 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7985 * mips-tdep.c (mips_gdbarch_init): Ditto.
7986 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7987 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7988 * s390-tdep.c (s390_gdbarch_init): Ditto.
7989 * sh-tdep.c (sh_gdbarch_init): Ditto.
7990 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7991 * v850-tdep.c (v850_gdbarch_init): Ditto.
7992 * vax-tdep.c (vax_gdbarch_init): Ditto.
7993 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7995 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7997 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7999 2003-04-01 Andrew Cagney <cagney@redhat.com>
8001 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8002 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8003 * gdbarch.h, gdbarch.c: Re-generate.
8004 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8005 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8006 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8007 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8008 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8009 * infcmd.c (run_stack_dummy): Simplify assuming
8010 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8011 * infrun.c (handle_inferior_event): Ditto.
8012 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8013 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8014 * arm-tdep.c (arm_gdbarch_init): Ditto.
8015 * avr-tdep.c (avr_gdbarch_init): Ditto.
8016 * cris-tdep.c (cris_gdbarch_init): Ditto.
8017 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8018 * frv-tdep.c (frv_gdbarch_init): Ditto.
8019 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8020 * i386-tdep.c (i386_gdbarch_init): Ditto.
8021 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8022 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8023 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8024 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8025 * mips-tdep.c (mips_gdbarch_init): Ditto.
8026 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8027 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8028 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8029 * s390-tdep.c (s390_gdbarch_init): Ditto.
8030 * sh-tdep.c (sh_gdbarch_init): Ditto.
8031 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8032 * v850-tdep.c (v850_gdbarch_init): Ditto.
8033 * vax-tdep.c (vax_gdbarch_init): Ditto.
8034 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8036 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8038 * symfile.c (symfile_relocate_debug_section): Update call to
8039 bfd_simple_get_relocated_section_contents.
8041 2003-03-31 Andrew Cagney <cagney@redhat.com>
8043 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8044 * gdbarch.h, gdbarch.c: Regenerate.
8045 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8046 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8048 * frame.h (generic_fix_call_dummy): Delete declaration.
8049 * dummy-frame.h: Update comment.
8050 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8051 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8053 * sh-tdep.c (sh_gdbarch_init): Ditto.
8054 * s390-tdep.c (s390_gdbarch_init): Ditto.
8055 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8056 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8057 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8058 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8059 * i386-tdep.c (i386_gdbarch_init): Ditto.
8060 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8061 * frv-tdep.c (frv_gdbarch_init): Ditto.
8062 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8063 * cris-tdep.c (cris_gdbarch_init): Ditto.
8064 * avr-tdep.c (avr_gdbarch_init): Ditto.
8065 * arm-tdep.c (arm_gdbarch_init): Ditto.
8067 2003-03-31 J. Brobecker <brobecker@gnat.com>
8069 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8070 (INIT_FRAME_AP): Likewise.
8071 (EXTRA_FRAME_INFO): Likewise.
8073 2003-03-31 Andrew Cagney <cagney@redhat.com>
8075 * gdbarch.sh: Include "symfile.h".
8076 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8077 * gdbarch.h, gdbarch.c: Re-generate.
8078 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8079 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8080 call_dummy_address, the default is at entry_point_address.
8081 * v850-tdep.c (v850_gdbarch_init): Ditto.
8082 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8083 * sh-tdep.c (sh_gdbarch_init): Ditto.
8084 * s390-tdep.c (s390_gdbarch_init): Ditto.
8085 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8086 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8087 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8088 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8089 * i386-tdep.c (i386_gdbarch_init): Ditto.
8090 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8091 * frv-tdep.c (frv_gdbarch_init): Ditto.
8092 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8093 * cris-tdep.c (cris_gdbarch_init): Ditto.
8094 * arm-tdep.c (arm_gdbarch_init): Ditto.
8096 2003-03-31 Andrew Cagney <cagney@redhat.com>
8098 * gdbarch.sh (CALL_DUMMY_P): Delete.
8099 * gdbarch.h, gdbarch.c: Re-generate.
8100 * inferior.h (CALL_DUMMY_P): Delete macro.
8101 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8102 * vax-tdep.c (vax_gdbarch_init): Update.
8103 * v850-tdep.c (v850_gdbarch_init): Update.
8104 * sparc-tdep.c (sparc_gdbarch_init): Update.
8105 * sh-tdep.c (sh_gdbarch_init): Update.
8106 * s390-tdep.c (s390_gdbarch_init): Update.
8107 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8108 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8109 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8110 * mips-tdep.c (mips_gdbarch_init): Update.
8111 * mcore-tdep.c (mcore_gdbarch_init): Update.
8112 * m68k-tdep.c (m68k_gdbarch_init): Update.
8113 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8114 * ia64-tdep.c (ia64_gdbarch_init): Update.
8115 * i386-tdep.c (i386_gdbarch_init): Update.
8116 * h8300-tdep.c (h8300_gdbarch_init): Update.
8117 * frv-tdep.c (frv_gdbarch_init): Update.
8118 * d10v-tdep.c (d10v_gdbarch_init): Update.
8119 * cris-tdep.c (cris_gdbarch_init): Update.
8120 * breakpoint.c (deprecated_frame_in_dummy): Update.
8121 * avr-tdep.c (avr_gdbarch_init): Update.
8122 * alpha-tdep.c (alpha_gdbarch_init): Update.
8123 * arm-tdep.c (arm_gdbarch_init): Update.
8124 * dummy-frame.c (dummy_frame_this_id): Update comments.
8125 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8126 * frame.c (legacy_get_prev_frame): Ditto.
8127 * valops.c (call_function_by_hand): Delete function.
8128 (hand_function_call): Rename to call_function_by_hand
8130 2003-03-30 Andrew Cagney <cagney@redhat.com>
8132 2002-11-10 Klee Dienes <kdienes@apple.com>
8133 * value.h (struct value): Update comment.
8135 2003-03-30 Andrew Cagney <cagney@redhat.com>
8137 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8139 (d10v_gdbarch_init): Do not set fp_regnum.
8141 * frame.c (get_frame_base): Force ID initialization.
8142 (get_prev_frame): Move computation of the frame ID from here ...
8143 (get_frame_id): ... to here.
8144 (legacy_get_prev_frame): Mark the frame ID as valid.
8145 * frame.h (struct frame_info): Add field "id_p".
8147 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8149 * i386-tdep.c (i386_store_struct_return): Removed.
8150 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8152 2003-03-30 Andrew Cagney <cagney@redhat.com>
8154 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8155 * gdbarch.h, gdbarch.c: Regenerate.
8156 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8157 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8158 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8159 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8160 * i386-tdep.c (i386_gdbarch_init): Ditto.
8161 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8162 * cris-tdep.c (cris_gdbarch_init): Ditto.
8163 * vax-tdep.c (vax_gdbarch_init): Ditto.
8164 * s390-tdep.c (s390_gdbarch_init): Ditto.
8165 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8166 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8167 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8168 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8169 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8170 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8171 * sparc-tdep.c (sparc_gdbarch_init): Update.
8172 * sh-tdep.c (sh_gdbarch_init): Update.
8173 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8174 * mips-tdep.c (mips_gdbarch_init): Update.
8175 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8176 * ia64-tdep.c (ia64_gdbarch_init): Update.
8177 * frv-tdep.c (frv_gdbarch_init): Update.
8178 * avr-tdep.c (avr_gdbarch_init): Update.
8179 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8180 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8181 instead of when push_dummy_call is not available.
8183 2003-03-30 Andrew Cagney <cagney@redhat.com>
8185 * infttrace.c: Include "gdbthread.h".
8186 (parent_attach_all): Fix function signature.
8187 (call_ptrace): Update call.
8188 * Makefile.in (infttrace.o): Update dependencies.
8190 2003-03-30 Andrew Cagney <cagney@redhat.com>
8192 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8193 PUSH_RETURN_ADDRESS.
8194 * gdbarch.h, gdbarch.c: Regenerate.
8195 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8196 * x86-64-tdep.c (x86_64_init_abi): Update.
8197 * v850-tdep.c (v850_gdbarch_init): Update.
8198 * sparc-tdep.c (sparc_gdbarch_init): Update.
8199 * sh-tdep.c (sh_gdbarch_init): Update.
8200 * s390-tdep.c (s390_gdbarch_init): Update.
8201 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8202 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8203 * mips-tdep.c (mips_gdbarch_init): Update.
8204 * mcore-tdep.c (mcore_gdbarch_init): Update.
8205 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8206 * ia64-tdep.c (ia64_gdbarch_init): Update.
8207 * i386-tdep.c (i386_gdbarch_init): Update.
8208 * h8300-tdep.c (h8300_gdbarch_init): Update.
8209 * frv-tdep.c (frv_gdbarch_init): Update.
8210 * cris-tdep.c (cris_gdbarch_init): Update.
8211 * avr-tdep.c (avr_gdbarch_init): Update.
8212 * arm-tdep.c (arm_gdbarch_init): Update.
8213 * valops.c (hand_function_call): Update.
8215 2003-03-29 Andrew Cagney <cagney@redhat.com>
8217 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8218 sizeof_call_dummy_words.
8219 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8221 * gdbarch.h: Regenerate.
8223 2003-03-29 Andrew Cagney <cagney@redhat.com>
8225 * infttrace.h: New file.
8226 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8227 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8228 (hpread_read_doc_function_type): Detect an initialized type1.
8229 (hpread_quick_traverse): Initialize mod_name_string.
8230 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8231 (som_solib_get_solib_by_pc): Declare.
8232 (so_lib_thread_start_addr): Declare.
8233 (no_shared_libraries): Declare.
8234 * somread.c (init_import_symbols): Make static. Add forward
8236 * config/pa/nm-hppah.h: Include "infttrace.h" for
8238 (hppa_insert_hw_watchpoint): Declare.
8239 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8240 * hppah-nat.c: Include "gdb_string.h".
8241 (parent_attach_all): Delete extern declaration, moved to
8243 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8245 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8246 * Makefile.in (infttrace_h): Define.
8247 (hpread.o): Update dependencies.
8248 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8249 * hppa-hpux-tdep.c: Include "gdb_string.h".
8250 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8251 * infrun.c (handle_inferior_event): Always initialize
8252 stepped_after_stopped_by_watchpoint. Add default and remove
8253 fallthrough in switch statement.
8254 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8256 (hppa_remove_hw_watchpoint): Ditto.
8258 2003-03-29 Andrew Cagney <cagney@redhat.com>
8260 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8263 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8265 * arm-tdep.c (arm_push_arguments): Delete.
8266 (struct stack_item): New type.
8267 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8268 (arm_store_struct_return): Delte.
8269 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8270 arm_push_arguments or arm_store_struct_return.
8272 2003-03-28 Andrew Cagney <cagney@redhat.com>
8274 * Makefile.in (d10v-tdep.o): Update dependencies.
8275 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8276 * d10v-tdep.c: Include "remote.h".
8277 (target_resume_hook): Delete extern declaration.
8278 (target_wait_loop_hook): Ditto.
8279 (tdisassemble_command): Eliminate assignment in "if" conditional.
8280 (d10v_ts2_register_sim_regno): Eliminate call to
8281 legacy_register_sim_regno.
8282 (d10v_ts3_register_sim_regno): Ditto.
8284 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8286 * thread.c: Reindented.
8288 * linux-proc.c: Ditto.
8290 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8292 * MAINTAINERS (write after approval): Add myself.
8294 2003-03-27 Theodore A. Roth <troth@openavr.org>
8296 * objc-exp.y: Add missing semi-colons.
8298 2003-03-27 Andrew Cagney <cagney@redhat.com>
8300 * regcache.c (write_sp): Delete function and references.
8301 * inferior.h (write_sp): Delete declaration.
8302 * valops.c (hand_function_call): Replace write_sp with
8304 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8305 (sparc_pop_frame): Ditto.
8307 2003-03-27 Andrew Cagney <cagney@redhat.com>
8309 * NEWS: Mention removal of support for hppa*-*-bsd* and
8310 hppa*-*-osf* natives, and hppa*-*-pro* target.
8311 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8312 * config/pa/xm-pa.h: Obsolete file.
8313 * config/pa/xm-hppab.h: Obsolete file.
8314 * config/pa/nm-hppab.h: Obsolete file.
8315 * config/pa/tm-hppab.h: Obsolete file.
8316 * config/pa/tm-hppao.h: Obsolete file.
8317 * config/pa/nm-hppao.h: Obsolete file.
8318 * config/pa/tm-pro.h: Obsolete file.
8319 * config/pa/hppaosf.mt: Obsolete file.
8320 * config/pa/hppaosf.mh: Obsolete file.
8321 * config/pa/hppapro.mt: Obsolete file.
8322 * config/pa/hppabsd.mt: Obsolete file.
8323 * config/pa/hppabsd.mh: Obsolete file.
8324 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8325 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8328 2003-03-27 Andrew Cagney <cagney@redhat.com>
8330 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8331 push_arguments. Don't set push_return_address or write_sp.
8332 (d10v_push_dummy_call): Replace d10v_push_arguments.
8333 (d10v_push_return_address, d10v_write_sp): Delete function,
8334 handled by push_dummy_call.
8336 2003-03-26 Andrew Cagney <cagney@redhat.com>
8338 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8339 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8340 regcache and dummy_addr parameters.
8341 * gdbarch.h, gdbarch.c: Re-generate.
8342 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8343 available; assume it will handle stack alignment and return
8344 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8345 legacy_push_arguments.
8346 (legacy_push_arguments): Rename default_push_arguments.
8347 * value.h (legacy_push_arguments): Rename default_push_arguments.
8348 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8349 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8350 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8351 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8352 * config/i386/tm-symmetry.h: Update.
8353 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8354 * x86-64-tdep.c (x86_64_init_abi): Update.
8355 * v850-tdep.c (v850_gdbarch_init): Update.
8356 * sparc-tdep.c (sparc_gdbarch_init): Update.
8357 * sh-tdep.c (sh_gdbarch_init): Update.
8358 * s390-tdep.c (s390_gdbarch_init): Update.
8359 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8360 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8361 * mips-tdep.c (mips_gdbarch_init): Update.
8362 * mcore-tdep.c (mcore_gdbarch_init): Update.
8363 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8364 * ia64-tdep.c (ia64_gdbarch_init): Update.
8365 * i386-tdep.c (i386_gdbarch_init): Update.
8366 * hppa-tdep.c (hppa_gdbarch_init): Update.
8367 * h8300-tdep.c (h8300_gdbarch_init): Update.
8368 * frv-tdep.c (frv_gdbarch_init): Update.
8369 * d10v-tdep.c (d10v_gdbarch_init): Update.
8370 * cris-tdep.c (cris_gdbarch_init): Update.
8371 * avr-tdep.c (avr_gdbarch_init): Update.
8372 * arm-tdep.c (arm_gdbarch_init): Update.
8373 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8374 * alpha-tdep.c (alpha_gdbarch_init): Update.
8376 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8378 * signals/signals.c (do_target_signal_to_host): Correct realtime
8381 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8383 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8384 (struct sal_chain, map_catch_names): Remove.
8385 (catch_exception_command_1): Don't call
8386 handle_gnu_4_16_catch_command.
8388 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8390 From Mark Dettinger <dettinge@de.ibm.com>:
8391 * dwarf2cfi.c (read_2u): Increment pointer by two.
8393 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8395 * signals/signals.c: Fix typos in last change.
8397 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8399 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8400 not already defined. Use __SIGRTMIN if available.
8401 (target_signal_from_host): Remove SIGRTMIN block.
8402 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8403 the signal is within the realtime range.
8405 2003-03-25 Adam Fedor <fedor@gnu.org>
8407 * Makefile.in (infrun.o): Add $(language_h)
8408 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8409 for language specific trampolines.
8410 * language.h (struct language_defn): Add skip_trampoline.
8411 (skip_language_trampoline): Declare.
8412 * language.c (unk_lang_trampoline, skip_language_trampoline):
8414 (unknown_language_defn, auto_language_defn, local_language_defn):
8415 Add ukn_lang_trampoline.
8416 * ada-lang.c (ada_language_defn): Add NULL for language
8417 specific skip_trampoline.
8418 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8419 scm-lang.c: Likewise.
8420 * objc-lang.c (objc_skip_trampoline): New function.
8421 (objc_language_defn): Add objc_skip_trampoline.
8423 2003-03-25 Andrew Cagney <cagney@redhat.com>
8425 * frame.c (get_prev_frame): Delay validating a frame's ID -
8426 non-NULL, didn't go backwards - until an attempt to unwind it to
8429 2003-03-25 Andrew Cagney <cagney@redhat.com>
8431 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8432 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8433 * gdbarch.h, gdbarch.c: Re-generate.
8434 * config/sparc/tm-sparc.h
8435 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8436 * sparc-tdep.c (sparc_gdbarch_init): Set
8437 deprecated_extra_stack_alignment_needed.
8438 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8439 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8440 extra_stack_alignment_needed.
8441 * v850-tdep.c (v850_gdbarch_init): Ditto.
8442 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8443 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8444 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8445 * cris-tdep.c (cris_gdbarch_init): Ditto.
8446 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8447 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8449 2003-03-25 Andrew Cagney <cagney@redhat.com>
8451 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8452 STORE_STRUCT_RETURN.
8453 * gdbarch.h, gdbarch.c: Regenerate.
8454 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8455 (d10v_push_arguments): Set the struct return register.
8456 (d10v_gdbarch_init): Update.
8457 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8458 * x86-64-tdep.c (x86_64_init_abi): Update.
8459 * vax-tdep.c (vax_gdbarch_init): Update.
8460 * v850-tdep.c (v850_gdbarch_init): Update.
8461 * sparc-tdep.c (sparc_gdbarch_init): Update.
8462 * sh-tdep.c (sh_gdbarch_init): Update.
8463 * s390-tdep.c (s390_gdbarch_init): Update.
8464 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8465 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8466 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8467 * mips-tdep.c (mips_gdbarch_init): Update.
8468 * mcore-tdep.c (mcore_gdbarch_init): Update.
8469 * m68k-tdep.c (m68k_gdbarch_init): Update.
8470 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8471 * ia64-tdep.c (ia64_gdbarch_init): Update.
8472 * i386-tdep.c (i386_gdbarch_init): Update.
8473 * hppa-tdep.c (hppa_gdbarch_init): Update.
8474 * h8300-tdep.c (h8300_gdbarch_init): Update.
8475 * frv-tdep.c (frv_gdbarch_init): Update.
8476 * cris-tdep.c (cris_gdbarch_init): Update.
8477 * avr-tdep.c (avr_gdbarch_init): Update.
8478 * arm-tdep.c (arm_gdbarch_init): Update.
8479 * alpha-tdep.c (alpha_gdbarch_init): Update.
8481 2003-03-25 Andrew Cagney <cagney@redhat.com>
8483 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8484 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8485 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8486 * gdbarch.h, gdbarch.c: Regenerate.
8487 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8488 call_dummy_stack_adjust_p.
8489 * vax-tdep.c (vax_gdbarch_init): Ditto.
8490 * v850-tdep.c (v850_gdbarch_init): Ditto.
8491 * sh-tdep.c (sh_gdbarch_init): Ditto.
8492 * s390-tdep.c (s390_gdbarch_init): Ditto.
8493 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8494 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8495 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8496 * mips-tdep.c (mips_gdbarch_init): Ditto.
8497 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8498 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8499 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8500 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8501 * i386-tdep.c (i386_gdbarch_init): Ditto.
8502 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8503 * frv-tdep.c (frv_gdbarch_init): Ditto.
8504 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8505 * cris-tdep.c (cris_gdbarch_init): Ditto.
8506 * avr-tdep.c (avr_gdbarch_init): Ditto.
8507 * arm-tdep.c (arm_gdbarch_init): Ditto.
8508 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8509 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8510 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8511 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8512 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8513 call_dummy_stack_adjust_p.
8514 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8515 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8516 * sparc-tdep.c (sparc32_push_arguments): Update.
8517 * valops.c (hand_function_call): Update.
8519 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8521 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8522 set_gdbarch_char_signed.
8524 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8527 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8529 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8531 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8532 (_initialize_arm_tdep): Don't set tm_print_insn.
8534 2003-03-24 Adam Fedor <fedor@gnu.org>
8536 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8537 * objc-lang.h: Add multiple inclusion protection.
8538 (start_msglist, add_msglist, end_msglist): Additional declarations.
8540 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8542 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8543 value was renamed to ARM_FLOAT_SOFT_FPA.
8545 2003-03-23 Andrew Cagney <cagney@redhat.com>
8547 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8548 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8549 * gdbarch.h, gdbarch.c: Regenerate.
8550 * valops.c (hand_function_call): Update.
8551 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8552 * frame.c (legacy_saved_regs_this_id): Update.
8553 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8554 * dummy-frame.h: Update.
8555 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8556 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8557 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8558 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8559 * config/m68k/tm-sun3.h: Update.
8560 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8561 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8562 * x86-64-tdep.c (x86_64_init_abi): Update.
8563 * vax-tdep.c (vax_gdbarch_init): Update.
8564 * v850-tdep.c (v850_gdbarch_init): Update.
8565 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8566 * sh-tdep.c (sh_gdbarch_init): Update.
8567 * s390-tdep.c (s390_gdbarch_init): Update.
8568 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8569 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8570 (frame_get_saved_regs): Update.
8571 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8572 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8573 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8574 * mips-tdep.c (mips_gdbarch_init): Update.
8575 * mcore-tdep.c (mcore_gdbarch_init): Update.
8576 * m68k-tdep.c (m68k_gdbarch_init): Update.
8577 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8578 * ia64-tdep.c (ia64_gdbarch_init): Update.
8579 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8580 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8581 (i386_interix_back_one_frame): Update.
8582 * hppa-tdep.c (hppa_gdbarch_init): Update.
8583 (hppa_init_extra_frame_info): Update.
8584 * h8300-tdep.c (h8300_gdbarch_init): Update.
8585 * frv-tdep.c (frv_gdbarch_init): Update.
8586 * cris-tdep.c (cris_gdbarch_init): Update.
8587 * avr-tdep.c (avr_gdbarch_init): Update.
8588 * arm-tdep.c (arm_gdbarch_init): Update.
8589 * alpha-tdep.c (alpha_gdbarch_init): Update.
8591 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8593 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8594 (arm_get_fp_model): Declare.
8595 * arm-tdep.c (fp_model_strings): New string array.
8596 (arm_fp_model, current_fp_model): New variables.
8597 (arm_get_fp_model): New function.
8598 (arm_set_fp): New function.
8599 (set_fp_model_sfunc): New function.
8600 (show_fp_model): New function.
8601 (_initialize_arm_tdep): Add new command to set/show the FPU.
8602 (arm_extract_return_value): Use arm_get_fp_model.
8603 (arm_store_return_value): Likewise.
8604 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8605 to initialize the floating-point data types.
8606 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8609 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8611 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8612 the current setting of each value.
8613 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8614 new_set and new_show. Use add_setshow_cmd_full and
8615 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8616 commands and add new version as subcommands of "set/show arm".
8618 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8620 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8621 (set_arm_command, show_arm_command): New functions.
8622 (_initialize_arm_tdep): Add them.
8623 (num_disassembly_options): Renamed from num_flavor_options.
8624 (valid_disassembly_styles): Renamed from valid_flavors.
8625 (disassembly_style): Renamed from disassembly_flavor.
8626 (set_disassembly_style_sfunc): Renamed from
8627 set_disassembly_flavor_sfunc.
8628 (set_disassembly_style): Renamed from set_disassembly_flavor.
8629 (arm_othernames): Updated.
8630 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8631 command. Add "set/show arm disassembly" commands. Deprecate
8632 "othernames" command.
8634 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8636 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8637 (arm-tdep.o): Depend on elf_arm_h.
8639 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8641 * Makefile.in (coff_internal_h): Define.
8642 (arm-tdep.o): Update dependencies.
8644 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8646 * arm-tdep.c (prologue_cache): Delete.
8647 (check_prologue_cache, save_prologue_cache): Delete.
8648 (arm_scan_prologue): Don't check or update the prologue_cache.
8649 (arm_gdb_arch_init): Don't initialize it.
8650 (_initialize_arm_tdep): Likewise.
8652 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8654 * MAINTAINERS (tui): Maintainer of tui code.
8656 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8658 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8659 (i386-cygwin-tdep.o): Add dependencies.
8660 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8661 * i386-cygwin-tdep.c: New file.
8662 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8663 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8665 2003-03-20 Andrew Cagney <cagney@redhat.com>
8667 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8668 (handle_inferior_event): Remove code calling
8669 DYNAMIC_TRAMPOLINE_NEXTPC.
8671 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8672 already has a full path.
8674 * main.c (gdb_main): Return 1.
8675 (captured_main): Call error to report an invalid interpreter.
8677 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8678 * alpha-osf1-tdep.c: Include "gdb_string.h".
8680 2003-03-19 J. Brobecker <brobecker@gnat.com>
8682 Continuing work to convert the hppa targets to multiarch partial.
8684 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8685 method, now that hppa_push_dummy_frame has a conformant prototype.
8686 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8687 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8688 for the switch to multiarch partial.
8690 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8692 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8693 when iss is issNull.
8695 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8697 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8698 NUM_REGS bounds check.
8700 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8702 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8703 * mips-tdep.c (gdb_assert.h): Include.
8704 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8705 (mips_register_name): Handle integer registers explicitly. Add
8707 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8708 (mips_lsi33k_reg_names): Don't list integer registers; they're
8709 handled by mips_register_name() now.
8710 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8711 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8712 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8713 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8714 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8716 2003-03-18 Andrew Cagney <cagney@redhat.com>
8718 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8720 * gdbtypes.h (print_scalar_formatted): Update declaration.
8721 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8723 2003-03-18 J. Brobecker <brobecker@gnat.com>
8725 * infrun.c (observer.h): Add #include.
8726 (normal_stop): Add call to observer_notify_normal_stop.
8727 * Makefile.in (infrun.o): Add dependency on observer.h.
8729 2003-03-18 J. Brobecker <brobecker@gnat.com>
8731 Continuing work to convert the hppa targets to multiarch partial.
8732 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8733 parameter. Reformat comment.
8734 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8735 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8736 to match new profile.
8738 2003-03-18 J. Brobecker <brobecker@gnat.com>
8740 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8741 appear to be working in any case.
8743 2003-03-18 J. Brobecker <brobecker@gnat.com>
8745 * observer.c (observer_test_first_observer): New static variable.
8746 (observer_test_second_observer): Likewise.
8747 (observer_test_third_observer): Likewise.
8748 (observer_test_first_notification_function): New static function.
8749 (observer_test_second_notification_function): Likewise.
8750 (observer_test_third_notification_function): Likewise.
8752 2003-03-17 J. Brobecker <brobecker@gnat.com>
8754 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8755 * somsolib.c (gdb_assert.h): Likewise.
8756 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8757 (somsolib.o): Likewise.
8759 2003-03-17 Andrew Cagney <cagney@redhat.com>
8761 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8762 BFD. Simplify setting of di.endian.
8764 2003-03-17 Andrew Cagney <cagney@redhat.com>
8766 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8767 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8769 From Elena Zannoni <ezannoni@redhat.com>
8770 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8771 vector and floating-point parameters.
8772 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8774 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8776 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8778 * MAINTAINERS: Remove my name from several maintainership roles.
8780 2003-03-17 Andrew Cagney <cagney@redhat.com>
8782 Fix frame off-by-one bug.
8783 * frame-unwind.h (frame_this_id_ftype): Replace
8784 frame_unwind_id_ftype.
8785 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8786 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8787 with "prev_register".
8788 * frame-unwind.c (frame_unwind_find_by_pc): Return
8789 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8791 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8792 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8793 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8794 (dummy_frame_unwind): Update.
8795 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8796 sentinel_frame_register_unwind.
8797 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8798 (sentinel_frame_unwinder): Update.
8799 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8800 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8801 * frame.c (create_sentinel_frame): Update. Initialize
8802 "prologue_cache" instead of "unwind_cache".
8803 (frame_register_unwind): Call this frame's prev_register with the
8804 next frame and this frame's prologue cache.
8805 (get_prev_frame): Simplify. Always call prev frame's this_id with
8806 this frame and prev frame's prologue cache. Document that this
8807 call is shifted one to the left when compared to the
8808 frame_register_unwind call.
8809 (legacy_saved_regs_prev_register): Replace
8810 frame_saved_regs_register_unwind.
8811 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8812 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8813 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8814 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8815 (d10v_frame_unwind): Update.
8816 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8817 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8818 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8819 "saved_regs" with "this_saved_regs".
8821 2003-03-16 Andrew Cagney <cagney@redhat.com>
8823 * frame.c (frame_pop): Don't call target_store_registers. Fix
8824 problem reported by Mark Kettenis.
8826 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8828 * i386-tdep.c (i386_register_type): Renamed from
8829 i386_register_virtual_type. Adjust function signature.
8830 (i386_gdbarch_init): Set register_type instead of
8831 deprecated_max_register_raw_size,
8832 deprecated_max_register_virtual_size and register_virtual_type.
8834 2003-03-14 Andrew Cagney <cagney@redhat.com>
8836 * frame.c (get_prev_frame): When a legacy frame, always call
8837 legacy_get_prev_frame. Simplify unwind code using assumption that
8838 the unwinder is new.
8839 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8840 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8841 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8843 2003-03-14 Andrew Cagney <cagney@redhat.com>
8845 * frame.c (get_saved_register): Delete function.
8846 * frame.h (get_saved_register): Delete declaration.
8847 * xstormy16-tdep.c: Update comment.
8848 * regcache.h: Update comments.
8849 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8850 get_saved_register and extract_address, use
8851 frame_read_unsigned_register.
8852 (sparc_frame_saved_pc): Ditto.
8853 (sparc_get_saved_register): Instead of get_saved_register, use
8855 (sparc_pop_frame): Ditto.
8856 * findvar.c: Update comments.
8857 (value_of_register): Call frame_register instead of
8859 (value_from_register): Ditto.
8860 * config/sparc/tm-sparc.h: Update comment.
8861 * breakpoint.c: Update comment.
8863 2003-03-14 Andrew Cagney <cagney@redhat.com>
8865 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8867 * gdbarch.h, gdbarch.c: Re-generate.
8868 * frame.h: Update comments.
8869 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8870 * x86-64-tdep.c (x86_64_init_abi): Update.
8871 * sparc-tdep.c (sparc_gdbarch_init): Update.
8872 * sh-tdep.c (sh_gdbarch_init): Update.
8873 * mips-tdep.c (mips_gdbarch_init): Update.
8874 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8875 * cris-tdep.c (cris_gdbarch_init): Update.
8876 * ia64-tdep.c (ia64_gdbarch_init): Update.
8877 * frame.c (frame_register): Update.
8878 (get_saved_register): Update.
8879 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8881 2003-03-13 Andrew Cagney <cagney@redhat.com>
8883 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8884 * gdbarch.h, gdbarch.c: Regenerate.
8885 * valops.c (hand_function_call): Update comment.
8886 * stack.c (return_command): Update comment.
8887 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8888 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8889 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8890 * x86-64-tdep.c (x86_64_init_abi): Update.
8891 * vax-tdep.c (vax_gdbarch_init): Update.
8892 * v850-tdep.c (v850_gdbarch_init): Update.
8893 * sparc-tdep.c (sparc_gdbarch_init): Update.
8894 * sh-tdep.c (sh_gdbarch_init): Update.
8895 * s390-tdep.c (s390_gdbarch_init): Update.
8896 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8897 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8898 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8899 * mips-tdep.c (mips_gdbarch_init): Update.
8900 * mcore-tdep.c (mcore_gdbarch_init): Update.
8901 * m68k-tdep.c (m68k_gdbarch_init): Update.
8902 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8903 * ia64-tdep.c (ia64_gdbarch_init): Update.
8904 * i386-tdep.c (i386_gdbarch_init): Update.
8905 * hppa-tdep.c (hppa_gdbarch_init): Update.
8906 * h8300-tdep.c (h8300_gdbarch_init): Update.
8907 * frv-tdep.c (frv_gdbarch_init): Update.
8908 * cris-tdep.c (cris_gdbarch_init): Update.
8909 * avr-tdep.c (avr_gdbarch_init): Update.
8910 * arm-tdep.c (arm_gdbarch_init): Update.
8911 * alpha-tdep.c (alpha_gdbarch_init): Update.
8913 2003-03-13 Andrew Cagney <cagney@redhat.com>
8915 * frame.c (legacy_frame_p): New function.
8916 (get_prev_frame): Use legacy_frame_p.
8917 * frame.h (legacy_frame_p): Declare.
8919 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8921 * MAINTAINERS (write after approval): Alphabetically
8924 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8926 * MAINTAINERS (write after approval): Add myself.
8928 2003-03-12 Andrew Cagney <cagney@redhat.com>
8930 * frame.c (get_prev_frame): Rename the frame parameter to
8932 (get_next_frame, legacy_get_prev_frame): Ditto.
8934 2003-03-12 Andrew Cagney <cagney@redhat.com>
8936 * frame.c (get_current_frame): Check target_has_registers before
8937 checking target_has_stack.
8938 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8939 instead of deprecated_selected_frame.
8940 * findvar.c (value_of_register): Pass "frame", not
8941 deprecated_selected_frame, to value_of_builtin_reg.
8943 2003-03-12 Andrew Cagney <cagney@redhat.com>
8945 * regcache.c (regcache_cooked_write_signed): New function.
8946 (regcache_cooked_write_unsigned): New function.
8947 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8948 (regcache_cooked_read_signed): Fix regnum in range assertion.
8949 * regcache.h (regcache_cooked_write_signed): Declare.
8950 (regcache_cooked_write_unsigned): Declare.
8952 2003-03-12 Andrew Cagney <cagney@redhat.com>
8954 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8955 * gdbarch.h, gdbarch.c: Re-generate.
8956 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8957 * x86-64-tdep.h: Update.
8958 * x86-64-tdep.c (x86_64_init_abi): Update.
8959 * v850-tdep.c (v850_gdbarch_init): Update.
8960 * sparc-tdep.c (sparc_gdbarch_init): Update.
8961 * sh-tdep.c (sh_gdbarch_init): Update.
8962 * s390-tdep.c (s390_gdbarch_init): Update.
8963 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8964 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8965 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8966 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8967 * mips-tdep.c (mips_gdbarch_init): Update.
8968 * mcore-tdep.c (mcore_gdbarch_init): Update.
8969 * m68k-tdep.c (m68k_gdbarch_init): Update.
8970 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8971 * ia64-tdep.c (ia64_gdbarch_init): Update.
8972 * i386-tdep.c (i386_gdbarch_init): Update.
8973 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8974 * hppa-tdep.c (hppa_gdbarch_init): Update.
8975 * h8300-tdep.c (h8300_gdbarch_init): Update.
8976 * frv-tdep.c (frv_gdbarch_init): Update.
8977 * cris-tdep.c (cris_gdbarch_init): Update.
8978 * avr-tdep.c (avr_gdbarch_init): Update.
8979 * arm-tdep.c (arm_gdbarch_init): Update.
8980 * alpha-tdep.c (alpha_gdbarch_init): Update.
8981 * sh-tdep.c (sh_init_extra_frame_info): Update.
8982 (sh64_init_extra_frame_info): Update.
8983 * ns32knbsd-nat.c (frame_num_args): Update.
8984 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8985 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8986 (xstormy16_frame_chain_valid): Update.
8987 * vax-tdep.c (vax_saved_pc_after_call): Update.
8988 * v850-tdep.c (v850_frame_chain): Update.
8989 (v850_pop_frame): Update.
8990 (v850_init_extra_frame_info): Update.
8991 * sparc-tdep.c (setup_arbitrary_frame): Update.
8992 * ns32k-tdep.c (umax_frame_num_args): Update.
8993 * s390-tdep.c (s390_pop_frame_regular): Update.
8994 * mn10300-tdep.c (mn10300_frame_chain): Update.
8995 (mn10300_pop_frame_regular): Update.
8996 (mn10300_init_extra_frame_info): Update.
8997 * mips-tdep.c (mips_init_frame_pc_first): Update.
8998 (mips_frame_chain): Update.
8999 (mips_pop_frame): Update.
9000 * mcore-tdep.c (mcore_frame_chain): Update.
9001 (mcore_pop_frame): Update.
9002 (mcore_init_extra_frame_info): Update.
9003 * arch-utils.c (init_frame_pc_default): Update.
9004 * m68k-tdep.c (isi_frame_num_args): Update.
9005 (delta68_frame_num_args): Update.
9006 (news_frame_num_args): Update.
9007 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9008 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9009 (alpha_frame_chain): Update.
9010 (alpha_pop_frame): Update.
9011 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9012 (hppa_init_extra_frame_info): Update.
9013 (hppa_frame_chain): Update.
9014 (hppa_frame_chain_valid): Update.
9015 * cris-tdep.c (cris_init_extra_frame_info): Update.
9016 * avr-tdep.c (avr_init_extra_frame_info): Update.
9017 * arm-tdep.c (arm_frame_chain_valid): Update.
9018 (arm_init_extra_frame_info): Update.
9019 (arm_pop_frame): Update.
9020 * frame.c (frame_pc_unwind): Update.
9021 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9022 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9023 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9024 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9025 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9026 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9028 2003-03-12 Andrew Cagney <cagney@redhat.com>
9030 Eliminate the need for POP_FRAME.
9031 * frame.c (do_frame_unwind_register): New function.
9032 (frame_pop): When no POP_FRAME, pop the frame using register
9033 unwind and a scratch regcache.
9034 (frame_saved_regs_pop): Delete function.
9035 (trad_frame_unwinder): Update.
9036 * d10v-tdep.c (d10v_frame_pop): Delete function.
9037 (d10v_frame_unwind): Update.
9038 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9039 (sentinel_frame_unwinder): Update.
9040 * dummy-frame.c (dummy_frame_pop): Delete function.
9041 (dummy_frame_unwind): Update.
9042 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9043 (struct frame_unwind): Update.
9045 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9047 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9048 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9049 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9050 Do range checks on register number obtained from debugging info.
9051 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9052 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9053 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9055 (do_fp_register_row): Fix typo which caused double type to be
9056 used when attempting to unpack a float.
9058 2003-03-11 J. Brobecker <brobecker@gnat.com>
9060 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9062 2003-03-11 Andrew Cagney <cagney@redhat.com>
9064 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9065 frame. Problem found by Corinna Vinschen.
9067 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9069 * doublest.c (floatformat_from_length): Accept also
9070 the real size of 'long double' type.
9072 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9074 From Klee Dienes <kdienes@apple.com>:
9075 * breakpoint.c (bpstat_copy): Copy the command lines as well
9076 as the old value, to match what is freed in bpstat_clear.
9078 2003-03-10 David Carlton <carlton@math.stanford.edu>
9080 * minsyms.c (add_minsym_to_hash_table): Replace
9081 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9082 (compare_minimal_symbols, compact_minimal_symbols)
9083 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9084 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9085 of DEPRECATED_SYMBOL_MATCHES_NAME.
9086 (lookup_minimal_symbol_solib_trampoline): Ditto.
9088 2003-03-10 Andrew Cagney <cagney@redhat.com>
9090 * regcache.h (regcache_cooked_read_ftype): Define.
9091 (regcache_save, regcache_restore): Add a cooked_read parameter.
9092 * regcache.c (regcache_save, regcache_restore): Update.
9093 (do_cooked_read): New function.
9094 (regcache_cpy): Pass do_cooked_read to regcache_save and
9097 2003-03-10 Andrew Cagney <cagney@redhat.com>
9099 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9100 * gdbarch.h, gdbarch.c: Re-generate.
9101 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9102 * x86-64-tdep.h: Update.
9103 * x86-64-tdep.c (x86_64_init_abi): Update.
9104 * v850-tdep.c (v850_gdbarch_init): Update.
9105 * sparc-tdep.c (sparc_gdbarch_init): Update.
9106 * sh-tdep.c (sh_gdbarch_init): Update.
9107 * s390-tdep.c (s390_gdbarch_init): Update.
9108 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9109 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9110 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9111 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9112 * mips-tdep.c (mips_gdbarch_init): Update.
9113 * mcore-tdep.c (mcore_gdbarch_init): Update.
9114 * m68k-tdep.c (m68k_gdbarch_init): Update.
9115 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9116 * ia64-tdep.c (ia64_gdbarch_init): Update.
9117 * i386-tdep.c (i386_gdbarch_init): Update.
9118 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9119 * hppa-tdep.c (hppa_gdbarch_init): Update.
9120 * h8300-tdep.c (h8300_gdbarch_init): Update.
9121 * frv-tdep.c (frv_gdbarch_init): Update.
9122 * cris-tdep.c (cris_gdbarch_init): Update.
9123 * avr-tdep.c (avr_gdbarch_init): Update.
9124 * arm-tdep.c (arm_gdbarch_init): Update.
9125 * alpha-tdep.c (alpha_gdbarch_init): Update.
9126 * sh-tdep.c (sh_init_extra_frame_info): Update.
9127 (sh64_init_extra_frame_info): Update.
9128 * ns32knbsd-nat.c (frame_num_args): Update.
9129 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9130 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9131 (xstormy16_frame_chain_valid): Update.
9132 * vax-tdep.c (vax_saved_pc_after_call): Update.
9133 * v850-tdep.c (v850_frame_chain): Update.
9134 (v850_pop_frame): Update.
9135 (v850_init_extra_frame_info): Update.
9136 * sparc-tdep.c (setup_arbitrary_frame): Update.
9137 * ns32k-tdep.c (umax_frame_num_args): Update.
9138 * s390-tdep.c (s390_pop_frame_regular): Update.
9139 * mn10300-tdep.c (mn10300_frame_chain): Update.
9140 (mn10300_pop_frame_regular): Update.
9141 (mn10300_init_extra_frame_info): Update.
9142 * mips-tdep.c (mips_init_frame_pc_first): Update.
9143 (mips_frame_chain): Update.
9144 (mips_pop_frame): Update.
9145 * mcore-tdep.c (mcore_frame_chain): Update.
9146 (mcore_pop_frame): Update.
9147 (mcore_init_extra_frame_info): Update.
9148 * arch-utils.c (init_frame_pc_default): Update.
9149 * m68k-tdep.c (isi_frame_num_args): Update.
9150 (delta68_frame_num_args): Update.
9151 (news_frame_num_args): Update.
9152 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9153 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9154 (alpha_frame_chain): Update.
9155 (alpha_pop_frame): Update.
9156 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9157 (hppa_init_extra_frame_info): Update.
9158 (hppa_frame_chain): Update.
9159 (hppa_frame_chain_valid): Update.
9160 * cris-tdep.c (cris_init_extra_frame_info): Update.
9161 * avr-tdep.c (avr_init_extra_frame_info): Update.
9162 * arm-tdep.c (arm_frame_chain_valid): Update.
9163 (arm_init_extra_frame_info): Update.
9164 (arm_pop_frame): Update.
9165 * frame.c (frame_pc_unwind): Update.
9166 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9167 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9168 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9169 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9170 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9171 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9173 2003-03-10 Andrew Cagney <cagney@redhat.com>
9175 * gdbarch.sh (gdbarch_unwind_pc): New method.
9176 * gdbarch.h, gdbarch.c: Regenerate.
9177 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9178 but use read_pc and FRAME_SAVED_PC as fall backs.
9179 (frame_saved_regs_pc_unwind): Delete function.
9180 (trad_frame_unwinder): Update.
9181 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9182 (struct frame_unwind): Update.
9183 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9184 (dummy_frame_unwind): Update.
9185 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9186 (sentinel_frame_unwinder): Update.
9187 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9188 (d10v_frame_unwind): Update.
9189 (d10v_unwind_pc): New function.
9190 (d10v_gdbarch_init): Set unwind_pc.
9192 2003-03-10 Andrew Cagney <cagney@redhat.com>
9194 * gdbarch.h: Re-generate.
9196 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9198 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9201 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9203 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9205 2003-03-08 Andrew Cagney <cagney@redhat.com>
9207 * cli-out.c: Update copyright.
9208 (cli_out_data): Define typedef. Use instead of ui_out_data.
9210 2003-03-08 Andrew Cagney <cagney@redhat.com>
9212 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9215 2003-03-07 Andrew Cagney <cagney@redhat.com>
9217 * gdbarch.sh: Don't generate two macro definitions when an
9218 undefined macro taking no arguments.
9219 * gdbarch.h: Regenerate.
9221 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9223 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9224 (x86_64_unwind_dummy_id): New functions.
9225 (x86_64_init_abi): Register these two new functions.
9227 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9229 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9230 (x86_64_skip_prologue): Move prologue detection to
9232 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9234 2003-03-05 Andrew Cagney <cagney@redhat.com>
9236 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9237 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9238 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9239 to use unwind_dummy_id when a dummy frame.
9240 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9242 * gdbarch.h, gdbarch.c: Regneerate.
9244 2003-03-05 Andrew Cagney <cagney@redhat.com>
9246 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9247 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9248 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9251 2003-03-05 Andrew Cagney <cagney@redhat.com>
9253 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9254 (struct d10v_unwind_cache): Delete field "frameless". Replace
9255 "next_addr" with "sp_offset". Add "r11_offset".
9256 (d10v_frame_unwind_cache): Update.
9257 (prologue_find_regs): Update. When "mv r11, sp", save the
9258 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9259 RN was saved in r11_offset.
9261 2003-03-05 Andrew Cagney <cagney@redhat.com>
9263 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9264 cached PC value in the next frame.
9266 2003-03-05 Andrew Cagney <cagney@redhat.com>
9268 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9269 "id_unwind_cache" with "id".
9270 (frame_id_unwind): Delete declaration.
9271 * frame.c (frame_id_unwind): Delete function.
9272 (get_prev_frame): Call the frame id unwind method directly. Store
9273 the returned next frame's ID value in NEXT_FRAME. Note that there
9274 is a problem with the wrong unwind ID being called with the wrong
9277 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9279 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9281 2003-03-05 James Ingham <jingham@apple.com>
9282 Daniel Jacobowitz <drow@mvista.com>
9284 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9285 (auto_cp_abi): New variable.
9286 (current_cp_abi, num_cp_abis): Make static.
9287 (CP_ABI_MAX): Define.
9288 (cp_abis): Turn into an array.
9289 (value_virtual_fn_field): Fix formatting.
9290 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9292 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9293 (list_cp_abis, _initialize_cp_abi): New functions.
9294 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9295 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9296 switch_to_cp_abi. Update prototype for register_cp_abi.
9297 * Makefile.in (cp-abi.o): Update dependencies.
9298 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9299 instead of switch_to_cp_abi.
9300 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9302 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9304 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9306 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9308 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9309 * dwarf2loc.c: Include "regcache.h".
9310 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9312 * Makefile.in (dwarf2loc.o): Update dependencies.
9314 2003-03-04 Theodore A. Roth <troth@openavr.org>
9316 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9317 number of io registers reported by remote target is not a multiple of
9320 2003-03-04 David Carlton <carlton@math.stanford.edu>
9322 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9323 (lookup_symbol_aux_psymtabs): Update call to
9324 lookup_partial_symbol.
9325 (lookup_transparent_type, find_main_psymtab)
9326 (make_symbol_overload_list): Ditto.
9328 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9330 * MAINTAINERS (Write after approval): Update my email address.
9332 2003-03-03 Andrew Cagney <cagney@redhat.com>
9334 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9335 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9336 predicate. Replace MAX_REGISTER_RAW_SIZE.
9337 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9338 MAX_REGISTER_VIRTUAL_SIZE.
9339 * regcache.c (legacy_max_register_raw_size): New function.
9340 (legacy_max_register_virtual_size): New function.
9341 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9342 (MAX_REGISTER_RAW_SIZE): Define.
9343 (legacy_max_register_raw_size): Declare.
9344 (legacy_max_register_virtual_size): Declare.
9345 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9346 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9347 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9348 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9349 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9350 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9351 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9352 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9353 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9354 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9355 * vax-tdep.c (vax_gdbarch_init): Update.
9356 * v850-tdep.c (v850_gdbarch_init): Update.
9357 * sparc-tdep.c (sparc_gdbarch_init): Update.
9358 * sh-tdep.c (sh_gdbarch_init): Update.
9359 * s390-tdep.c (s390_gdbarch_init): Update.
9360 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9361 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9362 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9363 * mips-tdep.c (mips_gdbarch_init): Update.
9364 * mcore-tdep.c (mcore_gdbarch_init): Update.
9365 * m68k-tdep.c (m68k_gdbarch_init): Update.
9366 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9367 * ia64-tdep.c (ia64_gdbarch_init): Update.
9368 * i386-tdep.c (i386_gdbarch_init): Update.
9369 * hppa-tdep.c (hppa_gdbarch_init): Update.
9370 * h8300-tdep.c (h8300_gdbarch_init): Update.
9371 * frv-tdep.c (frv_gdbarch_init): Update.
9372 * cris-tdep.c (cris_gdbarch_init): Update.
9373 * avr-tdep.c (avr_gdbarch_init): Update.
9374 * arm-tdep.c (arm_gdbarch_init): Update.
9375 * alpha-tdep.c (alpha_gdbarch_init): Update.
9376 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9377 max_register_raw_size or max_register_virtual_size.
9379 2003-03-03 David Carlton <carlton@math.stanford.edu>
9381 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9382 SYMBOL_MATCHES_NAME, add comment.
9383 (SYMBOL_MATCHES_NATURAL_NAME): New.
9384 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9385 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9386 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9387 * symtab.c (lookup_partial_symbol): Use
9388 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9390 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9391 SYMBOL_MATCHES_NAME.
9394 2003-03-03 David Carlton <carlton@math.stanford.edu>
9396 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9397 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9398 by regexp matching against SYMBOL_NATURAL_NAME.
9400 2003-03-03 David Carlton <carlton@math.stanford.edu>
9402 * linespec.c (find_method): Extract code into collect_methods.
9403 (collect_methods): New.
9405 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9407 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9410 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9411 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9413 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9415 * arch-utils.c (generic_register_byte): Fix to use the loop index
9416 and not regnum when summing the size of all registers up to regnum.
9418 2003-03-01 Andrew Cagney <cagney@redhat.com>
9420 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9421 FRAME_INIT_SAVED_REGS.
9422 * gdbarch.h, gdbarch.c: Regenerate.
9423 * stack.c (frame_info): Update.
9424 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9425 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9426 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9427 * ns32k-tdep.c (ns32k_pop_frame): Update.
9428 * mips-tdep.c (mips_pop_frame): Update.
9429 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9430 * ia64-tdep.c (ia64_frame_chain): Update.
9431 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9432 (ia64_frameless_function_invocation): Update.
9433 (ia64_init_extra_frame_info): Update.
9434 (ia64_pop_frame_regular): Update.
9435 * frame.h (struct frame_info): Update comment.
9436 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9437 * frame.c (frame_saved_regs_register_unwind): Update.
9438 (frame_saved_regs_register_unwind): Update.
9439 (deprecated_generic_get_saved_register): Update.
9440 * cris-tdep.c: Update comment.
9441 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9443 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9444 * x86-64-tdep.c (x86_64_init_abi): Update.
9445 * vax-tdep.c (vax_gdbarch_init): Update.
9446 * v850-tdep.c (v850_gdbarch_init): Update.
9447 * sparc-tdep.c (sparc_gdbarch_init): Update.
9448 * sh-tdep.c (sh_gdbarch_init): Update.
9449 * s390-tdep.c (s390_gdbarch_init): Update.
9450 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9451 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9452 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9453 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9454 * mips-tdep.c (mips_gdbarch_init): Update.
9455 * mcore-tdep.c (mcore_gdbarch_init): Update.
9456 * m68k-tdep.c (m68k_gdbarch_init): Update.
9457 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9458 * ia64-tdep.c (ia64_gdbarch_init): Update.
9459 * i386-tdep.c (i386_gdbarch_init): Update.
9460 * frv-tdep.c (frv_gdbarch_init): Update.
9461 * avr-tdep.c (avr_gdbarch_init): Update.
9462 * arm-tdep.c (arm_gdbarch_init): Update.
9463 * alpha-tdep.c (alpha_gdbarch_init): Update.
9465 2003-03-01 Andrew Cagney <cagney@redhat.com>
9467 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9468 option enum and switch. When no windows, set the interpreter to
9471 2003-03-01 Andrew Cagney <cagney@redhat.com>
9473 * main.c (captured_main): Replace magic option characters with an
9476 2003-03-01 Andrew Cagney <cagney@redhat.com>
9478 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9479 INIT_EXTRA_FRAME_INFO.
9480 * gdbarch.h, gdbarch.c: Regenerate.
9481 * arm-tdep.c: Update comments.
9482 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9483 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9484 * frame.h, avr-tdep.c: Ditto.
9485 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9486 (create_new_frame, legacy_get_prev_frame): Ditto.
9487 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9488 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9489 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9490 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9491 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9492 * v850-tdep.c (v850_gdbarch_init): Ditto.
9493 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9494 * sh-tdep.c (sh_gdbarch_init): Ditto.
9495 * s390-tdep.c (s390_gdbarch_init): Ditto.
9496 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9497 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9498 * mips-tdep.c (mips_gdbarch_init): Ditto.
9499 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9500 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9501 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9502 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9503 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9504 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9505 * frv-tdep.c (frv_gdbarch_init): Ditto.
9506 * cris-tdep.c (cris_gdbarch_init): Ditto.
9507 * avr-tdep.c (avr_gdbarch_init): Ditto.
9508 * arm-tdep.c (arm_gdbarch_init): Ditto.
9509 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9510 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9512 2003-03-01 Andrew Cagney <cagney@redhat.com>
9514 * gdbarch.sh (register_type): New function with predicate.
9515 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9516 * gdbarch.h, gdbarch.c: Re-generate.
9517 * arch-utils.c (generic_register_byte): Use generic_register_size.
9518 (generic_register_size): When available, use
9519 gdbarch_register_type.
9520 * regcache.c (init_regcache_descr): When available, initialize the
9521 register type array using gdbarch_register_type. If the
9522 architecture supplies gdbarch_register_type, do not use the legacy
9524 * d10v-tdep.c (d10v_register_type): Replace
9525 d10v_register_virtual_type.
9526 (d10v_gdbarch_init): Set register_type instead of
9527 register_virtual_type.
9529 2003-03-01 Andrew Cagney <cagney@redhat.com>
9531 * Makefile.in (ax-gdb.o): Update dependencies.
9532 * ax-gdb.c: Include "regcache.h".
9533 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9534 * findvar.c (value_of_register): Ditto.
9535 * infcmd.c (default_print_registers_info): Ditto.
9537 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9539 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9540 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9542 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9544 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9547 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9549 * Makefile.in (dwarf2loc.o): Update dependencies.
9550 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9551 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9552 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9553 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9554 (locexpr_tracepoint_var_ref): New function.
9555 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9557 2003-02-28 Andrew Cagney <cagney@redhat.com>
9559 * regcache.c (register_size): New function.
9560 * regcache.h (register_size): Declare
9561 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9562 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9564 2003-02-28 David Carlton <carlton@math.stanford.edu>
9566 * linespec.c (decode_compound): Extract code into find_method.
9569 2003-02-28 J. Brobecker <brobecker@gnat.com>
9571 * Makefile.in: Add rules to build and link in observer.o.
9573 2003-02-27 J. Brobecker <brobecker@gnat.com>
9575 * observer.c: Minor comments edits.
9577 2003-02-27 J. Brobecker <brobecker@gnat.com>
9579 * observer.h, observer.c: New file.
9581 2003-02-27 Andrew Cagney <cagney@redhat.com>
9583 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9585 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9587 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9588 (M6812_OP_STS_EXT): Likewise.
9589 (m6811_prologue): Use the above to recognize prologue.
9590 (m6812_prologue): Likewise.
9592 2003-02-27 David Carlton <carlton@math.stanford.edu>
9594 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9596 (compare_psymbols): Ditto.
9597 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9599 2003-02-27 Michael Snyder <msnyder@redhat.com>
9601 * f-lang.c (build_fortran_types): New function.
9602 (_initialize_f_language): Gdbarch-register built-in fortran types.
9603 * doublest.c (extract_floating): Fix warning text.
9605 2003-02-27 Andrew Cagney <cagney@redhat.com>
9607 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9608 predicate. Replaces PUSH_DUMMY_FRAME.
9609 * gdbarch.h, gdbarch.c: Regnerate.
9610 * valops.c (hand_function_call): Update. Call
9611 generic_push_dummy_frame directly.
9612 * vax-tdep.c (vax_gdbarch_init): Update.
9613 * sparc-tdep.c (sparc_gdbarch_init): Update.
9614 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9615 * m68k-tdep.c (m68k_gdbarch_init): Update.
9616 * hppa-tdep.c (hppa_gdbarch_init): Update.
9617 * alpha-tdep.c (alpha_gdbarch_init): Update.
9618 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9619 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9620 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9621 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9622 push_dummy_frame to generic_push_dummy_frame.
9623 * v850-tdep.c (v850_gdbarch_init): Ditto.
9624 * sh-tdep.c (sh_gdbarch_init): Ditto.
9625 * s390-tdep.c (s390_gdbarch_init): Ditto.
9626 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9627 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9628 * mips-tdep.c (mips_gdbarch_init): Ditto.
9629 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9630 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9631 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9632 * i386-tdep.c (i386_gdbarch_init): Ditto.
9633 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9634 * frv-tdep.c (frv_gdbarch_init): Ditto.
9635 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9636 * cris-tdep.c (cris_gdbarch_init): Ditto.
9637 * avr-tdep.c (avr_gdbarch_init): Ditto.
9638 * arm-tdep.c (arm_gdbarch_init): Ditto.
9640 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9642 * mips-tdep.c (show_mips_abi): New function.
9643 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9644 command ``show mips abi''.
9646 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9648 From Elena Zannoni <ezannoni@redhat.com>
9649 * dbxread.c (process_one_symbol): Only record line 0 if one or
9650 more sline entries have been seen for the function.
9652 2003-02-26 Michael Chastain <mec@shout.net>
9654 * configure: Regenerate with autoconf 000227.
9656 2003-02-26 Michael Chastain <mec@shout.net>
9659 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9660 for old libc5/glibc.
9661 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9663 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9665 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9666 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9668 2003-02-26 Michael Chastain <mec@shout.net>
9670 * configure.in: New variable HAVE_UINTPTR_T.
9671 * configure, config.in: Regenerated.
9673 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9676 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9678 2003-02-25 Andrew Cagney <cagney@redhat.com>
9680 * frame.c (get_prev_frame): Add comment on check for
9681 inside_entry_func. Only check for inside_entry_file when not a
9682 dummy and not a sentinel. Check that the new frame is not inner
9685 2003-02-25 Andrew Cagney <cagney@redhat.com>
9687 * frame.c (frame_debug): New variable.
9688 (_initialize_frame): Add "set/show debug frame" command.
9689 (get_prev_frame): When frame_debug, print reason why unwind
9692 2003-02-25 Michael Chastain <mec@shout.net>
9694 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9695 to avoid uintptr_t definition problems.
9697 2003-02-25 David Carlton <carlton@math.stanford.edu>
9699 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9700 (SYMBOL_LINKAGE_NAME): Ditto.
9701 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9702 SYMBOL_LINKAGE_NAME.
9703 (struct general_symbol_info): Expand comment.
9704 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9705 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9706 (SYMBOL_MATCHES_REGEXP): Ditto.
9707 * symtab.c (symbol_natural_name): New function.
9708 * objfiles.h: Replace all uses of SYMBOL_NAME by
9709 DEPRECATED_SYMBOL_NAME.
9710 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9711 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9712 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9713 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9714 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9715 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9716 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9717 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9718 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9719 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9721 * ada-exp.y: Update copyright.
9722 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9723 * cp-valprint.c: Ditto.
9725 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9727 * infptrace.c (detach): Do not flag error if ptrace detach fails
9728 and errno is set to ESRCH.
9730 2003-02-24 Andrew Cagney <cagney@redhat.com>
9732 * infptrace.c (udot_info): Change type of udot_off to long. Use
9733 paddr when printing udot_off's value.
9735 2003-02-24 David Carlton <carlton@math.stanford.edu>
9737 * symtab.c (make_symbol_overload_list): Only read in partial
9738 symtabs containing a matching partial symbol.
9740 2003-02-24 David Carlton <carlton@math.stanford.edu>
9742 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9743 do the comparison, not strcmp.
9744 * symfile.c (compare_psymbols): Ditto.
9745 * defs.h: Declare strcmp_iw_ordered.
9746 * utils.c (strcmp_iw_ordered): New function.
9748 2003-02-24 Jim Blandy <jimb@redhat.com>
9750 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9751 support, shared libs): Remove my name from here, to better reflect
9754 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9756 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9757 (target_ops): Add to_have_continuable_watchpoint.
9758 * target.c (update_current_target): Add INHERIT line for
9759 to_have_continuable_watchpoint.
9760 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9761 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9762 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9763 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9765 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9767 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9770 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9772 * solib.c (solib_open): Call target defined search function after
9773 failing with solib-search-path.
9774 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9775 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9777 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9779 * MAINTAINERS: Add myself to Write After section.
9781 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9783 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9785 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9787 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9788 (m68hc11_add_reggroups): New function.
9789 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9790 (m68hc11_gdbarch_init): Install the reggroups.
9791 (_initialize_m68hc11_tdep): Initialize them.
9793 2003-02-21 James E Wilson <wilson@tuliptree.org>
9795 * MAINTAINERS: Update my email address.
9797 2003-02-21 David Carlton <carlton@math.stanford.edu>
9799 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9801 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9803 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9804 * symtab.h: Add opaque declarations of struct axs_value and
9806 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9807 (struct location_funcs): New type.
9808 (struct symbol): Add "loc" to aux_value.
9809 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9810 * dwarf2read.c: Include "dwarf2expr.h".
9811 (dwarf2_symbol_mark_computed): New function.
9812 (read_func_scope): Use it.
9813 (var_decode_location): New function.
9814 (new_symbol): Use it.
9815 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9817 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9818 (dwarf2expr_h, dwarf2loc_h): New variables.
9819 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9820 (dwarf2expr.o, dwarf2loc.o): New rules.
9821 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9822 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9824 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9825 * m2-exp.y (yylex): Likewise.
9826 * printcmd.c (address_info, print_frame_args): Likewise.
9827 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9828 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9829 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9830 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9831 * symtab.c (lookup_block_symbol): Likewise.
9833 2003-02-20 Adam Fedor <fedor@gnu.org>
9835 * symtab.h: Remove objc_specific struct
9836 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9837 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9838 Have language_objc use cplus_specific struct.
9840 2003-02-20 Tom Tromey <tromey@redhat.com>
9842 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9843 TYPE_NAME, when printing a String value. PR java/1075.
9845 2003-02-20 Adam Fedor <fedor@gnu.org>
9847 * objc-lang.h (find_methods): Remove declaration.
9848 * objc-lang.c (find_methods): Make static.
9850 2003-02-20 Christopher Faylor <cgf@redhat.com>
9852 * win32-nat.c (get_image_name): Check return value from
9854 (child_xfer_memory): Ditto.
9856 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9858 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9859 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9860 '${exec_prefix}' (in addition to the expansion thereof) as
9862 * configure: Rebuilt.
9864 2003-02-20 David Carlton <carlton@math.stanford.edu>
9866 * symtab.c (search_symbols): Revert the search_symbols part of my
9867 2002-12-23 patch. Add comment.
9869 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9871 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9872 * dbxread.c (elfstab_build_psymtabs): Don't call
9873 install_minimal_symbols.
9874 (stabsect_build_psymtabs): Likewise.
9875 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9877 * somread.c (som_symfile_read): Call install_minimal_symbols
9878 and do_cleanups earlier.
9879 * nlmread.c (nlm_symfile_read): Likewise.
9880 * mdebugread.c (elfmdebug_build_psymtabs): Call
9881 install_minimal_symbols and make appropriate cleanups.
9883 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9885 * solib.c (reload_shared_libraries): New function.
9886 (_initialize_solib): Add callbacks for ``set solib-search-path''
9887 and ``set solib-absolute-prefix''.
9889 2003-02-20 David Carlton <carlton@math.stanford.edu>
9891 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9893 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9894 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9895 * ada-typeprint.c (ada_typedef_print): Ditto.
9896 * ax-gdb.c (gen_var_ref): Ditto.
9897 * breakpoint.c (print_one_breakpoint): Ditto.
9898 * buildsym.c (finish_block): Ditto.
9899 * c-valprint.c (c_val_print): Ditto.
9900 * expprint.c (print_subexp): Ditto.
9901 * findvar.c (locate_var_value): Ditto.
9902 * infcmd.c (jump_command): Ditto.
9903 * linespec.c (decode_line_2, decode_compound): Ditto.
9904 * maint.c (maintenance_translate_address): Ditto.
9905 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9906 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9908 * p-valprint.c (pascal_val_print): Ditto.
9909 * stabsread.c (define_symbol): Ditto.
9910 * stack.c (print_frame, frame_info, print_block_frame_locals)
9911 (print_frame_arg_vars, return_command): Ditto.
9912 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9913 * symmisc.c (print_symbol): Ditto.
9914 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9915 (compare_search_syms, print_symbol_info, print_msymbol_info)
9916 (rbreak_command): Ditto.
9917 * tracepoint.c (tracepoints_info): Ditto.
9918 * typeprint.c (typedef_print): Ditto.
9919 * valops.c (value_of_variable, hand_function_call): Ditto.
9920 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9921 * ada-typeprint.c: Update Copyright.
9922 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9923 * tracepoint.c, cli/cli-cmds.c: Ditto.
9925 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9927 * frame.c (generic_unwind_get_saved_register): Make non-static.
9928 * frame.h (generic_unwind_get_saved_register): Declare.
9929 * mips-tdep.c (read_next_frame_reg): Fetch register from
9930 current regcache when frame is NULL.
9931 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9933 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9934 instead of frame_register_unwind().
9936 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9938 * remote-sim.c (gdbsim_insert_breakpoint)
9939 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9942 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9944 * remote.c (_initialize_remote): Add commands "set/show remote
9945 hardware-watchpoint-limit" and "set/show remote
9946 hardware-breakpoint-limit".
9947 (remote_hw_watchpoint_limit): Initialize to -1.
9948 (remote_hw_breakpoint_limit): Ditto.
9949 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9951 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9953 * coff-pe-read.c: New file - support reading of minimal symbols from a
9954 portable executable using the export table.
9955 * coff-pe-read.h: New file.
9956 * coffread.c: Include coff-pe-read.h.
9957 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9958 debugging symbols found.
9959 * Makefile.in (SFILES): Add coff-pe-read.o.
9960 (coff_pe_read_h): Define.
9961 (COMMON_OBS): Add coff-pe-read.o.
9962 (coffread.o): Add coff_pe_read_h dependency.
9963 (coff-pe-read.o): New target.
9965 2003-02-19 David Carlton <carlton@math.stanford.edu>
9967 * Makefile.in (SFILES): Add block.c.
9969 (COMMON_OBS): Add block.o.
9971 (x86-64-tdep.o): Add $(block_h).
9972 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9973 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9974 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9975 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9976 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9977 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9978 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9979 * value.h: Add opaque declaration for struct block.
9980 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9981 * ada-lang.h: Ditto.
9982 * x86-64-tdep.c: #include "block.h"
9983 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9984 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9985 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9986 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9987 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9988 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9989 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9990 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9991 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9992 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9993 * symtab.c (block_function): Ditto.
9994 (contained_in): Ditto.
9995 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9996 block.h. Add opaque declaration for struct block.
9997 * symtab.h: Move block_function and contained_in declarations to
9998 block.h. Add opaque declarations for struct block, struct
10000 (struct block): Move to block.h.
10001 (struct blockvector): Ditto.
10002 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10003 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10004 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10005 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10006 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10008 * block.c: New file.
10009 * block.h: New file.
10011 2003-02-19 Theodore A. Roth <troth@openavr.org>
10013 * avr-tdep.c (avr_extract_return_value): Remove function.
10014 (avr_store_return_value): Remove function.
10015 (avr_extract_struct_value_address): Remove function.
10016 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10018 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10020 * rs6000-tdep.c: Include "gdb_assert.h".
10021 (registers_e500): Add "acc" and "spefscr".
10022 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10023 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10024 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10026 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10028 2003-02-18 Keith Seitz <keiths@redhat.com>
10030 * Makefile.in: Add gdbtk-interps.c.
10032 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10034 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10035 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10037 2003-02-18 Andrew Cagney <cagney@redhat.com>
10039 * symtab.h (struct objfile): Add opaque declaration.
10041 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10043 From Jim Ingham <jingham@apple.com>:
10044 * dbxread.c (process_one_symbol): Use last_function_start rather
10045 than function_start_offset to find the real beginning of the
10046 current function. The latter is just the text section offset on
10047 some systems, the former is always the real function start.
10049 2003-02-17 Andrew Cagney <cagney@redhat.com>
10051 * configure.in: Revert ${target} != ${host}.
10053 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10055 * configure.in (Makefile): Use the test ${target} != ${host},
10056 instead of the absence of the "nm.h" file, to determine of the
10057 configuration non-native.
10058 * configure: Regenerate.
10060 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10062 From Brian Ford <ford@vss.fsi.com>
10064 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10065 conditionalize tui_active test.
10066 (lookup_cmd_1): Ditto.
10068 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10070 * configure.in: Add check for _etext.
10071 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10073 * config.in, configure: regenerated.
10075 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10077 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10079 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10081 * main.c (tui_version): Delete variable.
10082 (captured_main): When --tui, set interpreter_p to "tui" instead of
10083 enabling tui_version.
10084 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10086 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10087 * cli/cli-cmds.c (disassemble_command): Ditto.
10088 * defs.h (tui_version): Delete declaration.
10089 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10090 (tui-interp.o): Add rules.
10091 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10093 2003-02-14 Christopher Faylor <cgf@redhat.com>
10095 * win32-nat.c (register_loaded_dll): Correctly set address range for
10098 2003-02-12 Jason Molenda (jmolenda@apple.com)
10100 * symmisc.c (print_objfile_statistics): Include information about
10101 the number of psymtabs and symtabs in each object file.
10103 2003-02-13 Keith R Seitz <keiths@redhat.com>
10105 * main.h (struct captured_main_args): Add interpreter_p.
10106 * main.c (captured_main): Initialize interpreter_p from context.
10107 * gdb.c (main): Set interpreter_p argument.
10108 * Makefile.in (gdb.o): Add dependency for interps.h.
10110 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10112 * event-top.c (cli_command_loop): Delete declaration.
10113 (_initialize_event_loop): Delete function setting event_loop_hook.
10114 * event-top.h (cli_command_loop): Declare. Update copyright.
10115 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10116 * interps.c (current_interp_command_loop): When event_loop_p, call
10119 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10121 * interps.h (interp_command_loop_ftype): Change return type to
10124 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10126 * x86-64-tdep.c (x86_64_extract_return_value)
10127 (x86_64_store_return_value): Use regcache instead of regbuf.
10128 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10129 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10131 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10133 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10134 * aclocal.m4: Regenerate.
10135 * configure: Regenerate.
10137 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10138 TCL_LD_SEARCH_FLAGS.
10140 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10142 * dwarf2cfi.c: Reindented.
10144 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10146 * interps.c (clear_interpreter_hooks): Convert function definition
10149 2003-02-07 David Carlton <carlton@math.stanford.edu>
10151 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10153 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10155 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10156 (struct type): ...to here.
10157 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10159 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10160 (replace_type): Set length on all type variants for a given type.
10162 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10164 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10166 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10168 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10170 * Makefile.in (symm-nat.o): Update dependencies.
10171 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10172 (lynx-nat.o, ia64-linux-nat.): Ditto.
10173 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10174 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10175 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10177 * Makefile.in (inflow_h): Define.
10178 (procfs.o, inflow.o, procfs.o): Update dependencies.
10179 * inftarg.c (child_stop): Delete extern declaration of
10180 inferior_process_group. Include "inflow.h".
10181 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10182 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10183 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10184 (our_process_group, inferior_process_group): Extern declarations.
10186 * procfs.c: Include "gdb_assert.h".
10188 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10189 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10190 * jv-typeprint.c (java_type_print_base): Ditto.
10191 * typeprint.c (typedef_print): Eliminate STREQ.
10192 * cli/cli-script.c (define_command, define_command): Ditto.
10193 * main.c (captured_main): Ditto.
10194 * values.c (lookup_internalvar): Ditto.
10195 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10196 within `if' conditional.
10197 * linespec.c (decode_line_2): Ditto.
10198 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10199 (bfd_openw_with_cleanup): Ditto.
10201 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10203 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10204 legacy_extract_return_value and store_return_value to
10205 legacy_return_value.
10207 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10209 * win32-nat.c (get_relocated_section_addrs): New function. Find
10210 section load addresses for symbol handling in relocated DLLs.
10211 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10213 2003-02-05 Fred Fish <fnf@intrinsity.com>
10215 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10217 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10219 (angel_RDI_info): Ditto.
10220 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10222 (threads_continue_all_with_signals): Ditto.
10224 2003-02-05 Jim Ingham <jingham@apple.com>
10225 Keith Seitz <keiths@redhat.com>
10226 Elena Zannoni <ezannoni@redhat.com>
10227 Andrew Cagney <ac131313@redhat.com>
10229 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10230 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10231 (SUBDIR_MI_OBS): Add "mi-interp.o".
10232 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10233 (SFILES): Add "interps.c".
10234 (COMMON_OBS): Add "interps.o".
10235 (interps_h, mi_main_h): Define.
10236 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10237 (mi-main.o, main.o, event-top.o): Update dependencies.
10238 * cli/cli-interp.c: New file.
10239 * interps.h, interps.c: New files.
10240 * top.c: (gdb_init): Don't install the default interpreter, handed
10242 * main.c: Include "interps.h".
10243 (interpreter_p): Note that it should malloc'ed.
10244 (captured_command_loop): Call current_interp_command_loop.
10245 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10246 xfree and xstrdup when updating interpreter_p. Install the
10247 default interpreter. Add hack to stop mi1's copyright notice
10249 * event-top.h (gdb_setup_readline): Declare.
10250 (gdb_disable_readline): Declare.
10251 * event-top.c: Include "interps.h".
10252 (display_gdb_prompt): Call current_interp_display_prompt_p.
10253 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10254 gdb_stdlog, and gdb_stdtarg.
10255 (_initialize_event_loop): Don't call gdb_setup_readline.
10256 * cli-out.c (cli_out_set_stream): New function.
10257 * cli-out.h (cli_out_set_stream): Declare.
10259 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10261 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10262 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10263 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10264 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10265 config/i386/i386v42mp.mt: Removed.
10267 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10269 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10272 2003-02-05 Michael Chastain <mec@shout.net>
10274 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10275 2.12.1 and earlier versions.
10277 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10279 Remove orphaned hosts, targets and files.
10280 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10281 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10282 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10283 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10284 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10285 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10286 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10287 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10288 * config/sparc/tm-sp64sim.h: Delete.
10289 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10291 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10292 mips*-dec-mach3* targets.
10294 2003-02-04 Michael Chastain <mec@shout.net>
10296 * NEWS: Fix typo: sepcifying -> specifying.
10298 2003-02-04 Michael Chastain <mec@shout.net>
10300 * dwarfread.c: Add documentation on the state of dwarf-1,
10301 looking towards obsoletion.
10303 2003-02-03 Michael Chastain <mec@shout.net>
10305 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10306 gdb/testsuite/gdb.c++/pr-1023.exp.
10308 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10310 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10311 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10313 * utils.c (init_page_info): Delete reference to MPW in comments.
10314 * main.c (captured_main): Delete #ifdef MPW.
10316 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10318 * NEWS: Note that the m32r-*-elf* is obsolete.
10319 * monitor.c (monitor_expect): Obsolete reference to m32r.
10320 * configure.tgt: Mark m32r-*-elf* as obsolete.
10321 * MAINTAINERS: Mark m32k as obsolete.
10322 * m32r-rom.c: Obsolete file.
10323 * config/m32r/m32r.mt: Obsolete file.
10324 * config/m32r/tm-m32r.h: Obsolete file.
10325 * m32r-stub.c: Obsolete file.
10326 * m32r-tdep.c: Obsolete file.
10328 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10330 * NEWS: Mention that the z8k-zilog-none is obsolete.
10331 * MAINTAINERS: Mark z8k as obsolete.
10332 * configure.tgt: Obsolete the z8k-*-coff* target.
10333 * config/z8k/z8k.mt: Obsolete file.
10334 * config/z8k/tm-z8k.h: Obsolete file.
10335 * z8k-tdep.c: Obsolete file.
10337 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10339 * NEWS: Mention that the mn10200-elf is obsolete.
10340 * configure.tgt: Obsolete mn10200-*-* target.
10341 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10342 mention that the mn10200 is obsolete.
10343 * breakpoint.h: Ditto.
10344 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10345 * config/mn10200/mn10200.mt: Obsolete file.
10346 * config/mn10200/tm-mn10200.h: Obsolete file.
10347 * mn10200-tdep.c: Obsolete file.
10349 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10351 * MAINTAINERS: Mark h8500 as obsolete.
10352 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10353 * findvar.c (value_from_register): Ditto.
10354 * h8500-tdep.c: Mark file as obsolete.
10355 * config/h8500/h8500.mt: Ditto.
10356 * config/h8500/tm-h8500.h: Ditto.
10357 * NEWS: Mention that h8500 is obsolete.
10359 2003-02-04 David Carlton <carlton@math.stanford.edu>
10361 * objfiles.c (allocate_objfile): Always set name. Add comment at
10363 * jv-lang.c (get_dynamics_objfile): Add comment.
10365 2003-02-04 David Carlton <carlton@math.stanford.edu>
10367 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10368 * printcmd.c (build_address_symbolic): Replace uses of
10369 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10370 SYMBOL_NAME, and asm_demangle.
10373 2003-02-04 David Carlton <carlton@math.stanford.edu>
10375 * linespec.c (decode_compound): Extract code into
10377 (lookup_prefix_sym): New function.
10379 2003-02-04 David Carlton <carlton@math.stanford.edu>
10381 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10382 FLOAT_COERCION_BADNESS.
10383 * gdbtypes.c (rank_one_type): Replace all uses of
10384 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10386 2003-02-04 Jim Blandy <jimb@redhat.com>
10388 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10389 section, let dwarf_macinfo_section point to it, not
10392 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10394 Pointed out by Anton Blanchard <anton@samba.org>.
10395 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10396 (ppc_linux_at_sigtramp_return_path): Use it.
10398 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10400 * defs.h (streq): Add prototype.
10401 * utils.c (streq): New function.
10403 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10404 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10405 * mdebugread.c (new_symbol): Likewise.
10406 * stabsread.c (define_symbol): Likewise.
10407 * coffread.c (process_coff_symbol): Likewise.
10408 * dwarfread.c (new_symbol): Likewise.
10410 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10411 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10413 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10414 SYMBOL_INIT_DEMANGLED_NAME.
10415 * objfiles.c: Include "hashtab.h".
10416 (allocate_objfile): Call htab_set_functions_ex for the
10417 demangled_names_hash.
10418 (free_objfile): Call htab_delete for the demangled_names_hash.
10419 * objfiles.h (struct htab): Add declaration.
10420 (struct objfile): Add demangled_names_hash.
10421 * symfile.c: Include "hashtab.h".
10422 (reread_symbols): Call htab_delete for the demangled_names_hash.
10423 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10424 SYMBOL_NAME in the bcache.
10425 * symtab.c: Include "hashtab.h". Update comments.
10426 (create_demangled_names_hash, symbol_set_names): New functions.
10427 (symbol_find_demangled_name): New function, broken out from
10428 symbol_init_demangled_names.
10429 (symbol_init_demangled_names): Use it.
10430 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10431 (SYMBOL_SET_NAMES): New macro.
10432 (symbol_set_names): Add prototype.
10434 2003-02-03 Jim Blandy <jimb@redhat.com>
10436 Use a single, consistent representation for an empty minimal
10437 symbol table in an objfile.
10438 * objfiles.c (terminate_minimal_symbol_table): New function.
10439 (allocate_objfile): Call it.
10440 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10441 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10443 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10444 objfile has minimal symbols, compare minimal_symbol_count to zero,
10445 instead of comparing msymbols with NULL.
10446 * objfiles.c (have_minimal_symbols): Same.
10447 * solib-sunos.c (solib_add_common_symbols): Call
10448 terminate_minimal_symbol_table.
10449 * symfile.c (reread_symbols): Same.
10451 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10453 * s390-tdep.c (s390_address_class_type_flags)
10454 (s390_address_class_type_flags_to_name)
10455 (s390_address_class_name_to_type_flags): New functions.
10456 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10457 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10459 2003-02-03 Michael Snyder <msnyder@redhat.com>
10461 * arm-tdep.c: Fix spell-o in comment.
10463 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10465 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10466 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10467 error messages to contain BFD filename.
10469 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10471 Fix PR gdb/742 gdb/743 gdb/877
10472 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10473 (do_mixed_source_and_assembly): Use
10474 make_cleanup_ui_out_tuple_begin_end and
10475 make_cleanup_ui_out_tuple_begin_end.
10476 (do_mixed_source_and_assembly): Ditto.
10477 * thread.c (do_captured_list_thread_ids): Ditto.
10478 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10479 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10480 ui_out_tuple_end): Delete prototypes.
10481 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10482 ui_out_list_end, ui_out_tuple_end): Delete.
10484 From Kevin Buettner <kevinb@redhat.com>:
10485 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10486 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10487 (do_cleanup_table_end): New functions.
10488 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10489 Use cleanups to invoke_ui_out_tuple_end().
10490 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10491 * cli/cli-setshow.c (cmd_show_list): Use
10492 make_cleanup_ui_out_tuple_begin_end.
10494 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10496 * frame.c (frame_unwind_register): New function.
10497 (frame_unwind_unsigned_register): Use.
10498 (frame_unwind_signed_register): Use.
10499 (frame_read_register): New function.
10500 * frame.h (frame_unwind_register): Declare.
10501 (frame_read_register): Declare.
10503 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10504 and frame_unwind_register instead of read_memory, write_register
10505 and deprecated_write_register_bytes.
10507 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10509 * frame.h: Note that namelen can be negative.
10510 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10513 * NEWS: Mention that the d10v's `regs' command is deprecated.
10514 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10515 (d10v_print_registers_info): New function.
10516 (show_regs): Call d10v_print_registers_info.
10517 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10519 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10521 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10522 lost in the previous patch.
10524 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10526 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10527 * stack.c (print_frame_info_base): Output complete FRAME tuple
10528 for synthesized frames.
10530 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10532 * mips-nat.c (zerobuf): Delete.
10533 (fetch_inferior_registers): Alloc local zerobuf.
10534 (fetch_core_registers): Alloc local zerobuf.
10535 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10536 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10537 * thread-db.c (thread_db_store_registers): Ditto.
10538 * sh-tdep.c (sh_do_register): Ditto.
10539 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10540 * remote-sim.c (gdbsim_store_register): Ditto.
10541 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10542 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10543 * monitor.c (monitor_supply_register): Ditto.
10544 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10545 * mips-nat.c (fetch_inferior_registers): Ditto.
10546 * m68klinux-nat.c (fetch_register): Ditto.
10547 * lynx-nat.c (fetch_inferior_registers): Ditto.
10548 (fetch_inferior_registers): Ditto.
10549 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10550 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10551 (hpux_thread_store_registers): Ditto.
10552 * hppah-nat.c (fetch_register): Ditto.
10553 * hppab-nat.c (fetch_register): Ditto.
10554 * hppa-tdep.c (pa_register_look_aside): Ditto.
10555 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10556 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10558 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10560 * gdbarch.sh: Explictly specify all method levels. When a
10561 variable with an empty level, provide a non-multi-arch default.
10562 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10563 * gdbarch.h: Re-generate.
10564 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10565 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10567 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10569 * defs.h (host_pointer_to_address): Delete declaration.
10570 (address_to_host_pointer): Delete declaration.
10571 * utils.c (host_pointer_to_address): Delete function.
10572 (address_to_host_pointer): Delete function.
10573 * procfs.c (procfs_address_to_host_pointer): New function.
10574 * procfs.c (proc_set_watchpoint): Use.
10575 (procfs_can_use_hw_breakpoint): Update comments.
10576 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10577 (som_solib_add): Use.
10578 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10579 * hppa-tdep.c (unwind_command): Use.
10581 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10583 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10586 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10587 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10588 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10589 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10590 (define_symbol): Update.
10591 * symfile.c (generic_load): Remove references to nindy.
10592 * symtab.c: Remove references to nindy.
10594 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10596 * infcmd.c (print_float_info): Delete code conditional on
10598 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10599 * config/m68k/nm-apollo68b.h: Ditto.
10600 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10601 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10602 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10604 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10606 * config/i386/tm-i386os9k.h: Removed.
10608 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10609 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10610 they're identical to i[3456]86-*-sysv* now.
10611 * config/i386/i386v32.mh: Removed.
10612 * config/i386/xm-i386v32.h: Removed.
10613 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10615 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10617 * config/i386/i386dgux.mh: Removed.
10618 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10620 * configure.in: Fix typo.
10621 * configure: Regenerated.
10623 2003-01-31 David Carlton <carlton@math.stanford.edu>
10625 * dwarf2read.c (dwarf2_locate_sections): Set
10626 dwarf_ranges_section.
10628 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10630 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10631 * utils.c: Update comments documenting legitimate uses of PTR.
10633 * utils.c: Re-indent.
10635 * config/djgpp/fnchange.lst: Delete nindy files.
10636 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10637 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10638 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10639 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10640 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10641 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10642 * Makefile.in (init.c): Remove nindy references.
10643 (saber_gdb): Delete rule.
10644 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10645 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10647 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10648 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10649 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10650 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10651 nindy-share/stop.h.
10652 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10653 * saber.suppress: Delete file.
10655 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10657 * dbxread.c (stabs_data): New static variable.
10658 (fill_symbuf): Support an in-memory buffer for stabs data.
10659 (stabs_seek): New function.
10660 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10661 (read_ofile_symtab): Use stabs_seek.
10662 (elfstab_build_psymtabs): Take an asection* instead of
10663 an offset and size. Relocate the stabs data if necessary.
10664 Save the section* for dbx_psymtab_to_symtab.
10665 * dwarf2read.c: Add section variables for each debug section.
10666 (dwarf2_locate_sections): Fill them in.
10667 (dwarf2_read_section): Take an asection* argument.
10668 Relocate the section contents if necessary.
10669 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10670 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10671 it to dwarf2_read_section.
10672 (dwarf2_build_frame_info): Update callers.
10673 * elfread.c (elf_symfile_read): Update call to
10674 elfstab_build_psymtabs.
10675 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10676 (DBX_STAB_SECTION): New macro.
10677 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10678 * symfile.c (symfile_dummy_outputs): New function.
10679 (symfile_relocate_debug_section): New function.
10680 * symfile.h (symfile_relocate_debug_section): Add prototype.
10682 2003-01-31 Richard Henderson <rth@redhat.com>
10684 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10685 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10686 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10687 * alpha-tdep.c (alpha_register_name): Add "unique".
10688 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10689 (ALPHA_UNIQUE_REGNUM): New.
10690 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10692 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10694 * README: Remove reference to Ericsson 1800 monitor.
10695 * Makefile.in (remote-es.o): Delete rule.
10696 (ALLDEPFILES): Delete remote-es.c.
10697 * remote-es.c: Delete file.
10698 * config/m68k/es1800.mt: Delete file.
10699 * config/djgpp/fnchange.lst: Update.
10700 * configure.tgt: Delete m68*-ericsson-* target.
10702 2003-01-31 Adam Fedor <fedor@gnu.org>
10704 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10705 Remove duplicate/shadowing variable of same name.
10707 2003-01-30 Jim Blandy <jimb@redhat.com>
10709 * symfile.c (find_separate_debug_file): Assert that the objfile's
10710 directory name we compute ends with a slash, and then assume that
10711 that's so everywhere we use it.
10713 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10715 * valops.c (value_assign): Flush frame cache after stores to memory
10718 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10720 * Makefile.in (mon960-rom.o): Delete rule.
10721 * mon960-rom.c: Delete file.
10723 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10725 * d10v-tdep.c: Include "frame-unwind.h".
10726 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10728 (next_addr, uses_frame): Delete.
10729 (struct d10v_unwind_cache): Define.
10730 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10731 Use info instead of next_addr and uses_frame globals.
10732 (d10v_frame_init_saved_regs): Delete function.
10733 (d10v_init_extra_frame_info): Delete function.
10734 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10735 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10736 init_frame_pc or frame_saved_pc.
10737 (d10v_pop_frame): Delete function.
10738 (do_d10v_pop_frame): Delete function.
10739 (d10v_frame_chain): Delete function.
10740 (d10v_frame_chain_valid): Delete function.
10741 (d10v_frame_pc_unwind): New function.
10742 (d10v_frame_id_unwind): New function.
10743 (saved_regs_unwinder): New function.
10744 (d10v_frame_register_unwind): New function.
10745 (d10v_frame_pop): New function.
10746 (d10v_frame_unwind): New variable.
10747 (d10v_frame_p): New function.
10748 (d10v_frame_saved_pc): Delete function.
10749 * Makefile.in (d10v-tdep.o): Update dependencies.
10751 2003-01-30 J. Brobecker <brobecker@gnat.com>
10753 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10754 causing some regressions due to a change in the default value
10757 2003-01-29 Richard Henderson <rth@redhat.com>
10758 Elena Zannoni <ezannoni@redhat.com>
10759 Daniel Jacobowitz <drow@mvista.com>
10762 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10764 (RANGES_SECTION): New.
10765 (dwarf_ranges_buffer): New variable.
10766 (struct comp_unit_head): Add member "die".
10767 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10768 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10769 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10770 (dwarf2_locate_sections): Likewise.
10771 (dwarf2_build_psymtabs): Read .debug_ranges.
10772 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10773 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10774 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10775 Look for DW_AT_ranges and return the bounding box.
10777 2003-01-29 Brian Ford <ford@vss.fsi.com>
10779 * win32-nat.c (cygwin_pid): Removed as unused.
10780 (child_attach): Try fall back to Cygwin pid.
10782 2003-01-29 Jim Blandy <jimb@redhat.com>
10784 * objfiles.h (struct objfile): Doc fix.
10786 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10788 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10789 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10790 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10791 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10792 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10793 (FRAME_SAVED_PC): Change to a function with predicate.
10794 * gdbarch.h, gdbarch.c: Re-generate.
10796 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10798 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10800 * complaints.c (complain): Delete function.
10801 * complaints.h (struct deprecated_complaint): Delete definition.
10802 (complain): Delete declaration.
10804 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10806 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10809 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10811 * sentinel-frame.h, sentinel-frame.c: New files.
10812 * Makefile.in (frame.o): Update dependencies.
10813 (SFILES): Add sentinel-frame.c.
10814 (sentinel_frame_h): Define.
10815 (COMMON_OBS): Add sentinel-frame.o.
10816 (sentinel-frame.o): Specify dependencies.
10817 * frame.c: Include "sentinel-frame.h".
10818 (frame_register_unwind): Rewrite assuming that there is always a a
10820 (frame_register, generic_unwind_get_saved_register): Ditto.
10821 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10822 (create_sentinel_frame, unwind_to_current_frame): New functions.
10823 (get_current_frame): Rewrite using create_sentinel_frame and
10824 unwind_to_current_frame. When possible, always create a frame.
10825 (create_new_frame): Set next to the sentinel frame.
10826 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10827 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10828 ID cache when necessary.
10829 (frame_saved_regs_id_unwind): Use frame_relative_level.
10830 (deprecated_generic_get_saved_register): Use frame_relative_level,
10831 get_frame_saved_regs, get_frame_pc, get_frame_base and
10833 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10836 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10838 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10840 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10842 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10843 (maintenance_set_profile_cmd): Use error () instead of warning ().
10845 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10847 * configure.in: Check that -pg works if using --enable-profiling.
10848 Check for monstartup and _mcleanup regardless of --enable-profiling.
10849 * maint.c: Check for monstartup and _mcleanup before using them.
10850 * config.in: Regenerated.
10851 * configure: Regenerated.
10853 2003-01-24 Nick Clifton <nickc@redhat.com>
10855 * Add sh2e support:
10857 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10859 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10860 (sh2e_show_regs): New.
10861 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10862 * config/sh/tm-sh.h: Added sh2e to comments.
10864 2003-01-23 Jim Blandy <jimb@redhat.com>
10866 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10867 symbols found)" message here; we haven't checked for a separate
10868 debug info file yet, so we don't know yet.
10869 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10870 we've looked everywhere. Also, there's no need to print a special
10871 message when we're loading the separate debug info file: the one
10872 symbol_file_add prints is fine.
10874 2003-01-23 Alexander Larsson <alexl@redhat.com>
10875 Jim Blandy <jimb@redhat.com>
10877 Add support for executables whose debug info has been separated
10878 out into a separate file, leaving only a link behind.
10879 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10880 and separate_debug_objfile_backlink.
10881 (put_objfile_before): New declaration.
10882 * symfile.c: #include "filenames.h".
10883 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10884 debug info in a separate file, read that, too. Save the addrs
10885 argument, so we can use it again to read the separated debug info;
10886 syms_from_objfile modifies the table we pass it.
10887 (reread_symbols): After re-reading an objfile, call
10888 reread_separate_symbols to refresh its separate debug info
10889 objfile, if it has one.
10890 (reread_separate_symbols, find_separate_debug_file,
10891 get_debug_link_info, separate_debug_file_exists): New functions.
10892 (debug_file_directory): New global var.
10893 (_initialize_symfile): Initialize debug_file_directory, and
10894 provide the new `set debug-file-directory' command to let the user
10896 * objfiles.c (free_objfile): If this objfile has its debug info in
10897 a separate objfile, free that one too. If this is itself a
10898 separate debug info objfile, clear our parent's backlink.
10899 (put_objfile_before): New function.
10900 * utils.c (gnu_debuglink_crc32): New function.
10901 * defs.h (gnu_debuglink_crc32): New declaration.
10902 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10903 * configure.in: Handle --with-separate-debug-dir config option.
10904 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10905 * acconfig.h (DEBUGDIR): New macro.
10906 * configure, aclocal.m4, config.in: Regenerated.
10908 2003-01-22 Jim Blandy <jimb@redhat.com>
10910 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10911 like the old symbol_file_add, but taking new arguments: you can
10912 now pass in either a `struct section_addr_info' list to say where
10913 each section is loaded, or a `struct section_offsets' table. Pass
10914 these new arguments through to syms_from_objfile as appropriate.
10915 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10916 with the appropriate quiescent values for the new arguments.
10918 * symfile.c: #include "gdb_assert.h".
10919 (syms_from_objfile): Add the ability to pass in a section offset
10920 table directly, as an alternative to the section_addr_info table.
10921 Document arguments better.
10922 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10923 * symfile.h (syms_from_objfile): Update declaration.
10924 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10926 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10928 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10930 Original patch by Tom Tromey <tromey@cygnus.com> and
10931 Jason Molenda <jmolenda@apple.com>.
10932 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10933 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10934 * NEWS: Mention profiling.
10935 * configure.in (--enable-gdbtk): Fix typo.
10936 (--enable-profiling): New. Set PROFILE_CFLAGS.
10937 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10939 (profiling_state): New variable.
10940 (mcleanup_wrapper): New function.
10941 (_initialize_maint): Remove NOTYET, fix call to
10942 add_setshow_boolean_cmd for "maint set profile".
10943 * configure: Regenerated.
10945 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10947 * Makefile.in (install-gdbtk): Install PNG images too.
10949 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10951 * exec.c (text_start): Delete global variable.
10952 (exec_file_attach): Make text_start local to the function.
10953 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10954 * valops.c (hand_function_call): Delete code that handles
10955 BEFORE_TEXT_END and AFTER_TEXT_END.
10956 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10957 of CALL_DUMMY_LOCATION.
10958 * gdbarch.c: Regenerate.
10959 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10960 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10961 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10962 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10963 (text_end): Delete extern declaration.
10965 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10967 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10968 * blockframe.c (backtrace_below_main): Move to "frame.c".
10969 (frame_chain_valid): Delete check for backtrace_below_main.
10970 (_initialize_blockframe): Delete initialization, move ``set
10971 backtrace-below-main'' command to "frame.c".
10972 (do_flush_frames_sfunc): Delete function.
10973 * frame.c: Include "command.h" and "gdbcmd.h".
10974 (frame_type_from_pc): New function.
10975 (create_new_frame): Use frame_type_from_pc.
10976 (legacy_get_prev_frame): New function.
10977 (get_prev_frame): Rewrite. When an old style frame, call
10978 legacy_get_prev_frame. Otherwize, unwind the PC first.
10979 (_initialize_frame): Add ``set backtrace-below-main'' command.
10980 * Makefile.in (frame.o): Update dependencies.
10982 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10984 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10985 DEPRECATED_REGISTERS_INFO.
10987 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10989 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10990 Maintainers'. Update `Various Maintainers'.
10992 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10994 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10995 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10996 Suppress actual parameters when `-'.
10997 * gdbarch.h, gdbarch.c: Regenerate.
10999 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11001 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11002 code handling dummy frames.
11004 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11006 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11007 (struct frame_unwind): Add field pop.
11008 * frame.h (frame_pop): Declare.
11009 * frame.c (frame_saved_regs_pop): New function.
11010 (trad_frame_unwinder): Add frame_saved_regs_pop.
11011 (frame_pop): New function.
11012 * dummy-frame.c (dummy_frame_pop): New function.
11013 (discard_innermost_dummy): New function.
11014 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11015 (dummy_frame_unwind): Add dummy_frame_pop.
11016 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11017 * valops.c (hand_function_call): Ditto.
11018 * stack.c (return_command): Ditto.
11020 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11022 * cris-tdep.c: Fix function declaration indentation.
11023 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11024 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11025 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11026 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11027 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11028 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11030 2003-01-18 Michael Chastain <mec@shout.net>
11032 * README (Unpacking and Installation -- quick overview):
11033 Warn against ".../gdb-5.3/gdb/configure".
11035 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11037 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11038 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11039 (struct frame_unwind): Declare opaque.
11040 (dummy_frame_p): Declare function.
11041 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11042 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11043 * dummy-frame.c: Include "frame-unwind.h".
11044 (dummy_frame_p): New function.
11045 (dummy_frame_unwind): New variable.
11046 * frame.c: Include "frame-unwind.h".
11047 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11048 to use the new unwind field.
11049 (set_unwind_by_pc): Delete function.
11050 (create_new_frame, get_prev_frame): Set unwind field using
11051 frame_unwind_find_by_pc.
11052 (trad_frame_unwind, trad_frame_unwinder): New variables.
11053 * frame.h (trad_frame_unwind): Declare variable.
11054 (frame_id_unwind_ftype): Delete declaration.
11055 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11056 (struct frame_unwind): Declare opaque.
11057 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11058 register_unwind with a single unwind pointer.
11059 * frame-unwind.h, frame-unwind.c: New files.
11060 * Makefile.in (SFILES): Add frame-unwind.c.
11061 (frame_unwind_h): Define.
11062 (COMMON_OBS): Add frame-unwind.o.
11063 (frame-unwind.o): Specify dependencies.
11064 (frame.o, dummy-frame.o): Update dependencies.
11066 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11068 * ada-valprint.c: Eliminate PTR.
11069 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11070 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11071 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11072 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11073 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11074 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11075 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11077 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11079 * main.c (captured_main): Don't use PTR.
11080 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11081 * gdbtypes.c (lookup_primitive_typename): Ditto.
11082 (lookup_struct_elt_type): Ditto.
11083 * f-valprint.c (info_common_command): Ditto.
11084 (list_all_visible_commons): Ditto.
11085 * jv-typeprint.c (java_type_print_base): Ditto.
11087 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11088 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11089 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11090 i386-interix-nat.c and i386-interix-tdep.c. Rename
11091 m68klinux-nat.c and m68klinux-tdep.c. Rename
11092 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11093 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11094 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11095 * main.c (captured_main): Use xfree, not free.
11097 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11099 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11100 ID back using a parameter.
11101 * frame.c (frame_id_unwind): Update call.
11102 (frame_saved_regs_id_unwind): Update.
11103 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11104 * dummy-frame.h (struct frame_id): Add opaque declaration.
11105 (dummy_frame_id_unwind): Update declaration.
11107 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11109 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11111 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11113 * MAINTAINERS (Stephen P. Smith): Updated email address.
11115 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11118 * breakpoint.c (until_break_command): Add new argument. Use it to
11119 decide whether to stop only at the current frame or not.
11120 * breakpoint.h (until_break_command): Update prototype.
11121 * infcmd.c (until_command): Add new argument to until_break_command
11123 (advance_command): New function.
11124 (_initialize_infcmd): Update help string for 'until' command.
11125 Add new 'advance' command.
11127 2003-01-14 David Carlton <carlton@math.stanford.edu>
11129 * linespec.c (decode_line_1): Normalize comments.
11130 (set_flags): Ditto.
11131 (locate_first_half): Ditto.
11132 (decode_compound): Ditto.
11133 (symtab_from_filename): Ditto.
11134 (decode_all_digits): Ditto.
11135 (decode_dollar): Ditto.
11136 (find_methods): Ditto.
11137 (find_toplevel_char): Ditto.
11139 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11141 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11142 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11143 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11144 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11145 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11146 * language.c, language.h, m32r-tdep.c: Update copyright.
11147 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11148 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11149 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11150 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11151 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11152 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11154 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11156 * stabsread.h (process_later, resolve_cfront_continuation):
11158 Update copyright years.
11159 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11160 Update copyright year.
11161 * dbxread.c(struct cont_elem): Obsolete.
11162 (process_later, process_now): Obsolete functions.
11163 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11164 Update copyright year.
11165 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11166 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11167 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11168 (parse_partial_symbols): Obsolete cfront support.
11170 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11172 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11173 read_cfront_baseclasses, read_cfront_member_functions,
11174 resolve_cfront_continuation,read_cfront_static_fields,
11175 copy_cfront_struct_fields): Obsolete functions.
11176 (define_symbol, read_one_struct_field): Obsolete cfront support.
11177 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11178 Update Copyright year.
11180 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11182 * stack.c (print_frame_info, print_stack_frame_base_stub,
11183 print_stack_frame_base, show_and_print_stack_frame_stub,
11184 show_and_print_stack_frame, print_only_stack_frame_stub,
11185 print_only_stack_frame): Delete functions.
11186 (print_stack_frame_stub): Call print_frame_info instead of
11187 print_frame_info_base.
11188 (print_frame_info_base): Rename to print_frame_info.
11189 (backtrace_command_1): Call print_frame_info, instead of
11190 print_frame_info_base.
11191 (current_frame_command): Call print_stack_frame, instead of
11192 print_only_stack_frame.
11193 (frame_command): Call print_stack_frame, instead of
11194 show_and_print_stack_frame.
11195 (up_command): Ditto.
11196 (down_command): Ditto.
11197 * frame.h (print_only_stack_frame): Delete prototype.
11198 * infrun.c (normal_stop): Call print_stack_frame, instead of
11199 show_and_print_stack_frame.
11200 * thread.c (info_threads_command): Call print_stack_frame, instead
11201 of print_only_stack_frame.
11203 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11205 * README (Graphical interface to GDB): Update URL. Point at
11208 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11211 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11213 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11216 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11218 * thread-db.c (attach_thread): Prototype.
11219 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11220 thread information (ti), and valid flags (th_valid, ti_valid).
11221 (attach_thread): Move target_pid_to_str call to after the thread
11222 is added to GDB's list. Initialize the cache.
11223 (thread_get_info_callback, thread_db_map_id2thr)
11224 (thread_db_get_info): New functions.
11225 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11226 (thread_db_store_registers, thread_db_thread_alive)
11227 (thread_db_get_thread_local_address): Use them.
11228 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11229 of calling error() for threads in unknown state.
11231 (clear_lwpid_callback): New function.
11232 (thread_db_resume): Use it to clear the cache.
11234 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11236 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11237 (resume_callback): Remove dead code.
11239 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11241 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11243 * gdbarch.h, gdbarch.c: Regenerate.
11244 * stack.c (frame_info): Only initialize the saved registers when
11245 FRAME_INIT_SAVED_REGS_P.
11246 * frame.c (frame_saved_regs_register_unwind): Assert
11247 FRAME_INIT_SAVED_REGS_P.
11248 (deprecated_generic_get_saved_register): Ditto.
11250 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11252 * source.c (openp): Squelch warning about "filename".
11254 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11256 * source.c (openp): If the file does not exist don't necessarily
11259 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11262 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11263 (integer_types_same_name_p): New function.
11264 (rank_one_type): Use it.
11265 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11267 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11269 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11271 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11272 * configure.in: Add --with-sysroot.
11273 * configure: Regenerated.
11274 * main.c (gdb_sysroot): New variable.
11275 (captured_main): Initialize gdb_sysroot.
11276 * defs.h (gdb_sysroot): New extern declaration.
11277 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11279 2003-01-12 Michael Chastain <mec@shout.net>
11281 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11283 2003-01-12 Michael Chastain <mec@shout.net>
11285 * top.c (print_gdb_version): Bump copyright year to 2003.
11287 2003-01-12 David Carlton <carlton@bactrian.org>
11289 * linespec.c (symtab_from_filename): Rename variable 's' to
11292 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11294 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11296 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11298 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11300 * d10v-tdep.c: Include "gdb_assert.h".
11301 (d10v_store_return_value): Rewrite to match current interface.
11302 (d10v_extract_struct_value_address): Ditto.
11303 (d10v_extract_return_value): Ditto.
11304 (d10v_gdbarch_init): Set store_restore_value,
11305 extract_struct_value_address and extract_return_value.
11307 2003-01-12 J. Brobecker <brobecker@gnat.com>
11309 * hpread.c (set_namestring): New procedure replacing the
11310 SET_NAMESTRING macro.
11311 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11312 by calls to set_namestring.
11314 2003-01-11 J. Brobecker <brobecker@gnat.com>
11316 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11317 a compilation warning.
11318 (hpread_process_one_debug_symbol): Likewise.
11320 2003-01-10 David Carlton <carlton@math.stanford.edu>
11322 * linespec.c (decode_line_1): Rename variable 's' to
11324 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11325 (decode_dollar): Ditto.
11326 (decode_variable): Ditto.
11327 (symbol_found): Ditto.
11329 2003-01-09 Michael Chastain <mec@shout.net>
11331 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11333 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11335 * win32-nat.c (set_process_privilege): New function.
11336 (child_attach): Call set_process_privilege() to enable the
11337 SE_DEBUG_NAME user privilege if available in process token.
11339 2003-01-10 J. Brobecker <brobecker@gnat.com>
11341 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11342 compilation error in the previous revision.
11344 2003-01-09 David Carlton <carlton@math.stanford.edu>
11346 * linespec.c: Update copyright.
11348 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11350 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11351 than inferior_ptid.
11352 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11354 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11356 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11358 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11359 (frame_saved_regs_zalloc): Update.
11360 (frame_saved_regs_register_unwind): Update.
11361 (create_new_frame): Update.
11362 (get_prev_frame): Update.
11363 (frame_extra_info_zalloc): Update.
11364 (deprecated_get_frame_saved_regs): Update.
11365 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11366 * cris-tdep.c: Update comment.
11368 * somsolib.h: Fix function indentation.
11369 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11370 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11371 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11372 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11373 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11375 * infrun.c (follow_fork): Use ISO C definition.
11376 * expprint.c (print_subexp): Use xfree instead of free.
11377 * charset.c: Include "gdb_string.h" instead of <string.h>.
11378 (register_iconv_charsets): Use ISO C definition.
11379 (host_charset, target_charset): Ditto.
11380 * Makefile.in (charset.o): Update dependencies.
11381 (mi-cmd-env.o): Update dependencies.
11383 2003-01-08 Andrew Cagney <cagney@redhat.com>
11385 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11388 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11390 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11391 build directories. Save edited gdb output in Mbuild.log. If a
11392 build fails, remove any final GDB executable.
11394 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11396 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11397 replacing hex constants with function names and stripping leading
11398 file name directory prefixes.
11400 2003-01-08 Andrew Cagney <cagney@redhat.com>
11402 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11405 2003-01-08 David Carlton <carlton@math.stanford.edu>
11407 * linespec.c (decode_line_1): Move code into decode_variable.
11408 (decode_variable): New function.
11410 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11412 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11414 2003-01-08 Andrew Cagney <cagney@redhat.com>
11416 * cris-tdep.c (cris_frame_init_saved_regs): Use
11417 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11419 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11420 (sh64_nofp_frame_init_saved_regs): Ditto.
11421 (sh_fp_frame_init_saved_regs): Ditto.
11422 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11423 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11424 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11425 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11427 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11429 * minsyms.c (lookup_minimal_symbol): Update comment.
11430 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11431 (lookup_minimal_symbol_solib_trampoline): Likewise.
11433 2003-01-08 Andrew Cagney <cagney@redhat.com>
11435 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11436 frame_relative_level.
11438 * alpha-tdep.c: Use get_frame_extra_info.
11439 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11440 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11441 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11442 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11444 * alpha-tdep.c: Use get_next_frame.
11445 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11446 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11447 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11448 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11449 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11450 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11451 * xstormy16-tdep.c: Ditto.
11453 2003-01-07 Andrew Cagney <cagney@redhat.com>
11455 * alpha-tdep.c: Use get_frame_base.
11456 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11457 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11458 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11459 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11460 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11461 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11462 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11463 * config/sparc/tm-sparc.h: Ditto.
11465 2003-01-07 Andrew Cagney <cagney@redhat.com>
11467 * frame.c (deprecated_get_frame_context): New function.
11468 (deprecated_set_frame_context): New function.
11469 * frame.h (deprecated_get_frame_context): Declare.
11470 (deprecated_set_frame_context): Declare.
11471 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11472 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11474 2003-01-07 Andrew Cagney <cagney@redhat.com>
11476 * frame.c (deprecated_set_frame_next_hack): New function.
11477 (deprecated_set_frame_prev_hack): New function.
11478 * frame.h (deprecated_set_frame_next_hack): Declare.
11479 (deprecated_set_frame_prev_hack): Declare.
11480 * mcore-tdep.c (analyze_dummy_frame): Use
11481 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11482 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11484 2003-01-07 David Carlton <carlton@math.stanford.edu>
11486 * linespec.c (decode_line_1): Move code into decode_dollar.
11487 (decode_dollar): New function.
11489 2003-01-07 Andrew Cagney <cagney@redhat.com>
11491 * arm-tdep.c (arm_init_extra_frame_info): Use
11492 deprecated_update_frame_base_hack.
11493 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11494 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11495 (fix_frame_pointer): Ditto.
11496 (mn10300_analyze_prologue): Ditto.
11498 2003-01-07 Andrew Cagney <cagney@redhat.com>
11500 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11501 extra_info using frame_extra_info_zalloc.
11502 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11503 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11504 (sh64_init_extra_frame_info): Ditto.
11505 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11506 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11507 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11508 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11509 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11510 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11511 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11512 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11513 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11514 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11515 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11516 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11518 * mn10300-tdep.c (analyze_dummy_frame): Use
11519 deprecated_set_frame_extra_info_hack.
11520 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11522 2003-01-07 J. Brobecker <brobecker@gnat.com>
11524 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11525 class is not scText. These do not define "real" procedures.
11526 (parse_partial_symbols): Likewise.
11528 2003-01-06 Michael Snyder <msnyder@redhat.com>
11530 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11532 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11534 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11535 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11536 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11537 deprecated_frame_xmalloc_with_cleanup.
11538 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11539 deprecated_frame_xmalloc.
11540 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11541 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11543 2003-01-06 Andrew Cagney <cagney@redhat.com>
11545 * x86-64-linux-tdep.c: Include "osabi.h".
11546 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11548 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11550 2003-01-06 Andrew Cagney <cagney@redhat.com>
11552 * MAINTAINERS (Target Instruction Set Architectures): Update
11553 arm-elf. Can be built with -Werror, has been multiarched.
11555 * value.h (unpack_long): Make buffer parameter constant.
11556 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11557 * scm-lang.h (scm_parse): Ditto.
11558 * defs.h (extract_typed_address, extract_address): Ditto.
11559 (extract_long_unsigned_integer): Ditto.
11560 * inferior.h (unsigned_pointer_to_address): Ditto.
11561 (signed_pointer_to_address): Ditto.
11562 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11563 * gdbarch.h, gdbarch.c: Regenerate.
11564 * findvar.c (extract_long_unsigned_integer): Update.
11565 (extract_address): Update.
11566 (extract_typed_address): Update.
11567 (unsigned_pointer_to_address): Update.
11568 * values.c (unpack_long): Update.
11569 (unpack_double): Update.
11570 (unpack_pointer): Update.
11571 (unpack_field_as_long): Update.
11572 * d10v-tdep.c (d10v_pointer_to_address): Update.
11573 * avr-tdep.c (avr_pointer_to_address): Update.
11574 * scm-lang.c (scm_unpack): Update.
11575 * findvar.c (signed_pointer_to_address): Update.
11577 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11579 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11580 since it is in i386-tdep.c.
11582 2003-01-06 J. Brobecker <brobecker@gnat.com>
11584 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11585 failure introduced in the previous change.
11587 2003-01-05 Michael Chastain <mec@shout.net>
11589 * README: Remove references to deleted remote-*.c files:
11590 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11591 remote-nrom.c, remote-os9k.c, remote-udi.c.
11593 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11595 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11596 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11597 i386_get_longjmp_target.
11599 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11601 * arm-tdep.c (prologue_cache): Change to a pointer.
11602 (_initialize_arm_tdep): Allocate prologue_cache.
11603 (check_prologue_cache): Update.
11604 (save_prologue_cache): Update.
11605 (arm_gdbarch_init): Update.
11607 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11609 * stabsread.c (update_method_name_from_physname): Call complaint()
11612 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11614 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11615 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11616 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11618 * blockframe.c: Include "gdbcmd.h" and "command.h".
11619 (backtrace_below_main): New variable.
11620 (file_frame_chain_valid, func_frame_chain_valid)
11621 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11622 (generic_func_frame_chain_valid): Remove functions.
11623 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11624 (_initialize_blockframe): New function.
11625 * Makefile.in (blockframe.o): Update dependencies.
11626 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11627 comment. Call frame_chain_valid ().
11628 * frame.h: Remove old prototypes. Add prototype for
11629 frame_chain_valid and update comments to match.
11630 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11631 Remove old comment.
11632 * gdbarch.h: Regenerated.
11633 * gdbarch.c: Regenerated.
11635 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11636 set_gdbarch_frame_chain_valid.
11637 * avr-tdep.c (avr_gdbarch_init): Likewise.
11638 * cris-tdep.c (cris_gdbarch_init): Likewise.
11639 * frv-tdep.c (frv_gdbarch_init): Likewise.
11640 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11641 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11642 (i386_nw_init_abi): Likewise.
11643 (i386_gdbarch_init): Likewise.
11644 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11645 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11646 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11647 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11648 * mips-tdep.c (mips_gdbarch_init): Likewise.
11649 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11650 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11651 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11652 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11653 * s390-tdep.c (s390_gdbarch_init): Likewise.
11654 * sh-tdep.c (sh_gdbarch_init): Likewise.
11655 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11656 * v850-tdep.c (v850_gdbarch_init): Likewise.
11657 * vax-tdep.c (vax_gdbarch_init): Likewise.
11658 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11660 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11661 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11662 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11663 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11664 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11665 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11666 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11667 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11669 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11671 * Makefile.in (acconfig_h): Remove incorrect macro.
11672 (config_h): Define.
11673 (osabi.o): Update dependencies.
11674 * configure.tgt: Set gdb_osabi based on target triplet.
11675 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11676 * configure: Regenerated.
11677 * config.in: Regenerated.
11678 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11679 (GDB_OSABI_DEFAULT): Define if not already defined.
11680 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11681 (set_osabi_string): New variables.
11682 (gdbarch_register_osabi): Add new OS ABI to
11683 gdb_osabi_available_names.
11684 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11685 (set_osabi, show_osabi): New functions.
11686 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11688 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11690 * arch-utils.c (gdbarch_info_init): Set osabi to
11691 GDB_OSABI_UNINITIALIZED.
11692 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11693 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11694 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11695 * gdbarch.c: Regenerated.
11696 * gdbarch.h: Regenerated.
11697 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11699 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11700 * osabi.h (enum gdb_osabi): Move to defs.h.
11701 (gdbarch_init_osabi): Update prototype.
11702 * defs.h (enum gdb_osabi): Moved here.
11703 * Makefile.in: Update dependencies.
11705 * alpha-tdep.h: Don't include "osabi.h".
11706 (struct gdbarch_tdep): Remove osabi member.
11707 * alpha-tdep.c: Include "osabi.h".
11708 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11709 iterate over arches. Update call to gdbarch_init_osabi.
11710 (alpha_dump_tdep): Don't dump osabi.
11711 * alpha-linux-tdep.c: Include "osabi.h".
11712 * alpha-osf1-tdep.c: Include "osabi.h".
11713 * alphafbsd-tdep.c: Include "osabi.h".
11714 * alphanbsd-tdep.c: Include "osabi.h".
11716 * arm-tdep.h: Don't include "osabi.h".
11717 (struct gdbarch_tdep): Remove osabi member.
11718 * arm-tdep.c: Include "osabi.h".
11719 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11720 iterate over arches. Update call to gdbarch_init_osabi.
11721 (arm_dump_tdep): Don't dump osabi.
11722 * arm-linux-tdep.c: Include "osabi.h".
11723 * armnbsd-tdep.c: Include "osabi.h".
11725 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11726 Update call to gdbarch_init_osabi.
11728 * i386-tdep.h: Don't include "osabi.h".
11729 (struct gdbarch_tdep): Remove osabi member.
11730 * i386-tdep.c: Include "osabi.h".
11731 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11732 iterate over arches. Update call to gdbarch_init_osabi.
11733 (i386_dump_tdep): Don't dump osabi.
11734 * i386-linux-tdep.c: Include "osabi.h".
11735 * i386-sol2-tdep.c: Include "osabi.h".
11736 * i386bsd-tdep.c: Include "osabi.h".
11737 * i386gnu-tdep.c: Include "osabi.h".
11738 * i386ly-tdep.c: Include "osabi.h".
11739 * i386nbsd-tdep.c: Include "osabi.h".
11740 * i386obsd-tdep.c: Include "osabi.h".
11742 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11743 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11744 check osabi when iterating over arches. Update call to
11745 gdbarch_init_osabi.
11746 (mips_dump_tdep): Don't dump osabi.
11748 * ns32k-tdep.h: Don't include "osabi.h".
11749 (struct gdbarch_tdep): Remove.
11750 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11751 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11752 allocate tdep. Update call to gdbarch_init_osabi.
11753 (ns32k_dump_tdep): Remove.
11754 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11755 * ns32knbsd-tdep.c: Include "osabi.h".
11757 * ppc-tdep.h: Don't include "osabi.h".
11758 (struct gdbarch_tdep): Remove osabi member.
11759 * rs6000-tdep.c: Include "osabi.h".
11760 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11761 osabi when iterating over arches. Update call to
11762 gdbarch_init_osabi.
11763 (rs6000_dump_tdep): Don't dump osabi.
11764 * ppc-linux-tdep.c: Include "osabi.h".
11765 * ppcnbsd-tdep.c: Include "osabi.h".
11767 * sh-tdep.h: Don't include "osabi.h".
11768 (struct gdbarch_tdep): Remove osabi member.
11769 * sh-tdep.c: Include "osabi.h".
11770 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11771 iterate over arches. Update call to gdbarch_init_osabi.
11772 (sh_dump_tdep): Don't dump osabi.
11773 * shnbsd-tdep.c: Include "osabi.h".
11775 * sparc-tdep.c: Include "osabi.h".
11776 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11777 iterate over arches. Update call to gdbarch_init_osabi.
11778 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11781 * vax-tdep.h: Don't include "osabi.h".
11782 (struct gdbarch_tdep): Remove.
11783 * vax-tdep.c: Include "osabi.h".
11784 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11785 iterate over arches. Don't allocate tdep. Update call
11786 to gdbarch_init_osabi.
11787 (vax_dump_tdep): Remove.
11788 (_initialize_vax_tdep): Update call to gdbarch_register.
11790 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11792 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11794 (breakpoint_re_set_one): Don't fetch the value for a disabled
11797 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11799 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11800 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11801 (COERCE_FLOAT_TO_DOUBLE): Remove.
11802 * gdbarch.c: Regenerate.
11803 * gdbarch.h: Regenerate.
11804 * Makefile.in: Remove value_h from gdbarch_h.
11805 * valops.c (coerce_float_to_double): New variable.
11806 (default_coerce_float_to_double): Remove.
11807 (standard_coerce_float_to_double): Remove.
11808 (value_arg_coerce): Use coerce_float_to_double.
11809 (_initialize_valops): Add "set coerce-float-to-double".
11810 * value.h (default_coerce_float_to_double): Remove prototype.
11811 (standard_coerce_float_to_double): Remove prototype.
11813 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11815 * mdebugread.c (parse_symbol): Likewise.
11816 * stabsread.c (define_symbol): Mark all functions as prototyped.
11818 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11819 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11820 set_gdbarch_coerce_float_to_double.
11821 * arm-tdep.c (arm_gdbarch_init): Likewise.
11822 * frv-tdep.c (frv_gdbarch_init): Likewise.
11823 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11824 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11825 * mips-tdep.c (mips_gdbarch_init): Likewise.
11826 (mips_coerce_float_to_double): Remove.
11827 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11828 (rs6000_coerce_float_to_double): Remove.
11829 * s390-tdep.c (s390_gdbarch_init): Likewise.
11830 * sh-tdep.c (sh_gdbarch_init): Likewise.
11831 (sh_coerce_float_to_double): Remove.
11832 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11833 (sparc_coerce_float_to_double): Remove.
11834 * v850-tdep.c (v850_gdbarch_init): Likewise.
11835 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11836 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11837 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11838 (hppa_coerce_float_to_double): Remove prototype.
11839 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11841 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11843 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11845 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11847 Suggested by Stewart Brown <sb24@avaya.com>:
11848 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11849 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11850 (c_type_print_varspec_suffix): Likewise.
11852 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11854 * configure.in: Don't set and AC_SUBST SUBDIRS.
11855 * configure: Regenerated.
11857 * configure.in: Remove code dealing with shared libraries.
11858 * Makefile.in: Remove HLDFLAGS and HLDENV.
11859 * configure: Regenerated.
11861 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11863 * frame.c (deprecated_frame_xmalloc): New function.
11864 (deprecated_set_frame_saved_regs_hack): New function.
11865 (deprecated_set_frame_extra_info_hack): New function.
11866 * frame.h (deprecated_frame_xmalloc): Declare.
11867 (deprecated_set_frame_saved_regs_hack): Declare.
11868 (deprecated_set_frame_extra_info_hack): Declare.
11870 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11872 * configure.in: Move code that provides the --enable-gdbtk option
11873 right after the code that handles the --enable-tui option, and
11874 polish it somewhat.
11875 * configure: Regenerated.
11877 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11878 AC_CHECK_FUNCS and remove the old check for pread64.
11879 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11880 * acconfig.h (_GNU_SOURCE): Add.
11881 (HAVE_PREAD64): Remove.
11882 * configure, aclocal.m4, config.in: Regenerated.
11884 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11886 * alpha-tdep.c: Use get_frame_saved_regs.
11887 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11888 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11889 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11890 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11891 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11893 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11895 * configure.in: Remove all use of the SUBDIRS variable; add
11896 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11897 code providing the --enable-multi-ice option, and move it right in
11898 front of the code that checks whether gdbserver is supported.
11900 * configure: Regenerated.
11901 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11904 2003-01-03 Andrew Cagney <cagney@redhat.com>
11906 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11907 * avr-tdep.c, cris-tdep.c: Ditto.
11908 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11909 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11911 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11913 * configure.in: Remove --enable-netrom option.
11914 * configure: Regenerated.
11916 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11918 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11919 declaration for `struct re_pattern_buffer' instead.
11920 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11922 2003-01-03 J. Brobecker <brobecker@gnat.com>
11924 * mdebugread.c (parse_symbol): Count until the stEnd matching
11925 the structure name.
11927 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11929 * configure.in: Remove --with-cpu option.
11930 subscripts. Remove evil changequotes here.
11931 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11932 * config.in, configure: Regenerated.
11934 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11935 * configure.in: Cleanup section that sources GDB and BFD configure
11936 subscripts. Remove evil changequotes here.
11937 * config.in, configure: Regenerated.
11939 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11941 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11942 frame accessor methods.
11943 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11944 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11945 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11946 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11947 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11948 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11949 * z8k-tdep.c: Ditto.
11951 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11953 * configure.in: Remove UI_OUT configuration code.
11954 * ada-lang.c: Update assuming UI_OUT is always true.
11955 * Makefile.in (UIOUT_CFLAGS): Remove.
11956 * configure: Regenerated.
11957 * TODO: Remove blurb about elimination of -DUI_OUT.
11959 * configure.in: Move code that provides the --enable-gdbcli,
11960 --enable-gdbmi options right before the code that handles the
11961 --enable-tui option. Polish a bit.
11962 * configure: Regenerated.
11964 * configure.in: Rewrite check for GNU regex and the
11965 --without-included regex option, and move it into the "Checks for
11966 library functions" section. This makes us use the system regex
11967 again by default on systems with version 2 of the GNU C library.
11968 This was apparently broken.
11969 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11970 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11971 * config.in, configure: Regenerated.
11973 * configure.in: Move code that provides the --enable-tui option
11974 before the "Checks for libraries" section. Polish the code
11975 somewhat and set need_curses to yes if we build the TUI. Rewrite
11976 code that looks for a library providing termcap functionality to
11977 match more closely what's done in the Readline library, and move
11978 it into to the "Checks for libraries" section.
11979 * configure: Regenerated.
11980 * Makefile.in (TERMCAP): Remove variable.
11981 * config/i386/go32.mh (TERMCAP): Remove variable.
11983 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11985 * MAINTAINERS: Mention gdb_mbuild.sh.
11986 * gdb_mbuild.sh: Rewrite.
11988 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11990 * configure.in: Fix typo in last change.
11991 * config.in, configure: Regenerated.
11993 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11995 * valarith.c (value_binop): Delete obsolete code and comments.
11996 * configure.host: Ditto.
11997 * buildsym.h (make_blockvector): Ditto.
11998 * buildsym.c (make_blockvector): Ditto.
11999 * defs.h (enum language): Ditto.
12000 (chill_demangle): Ditto.
12001 * elfread.c (elf_symtab_read): Ditto.
12002 * dwarfread.c (CHILL_PRODUCER): Ditto.
12003 (set_cu_language): Ditto.
12004 (handle_producer): Ditto.
12005 * expprint.c (print_subexp): Ditto.
12006 * gdbtypes.c (chill_varying_type): Ditto.
12007 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12008 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12009 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12010 (chill_varying_type): Ditto.
12011 * language.h (_LANG_chill): Ditto.
12012 * language.c (binop_result_type, integral_type): Ditto.
12013 (character_type, string_type, structured_type): Ditto.
12014 (lang_bool_type, binop_type_check): Ditto.
12015 * stabsread.h (os9k_stabs): Ditto.
12016 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12017 (define_symbol, read_type, read_struct_fields): Ditto.
12018 (read_array_type, read_enum_type, read_huge_number): Ditto.
12019 (read_range_type, start_stabs): Ditto.
12020 * symfile.c (init_filename_language_table): Ditto.
12021 (add_psymbol_with_dem_name_to_list): Ditto.
12022 * symtab.c (symbol_init_language_specific): Ditto.
12023 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12024 * symtab.h (struct general_symbol_info): Ditto.
12025 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12026 * typeprint.c (typedef_print): Ditto.
12027 * utils.c (fprintf_symbol_filtered): Ditto.
12028 * valops.c (value_cast, search_struct_field, value_slice): Delete
12030 (varying_to_slice): Delete function.
12031 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12032 (varying_to_slice): Delete declaration.
12033 * MAINTAINERS: Update.
12035 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12037 * configure.in: Reorganize "Checks for library functions section"
12038 a bit. Remove check for `btowc' and `isascii' functions.
12039 * configure: Regenerated.
12041 * acconfig.h (_MSE_INT_H): Remove.
12042 * configure.in: Create "Checks for header files" section, and move
12043 appropriate tests there. Don't check for objlist.h, wchar.h,
12044 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12045 misdetection fix. Also add "Checks for types", "Checks for
12046 compiler characteristics" and "Checks for library functions"
12048 * config.in, configure: Regenerated.
12050 * configure.in: Create "Checks for programs" section, and move
12051 appropriate tests there.
12053 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12055 * configure.in: Create "Checks for libraries" section, and move
12056 appropriate tests there. Cleanup check for wctype in libw. Use
12057 AC_SEARCH_LIBS to see whether we need libsocket.
12058 * configure: Regenerated.
12060 For older changes see ChangeLog-2002
12066 version-control: never