1 2003-09-17 Andrew Cagney <cagney@redhat.com>
3 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
4 * gdbarch.h, gdbarch.c: Regenerate.
5 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
6 * d10v-tdep.c, frame.c: Update.
7 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
8 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
9 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
10 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
11 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
12 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
13 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
14 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
15 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
16 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
17 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
18 * config/pa/nm-hppah.h: Update.
20 2003-09-16 Andrew Cagney <cagney@redhat.com>
22 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
23 "use_struct_convention" to "ppc_linux_use_struct_convention".
24 (ppc_linux_use_struct_convention): New function.
25 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
26 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
27 "rs6000_use_struct_convention".
28 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
30 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
33 2003-09-16 Andrew Cagney <cagney@redhat.com>
35 * buildsym.c: Remove more occurances of "register".
36 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
37 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
38 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
39 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
40 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
41 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
42 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
43 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
45 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
47 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
48 numbers to enumeration values.
49 * sh-tdep.c: Accomodate above change.
50 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
51 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
52 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
53 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
54 (IS_FPUSH): Rename from IS_FMOV.
55 (sh_extract_struct_value_address): Remove useless comment.
56 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
57 instead of own local values.
58 (sh_dump_tdep): Remove.
59 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
60 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
62 2003-09-15 Andrew Cagney <cagney@redhat.com>
64 * doublest.c (convert_floatformat_to_doublest): No longer need to
65 cast "exp_bias" to an int. Reverts 2002-12-04 change.
67 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
69 * values.c (unpack_double): Call floatformat_is_valid.
71 2003-09-15 Mark Kettenis <kettenis@gnu.org>
73 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
74 ps_strings into a long.
76 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
77 _initialize_am64fbsd_nat.
79 2003-09-15 Kevin Buettner <kevinb@redhat.com>
81 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
82 associated with DW_AT_ranges attribute is out of bounds.
84 2003-09-15 David Lecomber <dsl@sources.redhat.com>
86 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
88 2003-09-14 Michael Chastain <mec@shout.net>
90 * config/m68k/nm-apollo68v.h: Delete.
91 * config/m68k/xm-apollo68v.h: Delete.
93 2003-09-14 Andrew Cagney <cagney@redhat.com>
95 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
96 * dcache.c: Update copyrights and descriptions.
97 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
99 2003-09-14 Andrew Cagney <cagney@redhat.com>
101 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
102 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
104 2003-09-14 Andrew Cagney <cagney@redhat.com>
106 * alpha-nat.c: Remove some occurances of "register".
107 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
108 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
109 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
110 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
111 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
112 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
113 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
114 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
115 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
116 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
117 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
118 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
119 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
120 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
121 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
122 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
123 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
124 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
125 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
126 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
127 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
128 * values.c, vax-tdep.c, xcoffread.c: Ditto.
130 2003-09-13 Andrew Cagney <cagney@redhat.com>
132 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
133 * ppc-tdep.h (struct regcache): Declare opaque.
134 * objfiles.h (struct objfile_data): Declare opaque.
135 * cp-support.h (struct objfile): Declare opaque.
136 * linux-nat.h (target_waitstatus): Declare opaque.
138 2003-09-14 Mark Kettenis <kettenis@gnu.org>
140 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
141 (stabs_argument_has_addr): New architecture method.
142 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
143 * arch-utils.c: Include "buildsym.h".
144 (default_stabs_argument_has_addr): New function.
145 * stabsread.c (define_symbol): Use stabs_argument_has_addr
146 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
148 * cris-tdep.c (cris_gdbarch_init): Set
149 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
150 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
151 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
152 * mips-tdep.c (mips_gdbarch_init): Likewise.
153 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
154 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
156 2003-09-13 Andrew Cagney <cagney@redhat.com>
158 * values.c (using_struct_return): Delete "function" and "funcaddr"
160 * value.h (using_struct_return): Update declaration.
161 * infcmd.c (finish_command_continuation): Update.
162 (finish_command): Update.
163 * infcall.c (call_function_by_hand): Update.
164 * eval.c (evaluate_subexp_standard): Update.
166 2003-09-13 Christopher Faylor <cgf@redhat.com>
168 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
169 SSE registers since gdb will not operate correctly without this.
170 Restore include file ordering munged in previous change.
171 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
173 2003-09-13 Mark Kettenis <kettenis@gnu.org>
175 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
177 * gdbarch.c, gdbarch.h: Updated.
178 * infcall.c (call_function_by_hand): Update.
179 * stabsread.c (define_symbol): Updated.
181 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
183 2003-09-12 Christopher Faylor <cgf@redhat.com>
185 * win32-nat.c: Reorganize so that defines used by target headers are
186 actually defined by the system headers.
187 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
188 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
190 2003-09-12 Jim Blandy <jimb@redhat.com>
192 * dbxread.c (read_dbx_symtab): Don't report an internal error if
193 the file has no .data, .bss, or .rodata sections. Instead wait
194 until we see a variable alleged to live in one of those sections.
196 * dbxread.c (read_dbx_symtab): If we have no .data section and no
197 .bss section, presume that any variables we find live in the
200 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
201 offsets for global and static variables.
203 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
204 symbol types are, by definition, in the .data section, so it is
205 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
206 If there is no .data section, there should be no N_DATA or N_DATA
209 2003-09-12 Mark Kettenis <kettenis@gnu.org>
211 * amd64fbsd-tdep.c: Fix sigtramp recognition.
212 (amd64fbsd_sigcontext_addr): Rewrite.
213 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
215 (amd64fbsd_sc_reg_offset): Initialize with correct values.
216 (amd64fbsd_init_abi): Fix typo.
218 2003-09-12 Andrew Cagney <cagney@redhat.com>
220 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
221 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
223 2003-09-12 Andrew Cagney <cagney@redhat.com>
225 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
226 "entry_file_highpc". Update comments.
227 * defs.h (deprecated_inside_entry_file): Rename
229 * blockframe.c (deprecated_inside_entry_file): Rename
231 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
232 * vax-tdep.c (vax_frame_chain): Update.
233 * sh64-tdep.c (sh64_frame_chain): Update.
234 * sh-tdep.c (sh_frame_chain): Update.
235 * rs6000-tdep.c (rs6000_frame_chain): Update.
236 * ns32k-tdep.c (ns32k_frame_chain): Update.
237 * mips-tdep.c (mips_frame_chain): Update.
238 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
239 * m32r-tdep.c (m32r_frame_this_id): Update.
240 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
241 * frv-tdep.c (frv_frame_this_id): Update.
242 * d10v-tdep.c (d10v_frame_this_id): Update.
243 * cris-tdep.c (cris_frame_chain): Update.
244 * blockframe.c (legacy_frame_chain_valid): Update.
245 * avr-tdep.c (avr_frame_this_id): Update.
246 * arm-tdep.c (arm_prologue_this_id): Update.
247 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
248 * objfiles.c (objfile_relocate): Update.
249 * mipsread.c (mipscoff_symfile_read): Update.
250 (mipscoff_symfile_read): Update.
251 * mdebugread.c (parse_partial_symbols): Update.
252 * dwarfread.c (read_file_scope): Update.
253 * dwarf2read.c (read_file_scope): Update.
254 * dbxread.c (read_dbx_symtab): Update.
255 (read_dbx_symtab): Update.
256 * coffread.c (complete_symtab): Update.
258 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
260 * top.c (quit_target): New static helper function.
261 (quit_force): Moved code to quit_target(). Call quit_target()
262 via catch_errors() to catch errors during quit.
264 2003-09-11 David Carlton <carlton@kealia.com>
266 * buildsym.c (finish_block): Use allocate_block to allocate the
268 * mdebugread.c (new_block): Add FIXME.
270 2003-09-11 David Carlton <carlton@kealia.com>
272 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
273 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
274 (recursive_dump_type): Ditto.
275 * printcmd.c (print_formatted): Ditto.
276 * typeprint.c (print_type_scalar): Ditto.
277 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
278 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
279 * cp-support.h: Declare cp_check_possible_namespace_symbols,
280 maint_cplus_cmd_list.
281 * cp-support.c: Make maint_cplus_cmd_list extern.
282 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
284 (lookup_symbol_file): Look in possible namespace blocks when
286 (initialize_namespace_symtab): New.
287 (get_possible_namespace_block, free_namespace_block)
288 (check_possible_namespace_symbols)
289 (check_possible_namespace_symbols_loop)
290 (check_one_possible_namespace_symbol)
291 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
292 (_initialize_cp_namespace): Ditto.
293 * block.h: Declare allocate_block.
294 * block.c (allocate_block): New.
295 * jv-lang.c (get_java_class_symtab): Allocate blocks via
297 * symfile.h: Update declaration of add_psymbol_to_list.
298 * symfile.c (add_psymbol_to_list): Return the partial symbol in
300 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
301 scan_partial_symbols_call.
302 (scan_partial_symbols): Add NAMESPACE argument; update calls to
304 (add_partial_symbol): If necessary, scan mangled names for names
306 (add_partial_namespace): Add NAMESPACE argument; generate partial
307 symbols associated to namespaces.
308 (add_partial_enumeration): Add NAMESPACE argument.
309 (new_symbol): Allow namespace syms.
310 (read_namespace): Generate namespace syms.
311 * objfiles.h: Add opaque declaration of struct symtab.
312 (struct objfile): Add cp_namespace_symtab member.
313 * objfiles.c (allocate_objfile): Set
314 objfile->cp_namespace_symtab.
315 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
316 dictionary_h, command_h.
318 2003-09-11 Andrew Cagney <cagney@redhat.com>
320 * rs6000-tdep.c (rs6000_push_dummy_call): Use
321 regcache_raw_write_signed to set SP_REGNUM, move the operation to
322 near the function's end.
323 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
324 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
325 regcache_raw_write_signed to set SP_REGNUM.
327 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
329 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
330 orig_addrs is set up properly.
332 2003-09-11 Andrew Cagney <cagney@redhat.com>
334 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
335 * gdbarch.h, gdbarch.c: Re-generate.
336 * infcall.c (call_function_by_hand): Update.
337 * hppa-tdep.c (hppa_push_arguments): Update.
338 * ada-lang.c (place_on_stack): Update.
339 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
340 * sparc-tdep.c (sparc_gdbarch_init): Update.
341 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
342 * hppa-tdep.c (hppa_gdbarch_init): Update.
343 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
346 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
348 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
349 register do need a frame.
351 2003-09-11 Andrew Cagney <cagney@redhat.com>
353 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
354 buildable since GDB 5.0.
355 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
356 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
357 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
358 * irix4-nat.c: Delete file.
359 * config/mips/irix4.mh: Delete file.
360 * config/mips/irix3.mh: Delete file.
361 * config/mips/irix3.mt: Delete file.
362 * config/mips/tm-irix3.h: Delete file.
363 * config/mips/nm-irix3.h: Delete file.
364 * config/mips/xm-irix3.h: Delete file.
365 * config/mips/nm-irix4.h: Delete file.
366 * config/mips/xm-irix4.h: Delete file.
367 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
369 2003-09-10 J. Brobecker <brobecker@gnat.com>
371 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
372 * Makefile.in (hppa-tdep.o): Update dependencies.
374 2003-09-10 James E Wilson <wilson@specifixinc.com>
376 * MAINTAINERS: Change my e-mail address. Move to paper trail
379 2003-09-10 Kevin Buettner <kevinb@redhat.com>
381 * MAINTAINERS (frv): New ISA entry.
383 2003-09-10 Kevin Buettner <kevinb@redhat.com>
385 * frv-tdep.c (dis-asm.h): Include.
386 * Makefile.in (frv-tdep.o): Update dependencies.
388 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
390 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
391 Fix typo for high range of floating registers.
393 2003-09-09 David Carlton <carlton@kealia.com>
395 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
396 highpc initialization here out of scan_partial_symbols.
397 (scan_partial_symbols): Restructure into a recursive version,
398 calling add_partial_namespace and add_partial_enumeration when
400 (add_partial_namespace): New.
401 (add_partial_enumeration, locate_pdi_sibling): Ditto.
403 2003-09-09 Andrew Cagney <cagney@redhat.com>
405 * rs6000-tdep.c (ppc_push_return_address): Delete function.
406 (rs6000_push_dummy_call): Set LR to BP_ADDR.
407 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
408 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
410 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
411 (rs6000_push_dummy_call): Set the "TOC" register.
413 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
414 methods "max_register_raw_size", "max_register_virtual_size" or
415 "register_virtual_size".
417 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
419 * MAINTAINERS: Update my e-mail address.
421 2003-09-09 Andrew Cagney <cagney@redhat.com>
423 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
424 (rs6000_push_dummy_call): Store the struct return address.
425 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
427 2003-09-09 Andrew Cagney <cagney@redhat.com>
429 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
430 "ppc_sysv_abi_push_arguments".
431 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
432 "ppc_sysv_abi_push_arguments".
433 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
434 instead of "push_arguments".
435 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
437 2003-09-09 Andrew Cagney <cagney@redhat.com>
439 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
440 instead of CALL_DUMMY_ADDRESS.
442 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
444 * p-lang.c: Eliminate "register".
453 * objc-lang.c: Ditto.
455 2003-09-09 Nick Clifton <nickc@redhat.com>
457 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
459 2003-09-04 Andrew Cagney <cagney@redhat.com>
461 * avr-tdep.c: Include "dis-asm.h".
462 * cris-tdep.c: Include "dis-asm.h".
463 (cris_delayed_get_disassembler): Use "struct disassemble_info"
464 instead of corresponding typedef.
465 * h8300-tdep.c: Include "dis-asm.h".
466 * ia64-tdep.c: Include "dis-asm.h".
467 * i386-tdep.c: Include "dis-asm.h".
468 (i386_print_insn): Use "struct disassemble_info" instead of
469 corresponding typedef.
470 * m68k-tdep.c: Include "dis-asm.h".
471 * mcore-tdep.c: Include "dis-asm.h".
472 * mips-tdep.c: Include "dis-asm.h".
473 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
474 instead of corresponding typedef.
475 * ns32k-tdep.c: Include "dis-asm.h".
476 * s390-tdep.c: Include "dis-asm.h".
477 * sparc-tdep.c: Include "dis-asm.h".
478 * vax-tdep.c: Include "dis-asm.h".
479 * v850-tdep.c: Include "dis-asm.h".
480 * mn10300-tdep.c: Include "dis-asm.h".
481 * rs6000-tdep.c: Include "dis-asm.h".
482 * xstormy16-tdep.c: Include "dis-asm.h".
483 (_initialize_xstormy16_tdep): Delete "extern" declaration of
484 print_insn_xstormy16.
485 * Makefile.in (v850-tdep.o): Update dependencies.
486 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
487 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
488 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
489 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
490 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
491 (gdbarch_h): Remove $(dis_asm_h).
492 * disasm.c: Include "dis-asm.h".
493 (dis_asm_read_memory): Use "struct disassemble_info" instead of
494 corresponding typedef.
495 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
496 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
497 * gdbarch.sh: Do not include "dis-asm.h".
498 (struct disassemble_info): Declare opaque.
499 (TARGET_PRINT_INSN): Update declaration.
500 * gdbarch.h, gdbarch.c: Re-generate.
502 2003-09-08 Andrew Cagney <cagney@redhat.com>
504 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
505 CALL_DUMMY_ADDRESS, change to a predicate.
506 * gdbarch.h, gdbarch.c: Re-generate.
507 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
508 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
509 * infcall.c (call_function_by_hand): Ditto.
510 * sparc-tdep.c (sparc_push_return_address): Ditto.
511 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
512 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
513 CALL_DUMMY_ADDRESS with entry_point_address.
514 * v850-tdep.c (v850_push_return_address): Ditto.
515 * s390-tdep.c (s390_push_return_address): Ditto.
516 * rs6000-tdep.c (ppc_push_return_address): Ditto.
517 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
518 * mcore-tdep.c (mcore_push_return_address): Ditto.
519 * cris-tdep.c (cris_push_return_address): Ditto.
520 * arm-tdep.c (arm_push_return_address): Ditto.
522 2003-09-08 Andrew Cagney <cagney@redhat.com>
524 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
525 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
526 and REG_UNMODIFIED to REG_SAME_VALUE.
527 (execute_cfa_program): Update.
528 (dwarf2_frame_cache): Update. Initialize table to
529 REG_UNSPECIFIED, complain if CFI fails to specify a register's
531 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
533 2003-09-08 Andrew Cagney <cagney@redhat.com>
535 * gnu-nat.c: Remove "inline" function attribute.
536 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
538 2003-09-08 Kevin Buettner <kevinb@redhat.com>
540 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
543 2003-09-08 Kevin Buettner <kevinb@redhat.com>
545 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
546 (frame_extra_info): Rename this struct to frv_unwind_cache.
547 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
548 Add fields ``prev_sp'' and ``base''.
549 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
550 (frv_saved_pc_after_call, frv_init_extra_frame_info)
551 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
553 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
554 Revise all callers. Fill in the unwind cache argument and make
555 other adjustments to account for new frame mechanisms.
556 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
557 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
558 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
559 (frv_frame_unwind, frv_frame_base): New structs.
560 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
561 additional arguments expected by this method and adjust function
563 (frv_gdbarch_init): Remove calls to the following functions:
564 set_gdbarch_deprecated_init_frame_pc(),
565 set_gdbarch_deprecated_saved_pc_after_call(),
566 set_gdbarch_deprecated_frame_chain(),
567 set_gdbarch_deprecated_frame_saved_pc(),
568 set_gdbarch_deprecated_frame_init_saved_regs(),
569 set_gdbarch_deprecated_push_arguments(),
570 set_gdbarch_deprecated_push_return_address(),
571 set_gdbarch_deprecated_pop_frame(),
572 set_gdbarch_deprecated_call_dummy_words(),
573 set_gdbarch_deprecated_sizeof_call_dummy_words(),
574 set_gdbarch_deprecated_init_extra_frame_info(),
575 set_gdbarch_deprecated_dummy_write_sp(), and
576 set_gdbarch_deprecated_pc_in_call_dummy().
577 Add calls to the following functions:
578 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
579 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
580 frame_base_set_default().
581 * Makefile.in (frv-tdep.o): Update dependencies.
583 2003-09-09 Mark Kettenis <kettenis@gnu.org>
585 * dwarf2-frame.c (read_encoded_value): Add support for
586 DW_EH_PE_aligned encoding.
588 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
590 * infrun.c (normal_stop): Don't print a message if the inferior
593 2003-09-08 Jim Blandy <jimb@redhat.com>
595 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
596 * dbxread.c: #include "gdb_assert.h".
597 (read_dbx_symtab): If the objfile has no .data section, use the
598 section index for the .bss section instead.
600 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
602 * frame.c (deprecated_safe_get_selected_frame): New function.
603 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
604 * findvar.c (read_var_value): Call it.
606 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
608 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
609 (sh64-tdep.o): Add dependencies.
610 * configure.tgt: Add FIXME to sh-*-linux*.
611 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
612 (sh_gdbarch_init): Always set correct sh_show_regs function
613 pointer. Call sh64_gdbarch_init() if machine type is sh5.
614 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
615 * sh64-tdep.c: New file, containing all sh64 related code from
617 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
618 * config/sh/linux.mt (TDEPFILES): Ditto.
619 * config/sh/nbsd.mt (TDEPFILES): Ditto.
620 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
621 * config/sh/wince.mt (TDEPFILES): Ditto.
623 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
625 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
626 (stop_wait_callback): Handle !lp->signalled also.
627 (lin_lwp_has_pending, flush_callback): New functions.
628 (lin_lwp_wait): Call flush_callback.
629 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
630 (linux_proc_pending_signals): New function.
631 * linux-nat.h (linux_proc_pending_signals): Add prototype.
633 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
635 From Nick Kelsey <nickk@ubicom.com>:
636 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
637 when the stop PC is at the beginning of a function also.
639 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
641 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
642 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
644 2003-09-06 Mark Kettenis <kettenis@gnu.org>
646 * sol-thread.c: Include "gdb_string.h".
648 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
650 * gcore.c: Reorder include files in alphabetical order. Include
651 "gdb_assert.h". Various coding style fixes.
652 (derive_stack_segment, derive_heap_segment): Replace check for
653 non-null BOTTOM and TOP with gdb_assert.
654 (derive_heap_segment): Replace check for successful creation of
655 ZERO with gdb_assert.
656 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
658 2003-09-04 Andrew Cagney <cagney@redhat.com>
660 * thread-db.c (verbose_dlsym): New function.
661 (thread_db_load): Use verbose_dlsym
662 (thread_db_new_objfile): Print that libthread_db was loaded, and
663 that thread debugging was enabled.
665 2003-09-04 Andrew Cagney <cagney@redhat.com>
667 * configure.tgt: Add "mips64*-*-*" target. Delete
668 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
669 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
670 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
671 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
672 mips*-sony-*, and mips64*-*-elf* targets.
673 * config/mips/embedl.mt: Delete file.
674 * config/mips/embedl64.mt: Delete file.
675 * config/mips/mips.mt: Delete file.
676 * config/mips/mips64.mt: Delete file.
677 * config/mips/tm-embed.h: Delete file.
678 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
679 * config/mips/embed64.mt: Delete out-of-date comment.
681 2003-09-04 Andrew Cagney <cagney@redhat.com>
683 * hppa-tdep.c (hppa_gdbarch_init): Set
684 "have_nonsteppable_watchpoint".
685 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
686 * mips-tdep.c (mips_dump_tdep): Do not print
687 HAVE_NONSTEPPABLE_WATCHPOINT.
688 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
689 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
690 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
691 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
693 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
695 * breakpoint.c (watchpoint_check): Remove accidentally checked in
696 unused code. Add comment.
698 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
700 * breakpoint.c (watchpoint_check): Check for pc being in an
701 epilogue if watchpoint frame couldn't be found.
703 2003-09-04 Andrew Cagney <cagney@redhat.com>
705 * Makefile.in: Re-generate all dependencies.
707 2003-09-03 Andrew Cagney <cagney@redhat.com>
709 * arch-utils.h (legacy_print_insn): Delete declaration.
710 * arch-utils.c (legacy_print_insn): Delete function.
711 * disasm.c (deprecated_tm_print_insn_info): Delete.
712 (_initialize_disasm): Delete function, contained code initializing
713 deprecated_tm_print_insn_info.
714 * gdbarch.sh (deprecated_tm_print_insn): Delete.
715 (deprecated_tm_print_insn_info): Delete.
716 (TARGET_PRINT_INSN): Do not provide a default.
717 * gdbarch.h, gdbarch.c: Re-generate.
719 2003-09-03 Andrew Cagney <cagney@redhat.com>
721 * disasm.c (fprintf_disasm): New function.
722 (gdb_disassemble_info): Call "init_disassemble_info", instead of
723 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
724 reverts 2003-08-14 change.
725 (_initialize_disasm): Call "init_disassemble_info", instead of
726 INIT_DISASSEMBLE_INFO_NO_ARCH.
728 2003-09-03 Michael Snyder <msnyder@redhat.com>
730 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
732 2003-09-03 Andrew Cagney <cagney@redhat.com>
734 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
735 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
736 * symfile.c (syms_from_objfile): Update.
737 (reread_symbols): `Update
738 * exec.c (exec_file_attach): Update.
739 (exec_file_attach): Update.
740 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
742 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
744 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
746 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
748 (arm_get_cache): Delete macro.
749 (struct arm_prologue_cache): Update comments. Make saved_regs into
750 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
752 (thumb_scan_prologue): Update for cache changes. Don't call
753 DEPRECATED_PC_IN_CALL_DUMMY.
754 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
755 argument and use it in desperation search for our prologue. Do not
756 search past the specified PC.
757 (arm_make_prologue_cache): Simplify.
759 (arm_prologue_this_id, arm_prologue_prev_register)
760 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
761 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
762 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
763 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
764 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
766 (arm_frame_chain_valid, arm_find_callers_reg)
767 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
768 (arm_pop_frame): Delete obsolete methods.
769 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
771 (arm_gdbarch_init): Update for new frame methods. Register prologue
772 and sigtramp unwinders. Set the default frame base method.
774 * Makefile.in (arm-tdep.o): Update dependencies.
775 * varobj.c (find_frame_addr_in_frame_chain): Call
776 get_frame_base_address.
777 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
779 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
781 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
782 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
783 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
784 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
785 Take NEXT_FRAME and CACHE arguments. Call
786 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
787 Set unwound_pc in CACHE instead of modifying the frame argument.
788 Don't bother checking the frame type when looking for sigtramp
790 (arm_make_prologue_cache, arm_frame_chain)
791 (arm_init_extra_frame_info): New functions.
793 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
795 * arm-tdep.c (arm_get_cache): Define.
796 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
797 unwound_sp, unwound_pc, and saved_regs.
798 (thumb_scan_prologue): Take a cache instead of the frame.
799 (arm_scan_prologue): Likewise.
800 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
801 instead of a temporary frame.
802 (arm_init_extra_frame_info): Allocate and use a cache.
803 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
805 2003-09-03 Andrew Cagney <cagney@redhat.com>
807 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
808 * config/mips/wince.mt (TM_CLIBS): Ditto.
809 * config/sh/wince.mt (TM_CLIBS): Ditto.
810 * config/pa/hppa64.mt (TM_CLIBS): Delete.
811 * config/sparc/sp64.mt (CC): Delete.
813 2003-09-03 Andrew Cagney <cagney@redhat.com>
815 * defs.h: Do not include "arch-utils.h".
816 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
818 * configure.in (GDB_MULTI_ARCH): Do not define.
819 * configure, config.in: Regenerate.
820 * configure.tgt: Do not set variable "gdb_multi_arch".
821 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
822 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
823 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
824 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
825 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
826 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
827 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
828 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
829 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
830 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
831 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
832 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
833 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
834 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
835 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
836 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
837 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
838 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
840 2003-08-30 Michael Chastain <mec@shout.net>
842 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
843 * config/m68k/nm-hp300hpux.h: Delete.
844 * config/m68k/tm-hp300hpux.h: Delete.
845 * config/m68k/xm-hp300hpux.h: Delete.
846 * config/m68k/xm-hp300bsd.h: Delete.
847 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
848 tm-hp300hpux.h, xm-hp300hpux.h.
849 * somsolib.c: Remove comment about hp300 shared libraries.
851 2003-08-31 Mark Kettenis <kettenis@gnu.org>
853 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
854 Only define PTRACE_GET_THREAD_AREA is not already defined.
855 Various style fixes in code and comments and some additional
856 spelling fixes in comments. Move after functions dealing with
858 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
861 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
862 frame_unwind_register_unsigned instead of
863 frame_unwind_unsigned_register.
865 2003-08-30 Mark Kettenis <kettenis@gnu.org>
867 * configure.in: Search for gethostbyname in libnsl.
868 * configure: Regenerated.
870 2003-08-29 Mark Kettenis <kettenis@gnu.org>
872 * configure.in: Remove redundant AC_MSG_RESULT in check for
873 uintptr_t in stdint.h.
874 * configure: Regenerated.
876 * amd64-nat.h (struct regcache): Add opaque declaration.
878 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
879 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
880 Change "register array" to "register cache" in comments.
881 (x86_64_linux_gregset64_reg_offset): New variable.
882 (GETREGS_SUPPLIES): Remove macro.
883 (supply_gregset): Call amd64_supply_native_gregset instead of
884 x86_64_linux_supply_gregset.
885 (fill_gregset): Rename `regno' to `regnum'. Call
886 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
887 (store_regs): Rename `regno' to `regnum'.
888 (store_fpregs): Rename `regno' to `regnum'.
889 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
890 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
891 Reorganize function a bit.
892 (store_inferior_registers): Rename `regno' to `regnum'. Use
893 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
894 Reorganize function a bit.
895 (_initialize_x86_64_linux_nat): New function.
896 * config/i386/x86-64linux.mh.
898 2003-08-29 Andrew Cagney <cagney@redhat.com>
900 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
901 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
902 (target_remove_watchpoint): Delete macro.
903 (target_insert_watchpoint): Delete macro.
904 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
905 (remote_mips_stopped_by_watchpoint): Delete declaration.
906 (remote_mips_remove_watchpoint): Delete declaration.
907 (remote_mips_set_watchpoint): Delete declaration.
908 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
909 * remote-mips.c (_initialize_remote_mips): Set
910 "to_insert_watchpoint", "to_stopped_by_watchpoint",
911 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
912 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
913 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
914 (mips_stopped_by_watchpoint): Rename
915 remote_mips_stopped_by_watchpoint.
916 (mips_can_hardware_watchpoint): Rename
917 remote_mips_can_use_hardware_watchpoint, update function
920 2003-08-29 Mark Kettenis <kettenis@gnu.org>
922 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
923 USER_DS. We haven't given them a register number yet.
925 * amd64-nat.h: New file.
926 * amd64-nat.c: New file.
927 * amd64fbsd-nat.c: Include "amd64-nat.h".
928 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
929 (amd64fbsd32_r_reg_offset): New variable.
930 (supply_gregset): Simply call amd64_supply_native_gregset.
931 (fill_gregset): Rename `regno' to `regnum'. Simply call
932 amd64_collect_native_gregset.
933 (fill_fpregset): Rename `regno' to `regnum'.
934 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
935 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
936 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
937 `fpregset_t'. Call amd64_supply_native_gregset instead of
938 supply_gregset. Call x86_64_supply_fxsave instead of
940 (store_inferior_registers): Rename `regno' to `regnum'. Replace
941 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
942 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
943 `fpregset_t'. Call amd64_collect_native_gregset instead of
944 fill_gregset. Call x86_64_collect_fxsave instead of
946 (_initialize_am64fbsd_nat): Initialize
947 amd64_native_gregset32_reg_offset and
948 amd64_native_gregset64_reg_offset.
949 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
951 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
952 null pointer. Fix typo in comment.
954 * regcache.c (supply_register): Reimplement to call
956 (regcache_collect): Reimplement by calling regcache_raw_collect.
958 2003-08-28 Mark Kettenis <kettenis@gnu.org>
960 * regcache.c (register_buffer): Consitify first argument.
961 (regcache_raw_supply, regcache_raw_collect): New
964 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
966 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
967 by Nathan J. Williams.
969 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
971 * lin-lwp.c (wait_lwp): New function, copied from
972 stop_wait_callback. Clean up.
973 (stop_wait_callback): Use wait_lwp.
975 2003-08-28 Andrew Cagney <cagney@redhat.com>
977 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
978 flavour and disassembler options.
979 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
980 (mips_gdbarch_init): Set "print_insn". Delete initialization of
981 deprecated_tm_print_insn_info.
983 2003-08-27 Andrew Cagney <cagney@redhat.com>
985 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
986 Use target_read_memory.
987 (s390_get_frame_info): Update. Do not reference
988 deprecated_tm_print_insn_info.
989 (s390_check_function_end, s390_is_sigreturn): Ditto.
991 2003-08-27 Andrew Cagney <cagney@redhat.com>
993 * Makefile.in (cris-tdep.o): Update dependencies.
994 * cris-tdep.c: Include "gdb_assert.h".
995 (cris_gdbarch_init): Set print_insn.
996 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
997 (cris_delayed_get_disassembler): Simplify, directly call the
998 disassembler returned by cris_get_disassembler.
999 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1000 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1001 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1002 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1003 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1004 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1005 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1006 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1007 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1008 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1009 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1010 (gdb_print_insn_sparc): Delete function.
1011 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1012 deprecated_tm_print_insn_info.
1013 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1014 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1015 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1016 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1017 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1018 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1019 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1020 (s390_gdbarch_init): Set print_insn.
1022 2003-08-27 Andrew Cagney <cagney@redhat.com>
1024 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1025 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1026 * infcall.c (call_function_by_hand): Convert the entry point
1027 address into a code address.
1029 2003-08-27 Andrew Cagney <cagney@redhat.com>
1031 * dsrec.c: Include "gdb_string.h".
1032 * Makefile.in (dsrec.o): Update dependencies.
1034 2003-08-27 Michael Chastain <mec@shout.net>
1036 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1038 2003-08-27 Andrew Cagney <cagney@redhat.com>
1040 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1041 (alpha_osf1_init_abi): Do not set call_dummy_address.
1043 2003-08-27 David Carlton <carlton@kealia.com>
1045 From Randolph Chung <tausq@debian.org>:
1046 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1047 compiles with -Wformat-nonliteral -Werror.
1049 2003-08-26 Jim Blandy <jimb@redhat.com>
1051 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1052 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1053 bfd_lookup_symbol, since we only want symbols in code sections.
1054 (look_for_base): Pass zero as the SECT_FLAGS argument to
1055 bfd_lookup_symbol, since we're not concerned about which section
1058 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1060 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1061 we are frameless or the return address register is already known.
1063 2003-08-26 Andrew Cagney <cagney@redhat.com>
1065 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1066 in size. Add comments.
1068 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1070 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1071 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1073 2003-08-26 Jason Merrill <jason@redhat.com>
1075 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1076 case out of #ifdef MIPS block.
1078 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1081 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1082 available before calling SECT_OFF_TEXT.
1083 * PROBLEMS: Remove description of java/1322.
1085 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1087 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1088 bof, and nat0-nat127 as pseudo-registers.
1089 (ia64_frame_cache): New struct used to cache frame info.
1090 (ia64_register_reggroup_p): New routine used to override default
1091 register grouping so registers without names are still saved and
1093 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1095 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1096 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1097 (ia64_alloc_frame_cache): New routine to create a new
1099 (examine_prologue): Change prototype to add next_frame pointer.
1100 Assume frameless until otherwise proven. Verify that the cfm for
1101 current frame matches the cfm that should occur for the prologues
1102 alloc insn and if equal, mark as not frameless. At end of routine,
1103 if not frameless, calculate registers for the previous frame and store
1104 in the cache, if a cache is provided.
1105 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1106 and pass 0 for next_frame.
1107 (ia64_store_return_value): Change to use convert_typed_floating()
1108 instead of calling ia64_convert_to_raw().
1109 (ia64_extract_return_value): Change to use convert_typed_floating()
1110 instead of calling ia64_convert_to_virtual().
1111 (ia64_frame_cache): New routine to support new frame model.
1112 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1113 (ia64_frame_sniffer): Ditto.
1114 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1115 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1116 (ia64_sigtramp_frame_prev_register): Ditto.
1117 (ia64_sigtramp_frame_sniffer): Ditto.
1118 (ia64_frame_base_address): Ditto.
1119 (ia64_extract_struct_value_address): Change to issue error message.
1120 (ia64_frame_align): New routine to align sp.
1121 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1122 (ia64_push_arguments): Removed. Logic moved to
1123 ia64_push_dummy_call().
1124 (ia64_push_return_address): Ditto.
1125 (ia64_unwind_dummy_id): New function.
1126 (ia64_unwind_pc): Ditto.
1127 (ia64_convert_register_p): Ditto.
1128 (ia64_register_to_value): Ditto.
1129 (ia64_value_to_register): Ditto.
1130 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1131 (ia64_register_byte, ia64_register_raw_size): Ditto.
1132 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1133 (ia64_saved_pc_after_call): Ditto.
1134 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1135 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1136 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1137 (ia64_register_convert_to_raw): Ditto.
1138 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1139 (ia64_init_extra_frame_info): Ditto.
1140 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1141 (ia64_gdbarch_init): Remove registering of deprecated functions that
1142 are no longer used. Add registration of new gdbarch functions.
1143 Remove registering deprecated_write_sp. Replace
1144 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1145 Delete set_gdbarch_deprecated_register_convertible(),
1146 set_gdbarch_deprecated_register_convert_to_virtual(), and
1147 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1148 set_gdbarch_deprecated_register_size(),
1149 set_gdbarch_deprecated_register_bytes(),
1150 set_gdbarch_pcregnum(),
1151 set_gdbarch_deprecated_register_byte(),
1152 set_gdbarch_deprecated_register_raw_size(),
1153 set_gdbarch_deprecated_max_register_raw_size(),
1154 set_gdbarch_deprecated_register_virtual_size(),
1155 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1156 Replace set_gdbarch_deprecated_extract_return_value() with
1157 set_gdbarch_extract_return_value(). Remove calls to:
1158 set_gdbarch_deprecated_saved_pc_after_call();
1159 set_gdbarch_deprecated_frame_chain(),
1160 set_gdbarch_deprecated_frame_saved_pc(),
1161 set_gdbarch_deprecated_frame_init_saved_regs(),
1162 set_gdbarch_deprecated_get_saved_register(),
1163 set_gdbarch_deprecated_call_dummy_words(),
1164 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1165 set_gdbarch_deprecated_init_extra_frame_info(),
1166 set_gdbarch_deprecated_frame_args_address(),
1167 set_gdbarch_deprecated_frame_locals_address(),
1168 and set_gdbarch_deprecated_dummy_write_sp().
1169 Add set_gdbarch_convert_register_p(),
1170 set_gdbarch_register_to_value(),
1171 set_gdbarch_value_to_register(),
1172 set_gdbarch_push_dummy_call(),
1173 set_gdbarch_frame_align(),
1174 set_gdbarch_unwind_dummy_id(),
1175 set_gdbarch_unwind_pc(),
1176 frame_unwind_append_sniffer(),
1177 frame_unwind_append_sniffer(),
1178 and frame_base_set_default().
1180 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1182 * configure.tgt: Document need for special "mipsisa64" handling.
1183 (mipsisa64*-*-linux64): Handle as target linux64.
1184 (mipsisa64*-*-*): Handle as target embed64.
1186 2003-08-18 Michael Chastain <mec@shout.net>
1188 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1191 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1193 * i387-tdep.h: Update copyright date.
1194 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1196 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1197 CFLAGS games to reflect reality.
1199 2003-08-24 Andrew Cagney <cagney@redhat.com>
1201 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1202 GDB_MULTI_ARCH is always non-zero.
1203 * osabi.c (_initialize_gdb_osabi): Ditto.
1204 (gdbarch_init_osabi): Ditto.
1205 * sparc-tdep.c: Ditto for #if code.
1207 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1209 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1211 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1213 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1214 x86_64_supply_fxsave.
1215 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1216 x86_64_supply_fxsave.
1217 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1218 x86_64_supply_fxsave.
1220 2003-08-23 Andreas Jaeger <aj@suse.de>
1222 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1225 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1227 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1228 i387_supply_register.
1229 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1230 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1232 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1234 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1236 * i386bsd-nat.c (supply_fpregset): Adjust call to
1238 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1239 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1241 (store_inferior_registers): Remove extraneous whitespace. Call
1242 i387_fill_fsave instead of fill_fpregset.
1243 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1244 (supply_fpregset): Likewise.
1245 * i386v4-nat.c (supply_fpregset): Adjust call to
1247 * i386-interix-nat.c (supply_fpregset): Adjust call to
1249 * i386-linux-nat.c (supply_fpregset): Adjust call to
1251 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1252 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1253 i387supply_fsave and i387_supply_fxsave.
1254 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1255 Incorporate code from `i387_supply_register.
1256 (i387_supply_register): Remove.
1257 (i387_supply_fxsave): Add `regnum' argument.
1259 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1261 (i387_supply_register): remove prototype.
1264 2003-08-22 Michael Chastain <mec@shout.net>
1266 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1267 Add lines for files in gdb/testsuite/gdb.cp/* that are
1268 still not 8.3 unique.
1270 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1272 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1273 TYPE_VPTR_FIELDNO is valid.
1275 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1277 * utils.c (set_width_command): Remove prototypes.
1278 (set_screen_size): New prototype.
1279 (init_page_info): Simplify by fetching the screen size from
1280 Readline. Call set_screen_size.
1281 (set_screen_size): New function.
1282 (set_width): Add missing whitespace in comment.
1283 (set_width_command): Call set_screen_size.
1284 (set_height_command): New function.
1285 (initialize_utils): Fix formatting. Make "set height" command
1286 call set_height_command. Remove redundant code that turns off
1287 pagination if output isn't a terminal. Remove redundant call to
1290 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1292 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1293 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1294 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1295 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1297 (sparc64_register_info): Give the reister with number
1298 SPARC64_STATE_REGNUM a name.
1299 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1301 (sparc64_push_dummy_call): Take BIAS into account when checking
1303 (sparc_software_single_step): Remove assertions that check whether
1304 NPC and NNPC were zero.
1305 (sparc_supply_rwindow): Make public. Merge functionality with
1306 sparc64_supply_rwindow.
1307 (sparc_fill_rwindow): Make public. Merge functionality with
1308 sparc64_fill_rwindow.
1309 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1310 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1311 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1312 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1313 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1315 * reggroups.c: Add whitespace after declarations of local
1316 variables in functions.
1318 2003-08-21 Michael Chastain <mec@shout.net>
1320 * gdbtypes.h: Change array bound type from an int to enum.
1322 2003-08-21 Andrew Cagney <cagney@redhat.com>
1324 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1325 * config/sparc/tm-sparc.h: Ditto.
1326 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1328 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1330 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1332 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1333 (register_objfile_data, set_objfile_data, objfile_data): New
1335 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1337 (allocate_objfile): Call objfile_alloc_data.
1338 (free_objfile): Call objfile_free_data.
1339 (struct objfile_data): New.
1340 (struct objfile_data_registration): New.
1341 (struct objfile_data_registry): New.
1342 (objfile_data_registry): New variable.
1343 (register_objfile_data): New function.
1344 (objfile_alloc_data, objfile_free_data): New functions.
1345 (set_objfile_data, objfile_data): New functions.
1346 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1347 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1348 (_initialize_dwarf2_frame): New function and prototype.
1350 2003-08-21 Andrew Cagney <cagney@redhat.com>
1352 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1353 a specific architecture.
1354 * arch-utils.h (set_architecture_from_arch_mach): Delete
1356 (target_architecture_hook): Delete declaration.
1357 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1358 (default_float_format): Assume GDB_MULTI_ARCH.
1359 (default_double_format): Assume GDB_MULTI_ARCH.
1360 (set_endian_from_file): Delete function.
1361 (arch_ok): Delete function.
1362 (set_arch): Delete function.
1363 (set_architecture_from_arch_mach): Delete function.
1364 (set_architecture_from_file): Delete function.
1365 (set_architecture): Assume GDB_MULTI_ARCH.
1366 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1368 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1370 Rewrite FreeBSD/sparc64 native configuration.
1371 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1372 * sparc64fbsd-nat.c: New file.
1373 * sparc64fbsd-tdep.c: New file.
1374 * sparc64-tdep.c sparc64-tdep.h: New files.
1375 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1376 sparc64fbsd-tdep.o): New dependencies.
1377 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1378 and sparc64fbsd-tdep.c.
1379 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1380 * config/sparc/fbsd.mh: Remove copyright notice.
1381 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1383 * config/sparc/fbsd.mt: Remove copyright notice.
1384 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1385 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1386 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1387 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1388 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1389 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1390 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1391 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1393 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1394 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1396 2003-08-21 Michael Chastain <mec@shout.net>
1398 * symtab.h: Add doco on the space critical structures and
1399 some measurements of space usage.
1401 2003-08-21 Michael Snyder <msnyder@redhat.com>
1403 * tracepoint.c (trace_dump_command): Trace break address
1404 is subject to DECR_PC_AFTER_BREAK.
1405 (set_traceframe_context): Make "trace_line" an int.
1406 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1408 2003-08-20 Michael Snyder <msnyder@redhat.com>
1410 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1411 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1412 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1414 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1415 functions, replace sh_push_dummy_call.
1416 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1418 2003-08-20 Michael Chastain <mec@shout.net>
1420 * gdbtypes.h (struct main_type): Rearrange to save space.
1422 2003-08-20 Michael Snyder <msnyder@redhat.com>
1424 * trad-frame.c: Comment typo fix.
1426 2003-08-20 Michael Snyder <msnyder@redhat.com>
1427 Kevin Buettner <kevinb@redhat.com>
1429 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1430 (frv_frame_init_saved_regs): Add declaration.
1431 (frame_extra_info): Add new field ``saved_regs''.
1432 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1433 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1434 Update frame related code.
1435 (frv_extract_struct_value_address): Adjust formatting.
1436 * Makefile.in (frv-tdep.o): Update dependencies.
1437 * config/frv/tm-frv.h (target_insert_watchpoint)
1438 (target_remove_watchpoint, target_insert_hw_breakpoint)
1439 (target_remove_hw_breakpoint): Delete these macros.
1440 (remote_insert_watchpoint, remote_remove_watchpoint)
1441 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1444 2003-08-20 Michael Chastain <mec@shout.net>
1446 * defs.h (ENUM_BITFIELD): New macro.
1447 * symtab.h (ENUM_BITFIELD): Use it.
1448 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1450 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1452 * MAINTAINERS (write after approval): Add myself.
1454 2003-08-18 Andrew Cagney <cagney@redhat.com>
1456 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1457 * gdbarch.h, gdbarch.c: Re-generate.
1458 * infcall.c (call_function_by_hand): Adjust the SP by
1459 frame_red_zone_size before allocating any stack space.
1460 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1461 * x86-64-tdep.c (x86_64_frame_align): New function.
1462 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1464 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1465 Remove code adjusting SP so that it skips over the Red Zone.
1467 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1469 * NEWS (New native configurations): Mention FreeBSD/amd64.
1471 2003-08-18 Andrew Cagney <cagney@redhat.com>
1473 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1474 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1476 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1478 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1480 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1482 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1484 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1486 * i386-linux-nat.c: Include "linux-nat.h".
1487 (child_post_startup_inferior): New function.
1489 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1491 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1492 at the start of a frameless function. This probably fixes PR
1495 2003-08-17 Michael Chastain <mec@shout.net>
1497 * symfile.c (find_sym_fns): Remove special case for apollo target.
1499 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1501 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1502 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1503 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1504 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1505 (linux_supports_tracevforkdone): New function.
1506 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1508 (child_follow_fork): Handle vfork.
1509 (linux_handle_extended_wait): Likewise. Also handle exec.
1510 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1511 * NEWS: Mention fork tracing.
1513 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1515 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1517 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1519 * Makefile.in (i386-linux-nat.o): Update dependencies.
1520 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1521 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1522 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1523 * i386-linux-nat.c: Include "linux-nat.h".
1524 (child_post_startup_inferior): New function.
1525 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1526 * infptrace.c (kill_inferior): Wrap in #ifdef.
1527 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1528 attaching to each LWP.
1529 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1530 (init_lin_lwp_ops): Fill in some more operations.
1531 * linux-nat.h (linux_enable_event_reporting)
1532 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1534 * linux-nat.c (linux_enable_event_reporting): New function.
1535 (child_post_attach, linux_child_post_startup_inferior)
1536 (child_post_startup_inferior, child_follow_fork)
1537 (linux_handle_extended_wait, kill_inferior): New functions.
1539 2003-08-16 Andrew Cagney <cagney@redhat.com>
1541 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1542 * gdbarch.h, gdbarch.c: Re-generate.
1544 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1546 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1548 2003-08-16 Andrew Cagney <cagney@redhat.com>
1550 * NEWS: Mention that "set prompt-escape-char" was deleted.
1551 * top.c (get_prompt_1): Delete function.
1552 (gdb_prompt_escape):
1553 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1554 prompt-escape-char" command.
1555 (MAX_PROMPT_SIZE): Delete macro.
1556 (get_prompt): Simplify, do not call get_prompt_1.
1558 2003-08-16 Andrew Cagney <cagney@redhat.com>
1560 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1561 -Werror. -Wformat-nonliteral problems.
1563 2003-08-15 J. Brobecker <brobecker@gnat.com>
1565 Further multiarching work mostly for hppa64-*-hpux11:
1566 * hppa-tdep.h: New file.
1567 * hppa-tdep.c: #include hppa-tdep.c.
1568 (hppa32_num_regs): Renamed from hppa_num_regs.
1569 (hppa64_num_regs): New constant.
1570 (hppa64_call_dummy_breakpoint_offset): New constant.
1571 (hppa32_call_dummy_length): New constant.
1572 (hppa64_call_dummy_length): New constant.
1573 (hppa32_stack_align): Make name 32bit explicit.
1574 (hppa32_register_virtual_type): Likewise.
1575 (hppa32_extract_return_value): Likewise.
1576 (hppa32_use_struct_convention): Likewise.
1577 (hppa32_store_return_value): Likewise.
1578 (hppa64_register_virtual_type): New function.
1579 (hppa64_extract_return_value): New function.
1580 (hppa64_use_struct_convention): New function.
1581 (hppa64_store_return_value): New function.
1582 (hppa_frame_locals_address): Remove declaration, function does
1584 (hppa_register_byte): Add support for PA64 ABI.
1585 (hppa_gdbarch_init): Add support for PA64 ABI.
1586 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1587 Make name 32bit explicit.
1588 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1589 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1590 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1591 (hppa64_hpux_frame_base_before_sigtramp): New function.
1592 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1593 * config/pa/tm-hppa64.h: Remove macros that are no longer
1594 necessary now that the gdbarch vector is properly setup.
1595 Transform some macros into function calls. Some minor cleanup.
1596 * config/pa/tm-hppah.h: Update function calls in macros
1597 following the function renaming in hppa-hpux-tdep.c.
1598 * Makefile.in (hppa_tdep_h): New variable.
1599 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1601 2003-08-14 Michael Snyder <msnyder@redhat.com>
1603 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1605 2003-08-13 J. Brobecker <brobecker@gnat.com>
1607 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1608 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1611 2003-08-13 Michael Snyder <msnyder@redhat.com>
1613 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1614 (frv_saved_pc_after_call): Use deprecated ftype.
1615 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1616 (frv_remote_translate_xfer_address): Remove.
1617 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1619 2003-08-13 J. Brobecker <brobecker@gnat.com>
1621 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1622 initialization after the common gdbarch initialization, not before.
1624 2003-08-13 J. Brobecker <brobecker@gnat.com>
1626 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1627 (ADDR_BITS_REMOVE): Remove, redundant.
1629 2003-08-13 J. Brobecker <brobecker@gnat.com>
1631 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1632 gdbarch method to clear the 2 low bits of text addresses.
1634 2003-08-12 Andrew Cagney <cagney@redhat.com>
1636 * Makefile.in (dsrec.o): Update dependencies.
1637 * dsrec.c: Include "gdb_assert.h".
1638 (make_srec): Use snprintf instead of sprintf, use a literal format
1641 2003-08-12 Andrew Cagney <cagney@redhat.com>
1643 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1644 FRAME_OBSTACK_ZALLOC.
1646 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1648 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1651 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1653 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1654 amd64fbsd_sc_reg_offset): Add extern declarations.
1655 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1658 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1660 * MAINTAINERS (write after approval): Update my mail address.
1662 2003-08-10 Andrew Cagney <cagney@redhat.com>
1664 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1666 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1668 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1669 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1670 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1671 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1672 i386bsd_sc_reg_offset): Add extern declarations.
1673 * i386obsd-nat.c: Include "i386-tdep.h"
1674 (_initialize_i386obsd_nat): Remove extern declarations.
1675 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1677 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1680 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1681 instead of frame_read_register.
1682 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1683 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1685 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1686 instead of frame_unwind_unsigned_register. Use
1687 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1688 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1689 instead of read_register. Use builtin_type_void_data_ptr instead
1690 of builtin_type_void_func_ptr when extracting the address of the
1692 (i386_extract_return_value, i386_store_return_value,
1693 i386_pseudo_register_read, i386_pseudo_register_write): Use
1694 register_size instead REGISTER_RAW_SIZE.
1696 2003-08-10 Andrew Cagney <cagney@redhat.com>
1698 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1699 sprintf. Make "name" constant.
1701 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1703 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1704 instead of frame_read_register.
1705 (i387_print_float_info): Use get_frame_register and
1706 get_frame_register_unsigned instead of frame_register_read.
1708 * i386fbsd-nat.c: Include "i386-tdep.h".
1709 (child_resume): Make `eflags' an ULONGEST. Use
1710 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1711 instead of register_read and register_write.
1713 * i386bsd-nat.c (fetch_inferior_registers,
1714 store_inferior_registers): Don't use && at the end of a line.
1715 (_initialize_i386bsd_nat): Fix typo.
1717 * frame.c (_initialize_frame): Add missing backslash.
1719 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1720 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1721 and supply_register instead of manipulating the register buffer
1724 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1725 * config/i386/nm-i386sol2.h
1726 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1728 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1729 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1730 instructions that GCC likes to mingle into the prologue. Fixes
1731 gdb/1253 and gdb/1255.
1733 2003-08-09 Andrew Cagney <cagney@redhat.com>
1736 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1737 * command.h (add_setshow_uinteger_cmd): Declare.
1738 * frame.c (set_backtrace_cmd): New function.
1739 (show_backtrace_cmd): New function.
1740 * frame.c (_initialize_frame): Replace "set/show
1741 backtrace-below-main" with "set/show backtrace past-main". Add
1742 command "set/show backtrace limit".
1743 (backtrace_past_main): Rename "backtrace_below_main".
1744 (backtrace_limit): New variable.
1745 (get_prev_frame): Update. Check the backtrace_limit.
1747 2003-08-09 Andrew Cagney <cagney@redhat.com>
1749 * defs.h (xstrprintf): Declare.
1750 * utils.c (xstrprintf): New function.
1751 * breakpoint.c (insert_breakpoints): Replace sprintf and
1752 non-literal format strings, with xstrprintf and cleanups.
1753 (delete_breakpoint,breakpoint_re_set): Ditto.
1754 (commands_command, insert_breakpoints): Ditto.
1755 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1756 (break_at_finish_command_1): Ditto.
1758 2003-08-09 Andrew Cagney <cagney@redhat.com>
1760 * MAINTAINERS (language support): List Adam Fedor as Objective C
1763 2003-08-08 J. Brobecker <brobecker@gnat.com>
1765 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1766 are now multiarched.
1768 2003-08-08 J. Brobecker <brobecker@gnat.com>
1770 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1771 longer necessary now that hppa64 is partially multiarch'ed.
1773 2003-08-08 Andrew Cagney <cagney@redhat.com>
1775 * interps.c (interp_set): Check for a NULL "old_interp".
1777 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1779 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1780 (install-only): Support DESTDIR.
1781 (uninstall): Likewise.
1782 (install-gdbtk): Likewise.
1784 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1786 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1787 contains something meaningful at all times.
1789 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1791 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1793 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1795 * MAINTAINERS (write after approval): Added self.
1797 2003-08-07 Andrew Cagney <cagney@redhat.com>
1799 * inferior.h (AT_SYMBOL): Define.
1800 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1801 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1802 * mips-tdep.c (mips_call_dummy_address): Delete function.
1803 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1804 set call_dummy_address.
1806 2003-08-07 Andrew Cagney <cagney@redhat.com>
1808 * language.c (op_error): Delete function.
1809 (binop_type_check): Delete function.
1810 * language.h (type_op_error, range_op_error): Delete macros.
1811 (op_error): Delete declaration.
1813 2003-08-07 Andrew Cagney <cagney@redhat.com>
1815 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1817 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1819 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1820 (x86_64_push_arguments): Skip the red zone.
1822 2003-08-05 Andrew Cagney <cagney@redhat.com>
1824 * reggroups.c (reggroup_next): Check for the final entry.
1826 2003-08-04 Andrew Cagney <cagney@redhat.com>
1828 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1829 * cli/cli-script.c (define_command): Call query directly, instead
1830 of passing it a buffer.
1831 * ocd.c (ocd_error): Pass error a constant format string.
1832 * remote-mips.c (mips_error): Use fputs_filtered.
1834 * solib-svr4.c (_initialize_svr4_solib): Update
1835 register_gdbarch_data call.
1836 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1838 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1839 (register_gdbarch_data): Delete "free" parameter. Update
1841 * gdbarch.h, gdbarch.c: Re-generate.
1842 * reggroups.c (_initialize_reggroup): Update.
1843 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1844 * frame-base.c (_initialize_frame_base): Update.
1845 * frame-unwind.c (_initialize_frame_unwind): Update.
1846 * user-regs.c (_initialize_user_regs): Update.
1847 * remote.c (_initialize_remote): Update.
1848 * regcache.c (_initialize_regcache): Update.
1850 * regcache.c (xfree_regcache_descr): Delete function.
1851 (_initialize_regcache): Update call to register_gdbarch_data.
1852 (init_regcache_descr, init_legacy_regcache_descr): Use
1853 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1855 * remote.c (free_remote_state): Delete function.
1856 (_initialize_remote): Update register_gdbarch_data.
1857 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1858 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1860 2003-08-04 Andrew Cagney <cagney@redhat.com>
1862 * reggroups.c (struct reggroup_el): Define.
1863 (struct reggroups): Delete field "nr_group". Replace array
1864 "group" with a "first" to "last" linked list.
1865 (reggroups_init): Update. Allocate using gdbarch's obstack.
1866 (reggroups_free): Delete function.
1867 (add_group): Update. Add "el" parameter.
1868 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1869 (default_groups): Update.
1870 (reggroup_next): Replace reggroups.
1871 (reggroups_dump): Update.
1872 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1873 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1874 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1876 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1878 * Makefile.in (tui-interp.o): Update dependencies.
1880 2003-08-04 David Carlton <carlton@kealia.com>
1882 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1883 to internal_error call.
1884 * source.c (forward_search_command): Add "%s" format argument.
1885 (reverse_search_command): Ditto.
1886 * top.c (quit_confirm): Ditto.
1887 * cli/cli-setshow.c (do_setshow_command): Ditto.
1888 * cp-valprint.c (cp_print_class_method): Replace
1889 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1890 (cp_print_class_member): Ditto.
1891 * event-top.c (command_line_handler): Ditto.
1892 * linux-proc.c (linux_info_proc_cmd): Ditto.
1893 * p-typeprint.c (pascal_type_print_base): Ditto.
1894 * p-valprint.c (pascal_object_print_class_method): Ditto.
1895 (pascal_object_print_class_member): Ditto.
1896 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1897 * remote.c (remote_cisco_section_offsets): Ditto.
1898 * top.c (command_line_input): Ditto.
1899 * utils.c (vwarning,error_stream,quit): Ditto.
1900 * valprint.c (print_floating,print_binary_chars)
1901 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1903 2003-08-04 Andrew Cagney <cagney@redhat.com>
1905 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1907 2003-08-02 Andrew Cagney <cagney@redhat.com>
1909 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1910 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1913 2003-08-02 Andrew Cagney <cagney@redhat.com>
1915 * Makefile.in: Update all dependencies and definitions.
1917 2003-08-02 Adam Fedor <fedor@gnu.org>
1919 * linespec.c (is_objc_method_format): New function
1920 (decode_line_1, locate_first_half): Use it.
1923 2003-08-01 Andrew Cagney <cagney@redhat.com>
1925 * NEWS: Mention that m32r is multi-arch.
1926 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1927 * configure.tgt: Recognize m32r-*-*.
1928 * config/m32r/tm-m32r.h: Delete file.
1929 * config/m32r/m32r.mt: New file.
1930 * m32r-rom.c (m32r_upload_command): Use hostent only when
1931 gethostname succeeds, in order to avoid a compilation
1933 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1936 2003-08-01 Michael Snyder <msnyder@redhat.com>
1938 * sh-tdep.c (sh_frame_align): New gdbarch method.
1939 (sh_gdbarch_init): Set up frame_align method.
1941 2003-07-31 Michael Snyder <msnyder@redhat.com>
1943 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1944 which is already covered by the new frames infrastructure.
1946 2003-07-31 Andrew Cagney <cagney@redhat.com>
1948 * user-regs.c (struct user_reg): Add "next" link.
1949 (struct user_regs): Replace "user" with "first" and "last" links.
1950 (append_user_reg): Add pre-allocated "reg" parameter.
1951 (builtin_user_regs): Provide initial value for "last".
1952 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1953 (user_regs_init): Allocate memory from the gdbarch obstack.
1954 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1955 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1957 (usernum_to_user_reg): New function.
1958 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1959 (value_of_user_reg): Use usernum_to_user_reg.
1960 (user_regs_free): Delete function.
1961 (_initialize_user_regs): Update register_gdbarch_data call.
1963 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1965 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1967 2003-07-30 Michael Snyder <msnyder@redhat.com>
1969 * value.h (value_being_returned): Add a struct_addr argument.
1970 * infcall.c (call_function_by_hand): Pass struct_addr to
1971 value_being_returned.
1972 * infcmd.c (print_return_value): Pass zero as struct_addr.
1973 * values.c (value_being_returned): If struct_addr is passed,
1974 use it instead of trying to recover it from the inferior.
1976 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1978 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1979 the prologue analyzer won't need to attempt to extract the pc
1980 value from the woefully incomplete dummy frame.
1981 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1982 possible. Disable code which modifies the frame.
1984 2003-07-28 Andrew Cagney <cagney@redhat.com>
1986 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1988 (annotate_breakpoints_table, annotate_record): Ditto.
1989 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1990 (annotate_field_name_end, annotate_field_value): Ditto.
1991 (annotate_field_end, annotate_frame_source_begin): Ditto.
1992 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1993 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1994 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1995 (annotate_frame_address_end, annotate_frame_address): Ditto.
1996 (annotate_frame_args, annotate_frame_end): Ditto.
1997 (annotate_frame_where, annotate_arg_begin): Ditto.
1998 (annotate_arg_name_end, annotate_arg_value): Ditto.
1999 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2000 (annotate_function_call, annotate_signal_name): Ditto.
2001 (annotate_signal_string, annotate_signal_name_end): Ditto.
2002 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2003 (annotate_value_begin, annotate_value_history_value): Ditto.
2004 (annotate_value_history_end, annotate_value_end): Ditto.
2005 (annotate_display_begin, annotate_display_number_end): Ditto.
2006 (annotate_display_format, annotate_display_expression): Ditto.
2007 (annotate_display_expression_end, annotate_display_value): Ditto.
2008 (annotate_display_end, annotate_array_section_begin): Ditto.
2009 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2010 (annotate_elt, annotate_array_section_end): Ditto.
2012 2003-07-28 Andrew Cagney <cagney@redhat.com>
2014 * regcache.c (struct regcache_descr): Update comments on
2016 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2017 sizeof_raw_register_valid_p.
2018 (init_regcache_descr): Set nr_raw_registers and
2019 sizeof_raw_register_valid_p before calling
2020 init_legacy_regcache_descr.
2022 2003-07-28 Andrew Cagney <cagney@redhat.com>
2024 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2027 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2029 * thread.c (info_threads_command): Use get_selected_frame ().
2030 Check that there is at least one non-sentinel frame.
2032 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2034 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2035 (m68hc11_pop_frame): Remove.
2036 (m68hc11_frame_saved_pc): Remove.
2037 (m68hc11_frame_chain): Remove.
2038 (m68hc11_frame_init_saved_regs): Remove.
2039 (m68hc11_init_extra_frame_info): Remove.
2040 (m68hc11_store_struct_return): Remove.
2041 (m68hc11_saved_pc_after_call): Remove.
2043 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2045 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2046 frame unwind information.
2047 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2048 and adapted for frame unwinding.
2049 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2050 (m68hc11_unwind_pc): New function.
2051 (m68hc11_frame_unwind_cache): New function to analyze frames.
2052 (m68hc11_frame_this_id): New function to create new frame struct.
2053 (m68hc11_frame_prev_register): New function to unwind a register from
2055 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2056 (m68hc11_frame_p): New function for the above.
2057 (m68hc11_frame_base_address): New function to return fp of frame.
2058 (m68hc11_frame_args_address): Update for frame.
2059 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2060 (m68hc11_unwind_sp): New function.
2061 (m68hc11_unwind_dummy_id): New function.
2062 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2065 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2067 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2068 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2069 when we are beyond the current pc.
2071 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2073 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2074 from m68hc11_push_arguments.
2075 (m68hc11_push_arguments): Remove.
2076 (m68hc11_push_return_address): Remove.
2077 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2078 handlers; remove deprecated_extra_stack_alignment_needed.
2080 2003-07-27 Andrew Cagney <cagney@redhat.com>
2082 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2083 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2084 REAL_PC and not the pointer.
2085 * hppa-hpux-tdep.c: Include frame.h
2087 2003-07-27 Andrew Cagney <cagney@redhat.com>
2089 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2090 GDB_MULTI_ACH_PARTIAL.
2092 2003-07-27 Andrew Cagney <cagney@redhat.com>
2094 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2095 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2096 operator at start and not end of line.
2097 (decode_prologue): Ditto.
2098 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2099 frame_unwind_register_unsigned instead of
2100 frame_unwind_unsigned_register.
2101 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2103 (m32r_push_dummy_call): Use register_size instead of
2105 (m32r_frame_sniffer): Replace m32r_frame_p.
2106 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2107 * m32r-rom.c (report_transfer_performance): Delete extern
2109 (m32r_load, m32r_upload_command): Use print_transfer_performance
2110 instead of report_transfer_performance.
2111 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2112 / add_show_from_set.
2114 2003-07-26 Andrew Cagney <cagney@redhat.com>
2116 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2117 store_return_value and extract_struct_value_address.
2119 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2122 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2123 NULL, default to the section containing PC.
2125 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2127 * NEWS: Mention "regs" deprecated for m68hc11 too.
2129 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2130 (m68hc11_print_register): New function to print out one register.
2131 (m68hc11_print_registers_info): New function to print registers.
2132 (show_regs): Deprecate and use the above.
2133 (m68hc11_gdbarch_init): Install the print_registers_info.
2135 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2137 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2138 that we have a SIGTRAP before returning non-zero.
2140 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2141 Elena Zannoni <ezannoni@redhat.com>
2143 * linespec.c (decode_line_2): Avoid crash if
2144 find_function_start_sal() returns empty record.
2146 2003-07-23 Andreas Schwab <schwab@suse.de>
2148 * ia64-tdep.c (ia64_print_insn): New function.
2149 (ia64_gdbarch_init): Set print_insn to it.
2150 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2151 deprecated_tm_print_insn_info.
2153 2003-07-22 Michael Snyder <msnyder@redhat.com>
2155 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2156 handle 8-bit returns (long long).
2157 (h8300h_extract_return_value): Ditto.
2158 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2160 2003-07-22 Andrew Cagney <cagney@redhat.com>
2162 * gdbarch.c Include "gdb_obstack.h".
2163 (struct gdbarch): Add an "obstack".
2164 (alloc_gdbarch_data): Allocate the gdbarch data using
2165 GDBARCH_OBSTACK_CALLOC.
2166 (free_gdbarch_data): Delete function.
2167 (gdbarch_obstack_zalloc): New function.
2168 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2169 Assert that the architecture is not initialized.
2170 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2171 vector from the obstack.
2172 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2173 architecture obstack.
2174 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2175 (set_gdbarch_data): Assert that the data is not initialized.
2176 (struct gdbarch_data): Delete member "free".
2177 (register_gdbarch_data): Do not initialize "free".
2178 * gdbarch.h, gdbarch.c: Re-generate.
2180 2003-07-22 Andrew Cagney <cagney@redhat.com>
2182 * configure.in (build_warnings): Add -Wformat-nonliteral.
2183 * configure: Re-generate.
2185 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2187 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2189 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2191 * findvar.c (read_var_value): Remove case for thread local storage
2192 variables. It is now entirely handled by the dwarf2 location
2194 * printcmd.c (address_info): Ditto.
2195 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2197 (struct symbol): Remove objfile field, which was used by
2198 LOC_THREAD_LOCAL_STATIC only.
2199 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2200 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2201 usage of objfile pointer.
2202 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2203 thread local variables.
2204 Add include of objfiles.h.
2205 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2207 * Makefile.in (dwarf2loc.o): Update dependencies.
2209 2003-07-22 Andrew Cagney <cagney@redhat.com>
2211 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2213 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2214 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2215 (struct value): Add opaque declaration.
2216 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2218 2003-07-21 Andrew Cagney <cagney@redhat.com>
2220 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2221 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2223 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2225 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2226 regcache_cooked_read_unsigned instead of read_register.
2227 (m68hc11_saved_pc_after_call): Likewise.
2228 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2229 instead of write_register.
2230 (m68hc11_register_type): New function.
2231 (m68hc11_register_virtual_type): Remove.
2232 (m68hc11_store_return_value): Convert to use the regcache.
2233 (m68hc11_extract_struct_value_address): Likewise.
2234 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2235 m68hc11_register_type; undeprecate store_return_value and
2236 extract_struct_value_address.
2238 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2240 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2241 and translate to use regcache.
2242 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2244 2003-07-18 Andrew Cagney <cagney@redhat.com>
2246 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2247 * gdbarch.h, gdbarch.c: Re-generate.
2248 * i386-tdep.c (i386_gdbarch_init): Do not set
2249 DWARF2_BUILD_FRAME_INFO.
2250 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2252 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2253 DWARF2_BUILD_FRAME_INFO.
2255 2003-07-18 Andrew Cagney <cagney@redhat.com>
2257 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2258 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2260 2003-07-18 Andrew Cagney <cagney@redhat.com>
2262 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2263 frame_unwind_address_in_block, instead of frame_pc_unwind.
2264 (dwarf2_frame_cache): Ditto.
2266 2003-07-18 Andrew Cagney <cagney@redhat.com>
2268 * user-regs.h (struct gdbarch): Declare opaque.
2269 * ui-out.h (struct ui_file): Declare opaque.
2270 * dwarf2-frame.h (struct frame_info): Declare opaque.
2272 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2274 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2276 (procfs_meminfo): Change strerror to safe_strerror.
2277 (procfs_can_run): Remove K&R badness.
2279 2003-07-17 Michael Snyder <msnyder@redhat.com>
2281 * remote-sim.c: Comment typo fix.
2283 2003-07-17 Andrew Cagney <cagney@redhat.com>
2285 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2287 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2288 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2289 GDB_MULTI_ARCH_PARTIAL.
2291 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2293 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2294 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2295 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2297 2003-07-16 Theodore A. Roth <troth@openavr.org>
2299 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2301 (avr_frame_unwind_cache): Don't unwind FP for main.
2303 Save the computed prev_sp.
2304 (avr_saved_regs_unwinder): Remove function.
2305 (avr_frame_prev_register): Use PC unwind logic from
2306 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2308 2003-07-16 Andrew Cagney <cagney@redhat.com>
2310 * frame-base.h (frame_base_p_ftype): Delete definition.
2311 (frame_base_append_predicate): Delete declaration.
2312 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2313 (frame_unwind_append_predicate): Delete declaration.
2314 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2315 (append_predicate): Delete parameter "p".
2316 (frame_unwind_append_predicate): Delete function.
2317 (frame_unwind_append_sniffer): Update call to append_predicate.
2318 (frame_unwind_free): Delete function.
2319 (_initialize_frame_unwind): Pass NULL as "free" to
2320 register_gdbarch_data.
2321 (frame_unwind_init): Append the dummy_frame_sniffer.
2322 (frame_unwind_find_by_frame): Simplify.
2323 * frame-base.c (struct frame_base_table): Delete field "p".
2324 (append_predicate): Delete parameter "p".
2325 (frame_base_append_predicate): Delete function.
2326 (frame_base_append_sniffer): Update call to append_predicate.
2327 (frame_base_free): Delete function.
2328 (frame_base_find_by_frame): Simplify.
2329 (_initialize_frame_base): Pass NULL as "free" to
2330 register_gdbarch_data.
2331 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2332 (x86_64_sigtramp_frame_sniffer): Replace
2333 "x86_64_sigtramp_frame_p".
2334 (x86_64_init_abi): Set the frame unwind sniffers.
2335 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2336 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2337 (m68k_gdbarch_init): Set the frame unwind sniffers.
2338 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2339 "i386_sigtramp_frame_p".
2340 (i386_frame_sniffer): Replace "i386_frame_p".
2341 (i386_gdbarch_init): Set the frame unwind sniffers.
2342 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2343 (avr_gdbarch_init): Set the frame unwind sniffers.
2344 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2345 "alpha_sigtramp_frame_p"
2346 (alpha_heuristic_frame_sniffer): Replace
2347 "alpha_heuristic_frame_p".
2348 (alpha_gdbarch_init): Set the frame unwind sniffers.
2349 (alpha_dwarf2_init_abi): Ditto.
2350 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2351 "alpha_debug_frame_p".
2352 (alpha_mdebug_frame_base_sniffer): Replace
2353 "alpha_mdebug_frame_base_p".
2354 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2355 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2356 (d10v_gdbarch_init): Set the frame unwind sniffer.
2357 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2358 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2359 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2360 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2361 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2362 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2364 2003-07-16 Michael Snyder <msnyder@redhat.com>
2366 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2367 should go thru sh_dsp_register_sim_regno, else the dsp regs
2368 will not get the right values.
2370 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2372 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2373 deprecated_store_floating by call to store_typed_floating.
2374 (sh_sh4_register_convert_to_raw): Substitute call to
2375 deprecated_extract_floating by call to extract_typed_floating.
2377 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2379 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2381 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2383 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2384 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2385 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2387 (do_pseudo_register): Remove.
2388 (sh_push_dummy_code): New function.
2389 (sh64_store_struct_return): Rename from sh_store_struct_return.
2390 Only called for sh64 now.
2391 (sh_extract_struct_value_address): Regcache'ify.
2392 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2393 and accomodate new tasks.
2394 (sh64_push_return_address): Rename from sh_push_return_address.
2395 Only called for sh64 now.
2396 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2398 (sh3e_sh4_extract_return_value): Regcache'ify.
2399 (sh_default_store_return_value): Ditto.
2400 (sh3e_sh4_store_return_value): Ditto.
2401 (sh_default_register_byte): Remove.
2402 (sh_sh4_register_byte): Remove.
2403 (sh_default_register_raw_size): Remove.
2404 (sh_sh4_register_raw_size): Remove.
2405 (sh_register_virtual_size): Remove.
2406 (sh_sh3e_register_virtual_type): Remove.
2407 (sh_sh3e_register_type): New function.
2408 (sh_sh4_register_virtual_type): Remove.
2409 (sh_sh4_register_type): New function.
2410 (sh_default_register_virtual_type): Remove.
2411 (sh_default_register_type): New function.
2412 (do_fv_register_info): Add parameters to accomodate call from
2413 sh_print_registers_info.
2414 (do_dr_register_info): Ditto.
2415 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2416 Add parameters to accomodate call from sh_print_registers_info.
2417 (sh_do_fp_register): Ditto.
2418 (sh64_do_pseudo_register): Call do_dr_register_info,
2419 do_fv_register_info and sh_do_fp_register with default parameters.
2420 (sh_do_register): Add parameters to accomodate call from
2421 sh_print_registers_info.
2422 (sh_print_register): Ditto.
2423 (sh_print_registers_info): Rename from sh_do_registers_info.
2424 Add parameters to be used as gdbarch_print_registers_info
2425 implementation. Accomodate removed do_pseudo_register function
2427 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2428 function pointer. Call sh_print_register with default parameters.
2429 (sh64_do_registers_info): Call sh_print_registers_info instead of
2430 sh_do_registers_info.
2431 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2432 detection of deprecated vs. non-deprecated functionality.
2433 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2434 function pointer assignments by direct function calls.
2436 2003-07-15 Andrew Cagney <cagney@redhat.com>
2438 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2439 (frame_register_unwind, create_new_frame): Ditto.
2440 (legacy_get_prev_frame, get_frame_type): Ditto.
2441 (get_frame_base_address): Use frame_base_find_by_frame.
2442 (get_frame_locals_address): Use frame_base_find_by_frame.
2443 (get_frame_args_address): Use frame_base_find_by_frame.
2444 * frame-base.h (frame_base_sniffer_ftype): Declare.
2445 (frame_base_append_sniffer): Declare.
2446 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2447 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2448 (frame_base_append_sniffer): New function.
2449 (frame_base_append_predicate): Add a NULL sniffer.
2450 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2451 (struct frame_base_table): Add "sniffer".
2452 (frame_base_free): Free the "sniffer" table.
2453 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2454 (frame_unwind_append_sniffer): Declare.
2455 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2456 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2457 (struct frame_unwind_table): Add "sniffer", delete "middle".
2458 (append_predicate): Add "sniffer" parameter, append the sniffer.
2459 (frame_unwind_init): Update append_predicate call.
2460 (frame_unwind_append_sniffer): New function.
2461 (frame_unwind_append_predicate): Update append_predicate call.
2462 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2464 2003-07-15 Andrew Cagney <cagney@redhat.com>
2466 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2467 before code inhibiting repeated unwind attempts. Add to
2468 commentary on that test's problems.
2469 * blockframe.c (inside_main_func): Look for "main" in the minimal
2471 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2474 2003-07-15 Andrew Cagney <cagney@redhat.com>
2476 * complaints.c (struct explanation): Define.
2477 (struct complaints): Change type of "explanation" to "struct
2479 (symfile_explanations): Convert to a "struct explanation" table.
2480 (vcomplaint): Update.
2482 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2484 * x86-64-linux-nat.c (regmap): Removed.
2485 (supply_gregset, fill_gregset): Call
2486 x86_64_linux_(fill,supply)_gregset functions.
2487 * x86-64-linux-tdep.c (USER_*): New defines.
2488 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2489 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2491 (fetch_core_registers): Ditto.
2492 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2493 * x86-64-linux-tdep.h: New file.
2494 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2496 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2498 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2500 * x86-64-tdep.c (x86_64_store_return_value): Use
2501 regcache_cooked_write_part instead of regcache_cooked_write.
2503 * configure.host: Add x86_64-*-freebsd*.
2504 * configure.tgt: Add x86_64-*-freebsd*.
2505 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2506 * amd64fbsd-nat.c: New file.
2507 * amd64fbsd-tdep.c: New file.
2508 * config/i386/nm-fbsd64.h: New file.
2509 * config/i386/fbsd64.mh: New file.
2510 * config/i386/fbsd64.mt: New file.
2512 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2514 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2515 `sc_regs_offset' and `sc_fpregs_offset'.
2516 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2517 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2518 (alpha_sigtramp_register_address): Rewrite to use new members of
2519 `struct gdbarch_tdep'.
2520 (alpha_gdbarch_init): Initialize new members of struct
2522 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2523 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2524 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2525 (alphafbsd_pc_in_sigtramp): Implement.
2526 (alphafbsd_sigtramp_offset): New function.
2527 (alphafbsd_sigcontext_addr): New function.
2528 (alphafbsd_init_abi): Initialize signal trampoline related members
2529 of `struct gdbarch_tdep'.
2530 (_initialize_alphafbsd_tdep): Add prototype.
2532 2003-07-11 Theodore A. Roth <troth@openavr.org>
2534 * Makefile.in (install-only): Quote sed expression when generating
2537 2003-07-11 Richard Henderson <rth@redhat.com>
2539 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2540 * dwarf2-frame.c: Include complaints.h.
2541 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2542 variable initialization; return NULL on error.
2543 (decode_frame_entry): New.
2545 2003-07-11 Andrew Cagney <cagney@redhat.com>
2547 * frame.h (frame_address_in_block): Delete declaration.
2548 * blockframe.c (frame_address_in_block): Delete function.
2549 (get_frame_block): Use get_frame_address_in_block.
2550 (block_innermost_frame): Ditto.
2551 * stack.c (print_frame, backtrace_command_1): Ditto.
2553 * frame.h (get_frame_address_in_block): Declare.
2554 (frame_unwind_address_in_block): Declare.
2555 * frame.c (frame_unwind_address_in_block): New function.
2556 (get_frame_address_in_block): New function.
2558 2003-07-10 Andrew Cagney <cagney@redhat.com>
2560 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2561 pre-default. Note: re-generate has no effect.
2563 2003-07-10 Andrew Cagney <cagney@redhat.com>
2565 * gdbarch.sh: When a variable, but not a function, compare against
2566 0. Fix problem in previous patch.
2567 * gdbarch.c: Re-generate.
2569 2003-07-10 Andrew Cagney <cagney@redhat.com>
2571 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2572 functions against NULL, not 0.
2573 * gdbarch.c: Re-generate.
2575 2003-07-10 Fred Fish <fnf@ninemoons.com>
2577 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2578 null string instead of a null pointer.
2579 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2581 2003-07-09 Michael Snyder <msnyder@redhat.com>
2583 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2585 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2587 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2588 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2589 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2590 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2591 * x86-64-tdep.c: ... from here.
2593 2003-07-09 Andreas Schwab <schwab@suse.de>
2595 * m68k-tdep.h (enum struct_return): Define.
2596 (struct gdbarch_tdep): Add struct_return.
2597 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2598 bytes are padded to the right, not to the left. Pass struct value
2599 address in register %a1, not on stack.
2600 (m68k_use_struct_convention): New function.
2601 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2602 struct_return in tdep to pcc_struct_return.
2603 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2606 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2608 * somread.c (som_symfile_offsets): Fix compilation error.
2610 2003-07-09 Andrew Cagney <cagney@redhat.com>
2612 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2613 Add comments about the checks.
2615 2003-07-08 Andrew Cagney <cagney@redhat.com>
2617 * Makefile.in: Make dependency section headers consistent.
2618 (config_h): Move to $BUILD headers section.
2619 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2620 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2621 (ada-exp.tab.c): Move to YACC/LEX section.
2622 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2623 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2625 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2627 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2628 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2629 of strerror with safe_strerror, use ISO C function definitions,
2630 and replace instances of sprintf with snprintf.
2632 2003-07-07 Andrew Cagney <cagney@redhat.com>
2634 * frame.c (get_prev_frame): Enable check for identical frames.
2635 Update comments. Update error messages.
2637 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2639 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2641 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2643 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2644 sort_symtab_syms, no longer necessary.
2646 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2648 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2650 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2652 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2653 (mips_register_byte): Likewise.
2655 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2657 * Makefile.in (sparc_tdep_h): New.
2658 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2659 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2660 * sparc-linux-nat.c: Include "sparc-tdep.h".
2661 * sparc-nat.c: Likewise.
2662 * sparc-tdep.c: Likewise.
2663 * sparc64nbsd-nat.c: Likewise.
2664 * sparcnbsd-nat.c: Likewise.
2665 * sparcnbsd-tdep.c: Likewise.
2666 * sparc-tdep.h: New file.
2667 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2668 and sparc_npc_regnum.
2670 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2672 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2673 (mips_linux_cannot_store_register): List supported instead of
2674 unsupported registers.
2676 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2678 * disasm.c (dump_insns): Separate instructions from addresses.
2680 2003-07-07 Andreas Schwab <schwab@suse.de>
2682 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2684 * m68k-tdep.c (NUM_FREGS): Delete.
2685 (SIG_PC_FP_OFFSET): Delete.
2686 (TARGET_M68K): Delete.
2687 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2688 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2689 P_MOVEL_SP, P_MOVEML_SP): Define.
2690 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2692 (m68k_register_raw_size): Delete.
2693 (m68k_register_virtual_size): Delete.
2694 (m68k_register_type): Renamed from m68k_register_virtual_type and
2695 add gdbarch argument.
2696 (m68k_store_struct_return): Delete.
2697 (m68k_deprecated_extract_return_value): Delete.
2698 (m68k_deprecated_extract_struct_value_address): Delete.
2699 (m68k_frame_chain): Delete.
2700 (m68k_frame_saved_pc): Delete.
2701 (m68k_fix_call_dummy): Delete.
2702 (m68k_push_dummy_frame): Delete.
2703 (m68k_pop_frame): Delete.
2704 (m68k_extract_return_value): New function.
2705 (m68k_store_return_value): Rewrite using regcache.
2706 (m68k_extract_struct_value_address): Rewrite using regcache.
2707 (m68k_push_dummy_call): New function.
2708 (struct m68k_frame_cache): Define.
2709 (m68k_alloc_frame_cache): New function.
2710 (m68k_analyze_frame_setup): New function.
2711 (m68k_analyze_register_saves): New function.
2712 (m68k_analyze_prologue): New function.
2713 (m68k_skip_prologue): Rewrite using above functions.
2714 (m68k_unwind_pc): New function.
2715 (m68k_frame_cache): New function.
2716 (m68k_frame_this_id): New function.
2717 (m68k_frame_prev_register): New function.
2718 (m68k_frame_unwind): New variable.
2719 (m68k_frame_p): New function.
2720 (m68k_sigtramp_frame_cache): New function.
2721 (m68k_sigtramp_frame_this_id): New function.
2722 (m68k_sigtramp_frame_prev_register): New function.
2723 (m68k_sigtramp_frame_unwind): New variable.
2724 (m68k_sigtramp_frame_p): New function.
2725 (m68k_frame_base_address): New function.
2726 (m68k_frame_base): New function.
2727 (m68k_unwind_dummy_id): New function.
2728 (fill_gregset): Use regcache_collect.
2729 (fill_fpregset): Likewise.
2730 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2732 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2733 deprecated_init_frame_pc, deprecated_store_struct_return,
2734 deprecated_extract_return_value, deprecated_store_return_value,
2735 deprecated_frame_chain, deprecated_frame_saved_pc,
2736 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2737 deprecated_register_virtual_size,
2738 deprecated_max_register_raw_size,
2739 deprecated_max_register_virtual_size,
2740 deprecated_register_virtual_type, deprecated_register_size,
2741 deprecated_register_byte, deprecated_register_bytes,
2742 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2743 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2744 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2745 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2746 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2747 deprecated_push_dummy_frame, deprecated_pop_frame,
2748 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2749 only if SYSCALL_TRAP is defined. Set extract_return_value,
2750 store_return_value, extract_struct_value_address, register_type,
2751 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2753 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2754 M68K_MAX_REGISTER_SIZE): Define.
2755 (struct m68k_sigtramp_info): Define.
2756 (struct gdbarch_tdep): Add get_sigtramp_info.
2757 * m68klinux-nat.c (fetch_register): Use register_size instead of
2758 REGISTER_RAW_SIZE. Don't put assignment in if.
2759 (store_register): Likewise.
2760 (fetch_inferior_registers): Likewise.
2761 (store_inferior_registers): Likewise.
2762 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2763 (m68k_linux_frame_saved_pc): Delete.
2764 (m68k_linux_sigcontext_reg_offset,
2765 m68k_linux_ucontext_reg_offset): Define.
2766 (m68k_linux_get_sigtramp_info): New function.
2767 (m68k_linux_extract_return_value): Rewrite using regcache.
2768 (m68k_linux_store_return_value): Likewise.
2769 (m68k_linux_extract_struct_value_address): Likewise.
2770 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2771 Don't set deprecated_frame_saved_pc,
2772 deprecated_extract_return_value, deprecated_store_return_value,
2773 deprecated_extract_struct_value_address. Set
2774 extract_return_value, store_return_value,
2775 extract_struct_value_address.
2777 2003-07-07 Andrew Cagney <cagney@redhat.com>
2779 * expprint.c: Include "user-regs.h" instead of "frame.h".
2780 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2781 frame_map_regnum_to_name.
2782 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2783 (frame_map_name_to_regnum): Simplify, call
2784 user_reg_map_name_to_regnum.
2785 (frame_map_regnum_to_name): Simplify, call
2786 user_reg_map_regnum_to_name.
2787 (frame_register_unwind): Update.
2788 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2789 (_initialize_frame_reg): Call user_reg_add_builtin.
2790 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2791 (value_of_register): Use value_of_user_reg.
2792 * eval.c (evaluate_subexp_standard): Update.
2793 * parse.c (write_dollar_variable): Update.
2794 * d10v-tdep.c (d10v_print_registers_info): Update.
2795 * infcmd.c (registers_info): Update.
2796 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2797 (builtin_regs_h): Delete macro.
2798 (user_regs_h): Define.
2799 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2800 (builtin-regs.o): Delete target.
2801 (user-regs.o): Specify dependencies.
2802 (expprint.o): Update dependencies.
2803 (findvar.o): Update dependencies.
2804 (frame.o): Update dependencies.
2805 (std-regs.o): Update dependencies.
2807 2003-07-06 Christopher Faylor <cgf@redhat.com>
2809 * win32-nat.c (solib_symbols_add): Use one variable for all section
2810 address stuff. Pass variable rather than address of variable to
2811 safe_symbol_file_add.
2813 2003-07-06 Andreas Schwab <schwab@suse.de>
2815 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2817 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2819 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2821 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2823 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2825 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2827 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2828 * config/i386/nto.mh: New file.
2829 * config/i386/nm-nto.h: New file.
2830 * configure.host: Add i[3456]86-*-nto*.
2832 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2834 * remote-vx.c (vx_add_symbols): Fix compilation error.
2836 2003-07-03 Andrew Cagney <cagney@redhat.com>
2838 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2839 * gdbarch.h, gdbarch.c: Re-generate.
2840 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2841 (legacy_register_name): Declare.
2842 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2843 (REGISTER_NAME): Define.
2844 * sparc-tdep.c (legacy_register_name): New function.
2845 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2846 (REGISTER_NAME): Define.
2847 (hppa64_register_name): Declare.
2848 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2849 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2850 (hppa64_register_name): New function.
2851 (hppa_register_name): New function.
2852 * arch-utils.c (legacy_register_name): Delete.
2853 * arch-utils.h (legacy_register_name): Delete.
2855 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2857 * cli/cli-interp.c (cli_interpreter_resume): Update the
2858 cli_uiout's stream to gdb_stdout.
2860 2003-07-03 Andrew Cagney <cagney@redhat.com>
2862 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2864 * gdbarch.h, gdbarch.c: Re-generate.
2865 * regcache.c (init_regcache_descr): Use legacy code when either
2866 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2868 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2870 * NEWS: Move "set logging" entry into GDB 6.0 section.
2872 2003-07-02 Jim Blandy <jimb@redhat.com>
2874 * s390-tdep.c (struct frame_extra_info): new member:
2875 'stack_bought_valid'.
2876 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2877 initialize fextra_info->stack_bought.
2878 (s390_frameless_function_invocation): Don't trust the value of
2879 fextra_info_ptr->stack_bought unless
2880 fextra_info->stack_bought_valid is set.
2882 New S390 prologue analyzer.
2883 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2884 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2885 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2886 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2887 compute_x_addr, s390_on_stack, s390_store,
2888 s390_get_signal_frame_info): New functions.
2889 (S390_NUM_SPILL_SLOTS): New macro.
2890 (s390_get_frame_info): Rewritten.
2891 (is_arg_reg): Deleted.
2893 Break out the decoding of S/390 instructions into separate
2894 functions, to make it more legible, and easier to check
2896 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2897 is_rx, is_rxe): New functions.
2898 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2899 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2900 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2901 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2902 enums for opcode values. (Is this an improvement?)
2904 2003-07-02 Andrew Cagney <cagney@redhat.com>
2906 * i386-tdep.c: Revert change committed as part of trad-frame code
2909 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2911 * breakpoint.c (insert_catchpoint): Make static.
2913 2003-07-02 Andreas Schwab <schwab@suse.de>
2915 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2916 former ia64_push_arguments and ia64_push_return_address, and use
2917 regcache functions instead of read/write_register.
2918 (ia64_gdbarch_init): Set push_dummy_call instead of
2919 deprecated_push_arguments and deprecated_push_return_address.
2921 2003-07-01 Andreas Jaeger <aj@suse.de>
2923 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2925 Set %rax only to number of SSE registers used.
2927 2003-07-01 Andrew Cagney <cagney@redhat.com>
2929 * trad-frame.h: Update comments, a -1 .addr is reserved.
2930 (trad_frame_value_p, trad_frame_addr_p): Declare.
2931 (trad_frame_reg_p): Declare.
2932 (trad_frame_set_value): Rename trad_frame_register_value.
2933 (trad_frame_set_unknown): Declare.
2934 * trad-frame.c (trad_frame_realreg_p): New function.
2935 (trad_frame_addr_p, trad_frame_value_p): New function.
2936 (trad_frame_set_unknown): New function.
2937 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2938 (trad_frame_prev_register): Use trad_frame_realreg_p,
2939 trad_frame_addr_p and trad_frame_value_p.
2940 (trad_frame_set_value): Rename trad_frame_register_value.
2941 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2942 and trad_frame_set_value.
2944 2003-06-30 Jim Blandy <jimb@redhat.com>
2946 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2947 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2948 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2949 for 16 registers, and then 32 more bytes.
2950 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2952 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2953 Move up in the file, since it's now used by is_simple_arg.
2954 (is_simple_arg): Don't assume registers are four bytes long.
2955 Exclude all double arguments. Extended floats are not simple
2957 (is_power_of_two): New function.
2958 (pass_by_copy_ref): Call is_power_of_two, and check that the
2959 length fits in a register, rather than listing all the acceptable
2960 sizes. Extended floats are not passed by reference.
2961 (s390_push_arguments): Don't assume registers are four bytes long.
2962 Reserve an argument register to point to the buffer for structures
2963 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2964 S390_STACK_FRAME_OVERHEAD.
2966 2003-06-30 Andreas Schwab <schwab@suse.de>
2968 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2969 format error message.
2971 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2973 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2975 2003-06-30 David Carlton <carlton@kealia.com>
2977 Band-aid for PR c++/1245.
2978 * Makefile.in (cp-support.o): Depend on complaints_h.
2979 * cp-support.c: Include complaints.h. Add declaration for
2980 find_last_component.
2981 (cp_find_first_component): Separate code into
2982 cp_find_first_component_aux.
2983 (cp_find_first_component_aux): Call demangled_name_complaint.
2984 (demangled_name_complaint): New.
2986 2003-06-30 Andrew Cagney <cagney@redhat.com>
2988 * remote.c (remote_write_bytes): Explicitly compute and then use
2989 the payload size. Update comments to reflect. Fixes problem of
2990 GDB not sending small packets as found by Fred Fish.
2992 2003-06-30 Andrew Cagney <cagney@redhat.com>
2994 * remote.c (remote_async_wait): Fix -Wformat problem.
2996 2003-06-29 Andrew Cagney <cagney@redhat.com>
2998 * remote.c (remote_wait): Call error, and not warning, when the
3000 (remote_async_wait): Ditto.
3002 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3004 * sparc-tdep.c (sparc_y_regnum): Make external again.
3006 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3008 * cli/cli-logging.c (pop_output_files): Add void to function
3011 2003-06-29 Andrew Cagney <cagney@redhat.com>
3013 * frame.c (frame_register_unwind): Use unsigned char when dumping
3014 the buffer contents.
3016 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3018 * cli/cli-logging.c: New file.
3019 * cli-out.c (struct ui_out_data): Add original_stream.
3020 (cli_redirect): New function.
3021 (cli_ui_out_impl): Add cli_redirect.
3022 (cli_out_new): Initialize original_stream.
3023 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3024 (uo_redirect, ui_out_redirect): New.
3025 * ui-out.h (struct ui_out_impl): Add redirect member.
3026 (redirect_ftype): New.
3027 (ui_out_redirect): Add prototype.
3028 * Makefile.in: Add rules for cli-logging.c.
3029 * NEWS: Mention "set logging".
3031 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3033 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3035 2003-06-27 Andrew Cagney <cagney@redhat.com>
3037 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3038 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3039 * avr-tdep.c (avr_call_dummy_address): Delete function.
3040 (avr_gdbarch_init): Do not set call_dummy_address.
3042 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3044 * symfile.c (syms_from_objfile): Move variables to inner block.
3045 Move the checks for the non-mainline case a bit earlier to avoid
3046 doing some useless computations.
3048 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3050 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3052 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3054 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3057 2003-06-26 Michael Chastain <mec@shout.net>
3059 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3060 gdb/testsuite/gdb.c++/pr-1210.exp.
3062 2003-06-26 Andrew Cagney <cagney@redhat.com>
3064 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3065 altivec_expression.h and altivec_registers.h.
3067 2003-06-26 Andrew Cagney <cagney@redhat.com>
3069 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3070 info->mach when MIPS16. Patch suggested by Fred Fish.
3072 2003-06-26 Andrew Cagney <cagney@redhat.com>
3074 * utils.c (internal_vproblem): Print the problem to a reason
3075 buffer and then pass to query. Make the msg variable more local.
3077 2003-06-26 Andrew Cagney <cagney@redhat.com>
3079 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3080 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3081 * gdbarch.h, gdbarch.c: Re-generate.
3082 * frame-base.c (default_frame_args_address): Update. Use
3083 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3085 (default_frame_locals_address): Ditto for
3086 DEPRECATED_FRAME_LOCALS_ADDRESS.
3087 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3088 (vax_frame_num_args): Update.
3089 (vax_gdbarch_init): Update.
3090 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3091 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3092 * mcore-tdep.c (mcore_gdbarch_init): Update.
3093 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3094 * ia64-tdep.c (ia64_gdbarch_init): Update.
3095 * symtab.h (address_class): Update comments.
3096 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3097 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3098 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3099 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3100 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3101 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3102 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3103 * alpha-mdebug-tdep.c: Update.
3104 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3106 2003-06-26 Andreas Jaeger <aj@suse.de>
3108 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3109 of SSE registers so that varargs functions work. Rework handling
3110 of passing arguments on the stack.
3111 (x86_64_store_return_value): Return double and float values in SSE
3114 2003-06-24 Michael Chastain <mec@shout.net>
3116 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3117 the "constructor breakpoints ignored" bug.
3119 2003-06-25 David Carlton <carlton@kealia.com>
3121 * MAINTAINERS: Update e-mail address.
3123 2003-06-24 Jim Blandy <jimb@redhat.com>
3125 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3127 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3129 (ppc_linux_init_abi): Register it as the
3130 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3132 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3133 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3136 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3137 (ppc64_standard_linkage_target): Use it.
3139 2003-06-23 Andrew Cagney <cagney@redhat.com>
3141 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3142 for 0 "int0" and 4 "int32" sized registers.
3143 * gdbtypes.c (builtin_type_int0): Define.
3144 (build_gdbtypes): Initialize builtin_type_int0.
3145 * gdbtypes.h (builtin_type_int0): Declare.
3147 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3149 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3150 as characters are unsigned.
3152 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3155 * dwarfread.c (struct_type): Skip static fields without crashing.
3157 2003-06-22 Andrew Cagney <cagney@redhat.com>
3159 GDB 6.0 branch created.
3161 * PROBLEMS: Update. Empty.
3164 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3166 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3167 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3169 2003-06-22 Andrew Cagney <cagney@redhat.com>
3171 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3172 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3175 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3177 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3180 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3182 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3183 argument of val_print.
3184 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3185 to the address argument of baseclass_offset or target_read_memory.
3186 Do add it to the argument of cp_print_value_fields.
3188 2003-06-21 Andrew Cagney <cagney@redhat.com>
3190 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3191 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3192 instead of 0..NUM_REGS.
3193 (mips_register_reggroup_p): New function.
3194 (mips_pseudo_register_write): New function.
3195 (mips_pseudo_register_read): New function.
3196 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3197 based on the register's type.
3198 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3200 (mips_get_saved_register): Simplify. Assert that REGNO is a
3202 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3203 (mips_register_type): Replace mips_register_virtual_type. Map
3204 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3206 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3207 that the register is cooked / virtual.
3208 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3209 Only get the extra info when needed.
3210 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3211 (mips32_heuristic_proc_desc): Fetch the cooked register.
3212 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3213 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3214 (mips_print_register): Use gdbarch_register_type, instead of
3215 REGISTER_VIRTUAL_TYPE.
3216 (print_gp_register_row): Use gdbarch_register_type, instead of
3217 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3218 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3219 Print the pseudo / cooked registers.
3220 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3221 Print the pseudo / cooked registers.
3222 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3223 REG_NUM is pseudo / cooked.
3224 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3225 (mips_n32n64_xfer_return_value): Ditto.
3226 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3227 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3228 (mips_register_sim_regno): New function.
3229 (mips_gdbarch_init): Set deprecated_register_byte,
3230 register_group_p, pseudo_register_write, pseudo_register_read,
3231 register_sim_regno, and num_pseudo_regs. Set register_type,
3232 instead of register_virtual_type.
3233 * Makefile.in (mips-tdep.o): Update dependencies.
3234 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3235 REGISTER_VIRTUAL_TYPE.
3236 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3237 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3238 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3239 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3240 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3242 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3244 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3245 * cli/cli-cmds.c: Include "gdb_vfork.h".
3246 (shell_escape): Use vfork.
3248 2003-06-21 Andrew Cagney <cagney@redhat.com>
3250 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3251 32 bit floating-point register saves.
3253 * frame.h (deprecated_unwind_get_saved_register): Delete.
3254 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3255 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3256 and deprecated_get_next_frame_hack instead of
3257 deprecated_unwind_get_saved_register.
3259 * mips-tdep.c (mips_dump_tdep): Do not print
3260 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3262 * frame.c (get_frame_register): New function.
3263 (frame_unwind_register_signed): New function.
3264 (get_frame_register_signed): New function.
3265 (frame_unwind_register_unsigned): New function.
3266 (get_frame_register_unsigned): New function.
3267 * frame.h: Add comments on naming schema.
3268 (get_frame_register, frame_unwind_register_signed): Declare.
3269 (get_frame_register_signed, get_frame_register_signed): Declare.
3270 (frame_unwind_register_unsigned): Declare.
3271 (get_frame_register_unsigned): Declare.
3273 2003-06-20 Theodore A. Roth <troth@openavr.org>
3275 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3277 2003-06-20 Theodore A. Roth <troth@openavr.org>
3279 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3280 (avr_read_sp): Ditto.
3282 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3284 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3285 * config/arm/nm-linux.h: Likewise.
3286 * config/arm/tm-linux.h: Likewise.
3287 * config/ia64/nm-linux.h: Likewise.
3288 * config/ia64/tm-ia64.h: Likewise.
3289 * config/s390/tm-linux.h: Likewise.
3290 * config/s390/tm-s390.h: Likewise.
3291 * s390-nat.c: Likewise.
3292 * s390-tdep.c: Likewise.
3294 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3295 * config/ia64/linux.mt: Likewise.
3296 * config/m68k/linux.mh: Likewise.
3297 * config/mips/linux.mt: Likewise.
3298 * config/powerpc/linux.mh: Likewise.
3299 * config/sh/linux.mt: Likewise.
3301 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3303 * solib.c (solib_open): Change tests for whether to search
3304 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3307 2003-06-19 Theodore A. Roth <troth@openavr.org>
3309 * avr-tdep.c (avr_frame_address): Delete function.
3310 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3311 set_gdbarch_frame_args_address.
3313 2003-06-19 Andrew Cagney <cagney@redhat.com>
3315 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3316 (REGISTER_CONVERT_FROM_TYPE): Delete.
3317 (mips_register_convert_to_type): Delete declaration.
3318 (mips_register_convert_from_type): Delete declaration.
3319 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3322 2003-06-19 Michael Snyder <msnyder@redhat.com>
3324 * linux-nat.h: New file.
3325 * linux-nat.c: Include linux-nat.h.
3326 * lin-lwp.c: Include linux-nat.h.
3327 Move struct lwp_info def to linux-nat.h.
3328 * linux-proc.c: Include linux-nat.h.
3329 (linux_make_note_section): Iterate over lwps instead of threads.
3330 (linux_do_thread_registers): Use lwp instead of merged pid.
3331 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3332 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3333 Add dependency on linux_nat_h.
3335 2003-06-19 Theodore A. Roth <troth@openavr.org>
3337 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3339 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3341 * varobj.c (get_type, get_target_type): Use check_typedef.
3343 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3345 * breakpoint.c (insert_catchpoint): Call internal_error.
3347 2003-06-19 Theodore A. Roth <troth@openavr.org>
3349 * avr-tdep.c (avr_push_dummy_code): Delete function.
3350 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3352 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3354 * arch-utils.c (default_prepare_to_proceed): Remove.
3355 (generic_prepare_to_proceed): Remove.
3356 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3357 (generic_prepare_to_proceed): Remove prototype.
3358 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3359 * gdbarch.c: Regenerate.
3360 * gdbarch.h: Regenerate.
3361 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3362 * hppah-nat.c (hppa_switched_threads): Remove.
3363 * infrun.c (prepare_to_proceed): New static function, copied from
3364 generic_prepare_to_proceed. Remove select_it argument.
3365 (proceed): Call prepare_to_proceed.
3366 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3368 (ptrace_wait): Don't set the removed variables.
3369 (hppa_switched_threads): Remove.
3370 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3371 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3372 (lin_lwp_prepare_to_proceed): Remove prototype.
3373 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3374 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3376 2003-06-18 Theodore A. Roth <troth@openavr.org>
3378 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3380 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3381 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3382 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3383 (AVR_PROLOGUE_*): Enumerate prologue types.
3384 (struct frame_extra_info): Remove.
3385 (struct avr_unwind_cache): Define.
3386 (avr_write_sp): Delete function.
3387 (avr_read_fp): Ditto.
3388 (avr_init_extra_frame_info): Ditto.
3389 (avr_pop_frame): Ditto.
3390 (avr_frame_saved_pc): Ditto.
3391 (avr_saved_pc_after_call): Ditto.
3392 (avr_push_return_address): Ditto.
3393 (avr_frame_chain): Ditto.
3394 (avr_store_struct_return): Ditto.
3395 (avr_push_arguments): Ditto.
3396 (avr_scan_prologue): Update comments. Changed to set up the info for
3397 cache unwinding. Now returns end of prologue PC.
3398 (avr_skip_prologue): Better handling of functions lacking a prologue
3399 by using avr_scan_prologue.
3400 (avr_scan_arg_moves): New function.
3401 (avr_saved_regs_unwinder): Ditto.
3402 (avr_frame_unwind_cache): Ditto.
3403 (avr_unwind_pc): Ditto.
3404 (avr_frame_this_id): Ditto.
3405 (avr_frame_prev_register): Ditto.
3406 (avr_frame_p): Ditto.
3407 (avr_frame_base_address ): Ditto.
3408 (avr_unwind_dummy_id): Ditto.
3409 (avr_push_dummy_code): Ditto.
3410 (push_stack_item): Ditto.
3411 (pop_stack_item): Ditto.
3412 (avr_push_dummy_call): Ditto.
3413 (struct stack_item): Define.
3414 (avr_frame_unwind): Declare structure.
3415 (avr_frame_base): Ditto.
3416 (avr_gdbarch_init): Remove calls to
3417 set_gdbarch_deprecated_init_frame_pc,
3418 set_gdbarch_deprecated_target_read_fp,
3419 set_gdbarch_deprecated_dummy_write_sp,
3420 set_gdbarch_deprecated_fp_regnum,
3421 set_gdbarch_deprecated_push_arguments,
3422 set_gdbarch_deprecated_push_return_address,
3423 set_gdbarch_deprecated_pop_frame,
3424 set_gdbarch_deprecated_store_struct_return,
3425 set_gdbarch_deprecated_frame_init_saved_regs,
3426 set_gdbarch_deprecated_init_extra_frame_info,
3427 set_gdbarch_deprecated_frame_chain,
3428 set_gdbarch_deprecated_frame_saved_pc,
3429 set_gdbarch_deprecated_saved_pc_after_call.
3430 Add calls to set_gdbarch_push_dummy_call,
3431 set_gdbarch_push_dummy_code,
3432 frame_unwind_append_predicate,
3433 frame_base_set_default,
3434 set_gdbarch_unwind_dummy_id,
3435 set_gdbarch_unwind_pc.
3438 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3440 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3441 registers for H8/300S.
3442 (h8300_print_registers_info): Ditto.
3443 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3445 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3447 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3448 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3449 (lin_lwp_wait): Likewise. Update comments.
3450 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3451 (pull_pid_from_list, linux_record_stopped_pid): New.
3453 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3455 * ada-lang.c (scan_discrim_bound): Name first argument.
3456 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3457 declared by ALL_BLOCK_SYMBOLS.
3459 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3461 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3462 ("regcache.h"): Include it.
3463 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3465 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3467 * NEWS: Mention gdbserver detach change and "disconnect" command.
3468 * infcmd.c (disconnect_command): New function.
3469 (_initialize_infcmd): Add ``disconnect'' command.
3470 * remote.c (remote_async_detach): Delete.
3471 (remote_detach): Merge remote_async_detach.
3472 (remote_disconnect): New.
3473 (init_remote_ops): Set to_disconnect.
3474 (init_remote_cisco_ops): Likewise.
3475 (init_remote_async_ops): Likewise. Use remote_detach.
3476 * target.c (cleanup_target): Default to_disconnect.
3477 (update_current_target): Inherit to_disconnect.
3478 (target_disconnect, debug_to_disconnect): New functions.
3479 (setup_target_debug): Set to_disconnect.
3480 * target.h (struct target_ops): Add to_disconnect.
3481 (target_disconnect): Add prototype.
3483 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3485 * breakpoint.c (insert_catchpoint): New function.
3486 (insert_breakpoints): Use catch_exceptions to call
3487 insert_catchpoint. Disable catchpoints if they fail to insert.
3489 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3491 * symfile.c (reread_symbols): Clear sym_private.
3493 2003-06-17 Andrew Cagney <cagney@redhat.com>
3495 * trad-frame.h (struct frame_info): Add opaque declaration.
3496 * remote-fileio.h (struct cmd_list_element): Add opaque
3498 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3501 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3503 * remote.c (remote_prepare_to_store): Replace call to
3504 deprecated_read_register_bytes with multiple regcache_raw_read
3507 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3509 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3510 (nto_find_and_open_solib): Likewise.
3511 (nto_init_solib_absolute_prefix): Likewise.
3512 (_initialize_nto_tdep): Fix indentation.
3514 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3516 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3518 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3520 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3522 2003-06-17 Jim Blandy <jimb@redhat.com>
3524 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3526 2003-06-16 Theodore A. Roth <troth@openavr.org>
3528 * avr-tdep.c (avr_extract_return_value): New function.
3529 (avr_gdbarch_init): Set extract_return_value method.
3531 2003-06-16 Andrew Cagney <cagney@redhat.com>
3533 * frame.h (deprecated_get_next_frame_hack): Declare.
3534 * frame.c (legacy_saved_regs_prev_register): Only require
3535 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3536 there are always saved regs.
3537 (deprecated_generic_get_saved_register): Do not require
3538 DEPRECATED_FRAME_INIT_SAVED_REGS.
3539 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3540 use frame ID unwind instead.
3541 (deprecated_get_next_frame_hack): New function.
3543 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3545 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3546 (h8300_push_dummy_call): ...this function. Some minor optimization.
3547 (h8300_push_return_address): Remove.
3548 (h8300_gdbarch_init): Remove calls to
3549 set_gdbarch_deprecated_dummy_write_sp,
3550 set_gdbarch_deprecated_push_arguments and
3551 set_gdbarch_deprecated_push_return_address.
3552 Add call to set_gdbarch_push_dummy_call.
3554 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3556 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3557 (E_PSEUDO_EXR_REGNUM): Ditto.
3558 (h8300_is_argument_spill): Check for instructions moving argument
3559 registers into safe registers.
3560 (h8300_skip_prologue): Check for stm instruction to push registers
3561 used for register variables onto stack.
3562 (gdb_print_insn_h8300): Remove.
3563 (h8300_examine_prologue): Add a comment.
3564 (h8300_register_name): Take pseudo registers into account.
3565 (h8300s_register_name): Ditto.
3566 (h8300sx_register_name): Ditto.
3567 (h8300_print_register): Ditto.
3568 (h8300_print_registers_info): Define "nice" printing order.
3569 (h8300_saved_pc_after_call): Take pseudo registers into account.
3570 (h8300_register_type): Ditto. Return type used for remote connection
3571 when requesting real CCR or EXR register, return actual type when
3572 requesting pseudo CCR or EXR.
3573 (h8300_pseudo_register_read): New function.
3574 (h8300_pseudo_register_write): Ditto.
3575 (h8300_dbg_reg_to_regnum): Ditto.
3576 (h8300s_dbg_reg_to_regnum): Ditto.
3577 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3578 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3579 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3580 set_gdbarch_print_insn architecture dependent.
3581 Call set_gdbarch_pseudo_register_read and
3582 set_gdbarch_pseudo_register_write.
3583 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3585 2003-06-16 Andrew Cagney <cagney@redhat.com>
3587 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3588 * gdbarch.h, gdbarch.c: Re-generate.
3589 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3590 * s390-tdep.c (s390_gdbarch_init): Update.
3591 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3592 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3593 * mips-tdep.c (mips_gdbarch_init): Update.
3594 * mcore-tdep.c (mcore_gdbarch_init): Update.
3595 * cris-tdep.c (cris_gdbarch_init): Update.
3596 * infcall.c (call_function_by_hand): Update.
3597 * ia64-tdep.c (ia64_push_arguments): Update comment.
3598 * frame.c (legacy_get_prev_frame): Do not assume
3599 SAVE_DUMMY_FRAME_TOS_P.
3600 * dummy-frame.c (find_dummy_frame): Update comment.
3602 2003-06-16 Andrew Cagney <cagney@redhat.com>
3604 * regcache.c (do_cooked_read): Do not use register_valid_p.
3606 2003-06-15 Theodore A. Roth <troth@openavr.org>
3608 * avr-tdep.c (avr_register_type): Remove a blank line.
3609 (avr_scan_prologue): Correct some comments.
3611 2003-06-15 Theodore A. Roth <troth@openavr.org>
3613 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3615 Properly scan prologues generated by gcc with the -mcall-prologues
3617 Add code to scan -mcall-prologues for mega devices.
3619 2003-06-15 Theodore A. Roth <troth@openavr.org>
3621 * avr-tdep.c (avr_register_byte): Delete function.
3622 (avr_register_raw_size): Delete function.
3623 (avr_register_virtual_size): Delete function.
3624 (avr_register_virtual_type): Delete function.
3625 (avr_register_type): New function.
3626 (avr_address_to_pointer): Remove unused code.
3627 (avr_read_fp): Need to read FP as two separate bytes due to change to
3628 avr_register_type() usage.
3629 (avr_gdbarch_init): Don't set deprecated_register_size.
3630 Don't set deprecated_register_bytes.
3631 Don't set deprecated_register_byte.
3632 Don't set deprecated_register_raw_size.
3633 Don't set deprecated_max_register_raw_size.
3634 Don't set deprecated_register_virtual_size.
3635 Don't set deprecated_max_register_virtual_size.
3636 Don't set deprecated_register_virtual_type.
3637 Set register_type method.
3639 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3641 * Makefile.in (linux-nat.o): Add rule.
3642 * linux-nat.c: New file.
3643 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3644 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3645 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3646 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3647 * config/arm/linux.mh (NATDEPFILES): Likewise.
3648 * config/i386/linux.mh (NATDEPFILES): Likewise.
3649 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3650 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3651 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3652 * config/mips/linux.mh (NATDEPFILES): Likewise.
3653 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3654 * config/s390/s390.mh (NATDEPFILES): Likewise.
3655 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3657 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3659 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3660 replace out-of-date comment.
3662 2003-06-15 Andrew Cagney <cagney@redhat.com>
3664 * rdi-share/host.h (Fail): Change to a varargs function.
3665 * remote-rdi.c (Fail): Update.
3667 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3669 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3670 (i386_convert_register_p, i386_register_to_value,
3671 i386_register_from_value): Handle types longer than 8 bytes.
3673 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3675 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3676 Move floating-point code to new function in i387-tdep.c.
3677 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3678 New functions containing code moved here from i386-tdep.c.
3679 * i387-tdep.h: Add opaque declaration for `struct type'.
3680 (i387_register_to_value, i387_value_to_register): New prototypes.
3681 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3682 (x86_64_init_abi): Set convert_register_p, register_to_value and
3683 value_to_register here.
3685 2003-06-14 Andrew Cagney <cagney@redhat.com>
3687 * mips-tdep.c (mips_register_to_value): Make static.
3688 (mips_value_to_register): Make static.
3689 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3690 * ia64-tdep.c (ia64_register_raw_size): Make static.
3691 (ia64_register_virtual_size): Make static.
3692 (ia64_register_byte): Make static.
3693 * i387-tdep.c: Include "i387-tdep.h".
3694 (print_387_control_word): Delete function.
3695 (print_387_status_word): Delete function.
3696 (print_387_status_bits): Delete function.
3697 (print_387_control_bits): Delete function.
3698 * Makefile.in (i387-tdep.o): Update dependencies.
3699 * rdi-share/host.h (Fail): Declare.
3700 * remote-rdi.c (Fail): Update to match declaration.
3702 2003-06-14 Andrew Cagney <cagney@redhat.com>
3704 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3705 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3706 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3707 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3708 * README: Delete reference to remote-array.
3709 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3710 (remote-array.o): Delete target.
3711 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3712 * remote-array.c: Delete file.
3714 2003-06-14 Andrew Cagney <cagney@redhat.com>
3715 Mark Kettenis <kettenis@gnu.org>
3717 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3718 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3719 parameter with "frame".
3720 * gdbarch.h, gdbarch.c: Re-generate.
3721 * frame.h (put_frame_register): Declare.
3722 * frame.c (put_frame_register): New function.
3723 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3724 (legacy_register_to_value): Rewrite, use "frame" to get the
3726 (legacy_value_to_register): Rewrite, use "frame" to find the
3727 register's location before storing.
3728 * arch-utils.h (legacy_convert_register_p): Update.
3729 (legacy_register_to_value, legacy_value_to_register): Update.
3730 * findvar.c (value_from_register): Rewrite, eliminate use of
3731 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3732 "frame" to REGISTER_TO_VALUE.
3733 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3734 lval_reg_frame_relative + lval_register branch of the switch. Do
3735 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3736 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3737 I386_EDI_REGNUM): New defines.
3738 (i386_next_regnum, i386_convert_register_p,
3739 i386_register_to_value, i386_value_to_register): New functions.
3740 (i386_register_convertible, i386_register_convert_to_virtual,
3741 i386_convert_to_raw): Remove functions.
3742 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3743 value_to_register instead of register_convertible,
3744 register_convert_to_virtual and register_convert_to_raw.
3745 * mips-tdep.c (mips_convert_register_p): New function.
3746 (mips_value_to_register): Replace mips_register_convert_from_type.
3747 (mips_register_to_value): Replace mips_register_convert_to_type.
3748 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3750 * alpha-tdep.c (alpha_convert_register_p): Update.
3751 (alpha_value_to_register): Update, store the register.
3752 (alpha_register_to_value): Update, fetch the register.
3754 2003-06-14 Theodore A. Roth <troth@openavr.org>
3756 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3757 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3758 Don't set deprecated_call_dummy_words.
3759 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3760 Don't set remote_translate_xfer_address.
3761 (avr_io_reg_read_command): Remove commented out debug printf.
3764 2003-06-14 Theodore A. Roth <troth@openavr.org>
3766 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3767 causes gdb to seg fault.
3769 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3771 * sparc-nat.c (fetch_inferior_registers): Correct
3772 a reference to "registers".
3774 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3776 * Makefile.in (exc_request_U_h): Define
3777 (exc_request_S_h): Likewise.
3778 (msg_reply_S_h): Likewise.
3779 (msg_U_h): Likewise.
3780 (notify_S_h): Likewise.
3781 (process_reply_S_h): Likewise.
3782 (gnu-nat.o): Depend on gdb_obstack_h
3783 * gnu-nat.c: Include "gdb_obstack.h".
3785 2003-06-13 Andrew Cagney <cagney@redhat.com>
3787 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3788 * gdbarch.h, gdbarch.c: Re-generate.
3790 2003-06-13 Andrew Cagney <cagney@redhat.com>
3792 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3793 when deprecated REGISTER macros can be deleted.
3794 * gdbarch.h, gdbarch.c: Re-generate.
3796 2003-06-13 Jim Blandy <jimb@redhat.com>
3798 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3799 Linux entry point symbols for _dl_debug_state, too.
3801 2003-06-13 Andrew Cagney <cagney@redhat.com>
3803 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3804 available, do not use the FP register, and always save the TOS.
3805 * dummy-frame.c (dummy_frame_this_id): Do not assert
3806 SAVE_DUMMY_FRAME_TOS.
3807 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3808 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3809 (i386_push_dummy_call): Add 8 to the returned SP.
3810 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3811 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3812 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3813 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3814 (x86_64_push_dummy_call): Return "sp + 16".
3815 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3816 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3817 save_dummy_frame_tos.
3819 2003-06-13 Jim Blandy <jimb@redhat.com>
3821 * frv-tdep.c (frv_use_struct_convention): Delete static
3822 declaration for function deleted in my change of 2003-06-12.
3824 2003-06-13 Theodore A. Roth <troth@openavr.org>
3826 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3827 (avr_pointer_to_address): Shift code addrs left 1 bit.
3828 (avr_convert_from_func_ptr_addr): Delete function since operation is
3829 better handled by avr_address_to_pointer and avr_pointer_to_address.
3830 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3832 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3834 From Kelley Cook <kelleycook@wideopenwest.com>:
3835 * configure.host: Accept i[34567]86 variants.
3836 * configure.tgt: Likewise.
3837 * nlm/configure.in: Likewise.
3838 * nlm/configure: Regenerated.
3840 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3842 * arm-tdep.c (solib-svr4.h): Dont' include it.
3843 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3844 * arm-linux-tdep.c: ... here. Make static.
3845 (arm_linux_init_abi): Register it.
3846 (solib-svr4.h): Include it.
3847 * Makefile.in: Update dependencies.
3848 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3849 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3851 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3853 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3854 indicate registers used for return values.
3855 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3856 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3858 (h8300_init_extra_frame_info): Ditto.
3859 (h8300_frame_locals_address): Removed.
3860 (h8300_frame_args_address): Removed.
3861 (h8300_extract_return_value): Use new regcache structure. Only care
3863 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3864 (h8300_store_return_value): Use new regcache structure. Only care
3866 (h8300h_store_return_value): Same function for 32 bit CPUs.
3867 (h8300_store_struct_return): Removed.
3868 (h8300_extract_struct_value_address): Use new regcache structure.
3869 (h8300h_extract_struct_value_address): Removed.
3870 (h8300_push_dummy_code): New function.
3871 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3872 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3873 set_gdbarch_store_return_value architecture dependent.
3874 Call set_gdbarch_push_dummy_code and
3875 set_gdbarch_extract_struct_value_address.
3876 Remove calls to set_gdbarch_frame_args_address,
3877 set_gdbarch_frame_locals_address,
3878 set_gdbarch_deprecated_store_struct_return,
3879 set_gdbarch_deprecated_extract_return_value,
3880 set_gdbarch_deprecated_extract_struct_value_address,
3881 set_gdbarch_deprecated_call_dummy_words and
3882 set_gdbarch_deprecated_sizeof_call_dummy_words.
3884 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3886 * h8300-tdep.c (h8300_register_byte): Remove.
3887 (h8300h_register_byte): Remove.
3888 (h8300_register_virtual_type): Remove. Substitute by...
3889 (h8300_register_type): New function.
3890 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3891 (h8300h_extract_struct_value_address): Ditto.
3892 (h8300_gdbarch_init): Drop calls to
3893 set_gdbarch_deprecated_register_byte and
3894 set_gdbarch_deprecated_register_virtual_type.
3895 Add call to set_gdbarch_register_type.
3897 2003-06-13 Andrew Cagney <cagney@redhat.com>
3899 * gdbarch.sh: Update comments on registers.
3900 (deprecated_register_byte): Rename register_byte.
3901 (deprecated_register_raw_size): Rename register_raw_size.
3902 (deprecated_register_virtual_size): Rename register_virtual_size.
3903 (deprecated_register_virtual_type): Rename register_virtual_type.
3904 * gdbarch.h, gdbarch.c: Re-generate.
3905 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3906 * vax-tdep.c (vax_gdbarch_init): Update.
3907 * v850-tdep.c (v850_gdbarch_init): Update.
3908 * sparc-tdep.c (sparc_gdbarch_init): Update.
3909 * sh-tdep.c (sh_gdbarch_init): Update.
3910 * s390-tdep.c (s390_gdbarch_init): Update.
3911 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3912 * ns32k-tdep.c: Update.
3913 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3914 * mips-tdep.c (mips_gdbarch_init): Update.
3915 * mcore-tdep.c (mcore_gdbarch_init): Update.
3916 * m68k-tdep.c (m68k_gdbarch_init): Update.
3917 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3918 * ia64-tdep.c (ia64_gdbarch_init): Update.
3919 * hppa-tdep.c (hppa_gdbarch_init): Update.
3920 * h8300-tdep.c (h8300_gdbarch_init): Update.
3921 * frv-tdep.c (frv_gdbarch_init): Update.
3922 * cris-tdep.c (cris_gdbarch_init): Update.
3923 * avr-tdep.c (avr_gdbarch_init): Update.
3924 * alpha-tdep.c (alpha_gdbarch_init): Update.
3925 * arm-tdep.c (arm_gdbarch_init): Update.
3927 2003-06-13 Andrew Cagney <cagney@redhat.com>
3929 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3930 mips_o32_use_struct_convention with always_use_struct_convention.
3932 2003-06-12 David Carlton <carlton@kealia.com>
3934 * cp-namespace.c (cp_set_block_scope): Comment out
3935 processing_has_namespace_info branch.
3937 2003-06-12 Jim Blandy <jimb@redhat.com>
3939 Recognize and skip 64-bit PowerPC Linux linkage functions.
3940 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3941 insn_pattern, insns_match_pattern, d_field, ds_field): New
3942 functions, macros, and types for working with PPC instructions.
3943 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3944 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3945 ppc64_skip_trampoline_code): New functions, variables, and macros
3946 for recognizing and skipping linkage functions.
3947 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3948 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3950 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3951 register offsets for both the 32- and 64-bit interfaces.
3953 Actually finish the job started by my change of 2003-05-29.
3954 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3955 other #definition of this.
3956 (ppc_linux_skip_trampoline_code): Remove declaration.
3957 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3959 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3962 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3963 'long' on ppc64-*-linux*.
3965 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3966 isn't #defined, assume the register doesn't exist: act as if
3967 tdep->ppc_mq_regnum were -1.
3969 * configure.host, configure.tgt: Add entries for
3970 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3972 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3975 * arch-utils.c (always_use_struct_convention): New function.
3976 * arch-utils.h (always_use_struct_convention): New prototype.
3977 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3978 (alpha_gdbarch_init): Register always_use_struct_convention,
3979 instead of alpha_use_struct_convention.
3980 * cris-tdep.c (cris_use_struct_convention): Delete.
3981 (cris_gdbarch_init): Register always_use_struct_convention,
3982 instead of cris_use_struct_convention.
3983 * frv-tdep.c (frv_use_struct_convention): Delete.
3984 (frv_gdbarch_init): Register always_use_struct_convention,
3985 instead of frv_use_struct_convention.
3986 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3987 (h8300_gdbarch_init): Register always_use_struct_convention,
3988 instead of h8300_use_struct_convention.
3989 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3990 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3991 instead of mips_o32_use_struct_convention.
3993 2003-06-12 Andrew Cagney <cagney@redhat.com>
3995 * wince.c: Include "mips-tdep.h".
3996 * mips-tdep.h (mips_next_pc): Declare.
3997 * mcore-tdep.c: Make more local functions static.
3998 * Makefile.in (wince.o): Update dependencies.
4000 2003-06-12 David Carlton <carlton@kealia.com>
4002 * symtab.c (lookup_symbol_aux_minsyms): Replace
4003 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4004 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4005 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4006 SYMBOL_NATURAL_NAME.
4008 2003-06-12 Andreas Schwab <schwab@suse.de>
4010 * Makefile.in (tuiDisassem.o): Update dependencies.
4012 2003-06-12 David Carlton <carlton@bactrian.org>
4014 * symtab.h: Delete declaration of make_symbol_overload_list.
4015 Add declaration of lookup_partial_symbol.
4016 * symtab.c (remove_params): Move to cp-support.c.
4017 (overload_list_add_symbol, make_symbol_overload_list)
4018 (sym_return_val_size, sym_return_val_index): Ditto.
4019 (lookup_partial_symbol): Make extern.
4020 * cp-support.h: Add declaration of make_symbol_overload_list.
4021 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4022 symtab.h, and block.h.
4023 (remove_params): Move here from symtab.c.
4024 (overload_list_add_symbol, make_symbol_overload_list)
4025 (sym_return_val_size, sym_return_val_index): Ditto.
4026 * valops.c: Include cp-support.h.
4027 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4028 frame_h, and block_h.
4029 (valops.o): Depend on cp_support_h.
4031 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4033 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4034 substitute by NUM_REGS throughout.
4035 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4036 (h8300s_register_name): New function for H8S registers.
4037 (h8300sx_register_name): Ditto for H8SX registers.
4038 (h8300_print_register): Revise register printing, avoid depending
4040 (h8300_register_byte): Only care for H8/300 registers.
4041 (h8300h_register_byte): New function for any other architecture.
4042 (h8300_register_raw_size): Remove.
4043 (h8300_register_virtual_type): Revise to return actually useful
4045 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4046 (h8300h_extract_struct_value_address): New function for any other
4048 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4049 set_gdbarch_register_name, set_gdbarch_register_byte,
4050 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4051 Remove calls to set_gdbarch_deprecated_register_size,
4052 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4053 set_gdbarch_deprecated_max_register_raw_size,
4054 set_gdbarch_register_virtual_size and
4055 set_gdbarch_deprecated_max_register_virtual_size entirely.
4056 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4057 set_gdbarch_long_double_bit.
4059 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4061 * doublest.c (convert_doublest_to_floatformat): When dealing
4062 with the implied integer bit, only alter mant_bits if we are
4063 processing a full 32 bits of mantissa.
4065 2003-06-11 David Carlton <carlton@bactrian.org>
4067 * dictionary.h: New.
4068 * dictionary.c: New.
4069 * block.h: Add opaque declaration for struct dictionary.
4070 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4072 (BLOCK_DICT): New macro.
4073 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4074 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4076 (ALL_BLOCK_SYMBOLS): Update definition.
4077 * Makefile.in (SFILES): Add dictionary.c.
4078 (dictionary_h): New.
4079 (COMMON_OBS): Add dictionary.o.
4080 (dictionary.o): New.
4081 (ada-lang.o): Depend on dictionary_h.
4082 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4083 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4084 (mi-cmd-stack.o): Ditto.
4085 (gdbtk-cmds.o): Update dependencies.
4086 (gdbtk-stack.o): Ditto.
4087 * ada-lang.c: Include dictionary.h.
4088 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4089 (fill_in_ada_prototype, debug_print_block): Ditto.
4090 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4091 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4093 * mdebugread.c: Include dictionary.h.
4094 (struct parse_stack): Delete 'maxsyms' member.
4095 (parse_symbol): Update calls to new_block. Delete calls to
4096 shrink_block. Use dictionary methods.
4097 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4098 Update calls to new_symtab. Don't maintain maxsyms data.
4099 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4100 (add_symbol): Just call dict_add_symbol.
4101 (new_symtab): Delete 'maxsyms' argument.
4102 (new_symtab): Update calls to new_block.
4103 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4104 (shrink_block): Delete function.
4105 (fixup_sigtramp): Update call to new_block. Add symbol via
4107 * jv-lang.c: Include dictionary.h.
4108 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4109 appropriately. Set class_symtab->free_func. Make sure the
4110 blockvector is big enough to hold two blocks.
4111 (add_class_symtab_symbol): Use dictionary methods.
4112 (free_class_block): New function.
4113 (type_from_class): Replace explicit iteration by
4115 * symtab.h (struct symtab): Replace 'free_ptr' method by
4117 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4119 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4121 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4122 Include dictionary.h.
4123 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4124 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4126 * objfiles.c: Include dictionary.h.
4127 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4128 * buildsym.c: Include dictionary.h.
4129 (finish_block): Use dictionary methods.
4130 (end_symtab): Set free_func to NULL, not free_ptr.
4131 * tracepoint.c: Include dictionary.h.
4132 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4133 (scope_info): Ditto.
4134 * stack.c: Include dictionary.h.
4135 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4136 (print_block_frame_labels, print_frame_arg_vars)
4137 (print_frame_args): Ditto.
4138 * symmisc.c (free_symtab_block): Use dictionary methods.
4139 (dump_symtab): Ditto.
4140 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4141 Include dictionary.h.
4142 * symfile.h: Delete declarations of sort_block_syms,
4144 * symfile.c (sort_block_syms): Delete.
4145 (sort_symtab_syms): Delete.
4146 * symtab.c: Include dictionary.h.
4147 (lookup_block_symbol): Use dictionary iterators.
4148 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4149 (search_symbols, make_symbol_completion_list): Ditto.
4150 (make_symbol_overload_list): Ditto.
4151 * valops.c (value_of_local): Use dict_empty.
4152 Include dictionary.h.
4154 2003-06-11 J. Brobecker <brobecker@gnat.com>
4156 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4158 2003-06-11 David Carlton <carlton@bactrian.org>
4160 * block.h (BLOCK_SHOULD_SORT): Delete.
4161 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4163 * ada-lang.c (ada_add_block_symbols): Ditto.
4164 * symfile.c (sort_block_syms): Delete.
4165 (sort_symtab_syms): Ditto.
4166 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4168 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4169 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4170 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4171 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4172 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4173 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4174 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4176 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4178 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4181 2003-06-11 Andrew Cagney <cagney@redhat.com>
4183 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4184 REGISTER_CONVERTIBLE.
4185 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4186 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4187 * gdbarch.h, gdbarch.c: Re-generate.
4188 * arch-utils.h (deprecated_register_convertible_not): Rename
4189 generic_register_convertible_not.
4190 * arch-utils.c (deprecated_register_convertible_not): Rename
4191 generic_register_convertible.
4192 (legacy_convert_register_p, legacy_register_to_value): Update.
4193 * sh-tdep.c (sh64_push_arguments): Update.
4194 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4195 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4196 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4197 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4198 * arch-utils.c (legacy_value_to_register): Update.
4199 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4200 (rs6000_register_convert_to_raw): Make parameter "from" const.
4201 * mips-tdep.c (mips_gdbarch_init): Update.
4202 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4203 * infcmd.c (default_print_registers_info): Update.
4204 * ia64-tdep.c (ia64_gdbarch_init): Update.
4205 (ia64_register_convert_to_raw): Make parameter "from" const.
4206 * i386-tdep.c (i386_gdbarch_init): Update.
4207 (i386_register_convert_to_raw): Update.
4209 2003-06-11 Andrew Cagney <cagney@redhat.com>
4211 * remote-fileio.c: Include "remote-fileio.h".
4212 * Makefile.in (remote-fileio.o): Update dependencies.
4213 (remote_fileio_h): Fix typo.
4215 2003-06-11 Andrew Cagney <cagney@redhat.com>
4217 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4218 (xstormy16_save_dummy_frame_tos): Make static.
4219 (_initialize_xstormy16_tdep): Add declaration.
4220 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4221 * v850-tdep.c: Make local functions static.
4222 (_initialize_v850_tdep): Add declaration.
4223 * sparc-tdep.c: Make local functions static.
4224 (_initialize_sparc_tdep): Add declaration.
4225 * sh-tdep.c: Make local functions static.
4226 (_initialize_sh_tdep): Add declaration.
4227 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4228 * s390-tdep.c: Make local functions static.
4229 (_initialize_s390_tdep): Add declaration.
4230 * dbxread.c (find_stab_function_addr): Make static.
4231 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4232 * ocd.c (_initialize_remote_ocd): Add declaration.
4233 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4234 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4235 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4236 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4237 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4238 * remote-array.c (_initialize_array): Add declaration.
4239 (_initialize_remote_monitors): Add declaration.
4240 * remote-mips.c: Make local functions static.
4241 (_initialize_remote_mips): Add declaration.
4242 * mcore-tdep.c: Make all local functions static.
4243 (_initialize_mcore_tdep): Add declaration.
4244 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4245 * abug-rom.c (_initialize_abug_rom): Add declaration.
4246 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4247 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4248 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4249 * remote-est.c (_initialize_est): Add declaration.
4250 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4251 (m68hc11_call_dummy_address): Make static.
4252 * ia64-tdep.c: Make local functions static.
4253 (_initialize_ia64_tdep): Add declaration.
4254 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4255 * monitor.c (monitor_wait_filter): Make static.
4256 (_initialize_remote_monitors): Add declaration.
4257 * remote-hms.c (_initialize_remote_hms): Add declaration.
4258 * remote-e7000.c (fetch_regs_from_dump): Make static.
4259 (expect_n): Make static.
4260 (_initialize_remote_e7000): Add declaration.
4261 * ser-e7kpc.c: Always include "defs.h".
4262 (_initialize_ser_e7000pc): Add declaration.
4263 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4264 * cris-tdep.c: Make all but one function static.
4265 (_initialize_cris_tdep): Add declaration.
4266 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4267 * solib.c (update_solib_list): Make static.
4268 (_initialize_solib): Add declaration.
4269 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4270 (_initialize_avr_tdep): Add declaration.
4271 * remote-rdi.c (voiddummy): Make static.
4272 (_initialize_remote_rdi): Add declaration.
4273 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4274 * remote-rdp.c (send_rdp): Make static.
4275 (_initialize_remote_rdp): Add declaration.
4276 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4278 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4280 * remote-fileio.c: Make ari happy.
4282 2003-06-10 J. Brobecker <brobecker@gnat.com>
4284 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4285 fetching the trailing bytes of the buffer we are about to write.
4287 2003-06-10 Andrew Cagney <cagney@redhat.com>
4289 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4290 * Makefile.in (remote-fileio.o): Update dependencies.
4291 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4292 include <setjmp.h>, or <sys/types.h> conditional on USG.
4293 (remote_fio_jmp_buf): Delete global variable.
4295 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4296 Martin M. Hunt <hunt@redhat.com>
4298 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4299 (SFILES): Add remote-fileio.c.
4300 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4301 dependencies for building remote.o.
4302 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4303 * remote-fileio.h: New header file defining remote File-I/O interface.
4304 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4305 static storage class.
4306 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4308 (_initialize_remote): Call initialize_remote_fileio().
4309 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4310 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4311 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4312 (captured_main): Initialize new ui_files.
4313 * ui-file.c: Add read and fgets input functions.
4314 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4315 (null_file_read): New function.
4316 (ui_file_read): New function.
4317 (set_ui_file_read): New function.
4318 (stdio_file_read): New function.
4319 * ui-file.h: New type ui_file_read_ftype.
4320 (set_ui_file_read): Declare.
4321 (ui_file_read): Declare.
4323 2003-06-09 Andrew Cagney <cagney@redhat.com>
4325 * frame.h (deprecated_unwind_get_saved_register): Rename
4326 generic_unwind_get_saved_register, update comments.
4327 * mips-tdep.c (mips_get_saved_register): Update.
4328 * frame.c (deprecated_unwind_get_saved_register): Update.
4330 2003-06-09 Andrew Cagney <cagney@redhat.com>
4332 * vax-tdep.c (vax_frame_locals_address): Delete function.
4333 (vax_gdbarch_init): Do not set frame_locals_address.
4334 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4335 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4336 * s390-tdep.c (s390_frame_args_address): Delete function.
4337 (s390_gdbarch_init): Do not set frame_args_address or
4338 frame_locals_address.
4339 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4340 (ns32k_gdbarch_init): Do not set frame_locals_address.
4341 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4342 (hppa_frame_locals_address): Delete function.
4343 (hppa_gdbarch_init): Do not set frame_args_address, or
4344 frame_locals_address.
4345 * arm-tdep.c (arm_frame_args_address): Delete.
4346 (arm_frame_locals_address): Delete.
4347 (arm_gdbarch_init): Do not set frame_args_address, or
4348 frame_locals_address.
4350 2003-06-09 Andrew Cagney <cagney@redhat.com>
4352 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4353 * gdbarch.h, gdbarch.c: Re-generate.
4354 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4355 * arch-utils.c (frame_num_args_unknown): Delete function.
4356 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4357 (frame_info): Use FRAME_NUM_ARGS_P.
4358 * arm-tdep.c (arm_frame_num_args): Delete function.
4359 (arm_gdbarch_init): Do not set frame_num_args.
4360 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4361 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4362 (hppa_gdbarch_init): Do not set frame_num_args.
4363 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4364 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4365 frame_num_args to default frame_num_args_unknown.
4366 * v850-tdep.c (v850_gdbarch_init): Ditto.
4367 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4368 * sh-tdep.c (sh_gdbarch_init): Ditto.
4369 * s390-tdep.c (s390_gdbarch_init): Ditto.
4370 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4371 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4372 * mips-tdep.c (mips_gdbarch_init): Ditto.
4373 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4374 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4375 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4376 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4377 * i386-tdep.c (i386_gdbarch_init): Ditto.
4378 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4379 * frv-tdep.c (frv_gdbarch_init): Ditto.
4380 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4381 * cris-tdep.c (cris_gdbarch_init): Ditto.
4382 * avr-tdep.c (avr_gdbarch_init): Ditto.
4383 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4385 2003-06-09 Andrew Cagney <cagney@redhat.com>
4387 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4388 (print_frame_args): Moved to "stack.c".
4389 * stack.c: Include "gdb_assert.h".
4390 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4391 (print_frame_args): Moved from "printcmd.c".
4392 * frame.h (print_frame_args): Delete declaration.
4393 * Makefile.in (stack.o): Update dependencies.
4395 2003-06-08 Andrew Cagney <cagney@redhat.com>
4397 * frame.c (get_prev_frame): Remove reference to
4398 frame_args_address_correct in comments.
4399 * frame-base.c (default_frame_args_address): Delete code
4400 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4401 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4402 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4403 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4404 (vax_frame_args_address_correct): Delete declaration.
4406 2003-06-08 Andrew Cagney <cagney@redhat.com>
4408 * gdbarch.sh (UNWIND_SP): Add.
4409 * gdbarch.h, gdbarch.c: Re-generate.
4410 * frame.c (frame_sp_unwind): New function.
4411 (get_frame_sp): New function.
4412 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4413 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4414 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4416 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4417 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4419 2003-06-08 Andrew Cagney <cagney@redhat.com>
4421 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4424 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4425 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4426 * config/m68k/tm-sun3.h: Update.
4427 * config/m68k/tm-m68klynx.h: Update.
4428 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4430 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4431 trad_frame". Update comments.
4432 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4433 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4434 (trad_frame_register_value, trad_frame_prev_register): Update.
4436 2003-06-08 Andrew Cagney <cagney@redhat.com>
4438 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4439 from GCC's acinclude.m4.
4440 * configure.in: Check for getopt's delcaration.
4441 * aclocal.m4, config.in, configure: Re-generate.
4442 * main.c (error_init): Delete declaration.
4443 * defs.h (error_init): Declare.
4444 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4445 (rs6000_convert_from_func_ptr_addr): Make static.
4446 (_initialize_rs6000_tdep): Add declaration.
4447 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4448 (show_commands, set_verbose, show_history): Delete declaration.
4449 * top.h (set_verbose): Add declaration.
4450 (show_history, set_history, show_commands): Add declaration.
4451 (do_restore_instream_cleanup): Add declaration.
4452 * objc-lang.c (specialcmp): Make static.
4453 (print_object_command): Make static.
4454 (find_objc_msgsend): Make static.
4455 (find_objc_msgcall_submethod_helper): Make static.
4456 (find_objc_msgcall_submethod): Make static.
4457 (_initialize_objc_language): Add declaration.
4458 (find_implementation_from_class): Make static.
4459 (find_implementation): Make static.
4460 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4461 * objc-lang.h (lookup_struct_typedef): Add declaration.
4462 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4463 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4464 (do_restore_user_call_depth): Make static.
4465 (do_restore_instream_cleanup): Delete declaration.
4466 (dont_repeat): Delete declaration.
4467 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4468 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4469 * reggroups.c (_initialize_reggroup): Add declaration.
4470 * cp-support.c (_initialize_cp_support): Add declaration.
4471 * cp-abi.c (_initialize_cp_abi): Add declaration.
4472 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4473 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4474 (_initialize_gnu_v3_abi): Add declaration.
4475 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4476 (_initialize_gnu_v2_abi): Add declaration.
4477 * frame-base.c (_initialize_frame_base): Add declaration.
4478 * doublest.c (floatformat_from_length): Make static.
4479 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4480 * frame.c (create_sentinel_frame): Make static.
4481 (_initialize_frame): Add declaration.
4482 * top.c (do_catch_errors): Make static.
4483 (gdb_rl_operate_and_get_next_completion): Make static.
4484 * typeprint.c: Include "typeprint.h".
4485 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4486 (sentinel_frame_this_id): Make static.
4487 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4488 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4489 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4490 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4491 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4492 * maint.c (maintenance_print_architecture): Make static.
4493 * signals/signals.c (_initialize_signals): Add declaration.
4494 * std-regs.c (_initialize_frame_reg): Add declaration.
4495 * jv-exp.y (push_variable): ISO C definition.
4496 (push_qualified_expression_name): Ditto.
4497 * memattr.c (_initialize_mem): Add declaration.
4498 * remote.c (remote_check_watch_resources): Make static.
4499 (remote_stopped_by_watchpoint): Make static.
4500 (remote_stopped_data_address): Make static.
4501 * d10v-tdep.c (nr_dmap_regs): Make static.
4502 (a0_regnum): Make static.
4503 (d10v_frame_unwind_cache): Make static.
4504 (d10v_frame_p): Make static.
4505 * osabi.c (show_osabi): Make static.
4506 (_initialize_gdb_osabi): Add extern declaration.
4507 * gdbtypes.c (make_qualified_type): Make static.
4508 (safe_parse_type): Make static.
4509 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4510 * macrotab.c (macro_bcache_free): Make static.
4511 * interps.c (interp_set_quiet): Make static.
4512 (interpreter_exec_cmd): Make static.
4513 * stack.h (select_frame_command): New file.
4514 * stack.c: Include "stack.h".
4515 (select_frame_command_wrapper): Delete function.
4516 (select_frame_command): Make global.
4517 * infcall.c: Include "infcall.h".
4518 * linespec.c: Include "linespec.h".
4519 * symfile.c (sections_overlap): Make static.
4520 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4521 * charset.c (_initialize_charset): Add missing prototype.
4522 * regcache.c (init_legacy_regcache_descr): Make static.
4523 (do_regcache_xfree): Make static.
4524 (regcache_xfer_part): Make static.
4525 (_initialize_regcache): Add missing prototype.
4526 * breakpoint.c (parse_breakpoint_sals): Make static.
4527 (breakpoint_sals_to_pc): Make static.
4528 * interps.h (clear_interpreter_hooks): ISO C declaration.
4529 * Makefile.in (stack_h): Define.
4530 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4531 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4533 2003-06-08 Andrew Cagney <cagney@redhat.com>
4535 * Makefile.in (d10v-tdep.o): Update dependencies.
4536 (SFILES): Add trad-frame.c.
4537 (trad_frame_h): Define.
4538 (COMMON_OBS): Add trad-frame.o.
4539 (trad-frame.o): Specify dependencies.
4540 * d10v-tdep.c: Include "trad-frame.h".
4541 (saved_regs_unwinder): Delete function.
4542 (d10v_frame_prev_register): Use trad_frame_prev_register.
4543 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4544 trad_frame", delete "regs" and "prev_sp".
4545 (prologue_find_regs): Use trad-frame.
4546 * trad-frame.h, trad-frame.c: New files.
4548 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4550 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4552 2003-06-07 Adam Fedor <fedor@gnu.org>
4554 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4555 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4556 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4557 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4558 resolve_msgsend_super, resolve_msgsend_super_stret):
4561 2003-06-07 Andrew Cagney <cagney@redhat.com>
4563 * symfile.h: Re-indent, clean up comments.
4565 2003-06-07 Andrew Cagney <cagney@redhat.com>
4567 * inferior.h (deprecated_write_sp): Replace
4568 generic_target_write_sp.
4569 * regcache.c (deprecated_write_sp): Replace
4570 generic_target_write_sp.
4571 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4572 * vax-tdep.c (vax_gdbarch_init): Update.
4573 * v850-tdep.c (v850_gdbarch_init): Update.
4574 * sparc-tdep.c (sparc_gdbarch_init): Update.
4575 * sh-tdep.c (sh_gdbarch_init): Update.
4576 * s390-tdep.c (s390_gdbarch_init): Update.
4577 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4578 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4579 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4580 * mcore-tdep.c (mcore_gdbarch_init): Update.
4581 * m68k-tdep.c (m68k_gdbarch_init): Update.
4582 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4583 * ia64-tdep.c (ia64_gdbarch_init): Update.
4584 * h8300-tdep.c (h8300_gdbarch_init): Update.
4585 * frv-tdep.c (frv_gdbarch_init): Update.
4586 * cris-tdep.c (cris_gdbarch_init): Update.
4587 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4589 2003-06-07 Andrew Cagney <cagney@redhat.com>
4591 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4592 Assert that PC_REGNUM is valid.
4593 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4595 2003-06-07 Andrew Cagney <cagney@redhat.com>
4597 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4598 * gdbarch.h, gdbarch.c: Regenerate.
4599 * mn10300-tdep.c: Include "gdb_assert.h".
4600 (mn10300_read_fp): New function.
4601 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4602 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4603 * ia64-tdep.c: Include "gdb_assert.h".
4604 (ia64_read_fp): New function.
4605 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4606 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4607 * regcache.c (generic_target_read_sp): Delete function.
4608 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4609 * inferior.h (generic_target_read_sp): Delete declaration.
4610 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4611 generic_target_read_sp.
4612 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4613 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4614 * sh-tdep.c (sh_gdbarch_init): Ditto.
4615 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4616 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4618 2003-06-07 Andrew Cagney <cagney@redhat.com>
4620 * gdbarch.sh: Comment each field of startup_gdbarch.
4621 * gdbarch.h, gdbarch.c: Re-generate.
4623 2003-06-07 Andrew Cagney <cagney@redhat.com>
4625 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4626 * gdbarch.h, gdbarch.c: Re-generate.
4627 * regcache.c: Update comments on read_pc et.al.
4628 (generic_target_read_pc): Delete function.
4629 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4630 * inferior.h (generic_target_read_pc): Delete declaration.
4631 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4632 generic_target_read_pc.
4633 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4634 * sh-tdep.c (sh_gdbarch_init): Ditto.
4635 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4636 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4638 2003-06-07 Andrew Cagney <cagney@redhat.com>
4640 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4641 "index" with "special_local_sect". Use strcmp instead of STREQ.
4642 Append period to coments.
4644 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4646 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4647 (elfstab_offset_sections): Likewise.
4648 * gdb-stabs.h (stab_section_info): Likewise.
4649 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4650 * objfiles.c (objfile_relocate): Likewise.
4651 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4652 * remote.c (get_offsets): Likewise.
4653 (remote_cisco_objfile_relocate): Likewise.
4654 * somread.c (som_symfile_offsets): Likewise.
4655 * symfile.c (alloc_section_addr_info): New function.
4656 (build_section_addr_info_from_section_tab): Use it.
4657 (free_section_addr_info): Adjust.
4658 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4659 (syms_from_objfile): Allocate local_addr dynamically.
4660 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4662 (add_symbol_file_command): Allocate sect_opts dynamically.
4663 (reread_symbols): Avoid use of SECT_OFF_MAX.
4664 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4665 (alloc_section_addr_info): Declare it.
4666 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4667 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4669 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4671 2003-06-06 Andrew Cagney <cagney@redhat.com>
4673 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4674 (d10v_frame_unwind_cache): Do not set "return_pc".
4676 2003-06-06 Michael Snyder <msnyder@redhat.com>
4678 * h8300-tdep.c: Make tidy (long lines).
4680 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4682 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4683 to regcache_collect().
4685 2003-06-05 J. Brobecker <brobecker@gnat.com>
4687 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4688 pc_in_sigtramp multiarch method.
4689 (hppa_hpux_som_init_abi): Use it.
4690 (hppa_hpux_elf_init_abi): Likewise.
4691 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4692 macro has been multiarched.
4693 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4694 macro here, as hppa64 isn't multiarched yet.
4696 2003-06-05 Andrew Cagney <cagney@redhat.com>
4698 * Makefile.in (value_h): Add $(frame_h).
4699 * value.h: Include "frame.h".
4700 (struct value): Replace "frame_addr" with "frame_id".
4701 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4702 * values.c (allocate_value): Use VALUE_FRAME_ID.
4703 (value_copy): Use VALUE_FRAME_ID.
4704 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4705 * valops.c (value_assign): Update. Use frame_find_by_id.
4707 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4709 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4712 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4714 * thread-db.c (check_event): For create/death event breakpoints,
4715 loop through all messages to ensure that we read the message
4716 corresponding to the breakpoint we are at.
4718 2003-06-04 Michael Snyder <msnyder@redhat.com>
4720 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4722 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4724 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4725 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4726 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4727 when handling .eh_frame sections.
4729 2003-06-04 J. Brobecker <brobecker@gnat.com>
4731 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4732 prepare_to_proceed procedure instead of the hppa-specific one.
4733 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4735 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4737 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4738 * config.in: Regenerated.
4739 * configure.in: Add test for syscall function and check for
4740 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4741 * configure: Regenerated.
4742 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4744 (kill_lwp): New function that uses tkill syscall or
4745 uses kill, depending on whether threading model is nptl or not.
4746 All callers of kill() changed to use kill_lwp().
4747 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4748 see if all threads have already exited in the nptl model.
4749 (stop_and_resume_callback): New callback function used by the
4750 lin_lwp_wait thread exit handling code.
4751 (stop_wait_callback): Check for threads already having exited and
4752 delete such threads fromt the lwp list when discovered.
4753 (stop_callback): Don't assert retcode of kill call.
4755 Roland McGrath <roland@redhat.com>
4756 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4759 2003-06-03 Richard Henderson <rth@redhat.com>
4761 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4762 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4763 (alpha_sigtramp_frame_prev_register): Likewise.
4764 (alpha_heuristic_frame_prev_register): Likewise.
4765 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4767 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4768 alpha-specific register id names.
4769 (alpha_mdebug_frame_unwind_cache): Likewise.
4770 (alpha_mdebug_frame_prev_register): Likewise.
4772 2003-06-03 Richard Henderson <rth@redhat.com>
4774 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4775 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4776 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4777 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4779 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4780 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4781 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4783 * alpha-linux-tdep.c: Remove unnecessary includes.
4784 * Makefile.in (alpha-linux-tdep.o): Update.
4786 2003-06-03 Richard Henderson <rth@redhat.com>
4788 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4789 (alphabsd_fill_fpreg): Likewise.
4791 2003-06-03 J. Brobecker <brobecker@gnat.com>
4793 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4794 references to struct frame_info fields by calls to the equivalent
4795 accessors. Necessary now that frame_info is opaque.
4797 2003-06-03 J. Brobecker <brobecker@gnat.com>
4799 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4800 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4801 structure, field no longer exists.
4803 2003-06-03 J. Brobecker <brobecker@gnat.com>
4805 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4806 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4808 2003-06-03 J. Brobecker <brobecker@gnat.com>
4810 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4811 references to struct frame_info fields by calls to the equivalent
4812 accessors. Necessary now that frame_info is opaque.
4814 2003-06-03 J. Brobecker <brobecker@gnat.com>
4816 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4817 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4818 structure, field no longer exists.
4820 2003-06-03 Theodore A. Roth <troth@openavr.org>
4822 * remote.c (init_remote_state): Compute sizeof_g_packet by
4823 accumulation of the size of all registers instead of blindly using
4824 DEPRECATED_REGISTER_BYTES.
4826 2003-06-03 Michael Snyder <msnyder@redhat.com>
4828 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4829 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4832 2003-06-03 J. Brobecker <brobecker@gnat.com>
4834 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4835 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4837 2003-06-03 Andrew Cagney <cagney@redhat.com>
4839 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4840 (sparc_convert_to_raw): Delete function.
4841 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4842 register_convert_to_virtual.
4844 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4846 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4847 layer if not dealing with a statically-linked threaded program.
4849 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4851 * solib.c (solib_open): Update comment to reflect actual search order.
4853 2003-06-03 Andrew Cagney <cagney@redhat.com>
4855 * frame.c (get_frame_memory_signed): New function.
4856 (get_frame_memory, get_frame_memory_unsigned): New function.
4857 (get_frame_arch): New function.
4858 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4859 (get_frame_memory, get_frame_unsigned_memory): Declare.
4860 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4861 get_frame_memory_unsigned and get_frame_arch.
4862 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4864 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4866 * MAINTAINERS (write after approval): Add myself.
4868 2003-06-03 Jim Blandy <jimb@redhat.com>
4870 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4871 elements of gregset_t are 64 bits each, but access registers
4872 are still 32 bits, so they're packed two per gregset_t
4873 element. Unpack/pack them properly.
4875 2003-06-02 David Carlton <carlton@bactrian.org>
4877 * linespec.c (find_methods): Break out code into
4878 add_matching_methods and add_constructors.
4879 (add_matching_methods): New.
4880 (add_constructors): Ditto.
4882 2003-06-02 Andrew Cagney <cagney@redhat.com>
4884 * sparc-tdep.c (sparc_print_registers): Delete call to
4885 REGISTER_CONVERTIBLE.
4886 (sparc_gdbarch_init): Do not set register_convertible.
4887 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4888 * frv-tdep.c (frv_gdbarch_init): Ditto.
4889 * cris-tdep.c (cris_gdbarch_init): Ditto.
4891 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4893 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4894 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4895 (syms_from_objfile): Ditto.
4897 2003-06-03 Andreas Schwab <schwab@suse.de>
4899 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4900 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4902 2003-06-02 Richard Henderson <rth@redhat.com>
4904 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4905 a member of all_reggroup.
4907 2003-06-02 Richard Henderson <rth@redhat.com>
4909 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4910 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4911 (alpha_lds, alpha_sts): New.
4912 (alpha_convert_register_p): Change from _register_convertible.
4913 (alpha_register_to_value): Change from _convert_to_virtual;
4914 restructure and fail for type sizes other than 4 or 8.
4915 (alpha_value_to_register): Similarly.
4916 (alpha_extract_return_value): Use alpha_sts.
4917 (alpha_store_return_value): Use alpha_lds.
4918 (alpha_gdbarch_init): Update hooks.
4920 2003-06-02 Richard Henderson <rth@redhat.com>
4922 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4924 (alpha_sigtramp_register_address): Likewise.
4926 2003-06-02 Richard Henderson <rth@redhat.com>
4928 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4929 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4930 * alpha-tdep.h: Declare them.
4932 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4933 Remove zerobuf. Don't error on UNIQUE.
4934 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4935 (ALPHA_REGSET_UNIQUE): Provide default.
4936 (supply_gregset): Use alpha_supply_int_regs.
4937 (fill_gregset): Use alpha_fill_int_regs.
4938 (supply_fpregset): Use alpha_supply_fp_regs.
4939 (fill_fpregset): Use alpha_fill_fp_regs.
4940 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4941 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4942 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4943 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4944 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4945 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4947 2003-06-02 Richard Henderson <rth@redhat.com>
4949 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4951 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4952 (alpha_store_return_value): Likewise.
4954 2003-06-02 David Carlton <carlton@math.stanford.edu>
4956 * block.c (contained_in): Add 'const' to arguments.
4957 (block_function): Ditto.
4958 * block.h: Update declarations for block_function and
4961 2003-06-02 David Carlton <carlton@math.stanford.edu>
4963 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4964 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4965 * p-valprint.c (pascal_val_print): Ditto.
4966 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4968 2003-06-02 Richard Henderson <rth@redhat.com>
4970 * alpha-tdep.c (alpha_push_dummy_call): Use
4971 builtin_type_ieee_double_little instead of builtin_type_double.
4973 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4974 sign-extension of 32-bit values.
4975 (alpha_store_return_value): Similarly.
4977 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4978 (alpha_extract_return_value): Likewise.
4979 (alpha_store_return_value): Likewise.
4981 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4982 (alpha_store_return_value): Error on IEEE Quad floats.
4984 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4985 (alpha_extract_struct_value_address): Likewise.
4986 (alpha_store_return_value): Likewise.
4987 (alpha_store_struct_return): Remove.
4988 (alpha_gdbarch_init): Update hook registration to match.
4990 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4991 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4992 macros where appropriate.
4993 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4994 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4996 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4997 for SP, GP; void_func_ptr for PC; non-language-specific types
4999 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5001 2003-06-02 Richard Henderson <rth@redhat.com>
5003 * top.h (lim_at_start): Declare.
5004 * main.c (captured_main): Set it.
5005 * top.c (lim_at_start): Define.
5006 (command_loop): Use it instead of &environ.
5007 * event-top.c (command_handler): Likewise.
5009 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5011 * mipsnbsd-tdep.c: Update copyright years.
5012 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5014 2003-06-01 Richard Henderson <rth@redhat.com>
5016 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5017 (alpha-linux-tdep.o): Update dependencies.
5018 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5019 * alpha-mdebug-tdep.c: Remove unneeded includes.
5021 2003-06-01 Richard Henderson <rth@redhat.com>
5023 * alpha-tdep.c (alpha_register_reggroup_p): New.
5024 (alpha_gdbarch_init): Register it.
5026 2003-06-02 Andrew Cagney <cagney@redhat.com>
5028 * dwarfread.c: Eliminate "register"
5029 (decode_die_type): Eliminate assignment within "if".
5030 (struct_type, decode_array_element_type): Ditto.
5031 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5032 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5033 (decode_modified_type, completedieinfo): Ditto.
5034 * block.c: Eliminate "register".
5035 (blockvector_for_pc_sect): Eliminate assignment within "if".
5036 * cp-support.h (struct symbol): Opaque declaration.
5037 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5039 2003-06-01 Richard Henderson <rth@redhat.com>
5041 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5042 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5044 2003-06-01 Adam Fedor <fedor@gnu.org>
5046 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5047 * gdbarch.[ch]: Regenerate.
5048 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5049 (hppa_gdbarch_init): Set it in the gdbarch vector.
5050 * i386-tdep.c (i386_fetch_pointer_argument): New
5051 (i386_gdbarch_init): Set it into gdbarch.
5052 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5053 (rs6000_gdbarch_init): Set it in gdbarch.
5054 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5055 (sparc_gdbarch_init): Set it in gdbarch.
5057 2003-06-01 Andrew Cagney <cagney@redhat.com>
5059 * defs.h (extract_address): Delete declaration.
5060 * findvar.c (extract_address): Delete function.
5061 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5062 extract_address with the inline equivalent,
5063 extract_unsigned_integer.
5064 (xstormy16_extract_struct_value_address): Ditto.
5065 (xstormy16_pointer_to_address): Ditto.
5066 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5067 * v850-tdep.c (v850_push_arguments): Ditto.
5068 (v850_extract_return_value): Ditto.
5069 (v850_extract_struct_value_address): Ditto.
5070 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5071 (sparcnbsd_get_longjmp_target_64): Ditto.
5072 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5073 (get_longjmp_target): Ditto.
5074 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5075 (sh64_extract_struct_value_address): Ditto.
5076 (sh_push_arguments): Ditto.
5077 (sh64_push_arguments): Ditto.
5078 * remote-vxsparc.c (vx_read_register): Ditto.
5079 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5080 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5081 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5082 * mipsv4-nat.c (get_longjmp_target): Ditto.
5083 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5084 * mips-nat.c (get_longjmp_target): Ditto.
5085 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5086 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5087 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5088 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5089 * irix5-nat.c (get_longjmp_target): Ditto.
5090 * irix4-nat.c (get_longjmp_target): Ditto.
5091 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5092 (ia64_push_arguments): Ditto.
5093 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5094 * h8300-tdep.c (h8300_push_arguments): Ditto.
5095 (h8300_store_return_value): Ditto.
5096 (h8300_extract_struct_value_address): Ditto.
5097 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5098 (frv_push_arguments): Ditto.
5099 * avr-tdep.c (avr_pointer_to_address): Ditto.
5100 (avr_push_arguments): Ditto.
5101 * arm-tdep.c (arm_push_dummy_call): Ditto.
5102 (arm_get_longjmp_target): Ditto.
5103 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5104 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5105 (alpha_get_longjmp_target): Ditto.
5107 * solib-irix.c (extract_mips_address): Inline extract_address,
5108 replacing it with extract_signed_integer.
5109 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5110 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5111 (first_link_map_member, open_symbol_file_object): Ditto.
5112 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5113 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5114 (LM_NEXT, LM_NAME): Ditto.
5116 2003-06-01 Richard Henderson <rth@redhat.com>
5118 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5119 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5120 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5121 (alpha_cannot_store_register): Likewise.
5122 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5123 * alpha-nat.c (supply_gregset): Likewise.
5124 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5126 2003-06-01 Andrew Cagney <cagney@redhat.com>
5128 * infcall.c (call_function_by_hand): Update comment on
5129 DEPRECATED_DUMMY_WRITE_SP.
5131 * mips-tdep.c (mips_gdbarch_init): Do not set
5132 deprecated_dummy_write_sp.
5133 (mips_eabi_push_dummy_call): Set the SP register.
5134 (mips_o64_push_dummy_call): Set the SP register.
5135 (mips_o32_push_dummy_call): Set the SP register.
5136 (mips_n32n64_push_dummy_call): Set the SP register.
5138 2003-06-01 Richard Henderson <rth@redhat.com>
5140 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5141 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5142 (supply_gregset): Likewise.
5143 * alpha-tdep.c (alpha_store_return_value): Likewise.
5144 (alpha_get_longjmp_target): Likewise.
5145 (alpha_register_name): Constify array.
5146 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5147 deprecated_register_size, deprecated_register_bytes,
5148 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5149 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5150 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5152 2003-06-01 Richard Henderson <rth@redhat.com>
5154 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5155 from arg_reg_buffer to regcache to avoid double conversion.
5157 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5159 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5161 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5162 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5164 2003-06-01 Richard Henderson <rth@redhat.com>
5166 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5167 (decode_frame_entry): Set it. Skip FDE augmentation.
5169 2003-06-01 Richard Henderson <rth@redhat.com>
5171 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5172 not overlapping PC_REGNUM.
5174 2003-06-01 Richard Henderson <rth@redhat.com>
5176 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5177 alpha_push_arguments. Don't dump argument register data to
5178 the target stack. Fix float and 128-bit long double semantics.
5179 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5180 (alpha_fix_call_dummy): Remove.
5181 (alpha_call_dummy_words): Remove.
5182 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5184 2003-06-01 Richard Henderson <rth@redhat.com>
5186 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5188 2003-06-01 Andrew Cagney <cagney@redhat.com>
5190 * mips-tdep.c (is_mips16_addr): New function.
5191 (make_mips16_addr, unmake_mips16_addr): New functions.
5192 (pc_is_mips16, mips_fetch_instruction): Use.
5193 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5194 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5195 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5196 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5198 * config/mips/tm-mips.h: Update copyright.
5199 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5200 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5201 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5202 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5203 (TM_PRINT_INSN_MACH): Delete.
5204 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5206 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5207 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5208 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5209 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5210 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5211 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5212 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5213 mips*-*-riscos* and mips*-*-sysv* onto mips.
5214 * config/mips/mips64.mt: New file.
5215 * config/mips/mips.mt: New file.
5216 * config/mips/littlemips.mt: Delete file.
5217 * config/mips/decstation.mt: Delete file.
5218 * config/mips/vr4300el.mt: Delete file.
5219 * config/mips/vr5000el.mt: Delete file.
5220 * config/mips/vr5000.mt: Delete file.
5221 * config/mips/vr4100.mt: Delete file.
5222 * config/mips/vr4xxxel.mt: Delete file.
5223 * config/mips/vr4300.mt: Delete file.
5224 * config/mips/vr4xxx.mt: Delete file.
5225 * config/mips/bigmips.mt: Delete file.
5226 * config/mips/bigmips64.mt: Delete file.
5227 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5228 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5229 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5230 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5231 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5233 * config/mips/tm-irix3.h: Ditto.
5234 * config/mips/tm-mipsv4.h: Ditto.
5235 * config/mips/tm-embed.h: Ditto.
5236 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5238 * config/mips/tm-vr5000el.h: Delete file.
5239 * config/mips/tm-tx39l.h: Delete file.
5240 * config/mips/tm-vr4300el.h: Delete file.
5241 * config/mips/tm-vr4xxxel.h: Delete file.
5242 * config/mips/tm-vr4300.h: Delete file.
5243 * config/mips/tm-vr4100.h: Delete file.
5244 * config/mips/tm-vr4xxx.h: Delete file.
5245 * config/mips/tm-vr5000.h: Delete file.
5246 * config/mips/tm-embedl64.h: Delete file.
5247 * config/mips/tm-embedl.h: Delete file.
5248 * config/mips/tm-embed64.h: Delete file.
5249 * config/mips/tm-bigmips64.h: Delete file.
5250 * config/mips/tm-bigmips.h: Delete file.
5252 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5255 * shnbsd-nat.c: Include "sh-tdep.h".
5257 From Richard Henderson <rth@redhat.com>:
5258 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5260 2003-05-31 Andrew Cagney <cagney@redhat.com>
5262 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5263 forward declaration.
5264 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5265 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5266 (mips_find_saved_regs): Use set_reg_offset.
5267 (mips_frame_init_saved_regs): Delete function.
5268 (mips_pop_frame): Call mips_find_saved_regs instead of
5269 DEPRECATED_FRAME_INIT_SAVED_REGS.
5271 2003-05-31 Andrew Cagney <cagney@redhat.com>
5273 * mips-tdep.c (mips_gdbarch_init): Do not set
5274 deprecated_max_register_raw_size, register_virtual_size, and
5275 deprecated_max_register_virtual_size.
5277 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5279 * i386-tdep.c: Include "dwarf2-frame.h".
5280 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5281 * Makefile.in (i386-tdep.o): Update dependencies.
5283 * dwarf2-frame.c, dwarf2-frame.h: New files.
5284 * Makefile.in (SFILES): Add dwarf2-frame.c.
5285 (dwarf2_frame_h): Define.
5286 (COMMON_OBS): Add dwarf2-frame.o.
5287 (dwarf2-frame.o): Add dependencies.
5289 2003-05-31 Andreas Jaeger <aj@suse.de>
5291 * x86-64-linux-nat.c: Fix comment.
5293 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5295 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5298 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5299 have a sigcontext_addr handler.
5300 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5301 sigcontext_addr handler.
5303 2003-05-31 Andrew Cagney <cagney@redhat.com>
5305 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5306 (print_fp_register_row): Replace do_fp_register_row.
5307 (mips_print_fp_register): Add "file" and "frame" parameters.
5308 (mips_print_register): Add "file" and "frame" parameters.
5309 (mips_print_registers_info): Replace mips_do_registers_info.
5310 (mips_gdbarch_init): Set print_registers_info instead of
5311 deprecated_do_registers_info.
5312 (mips_read_fp_register_single): Add "frame" parameter.
5313 (mips_read_fp_register_double): Add "frame" parameter.
5315 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5317 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5318 Fixes a bug where GDB would print the wrong register names for
5319 targets without SSE.
5321 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5322 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5325 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5326 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5327 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5330 From Michal Ludvig <mludvig@suse.cz>:
5331 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5333 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5334 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5335 I386_ST0_REGNUM): Move here from...
5336 * i386-tdep.c: ... here.
5337 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5338 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5339 registers if possible.
5340 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5341 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5343 (i386bsd_sc_reg_offset): New variable.
5344 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5345 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5347 (i386fbsd_sc_reg_offset): New variable.
5348 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5350 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5352 (i386fbsd4_sc_reg_offset): New variable.
5353 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5354 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5356 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5357 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5358 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5360 (i386nbsd_sc_reg_offset): New variable.
5361 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5362 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5364 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5366 (i386obsd_sc_reg_offset): New variable.
5367 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5368 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5370 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5371 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5372 for frame pointer offset in `struct sigcontext'.
5374 2003-05-31 Andrew Cagney <cagney@redhat.com>
5376 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5377 architecture methods call_dummy_words, sizeof_call_dummy_words,
5378 push_return_address, store_struct_return, and fix_call_dummy. Set
5379 push_dummy_call instead of deprecated_push_arguments.
5380 (mips_store_struct_return): Delete function.
5381 (mips_fix_call_dummy): Delete function.
5382 (mips_push_return_address): Delete function.
5383 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5384 RA_REGNUM and T9_REGNUM.
5385 (mips_n32n64_push_dummy_call): Ditto for
5386 mips_n32n64_push_arguments.
5387 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5388 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5390 2003-05-31 Andrew Cagney <cagney@redhat.com>
5392 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5393 "dummy_addr" to "bp_addr".
5394 * infcall.c (call_function_by_hand): Pass "funaddr" to
5395 gdbarch_push_dummy_call.
5396 * gdbarch.h, gdbarch.c: Re-generate.
5397 * i386-tdep.c (i386_push_dummy_call): Update.
5398 * arm-tdep.c (arm_push_dummy_call): Update.
5399 * d10v-tdep.c (d10v_push_dummy_call): Update.
5401 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5403 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5404 variable declarations.
5405 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5406 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5407 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5408 x86_64_init_frame_pc, x86_64_init_frame_pc,
5409 x86_64_function_has_prologue): Remove prototypes.
5410 (X86_64_NUM_GREGS): New define.
5411 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5412 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5413 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5414 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5415 XMM1_REGNUM): Remove defines.
5416 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5417 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5418 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5419 X86_64_XMM1_REGNUM): New defines.
5420 (struct x86_64_register_info): Renamed from `struct
5421 register_info'. Remove `size' member.
5422 (x86_64_register_info_table): Remove variable.
5423 (x86_64_register_info): New variable.
5424 (X86_64_NUM_REGS): New define.
5425 (X86_64_NUM_GREGS): Remove define.
5426 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5427 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5429 (x86_54_dwarf2_reg_to_regnum): Remove function.
5430 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5431 (x86_64_dwarf_reg_to_regnum): New function.
5432 (x86_64_register_name): Rewrite.
5433 (x86_64_register_raw_size): Remove function.
5434 (x86_64_register_byte_table): Remove variable.
5435 (x86_64_register_byte): Remove function.
5436 (x86_64_register_virtual_type): Remove function.
5437 (x86_64_register_type): New function.
5438 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5439 x86_64_register_convert_to_raw): Remove functions.
5440 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5441 (x86_64_use_struct_convention): Make static. Adjust for renamed
5443 (x86_64_frame_init_saved_regs): Remove function.
5444 (x86_64_push_arguments): Make static. Change to accept a regcache
5446 (x86_64_store_return_value, x86_64_extract_return_value): Make
5447 static. Rewrite based on i386 counterparts.
5448 (x86_64_push_dummy_call): New function.
5449 (X86_64_NUM_SAVED_REGS): New define.
5450 (x86_64_register_number): Remove function.
5451 (x86_64_store_struct_return): Remove function.
5452 (x86_64_frameless_function_invocation,
5453 x86_64_function_has_prologue): Remove functions.
5454 (PROLOG_BUFSIZE): Remove define.
5455 (struct x86_64_frame_cache): New structure.
5456 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5457 x86_64_frame_cache, x86_64_frame_this_id,
5458 x86_64_frame_prev_register, x86_64_frame_p,
5459 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5460 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5462 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5464 (x86_64_skip_prologue): Rewrite in terms of
5465 x86_64_analyze_prologue.
5466 (x86_64_frame_base_address): New function.
5467 (x86_64_frame_base): New variable.
5468 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5469 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5470 set deprecated_fp_regnum, deprecated_register_size,
5471 deprecated_register_bytes, register_raw_size, register_byte,
5472 register_virtual_type, register_convertiable,
5473 register_convert_to_virtual, convert_to_raw,
5474 deprecated_get_saved_register, deprecated_target_read_fp,
5475 deprecated_push_arguments, deprecated_push_return_address,
5476 deprecated_pop_frame, deprecated_store_struct_return,
5477 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5478 frameless_function_invocation, deprecated_frame_saved_pc,
5479 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5480 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5481 deprecated_init_frame_pc and virtual_frame_pointer. Call
5482 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5483 and x86_64_frame_p. Call frame_base_set_default to register
5485 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5486 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5487 (_initialize_x86_64_tdep): Remove function.
5488 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5489 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5490 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5492 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5493 (x86_64_linux_sigcontext_addr): Rewrite.
5494 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5495 x86_64_linux_frame_saved_pc): Remove functions.
5496 (x86_64_linux_pc_in_sigtramp): Renamed from
5497 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5499 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5501 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5502 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5503 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5504 (x86_64_regmap): Rename to regmap.
5505 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5507 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5509 (x86_64_fxsave_offset): Remove function.
5510 (supply_fpregset): Simply call x86_64_supply_fxsave.
5511 (fill_fpregset): Simply call x86_64_fill_fxsave.
5512 (fetch_inferior_registers, store_inferior_registers): Avoid
5513 asignment in if-statement.
5514 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5515 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5516 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5517 (fetch_core_registers): Remove function.
5518 (linux_elf_core_fns): Remove.
5519 (offsetoff): Don't define.
5520 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5521 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5522 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5524 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5525 protection against multiple includes instead of NM_X86_64_h. Add
5526 various comments. Include "config/nm-linux.h". Don't include
5528 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5529 GET_THREAD_SIGNALS): Remove defines.
5530 (x86_64_register_u_addr, kernel_u_size,
5531 lin_thread_get_thread_signals): Remove prototypes.
5532 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5533 [HAVE_LINK_H]: Don't include "solib.h".
5534 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5535 * config/i386/tm-x86-64linux.h: Fix comments.
5536 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5537 x86-64-tdep.o): Update dependencies.
5539 2003-05-30 Andrew Cagney <cagney@redhat.com>
5541 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5542 Change parameter type to a "struct regcache *".
5544 * gdbarch.sh: Regardless of the multi-arch level, always define
5545 the macro when not already defined.
5546 * gdbarch.h, gdbarch.c: Re-generate.
5548 2003-05-30 Richard Henderson <rth@redhat.com>
5550 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5551 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5552 (alpha_mdebug_frame_this_id): Likewise.
5553 (alpha_mdebug_frame_prev_register): Likewise.
5554 (alpha_mdebug_frame_base_address): Likewise.
5555 (alpha_mdebug_frame_locals_address): Likewise.
5556 (alpha_mdebug_frame_args_address): Likewise.
5557 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5558 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5559 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5561 (alpha_heuristic_frame_this_id): Make static.
5562 (alpha_heuristic_frame_prev_register): Likewise.
5563 (alpha_heuristic_frame_base_address): Likewise.
5564 * alpha-tdep.h: Update.
5566 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5568 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5569 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5571 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5572 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5573 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5574 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5575 I386_ST0_REGNUM): New defines.
5576 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5577 codestream_get): Remove define.
5578 (codestream_next_addr, condestream_addr, condestream_buf,
5579 codestream_off, codestream_cnt): Remove variables.
5580 (codestream_fill, codestream_seek, codestream_read): Remove
5582 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5584 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5585 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5586 i386_frame_saved_pc, i386_saved_pc_after_call,
5587 i386_frame_num_args, i386_frame_init_saved_regs,
5588 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5589 i386_push_arguments): Remove functions.
5590 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5591 functionality. Use i386_analyze_prologue instead of
5592 i386_get_frame_setup.
5593 (I386_NUM_SAVED_REGS): New define.
5594 (struct i386_frame_cache): New structure.
5595 (i386_alloc_frame_cache, i386_analyze_struct_return,
5596 i386_skip_probe, i386_analyze_frame_setup,
5597 i386_analyze_register_saves, i386_analyze_prologue,
5598 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5599 i386_frame_prev_register, i386_sigtramp_frame_cache,
5600 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5601 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5602 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5604 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5606 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5607 I386_EAX_REGNUM and I386_EDX_REGNUM.
5608 (i386_extract_return_value, i386_store_return_value): Use
5609 I386_ST0_REGNUM where appropriate.
5610 (i386_extract_struct_value_address): Rewrite to use extract_address.
5611 (i386_svr4_pc_in_sigtramp): Add comment.
5612 (i386_svr4_sigcontext_addr): Rewrite.
5613 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5615 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5616 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5617 of new defines. Set push_dummy_call, don't set
5618 deprecated_push_arguments, deprecated_push_return_address,
5619 deprecated_pop_frame. Don't set parm_boundary. Don't set
5620 deprecated_frame_chain, deprecated_frame_saved_pc,
5621 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5622 save_dummy_frame_tos, unwind_pc. Call
5623 frame_unwind_append_predicate and frame_base_set_default. Don't
5624 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5625 Don't set frameless_function_invocation. Don't set
5626 deprecated_register_bytes, deprecated_register_size,
5627 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5628 * i386-linux-tdep.c: Fix formatting in some comments.
5629 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5630 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5631 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5632 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5633 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5634 redundant parentheses.
5635 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5636 (i386_linux_sigcontext_addr): Use it. Rewrite.
5637 (find_minsym_and_objfile): Change name of second argument.
5638 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5639 changed. Use frame_pc_unwind instead of
5640 DEPRECATED_SAVED_PC_AFTER_CALL.
5641 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5642 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5643 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5645 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5647 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5648 (_initialize_i386_cygwin_tdep): New prototype.
5649 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5650 deprecated_frame_chain_valid.
5651 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5652 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5653 Rely on the SVR4 defaults.
5654 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5655 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5657 2003-05-30 Andrew Cagney <cagney@redhat.com>
5659 * infcall.c (call_function_by_hand): Always call
5660 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5662 2003-05-30 Richard Henderson <rth@redhat.com>
5664 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5667 2003-05-29 Jim Blandy <jimb@redhat.com>
5669 Use gdbarch methods for solib stuff on PowerPC Linux.
5670 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5671 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5673 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5674 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5675 giving the same effect as the #definitions above.
5677 2003-05-29 Adam Fedor <fedor@gnu.org>
5679 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5680 (find_implementation_from_class): Replace it with the standard
5681 case i.e. do nothing.
5683 2003-05-29 Richard Henderson <rth@redhat.com>
5685 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5686 (alpha_linux_sigtramp_offset): Use it. Make static.
5687 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5688 update for new frame model.
5689 * alpha-mdebug-tdep.c: New file.
5690 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5691 (alpha_osf1_init_abi): Install it.
5692 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5693 (linked_proc_desc_table): Remove.
5694 (alpha_frame_past_sigtramp_frame): Remove.
5695 (alpha_dynamic_sigtramp_offset): Remove.
5696 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5697 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5698 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5699 (push_sigtramp_desc): Remove.
5700 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5701 (alpha_cannot_store_register): Likewise.
5702 (alpha_sigcontext_addr): Remove.
5703 (alpha_find_saved_regs): Remove.
5704 (alpha_frame_init_saved_regs): Remove.
5705 (alpha_init_frame_pc_first): Remove.
5706 (read_next_frame_reg): Remove.
5707 (alpha_frame_saved_pc): Remove.
5708 (alpha_saved_pc_after_call): Remove.
5709 (temp_proc_desc, temp_saved_regs): Remove.
5710 (alpha_about_to_return): Remove.
5711 (cached_proc_desc): Remove.
5712 (alpha_frame_chain): Remove.
5713 (alpha_print_extra_frame_info): Remove.
5714 (alpha_init_extra_frame_info): Remove.
5715 (alpha_frame_locals_address): Remove.
5716 (alpha_frame_args_address): Remove.
5717 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5718 (alpha_push_dummy_frame): Remove.
5719 (alpha_pop_frame): Remove.
5720 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5721 (alpha_read_insn): New.
5722 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5723 for different insn encodings.
5724 (alpha_in_lenient_prologue): Remove.
5725 (struct alpha_sigtramp_unwind_cache): New.
5726 (alpha_sigtramp_frame_unwind_cache): New.
5727 (alpha_sigtramp_register_address): New.
5728 (alpha_sigtramp_frame_this_id): New.
5729 (alpha_sigtramp_frame_prev_register): New.
5730 (alpha_sigtramp_frame_unwind): New.
5731 (alpha_sigtramp_frame_p): New.
5732 (struct alpha_heuristic_unwind_cache): New.
5733 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5734 don't count nop insns that occur between functions.
5735 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5736 heuristic_proc_desc, but without the mdebug wrapping.
5737 (alpha_heuristic_frame_this_id): New.
5738 (alpha_heuristic_frame_prev_register): New.
5739 (alpha_heuristic_frame_unwind): New.
5740 (alpha_heuristic_frame_p): New.
5741 (alpha_heuristic_frame_base_address): New.
5742 (alpha_heuristic_frame_base): New.
5743 (alpha_unwind_dummy_id): New.
5744 (alpha_unwind_pc): New.
5745 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5746 frame related deprecated initializations; install replacements.
5747 (alpha_dump_tdep): Remove.
5748 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5749 (alpha_read_insn, alpha_after_prologue,
5750 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5751 alpha_heuristic_frame_prev_register,
5752 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5753 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5754 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5755 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5757 2003-05-29 Andrew Cagney <cagney@redhat.com>
5759 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5760 dependant on the availability of ASSERT_FUNCTION.
5761 (ASSERT_FUNCTION): Do not define when there is no function name.
5763 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5765 From Jimi X <jimix@watson.ibm.com>:
5766 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5768 2003-05-28 Jim Blandy <jimb@redhat.com>
5770 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5771 argument to ptrace to int; the system headers should give it the
5772 right type, and pointers don't fit in ints on powerpc64-*-*.
5774 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5776 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5779 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5781 * stabsread.c (dbx_lookup_type): Make static.
5783 (add_undefined_type): Ditto.
5784 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5787 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5789 * hpread.c (hpread_has_name): Make static.
5790 (hpread_psymtab_to_symtab): Ditto.
5791 (file_exists): Ditto.
5792 (hpread_call_pxdb): Ditto.
5793 (hpread_pxdb_needed): Ditto.
5794 (hpread_quick_traverse): Ditto.
5795 (hpread_get_header): Ditto.
5796 (hpread_get_lntt): Ditto.
5797 (hpread_get_slt): Ditto.
5800 2003-05-25 Andreas Schwab <schwab@suse.de>
5802 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5803 stack_align and deprecated_extra_stack_alignment_needed.
5804 (m68k_stack_align): Delete.
5806 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5807 (m68k_register_virtual_size): Likewise.
5808 (altos_skip_prologue): Remove obsolete function.
5809 (isi_frame_num_args): Likewise.
5810 (news_frame_num_args): Likewise.
5811 (m68k_fix_call_dummy): Make static.
5812 (m68k_push_dummy_frame): Likewise.
5813 (m68k_pop_frame): Likewise.
5814 (m68k_skip_prologue): Likewise.
5815 (m68k_frame_init_saved_regs): Likewise.
5816 (m68k_saved_pc_after_call): Likewise.
5817 (m68k_get_longjmp_target): Make multi-arch.
5818 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5819 structure. Register m68k_get_longjmp_target if enabled.
5820 * m68k-tdep.h (struct gdbarch_tdep): Define.
5821 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5823 * Makefile.in (config.status): Also depend on configure.tgt
5825 (m68klinux-tdep.o): Update dependencies.
5826 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5827 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5828 (M68K_LINUX_JB_PC): Define.
5829 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5830 and take additional parameter.
5831 (m68k_linux_sigtramp_saved_pc): Update.
5832 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5833 m68k_linux_pc_in_sigtramp, in_plt_section,
5834 find_solib_trampoline_target.
5835 * config/m68k/tm-linux.h: Don't include any tm headers.
5836 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5837 (JB_ELEMENT_SIZE): Likewise.
5839 (GET_LONGJMP_TARGET): Likewise.
5840 (IN_SIGTRAMP): Likewise.
5841 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5843 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5845 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5846 (sparc32_push_arguments): Re-implement by calling
5847 sparc32_do_push_arguments.
5849 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5851 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5852 SPARC_O1_REGNUM): New defines.
5853 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5854 (sparc32_store_return_value): New function.
5855 (sparc_extract_struct_value_address): Rewrite to operate on a
5857 (sparc_gdbarch_init): Don't set
5858 deprecated_extract_struct_value_address. Set
5859 extract_struct_value_address instead. Don't set
5860 deprecated_extract_return_value and deprecated_store_return_value
5861 for 32-bit targets. Set extract_return_value and
5862 store_return_value instead.
5863 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5864 DEPRECTAED_EXTRACT_RETURN_VALUE,
5865 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5866 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5867 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5868 (sparc_store_return_value): Remove prototype.
5869 (sparc32_store_return_value): New prototype.
5870 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5873 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5875 * sparcnbsd-tdep.c: Include "gdb_string.h".
5877 2003-05-23 Andrew Cagney <cagney@redhat.com>
5879 * p-valprint.c (pascal_val_print): Replace extract_address with
5880 the inline equivalent extract_unsigned_integer.
5881 * jv-valprint.c (java_value_print): Ditto.
5882 * ada-valprint.c (ada_val_print_1): Ditto.
5883 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5885 2003-05-23 Theodore A. Roth <troth@openavr.org>
5887 * blockframe.c (frameless_look_for_prologue): Remove unused
5888 after_prologue variable.
5890 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5892 * blockframe.c (get_pc_function_start): Rewrite to avoid
5893 asignments in if-statements.
5895 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5897 Committed by Elena Zannoni <ezannoni@redhat.com>.
5898 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5899 files, don't relocate absolute symbols (and do use mst_abs).
5901 2003-05-23 Andrew Cagney <cagney@redhat.com>
5903 * objc-lang.c: Include "gdb_assert.h".
5904 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5905 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5906 (gdb_check, gdb_check_fatal): Delete functions.
5907 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5909 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5910 * Makefile.in (objc-lang.o): Update dependencies.
5912 2003-05-22 Ian Lance Taylor <ian@airs.com>
5914 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5915 with fprintf_filtered, not fprintf_unfiltered.
5917 2003-05-22 Andrew Cagney <cagney@redhat.com>
5919 * stack.c (frame_info): Inline extract_address, replacing it with
5920 extract_unsigned_integer.
5921 * findvar.c (unsigned_pointer_to_address): Ditto.
5922 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5923 * dwarf2expr.c (dwarf2_read_address): Ditto.
5924 * frame.c (frame_pc_unwind): Update comment.
5925 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5927 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5929 * infptrace.c (detach): Call print_sys_errmsg rather than
5930 perror_with_name to issue warning message when errno is non-zero
5931 after calling ptrace detach.
5933 2003-05-21 J. Brobecker <brobecker@gnat.com>
5935 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5936 macro definitions from here...
5937 * hppa-tdep.c: ...to there.
5939 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5941 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5942 register_ptrace_addr(). Fix all callers.
5944 2003-05-21 Andreas Schwab <schwab@suse.de>
5946 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5948 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5950 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5951 (_initialize_m68k_linux_tdep): New function.
5952 (m68k_linux_frame_saved_pc): Make static.
5953 (m68k_linux_extract_return_value): Likewise.
5954 (m68k_linux_store_return_value): Likewise.
5955 (m68k_linux_extract_struct_value_address): Likewise.
5956 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5958 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5959 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5960 (DEPRECATED_FRAME_SAVED_PC): Remove.
5962 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5964 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5965 regset numbering rather than our own.
5967 2003-05-19 David Carlton <carlton@bactrian.org>
5969 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5971 2003-05-19 David Carlton <carlton@bactrian.org>
5973 Partial fix for PR c++/827.
5974 * cp-support.h: Include symtab.h.
5975 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5976 * cp-namespace.c: Update contributors.
5977 (cp_lookup_symbol_nonlocal): New.
5978 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5979 (lookup_symbol_file): Ditto.
5980 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5981 * block.h: Declare block_scope, block_using, block_global_block.
5982 * block.c (block_scope): New.
5983 (block_using, block_global_block): Ditto.
5984 * Makefile.in (cp_support_h): Depend on symtab_h.
5985 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5987 2003-05-19 David Carlton <carlton@bactrian.org>
5989 * language.h (struct language_defn): Add 'la_value_of_this'
5990 and 'la_lookup_symbol_nonlocal' members.
5991 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5992 lookup_symbol_static, lookup_symbol_global,
5993 lookup_symbol_aux_block.
5994 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5995 if we should search fields of this and how to do static/global
5997 (lookup_symbol_aux_block): Make extern.
5998 (basic_lookup_symbol_nonlocal): New.
5999 (lookup_symbol_static, lookup_symbol_global): Ditto.
6000 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6001 'la_lookup_symbol_nonlocal' members.
6002 * c-lang.c (c_language_defn, cplus_language_defn)
6003 (asm_language_defn, minimal_language_defn): Ditto.
6004 * jv-lang.c (java_language_defn): Ditto.
6005 * language.c (unknown_language_defn, auto_language_defn)
6006 (local_language_defn): Ditto.
6007 * m2-lang.c (m2_language_defn): Ditto.
6008 * objc-lang.c (objc_language_defn): Ditto.
6009 * scm-lang.c (scm_language_defn): Ditto.
6010 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6011 * p-lang.c (pascal_language_defn): Ditto for both.
6012 * Makefile.in (f-lang.o): Depend on value_h.
6015 2003-05-19 David Carlton <carlton@bactrian.org>
6017 * block.h: Declare block_static_block.
6018 * block.c (block_static_block): New.
6019 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6020 lookup_symbol_aux_local, calling block_static_block instead.
6021 (lookup_symbol_aux_local): Delete 'static_block' argument.
6023 2003-05-19 David Carlton <carlton@bactrian.org>
6025 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6027 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6029 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6030 register numbers mapping.
6032 2003-05-18 Adam Fedor <fedor@gnu.org>
6034 * symtab.c (completion_list_objc_symbol): New function.
6035 (make_symbol_completion_list): Use it to add ObjC symbols
6036 when looking though the list.
6037 (language_search_unquoted_string): New function.
6038 (make_file_symbol_completion_list): Use it.
6040 2003-05-18 Andreas Schwab <schwab@suse.de>
6042 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6044 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6045 as m68k_linux_extract_return_value.
6046 (DEPRECATED_STORE_RETURN_VALUE): Define as
6047 m68k_linux_store_return_value.
6048 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6049 m68k_linux_extract_struct_value_address.
6050 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6051 get_next_frame, get_frame_base, get_frame_pc.
6052 (m68k_linux_frame_saved_pc): Use get_frame_base.
6053 (m68k_linux_extract_return_value): New function.
6054 (m68k_linux_store_return_value): New function.
6055 (m68k_linux_extract_struct_value_address): New function.
6056 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6058 * c-exp.y (typebase): Remove duplicate occurence of
6059 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6060 of lookup_signed_typename.
6062 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6064 * dwarf2loc.c (find_location_expression): Change type of second
6065 argument to `size_t *'.
6066 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6069 2003-05-18 David Carlton <carlton@bactrian.org>
6071 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6072 'linkage_name'. Add comment.
6073 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6075 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6076 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6077 (lookup_block_symbol): Ditto.
6079 2003-05-16 Andrew Cagney <cagney@redhat.com>
6081 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6082 * gdbarch.h, gdbarch.c: Re-generate.
6083 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6084 * TODO (REGISTER_BYTES): Delete reference.
6085 * alpha-tdep.c (alpha_gdbarch_init): Update.
6086 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6087 * x86-64-tdep.c (x86_64_init_abi): Update.
6088 * vax-tdep.c (vax_gdbarch_init): Update.
6089 * v850-tdep.c (v850_gdbarch_init): Update.
6090 * sparc-tdep.c (sparc_gdbarch_init): Update.
6091 * sh-tdep.c (sh_gdbarch_init): Update.
6092 * s390-tdep.c (s390_gdbarch_init): Update.
6093 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6094 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6095 (ns32k_gdbarch_init_32382): Update.
6096 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6097 * mcore-tdep.c (mcore_gdbarch_init): Update.
6098 * m68k-tdep.c (m68k_gdbarch_init): Update.
6099 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6100 * ia64-tdep.c (ia64_gdbarch_init): Update.
6101 * i386-tdep.c (i386_gdbarch_init): Update.
6102 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6103 * hppa-tdep.c (hppa_gdbarch_init): Update.
6104 * h8300-tdep.c (h8300_gdbarch_init): Update.
6105 * frv-tdep.c (frv_gdbarch_init): Update.
6106 * cris-tdep.c (cris_gdbarch_init): Update.
6107 * avr-tdep.c (avr_gdbarch_init): Update.
6108 * arm-tdep.c (arm_gdbarch_init): Update.
6109 * sparc-tdep.c (sparc_pop_frame): Update.
6110 * rs6000-tdep.c (rs6000_pop_frame): Update.
6111 * remote.c (init_remote_state): Update.
6112 (remote_prepare_to_store): Update.
6113 * remote-vx.c (vx_prepare_to_store): Update.
6114 * remote-sds.c (sds_fetch_registers): Update.
6115 (sds_prepare_to_store): Update.
6116 * remote-array.c: Update.
6117 * regcache.c (init_legacy_regcache_descr): Update.
6118 (init_regcache_descr): Update.
6119 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6120 (mips_o64_extract_return_value): Update.
6121 * irix5-nat.c (fetch_core_registers): Update.
6122 * irix4-nat.c (fetch_core_registers): Update.
6123 * i386-tdep.h: Update.
6124 * hppa-tdep.c (pa_do_registers_info): Update.
6125 (pa_do_strcat_registers_info): Update.
6126 * cris-tdep.c (cris_register_bytes_ok): Update.
6127 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6128 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6129 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6130 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6131 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6132 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6133 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6134 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6135 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6136 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6137 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6138 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6139 (REGISTER_BYTES_OK): Update.
6140 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6141 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6143 2003-05-16 Ian Lance Taylor <ian@airs.com>
6145 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6146 (vax_print_insn, print_insn_arg): Remove static functions.
6147 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6148 print_insn_vax from opcodes library.
6149 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6151 2003-05-15 Andrew Cagney <cagney@redhat.com>
6153 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6154 * target.h (memory_breakpoint_from_pc): Delete declaration.
6155 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6156 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6157 * monitor.c (monitor_insert_breakpoint): Use
6158 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6159 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6160 * gdbarch.h, gdbarch.c: Re-generate.
6161 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6162 (sparc_gdbarch_init): Set breakpoint_from_pc to
6163 sparc_breakpoint_from_pc.
6164 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6165 (BREAKPOINT_FROM_PC): Define.
6166 (sparc_breakpoint_from_pc): Declare.
6167 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6168 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6169 (BREAKPOINT_FROM_PC): Define.
6170 (BREAKPOINT): Delete macro.
6171 * target.h: Update comment.
6172 * s390-tdep.c (s390_gdbarch_init): Update comments.
6173 * remote.c: Update comments.
6174 * remote-mips.c: Update comments.
6175 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6176 * mem-break.c: Update comment.
6177 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6178 (ia64_memory_insert_breakpoint): Update.
6179 * config/sparc/tm-sparc.h: Update comment.
6180 * config/pa/tm-hppa64.h: Update comment.
6181 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6182 (rs6000_breakpoint_from_pc): Update.
6183 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6184 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6185 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6186 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6187 (mips_breakpoint_from_pc): Update.
6188 (mips_dump_tdep): Update.
6190 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6191 * minsyms.c (lookup_minimal_symbol): Inline
6192 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6194 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6195 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6196 * p-lang.c (pascal_printstr): Ditto.
6197 * objc-lang.c (objc_printstr): Ditto.
6198 * m2-lang.c (m2_printstr): Ditto.
6199 * jv-valprint.c (java_print_value_fields): Ditto.
6200 * f-lang.c (f_printstr): Ditto.
6201 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6202 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6203 for repeat_count_threshold.
6204 * Makefile.in (cp-valprint.o): Update dependencies.
6206 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6208 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6209 (examine_prologue): Support looking through leaf functions, knowing
6210 they start with mov r2,r12. Support skipping over indirect stores
6211 of the input registers. Upon hitting a non-nop branch instruction
6212 or predicated instruction, bail out by setting lim_pc to the current
6213 pc value in the loop. At the end, if the lim_pc value is still
6214 beyond our calculated value and we have trust_limit set,
6215 use the lim_pc value.
6217 2003-05-15 Andrew Cagney <cagney@redhat.com>
6219 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6220 generic_find_dummy_frame.
6221 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6222 (deprecated_generic_find_dummy_frame): Update.
6223 (deprecated_read_register_dummy): Update.
6224 * frame.c (deprecated_generic_get_saved_register): Update.
6226 2003-05-15 Theodore A. Roth <troth@openavr.org>
6228 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6229 (avr_gdbarch_init): Set breakpoint_from_pc method.
6231 2003-05-15 Andrew Cagney <cagney@redhat.com>
6233 * regcache.c (build_regcache): Set deprecated_register_valid
6235 (deprecated_grub_regcache_for_register_valid): Delete function.
6236 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6239 2003-05-15 David Carlton <carlton@bactrian.org>
6241 Committed by Elena Zannoni <ezannoni@redhat.com>
6242 * symtab.c (lookup_symbol_aux): Delete calls to
6243 lookup_symbol_aux_minsyms.
6244 (lookup_symbol_aux_minsyms): Comment out function and
6245 prototype. Delete lookup by mangled name.
6247 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6249 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6250 correctly indicate an empty stack and ``stack_allocated'' to the
6251 indicate the number of elements initially allocated.
6252 (dwarf_expr_grow_stack): Simplify method for computing new
6253 stack size. Don't loop infinitely if ``stack_len'' is zero.
6254 (execute_stack_op): Move ``ctx->in_reg'' initialization
6255 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6256 be used in conjuction with DW_OP_piece. Revise error message
6259 2003-05-14 Theodore A. Roth <troth@openavr.org>
6261 * MAINTAINERS: Update my email address.
6262 * avr-tdep.c: Ditto.
6264 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6266 * symtab.h (enum domain_enum): Rename from namespace_enum.
6267 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6268 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6269 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6270 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6271 TYPES_NAMESPACE, METHODS_NAMESPACE.
6272 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6273 (struct symbol, struct partial_symbol): Rename field
6274 'namespace_enum namespace' to 'domain_enum domain'.
6275 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6276 Delete old define kludge for namespace.
6278 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6279 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6280 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6281 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6282 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6283 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6284 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6285 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6286 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6287 occurrences of the above.
6289 2003-05-14 Ian Lance Taylor <ian@airs.com>
6291 * Makefile.in (install-only): Use $(SHELL) when running
6294 2003-05-13 Ian Lance Taylor <ian@airs.com>
6296 * MAINTAINERS (write after approval): Add myself.
6298 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6299 second and third arguments.
6300 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6301 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6303 2003-05-13 Andrew Cagney <cagney@redhat.com>
6305 * defs.h (store_address): Delete declaration.
6306 findvar.c (store_address): Delete function.
6307 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6308 store_unsigned_integer.
6309 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6310 * v850-tdep.c (v850_push_arguments): Ditto.
6311 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6312 * sh-tdep.c (sh64_get_saved_register): Ditto.
6313 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6314 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6315 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6316 (mips_get_saved_register): Ditto.
6317 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6318 (find_func_descr, ia64_push_arguments): Ditto.
6319 * i386-tdep.c (i386_push_arguments): Ditto.
6320 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6321 * frv-tdep.c (frv_push_arguments): Ditto.
6322 * frame.c (legacy_saved_regs_prev_register): Ditto.
6323 (deprecated_generic_get_saved_register): Ditto.
6324 * findvar.c (unsigned_address_to_pointer): Ditto.
6325 * dwarf2read.c (dwarf2_const_value): Ditto.
6326 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6327 * alpha-tdep.c (alpha_push_arguments): Ditto.
6329 2003-05-12 J. Brobecker <brobecker@gnat.com>
6331 * NEWS: Mention that the hppa-hpux port has been partially
6332 multiarched (32bit ABIT only, so far).
6334 2003-05-11 Andrew Cagney <cagney@redhat.com>
6336 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6337 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6338 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6339 sim/testsuite/sim/arm/misaligned2.ms, and
6340 sim/testsuite/sim/arm/misaligned3.ms.
6341 * disasm.h (struct ui_file): Add opaque struct declaration.
6342 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6343 * frame.h (struct ui_file): Ditto.
6345 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6347 * value.h: Pretty print.
6349 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6351 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6353 2003-05-08 Andrew Cagney <cagney@redhat.com>
6355 * regcache.h (max_register_size): Delete declaration.
6356 * regcache.c (max_register_size): Delete function.
6357 (struct regcache_descr): Delete field "max_register_size".
6358 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6359 registers fit in MAX_REGISTER_SIZE.
6360 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6361 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6362 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6363 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6364 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6365 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6366 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6367 * dve3900-rom.c, hppa-tdep.c: Ditto.
6369 2003-05-08 David Carlton <carlton@math.stanford.edu>
6371 * valops.c (push_word): Fix typo.
6373 2003-05-08 Andrew Cagney <cagney@redhat.com>
6375 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6376 * gdbarch.h: Re-generate.
6377 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6378 (legacy_max_register_raw_size): Delete declaration.
6379 * regcache.c (legacy_max_register_raw_size): Delete function.
6380 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6381 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6382 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6383 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6384 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6385 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6386 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6387 * findvar.c, dwarf2cfi.c: Ditto.
6389 2003-05-08 Andrew Cagney <cagney@redhat.com>
6391 * mips-tdep.c (read_signed_register): New function, moved to here
6393 (read_signed_register_pid): Ditto.
6394 * regcache.c (read_signed_register_pid): Delete function, moved to
6396 (read_signed_register): Ditto.
6397 * regcache.h (read_signed_register): Delete declaration.
6398 (read_signed_register_pid): Delete declaration.
6400 2003-05-08 Andrew Cagney <cagney@redhat.com>
6402 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6403 * gdbarch.h: Re-generate.
6404 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6405 (legacy_max_register_virtual_size): Delete declaration.
6406 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6407 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6408 * tracepoint.c (memrange_sortmerge): Ditto.
6409 * sparc-tdep.c (sparc_print_registers): Ditto.
6410 * regcache.c (legacy_max_register_virtual_size): Delete function.
6412 2002-05-08 J. Brobecker <brobecker@gnat.com>
6414 * fork-child.c (escape_bang_in_quoted_argument): New function.
6415 (fork_inferior): Escape '!' characters in quoted arguments
6418 2003-05-08 J. Brobecker <brobecker@gnat.com>
6420 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6421 the language of the CU is not currently supported by GDB.
6423 2003-05-08 J. Brobecker <brobecker@gnat.com>
6425 * defs.h (language): Add language_minimal enum value.
6426 * c-lang.c (minimal_language_defn): New language definition.
6427 (_initialize_c_language): Add the new minimal language to the list
6428 of languages known to GDB.
6430 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6432 * frame.c (get_frame_type): Don't attempt to lazily initialize
6433 frame's unwinder for legacy frames.
6435 2003-05-07 Andrew Cagney <cagney@redhat.com>
6437 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6438 and "regcache" parameters.
6439 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6441 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6443 * dwarf2read.c (dwarf_decode_lines): Only use output of
6444 check_cu_functions() when calling record_line(). Do not update
6445 the current address.
6447 2003-05-07 Andrew Cagney <cagney@redhat.com>
6449 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6452 2003-05-07 Jim Blandy <jimb@redhat.com>
6454 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6455 'maint info symtabs' and 'maint info psymtabs'.
6456 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6457 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6458 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6459 Declarations updated.
6460 * maint.c (maintenance_list_command): Delete.
6461 (_initialize_maint_cmds): Update calls to add_cmd.
6462 * gdbcmd.h (maintenancelistlist): Delete declaration.
6463 * cli/cli-cmds.c (maintenancelistlist): Delete.
6464 (init_cmd_lists): Don't initialize it.
6465 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6467 2003-05-07 Andrew Cagney <cagney@redhat.com>
6469 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6471 (d10v_print_registers_info): Update.
6472 (d10v_dmap_register, d10v_imap_register): Delete functions.
6473 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6474 and "imap_register".
6475 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6476 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6477 * arch-utils.c (generic_remote_translate_xfer_address): Add
6478 "regcache" and "gdbarch" parameters.
6479 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6480 parameter. Change class to multi-arch.
6481 * gdbarch.h, gdbarch.c: Re-generate.
6482 * remote.c (remote_xfer_memory): Use
6483 gdbarch_remote_translate_xfer_address.
6485 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6487 * infrun.c (prev_pc): Move declaration ahead of proceed().
6488 (proceed): Refresh prev_pc value before resuming.
6489 (stop_stepping): Remove code to refresh prev_pc.
6491 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6493 * nto-tdep.c: Removed stray comment.
6495 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6497 * i386-nto-tdep.c: Fix old K&R function definitions.
6498 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6499 Also change add_show_from_set() call to add_setshow_cmd().
6500 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6502 2003-05-05 Andrew Cagney <cagney@redhat.com>
6504 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6505 (fprint_dummy_frames): New function.
6506 (maintenance_print_dummy_frames): New function.
6507 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6508 * frame.c (fprint_frame_id): Make global.
6509 * frame.h (fprint_frame_id): Declare.
6510 * Makefile.in (dummy-frame.o): Update dependencies.
6512 2003-05-05 Andrew Cagney <cagney@redhat.com>
6514 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6515 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6516 SIZEOF_CALL_DUMMY_WORDS.
6517 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6518 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6519 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6520 CALL_DUMMY_BREAKPOINT_OFFSET.
6521 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6522 CALL_DUMMY_START_OFFSET.
6523 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6524 * gdbarch.h, gdbarch.c: Re-generate.
6525 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6526 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6527 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6528 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6529 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6530 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6531 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6532 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6533 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6534 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6535 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6536 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6537 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6538 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6539 * config/sparc/tm-sparc.h: Update.
6541 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6543 * configure.tgt: Add i[3456]86-*-nto*.
6544 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6545 * nto-tdep.c: New file. Neutrino target support routines.
6546 * nto-tdep.h: New file. Neutrino target header.
6547 * config/tm-qnxnto.h: New file.
6548 * config/i386/i386nto.mt: New file.
6549 * config/i386/tm-i386nto.h: New file.
6551 2003-05-04 Andrew Cagney <cagney@redhat.com>
6553 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6554 (load_infrun_state): Ditto.
6555 (struct thread_info): Drop "prev_func_name" field.
6556 * thread.c (load_infrun_state): Update.
6557 (save_infrun_state): Update.
6558 * infrun.c (prev_func_name): Delete variable.
6559 (init_wait_for_inferior): Do not clear prev_func_name.
6560 (stop_stepping, keep_going, context_switch): Do not swap
6562 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6563 instead of PC_IN_SIGTRAMP.
6565 2003-05-04 Andrew Cagney <cagney@redhat.com>
6567 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6568 REGISTER_BYTE with register_offset_hack.
6569 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6570 that REGISTER_BYTE is consistent with the regcache.
6571 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6572 * gdbarch.h, gdbarch.c: Regenerate.
6574 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6576 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6577 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6579 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6581 2003-05-03 J. Brobecker <brobecker@gnat.com>
6583 From Thierry Schneider <tpschneider1@yahoo.com>
6584 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6585 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6586 (mi-cmd-symbol.o): Add rule.
6588 2003-05-03 Andrew Cagney <cagney@redhat.com>
6590 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6591 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6592 * gdbarch.h, gdbarch.c: Re-generate.
6593 * d10v-tdep.c (d10v_push_dummy_code): New function.
6594 (d10v_gdbarch_init): Set push_dummy_code.
6595 * infcall.c (legacy_push_dummy_code): New function.
6596 (generic_push_dummy_code): New function.
6597 (push_dummy_code): New function.
6598 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6599 instead of dummy_addr, to push_dummy_call. Move call to
6600 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6602 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6604 2003-05-03 Andrew Cagney <cagney@redhat.com>
6606 * disasm.h (print_insn): Declare.
6607 * disasm.c (init_gdb_disassemble_info): New function.
6608 (gdb_disassembly): Call init_gdb_disassemble_info.
6609 (gdb_print_insn): New function.
6610 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6611 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6612 * mcore-tdep.c: Include "disasm.h"
6613 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6614 * d10v-tdep.c: Include "disasm.h".
6615 (display_trace): Call gdb_print_insn, instead of print_insn.
6616 (print_insn): Delete function.
6617 * printcmd.c: Include "disasm.h".
6618 (print_insn): Delete function.
6619 (print_formatted): Call gdb_print_insn, instead of print_insn.
6620 * Makefile.in (printcmd.o): Update dependencies.
6621 (mcore-tdep.o, d10v-tdep.o): Ditto.
6623 2003-05-02 Andrew Cagney <cagney@redhat.com>
6625 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6626 PC_REGNUM, re-indent.
6627 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6628 PC_REGNUM isn't set.
6630 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6631 * gdbarch.h, gdbarch.c: Re-generate.
6632 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6633 register_virtual_size, pc_regnum, or register_bytes.
6634 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6635 (d10v_register_type): Use D10V_PC_REGNUM.
6636 (d10v_print_registers_info, d10v_read_pc): Ditto.
6637 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6638 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6640 2003-05-02 David Carlton <carlton@bactrian.org>
6642 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6643 the name with mstrsave.
6645 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6647 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6648 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6649 (host_charset_name, target_charset_name): New vars for use by
6651 (host_charset_enum, target_charset_enum): New enums for set/show
6653 (set_charset_sfunc, set_host_charset_sfunc,
6654 set_target_charset_sfunc): New functions.
6655 (set_host_charset, set_target_charset): Make static.
6656 (list_charsets, set_host_charset_command,
6657 set_target_charset_command): Delete functions.
6658 (show_charset_command): Rewrite as....
6659 (show_charset): Hook this up with the set/show command mechanism.
6660 (_initialize_charset): Change names of charsets to match the
6661 set/show enums. Use host_charset_name and target_charset_name.
6662 Use set/show mechanism for charset, host-charset, target-charset
6663 commands. Do not make 'show host-charset' and 'show
6664 target-charset' be aliases of 'show charset'.
6666 * charset.h (set_host_charset, set_target_charset): Don't export,
6667 they are not used outside the file.
6669 2003-05-01 Andrew Cagney <cagney@redhat.com>
6671 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6672 (gdb_disassembly): Make "di" non static, always initialize and
6673 cleanup. Always use dis_asm_read_memory.
6674 (gdb_dis_asm_read_memory): Delete function.
6676 2003-05-01 Andrew Cagney <cagney@redhat.com>
6678 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6679 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6681 2003-04-30 Andrew Cagney <cagney@redhat.com>
6683 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6684 "tm_print_insn_info".
6685 (TARGET_PRINT_INSN_INFO): Delete macro.
6686 (dis_asm_read_memory): Delete function declaration.
6687 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6688 (tm_print_insn_info): Delete variable definition.
6689 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6690 * gdbarch.h, gdbarch.c: Re-generate.
6691 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6692 "deprecated_tm_print_insn_info".
6693 * mcore-tdep.c (mcore_dump_insn): Ditto.
6694 * mips-tdep.c (mips_gdbarch_init): Ditto.
6695 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6696 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6697 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6698 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6699 instead of TARGET_PRINT_INSN_INFO, add comment.
6700 * s390-tdep.c (s390_get_frame_info): Instead of
6701 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6702 (s390_check_function_end, s390_is_sigreturn): Ditto.
6703 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6704 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6705 * disasm.c: Include "gdbcore.h".
6706 (_initialize_disasm): New function, initialize
6707 "deprecated_tm_print_insn_info".
6708 (deprecated_tm_print_insn_info): New variable.
6709 (dis_asm_read_memory): Moved from "corefile.c", made static.
6710 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6711 * Makefile.in (disasm.o): Update dependencies.
6713 2003-04-30 Andrew Cagney <cagney@redhat.com>
6715 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6717 2003-04-29 Adam Fedor <fedor@gnu.org>
6719 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6720 * infcall.c (find_function_addr): Make non-static.
6721 * infcall.h (find_function_addr): Declare.
6722 * Makefile.in (eval.o): Update dependencies.
6724 2003-04-28 Adam Fedor <fedor@gnu.org>
6726 * symtab.c (symbol_find_demangled_name): Check for and demangle
6728 (symbol_init_demangled_name): Init for language_objc as well.
6730 2003-04-28 Andrew Cagney <cagney@redhat.com>
6732 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6733 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6734 * gdbarch.h, gdbarch.c: Re-generate.
6735 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6736 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6737 * inferior.h (deprecated_read_fp): Rename read_fp.
6738 (generic_target_read_fp): Delete declaration.
6739 * regcache.c (generic_target_read_fp): Delete function.
6740 (deprecated_read_fp): Replace read_fp, use
6741 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6742 * d10v-tdep.c (d10v_read_fp): Delete function.
6743 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6745 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6746 deprecated_target_read_fp to generic_target_read_fp.
6747 * sh-tdep.c (sh_gdbarch_init): Ditto.
6748 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6749 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6750 * frv-tdep.c (frv_gdbarch_init): Ditto.
6752 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6753 deprecated_fp_regnum.
6754 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6755 * vax-tdep.c (vax_gdbarch_init): Ditto.
6756 * v850-tdep.c (v850_gdbarch_init): Ditto.
6757 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6758 * sh-tdep.c (sh_gdbarch_init): Ditto.
6759 * s390-tdep.c (s390_gdbarch_init): Ditto.
6760 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6761 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6762 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6763 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6764 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6765 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6766 * i386-tdep.c (i386_gdbarch_init): Ditto.
6767 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6768 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6769 * frv-tdep.c (frv_gdbarch_init): Ditto.
6770 * cris-tdep.c (cris_gdbarch_init): Ditto.
6771 * avr-tdep.c (avr_gdbarch_init): Ditto.
6772 * arm-tdep.c (arm_gdbarch_init): Ditto.
6773 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6775 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6776 * v850-tdep.c (v850_gdbarch_init): Ditto.
6777 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6778 * sh-tdep.c (sh_gdbarch_init): Ditto.
6779 * s390-tdep.c (s390_gdbarch_init): Ditto.
6780 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6781 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6782 * mips-tdep.c (mips_gdbarch_init): Ditto.
6783 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6784 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6785 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6786 * frv-tdep.c (frv_gdbarch_init): Ditto.
6787 * avr-tdep.c (avr_gdbarch_init): Ditto.
6788 * arm-tdep.c (arm_gdbarch_init): Ditto.
6790 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6791 DEPRECATED_FP_REGNUM.
6792 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6793 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6794 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6795 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6796 (sparc32_register_virtual_type): Ditto.
6797 * sh-tdep.c (sh64_frame_chain): Ditto.
6798 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6799 (sh_nofp_frame_init_saved_regs): Ditto.
6800 (sh64_nofp_frame_init_saved_regs): Ditto.
6801 (sh_fp_frame_init_saved_regs): Ditto.
6802 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6803 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6804 * procfs.c (procfs_fetch_registers): Ditto.
6805 (procfs_store_registers): Ditto.
6806 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6807 (store_inferior_registers, fetch_core_registers): Ditto.
6808 (fetch_kcore_registers, clear_regs): Ditto.
6809 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6810 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6811 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6812 * nlm/i386.c (do_status): Ditto.
6813 * mipsv4-nat.c (supply_gregset): Ditto.
6814 * mips-tdep.c: Ditto for comments.
6815 * mips-nat.c (fetch_inferior_registers): Ditto.
6816 (store_inferior_registers, fetch_core_registers): Ditto.
6817 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6818 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6819 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6820 (i386_do_pop_frame, i386_register_type): Ditto.
6821 * hppa-tdep.c (hppa_frame_chain): Ditto.
6822 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6823 (hppa_pop_frame, hppa_read_fp): Ditto.
6824 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6825 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6826 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6827 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6828 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6829 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6830 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6831 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6832 * blockframe.c: Ditto for comments.
6833 * arch-utils.h: Ditto for comments.
6834 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6835 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6836 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6837 * alpha-tdep.h: Ditto for comments.
6838 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6839 (alpha_cannot_store_register): Ditto.
6840 (alpha_push_dummy_frame): Ditto.
6841 * alpha-nat.c (supply_gregset): Ditto.
6843 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6844 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6845 * config/sparc/tm-sparc.h: Update comment.
6847 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6848 deprecated_read_fp instead of TARGET_READ_FP.
6849 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6850 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6851 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6852 deprecated_read_fp instead of read_fp.
6853 * s390-tdep.c (s390_push_arguments): Ditto.
6854 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6855 * frame.h: Ditto in comments.
6856 * frame.c (legacy_get_prev_frame): Ditto.
6857 * dummy-frame.c (dummy_frame_this_id): Ditto.
6858 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6860 2003-04-28 Andrew Cagney <cagney@redhat.com>
6862 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6863 * gdbarch.h, gdbarch.c: Re-generate.
6864 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6865 * vax-tdep.c (_initialize_vax_tdep): Update.
6866 * v850-tdep.c (_initialize_v850_tdep): Update.
6867 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6868 * s390-tdep.c (_initialize_s390_tdep): Update.
6869 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6870 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6871 * mips-tdep.c (_initialize_mips_tdep): Update.
6872 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6873 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6874 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6875 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6876 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6877 * frv-tdep.c (_initialize_frv_tdep): Update.
6878 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6879 (_initialize_cris_tdep): Update.
6880 * arch-utils.c (legacy_print_insn): Update.
6881 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6883 2003-04-26 Adam Fedor <fedor@gnu.org>
6885 * linespec.c (decode_objc): New function to decode ObjC calls
6886 (decode_line_1): Check for ObjC calls (using decode_objc)
6887 * Makefile (linespec.o): Update dependencies.
6889 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6891 * breakpoint.h (struct breakpoint_ops): New.
6892 (struct breakpoint): Add ops member.
6894 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6895 (mention): Use new breakpoint ops member.
6896 (set_raw_breakpoint): Initialize ops field to NULL.
6897 (print_exception_catchpoint, print_one_exception_catchpoint)
6898 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6899 (gnu_v3_exception_catchpoint_ops): New.
6900 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6902 2003-04-25 Adam Fedor <fedor@gnu.org>
6904 * Makefile.in (COMMON_OBS): Add objc-lang.o
6906 2003-04-25 Andrew Cagney <cagney@redhat.com>
6908 * d10v-tdep.c (print_insn): Delete function.
6909 (display_trace): Use TARGET_PRINT_INSN.
6910 (_initialize_d10v_tdep): Do not set tm_print_insn.
6911 (d10v_gdbarch_init): Set print_insn.
6913 2003-04-25 Andrew Cagney <cagney@redhat.com>
6915 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6916 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6917 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6918 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6919 (nr_dmap_regs, a0_regnum): ... new functions.
6920 (d10v_print_registers_info): Use a0_regnum, use register_size.
6921 (d10v_register_byte): Delete function.
6922 (d10v_register_raw_size): Delete function.
6923 (d10v_register_type): Use a0_regnum.
6924 (d10v_print_registers_info): Use a0_regnum.
6925 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6926 (d10v_gdbarch_init): Do not set register_byte or
6927 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6928 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6930 (trace_command): Use XCALLOC.
6931 (print_insn): Delete reference to tm_print_insn.
6932 (saved_regs_unwinder): Use store_unsigned_integer instead of
6934 * frame.h (FRAME_OBSTACK_CALLOC): Define
6936 2003-04-25 David Carlton <carlton@bactrian.org>
6938 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6940 2003-04-24 Adam Fedor <fedor@gnu.org>
6942 * objc-lang.c: Include "valprint.h"
6943 * Makefile.in (objc-lang.o): Update dependencies.
6945 2003-04-24 Adam Fedor <fedor@gnu.org>
6947 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6948 architecture dependant compilation and mark as unimplemented
6949 (until they get put in the gdbarch vector).
6951 2003-04-23 David Carlton <carlton@bactrian.org>
6953 * cp-support.c (cp_find_first_component): Accept 'operator' in
6956 2003-04-23 Andrew Cagney <cagney@redhat.com>
6958 * infcall.c (call_function_by_hand): Eliminate redundant
6959 indentation. Move "saved_async" and "old_cleanups" to where they
6962 2003-04-23 Andrew Cagney <cagney@redhat.com>
6964 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6965 and "buffer". Move the "name" code to where it is needed.
6967 2003-04-23 Andrew Cagney <cagney@redhat.com>
6969 * infcall.c (call_function_by_hand): Move variables "start_sp",
6970 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6971 code to ON_STACK switch branch.
6973 2003-04-23 Andrew Cagney <cagney@redhat.com>
6975 * infcall.c (call_function_by_hand): Make declaration of "i",
6976 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6979 2003-04-23 Andrew Cagney <cagney@redhat.com>
6981 * infcall.c (call_function_by_hand): Delete variable
6982 "n_method_args". Localize "param_type"'s declaration to the loop
6983 that it is used. Reinstate code assigning to said variable -
6984 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6985 Rationalize code using "param_type".
6987 2003-04-22 Andrew Cagney <cagney@redhat.com>
6989 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6990 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6991 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6992 to DEPRECATED_PUSH_RETURN_ADDRESS.
6994 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6996 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6997 on the DWARF2 register number prior to fetching a register.
6999 2003-04-22 J. Brobecker <brobecker@gnat.com>
7001 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7002 Update all the tests using SOFT_FLOAT considering the fact that
7003 this macro was always set to 0.
7004 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7005 considering the fact that this macro was always set to 0.
7006 * hppa-tdep.h (hppa_store_return_value): Likewise.
7007 (hppa_extract_return_value): Likewise.
7009 2003-04-22 J. Brobecker <brobecker@gnat.com>
7011 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7012 the hppa-pro target only.
7014 2003-04-21 J. Brobecker <brobecker@gnat.com>
7016 Ongoing multi-arch conversion effort for HP/UX:
7017 * config/pa/tm-hppa.h: Move all macro that are no longer
7018 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7019 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7021 2003-04-21 J. Brobecker <brobecker@gnat.com>
7023 * config/pa/tm-hppa.h: Obsolete a section that was only used
7026 2003-04-21 J. Brobecker <brobecker@gnat.com>
7028 Ongoing multi-arch conversion for HP/UX.
7029 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7030 if already defined (allows hppa64 to stay non-multiarched for now).
7031 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7033 2003-04-21 Andrew Cagney <cagney@redhat.com>
7035 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7037 2003-04-21 Andrew Cagney <cagney@redhat.com>
7039 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7040 "i386_num_mmx_regs".
7042 2003-04-21 Andrew Cagney <cagney@redhat.com>
7044 * infcall.c: New file.
7045 * infcall.h: New file.
7046 * valarith.c: Include "infcall.h".
7047 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7048 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7049 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7050 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7051 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7052 (SFILES): Add "infcall.c"
7053 (COMMON_OBS): Add "infcall.o".
7054 (infcall.o): Specify dependencies.
7055 * value.h (call_function_by_hand): Delete declaration.
7056 * inferior.h (run_stack_dummy): Delete declaration.
7057 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7058 (run_stack_dummy): Move to "infcall.c", merged into
7059 call_function_by_hand.
7060 * valops.c (call_function_by_hand): Moved to "infcall.c".
7061 (find_function_addr, value_arg_coerce): Ditto.
7062 (unwindonsignal_p, coerce_float_to_double): Ditto.
7063 (_initialize_valops): Move "set/show coerce-float-to-double", and
7064 "set/show unwindonsignal" commands to "infcall.c".
7065 * v850-tdep.c, target.h: Update comments.
7066 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7067 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7068 (sh64_init_extra_frame_info): Update comments.
7069 * mn10300-tdep.c: Update comments.
7070 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7071 * config/sparc/tm-sparc.h: Update comments.
7072 * breakpoint.h: Update comments.
7073 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7074 * arm-tdep.c: Update comment.
7076 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7078 * i386-tdep.c (i386_num_register_names): New variable.
7079 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7080 (MM0_REGNUM): Remove redundant parentheses in define.
7081 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7082 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7083 i386_mxcsr_regnum_p): Remove redundant parentheses.
7084 (i386_register_name): Use i386_num_register_names.
7086 * i386-tdep.c (i386_extract_return_value,
7087 i386_store_return_value): Correct check for availability of
7088 floating-point registers.
7090 * i386-tdep.c (i386_frame_num_args): Remove function.
7091 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7093 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7094 mmx_regnum_to_fp_regnum. Adjust all callers.
7096 * i386-tdep.c (i386_get_longjmp_target): Use
7097 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7098 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7101 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7103 * core-regset.c: Update comments to reflect reality. Re-order
7105 (fetch_core_registers): Use switch instead of if. Remove
7106 redundant prototype.
7108 2003-04-18 Jim Blandy <jimb@redhat.com>
7110 * s390-tdep.c (s390_frame_align): New function.
7111 (s390_gdbarch_init): Register it with the gdbarch object.
7113 2003-04-17 Richard Henderson <rth@redhat.com>
7115 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7117 2003-04-17 Michael Snyder <msnyder@redhat.com>
7118 Karen Bennet <bennet@redhat.com>
7120 Committed by Elena Zannoni <ezannoni@redhat.com>
7121 * gdb_gcore.sh: New script to create a core dump of a process.
7123 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7125 * values.c (value_being_returned): Don't fetch the return
7126 value if the return type is void.
7128 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7130 * thread-db.c: Reindented.
7132 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7134 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7135 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7162 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7164 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7165 the size of ``long double'' to 16, instead of 8.
7167 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7169 * i386-linux-nat.c: Add some whitespace to make things more
7171 (fetch_register, store_register, fetch_inferior_registers,
7172 store_inferior_registers): Get rid of assignment in if-statement.
7173 (store_register): Fix typo in error message.
7175 2003-04-16 Andrew Cagney <cagney@redhat.com>
7177 * utils.c (xmmalloc): Always allocate something, matches
7178 libiberty/xmalloc's semantics.
7179 (xmrealloc, xmcalloc): Ditto.
7181 2003-04-16 Andrew Cagney <cagney@redhat.com>
7183 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7185 (get_frame_type): Initialize unwind and type when needed.
7186 (get_frame_id, frame_register_unwind): Ditto.
7188 2003-04-16 Andrew Cagney <cagney@redhat.com>
7190 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7192 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7193 * sparcl-stub.c: Obsolete file.
7194 * config/sparc/tm-sparclet.h: Obsolete file.
7195 * sparclet-stub.c: Obsolete file.
7196 * sparclet-rom.c: Obsolete file.
7197 * sparcl-tdep.c: Obsolete file.
7198 * config/sparc/tm-sparclite.h: Obsolete file.
7199 * config/sparc/sparclite.mt: Obsolete file.
7200 * config/sparc/sparclet.mt: Obsolete file.
7201 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7202 sparc86x-*-* obsolete.
7204 2003-04-15 David Carlton <carlton@math.stanford.edu>
7206 * Makefile.in (SFILES): Add cp-namespace.c.
7207 (COMMON_OBS): Add cp-namespace.o.
7208 (block.o): Depend on gdb_obstack_h and cp_support_h.
7209 (buildsym.o): Depend on cp_support_h.
7210 (cp-namespace.o): New.
7211 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7212 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7213 (dwarf2read.o): Depend on cp_support_h.
7214 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7215 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7216 processing_current_namespace.
7217 (read_namespace): Update processing_current_namespace; check for
7218 anonymous namespaces.
7219 (dwarf2_name): New function.
7220 (dwarf2_extension): Ditto.
7221 * cp-support.h: Update copyright, contributors.
7222 Add inclusion guards.
7223 Add opaque declaration for structs obstack, block, symbol.
7224 (struct using_direct): New struct.
7225 Add declarations for cp_find_first_component,
7226 cp_entire_prefix_len, processing_has_namespace_info,
7227 processing_current_namespace, cp_is_anonymous,
7228 cp_add_using_directive, cp_initialize_namespace,
7229 cp_finalize_namespace, cp_set_block_scope,
7230 cp_scan_for_anonymous_namespaces.
7231 * cp-namespace.c: New file.
7232 * cp-support.c: Update copyright.
7233 Include ctype.h, gdb_assert.h, gdbcmd.h.
7234 New variable maint_cplus_cmd_list.
7235 (cp_find_first_component): New function.
7236 (cp_entire_prefix_len, maint_cplus_command)
7237 (first_component_command, _initialize_cp_support): Ditto.
7238 * buildsym.c: Include cp-support.h.
7239 New variable using_list.
7240 (add_symbol_to_list): Check for anonymous namespaces.
7241 (finish_block): Set block's scope.
7242 (start_symtab): Initialize C++ namespace support.
7243 (end_symtab): Finalize C++ namespace support.
7244 * block.h: Add opaque declarations for structs
7245 block_namespace_info, using_direct, and obstack.
7246 Add declarations for block_set_scope and block_set_using.
7247 (struct block): Add 'language_specific' member.
7248 (BLOCK_NAMESPACE): New macro.
7249 * block.c: Include gdb_obstack.h and cp-support.h.
7250 (struct block_namespace_info): New struct.
7251 (block_set_scope): New function.
7252 (block_set_using, block_initialize_namespace): Ditto.
7254 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7256 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7257 (locate_base): Return early if there aren't any link map offsets.
7258 (svr4_solib_create_inferior_hook): Warn if shared library support
7261 2003-04-14 David Carlton <carlton@math.stanford.edu>
7263 * symtab.c (symbol_set_names): Add prefix when storing Java names
7264 in hash table. Fix for PR java/1039.
7266 2003-04-14 David Carlton <carlton@math.stanford.edu>
7268 * symtab.c (symbol_set_names): Rename 'name' arg to
7269 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7270 * symtab.h: Change 'name' argument in declaration of
7271 symbol_set_names to 'linkage_name'.
7272 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7274 2003-04-14 Andrew Cagney <cagney@redhat.com>
7276 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7277 return the fully sign-extended register value.
7278 (get_frame_pointer): Ditto.
7279 (mips_pop_frame): Initialize "proc_desc" after checking for a
7282 2003-04-14 Andrew Cagney <cagney@redhat.com>
7284 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7285 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7286 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7287 (mips_push_register): Delete function.
7288 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7291 2003-04-14 Jim Blandy <jimb@redhat.com>
7293 * symmisc.c: #include "gdb_regex.h".
7294 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7296 * maint.c (maintenance_list_command): New function.
7297 (_initialize_maint_cmds): Register the above as commands.
7298 * symtab.h (maintenance_list_symtabs,
7299 maintenance_list_psymtabs): New declarations.
7300 * cli/cli-cmds.c (maintenancelistlist): New variable.
7301 (init_cmd_lists): Initialize it.
7302 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7303 * gdbcmd.h (maintenancelistlist): New declaration.
7304 * Makefile.in (symmisc.o): Update dependencies.
7306 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7308 * s390-nat.c: Include asm/types.h for addr_t.
7310 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7312 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7313 actually incoming type.
7315 2003-04-13 Andrew Cagney <cagney@redhat.com>
7317 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7318 get_next_frame and get_frame_saved_regs.
7320 2003-04-13 Andrew Cagney <cagney@redhat.com>
7322 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7323 of gdbarch_num_regs.
7325 2003-04-13 Andrew Cagney <cagney@redhat.com>
7327 * frame.h: Mention what replaced what in "struct frame_info".
7328 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7329 deprecated_update_frame_base_hack and
7330 deprecated_update_frame_pc_hack.
7331 * hppa-tdep.c: Ditto.
7333 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7335 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7336 to read_reg and update its comment. Remove regnum member.
7337 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7338 Don't call read_reg when setting in_reg. Call read_reg to get
7339 the frame base if it's in a register. Return the register number
7340 on the stack instead of in the context. Remove extra arguments
7342 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7343 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7344 the register number on the expression stack.
7345 (needs_frame_read_reg): Remove extra arguments.
7347 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7349 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7351 (execute_stack_op): All callers updated.
7352 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7353 * dwarf2loc.c (find_location_expression): New function.
7354 (dwarf_expr_frame_base): Call it.
7355 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7356 (dwarf2_tracepoint_var_ref): New function, broken out from
7357 locexpr_tracepoint_var_ref.
7358 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7360 (loclist_read_variable, loclist_read_needs_frame): New functions.
7361 (loclist_describe_location, loclist_tracepoint_var_ref): New
7363 (dwarf2_loclist_funcs): New struct location_funcs.
7364 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7365 (struct dwarf2_locexpr_baton): Add comments.
7366 (dwarf2_loclist_funcs): New extern.
7367 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7368 base_address and base_known.
7369 (dwarf_loc_buffer): New variable.
7370 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7371 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7372 (dwarf2_has_info): Initialize dwarf_loc_offset.
7373 (dwarf2_build_psymtabs): Read in .debug_loc.
7374 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7376 (psymtab_to_symtab_1): Likewise. Move base address calculation
7378 (dwarf2_get_pc_bounds): ... here. Use the base address from
7380 (dwarf2_symbol_mark_computed): Handle location lists.
7382 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7384 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7385 if the linkage name demangled successfully.
7387 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7389 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7390 disassmbly_flavour): Removed.
7392 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7394 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7396 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7398 2003-04-12 Andrew Cagney <cagney@redhat.com>
7400 * frame.h (struct frame_info): Move definition from here ...
7401 * frame.c (struct frame_info): ... to here.
7403 2003-04-12 Andrew Cagney <cagney@redhat.com>
7405 * gdbthread.h (save_infrun_state): Delete parameter
7407 (struct thread_info): Delete field "prev_func_start".
7408 (load_infrun_state): Ditto.
7409 * thread.c (load_infrun_state, save_infrun_state): Update.
7410 * infrun.c (prev_func_start): Delete variable.
7411 (context_switch, init_wait_for_inferior): Update.
7412 (stop_stepping, keep_going): Update.
7414 2003-04-12 Andrew Cagney <cagney@redhat.com>
7416 * gdbarch.sh: Add missing opaque declarations.
7417 * gdbarch.h: Regnerate.
7418 * symtab.h: Add missing opaque declarations.
7419 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7420 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7421 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7422 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7423 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7424 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7425 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7426 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7427 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7428 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7429 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7430 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7431 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7433 2003-04-11 Andrew Cagney <cagney@redhat.com>
7435 * frame.c (get_frame_id): Return this frame's "id".
7436 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7438 (legacy_saved_regs_this_id): Replace function body with
7440 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7441 FRAME_OBSTACK_ZALLOC.
7442 (create_new_frame): Mark the frame ID as valid.
7444 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7446 * Makefile.in (libbfd_h): Added missing setting.
7447 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7448 according to the selected ABI.
7450 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7452 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7454 2003-04-11 Andrew Cagney <cagney@redhat.com>
7456 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7457 SAVED_PC_AFTER_CALL.
7458 * gdbarch.h, gdbarch.c: Regenerate.
7459 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7460 * x86-64-tdep.c (x86_64_init_abi): Update.
7461 * vax-tdep.c (vax_gdbarch_init): Update.
7462 * v850-tdep.c (v850_gdbarch_init): Update.
7463 * sparc-tdep.c (sparc_gdbarch_init): Update.
7464 * sh-tdep.c (sh_gdbarch_init): Update.
7465 * s390-tdep.c (s390_gdbarch_init): Update.
7466 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7467 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7468 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7469 * mips-tdep.c (mips_gdbarch_init): Update.
7470 * mcore-tdep.c (mcore_gdbarch_init): Update.
7471 * m68k-tdep.c (m68k_gdbarch_init): Update.
7472 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7473 * ia64-tdep.c (ia64_gdbarch_init): Update.
7474 (ia64_saved_pc_after_call): Update declaration.
7475 * i386ly-tdep.c (i386lynx_init_abi): Update.
7476 * i386-tdep.c (i386_gdbarch_init): Update.
7477 * hppa-tdep.c (hppa_gdbarch_init): Update.
7478 * h8300-tdep.c (h8300_gdbarch_init): Update.
7479 * frv-tdep.c (frv_gdbarch_init): Update.
7480 * cris-tdep.c (cris_gdbarch_init): Update.
7481 * avr-tdep.c (avr_gdbarch_init): Update.
7482 * arm-tdep.c (arm_gdbarch_init): Update.
7483 * alpha-tdep.c (alpha_gdbarch_init): Update.
7484 * ns32knbsd-nat.c (frame_num_args): Update.
7485 * ns32k-tdep.c (umax_frame_num_args): Update.
7486 * mips-tdep.c (mips_init_frame_pc_first): Update.
7487 * infrun.c (step_over_function): Update.
7488 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7489 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7490 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7491 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7492 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7493 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7494 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7495 * arch-utils.c (init_frame_pc_default): Update.
7496 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7497 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7500 2003-04-11 Andrew Cagney <cagney@redhat.com>
7502 * i387-tdep.c: Update copyright.
7503 (i387_to_double): Delete function.
7504 (double_to_i387): Delete function.
7506 2003-04-10 Andrew Cagney <cagney@redhat.com>
7508 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7509 frame's function's address. Simplify.
7510 (d10v_frame_unwind_cache): Check that the frame's function is
7513 2003-04-10 Jim Blandy <jimb@redhat.com>
7515 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7516 call to set_gdbarch_deprecated_push_arguments.
7518 2003-04-10 Andrew Cagney <cagney@redhat.com>
7520 * frame.c (fprint_frame_id): New function.
7521 (fprint_frame_type, fprint_frame): New function.
7522 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7523 (create_sentinel_frame, get_frame_id): Ditto.
7524 (frame_id_p, frame_id_eq): Ditto.
7525 (frame_id_inner, create_new_frame): Ditto.
7526 (legacy_get_prev_frame, get_prev_frame): Ditto.
7527 (deprecated_update_frame_pc_hack): Ditto.
7528 (frame_register_unwind): Ditto.
7529 (deprecated_update_frame_base_hack): Ditto.
7531 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7533 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7534 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7535 frame_chain function.
7536 * Makefile.in: Add dependencies due to above change.
7538 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7540 * blockframe.c (legacy_frame_chain_valid): Move call to
7541 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7544 2003-04-09 Andrew Cagney <cagney@redhat.com>
7546 * frame.h (struct frame_id): Replace "pc" and "base" with
7547 "stack_addr" and "code_addr". Update comments.
7548 (frame_id_build): Update parameter names and comment.
7549 (struct frame_info): Replace "id_p" and "id" with "this_id".
7550 * dummy-frame.c (dummy_frame_this_id): Update.
7551 * breakpoint.c (print_one_breakpoint): Update.
7552 * frame.c (get_frame_id): Update.
7553 (get_frame_base, frame_id_build): Update.
7554 (create_sentinel_frame, legacy_get_prev_frame): Update.
7555 (deprecated_update_frame_base_hack): Update.
7556 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7557 (frame_id_inner): Ditto.
7559 2003-04-09 Andrew Cagney <cagney@redhat.com>
7561 * defs.h (gdb_print_host_address): Make "addr" parameter a
7563 * utils.c (gdb_print_host_address): Update.
7565 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7567 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7568 register number for R0 is 0.
7570 2003-04-09 J. Brobecker <brobecker@gnat.com>
7572 * frame.h (struct gdbarch): Add opaque structure definition
7573 to avoid a compilation warning on LynxOS 4.0.
7575 2003-04-09 Andrew Cagney <cagney@redhat.com>
7577 * frame.h (struct frame_info): Delete field "pc". Replace
7578 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7580 * frame.c (frame_pc_unwind): Update.
7581 (create_sentinel_frame): Do not set "pc".
7582 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7583 (get_frame_pc): Call frame_pc_unwind.
7584 (deprecated_update_frame_pc_hack): Update.
7585 (create_new_frame): Use "pc" not "->pc".
7587 2003-04-09 Andrew Cagney <cagney@redhat.com>
7589 * frame.c (get_frame_id): Eliminate code updating "frame".
7590 (legacy_get_prev_frame): Ditto.
7591 (get_frame_base): Return id.base directly.
7592 (deprecated_update_frame_base_hack): Update "id.base".
7593 * frame.h (struct frame_info): Delete field "frame".
7595 2003-04-09 Andrew Cagney <cagney@redhat.com>
7597 * NEWS: Mention that the "Sequent family" is obsolete.
7598 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7599 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7600 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7601 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7602 * config/i386/tm-ptx4.h: Obsolete file.
7603 * config/i386/tm-ptx.h: Obsolete file.
7604 * symm-tdep.c: Obsolete file.
7605 * config/i386/symmetry.mt: Obsolete file.
7606 * config/i386/tm-symmetry.h: Obsolete file.
7607 * symm-nat.c: Obsolete file.
7608 * config/i386/nm-symmetry.h: Obsolete file.
7609 * config/i386/xm-symmetry.h: Obsolete file.
7610 * config/i386/symmetry.mh: Obsolete file.
7611 * config/i386/nm-ptx4.h: Obsolete file.
7612 * config/i386/ptx4.mh: Obsolete file.
7613 * config/i386/ptx.mt: Obsolete file.
7614 * config/i386/ptx.mh: Obsolete file.
7615 * config/i386/xm-ptx4.h: Obsolete file.
7616 * config/i386/xm-ptx.h: Obsolete file.
7618 2003-04-09 Andrew Cagney <cagney@redhat.com>
7620 Obsolete mips*-*-mach3*.
7621 * NEWS: Mention that mips*-*-mach3* is obsolete.
7622 * m3-nat.c: Obsolete file.
7623 * config/nm-m3.h: Obsolete file.
7624 * config/mips/tm-mipsm3.h: Obsolete file.
7625 * config/mips/mipsm3.mt: Obsolete file.
7626 * config/mips/mipsm3.mh: Obsolete file.
7627 * config/mips/xm-mipsm3.h: Obsolete file.
7628 * mipsm3-nat.c: Obsolete file.
7629 * configure.host: Obsolete mips-dec-mach3*.
7630 * configure.tgt: Obsolete mips*-*-mach3*.
7632 2003-04-09 Andrew Cagney <cagney@redhat.com>
7634 * doublest.h: Update copyright.
7635 (deprecated_store_floating, deprecated_extract_floating): Rename
7636 store_floating and extract_floating. Update comments.
7637 * doublest.c: Update copyright.
7638 (extract_floating_by_length): Replace extract_floating.
7639 (store_floating_by_length): Replace store_floating.
7640 (deprecated_extract_floating): New function.
7641 (deprecated_store_floating): New function.
7642 (extract_typed_floating): Call extract_floating_by_length.
7643 (store_typed_floating): Call store_floating_by_length.
7644 * x86-64-tdep.c (x86_64_store_return_value): Update.
7645 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7646 (sh64_extract_return_value): Update.
7647 (sh_sh4_register_convert_to_virtual): Update.
7648 (sh_sh64_register_convert_to_virtual): Update.
7649 (sh_sh4_register_convert_to_raw): Update.
7650 (sh_sh64_register_convert_to_raw): Update.
7651 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7652 (rs6000_register_convert_to_raw): Update.
7653 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7654 (ia64_register_convert_to_raw): Update.
7655 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7656 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7657 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7658 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7659 (alpha_register_convert_to_raw): Update.
7661 2003-04-08 Andrew Cagney <cagney@redhat.com>
7663 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7664 * gdbarch.h, gdbarch.c: Re-generate.
7665 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7666 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7667 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7668 conditionally, use frame_pc_unwind as an alternative. Add
7670 * arch-utils.c (init_frame_pc_default): Only call
7671 SAVED_PC_AFTER_CALL when available.
7673 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7675 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7676 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7677 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7678 (start_remote): Ditto.
7679 (handle_inferior_event): Ditto.
7680 (save_inferior_status): Ditto.
7681 (restore_inferior_status): Ditto.
7682 * infcmd.c (attach_command): Ditto.
7683 * fork-child.c (startup_inferior): Ditto.
7684 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7685 * alpha-tdep.c (heuristic_proc_start): Ditto.
7686 * mips-tdep.c (heuristic_proc_start): Ditto.
7687 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7688 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7689 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7690 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7691 * remote-vx.c (vx_create_inferior): Ditto.
7693 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7695 * infrun.c (stop_soon_quietly): Make it an enum, to better
7696 override the default behavior of handle_inferior_event.
7697 (clear_proceed_status): Update uses of stop_soon_quietly to
7698 reflect that it is now an enum.
7699 (start_remote): Ditto.
7700 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7701 is set to handle the new GNU/Linux kernel behavior for
7702 attach/sigstop. Update uses of stop_soon_quietly.
7703 * inferior.h (enum stop_kind): New enum.
7704 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7705 Reset normal handle_inferior_event behavior, afterwards.
7706 * fork-child.c (startup_inferior): Update.
7707 * alpha-tdep.c (heuristic_proc_start): Update.
7708 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7709 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7710 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7711 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7712 * remote-vx.c (vx_create_inferior): Update.
7713 * mips-tdep.c (heuristic_proc_start): Update.
7715 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7717 * disasm.c (dump_insns): Move variables inside loop, or they will
7718 be freed more than once, causing wild memory corruptions.
7719 (gdb_disassembly): Look for the substring "-thread",
7720 instead of "-threads" in the target name, to make sure to find
7721 the 'multi-thread' target. Also, make sure we do the right thing
7722 with the "core" target.
7724 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7726 * mips-tdep.c (mips_print_fp_register): New function, created from
7727 do_fp_register_row(). Registers are now (also) printed as hex.
7728 Only one register is printed per row.
7729 (mips_print_register, do_fp_register_row): Print floating point
7730 registers with mips_print_fp_register().
7732 2003-04-06 Andrew Cagney <cagney@redhat.com>
7734 * valprint.h (inspect_it): Add extern declaration.
7735 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7736 (selectors_info, classes_info): Ditto.
7737 (find_objc_msgcall): Fix indentation.
7738 (objc_printstr): Delete extern declarations.
7740 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7742 2003-04-06 Andrew Cagney <cagney@redhat.com>
7744 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7746 * frame.c (legacy_saved_regs_this_id): Update.
7747 (legacy_get_prev_frame): Update.
7748 * xstormy16-tdep.c: Update comment.
7749 * sparc-tdep.c (sparc_frame_chain): Update comment.
7750 * blockframe.c (legacy_frame_chain_valid): Update.
7752 2003-04-06 Andrew Cagney <cagney@redhat.com>
7754 * valprint.c (val_print_type_code_int): Delete #ifdef
7755 PRINT_TYPELESS_INTEGER code.
7757 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7758 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7759 multi-arch definition.
7760 * gdbarch.h: Re-generate.
7762 2003-04-05 Andrew Cagney <cagney@redhat.com>
7764 Eliminate FRAME_FIND_SAVED_REGS.
7765 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7766 Change FSR parameter to a pointer.
7767 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7768 Assume FSR parameter is a pointer.
7769 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7771 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7772 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7773 saved_regs a pointer.
7774 (hppa_frame_saved_pc): Ditto.
7775 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7776 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7778 (restore_pc_queue): Make fsr a pointer.
7779 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7780 (hppa_frame_chain): Make saved_regs a pointer, call
7781 hppa_frame_init_saved_regs.
7782 * sparc-tdep.c: Include "gdb_assert.h".
7783 (sparc_frame_find_saved_regs): Replace internal_error with
7785 * remote-vxsparc.c (vx_read_register): Delete reference to
7786 FRAME_FIND_SAVED_REGS.
7787 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7788 * gdbarch.h: Regenerate.
7789 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7790 (deprecated_get_frame_saved_regs): Delete declaration.
7791 (struct frame_saved_regs): Delete definition.
7792 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7793 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7794 (hppa_frame_find_saved_regs): Delete declaration.
7795 (FRAME_FIND_SAVED_REGS): Delete macro.
7796 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7797 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7798 FRAME_FIND_SAVED_REGS in comment.
7800 2003-04-05 Andrew Cagney <cagney@redhat.com>
7802 * frame.c (frame_func_unwind, get_frame_func): New functions.
7803 * frame.h (get_frame_func, frame_func_unwind): Declare.
7804 (struct frame_info): Add field "prev_func" for caching the
7805 previous frame's function address.
7806 * arm-tdep.c (arm_frameless_function_invocation): Combine
7807 get_pc_function_start and get_frame_pc into get_frame_func.
7808 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7809 (sh64_nofp_frame_init_saved_regs): Ditto.
7810 * s390-tdep.c (s390_function_start): Ditto.
7811 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7812 (rs6000_frameless_function_invocation): Ditto.
7813 (rs6000_frame_saved_pc): Ditto.
7814 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7815 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7816 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7817 (i386_frame_init_saved_regs): Ditto.
7818 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7819 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7820 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7821 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7822 * blockframe.c (frameless_look_for_prologue): Ditto.
7824 2003-04-05 Andrew Cagney <cagney@redhat.com>
7826 * frame.c (legacy_get_prev_frame): Link prev to next at the
7827 function start. Update comments.
7829 2003-04-05 Andrew Cagney <cagney@redhat.com>
7831 * frame.c (get_frame_id): Update comment.
7832 (legacy_get_prev_frame): Update comment.
7833 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7834 * gdbarch.h: Regenerate.
7835 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7836 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7838 2003-04-05 Andrew Cagney <cagney@redhat.com>
7840 * stack.c (print_frame_info): Use get_frame_pc.
7842 2003-04-04 Andrew Cagney <cagney@redhat.com>
7844 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7845 the frame's type from the unwinder.
7846 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7847 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7848 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7849 (get_frame_base_address): Use get_frame_type.
7850 (get_frame_locals_address, get_frame_args_address): Ditto.
7851 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7852 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7853 (struct frame_info): Add comment explaining why the frame contains
7855 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7856 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7857 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7859 * frame-unwind.h: Include "frame.h".
7860 (struct frame_unwind): Add "type" field.
7861 * Makefile.in (frame_unwind_h): Add $(frame_h).
7863 2003-04-04 Andrew Cagney <cagney@redhat.com>
7865 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7866 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7867 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7869 (d10v_unwind_dummy_id): Use frame_id_build.
7870 * frame.c (find_frame_sal): Use get_frame_pc.
7871 (create_new_frame): Use deprecated_update_frame_pc_hack and
7872 deprecated_update_frame_base_hack.
7873 (create_sentinel_frame): Add comment about ->pc going away.
7874 (get_prev_frame): Add comment about ->pc going away.
7875 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7876 frame_id_build, deprecated_update_frame_pc_hack and
7877 deprecated_update_frame_base_hack.
7878 (select_frame): Use get_frame_pc.
7879 (legacy_saved_regs_this_id): Use frame_id_build.
7881 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7883 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7884 signed integer case.
7885 (classify_argument): Handle enumerations and references.
7887 2003-04-04 Andrew Cagney <cagney@redhat.com>
7889 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7892 2003-04-01 Adam Fedor <fedor@gnu.org>
7894 * gdb/objc-lang.c (selectors_info): Replace calls to
7895 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7896 SYMBOL_NATURAL_NAME.
7897 (classes_info, find_methods): Likewise.
7899 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7901 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7902 ``mach'' to the value determined by bfd_default_set_arch_mach().
7904 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7906 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7907 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7908 (mi-cmd-file.o): Update dependencies.
7910 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7912 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7913 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7915 2003-04-01 Adam Fedor <fedor@gnu.org>
7917 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7918 * language.h (struct language_defn): Add la_demangle.
7919 (language_demangle): Declare.
7920 * language.c (language_demangle): New function.
7921 (unk_lang_demangle): Likewise.
7922 (unknown_language_defn, auto_language_defn, local_language_defn):
7923 Add ukn_lang_demangle.
7924 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7925 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7926 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7927 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7928 * jv-lang.c (java_demangle): New function
7929 (java_language_defn): Use it for la_demangle element.
7930 * objc-lang.c (objc_demangle): Add options argument
7931 (objc_language_defn): Use objc_demangle for la_demangle element.
7932 * maint.c (maintenance_demangle): Replace switch with
7933 call to language_demangle.
7934 * utils.c (fprintf_symbol_filtered): Likewise.
7936 2003-04-01 Andrew Cagney <cagney@redhat.com>
7938 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7939 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7940 PRINT_TYPELESS_INTEGER.
7941 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7942 PUSH_RETURN_ADDRESS.
7944 2003-04-01 Andrew Cagney <cagney@redhat.com>
7946 * Makefile.in (d10v-tdep.o): Update dependencies.
7947 * d10v-tdep.c: Include "frame-base.h".
7948 (d10v_frame_unwind): Make constant.
7949 (d10v_frame_base_address): New function.
7950 (d10v_frame_base): New variable.
7951 (d10v_gdbarch_init): Set frame_base default.
7952 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7954 (d10v_frame_unwind_cache): Set and use "prev_sp".
7955 (d10v_frame_this_id): Use the previous frame's inner most stack
7956 address and this frame's func address for the frame ID. Use
7957 frame_id_build. Don't analyze beyond the current instruction.
7959 2003-04-01 Andrew Cagney <cagney@redhat.com>
7961 * frame.h (get_frame_locals_address, get_frame_args_address):
7962 Refer to the base address, instead of the address of the first
7965 2003-04-01 Andrew Cagney <cagney@redhat.com>
7967 Add frame debug info addresses:
7968 * frame-base.c: New file.
7969 * frame-base.h: New file.
7970 * frame.h (struct frame_base): Add opaque declaration.
7971 (get_frame_base): Update comment.
7972 (get_frame_base_address): Declare.
7973 (get_frame_locals_address): Declare.
7974 (get_frame_args_address): Declare.
7975 (struct frame_info): Add "base" and "base_cache". Update
7976 comments on the unwinder.
7977 * frame.c: Include "frame-base.h".
7978 (get_frame_locals_address): New function.
7979 (get_frame_base_address): New function.
7980 (get_frame_args_address): New function.
7981 * findvar.c (read_var_value): Use get_frame_locals_address and
7982 get_frame_args_address.
7983 * stack.c (frame_info): Use get_frame_locals_address and
7984 get_frame_args_address.
7985 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7986 moved to "frame-base.c".
7987 * printcmd.c (print_frame_nameless_args): Ditto.
7988 * symtab.h (address_class): Update comments.
7989 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7990 get_frame_base_address.
7991 * dwarf2expr.c (execute_stack_op): Ditto.
7992 * Makefile.in (frame_base_h): Define.
7993 (frame.o): Update dependencies.
7994 (frame-base.o): Add dependencies.
7995 (SFILES): Add frame-base.c.
7996 (COMMON_OBS): Add frame-base.o.
7998 2003-04-01 Andrew Cagney <cagney@redhat.com>
8000 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8001 CALL_DUMMY_LENGTH): Ditto.
8002 * gdbarch.c: Re-generate.
8003 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8004 (CALL_DUMMY_LENGTH): Delete macro.
8005 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8006 * arm-tdep.c (arm_gdbarch_init): Ditto.
8007 * avr-tdep.c (avr_gdbarch_init): Ditto.
8008 * cris-tdep.c (cris_gdbarch_init): Ditto.
8009 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8010 * frv-tdep.c (frv_gdbarch_init): Ditto.
8011 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8012 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8013 * i386-tdep.c (i386_gdbarch_init): Ditto.
8014 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8015 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8016 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8017 * mips-tdep.c (mips_gdbarch_init): Ditto.
8018 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8019 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8020 * s390-tdep.c (s390_gdbarch_init): Ditto.
8021 * sh-tdep.c (sh_gdbarch_init): Ditto.
8022 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8023 * v850-tdep.c (v850_gdbarch_init): Ditto.
8024 * vax-tdep.c (vax_gdbarch_init): Ditto.
8025 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8027 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8029 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8031 2003-04-01 Andrew Cagney <cagney@redhat.com>
8033 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8034 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8035 * gdbarch.h, gdbarch.c: Re-generate.
8036 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8037 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8038 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8039 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8040 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8041 * infcmd.c (run_stack_dummy): Simplify assuming
8042 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8043 * infrun.c (handle_inferior_event): Ditto.
8044 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8045 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8046 * arm-tdep.c (arm_gdbarch_init): Ditto.
8047 * avr-tdep.c (avr_gdbarch_init): Ditto.
8048 * cris-tdep.c (cris_gdbarch_init): Ditto.
8049 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8050 * frv-tdep.c (frv_gdbarch_init): Ditto.
8051 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8052 * i386-tdep.c (i386_gdbarch_init): Ditto.
8053 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8054 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8055 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8056 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8057 * mips-tdep.c (mips_gdbarch_init): Ditto.
8058 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8059 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8060 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8061 * s390-tdep.c (s390_gdbarch_init): Ditto.
8062 * sh-tdep.c (sh_gdbarch_init): Ditto.
8063 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8064 * v850-tdep.c (v850_gdbarch_init): Ditto.
8065 * vax-tdep.c (vax_gdbarch_init): Ditto.
8066 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8068 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8070 * symfile.c (symfile_relocate_debug_section): Update call to
8071 bfd_simple_get_relocated_section_contents.
8073 2003-03-31 Andrew Cagney <cagney@redhat.com>
8075 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8076 * gdbarch.h, gdbarch.c: Regenerate.
8077 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8078 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8080 * frame.h (generic_fix_call_dummy): Delete declaration.
8081 * dummy-frame.h: Update comment.
8082 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8083 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8085 * sh-tdep.c (sh_gdbarch_init): Ditto.
8086 * s390-tdep.c (s390_gdbarch_init): Ditto.
8087 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8088 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8089 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8090 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8091 * i386-tdep.c (i386_gdbarch_init): Ditto.
8092 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8093 * frv-tdep.c (frv_gdbarch_init): Ditto.
8094 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8095 * cris-tdep.c (cris_gdbarch_init): Ditto.
8096 * avr-tdep.c (avr_gdbarch_init): Ditto.
8097 * arm-tdep.c (arm_gdbarch_init): Ditto.
8099 2003-03-31 J. Brobecker <brobecker@gnat.com>
8101 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8102 (INIT_FRAME_AP): Likewise.
8103 (EXTRA_FRAME_INFO): Likewise.
8105 2003-03-31 Andrew Cagney <cagney@redhat.com>
8107 * gdbarch.sh: Include "symfile.h".
8108 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8109 * gdbarch.h, gdbarch.c: Re-generate.
8110 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8111 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8112 call_dummy_address, the default is at entry_point_address.
8113 * v850-tdep.c (v850_gdbarch_init): Ditto.
8114 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8115 * sh-tdep.c (sh_gdbarch_init): Ditto.
8116 * s390-tdep.c (s390_gdbarch_init): Ditto.
8117 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8118 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8119 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8120 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8121 * i386-tdep.c (i386_gdbarch_init): Ditto.
8122 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8123 * frv-tdep.c (frv_gdbarch_init): Ditto.
8124 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8125 * cris-tdep.c (cris_gdbarch_init): Ditto.
8126 * arm-tdep.c (arm_gdbarch_init): Ditto.
8128 2003-03-31 Andrew Cagney <cagney@redhat.com>
8130 * gdbarch.sh (CALL_DUMMY_P): Delete.
8131 * gdbarch.h, gdbarch.c: Re-generate.
8132 * inferior.h (CALL_DUMMY_P): Delete macro.
8133 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8134 * vax-tdep.c (vax_gdbarch_init): Update.
8135 * v850-tdep.c (v850_gdbarch_init): Update.
8136 * sparc-tdep.c (sparc_gdbarch_init): Update.
8137 * sh-tdep.c (sh_gdbarch_init): Update.
8138 * s390-tdep.c (s390_gdbarch_init): Update.
8139 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8140 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8141 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8142 * mips-tdep.c (mips_gdbarch_init): Update.
8143 * mcore-tdep.c (mcore_gdbarch_init): Update.
8144 * m68k-tdep.c (m68k_gdbarch_init): Update.
8145 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8146 * ia64-tdep.c (ia64_gdbarch_init): Update.
8147 * i386-tdep.c (i386_gdbarch_init): Update.
8148 * h8300-tdep.c (h8300_gdbarch_init): Update.
8149 * frv-tdep.c (frv_gdbarch_init): Update.
8150 * d10v-tdep.c (d10v_gdbarch_init): Update.
8151 * cris-tdep.c (cris_gdbarch_init): Update.
8152 * breakpoint.c (deprecated_frame_in_dummy): Update.
8153 * avr-tdep.c (avr_gdbarch_init): Update.
8154 * alpha-tdep.c (alpha_gdbarch_init): Update.
8155 * arm-tdep.c (arm_gdbarch_init): Update.
8156 * dummy-frame.c (dummy_frame_this_id): Update comments.
8157 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8158 * frame.c (legacy_get_prev_frame): Ditto.
8159 * valops.c (call_function_by_hand): Delete function.
8160 (hand_function_call): Rename to call_function_by_hand
8162 2003-03-30 Andrew Cagney <cagney@redhat.com>
8164 2002-11-10 Klee Dienes <kdienes@apple.com>
8165 * value.h (struct value): Update comment.
8167 2003-03-30 Andrew Cagney <cagney@redhat.com>
8169 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8171 (d10v_gdbarch_init): Do not set fp_regnum.
8173 * frame.c (get_frame_base): Force ID initialization.
8174 (get_prev_frame): Move computation of the frame ID from here ...
8175 (get_frame_id): ... to here.
8176 (legacy_get_prev_frame): Mark the frame ID as valid.
8177 * frame.h (struct frame_info): Add field "id_p".
8179 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8181 * i386-tdep.c (i386_store_struct_return): Removed.
8182 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8184 2003-03-30 Andrew Cagney <cagney@redhat.com>
8186 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8187 * gdbarch.h, gdbarch.c: Regenerate.
8188 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8189 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8190 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8191 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8192 * i386-tdep.c (i386_gdbarch_init): Ditto.
8193 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8194 * cris-tdep.c (cris_gdbarch_init): Ditto.
8195 * vax-tdep.c (vax_gdbarch_init): Ditto.
8196 * s390-tdep.c (s390_gdbarch_init): Ditto.
8197 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8198 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8199 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8200 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8201 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8202 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8203 * sparc-tdep.c (sparc_gdbarch_init): Update.
8204 * sh-tdep.c (sh_gdbarch_init): Update.
8205 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8206 * mips-tdep.c (mips_gdbarch_init): Update.
8207 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8208 * ia64-tdep.c (ia64_gdbarch_init): Update.
8209 * frv-tdep.c (frv_gdbarch_init): Update.
8210 * avr-tdep.c (avr_gdbarch_init): Update.
8211 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8212 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8213 instead of when push_dummy_call is not available.
8215 2003-03-30 Andrew Cagney <cagney@redhat.com>
8217 * infttrace.c: Include "gdbthread.h".
8218 (parent_attach_all): Fix function signature.
8219 (call_ptrace): Update call.
8220 * Makefile.in (infttrace.o): Update dependencies.
8222 2003-03-30 Andrew Cagney <cagney@redhat.com>
8224 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8225 PUSH_RETURN_ADDRESS.
8226 * gdbarch.h, gdbarch.c: Regenerate.
8227 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8228 * x86-64-tdep.c (x86_64_init_abi): Update.
8229 * v850-tdep.c (v850_gdbarch_init): Update.
8230 * sparc-tdep.c (sparc_gdbarch_init): Update.
8231 * sh-tdep.c (sh_gdbarch_init): Update.
8232 * s390-tdep.c (s390_gdbarch_init): Update.
8233 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8234 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8235 * mips-tdep.c (mips_gdbarch_init): Update.
8236 * mcore-tdep.c (mcore_gdbarch_init): Update.
8237 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8238 * ia64-tdep.c (ia64_gdbarch_init): Update.
8239 * i386-tdep.c (i386_gdbarch_init): Update.
8240 * h8300-tdep.c (h8300_gdbarch_init): Update.
8241 * frv-tdep.c (frv_gdbarch_init): Update.
8242 * cris-tdep.c (cris_gdbarch_init): Update.
8243 * avr-tdep.c (avr_gdbarch_init): Update.
8244 * arm-tdep.c (arm_gdbarch_init): Update.
8245 * valops.c (hand_function_call): Update.
8247 2003-03-29 Andrew Cagney <cagney@redhat.com>
8249 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8250 sizeof_call_dummy_words.
8251 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8253 * gdbarch.h: Regenerate.
8255 2003-03-29 Andrew Cagney <cagney@redhat.com>
8257 * infttrace.h: New file.
8258 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8259 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8260 (hpread_read_doc_function_type): Detect an initialized type1.
8261 (hpread_quick_traverse): Initialize mod_name_string.
8262 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8263 (som_solib_get_solib_by_pc): Declare.
8264 (so_lib_thread_start_addr): Declare.
8265 (no_shared_libraries): Declare.
8266 * somread.c (init_import_symbols): Make static. Add forward
8268 * config/pa/nm-hppah.h: Include "infttrace.h" for
8270 (hppa_insert_hw_watchpoint): Declare.
8271 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8272 * hppah-nat.c: Include "gdb_string.h".
8273 (parent_attach_all): Delete extern declaration, moved to
8275 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8277 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8278 * Makefile.in (infttrace_h): Define.
8279 (hpread.o): Update dependencies.
8280 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8281 * hppa-hpux-tdep.c: Include "gdb_string.h".
8282 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8283 * infrun.c (handle_inferior_event): Always initialize
8284 stepped_after_stopped_by_watchpoint. Add default and remove
8285 fallthrough in switch statement.
8286 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8288 (hppa_remove_hw_watchpoint): Ditto.
8290 2003-03-29 Andrew Cagney <cagney@redhat.com>
8292 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8295 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8297 * arm-tdep.c (arm_push_arguments): Delete.
8298 (struct stack_item): New type.
8299 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8300 (arm_store_struct_return): Delte.
8301 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8302 arm_push_arguments or arm_store_struct_return.
8304 2003-03-28 Andrew Cagney <cagney@redhat.com>
8306 * Makefile.in (d10v-tdep.o): Update dependencies.
8307 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8308 * d10v-tdep.c: Include "remote.h".
8309 (target_resume_hook): Delete extern declaration.
8310 (target_wait_loop_hook): Ditto.
8311 (tdisassemble_command): Eliminate assignment in "if" conditional.
8312 (d10v_ts2_register_sim_regno): Eliminate call to
8313 legacy_register_sim_regno.
8314 (d10v_ts3_register_sim_regno): Ditto.
8316 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8318 * thread.c: Reindented.
8320 * linux-proc.c: Ditto.
8322 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8324 * MAINTAINERS (write after approval): Add myself.
8326 2003-03-27 Theodore A. Roth <troth@openavr.org>
8328 * objc-exp.y: Add missing semi-colons.
8330 2003-03-27 Andrew Cagney <cagney@redhat.com>
8332 * regcache.c (write_sp): Delete function and references.
8333 * inferior.h (write_sp): Delete declaration.
8334 * valops.c (hand_function_call): Replace write_sp with
8336 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8337 (sparc_pop_frame): Ditto.
8339 2003-03-27 Andrew Cagney <cagney@redhat.com>
8341 * NEWS: Mention removal of support for hppa*-*-bsd* and
8342 hppa*-*-osf* natives, and hppa*-*-pro* target.
8343 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8344 * config/pa/xm-pa.h: Obsolete file.
8345 * config/pa/xm-hppab.h: Obsolete file.
8346 * config/pa/nm-hppab.h: Obsolete file.
8347 * config/pa/tm-hppab.h: Obsolete file.
8348 * config/pa/tm-hppao.h: Obsolete file.
8349 * config/pa/nm-hppao.h: Obsolete file.
8350 * config/pa/tm-pro.h: Obsolete file.
8351 * config/pa/hppaosf.mt: Obsolete file.
8352 * config/pa/hppaosf.mh: Obsolete file.
8353 * config/pa/hppapro.mt: Obsolete file.
8354 * config/pa/hppabsd.mt: Obsolete file.
8355 * config/pa/hppabsd.mh: Obsolete file.
8356 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8357 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8360 2003-03-27 Andrew Cagney <cagney@redhat.com>
8362 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8363 push_arguments. Don't set push_return_address or write_sp.
8364 (d10v_push_dummy_call): Replace d10v_push_arguments.
8365 (d10v_push_return_address, d10v_write_sp): Delete function,
8366 handled by push_dummy_call.
8368 2003-03-26 Andrew Cagney <cagney@redhat.com>
8370 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8371 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8372 regcache and dummy_addr parameters.
8373 * gdbarch.h, gdbarch.c: Re-generate.
8374 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8375 available; assume it will handle stack alignment and return
8376 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8377 legacy_push_arguments.
8378 (legacy_push_arguments): Rename default_push_arguments.
8379 * value.h (legacy_push_arguments): Rename default_push_arguments.
8380 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8381 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8382 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8383 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8384 * config/i386/tm-symmetry.h: Update.
8385 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8386 * x86-64-tdep.c (x86_64_init_abi): Update.
8387 * v850-tdep.c (v850_gdbarch_init): Update.
8388 * sparc-tdep.c (sparc_gdbarch_init): Update.
8389 * sh-tdep.c (sh_gdbarch_init): Update.
8390 * s390-tdep.c (s390_gdbarch_init): Update.
8391 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8392 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8393 * mips-tdep.c (mips_gdbarch_init): Update.
8394 * mcore-tdep.c (mcore_gdbarch_init): Update.
8395 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8396 * ia64-tdep.c (ia64_gdbarch_init): Update.
8397 * i386-tdep.c (i386_gdbarch_init): Update.
8398 * hppa-tdep.c (hppa_gdbarch_init): Update.
8399 * h8300-tdep.c (h8300_gdbarch_init): Update.
8400 * frv-tdep.c (frv_gdbarch_init): Update.
8401 * d10v-tdep.c (d10v_gdbarch_init): Update.
8402 * cris-tdep.c (cris_gdbarch_init): Update.
8403 * avr-tdep.c (avr_gdbarch_init): Update.
8404 * arm-tdep.c (arm_gdbarch_init): Update.
8405 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8406 * alpha-tdep.c (alpha_gdbarch_init): Update.
8408 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8410 * signals/signals.c (do_target_signal_to_host): Correct realtime
8413 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8415 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8416 (struct sal_chain, map_catch_names): Remove.
8417 (catch_exception_command_1): Don't call
8418 handle_gnu_4_16_catch_command.
8420 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8422 From Mark Dettinger <dettinge@de.ibm.com>:
8423 * dwarf2cfi.c (read_2u): Increment pointer by two.
8425 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8427 * signals/signals.c: Fix typos in last change.
8429 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8431 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8432 not already defined. Use __SIGRTMIN if available.
8433 (target_signal_from_host): Remove SIGRTMIN block.
8434 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8435 the signal is within the realtime range.
8437 2003-03-25 Adam Fedor <fedor@gnu.org>
8439 * Makefile.in (infrun.o): Add $(language_h)
8440 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8441 for language specific trampolines.
8442 * language.h (struct language_defn): Add skip_trampoline.
8443 (skip_language_trampoline): Declare.
8444 * language.c (unk_lang_trampoline, skip_language_trampoline):
8446 (unknown_language_defn, auto_language_defn, local_language_defn):
8447 Add ukn_lang_trampoline.
8448 * ada-lang.c (ada_language_defn): Add NULL for language
8449 specific skip_trampoline.
8450 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8451 scm-lang.c: Likewise.
8452 * objc-lang.c (objc_skip_trampoline): New function.
8453 (objc_language_defn): Add objc_skip_trampoline.
8455 2003-03-25 Andrew Cagney <cagney@redhat.com>
8457 * frame.c (get_prev_frame): Delay validating a frame's ID -
8458 non-NULL, didn't go backwards - until an attempt to unwind it to
8461 2003-03-25 Andrew Cagney <cagney@redhat.com>
8463 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8464 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8465 * gdbarch.h, gdbarch.c: Re-generate.
8466 * config/sparc/tm-sparc.h
8467 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8468 * sparc-tdep.c (sparc_gdbarch_init): Set
8469 deprecated_extra_stack_alignment_needed.
8470 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8471 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8472 extra_stack_alignment_needed.
8473 * v850-tdep.c (v850_gdbarch_init): Ditto.
8474 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8475 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8476 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8477 * cris-tdep.c (cris_gdbarch_init): Ditto.
8478 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8479 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8481 2003-03-25 Andrew Cagney <cagney@redhat.com>
8483 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8484 STORE_STRUCT_RETURN.
8485 * gdbarch.h, gdbarch.c: Regenerate.
8486 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8487 (d10v_push_arguments): Set the struct return register.
8488 (d10v_gdbarch_init): Update.
8489 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8490 * x86-64-tdep.c (x86_64_init_abi): Update.
8491 * vax-tdep.c (vax_gdbarch_init): Update.
8492 * v850-tdep.c (v850_gdbarch_init): Update.
8493 * sparc-tdep.c (sparc_gdbarch_init): Update.
8494 * sh-tdep.c (sh_gdbarch_init): Update.
8495 * s390-tdep.c (s390_gdbarch_init): Update.
8496 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8497 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8498 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8499 * mips-tdep.c (mips_gdbarch_init): Update.
8500 * mcore-tdep.c (mcore_gdbarch_init): Update.
8501 * m68k-tdep.c (m68k_gdbarch_init): Update.
8502 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8503 * ia64-tdep.c (ia64_gdbarch_init): Update.
8504 * i386-tdep.c (i386_gdbarch_init): Update.
8505 * hppa-tdep.c (hppa_gdbarch_init): Update.
8506 * h8300-tdep.c (h8300_gdbarch_init): Update.
8507 * frv-tdep.c (frv_gdbarch_init): Update.
8508 * cris-tdep.c (cris_gdbarch_init): Update.
8509 * avr-tdep.c (avr_gdbarch_init): Update.
8510 * arm-tdep.c (arm_gdbarch_init): Update.
8511 * alpha-tdep.c (alpha_gdbarch_init): Update.
8513 2003-03-25 Andrew Cagney <cagney@redhat.com>
8515 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8516 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8517 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8518 * gdbarch.h, gdbarch.c: Regenerate.
8519 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8520 call_dummy_stack_adjust_p.
8521 * vax-tdep.c (vax_gdbarch_init): Ditto.
8522 * v850-tdep.c (v850_gdbarch_init): Ditto.
8523 * sh-tdep.c (sh_gdbarch_init): Ditto.
8524 * s390-tdep.c (s390_gdbarch_init): Ditto.
8525 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8526 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8527 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8528 * mips-tdep.c (mips_gdbarch_init): Ditto.
8529 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8530 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8531 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8532 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8533 * i386-tdep.c (i386_gdbarch_init): Ditto.
8534 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8535 * frv-tdep.c (frv_gdbarch_init): Ditto.
8536 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8537 * cris-tdep.c (cris_gdbarch_init): Ditto.
8538 * avr-tdep.c (avr_gdbarch_init): Ditto.
8539 * arm-tdep.c (arm_gdbarch_init): Ditto.
8540 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8541 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8542 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8543 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8544 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8545 call_dummy_stack_adjust_p.
8546 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8547 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8548 * sparc-tdep.c (sparc32_push_arguments): Update.
8549 * valops.c (hand_function_call): Update.
8551 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8553 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8554 set_gdbarch_char_signed.
8556 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8559 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8561 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8563 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8564 (_initialize_arm_tdep): Don't set tm_print_insn.
8566 2003-03-24 Adam Fedor <fedor@gnu.org>
8568 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8569 * objc-lang.h: Add multiple inclusion protection.
8570 (start_msglist, add_msglist, end_msglist): Additional declarations.
8572 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8574 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8575 value was renamed to ARM_FLOAT_SOFT_FPA.
8577 2003-03-23 Andrew Cagney <cagney@redhat.com>
8579 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8580 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8581 * gdbarch.h, gdbarch.c: Regenerate.
8582 * valops.c (hand_function_call): Update.
8583 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8584 * frame.c (legacy_saved_regs_this_id): Update.
8585 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8586 * dummy-frame.h: Update.
8587 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8588 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8589 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8590 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8591 * config/m68k/tm-sun3.h: Update.
8592 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8593 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8594 * x86-64-tdep.c (x86_64_init_abi): Update.
8595 * vax-tdep.c (vax_gdbarch_init): Update.
8596 * v850-tdep.c (v850_gdbarch_init): Update.
8597 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8598 * sh-tdep.c (sh_gdbarch_init): Update.
8599 * s390-tdep.c (s390_gdbarch_init): Update.
8600 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8601 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8602 (frame_get_saved_regs): Update.
8603 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8604 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8605 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8606 * mips-tdep.c (mips_gdbarch_init): Update.
8607 * mcore-tdep.c (mcore_gdbarch_init): Update.
8608 * m68k-tdep.c (m68k_gdbarch_init): Update.
8609 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8610 * ia64-tdep.c (ia64_gdbarch_init): Update.
8611 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8612 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8613 (i386_interix_back_one_frame): Update.
8614 * hppa-tdep.c (hppa_gdbarch_init): Update.
8615 (hppa_init_extra_frame_info): Update.
8616 * h8300-tdep.c (h8300_gdbarch_init): Update.
8617 * frv-tdep.c (frv_gdbarch_init): Update.
8618 * cris-tdep.c (cris_gdbarch_init): Update.
8619 * avr-tdep.c (avr_gdbarch_init): Update.
8620 * arm-tdep.c (arm_gdbarch_init): Update.
8621 * alpha-tdep.c (alpha_gdbarch_init): Update.
8623 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8625 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8626 (arm_get_fp_model): Declare.
8627 * arm-tdep.c (fp_model_strings): New string array.
8628 (arm_fp_model, current_fp_model): New variables.
8629 (arm_get_fp_model): New function.
8630 (arm_set_fp): New function.
8631 (set_fp_model_sfunc): New function.
8632 (show_fp_model): New function.
8633 (_initialize_arm_tdep): Add new command to set/show the FPU.
8634 (arm_extract_return_value): Use arm_get_fp_model.
8635 (arm_store_return_value): Likewise.
8636 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8637 to initialize the floating-point data types.
8638 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8641 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8643 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8644 the current setting of each value.
8645 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8646 new_set and new_show. Use add_setshow_cmd_full and
8647 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8648 commands and add new version as subcommands of "set/show arm".
8650 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8652 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8653 (set_arm_command, show_arm_command): New functions.
8654 (_initialize_arm_tdep): Add them.
8655 (num_disassembly_options): Renamed from num_flavor_options.
8656 (valid_disassembly_styles): Renamed from valid_flavors.
8657 (disassembly_style): Renamed from disassembly_flavor.
8658 (set_disassembly_style_sfunc): Renamed from
8659 set_disassembly_flavor_sfunc.
8660 (set_disassembly_style): Renamed from set_disassembly_flavor.
8661 (arm_othernames): Updated.
8662 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8663 command. Add "set/show arm disassembly" commands. Deprecate
8664 "othernames" command.
8666 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8668 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8669 (arm-tdep.o): Depend on elf_arm_h.
8671 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8673 * Makefile.in (coff_internal_h): Define.
8674 (arm-tdep.o): Update dependencies.
8676 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8678 * arm-tdep.c (prologue_cache): Delete.
8679 (check_prologue_cache, save_prologue_cache): Delete.
8680 (arm_scan_prologue): Don't check or update the prologue_cache.
8681 (arm_gdb_arch_init): Don't initialize it.
8682 (_initialize_arm_tdep): Likewise.
8684 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8686 * MAINTAINERS (tui): Maintainer of tui code.
8688 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8690 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8691 (i386-cygwin-tdep.o): Add dependencies.
8692 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8693 * i386-cygwin-tdep.c: New file.
8694 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8695 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8697 2003-03-20 Andrew Cagney <cagney@redhat.com>
8699 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8700 (handle_inferior_event): Remove code calling
8701 DYNAMIC_TRAMPOLINE_NEXTPC.
8703 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8704 already has a full path.
8706 * main.c (gdb_main): Return 1.
8707 (captured_main): Call error to report an invalid interpreter.
8709 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8710 * alpha-osf1-tdep.c: Include "gdb_string.h".
8712 2003-03-19 J. Brobecker <brobecker@gnat.com>
8714 Continuing work to convert the hppa targets to multiarch partial.
8716 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8717 method, now that hppa_push_dummy_frame has a conformant prototype.
8718 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8719 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8720 for the switch to multiarch partial.
8722 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8724 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8725 when iss is issNull.
8727 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8729 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8730 NUM_REGS bounds check.
8732 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8734 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8735 * mips-tdep.c (gdb_assert.h): Include.
8736 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8737 (mips_register_name): Handle integer registers explicitly. Add
8739 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8740 (mips_lsi33k_reg_names): Don't list integer registers; they're
8741 handled by mips_register_name() now.
8742 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8743 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8744 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8745 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8746 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8748 2003-03-18 Andrew Cagney <cagney@redhat.com>
8750 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8752 * gdbtypes.h (print_scalar_formatted): Update declaration.
8753 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8755 2003-03-18 J. Brobecker <brobecker@gnat.com>
8757 * infrun.c (observer.h): Add #include.
8758 (normal_stop): Add call to observer_notify_normal_stop.
8759 * Makefile.in (infrun.o): Add dependency on observer.h.
8761 2003-03-18 J. Brobecker <brobecker@gnat.com>
8763 Continuing work to convert the hppa targets to multiarch partial.
8764 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8765 parameter. Reformat comment.
8766 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8767 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8768 to match new profile.
8770 2003-03-18 J. Brobecker <brobecker@gnat.com>
8772 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8773 appear to be working in any case.
8775 2003-03-18 J. Brobecker <brobecker@gnat.com>
8777 * observer.c (observer_test_first_observer): New static variable.
8778 (observer_test_second_observer): Likewise.
8779 (observer_test_third_observer): Likewise.
8780 (observer_test_first_notification_function): New static function.
8781 (observer_test_second_notification_function): Likewise.
8782 (observer_test_third_notification_function): Likewise.
8784 2003-03-17 J. Brobecker <brobecker@gnat.com>
8786 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8787 * somsolib.c (gdb_assert.h): Likewise.
8788 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8789 (somsolib.o): Likewise.
8791 2003-03-17 Andrew Cagney <cagney@redhat.com>
8793 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8794 BFD. Simplify setting of di.endian.
8796 2003-03-17 Andrew Cagney <cagney@redhat.com>
8798 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8799 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8801 From Elena Zannoni <ezannoni@redhat.com>
8802 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8803 vector and floating-point parameters.
8804 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8806 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8808 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8810 * MAINTAINERS: Remove my name from several maintainership roles.
8812 2003-03-17 Andrew Cagney <cagney@redhat.com>
8814 Fix frame off-by-one bug.
8815 * frame-unwind.h (frame_this_id_ftype): Replace
8816 frame_unwind_id_ftype.
8817 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8818 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8819 with "prev_register".
8820 * frame-unwind.c (frame_unwind_find_by_pc): Return
8821 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8823 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8824 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8825 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8826 (dummy_frame_unwind): Update.
8827 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8828 sentinel_frame_register_unwind.
8829 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8830 (sentinel_frame_unwinder): Update.
8831 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8832 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8833 * frame.c (create_sentinel_frame): Update. Initialize
8834 "prologue_cache" instead of "unwind_cache".
8835 (frame_register_unwind): Call this frame's prev_register with the
8836 next frame and this frame's prologue cache.
8837 (get_prev_frame): Simplify. Always call prev frame's this_id with
8838 this frame and prev frame's prologue cache. Document that this
8839 call is shifted one to the left when compared to the
8840 frame_register_unwind call.
8841 (legacy_saved_regs_prev_register): Replace
8842 frame_saved_regs_register_unwind.
8843 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8844 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8845 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8846 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8847 (d10v_frame_unwind): Update.
8848 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8849 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8850 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8851 "saved_regs" with "this_saved_regs".
8853 2003-03-16 Andrew Cagney <cagney@redhat.com>
8855 * frame.c (frame_pop): Don't call target_store_registers. Fix
8856 problem reported by Mark Kettenis.
8858 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8860 * i386-tdep.c (i386_register_type): Renamed from
8861 i386_register_virtual_type. Adjust function signature.
8862 (i386_gdbarch_init): Set register_type instead of
8863 deprecated_max_register_raw_size,
8864 deprecated_max_register_virtual_size and register_virtual_type.
8866 2003-03-14 Andrew Cagney <cagney@redhat.com>
8868 * frame.c (get_prev_frame): When a legacy frame, always call
8869 legacy_get_prev_frame. Simplify unwind code using assumption that
8870 the unwinder is new.
8871 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8872 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8873 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8875 2003-03-14 Andrew Cagney <cagney@redhat.com>
8877 * frame.c (get_saved_register): Delete function.
8878 * frame.h (get_saved_register): Delete declaration.
8879 * xstormy16-tdep.c: Update comment.
8880 * regcache.h: Update comments.
8881 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8882 get_saved_register and extract_address, use
8883 frame_read_unsigned_register.
8884 (sparc_frame_saved_pc): Ditto.
8885 (sparc_get_saved_register): Instead of get_saved_register, use
8887 (sparc_pop_frame): Ditto.
8888 * findvar.c: Update comments.
8889 (value_of_register): Call frame_register instead of
8891 (value_from_register): Ditto.
8892 * config/sparc/tm-sparc.h: Update comment.
8893 * breakpoint.c: Update comment.
8895 2003-03-14 Andrew Cagney <cagney@redhat.com>
8897 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8899 * gdbarch.h, gdbarch.c: Re-generate.
8900 * frame.h: Update comments.
8901 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8902 * x86-64-tdep.c (x86_64_init_abi): Update.
8903 * sparc-tdep.c (sparc_gdbarch_init): Update.
8904 * sh-tdep.c (sh_gdbarch_init): Update.
8905 * mips-tdep.c (mips_gdbarch_init): Update.
8906 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8907 * cris-tdep.c (cris_gdbarch_init): Update.
8908 * ia64-tdep.c (ia64_gdbarch_init): Update.
8909 * frame.c (frame_register): Update.
8910 (get_saved_register): Update.
8911 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8913 2003-03-13 Andrew Cagney <cagney@redhat.com>
8915 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8916 * gdbarch.h, gdbarch.c: Regenerate.
8917 * valops.c (hand_function_call): Update comment.
8918 * stack.c (return_command): Update comment.
8919 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8920 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8921 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8922 * x86-64-tdep.c (x86_64_init_abi): Update.
8923 * vax-tdep.c (vax_gdbarch_init): Update.
8924 * v850-tdep.c (v850_gdbarch_init): Update.
8925 * sparc-tdep.c (sparc_gdbarch_init): Update.
8926 * sh-tdep.c (sh_gdbarch_init): Update.
8927 * s390-tdep.c (s390_gdbarch_init): Update.
8928 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8929 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8930 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8931 * mips-tdep.c (mips_gdbarch_init): Update.
8932 * mcore-tdep.c (mcore_gdbarch_init): Update.
8933 * m68k-tdep.c (m68k_gdbarch_init): Update.
8934 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8935 * ia64-tdep.c (ia64_gdbarch_init): Update.
8936 * i386-tdep.c (i386_gdbarch_init): Update.
8937 * hppa-tdep.c (hppa_gdbarch_init): Update.
8938 * h8300-tdep.c (h8300_gdbarch_init): Update.
8939 * frv-tdep.c (frv_gdbarch_init): Update.
8940 * cris-tdep.c (cris_gdbarch_init): Update.
8941 * avr-tdep.c (avr_gdbarch_init): Update.
8942 * arm-tdep.c (arm_gdbarch_init): Update.
8943 * alpha-tdep.c (alpha_gdbarch_init): Update.
8945 2003-03-13 Andrew Cagney <cagney@redhat.com>
8947 * frame.c (legacy_frame_p): New function.
8948 (get_prev_frame): Use legacy_frame_p.
8949 * frame.h (legacy_frame_p): Declare.
8951 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8953 * MAINTAINERS (write after approval): Alphabetically
8956 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8958 * MAINTAINERS (write after approval): Add myself.
8960 2003-03-12 Andrew Cagney <cagney@redhat.com>
8962 * frame.c (get_prev_frame): Rename the frame parameter to
8964 (get_next_frame, legacy_get_prev_frame): Ditto.
8966 2003-03-12 Andrew Cagney <cagney@redhat.com>
8968 * frame.c (get_current_frame): Check target_has_registers before
8969 checking target_has_stack.
8970 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8971 instead of deprecated_selected_frame.
8972 * findvar.c (value_of_register): Pass "frame", not
8973 deprecated_selected_frame, to value_of_builtin_reg.
8975 2003-03-12 Andrew Cagney <cagney@redhat.com>
8977 * regcache.c (regcache_cooked_write_signed): New function.
8978 (regcache_cooked_write_unsigned): New function.
8979 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8980 (regcache_cooked_read_signed): Fix regnum in range assertion.
8981 * regcache.h (regcache_cooked_write_signed): Declare.
8982 (regcache_cooked_write_unsigned): Declare.
8984 2003-03-12 Andrew Cagney <cagney@redhat.com>
8986 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8987 * gdbarch.h, gdbarch.c: Re-generate.
8988 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8989 * x86-64-tdep.h: Update.
8990 * x86-64-tdep.c (x86_64_init_abi): Update.
8991 * v850-tdep.c (v850_gdbarch_init): Update.
8992 * sparc-tdep.c (sparc_gdbarch_init): Update.
8993 * sh-tdep.c (sh_gdbarch_init): Update.
8994 * s390-tdep.c (s390_gdbarch_init): Update.
8995 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8996 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8997 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8998 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8999 * mips-tdep.c (mips_gdbarch_init): Update.
9000 * mcore-tdep.c (mcore_gdbarch_init): Update.
9001 * m68k-tdep.c (m68k_gdbarch_init): Update.
9002 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9003 * ia64-tdep.c (ia64_gdbarch_init): Update.
9004 * i386-tdep.c (i386_gdbarch_init): Update.
9005 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9006 * hppa-tdep.c (hppa_gdbarch_init): Update.
9007 * h8300-tdep.c (h8300_gdbarch_init): Update.
9008 * frv-tdep.c (frv_gdbarch_init): Update.
9009 * cris-tdep.c (cris_gdbarch_init): Update.
9010 * avr-tdep.c (avr_gdbarch_init): Update.
9011 * arm-tdep.c (arm_gdbarch_init): Update.
9012 * alpha-tdep.c (alpha_gdbarch_init): Update.
9013 * sh-tdep.c (sh_init_extra_frame_info): Update.
9014 (sh64_init_extra_frame_info): Update.
9015 * ns32knbsd-nat.c (frame_num_args): Update.
9016 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9017 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9018 (xstormy16_frame_chain_valid): Update.
9019 * vax-tdep.c (vax_saved_pc_after_call): Update.
9020 * v850-tdep.c (v850_frame_chain): Update.
9021 (v850_pop_frame): Update.
9022 (v850_init_extra_frame_info): Update.
9023 * sparc-tdep.c (setup_arbitrary_frame): Update.
9024 * ns32k-tdep.c (umax_frame_num_args): Update.
9025 * s390-tdep.c (s390_pop_frame_regular): Update.
9026 * mn10300-tdep.c (mn10300_frame_chain): Update.
9027 (mn10300_pop_frame_regular): Update.
9028 (mn10300_init_extra_frame_info): Update.
9029 * mips-tdep.c (mips_init_frame_pc_first): Update.
9030 (mips_frame_chain): Update.
9031 (mips_pop_frame): Update.
9032 * mcore-tdep.c (mcore_frame_chain): Update.
9033 (mcore_pop_frame): Update.
9034 (mcore_init_extra_frame_info): Update.
9035 * arch-utils.c (init_frame_pc_default): Update.
9036 * m68k-tdep.c (isi_frame_num_args): Update.
9037 (delta68_frame_num_args): Update.
9038 (news_frame_num_args): Update.
9039 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9040 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9041 (alpha_frame_chain): Update.
9042 (alpha_pop_frame): Update.
9043 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9044 (hppa_init_extra_frame_info): Update.
9045 (hppa_frame_chain): Update.
9046 (hppa_frame_chain_valid): Update.
9047 * cris-tdep.c (cris_init_extra_frame_info): Update.
9048 * avr-tdep.c (avr_init_extra_frame_info): Update.
9049 * arm-tdep.c (arm_frame_chain_valid): Update.
9050 (arm_init_extra_frame_info): Update.
9051 (arm_pop_frame): Update.
9052 * frame.c (frame_pc_unwind): Update.
9053 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9054 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9055 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9056 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9057 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9058 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9060 2003-03-12 Andrew Cagney <cagney@redhat.com>
9062 Eliminate the need for POP_FRAME.
9063 * frame.c (do_frame_unwind_register): New function.
9064 (frame_pop): When no POP_FRAME, pop the frame using register
9065 unwind and a scratch regcache.
9066 (frame_saved_regs_pop): Delete function.
9067 (trad_frame_unwinder): Update.
9068 * d10v-tdep.c (d10v_frame_pop): Delete function.
9069 (d10v_frame_unwind): Update.
9070 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9071 (sentinel_frame_unwinder): Update.
9072 * dummy-frame.c (dummy_frame_pop): Delete function.
9073 (dummy_frame_unwind): Update.
9074 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9075 (struct frame_unwind): Update.
9077 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9079 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9080 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9081 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9082 Do range checks on register number obtained from debugging info.
9083 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9084 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9085 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9087 (do_fp_register_row): Fix typo which caused double type to be
9088 used when attempting to unpack a float.
9090 2003-03-11 J. Brobecker <brobecker@gnat.com>
9092 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9094 2003-03-11 Andrew Cagney <cagney@redhat.com>
9096 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9097 frame. Problem found by Corinna Vinschen.
9099 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9101 * doublest.c (floatformat_from_length): Accept also
9102 the real size of 'long double' type.
9104 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9106 From Klee Dienes <kdienes@apple.com>:
9107 * breakpoint.c (bpstat_copy): Copy the command lines as well
9108 as the old value, to match what is freed in bpstat_clear.
9110 2003-03-10 David Carlton <carlton@math.stanford.edu>
9112 * minsyms.c (add_minsym_to_hash_table): Replace
9113 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9114 (compare_minimal_symbols, compact_minimal_symbols)
9115 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9116 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9117 of DEPRECATED_SYMBOL_MATCHES_NAME.
9118 (lookup_minimal_symbol_solib_trampoline): Ditto.
9120 2003-03-10 Andrew Cagney <cagney@redhat.com>
9122 * regcache.h (regcache_cooked_read_ftype): Define.
9123 (regcache_save, regcache_restore): Add a cooked_read parameter.
9124 * regcache.c (regcache_save, regcache_restore): Update.
9125 (do_cooked_read): New function.
9126 (regcache_cpy): Pass do_cooked_read to regcache_save and
9129 2003-03-10 Andrew Cagney <cagney@redhat.com>
9131 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9132 * gdbarch.h, gdbarch.c: Re-generate.
9133 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9134 * x86-64-tdep.h: Update.
9135 * x86-64-tdep.c (x86_64_init_abi): Update.
9136 * v850-tdep.c (v850_gdbarch_init): Update.
9137 * sparc-tdep.c (sparc_gdbarch_init): Update.
9138 * sh-tdep.c (sh_gdbarch_init): Update.
9139 * s390-tdep.c (s390_gdbarch_init): Update.
9140 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9141 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9142 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9143 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9144 * mips-tdep.c (mips_gdbarch_init): Update.
9145 * mcore-tdep.c (mcore_gdbarch_init): Update.
9146 * m68k-tdep.c (m68k_gdbarch_init): Update.
9147 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9148 * ia64-tdep.c (ia64_gdbarch_init): Update.
9149 * i386-tdep.c (i386_gdbarch_init): Update.
9150 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9151 * hppa-tdep.c (hppa_gdbarch_init): Update.
9152 * h8300-tdep.c (h8300_gdbarch_init): Update.
9153 * frv-tdep.c (frv_gdbarch_init): Update.
9154 * cris-tdep.c (cris_gdbarch_init): Update.
9155 * avr-tdep.c (avr_gdbarch_init): Update.
9156 * arm-tdep.c (arm_gdbarch_init): Update.
9157 * alpha-tdep.c (alpha_gdbarch_init): Update.
9158 * sh-tdep.c (sh_init_extra_frame_info): Update.
9159 (sh64_init_extra_frame_info): Update.
9160 * ns32knbsd-nat.c (frame_num_args): Update.
9161 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9162 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9163 (xstormy16_frame_chain_valid): Update.
9164 * vax-tdep.c (vax_saved_pc_after_call): Update.
9165 * v850-tdep.c (v850_frame_chain): Update.
9166 (v850_pop_frame): Update.
9167 (v850_init_extra_frame_info): Update.
9168 * sparc-tdep.c (setup_arbitrary_frame): Update.
9169 * ns32k-tdep.c (umax_frame_num_args): Update.
9170 * s390-tdep.c (s390_pop_frame_regular): Update.
9171 * mn10300-tdep.c (mn10300_frame_chain): Update.
9172 (mn10300_pop_frame_regular): Update.
9173 (mn10300_init_extra_frame_info): Update.
9174 * mips-tdep.c (mips_init_frame_pc_first): Update.
9175 (mips_frame_chain): Update.
9176 (mips_pop_frame): Update.
9177 * mcore-tdep.c (mcore_frame_chain): Update.
9178 (mcore_pop_frame): Update.
9179 (mcore_init_extra_frame_info): Update.
9180 * arch-utils.c (init_frame_pc_default): Update.
9181 * m68k-tdep.c (isi_frame_num_args): Update.
9182 (delta68_frame_num_args): Update.
9183 (news_frame_num_args): Update.
9184 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9185 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9186 (alpha_frame_chain): Update.
9187 (alpha_pop_frame): Update.
9188 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9189 (hppa_init_extra_frame_info): Update.
9190 (hppa_frame_chain): Update.
9191 (hppa_frame_chain_valid): Update.
9192 * cris-tdep.c (cris_init_extra_frame_info): Update.
9193 * avr-tdep.c (avr_init_extra_frame_info): Update.
9194 * arm-tdep.c (arm_frame_chain_valid): Update.
9195 (arm_init_extra_frame_info): Update.
9196 (arm_pop_frame): Update.
9197 * frame.c (frame_pc_unwind): Update.
9198 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9199 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9200 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9201 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9202 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9203 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9205 2003-03-10 Andrew Cagney <cagney@redhat.com>
9207 * gdbarch.sh (gdbarch_unwind_pc): New method.
9208 * gdbarch.h, gdbarch.c: Regenerate.
9209 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9210 but use read_pc and FRAME_SAVED_PC as fall backs.
9211 (frame_saved_regs_pc_unwind): Delete function.
9212 (trad_frame_unwinder): Update.
9213 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9214 (struct frame_unwind): Update.
9215 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9216 (dummy_frame_unwind): Update.
9217 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9218 (sentinel_frame_unwinder): Update.
9219 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9220 (d10v_frame_unwind): Update.
9221 (d10v_unwind_pc): New function.
9222 (d10v_gdbarch_init): Set unwind_pc.
9224 2003-03-10 Andrew Cagney <cagney@redhat.com>
9226 * gdbarch.h: Re-generate.
9228 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9230 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9233 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9235 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9237 2003-03-08 Andrew Cagney <cagney@redhat.com>
9239 * cli-out.c: Update copyright.
9240 (cli_out_data): Define typedef. Use instead of ui_out_data.
9242 2003-03-08 Andrew Cagney <cagney@redhat.com>
9244 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9247 2003-03-07 Andrew Cagney <cagney@redhat.com>
9249 * gdbarch.sh: Don't generate two macro definitions when an
9250 undefined macro taking no arguments.
9251 * gdbarch.h: Regenerate.
9253 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9255 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9256 (x86_64_unwind_dummy_id): New functions.
9257 (x86_64_init_abi): Register these two new functions.
9259 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9261 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9262 (x86_64_skip_prologue): Move prologue detection to
9264 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9266 2003-03-05 Andrew Cagney <cagney@redhat.com>
9268 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9269 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9270 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9271 to use unwind_dummy_id when a dummy frame.
9272 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9274 * gdbarch.h, gdbarch.c: Regneerate.
9276 2003-03-05 Andrew Cagney <cagney@redhat.com>
9278 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9279 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9280 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9283 2003-03-05 Andrew Cagney <cagney@redhat.com>
9285 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9286 (struct d10v_unwind_cache): Delete field "frameless". Replace
9287 "next_addr" with "sp_offset". Add "r11_offset".
9288 (d10v_frame_unwind_cache): Update.
9289 (prologue_find_regs): Update. When "mv r11, sp", save the
9290 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9291 RN was saved in r11_offset.
9293 2003-03-05 Andrew Cagney <cagney@redhat.com>
9295 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9296 cached PC value in the next frame.
9298 2003-03-05 Andrew Cagney <cagney@redhat.com>
9300 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9301 "id_unwind_cache" with "id".
9302 (frame_id_unwind): Delete declaration.
9303 * frame.c (frame_id_unwind): Delete function.
9304 (get_prev_frame): Call the frame id unwind method directly. Store
9305 the returned next frame's ID value in NEXT_FRAME. Note that there
9306 is a problem with the wrong unwind ID being called with the wrong
9309 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9311 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9313 2003-03-05 James Ingham <jingham@apple.com>
9314 Daniel Jacobowitz <drow@mvista.com>
9316 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9317 (auto_cp_abi): New variable.
9318 (current_cp_abi, num_cp_abis): Make static.
9319 (CP_ABI_MAX): Define.
9320 (cp_abis): Turn into an array.
9321 (value_virtual_fn_field): Fix formatting.
9322 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9324 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9325 (list_cp_abis, _initialize_cp_abi): New functions.
9326 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9327 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9328 switch_to_cp_abi. Update prototype for register_cp_abi.
9329 * Makefile.in (cp-abi.o): Update dependencies.
9330 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9331 instead of switch_to_cp_abi.
9332 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9334 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9336 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9338 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9340 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9341 * dwarf2loc.c: Include "regcache.h".
9342 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9344 * Makefile.in (dwarf2loc.o): Update dependencies.
9346 2003-03-04 Theodore A. Roth <troth@openavr.org>
9348 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9349 number of io registers reported by remote target is not a multiple of
9352 2003-03-04 David Carlton <carlton@math.stanford.edu>
9354 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9355 (lookup_symbol_aux_psymtabs): Update call to
9356 lookup_partial_symbol.
9357 (lookup_transparent_type, find_main_psymtab)
9358 (make_symbol_overload_list): Ditto.
9360 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9362 * MAINTAINERS (Write after approval): Update my email address.
9364 2003-03-03 Andrew Cagney <cagney@redhat.com>
9366 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9367 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9368 predicate. Replace MAX_REGISTER_RAW_SIZE.
9369 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9370 MAX_REGISTER_VIRTUAL_SIZE.
9371 * regcache.c (legacy_max_register_raw_size): New function.
9372 (legacy_max_register_virtual_size): New function.
9373 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9374 (MAX_REGISTER_RAW_SIZE): Define.
9375 (legacy_max_register_raw_size): Declare.
9376 (legacy_max_register_virtual_size): Declare.
9377 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9378 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9379 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9380 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9381 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9382 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9383 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9384 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9385 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9386 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9387 * vax-tdep.c (vax_gdbarch_init): Update.
9388 * v850-tdep.c (v850_gdbarch_init): Update.
9389 * sparc-tdep.c (sparc_gdbarch_init): Update.
9390 * sh-tdep.c (sh_gdbarch_init): Update.
9391 * s390-tdep.c (s390_gdbarch_init): Update.
9392 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9393 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9394 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9395 * mips-tdep.c (mips_gdbarch_init): Update.
9396 * mcore-tdep.c (mcore_gdbarch_init): Update.
9397 * m68k-tdep.c (m68k_gdbarch_init): Update.
9398 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9399 * ia64-tdep.c (ia64_gdbarch_init): Update.
9400 * i386-tdep.c (i386_gdbarch_init): Update.
9401 * hppa-tdep.c (hppa_gdbarch_init): Update.
9402 * h8300-tdep.c (h8300_gdbarch_init): Update.
9403 * frv-tdep.c (frv_gdbarch_init): Update.
9404 * cris-tdep.c (cris_gdbarch_init): Update.
9405 * avr-tdep.c (avr_gdbarch_init): Update.
9406 * arm-tdep.c (arm_gdbarch_init): Update.
9407 * alpha-tdep.c (alpha_gdbarch_init): Update.
9408 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9409 max_register_raw_size or max_register_virtual_size.
9411 2003-03-03 David Carlton <carlton@math.stanford.edu>
9413 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9414 SYMBOL_MATCHES_NAME, add comment.
9415 (SYMBOL_MATCHES_NATURAL_NAME): New.
9416 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9417 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9418 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9419 * symtab.c (lookup_partial_symbol): Use
9420 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9422 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9423 SYMBOL_MATCHES_NAME.
9426 2003-03-03 David Carlton <carlton@math.stanford.edu>
9428 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9429 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9430 by regexp matching against SYMBOL_NATURAL_NAME.
9432 2003-03-03 David Carlton <carlton@math.stanford.edu>
9434 * linespec.c (find_method): Extract code into collect_methods.
9435 (collect_methods): New.
9437 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9439 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9442 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9443 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9445 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9447 * arch-utils.c (generic_register_byte): Fix to use the loop index
9448 and not regnum when summing the size of all registers up to regnum.
9450 2003-03-01 Andrew Cagney <cagney@redhat.com>
9452 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9453 FRAME_INIT_SAVED_REGS.
9454 * gdbarch.h, gdbarch.c: Regenerate.
9455 * stack.c (frame_info): Update.
9456 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9457 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9458 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9459 * ns32k-tdep.c (ns32k_pop_frame): Update.
9460 * mips-tdep.c (mips_pop_frame): Update.
9461 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9462 * ia64-tdep.c (ia64_frame_chain): Update.
9463 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9464 (ia64_frameless_function_invocation): Update.
9465 (ia64_init_extra_frame_info): Update.
9466 (ia64_pop_frame_regular): Update.
9467 * frame.h (struct frame_info): Update comment.
9468 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9469 * frame.c (frame_saved_regs_register_unwind): Update.
9470 (frame_saved_regs_register_unwind): Update.
9471 (deprecated_generic_get_saved_register): Update.
9472 * cris-tdep.c: Update comment.
9473 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9475 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9476 * x86-64-tdep.c (x86_64_init_abi): Update.
9477 * vax-tdep.c (vax_gdbarch_init): Update.
9478 * v850-tdep.c (v850_gdbarch_init): Update.
9479 * sparc-tdep.c (sparc_gdbarch_init): Update.
9480 * sh-tdep.c (sh_gdbarch_init): Update.
9481 * s390-tdep.c (s390_gdbarch_init): Update.
9482 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9483 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9484 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9485 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9486 * mips-tdep.c (mips_gdbarch_init): Update.
9487 * mcore-tdep.c (mcore_gdbarch_init): Update.
9488 * m68k-tdep.c (m68k_gdbarch_init): Update.
9489 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9490 * ia64-tdep.c (ia64_gdbarch_init): Update.
9491 * i386-tdep.c (i386_gdbarch_init): Update.
9492 * frv-tdep.c (frv_gdbarch_init): Update.
9493 * avr-tdep.c (avr_gdbarch_init): Update.
9494 * arm-tdep.c (arm_gdbarch_init): Update.
9495 * alpha-tdep.c (alpha_gdbarch_init): Update.
9497 2003-03-01 Andrew Cagney <cagney@redhat.com>
9499 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9500 option enum and switch. When no windows, set the interpreter to
9503 2003-03-01 Andrew Cagney <cagney@redhat.com>
9505 * main.c (captured_main): Replace magic option characters with an
9508 2003-03-01 Andrew Cagney <cagney@redhat.com>
9510 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9511 INIT_EXTRA_FRAME_INFO.
9512 * gdbarch.h, gdbarch.c: Regenerate.
9513 * arm-tdep.c: Update comments.
9514 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9515 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9516 * frame.h, avr-tdep.c: Ditto.
9517 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9518 (create_new_frame, legacy_get_prev_frame): Ditto.
9519 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9520 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9521 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9522 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9523 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9524 * v850-tdep.c (v850_gdbarch_init): Ditto.
9525 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9526 * sh-tdep.c (sh_gdbarch_init): Ditto.
9527 * s390-tdep.c (s390_gdbarch_init): Ditto.
9528 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9529 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9530 * mips-tdep.c (mips_gdbarch_init): Ditto.
9531 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9532 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9533 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9534 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9535 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9536 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9537 * frv-tdep.c (frv_gdbarch_init): Ditto.
9538 * cris-tdep.c (cris_gdbarch_init): Ditto.
9539 * avr-tdep.c (avr_gdbarch_init): Ditto.
9540 * arm-tdep.c (arm_gdbarch_init): Ditto.
9541 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9542 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9544 2003-03-01 Andrew Cagney <cagney@redhat.com>
9546 * gdbarch.sh (register_type): New function with predicate.
9547 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9548 * gdbarch.h, gdbarch.c: Re-generate.
9549 * arch-utils.c (generic_register_byte): Use generic_register_size.
9550 (generic_register_size): When available, use
9551 gdbarch_register_type.
9552 * regcache.c (init_regcache_descr): When available, initialize the
9553 register type array using gdbarch_register_type. If the
9554 architecture supplies gdbarch_register_type, do not use the legacy
9556 * d10v-tdep.c (d10v_register_type): Replace
9557 d10v_register_virtual_type.
9558 (d10v_gdbarch_init): Set register_type instead of
9559 register_virtual_type.
9561 2003-03-01 Andrew Cagney <cagney@redhat.com>
9563 * Makefile.in (ax-gdb.o): Update dependencies.
9564 * ax-gdb.c: Include "regcache.h".
9565 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9566 * findvar.c (value_of_register): Ditto.
9567 * infcmd.c (default_print_registers_info): Ditto.
9569 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9571 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9572 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9574 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9576 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9579 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9581 * Makefile.in (dwarf2loc.o): Update dependencies.
9582 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9583 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9584 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9585 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9586 (locexpr_tracepoint_var_ref): New function.
9587 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9589 2003-02-28 Andrew Cagney <cagney@redhat.com>
9591 * regcache.c (register_size): New function.
9592 * regcache.h (register_size): Declare
9593 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9594 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9596 2003-02-28 David Carlton <carlton@math.stanford.edu>
9598 * linespec.c (decode_compound): Extract code into find_method.
9601 2003-02-28 J. Brobecker <brobecker@gnat.com>
9603 * Makefile.in: Add rules to build and link in observer.o.
9605 2003-02-27 J. Brobecker <brobecker@gnat.com>
9607 * observer.c: Minor comments edits.
9609 2003-02-27 J. Brobecker <brobecker@gnat.com>
9611 * observer.h, observer.c: New file.
9613 2003-02-27 Andrew Cagney <cagney@redhat.com>
9615 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9617 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9619 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9620 (M6812_OP_STS_EXT): Likewise.
9621 (m6811_prologue): Use the above to recognize prologue.
9622 (m6812_prologue): Likewise.
9624 2003-02-27 David Carlton <carlton@math.stanford.edu>
9626 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9628 (compare_psymbols): Ditto.
9629 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9631 2003-02-27 Michael Snyder <msnyder@redhat.com>
9633 * f-lang.c (build_fortran_types): New function.
9634 (_initialize_f_language): Gdbarch-register built-in fortran types.
9635 * doublest.c (extract_floating): Fix warning text.
9637 2003-02-27 Andrew Cagney <cagney@redhat.com>
9639 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9640 predicate. Replaces PUSH_DUMMY_FRAME.
9641 * gdbarch.h, gdbarch.c: Regnerate.
9642 * valops.c (hand_function_call): Update. Call
9643 generic_push_dummy_frame directly.
9644 * vax-tdep.c (vax_gdbarch_init): Update.
9645 * sparc-tdep.c (sparc_gdbarch_init): Update.
9646 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9647 * m68k-tdep.c (m68k_gdbarch_init): Update.
9648 * hppa-tdep.c (hppa_gdbarch_init): Update.
9649 * alpha-tdep.c (alpha_gdbarch_init): Update.
9650 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9651 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9652 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9653 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9654 push_dummy_frame to generic_push_dummy_frame.
9655 * v850-tdep.c (v850_gdbarch_init): Ditto.
9656 * sh-tdep.c (sh_gdbarch_init): Ditto.
9657 * s390-tdep.c (s390_gdbarch_init): Ditto.
9658 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9659 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9660 * mips-tdep.c (mips_gdbarch_init): Ditto.
9661 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9662 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9663 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9664 * i386-tdep.c (i386_gdbarch_init): Ditto.
9665 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9666 * frv-tdep.c (frv_gdbarch_init): Ditto.
9667 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9668 * cris-tdep.c (cris_gdbarch_init): Ditto.
9669 * avr-tdep.c (avr_gdbarch_init): Ditto.
9670 * arm-tdep.c (arm_gdbarch_init): Ditto.
9672 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9674 * mips-tdep.c (show_mips_abi): New function.
9675 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9676 command ``show mips abi''.
9678 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9680 From Elena Zannoni <ezannoni@redhat.com>
9681 * dbxread.c (process_one_symbol): Only record line 0 if one or
9682 more sline entries have been seen for the function.
9684 2003-02-26 Michael Chastain <mec@shout.net>
9686 * configure: Regenerate with autoconf 000227.
9688 2003-02-26 Michael Chastain <mec@shout.net>
9691 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9692 for old libc5/glibc.
9693 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9695 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9697 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9698 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9700 2003-02-26 Michael Chastain <mec@shout.net>
9702 * configure.in: New variable HAVE_UINTPTR_T.
9703 * configure, config.in: Regenerated.
9705 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9708 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9710 2003-02-25 Andrew Cagney <cagney@redhat.com>
9712 * frame.c (get_prev_frame): Add comment on check for
9713 inside_entry_func. Only check for inside_entry_file when not a
9714 dummy and not a sentinel. Check that the new frame is not inner
9717 2003-02-25 Andrew Cagney <cagney@redhat.com>
9719 * frame.c (frame_debug): New variable.
9720 (_initialize_frame): Add "set/show debug frame" command.
9721 (get_prev_frame): When frame_debug, print reason why unwind
9724 2003-02-25 Michael Chastain <mec@shout.net>
9726 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9727 to avoid uintptr_t definition problems.
9729 2003-02-25 David Carlton <carlton@math.stanford.edu>
9731 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9732 (SYMBOL_LINKAGE_NAME): Ditto.
9733 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9734 SYMBOL_LINKAGE_NAME.
9735 (struct general_symbol_info): Expand comment.
9736 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9737 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9738 (SYMBOL_MATCHES_REGEXP): Ditto.
9739 * symtab.c (symbol_natural_name): New function.
9740 * objfiles.h: Replace all uses of SYMBOL_NAME by
9741 DEPRECATED_SYMBOL_NAME.
9742 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9743 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9744 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9745 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9746 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9747 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9748 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9749 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9750 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9751 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9753 * ada-exp.y: Update copyright.
9754 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9755 * cp-valprint.c: Ditto.
9757 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9759 * infptrace.c (detach): Do not flag error if ptrace detach fails
9760 and errno is set to ESRCH.
9762 2003-02-24 Andrew Cagney <cagney@redhat.com>
9764 * infptrace.c (udot_info): Change type of udot_off to long. Use
9765 paddr when printing udot_off's value.
9767 2003-02-24 David Carlton <carlton@math.stanford.edu>
9769 * symtab.c (make_symbol_overload_list): Only read in partial
9770 symtabs containing a matching partial symbol.
9772 2003-02-24 David Carlton <carlton@math.stanford.edu>
9774 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9775 do the comparison, not strcmp.
9776 * symfile.c (compare_psymbols): Ditto.
9777 * defs.h: Declare strcmp_iw_ordered.
9778 * utils.c (strcmp_iw_ordered): New function.
9780 2003-02-24 Jim Blandy <jimb@redhat.com>
9782 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9783 support, shared libs): Remove my name from here, to better reflect
9786 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9788 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9789 (target_ops): Add to_have_continuable_watchpoint.
9790 * target.c (update_current_target): Add INHERIT line for
9791 to_have_continuable_watchpoint.
9792 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9793 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9794 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9795 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9797 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9799 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9802 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9804 * solib.c (solib_open): Call target defined search function after
9805 failing with solib-search-path.
9806 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9807 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9809 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9811 * MAINTAINERS: Add myself to Write After section.
9813 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9815 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9817 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9819 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9820 (m68hc11_add_reggroups): New function.
9821 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9822 (m68hc11_gdbarch_init): Install the reggroups.
9823 (_initialize_m68hc11_tdep): Initialize them.
9825 2003-02-21 James E Wilson <wilson@tuliptree.org>
9827 * MAINTAINERS: Update my email address.
9829 2003-02-21 David Carlton <carlton@math.stanford.edu>
9831 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9833 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9835 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9836 * symtab.h: Add opaque declarations of struct axs_value and
9838 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9839 (struct location_funcs): New type.
9840 (struct symbol): Add "loc" to aux_value.
9841 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9842 * dwarf2read.c: Include "dwarf2expr.h".
9843 (dwarf2_symbol_mark_computed): New function.
9844 (read_func_scope): Use it.
9845 (var_decode_location): New function.
9846 (new_symbol): Use it.
9847 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9849 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9850 (dwarf2expr_h, dwarf2loc_h): New variables.
9851 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9852 (dwarf2expr.o, dwarf2loc.o): New rules.
9853 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9854 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9856 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9857 * m2-exp.y (yylex): Likewise.
9858 * printcmd.c (address_info, print_frame_args): Likewise.
9859 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9860 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9861 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9862 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9863 * symtab.c (lookup_block_symbol): Likewise.
9865 2003-02-20 Adam Fedor <fedor@gnu.org>
9867 * symtab.h: Remove objc_specific struct
9868 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9869 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9870 Have language_objc use cplus_specific struct.
9872 2003-02-20 Tom Tromey <tromey@redhat.com>
9874 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9875 TYPE_NAME, when printing a String value. PR java/1075.
9877 2003-02-20 Adam Fedor <fedor@gnu.org>
9879 * objc-lang.h (find_methods): Remove declaration.
9880 * objc-lang.c (find_methods): Make static.
9882 2003-02-20 Christopher Faylor <cgf@redhat.com>
9884 * win32-nat.c (get_image_name): Check return value from
9886 (child_xfer_memory): Ditto.
9888 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9890 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9891 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9892 '${exec_prefix}' (in addition to the expansion thereof) as
9894 * configure: Rebuilt.
9896 2003-02-20 David Carlton <carlton@math.stanford.edu>
9898 * symtab.c (search_symbols): Revert the search_symbols part of my
9899 2002-12-23 patch. Add comment.
9901 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9903 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9904 * dbxread.c (elfstab_build_psymtabs): Don't call
9905 install_minimal_symbols.
9906 (stabsect_build_psymtabs): Likewise.
9907 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9909 * somread.c (som_symfile_read): Call install_minimal_symbols
9910 and do_cleanups earlier.
9911 * nlmread.c (nlm_symfile_read): Likewise.
9912 * mdebugread.c (elfmdebug_build_psymtabs): Call
9913 install_minimal_symbols and make appropriate cleanups.
9915 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9917 * solib.c (reload_shared_libraries): New function.
9918 (_initialize_solib): Add callbacks for ``set solib-search-path''
9919 and ``set solib-absolute-prefix''.
9921 2003-02-20 David Carlton <carlton@math.stanford.edu>
9923 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9925 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9926 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9927 * ada-typeprint.c (ada_typedef_print): Ditto.
9928 * ax-gdb.c (gen_var_ref): Ditto.
9929 * breakpoint.c (print_one_breakpoint): Ditto.
9930 * buildsym.c (finish_block): Ditto.
9931 * c-valprint.c (c_val_print): Ditto.
9932 * expprint.c (print_subexp): Ditto.
9933 * findvar.c (locate_var_value): Ditto.
9934 * infcmd.c (jump_command): Ditto.
9935 * linespec.c (decode_line_2, decode_compound): Ditto.
9936 * maint.c (maintenance_translate_address): Ditto.
9937 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9938 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9940 * p-valprint.c (pascal_val_print): Ditto.
9941 * stabsread.c (define_symbol): Ditto.
9942 * stack.c (print_frame, frame_info, print_block_frame_locals)
9943 (print_frame_arg_vars, return_command): Ditto.
9944 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9945 * symmisc.c (print_symbol): Ditto.
9946 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9947 (compare_search_syms, print_symbol_info, print_msymbol_info)
9948 (rbreak_command): Ditto.
9949 * tracepoint.c (tracepoints_info): Ditto.
9950 * typeprint.c (typedef_print): Ditto.
9951 * valops.c (value_of_variable, hand_function_call): Ditto.
9952 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9953 * ada-typeprint.c: Update Copyright.
9954 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9955 * tracepoint.c, cli/cli-cmds.c: Ditto.
9957 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9959 * frame.c (generic_unwind_get_saved_register): Make non-static.
9960 * frame.h (generic_unwind_get_saved_register): Declare.
9961 * mips-tdep.c (read_next_frame_reg): Fetch register from
9962 current regcache when frame is NULL.
9963 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9965 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9966 instead of frame_register_unwind().
9968 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9970 * remote-sim.c (gdbsim_insert_breakpoint)
9971 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9974 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9976 * remote.c (_initialize_remote): Add commands "set/show remote
9977 hardware-watchpoint-limit" and "set/show remote
9978 hardware-breakpoint-limit".
9979 (remote_hw_watchpoint_limit): Initialize to -1.
9980 (remote_hw_breakpoint_limit): Ditto.
9981 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9983 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9985 * coff-pe-read.c: New file - support reading of minimal symbols from a
9986 portable executable using the export table.
9987 * coff-pe-read.h: New file.
9988 * coffread.c: Include coff-pe-read.h.
9989 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9990 debugging symbols found.
9991 * Makefile.in (SFILES): Add coff-pe-read.o.
9992 (coff_pe_read_h): Define.
9993 (COMMON_OBS): Add coff-pe-read.o.
9994 (coffread.o): Add coff_pe_read_h dependency.
9995 (coff-pe-read.o): New target.
9997 2003-02-19 David Carlton <carlton@math.stanford.edu>
9999 * Makefile.in (SFILES): Add block.c.
10001 (COMMON_OBS): Add block.o.
10003 (x86-64-tdep.o): Add $(block_h).
10004 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10005 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10006 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10007 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10008 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10009 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10010 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10011 * value.h: Add opaque declaration for struct block.
10012 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10013 * ada-lang.h: Ditto.
10014 * x86-64-tdep.c: #include "block.h"
10015 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10016 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10017 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10018 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10019 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10020 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10021 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10022 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10023 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10024 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10025 * symtab.c (block_function): Ditto.
10026 (contained_in): Ditto.
10027 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10028 block.h. Add opaque declaration for struct block.
10029 * symtab.h: Move block_function and contained_in declarations to
10030 block.h. Add opaque declarations for struct block, struct
10032 (struct block): Move to block.h.
10033 (struct blockvector): Ditto.
10034 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10035 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10036 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10037 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10038 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10040 * block.c: New file.
10041 * block.h: New file.
10043 2003-02-19 Theodore A. Roth <troth@openavr.org>
10045 * avr-tdep.c (avr_extract_return_value): Remove function.
10046 (avr_store_return_value): Remove function.
10047 (avr_extract_struct_value_address): Remove function.
10048 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10050 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10052 * rs6000-tdep.c: Include "gdb_assert.h".
10053 (registers_e500): Add "acc" and "spefscr".
10054 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10055 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10056 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10058 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10060 2003-02-18 Keith Seitz <keiths@redhat.com>
10062 * Makefile.in: Add gdbtk-interps.c.
10064 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10066 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10067 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10069 2003-02-18 Andrew Cagney <cagney@redhat.com>
10071 * symtab.h (struct objfile): Add opaque declaration.
10073 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10075 From Jim Ingham <jingham@apple.com>:
10076 * dbxread.c (process_one_symbol): Use last_function_start rather
10077 than function_start_offset to find the real beginning of the
10078 current function. The latter is just the text section offset on
10079 some systems, the former is always the real function start.
10081 2003-02-17 Andrew Cagney <cagney@redhat.com>
10083 * configure.in: Revert ${target} != ${host}.
10085 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10087 * configure.in (Makefile): Use the test ${target} != ${host},
10088 instead of the absence of the "nm.h" file, to determine of the
10089 configuration non-native.
10090 * configure: Regenerate.
10092 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10094 From Brian Ford <ford@vss.fsi.com>
10096 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10097 conditionalize tui_active test.
10098 (lookup_cmd_1): Ditto.
10100 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10102 * configure.in: Add check for _etext.
10103 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10105 * config.in, configure: regenerated.
10107 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10109 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10111 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10113 * main.c (tui_version): Delete variable.
10114 (captured_main): When --tui, set interpreter_p to "tui" instead of
10115 enabling tui_version.
10116 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10118 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10119 * cli/cli-cmds.c (disassemble_command): Ditto.
10120 * defs.h (tui_version): Delete declaration.
10121 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10122 (tui-interp.o): Add rules.
10123 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10125 2003-02-14 Christopher Faylor <cgf@redhat.com>
10127 * win32-nat.c (register_loaded_dll): Correctly set address range for
10130 2003-02-12 Jason Molenda (jmolenda@apple.com)
10132 * symmisc.c (print_objfile_statistics): Include information about
10133 the number of psymtabs and symtabs in each object file.
10135 2003-02-13 Keith R Seitz <keiths@redhat.com>
10137 * main.h (struct captured_main_args): Add interpreter_p.
10138 * main.c (captured_main): Initialize interpreter_p from context.
10139 * gdb.c (main): Set interpreter_p argument.
10140 * Makefile.in (gdb.o): Add dependency for interps.h.
10142 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10144 * event-top.c (cli_command_loop): Delete declaration.
10145 (_initialize_event_loop): Delete function setting event_loop_hook.
10146 * event-top.h (cli_command_loop): Declare. Update copyright.
10147 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10148 * interps.c (current_interp_command_loop): When event_loop_p, call
10151 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10153 * interps.h (interp_command_loop_ftype): Change return type to
10156 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10158 * x86-64-tdep.c (x86_64_extract_return_value)
10159 (x86_64_store_return_value): Use regcache instead of regbuf.
10160 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10161 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10163 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10165 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10166 * aclocal.m4: Regenerate.
10167 * configure: Regenerate.
10169 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10170 TCL_LD_SEARCH_FLAGS.
10172 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10174 * dwarf2cfi.c: Reindented.
10176 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10178 * interps.c (clear_interpreter_hooks): Convert function definition
10181 2003-02-07 David Carlton <carlton@math.stanford.edu>
10183 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10185 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10187 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10188 (struct type): ...to here.
10189 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10191 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10192 (replace_type): Set length on all type variants for a given type.
10194 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10196 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10198 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10200 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10202 * Makefile.in (symm-nat.o): Update dependencies.
10203 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10204 (lynx-nat.o, ia64-linux-nat.): Ditto.
10205 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10206 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10207 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10209 * Makefile.in (inflow_h): Define.
10210 (procfs.o, inflow.o, procfs.o): Update dependencies.
10211 * inftarg.c (child_stop): Delete extern declaration of
10212 inferior_process_group. Include "inflow.h".
10213 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10214 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10215 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10216 (our_process_group, inferior_process_group): Extern declarations.
10218 * procfs.c: Include "gdb_assert.h".
10220 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10221 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10222 * jv-typeprint.c (java_type_print_base): Ditto.
10223 * typeprint.c (typedef_print): Eliminate STREQ.
10224 * cli/cli-script.c (define_command, define_command): Ditto.
10225 * main.c (captured_main): Ditto.
10226 * values.c (lookup_internalvar): Ditto.
10227 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10228 within `if' conditional.
10229 * linespec.c (decode_line_2): Ditto.
10230 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10231 (bfd_openw_with_cleanup): Ditto.
10233 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10235 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10236 legacy_extract_return_value and store_return_value to
10237 legacy_return_value.
10239 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10241 * win32-nat.c (get_relocated_section_addrs): New function. Find
10242 section load addresses for symbol handling in relocated DLLs.
10243 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10245 2003-02-05 Fred Fish <fnf@intrinsity.com>
10247 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10249 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10251 (angel_RDI_info): Ditto.
10252 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10254 (threads_continue_all_with_signals): Ditto.
10256 2003-02-05 Jim Ingham <jingham@apple.com>
10257 Keith Seitz <keiths@redhat.com>
10258 Elena Zannoni <ezannoni@redhat.com>
10259 Andrew Cagney <ac131313@redhat.com>
10261 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10262 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10263 (SUBDIR_MI_OBS): Add "mi-interp.o".
10264 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10265 (SFILES): Add "interps.c".
10266 (COMMON_OBS): Add "interps.o".
10267 (interps_h, mi_main_h): Define.
10268 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10269 (mi-main.o, main.o, event-top.o): Update dependencies.
10270 * cli/cli-interp.c: New file.
10271 * interps.h, interps.c: New files.
10272 * top.c: (gdb_init): Don't install the default interpreter, handed
10274 * main.c: Include "interps.h".
10275 (interpreter_p): Note that it should malloc'ed.
10276 (captured_command_loop): Call current_interp_command_loop.
10277 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10278 xfree and xstrdup when updating interpreter_p. Install the
10279 default interpreter. Add hack to stop mi1's copyright notice
10281 * event-top.h (gdb_setup_readline): Declare.
10282 (gdb_disable_readline): Declare.
10283 * event-top.c: Include "interps.h".
10284 (display_gdb_prompt): Call current_interp_display_prompt_p.
10285 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10286 gdb_stdlog, and gdb_stdtarg.
10287 (_initialize_event_loop): Don't call gdb_setup_readline.
10288 * cli-out.c (cli_out_set_stream): New function.
10289 * cli-out.h (cli_out_set_stream): Declare.
10291 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10293 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10294 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10295 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10296 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10297 config/i386/i386v42mp.mt: Removed.
10299 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10301 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10304 2003-02-05 Michael Chastain <mec@shout.net>
10306 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10307 2.12.1 and earlier versions.
10309 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10311 Remove orphaned hosts, targets and files.
10312 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10313 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10314 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10315 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10316 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10317 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10318 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10319 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10320 * config/sparc/tm-sp64sim.h: Delete.
10321 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10323 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10324 mips*-dec-mach3* targets.
10326 2003-02-04 Michael Chastain <mec@shout.net>
10328 * NEWS: Fix typo: sepcifying -> specifying.
10330 2003-02-04 Michael Chastain <mec@shout.net>
10332 * dwarfread.c: Add documentation on the state of dwarf-1,
10333 looking towards obsoletion.
10335 2003-02-03 Michael Chastain <mec@shout.net>
10337 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10338 gdb/testsuite/gdb.c++/pr-1023.exp.
10340 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10342 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10343 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10345 * utils.c (init_page_info): Delete reference to MPW in comments.
10346 * main.c (captured_main): Delete #ifdef MPW.
10348 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10350 * NEWS: Note that the m32r-*-elf* is obsolete.
10351 * monitor.c (monitor_expect): Obsolete reference to m32r.
10352 * configure.tgt: Mark m32r-*-elf* as obsolete.
10353 * MAINTAINERS: Mark m32k as obsolete.
10354 * m32r-rom.c: Obsolete file.
10355 * config/m32r/m32r.mt: Obsolete file.
10356 * config/m32r/tm-m32r.h: Obsolete file.
10357 * m32r-stub.c: Obsolete file.
10358 * m32r-tdep.c: Obsolete file.
10360 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10362 * NEWS: Mention that the z8k-zilog-none is obsolete.
10363 * MAINTAINERS: Mark z8k as obsolete.
10364 * configure.tgt: Obsolete the z8k-*-coff* target.
10365 * config/z8k/z8k.mt: Obsolete file.
10366 * config/z8k/tm-z8k.h: Obsolete file.
10367 * z8k-tdep.c: Obsolete file.
10369 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10371 * NEWS: Mention that the mn10200-elf is obsolete.
10372 * configure.tgt: Obsolete mn10200-*-* target.
10373 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10374 mention that the mn10200 is obsolete.
10375 * breakpoint.h: Ditto.
10376 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10377 * config/mn10200/mn10200.mt: Obsolete file.
10378 * config/mn10200/tm-mn10200.h: Obsolete file.
10379 * mn10200-tdep.c: Obsolete file.
10381 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10383 * MAINTAINERS: Mark h8500 as obsolete.
10384 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10385 * findvar.c (value_from_register): Ditto.
10386 * h8500-tdep.c: Mark file as obsolete.
10387 * config/h8500/h8500.mt: Ditto.
10388 * config/h8500/tm-h8500.h: Ditto.
10389 * NEWS: Mention that h8500 is obsolete.
10391 2003-02-04 David Carlton <carlton@math.stanford.edu>
10393 * objfiles.c (allocate_objfile): Always set name. Add comment at
10395 * jv-lang.c (get_dynamics_objfile): Add comment.
10397 2003-02-04 David Carlton <carlton@math.stanford.edu>
10399 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10400 * printcmd.c (build_address_symbolic): Replace uses of
10401 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10402 SYMBOL_NAME, and asm_demangle.
10405 2003-02-04 David Carlton <carlton@math.stanford.edu>
10407 * linespec.c (decode_compound): Extract code into
10409 (lookup_prefix_sym): New function.
10411 2003-02-04 David Carlton <carlton@math.stanford.edu>
10413 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10414 FLOAT_COERCION_BADNESS.
10415 * gdbtypes.c (rank_one_type): Replace all uses of
10416 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10418 2003-02-04 Jim Blandy <jimb@redhat.com>
10420 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10421 section, let dwarf_macinfo_section point to it, not
10424 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10426 Pointed out by Anton Blanchard <anton@samba.org>.
10427 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10428 (ppc_linux_at_sigtramp_return_path): Use it.
10430 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10432 * defs.h (streq): Add prototype.
10433 * utils.c (streq): New function.
10435 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10436 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10437 * mdebugread.c (new_symbol): Likewise.
10438 * stabsread.c (define_symbol): Likewise.
10439 * coffread.c (process_coff_symbol): Likewise.
10440 * dwarfread.c (new_symbol): Likewise.
10442 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10443 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10445 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10446 SYMBOL_INIT_DEMANGLED_NAME.
10447 * objfiles.c: Include "hashtab.h".
10448 (allocate_objfile): Call htab_set_functions_ex for the
10449 demangled_names_hash.
10450 (free_objfile): Call htab_delete for the demangled_names_hash.
10451 * objfiles.h (struct htab): Add declaration.
10452 (struct objfile): Add demangled_names_hash.
10453 * symfile.c: Include "hashtab.h".
10454 (reread_symbols): Call htab_delete for the demangled_names_hash.
10455 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10456 SYMBOL_NAME in the bcache.
10457 * symtab.c: Include "hashtab.h". Update comments.
10458 (create_demangled_names_hash, symbol_set_names): New functions.
10459 (symbol_find_demangled_name): New function, broken out from
10460 symbol_init_demangled_names.
10461 (symbol_init_demangled_names): Use it.
10462 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10463 (SYMBOL_SET_NAMES): New macro.
10464 (symbol_set_names): Add prototype.
10466 2003-02-03 Jim Blandy <jimb@redhat.com>
10468 Use a single, consistent representation for an empty minimal
10469 symbol table in an objfile.
10470 * objfiles.c (terminate_minimal_symbol_table): New function.
10471 (allocate_objfile): Call it.
10472 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10473 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10475 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10476 objfile has minimal symbols, compare minimal_symbol_count to zero,
10477 instead of comparing msymbols with NULL.
10478 * objfiles.c (have_minimal_symbols): Same.
10479 * solib-sunos.c (solib_add_common_symbols): Call
10480 terminate_minimal_symbol_table.
10481 * symfile.c (reread_symbols): Same.
10483 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10485 * s390-tdep.c (s390_address_class_type_flags)
10486 (s390_address_class_type_flags_to_name)
10487 (s390_address_class_name_to_type_flags): New functions.
10488 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10489 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10491 2003-02-03 Michael Snyder <msnyder@redhat.com>
10493 * arm-tdep.c: Fix spell-o in comment.
10495 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10497 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10498 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10499 error messages to contain BFD filename.
10501 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10503 Fix PR gdb/742 gdb/743 gdb/877
10504 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10505 (do_mixed_source_and_assembly): Use
10506 make_cleanup_ui_out_tuple_begin_end and
10507 make_cleanup_ui_out_tuple_begin_end.
10508 (do_mixed_source_and_assembly): Ditto.
10509 * thread.c (do_captured_list_thread_ids): Ditto.
10510 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10511 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10512 ui_out_tuple_end): Delete prototypes.
10513 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10514 ui_out_list_end, ui_out_tuple_end): Delete.
10516 From Kevin Buettner <kevinb@redhat.com>:
10517 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10518 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10519 (do_cleanup_table_end): New functions.
10520 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10521 Use cleanups to invoke_ui_out_tuple_end().
10522 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10523 * cli/cli-setshow.c (cmd_show_list): Use
10524 make_cleanup_ui_out_tuple_begin_end.
10526 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10528 * frame.c (frame_unwind_register): New function.
10529 (frame_unwind_unsigned_register): Use.
10530 (frame_unwind_signed_register): Use.
10531 (frame_read_register): New function.
10532 * frame.h (frame_unwind_register): Declare.
10533 (frame_read_register): Declare.
10535 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10536 and frame_unwind_register instead of read_memory, write_register
10537 and deprecated_write_register_bytes.
10539 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10541 * frame.h: Note that namelen can be negative.
10542 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10545 * NEWS: Mention that the d10v's `regs' command is deprecated.
10546 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10547 (d10v_print_registers_info): New function.
10548 (show_regs): Call d10v_print_registers_info.
10549 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10551 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10553 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10554 lost in the previous patch.
10556 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10558 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10559 * stack.c (print_frame_info_base): Output complete FRAME tuple
10560 for synthesized frames.
10562 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10564 * mips-nat.c (zerobuf): Delete.
10565 (fetch_inferior_registers): Alloc local zerobuf.
10566 (fetch_core_registers): Alloc local zerobuf.
10567 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10568 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10569 * thread-db.c (thread_db_store_registers): Ditto.
10570 * sh-tdep.c (sh_do_register): Ditto.
10571 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10572 * remote-sim.c (gdbsim_store_register): Ditto.
10573 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10574 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10575 * monitor.c (monitor_supply_register): Ditto.
10576 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10577 * mips-nat.c (fetch_inferior_registers): Ditto.
10578 * m68klinux-nat.c (fetch_register): Ditto.
10579 * lynx-nat.c (fetch_inferior_registers): Ditto.
10580 (fetch_inferior_registers): Ditto.
10581 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10582 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10583 (hpux_thread_store_registers): Ditto.
10584 * hppah-nat.c (fetch_register): Ditto.
10585 * hppab-nat.c (fetch_register): Ditto.
10586 * hppa-tdep.c (pa_register_look_aside): Ditto.
10587 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10588 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10590 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10592 * gdbarch.sh: Explictly specify all method levels. When a
10593 variable with an empty level, provide a non-multi-arch default.
10594 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10595 * gdbarch.h: Re-generate.
10596 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10597 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10599 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10601 * defs.h (host_pointer_to_address): Delete declaration.
10602 (address_to_host_pointer): Delete declaration.
10603 * utils.c (host_pointer_to_address): Delete function.
10604 (address_to_host_pointer): Delete function.
10605 * procfs.c (procfs_address_to_host_pointer): New function.
10606 * procfs.c (proc_set_watchpoint): Use.
10607 (procfs_can_use_hw_breakpoint): Update comments.
10608 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10609 (som_solib_add): Use.
10610 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10611 * hppa-tdep.c (unwind_command): Use.
10613 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10615 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10618 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10619 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10620 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10621 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10622 (define_symbol): Update.
10623 * symfile.c (generic_load): Remove references to nindy.
10624 * symtab.c: Remove references to nindy.
10626 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10628 * infcmd.c (print_float_info): Delete code conditional on
10630 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10631 * config/m68k/nm-apollo68b.h: Ditto.
10632 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10633 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10634 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10636 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10638 * config/i386/tm-i386os9k.h: Removed.
10640 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10641 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10642 they're identical to i[3456]86-*-sysv* now.
10643 * config/i386/i386v32.mh: Removed.
10644 * config/i386/xm-i386v32.h: Removed.
10645 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10647 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10649 * config/i386/i386dgux.mh: Removed.
10650 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10652 * configure.in: Fix typo.
10653 * configure: Regenerated.
10655 2003-01-31 David Carlton <carlton@math.stanford.edu>
10657 * dwarf2read.c (dwarf2_locate_sections): Set
10658 dwarf_ranges_section.
10660 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10662 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10663 * utils.c: Update comments documenting legitimate uses of PTR.
10665 * utils.c: Re-indent.
10667 * config/djgpp/fnchange.lst: Delete nindy files.
10668 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10669 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10670 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10671 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10672 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10673 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10674 * Makefile.in (init.c): Remove nindy references.
10675 (saber_gdb): Delete rule.
10676 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10677 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10679 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10680 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10681 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10682 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10683 nindy-share/stop.h.
10684 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10685 * saber.suppress: Delete file.
10687 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10689 * dbxread.c (stabs_data): New static variable.
10690 (fill_symbuf): Support an in-memory buffer for stabs data.
10691 (stabs_seek): New function.
10692 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10693 (read_ofile_symtab): Use stabs_seek.
10694 (elfstab_build_psymtabs): Take an asection* instead of
10695 an offset and size. Relocate the stabs data if necessary.
10696 Save the section* for dbx_psymtab_to_symtab.
10697 * dwarf2read.c: Add section variables for each debug section.
10698 (dwarf2_locate_sections): Fill them in.
10699 (dwarf2_read_section): Take an asection* argument.
10700 Relocate the section contents if necessary.
10701 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10702 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10703 it to dwarf2_read_section.
10704 (dwarf2_build_frame_info): Update callers.
10705 * elfread.c (elf_symfile_read): Update call to
10706 elfstab_build_psymtabs.
10707 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10708 (DBX_STAB_SECTION): New macro.
10709 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10710 * symfile.c (symfile_dummy_outputs): New function.
10711 (symfile_relocate_debug_section): New function.
10712 * symfile.h (symfile_relocate_debug_section): Add prototype.
10714 2003-01-31 Richard Henderson <rth@redhat.com>
10716 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10717 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10718 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10719 * alpha-tdep.c (alpha_register_name): Add "unique".
10720 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10721 (ALPHA_UNIQUE_REGNUM): New.
10722 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10724 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10726 * README: Remove reference to Ericsson 1800 monitor.
10727 * Makefile.in (remote-es.o): Delete rule.
10728 (ALLDEPFILES): Delete remote-es.c.
10729 * remote-es.c: Delete file.
10730 * config/m68k/es1800.mt: Delete file.
10731 * config/djgpp/fnchange.lst: Update.
10732 * configure.tgt: Delete m68*-ericsson-* target.
10734 2003-01-31 Adam Fedor <fedor@gnu.org>
10736 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10737 Remove duplicate/shadowing variable of same name.
10739 2003-01-30 Jim Blandy <jimb@redhat.com>
10741 * symfile.c (find_separate_debug_file): Assert that the objfile's
10742 directory name we compute ends with a slash, and then assume that
10743 that's so everywhere we use it.
10745 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10747 * valops.c (value_assign): Flush frame cache after stores to memory
10750 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10752 * Makefile.in (mon960-rom.o): Delete rule.
10753 * mon960-rom.c: Delete file.
10755 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10757 * d10v-tdep.c: Include "frame-unwind.h".
10758 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10760 (next_addr, uses_frame): Delete.
10761 (struct d10v_unwind_cache): Define.
10762 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10763 Use info instead of next_addr and uses_frame globals.
10764 (d10v_frame_init_saved_regs): Delete function.
10765 (d10v_init_extra_frame_info): Delete function.
10766 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10767 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10768 init_frame_pc or frame_saved_pc.
10769 (d10v_pop_frame): Delete function.
10770 (do_d10v_pop_frame): Delete function.
10771 (d10v_frame_chain): Delete function.
10772 (d10v_frame_chain_valid): Delete function.
10773 (d10v_frame_pc_unwind): New function.
10774 (d10v_frame_id_unwind): New function.
10775 (saved_regs_unwinder): New function.
10776 (d10v_frame_register_unwind): New function.
10777 (d10v_frame_pop): New function.
10778 (d10v_frame_unwind): New variable.
10779 (d10v_frame_p): New function.
10780 (d10v_frame_saved_pc): Delete function.
10781 * Makefile.in (d10v-tdep.o): Update dependencies.
10783 2003-01-30 J. Brobecker <brobecker@gnat.com>
10785 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10786 causing some regressions due to a change in the default value
10789 2003-01-29 Richard Henderson <rth@redhat.com>
10790 Elena Zannoni <ezannoni@redhat.com>
10791 Daniel Jacobowitz <drow@mvista.com>
10794 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10796 (RANGES_SECTION): New.
10797 (dwarf_ranges_buffer): New variable.
10798 (struct comp_unit_head): Add member "die".
10799 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10800 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10801 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10802 (dwarf2_locate_sections): Likewise.
10803 (dwarf2_build_psymtabs): Read .debug_ranges.
10804 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10805 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10806 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10807 Look for DW_AT_ranges and return the bounding box.
10809 2003-01-29 Brian Ford <ford@vss.fsi.com>
10811 * win32-nat.c (cygwin_pid): Removed as unused.
10812 (child_attach): Try fall back to Cygwin pid.
10814 2003-01-29 Jim Blandy <jimb@redhat.com>
10816 * objfiles.h (struct objfile): Doc fix.
10818 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10820 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10821 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10822 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10823 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10824 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10825 (FRAME_SAVED_PC): Change to a function with predicate.
10826 * gdbarch.h, gdbarch.c: Re-generate.
10828 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10830 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10832 * complaints.c (complain): Delete function.
10833 * complaints.h (struct deprecated_complaint): Delete definition.
10834 (complain): Delete declaration.
10836 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10838 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10841 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10843 * sentinel-frame.h, sentinel-frame.c: New files.
10844 * Makefile.in (frame.o): Update dependencies.
10845 (SFILES): Add sentinel-frame.c.
10846 (sentinel_frame_h): Define.
10847 (COMMON_OBS): Add sentinel-frame.o.
10848 (sentinel-frame.o): Specify dependencies.
10849 * frame.c: Include "sentinel-frame.h".
10850 (frame_register_unwind): Rewrite assuming that there is always a a
10852 (frame_register, generic_unwind_get_saved_register): Ditto.
10853 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10854 (create_sentinel_frame, unwind_to_current_frame): New functions.
10855 (get_current_frame): Rewrite using create_sentinel_frame and
10856 unwind_to_current_frame. When possible, always create a frame.
10857 (create_new_frame): Set next to the sentinel frame.
10858 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10859 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10860 ID cache when necessary.
10861 (frame_saved_regs_id_unwind): Use frame_relative_level.
10862 (deprecated_generic_get_saved_register): Use frame_relative_level,
10863 get_frame_saved_regs, get_frame_pc, get_frame_base and
10865 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10868 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10870 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10872 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10874 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10875 (maintenance_set_profile_cmd): Use error () instead of warning ().
10877 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10879 * configure.in: Check that -pg works if using --enable-profiling.
10880 Check for monstartup and _mcleanup regardless of --enable-profiling.
10881 * maint.c: Check for monstartup and _mcleanup before using them.
10882 * config.in: Regenerated.
10883 * configure: Regenerated.
10885 2003-01-24 Nick Clifton <nickc@redhat.com>
10887 * Add sh2e support:
10889 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10891 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10892 (sh2e_show_regs): New.
10893 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10894 * config/sh/tm-sh.h: Added sh2e to comments.
10896 2003-01-23 Jim Blandy <jimb@redhat.com>
10898 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10899 symbols found)" message here; we haven't checked for a separate
10900 debug info file yet, so we don't know yet.
10901 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10902 we've looked everywhere. Also, there's no need to print a special
10903 message when we're loading the separate debug info file: the one
10904 symbol_file_add prints is fine.
10906 2003-01-23 Alexander Larsson <alexl@redhat.com>
10907 Jim Blandy <jimb@redhat.com>
10909 Add support for executables whose debug info has been separated
10910 out into a separate file, leaving only a link behind.
10911 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10912 and separate_debug_objfile_backlink.
10913 (put_objfile_before): New declaration.
10914 * symfile.c: #include "filenames.h".
10915 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10916 debug info in a separate file, read that, too. Save the addrs
10917 argument, so we can use it again to read the separated debug info;
10918 syms_from_objfile modifies the table we pass it.
10919 (reread_symbols): After re-reading an objfile, call
10920 reread_separate_symbols to refresh its separate debug info
10921 objfile, if it has one.
10922 (reread_separate_symbols, find_separate_debug_file,
10923 get_debug_link_info, separate_debug_file_exists): New functions.
10924 (debug_file_directory): New global var.
10925 (_initialize_symfile): Initialize debug_file_directory, and
10926 provide the new `set debug-file-directory' command to let the user
10928 * objfiles.c (free_objfile): If this objfile has its debug info in
10929 a separate objfile, free that one too. If this is itself a
10930 separate debug info objfile, clear our parent's backlink.
10931 (put_objfile_before): New function.
10932 * utils.c (gnu_debuglink_crc32): New function.
10933 * defs.h (gnu_debuglink_crc32): New declaration.
10934 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10935 * configure.in: Handle --with-separate-debug-dir config option.
10936 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10937 * acconfig.h (DEBUGDIR): New macro.
10938 * configure, aclocal.m4, config.in: Regenerated.
10940 2003-01-22 Jim Blandy <jimb@redhat.com>
10942 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10943 like the old symbol_file_add, but taking new arguments: you can
10944 now pass in either a `struct section_addr_info' list to say where
10945 each section is loaded, or a `struct section_offsets' table. Pass
10946 these new arguments through to syms_from_objfile as appropriate.
10947 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10948 with the appropriate quiescent values for the new arguments.
10950 * symfile.c: #include "gdb_assert.h".
10951 (syms_from_objfile): Add the ability to pass in a section offset
10952 table directly, as an alternative to the section_addr_info table.
10953 Document arguments better.
10954 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10955 * symfile.h (syms_from_objfile): Update declaration.
10956 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10958 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10960 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10962 Original patch by Tom Tromey <tromey@cygnus.com> and
10963 Jason Molenda <jmolenda@apple.com>.
10964 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10965 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10966 * NEWS: Mention profiling.
10967 * configure.in (--enable-gdbtk): Fix typo.
10968 (--enable-profiling): New. Set PROFILE_CFLAGS.
10969 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10971 (profiling_state): New variable.
10972 (mcleanup_wrapper): New function.
10973 (_initialize_maint): Remove NOTYET, fix call to
10974 add_setshow_boolean_cmd for "maint set profile".
10975 * configure: Regenerated.
10977 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10979 * Makefile.in (install-gdbtk): Install PNG images too.
10981 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10983 * exec.c (text_start): Delete global variable.
10984 (exec_file_attach): Make text_start local to the function.
10985 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10986 * valops.c (hand_function_call): Delete code that handles
10987 BEFORE_TEXT_END and AFTER_TEXT_END.
10988 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10989 of CALL_DUMMY_LOCATION.
10990 * gdbarch.c: Regenerate.
10991 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10992 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10993 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10994 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10995 (text_end): Delete extern declaration.
10997 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10999 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11000 * blockframe.c (backtrace_below_main): Move to "frame.c".
11001 (frame_chain_valid): Delete check for backtrace_below_main.
11002 (_initialize_blockframe): Delete initialization, move ``set
11003 backtrace-below-main'' command to "frame.c".
11004 (do_flush_frames_sfunc): Delete function.
11005 * frame.c: Include "command.h" and "gdbcmd.h".
11006 (frame_type_from_pc): New function.
11007 (create_new_frame): Use frame_type_from_pc.
11008 (legacy_get_prev_frame): New function.
11009 (get_prev_frame): Rewrite. When an old style frame, call
11010 legacy_get_prev_frame. Otherwize, unwind the PC first.
11011 (_initialize_frame): Add ``set backtrace-below-main'' command.
11012 * Makefile.in (frame.o): Update dependencies.
11014 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11016 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11017 DEPRECATED_REGISTERS_INFO.
11019 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11021 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11022 Maintainers'. Update `Various Maintainers'.
11024 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11026 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11027 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11028 Suppress actual parameters when `-'.
11029 * gdbarch.h, gdbarch.c: Regenerate.
11031 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11033 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11034 code handling dummy frames.
11036 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11038 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11039 (struct frame_unwind): Add field pop.
11040 * frame.h (frame_pop): Declare.
11041 * frame.c (frame_saved_regs_pop): New function.
11042 (trad_frame_unwinder): Add frame_saved_regs_pop.
11043 (frame_pop): New function.
11044 * dummy-frame.c (dummy_frame_pop): New function.
11045 (discard_innermost_dummy): New function.
11046 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11047 (dummy_frame_unwind): Add dummy_frame_pop.
11048 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11049 * valops.c (hand_function_call): Ditto.
11050 * stack.c (return_command): Ditto.
11052 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11054 * cris-tdep.c: Fix function declaration indentation.
11055 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11056 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11057 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11058 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11059 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11060 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11062 2003-01-18 Michael Chastain <mec@shout.net>
11064 * README (Unpacking and Installation -- quick overview):
11065 Warn against ".../gdb-5.3/gdb/configure".
11067 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11069 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11070 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11071 (struct frame_unwind): Declare opaque.
11072 (dummy_frame_p): Declare function.
11073 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11074 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11075 * dummy-frame.c: Include "frame-unwind.h".
11076 (dummy_frame_p): New function.
11077 (dummy_frame_unwind): New variable.
11078 * frame.c: Include "frame-unwind.h".
11079 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11080 to use the new unwind field.
11081 (set_unwind_by_pc): Delete function.
11082 (create_new_frame, get_prev_frame): Set unwind field using
11083 frame_unwind_find_by_pc.
11084 (trad_frame_unwind, trad_frame_unwinder): New variables.
11085 * frame.h (trad_frame_unwind): Declare variable.
11086 (frame_id_unwind_ftype): Delete declaration.
11087 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11088 (struct frame_unwind): Declare opaque.
11089 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11090 register_unwind with a single unwind pointer.
11091 * frame-unwind.h, frame-unwind.c: New files.
11092 * Makefile.in (SFILES): Add frame-unwind.c.
11093 (frame_unwind_h): Define.
11094 (COMMON_OBS): Add frame-unwind.o.
11095 (frame-unwind.o): Specify dependencies.
11096 (frame.o, dummy-frame.o): Update dependencies.
11098 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11100 * ada-valprint.c: Eliminate PTR.
11101 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11102 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11103 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11104 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11105 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11106 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11107 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11109 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11111 * main.c (captured_main): Don't use PTR.
11112 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11113 * gdbtypes.c (lookup_primitive_typename): Ditto.
11114 (lookup_struct_elt_type): Ditto.
11115 * f-valprint.c (info_common_command): Ditto.
11116 (list_all_visible_commons): Ditto.
11117 * jv-typeprint.c (java_type_print_base): Ditto.
11119 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11120 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11121 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11122 i386-interix-nat.c and i386-interix-tdep.c. Rename
11123 m68klinux-nat.c and m68klinux-tdep.c. Rename
11124 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11125 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11126 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11127 * main.c (captured_main): Use xfree, not free.
11129 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11131 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11132 ID back using a parameter.
11133 * frame.c (frame_id_unwind): Update call.
11134 (frame_saved_regs_id_unwind): Update.
11135 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11136 * dummy-frame.h (struct frame_id): Add opaque declaration.
11137 (dummy_frame_id_unwind): Update declaration.
11139 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11141 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11143 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11145 * MAINTAINERS (Stephen P. Smith): Updated email address.
11147 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11150 * breakpoint.c (until_break_command): Add new argument. Use it to
11151 decide whether to stop only at the current frame or not.
11152 * breakpoint.h (until_break_command): Update prototype.
11153 * infcmd.c (until_command): Add new argument to until_break_command
11155 (advance_command): New function.
11156 (_initialize_infcmd): Update help string for 'until' command.
11157 Add new 'advance' command.
11159 2003-01-14 David Carlton <carlton@math.stanford.edu>
11161 * linespec.c (decode_line_1): Normalize comments.
11162 (set_flags): Ditto.
11163 (locate_first_half): Ditto.
11164 (decode_compound): Ditto.
11165 (symtab_from_filename): Ditto.
11166 (decode_all_digits): Ditto.
11167 (decode_dollar): Ditto.
11168 (find_methods): Ditto.
11169 (find_toplevel_char): Ditto.
11171 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11173 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11174 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11175 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11176 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11177 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11178 * language.c, language.h, m32r-tdep.c: Update copyright.
11179 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11180 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11181 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11182 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11183 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11184 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11186 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11188 * stabsread.h (process_later, resolve_cfront_continuation):
11190 Update copyright years.
11191 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11192 Update copyright year.
11193 * dbxread.c(struct cont_elem): Obsolete.
11194 (process_later, process_now): Obsolete functions.
11195 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11196 Update copyright year.
11197 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11198 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11199 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11200 (parse_partial_symbols): Obsolete cfront support.
11202 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11204 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11205 read_cfront_baseclasses, read_cfront_member_functions,
11206 resolve_cfront_continuation,read_cfront_static_fields,
11207 copy_cfront_struct_fields): Obsolete functions.
11208 (define_symbol, read_one_struct_field): Obsolete cfront support.
11209 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11210 Update Copyright year.
11212 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11214 * stack.c (print_frame_info, print_stack_frame_base_stub,
11215 print_stack_frame_base, show_and_print_stack_frame_stub,
11216 show_and_print_stack_frame, print_only_stack_frame_stub,
11217 print_only_stack_frame): Delete functions.
11218 (print_stack_frame_stub): Call print_frame_info instead of
11219 print_frame_info_base.
11220 (print_frame_info_base): Rename to print_frame_info.
11221 (backtrace_command_1): Call print_frame_info, instead of
11222 print_frame_info_base.
11223 (current_frame_command): Call print_stack_frame, instead of
11224 print_only_stack_frame.
11225 (frame_command): Call print_stack_frame, instead of
11226 show_and_print_stack_frame.
11227 (up_command): Ditto.
11228 (down_command): Ditto.
11229 * frame.h (print_only_stack_frame): Delete prototype.
11230 * infrun.c (normal_stop): Call print_stack_frame, instead of
11231 show_and_print_stack_frame.
11232 * thread.c (info_threads_command): Call print_stack_frame, instead
11233 of print_only_stack_frame.
11235 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11237 * README (Graphical interface to GDB): Update URL. Point at
11240 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11243 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11245 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11248 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11250 * thread-db.c (attach_thread): Prototype.
11251 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11252 thread information (ti), and valid flags (th_valid, ti_valid).
11253 (attach_thread): Move target_pid_to_str call to after the thread
11254 is added to GDB's list. Initialize the cache.
11255 (thread_get_info_callback, thread_db_map_id2thr)
11256 (thread_db_get_info): New functions.
11257 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11258 (thread_db_store_registers, thread_db_thread_alive)
11259 (thread_db_get_thread_local_address): Use them.
11260 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11261 of calling error() for threads in unknown state.
11263 (clear_lwpid_callback): New function.
11264 (thread_db_resume): Use it to clear the cache.
11266 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11268 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11269 (resume_callback): Remove dead code.
11271 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11273 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11275 * gdbarch.h, gdbarch.c: Regenerate.
11276 * stack.c (frame_info): Only initialize the saved registers when
11277 FRAME_INIT_SAVED_REGS_P.
11278 * frame.c (frame_saved_regs_register_unwind): Assert
11279 FRAME_INIT_SAVED_REGS_P.
11280 (deprecated_generic_get_saved_register): Ditto.
11282 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11284 * source.c (openp): Squelch warning about "filename".
11286 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11288 * source.c (openp): If the file does not exist don't necessarily
11291 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11294 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11295 (integer_types_same_name_p): New function.
11296 (rank_one_type): Use it.
11297 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11299 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11301 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11303 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11304 * configure.in: Add --with-sysroot.
11305 * configure: Regenerated.
11306 * main.c (gdb_sysroot): New variable.
11307 (captured_main): Initialize gdb_sysroot.
11308 * defs.h (gdb_sysroot): New extern declaration.
11309 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11311 2003-01-12 Michael Chastain <mec@shout.net>
11313 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11315 2003-01-12 Michael Chastain <mec@shout.net>
11317 * top.c (print_gdb_version): Bump copyright year to 2003.
11319 2003-01-12 David Carlton <carlton@bactrian.org>
11321 * linespec.c (symtab_from_filename): Rename variable 's' to
11324 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11326 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11328 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11330 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11332 * d10v-tdep.c: Include "gdb_assert.h".
11333 (d10v_store_return_value): Rewrite to match current interface.
11334 (d10v_extract_struct_value_address): Ditto.
11335 (d10v_extract_return_value): Ditto.
11336 (d10v_gdbarch_init): Set store_restore_value,
11337 extract_struct_value_address and extract_return_value.
11339 2003-01-12 J. Brobecker <brobecker@gnat.com>
11341 * hpread.c (set_namestring): New procedure replacing the
11342 SET_NAMESTRING macro.
11343 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11344 by calls to set_namestring.
11346 2003-01-11 J. Brobecker <brobecker@gnat.com>
11348 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11349 a compilation warning.
11350 (hpread_process_one_debug_symbol): Likewise.
11352 2003-01-10 David Carlton <carlton@math.stanford.edu>
11354 * linespec.c (decode_line_1): Rename variable 's' to
11356 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11357 (decode_dollar): Ditto.
11358 (decode_variable): Ditto.
11359 (symbol_found): Ditto.
11361 2003-01-09 Michael Chastain <mec@shout.net>
11363 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11365 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11367 * win32-nat.c (set_process_privilege): New function.
11368 (child_attach): Call set_process_privilege() to enable the
11369 SE_DEBUG_NAME user privilege if available in process token.
11371 2003-01-10 J. Brobecker <brobecker@gnat.com>
11373 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11374 compilation error in the previous revision.
11376 2003-01-09 David Carlton <carlton@math.stanford.edu>
11378 * linespec.c: Update copyright.
11380 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11382 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11383 than inferior_ptid.
11384 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11386 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11388 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11390 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11391 (frame_saved_regs_zalloc): Update.
11392 (frame_saved_regs_register_unwind): Update.
11393 (create_new_frame): Update.
11394 (get_prev_frame): Update.
11395 (frame_extra_info_zalloc): Update.
11396 (deprecated_get_frame_saved_regs): Update.
11397 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11398 * cris-tdep.c: Update comment.
11400 * somsolib.h: Fix function indentation.
11401 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11402 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11403 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11404 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11405 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11407 * infrun.c (follow_fork): Use ISO C definition.
11408 * expprint.c (print_subexp): Use xfree instead of free.
11409 * charset.c: Include "gdb_string.h" instead of <string.h>.
11410 (register_iconv_charsets): Use ISO C definition.
11411 (host_charset, target_charset): Ditto.
11412 * Makefile.in (charset.o): Update dependencies.
11413 (mi-cmd-env.o): Update dependencies.
11415 2003-01-08 Andrew Cagney <cagney@redhat.com>
11417 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11420 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11422 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11423 build directories. Save edited gdb output in Mbuild.log. If a
11424 build fails, remove any final GDB executable.
11426 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11428 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11429 replacing hex constants with function names and stripping leading
11430 file name directory prefixes.
11432 2003-01-08 Andrew Cagney <cagney@redhat.com>
11434 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11437 2003-01-08 David Carlton <carlton@math.stanford.edu>
11439 * linespec.c (decode_line_1): Move code into decode_variable.
11440 (decode_variable): New function.
11442 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11444 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11446 2003-01-08 Andrew Cagney <cagney@redhat.com>
11448 * cris-tdep.c (cris_frame_init_saved_regs): Use
11449 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11451 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11452 (sh64_nofp_frame_init_saved_regs): Ditto.
11453 (sh_fp_frame_init_saved_regs): Ditto.
11454 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11455 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11456 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11457 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11459 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11461 * minsyms.c (lookup_minimal_symbol): Update comment.
11462 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11463 (lookup_minimal_symbol_solib_trampoline): Likewise.
11465 2003-01-08 Andrew Cagney <cagney@redhat.com>
11467 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11468 frame_relative_level.
11470 * alpha-tdep.c: Use get_frame_extra_info.
11471 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11472 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11473 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11474 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11476 * alpha-tdep.c: Use get_next_frame.
11477 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11478 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11479 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11480 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11481 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11482 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11483 * xstormy16-tdep.c: Ditto.
11485 2003-01-07 Andrew Cagney <cagney@redhat.com>
11487 * alpha-tdep.c: Use get_frame_base.
11488 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11489 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11490 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11491 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11492 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11493 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11494 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11495 * config/sparc/tm-sparc.h: Ditto.
11497 2003-01-07 Andrew Cagney <cagney@redhat.com>
11499 * frame.c (deprecated_get_frame_context): New function.
11500 (deprecated_set_frame_context): New function.
11501 * frame.h (deprecated_get_frame_context): Declare.
11502 (deprecated_set_frame_context): Declare.
11503 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11504 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11506 2003-01-07 Andrew Cagney <cagney@redhat.com>
11508 * frame.c (deprecated_set_frame_next_hack): New function.
11509 (deprecated_set_frame_prev_hack): New function.
11510 * frame.h (deprecated_set_frame_next_hack): Declare.
11511 (deprecated_set_frame_prev_hack): Declare.
11512 * mcore-tdep.c (analyze_dummy_frame): Use
11513 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11514 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11516 2003-01-07 David Carlton <carlton@math.stanford.edu>
11518 * linespec.c (decode_line_1): Move code into decode_dollar.
11519 (decode_dollar): New function.
11521 2003-01-07 Andrew Cagney <cagney@redhat.com>
11523 * arm-tdep.c (arm_init_extra_frame_info): Use
11524 deprecated_update_frame_base_hack.
11525 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11526 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11527 (fix_frame_pointer): Ditto.
11528 (mn10300_analyze_prologue): Ditto.
11530 2003-01-07 Andrew Cagney <cagney@redhat.com>
11532 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11533 extra_info using frame_extra_info_zalloc.
11534 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11535 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11536 (sh64_init_extra_frame_info): Ditto.
11537 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11538 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11539 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11540 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11541 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11542 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11543 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11544 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11545 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11546 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11547 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11548 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11550 * mn10300-tdep.c (analyze_dummy_frame): Use
11551 deprecated_set_frame_extra_info_hack.
11552 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11554 2003-01-07 J. Brobecker <brobecker@gnat.com>
11556 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11557 class is not scText. These do not define "real" procedures.
11558 (parse_partial_symbols): Likewise.
11560 2003-01-06 Michael Snyder <msnyder@redhat.com>
11562 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11564 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11566 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11567 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11568 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11569 deprecated_frame_xmalloc_with_cleanup.
11570 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11571 deprecated_frame_xmalloc.
11572 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11573 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11575 2003-01-06 Andrew Cagney <cagney@redhat.com>
11577 * x86-64-linux-tdep.c: Include "osabi.h".
11578 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11580 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11582 2003-01-06 Andrew Cagney <cagney@redhat.com>
11584 * MAINTAINERS (Target Instruction Set Architectures): Update
11585 arm-elf. Can be built with -Werror, has been multiarched.
11587 * value.h (unpack_long): Make buffer parameter constant.
11588 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11589 * scm-lang.h (scm_parse): Ditto.
11590 * defs.h (extract_typed_address, extract_address): Ditto.
11591 (extract_long_unsigned_integer): Ditto.
11592 * inferior.h (unsigned_pointer_to_address): Ditto.
11593 (signed_pointer_to_address): Ditto.
11594 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11595 * gdbarch.h, gdbarch.c: Regenerate.
11596 * findvar.c (extract_long_unsigned_integer): Update.
11597 (extract_address): Update.
11598 (extract_typed_address): Update.
11599 (unsigned_pointer_to_address): Update.
11600 * values.c (unpack_long): Update.
11601 (unpack_double): Update.
11602 (unpack_pointer): Update.
11603 (unpack_field_as_long): Update.
11604 * d10v-tdep.c (d10v_pointer_to_address): Update.
11605 * avr-tdep.c (avr_pointer_to_address): Update.
11606 * scm-lang.c (scm_unpack): Update.
11607 * findvar.c (signed_pointer_to_address): Update.
11609 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11611 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11612 since it is in i386-tdep.c.
11614 2003-01-06 J. Brobecker <brobecker@gnat.com>
11616 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11617 failure introduced in the previous change.
11619 2003-01-05 Michael Chastain <mec@shout.net>
11621 * README: Remove references to deleted remote-*.c files:
11622 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11623 remote-nrom.c, remote-os9k.c, remote-udi.c.
11625 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11627 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11628 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11629 i386_get_longjmp_target.
11631 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11633 * arm-tdep.c (prologue_cache): Change to a pointer.
11634 (_initialize_arm_tdep): Allocate prologue_cache.
11635 (check_prologue_cache): Update.
11636 (save_prologue_cache): Update.
11637 (arm_gdbarch_init): Update.
11639 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11641 * stabsread.c (update_method_name_from_physname): Call complaint()
11644 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11646 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11647 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11648 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11650 * blockframe.c: Include "gdbcmd.h" and "command.h".
11651 (backtrace_below_main): New variable.
11652 (file_frame_chain_valid, func_frame_chain_valid)
11653 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11654 (generic_func_frame_chain_valid): Remove functions.
11655 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11656 (_initialize_blockframe): New function.
11657 * Makefile.in (blockframe.o): Update dependencies.
11658 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11659 comment. Call frame_chain_valid ().
11660 * frame.h: Remove old prototypes. Add prototype for
11661 frame_chain_valid and update comments to match.
11662 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11663 Remove old comment.
11664 * gdbarch.h: Regenerated.
11665 * gdbarch.c: Regenerated.
11667 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11668 set_gdbarch_frame_chain_valid.
11669 * avr-tdep.c (avr_gdbarch_init): Likewise.
11670 * cris-tdep.c (cris_gdbarch_init): Likewise.
11671 * frv-tdep.c (frv_gdbarch_init): Likewise.
11672 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11673 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11674 (i386_nw_init_abi): Likewise.
11675 (i386_gdbarch_init): Likewise.
11676 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11677 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11678 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11679 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11680 * mips-tdep.c (mips_gdbarch_init): Likewise.
11681 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11682 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11683 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11684 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11685 * s390-tdep.c (s390_gdbarch_init): Likewise.
11686 * sh-tdep.c (sh_gdbarch_init): Likewise.
11687 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11688 * v850-tdep.c (v850_gdbarch_init): Likewise.
11689 * vax-tdep.c (vax_gdbarch_init): Likewise.
11690 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11692 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11693 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11694 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11695 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11696 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11697 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11698 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11699 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11701 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11703 * Makefile.in (acconfig_h): Remove incorrect macro.
11704 (config_h): Define.
11705 (osabi.o): Update dependencies.
11706 * configure.tgt: Set gdb_osabi based on target triplet.
11707 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11708 * configure: Regenerated.
11709 * config.in: Regenerated.
11710 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11711 (GDB_OSABI_DEFAULT): Define if not already defined.
11712 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11713 (set_osabi_string): New variables.
11714 (gdbarch_register_osabi): Add new OS ABI to
11715 gdb_osabi_available_names.
11716 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11717 (set_osabi, show_osabi): New functions.
11718 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11720 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11722 * arch-utils.c (gdbarch_info_init): Set osabi to
11723 GDB_OSABI_UNINITIALIZED.
11724 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11725 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11726 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11727 * gdbarch.c: Regenerated.
11728 * gdbarch.h: Regenerated.
11729 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11731 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11732 * osabi.h (enum gdb_osabi): Move to defs.h.
11733 (gdbarch_init_osabi): Update prototype.
11734 * defs.h (enum gdb_osabi): Moved here.
11735 * Makefile.in: Update dependencies.
11737 * alpha-tdep.h: Don't include "osabi.h".
11738 (struct gdbarch_tdep): Remove osabi member.
11739 * alpha-tdep.c: Include "osabi.h".
11740 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11741 iterate over arches. Update call to gdbarch_init_osabi.
11742 (alpha_dump_tdep): Don't dump osabi.
11743 * alpha-linux-tdep.c: Include "osabi.h".
11744 * alpha-osf1-tdep.c: Include "osabi.h".
11745 * alphafbsd-tdep.c: Include "osabi.h".
11746 * alphanbsd-tdep.c: Include "osabi.h".
11748 * arm-tdep.h: Don't include "osabi.h".
11749 (struct gdbarch_tdep): Remove osabi member.
11750 * arm-tdep.c: Include "osabi.h".
11751 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11752 iterate over arches. Update call to gdbarch_init_osabi.
11753 (arm_dump_tdep): Don't dump osabi.
11754 * arm-linux-tdep.c: Include "osabi.h".
11755 * armnbsd-tdep.c: Include "osabi.h".
11757 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11758 Update call to gdbarch_init_osabi.
11760 * i386-tdep.h: Don't include "osabi.h".
11761 (struct gdbarch_tdep): Remove osabi member.
11762 * i386-tdep.c: Include "osabi.h".
11763 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11764 iterate over arches. Update call to gdbarch_init_osabi.
11765 (i386_dump_tdep): Don't dump osabi.
11766 * i386-linux-tdep.c: Include "osabi.h".
11767 * i386-sol2-tdep.c: Include "osabi.h".
11768 * i386bsd-tdep.c: Include "osabi.h".
11769 * i386gnu-tdep.c: Include "osabi.h".
11770 * i386ly-tdep.c: Include "osabi.h".
11771 * i386nbsd-tdep.c: Include "osabi.h".
11772 * i386obsd-tdep.c: Include "osabi.h".
11774 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11775 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11776 check osabi when iterating over arches. Update call to
11777 gdbarch_init_osabi.
11778 (mips_dump_tdep): Don't dump osabi.
11780 * ns32k-tdep.h: Don't include "osabi.h".
11781 (struct gdbarch_tdep): Remove.
11782 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11783 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11784 allocate tdep. Update call to gdbarch_init_osabi.
11785 (ns32k_dump_tdep): Remove.
11786 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11787 * ns32knbsd-tdep.c: Include "osabi.h".
11789 * ppc-tdep.h: Don't include "osabi.h".
11790 (struct gdbarch_tdep): Remove osabi member.
11791 * rs6000-tdep.c: Include "osabi.h".
11792 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11793 osabi when iterating over arches. Update call to
11794 gdbarch_init_osabi.
11795 (rs6000_dump_tdep): Don't dump osabi.
11796 * ppc-linux-tdep.c: Include "osabi.h".
11797 * ppcnbsd-tdep.c: Include "osabi.h".
11799 * sh-tdep.h: Don't include "osabi.h".
11800 (struct gdbarch_tdep): Remove osabi member.
11801 * sh-tdep.c: Include "osabi.h".
11802 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11803 iterate over arches. Update call to gdbarch_init_osabi.
11804 (sh_dump_tdep): Don't dump osabi.
11805 * shnbsd-tdep.c: Include "osabi.h".
11807 * sparc-tdep.c: Include "osabi.h".
11808 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11809 iterate over arches. Update call to gdbarch_init_osabi.
11810 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11813 * vax-tdep.h: Don't include "osabi.h".
11814 (struct gdbarch_tdep): Remove.
11815 * vax-tdep.c: Include "osabi.h".
11816 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11817 iterate over arches. Don't allocate tdep. Update call
11818 to gdbarch_init_osabi.
11819 (vax_dump_tdep): Remove.
11820 (_initialize_vax_tdep): Update call to gdbarch_register.
11822 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11824 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11826 (breakpoint_re_set_one): Don't fetch the value for a disabled
11829 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11831 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11832 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11833 (COERCE_FLOAT_TO_DOUBLE): Remove.
11834 * gdbarch.c: Regenerate.
11835 * gdbarch.h: Regenerate.
11836 * Makefile.in: Remove value_h from gdbarch_h.
11837 * valops.c (coerce_float_to_double): New variable.
11838 (default_coerce_float_to_double): Remove.
11839 (standard_coerce_float_to_double): Remove.
11840 (value_arg_coerce): Use coerce_float_to_double.
11841 (_initialize_valops): Add "set coerce-float-to-double".
11842 * value.h (default_coerce_float_to_double): Remove prototype.
11843 (standard_coerce_float_to_double): Remove prototype.
11845 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11847 * mdebugread.c (parse_symbol): Likewise.
11848 * stabsread.c (define_symbol): Mark all functions as prototyped.
11850 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11851 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11852 set_gdbarch_coerce_float_to_double.
11853 * arm-tdep.c (arm_gdbarch_init): Likewise.
11854 * frv-tdep.c (frv_gdbarch_init): Likewise.
11855 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11856 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11857 * mips-tdep.c (mips_gdbarch_init): Likewise.
11858 (mips_coerce_float_to_double): Remove.
11859 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11860 (rs6000_coerce_float_to_double): Remove.
11861 * s390-tdep.c (s390_gdbarch_init): Likewise.
11862 * sh-tdep.c (sh_gdbarch_init): Likewise.
11863 (sh_coerce_float_to_double): Remove.
11864 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11865 (sparc_coerce_float_to_double): Remove.
11866 * v850-tdep.c (v850_gdbarch_init): Likewise.
11867 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11868 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11869 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11870 (hppa_coerce_float_to_double): Remove prototype.
11871 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11873 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11875 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11877 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11879 Suggested by Stewart Brown <sb24@avaya.com>:
11880 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11881 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11882 (c_type_print_varspec_suffix): Likewise.
11884 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11886 * configure.in: Don't set and AC_SUBST SUBDIRS.
11887 * configure: Regenerated.
11889 * configure.in: Remove code dealing with shared libraries.
11890 * Makefile.in: Remove HLDFLAGS and HLDENV.
11891 * configure: Regenerated.
11893 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11895 * frame.c (deprecated_frame_xmalloc): New function.
11896 (deprecated_set_frame_saved_regs_hack): New function.
11897 (deprecated_set_frame_extra_info_hack): New function.
11898 * frame.h (deprecated_frame_xmalloc): Declare.
11899 (deprecated_set_frame_saved_regs_hack): Declare.
11900 (deprecated_set_frame_extra_info_hack): Declare.
11902 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11904 * configure.in: Move code that provides the --enable-gdbtk option
11905 right after the code that handles the --enable-tui option, and
11906 polish it somewhat.
11907 * configure: Regenerated.
11909 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11910 AC_CHECK_FUNCS and remove the old check for pread64.
11911 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11912 * acconfig.h (_GNU_SOURCE): Add.
11913 (HAVE_PREAD64): Remove.
11914 * configure, aclocal.m4, config.in: Regenerated.
11916 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11918 * alpha-tdep.c: Use get_frame_saved_regs.
11919 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11920 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11921 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11922 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11923 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11925 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11927 * configure.in: Remove all use of the SUBDIRS variable; add
11928 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11929 code providing the --enable-multi-ice option, and move it right in
11930 front of the code that checks whether gdbserver is supported.
11932 * configure: Regenerated.
11933 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11936 2003-01-03 Andrew Cagney <cagney@redhat.com>
11938 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11939 * avr-tdep.c, cris-tdep.c: Ditto.
11940 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11941 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11943 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11945 * configure.in: Remove --enable-netrom option.
11946 * configure: Regenerated.
11948 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11950 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11951 declaration for `struct re_pattern_buffer' instead.
11952 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11954 2003-01-03 J. Brobecker <brobecker@gnat.com>
11956 * mdebugread.c (parse_symbol): Count until the stEnd matching
11957 the structure name.
11959 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11961 * configure.in: Remove --with-cpu option.
11962 subscripts. Remove evil changequotes here.
11963 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11964 * config.in, configure: Regenerated.
11966 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11967 * configure.in: Cleanup section that sources GDB and BFD configure
11968 subscripts. Remove evil changequotes here.
11969 * config.in, configure: Regenerated.
11971 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11973 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11974 frame accessor methods.
11975 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11976 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11977 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11978 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11979 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11980 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11981 * z8k-tdep.c: Ditto.
11983 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11985 * configure.in: Remove UI_OUT configuration code.
11986 * ada-lang.c: Update assuming UI_OUT is always true.
11987 * Makefile.in (UIOUT_CFLAGS): Remove.
11988 * configure: Regenerated.
11989 * TODO: Remove blurb about elimination of -DUI_OUT.
11991 * configure.in: Move code that provides the --enable-gdbcli,
11992 --enable-gdbmi options right before the code that handles the
11993 --enable-tui option. Polish a bit.
11994 * configure: Regenerated.
11996 * configure.in: Rewrite check for GNU regex and the
11997 --without-included regex option, and move it into the "Checks for
11998 library functions" section. This makes us use the system regex
11999 again by default on systems with version 2 of the GNU C library.
12000 This was apparently broken.
12001 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12002 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12003 * config.in, configure: Regenerated.
12005 * configure.in: Move code that provides the --enable-tui option
12006 before the "Checks for libraries" section. Polish the code
12007 somewhat and set need_curses to yes if we build the TUI. Rewrite
12008 code that looks for a library providing termcap functionality to
12009 match more closely what's done in the Readline library, and move
12010 it into to the "Checks for libraries" section.
12011 * configure: Regenerated.
12012 * Makefile.in (TERMCAP): Remove variable.
12013 * config/i386/go32.mh (TERMCAP): Remove variable.
12015 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12017 * MAINTAINERS: Mention gdb_mbuild.sh.
12018 * gdb_mbuild.sh: Rewrite.
12020 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12022 * configure.in: Fix typo in last change.
12023 * config.in, configure: Regenerated.
12025 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12027 * valarith.c (value_binop): Delete obsolete code and comments.
12028 * configure.host: Ditto.
12029 * buildsym.h (make_blockvector): Ditto.
12030 * buildsym.c (make_blockvector): Ditto.
12031 * defs.h (enum language): Ditto.
12032 (chill_demangle): Ditto.
12033 * elfread.c (elf_symtab_read): Ditto.
12034 * dwarfread.c (CHILL_PRODUCER): Ditto.
12035 (set_cu_language): Ditto.
12036 (handle_producer): Ditto.
12037 * expprint.c (print_subexp): Ditto.
12038 * gdbtypes.c (chill_varying_type): Ditto.
12039 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12040 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12041 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12042 (chill_varying_type): Ditto.
12043 * language.h (_LANG_chill): Ditto.
12044 * language.c (binop_result_type, integral_type): Ditto.
12045 (character_type, string_type, structured_type): Ditto.
12046 (lang_bool_type, binop_type_check): Ditto.
12047 * stabsread.h (os9k_stabs): Ditto.
12048 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12049 (define_symbol, read_type, read_struct_fields): Ditto.
12050 (read_array_type, read_enum_type, read_huge_number): Ditto.
12051 (read_range_type, start_stabs): Ditto.
12052 * symfile.c (init_filename_language_table): Ditto.
12053 (add_psymbol_with_dem_name_to_list): Ditto.
12054 * symtab.c (symbol_init_language_specific): Ditto.
12055 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12056 * symtab.h (struct general_symbol_info): Ditto.
12057 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12058 * typeprint.c (typedef_print): Ditto.
12059 * utils.c (fprintf_symbol_filtered): Ditto.
12060 * valops.c (value_cast, search_struct_field, value_slice): Delete
12062 (varying_to_slice): Delete function.
12063 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12064 (varying_to_slice): Delete declaration.
12065 * MAINTAINERS: Update.
12067 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12069 * configure.in: Reorganize "Checks for library functions section"
12070 a bit. Remove check for `btowc' and `isascii' functions.
12071 * configure: Regenerated.
12073 * acconfig.h (_MSE_INT_H): Remove.
12074 * configure.in: Create "Checks for header files" section, and move
12075 appropriate tests there. Don't check for objlist.h, wchar.h,
12076 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12077 misdetection fix. Also add "Checks for types", "Checks for
12078 compiler characteristics" and "Checks for library functions"
12080 * config.in, configure: Regenerated.
12082 * configure.in: Create "Checks for programs" section, and move
12083 appropriate tests there.
12085 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12087 * configure.in: Create "Checks for libraries" section, and move
12088 appropriate tests there. Cleanup check for wctype in libw. Use
12089 AC_SEARCH_LIBS to see whether we need libsocket.
12090 * configure: Regenerated.
12092 For older changes see ChangeLog-2002
12098 version-control: never