1 2003-09-17 Jim Blandy <jimb@redhat.com>
3 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
5 2003-09-17 Andrew Cagney <cagney@redhat.com>
7 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
8 (ppcnbsd_init_abi): Set "use_struct_convention" to
9 "ppcnbsd_use_struct_convention".
11 2003-09-17 Mark Kettenis <kettenis@gnu.org>
13 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
14 * gdbarch.h, gdbarch.c: Regenerate.
15 (stabs_argument_has_addr): New architecture method.
16 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
17 * arch-utils.c: Include "buildsym.h".
18 (default_stabs_argument_has_addr): New function.
19 * stabsread.c (define_symbol): Use stabs_argument_has_addr
20 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
22 2003-09-17 Andrew Cagney <cagney@redhat.com>
24 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
25 * gdbarch.h, gdbarch.c: Regenerate.
26 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
27 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
28 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
29 * sparcnbsd-tdep.c: Update.
31 2003-09-17 Andrew Cagney <cagney@redhat.com>
33 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
34 * gdbarch.h, gdbarch.c: Regenerate.
35 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
36 * d10v-tdep.c, frame.c: Update.
37 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
38 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
39 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
40 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
41 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
42 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
43 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
44 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
45 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
46 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
47 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
48 * config/pa/nm-hppah.h: Update.
50 2003-09-16 Andrew Cagney <cagney@redhat.com>
52 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
53 "use_struct_convention" to "ppc_linux_use_struct_convention".
54 (ppc_linux_use_struct_convention): New function.
55 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
56 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
57 "rs6000_use_struct_convention".
58 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
60 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
63 2003-09-16 Andrew Cagney <cagney@redhat.com>
65 * buildsym.c: Remove more occurances of "register".
66 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
67 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
68 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
69 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
70 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
71 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
72 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
73 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
75 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
77 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
78 numbers to enumeration values.
79 * sh-tdep.c: Accomodate above change.
80 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
81 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
82 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
83 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
84 (IS_FPUSH): Rename from IS_FMOV.
85 (sh_extract_struct_value_address): Remove useless comment.
86 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
87 instead of own local values.
88 (sh_dump_tdep): Remove.
89 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
90 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
92 2003-09-15 Andrew Cagney <cagney@redhat.com>
94 * doublest.c (convert_floatformat_to_doublest): No longer need to
95 cast "exp_bias" to an int. Reverts 2002-12-04 change.
97 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
99 * values.c (unpack_double): Call floatformat_is_valid.
101 2003-09-15 Mark Kettenis <kettenis@gnu.org>
103 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
104 ps_strings into a long.
106 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
107 _initialize_am64fbsd_nat.
109 2003-09-15 Kevin Buettner <kevinb@redhat.com>
111 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
112 associated with DW_AT_ranges attribute is out of bounds.
114 2003-09-15 David Lecomber <dsl@sources.redhat.com>
116 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
118 2003-09-14 Michael Chastain <mec@shout.net>
120 * config/m68k/nm-apollo68v.h: Delete.
121 * config/m68k/xm-apollo68v.h: Delete.
123 2003-09-14 Andrew Cagney <cagney@redhat.com>
125 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
126 * dcache.c: Update copyrights and descriptions.
127 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
129 2003-09-14 Andrew Cagney <cagney@redhat.com>
131 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
132 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
134 2003-09-14 Andrew Cagney <cagney@redhat.com>
136 * alpha-nat.c: Remove some occurances of "register".
137 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
138 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
139 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
140 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
141 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
142 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
143 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
144 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
145 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
146 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
147 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
148 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
149 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
150 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
151 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
152 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
153 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
154 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
155 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
156 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
157 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
158 * values.c, vax-tdep.c, xcoffread.c: Ditto.
160 2003-09-13 Andrew Cagney <cagney@redhat.com>
162 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
163 * ppc-tdep.h (struct regcache): Declare opaque.
164 * objfiles.h (struct objfile_data): Declare opaque.
165 * cp-support.h (struct objfile): Declare opaque.
166 * linux-nat.h (target_waitstatus): Declare opaque.
168 2003-09-14 Mark Kettenis <kettenis@gnu.org>
170 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
171 (stabs_argument_has_addr): New architecture method.
172 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
173 * arch-utils.c: Include "buildsym.h".
174 (default_stabs_argument_has_addr): New function.
175 * stabsread.c (define_symbol): Use stabs_argument_has_addr
176 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
178 * cris-tdep.c (cris_gdbarch_init): Set
179 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
180 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
181 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
182 * mips-tdep.c (mips_gdbarch_init): Likewise.
183 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
184 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
186 2003-09-13 Andrew Cagney <cagney@redhat.com>
188 * values.c (using_struct_return): Delete "function" and "funcaddr"
190 * value.h (using_struct_return): Update declaration.
191 * infcmd.c (finish_command_continuation): Update.
192 (finish_command): Update.
193 * infcall.c (call_function_by_hand): Update.
194 * eval.c (evaluate_subexp_standard): Update.
196 2003-09-13 Christopher Faylor <cgf@redhat.com>
198 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
199 SSE registers since gdb will not operate correctly without this.
200 Restore include file ordering munged in previous change.
201 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
203 2003-09-13 Mark Kettenis <kettenis@gnu.org>
205 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
207 * gdbarch.c, gdbarch.h: Updated.
208 * infcall.c (call_function_by_hand): Update.
209 * stabsread.c (define_symbol): Updated.
211 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
213 2003-09-12 Christopher Faylor <cgf@redhat.com>
215 * win32-nat.c: Reorganize so that defines used by target headers are
216 actually defined by the system headers.
217 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
218 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
220 2003-09-12 Jim Blandy <jimb@redhat.com>
222 * dbxread.c (read_dbx_symtab): Don't report an internal error if
223 the file has no .data, .bss, or .rodata sections. Instead wait
224 until we see a variable alleged to live in one of those sections.
226 * dbxread.c (read_dbx_symtab): If we have no .data section and no
227 .bss section, presume that any variables we find live in the
230 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
231 offsets for global and static variables.
233 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
234 symbol types are, by definition, in the .data section, so it is
235 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
236 If there is no .data section, there should be no N_DATA or N_DATA
239 2003-09-12 Mark Kettenis <kettenis@gnu.org>
241 * amd64fbsd-tdep.c: Fix sigtramp recognition.
242 (amd64fbsd_sigcontext_addr): Rewrite.
243 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
245 (amd64fbsd_sc_reg_offset): Initialize with correct values.
246 (amd64fbsd_init_abi): Fix typo.
248 2003-09-12 Andrew Cagney <cagney@redhat.com>
250 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
251 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
253 2003-09-12 Andrew Cagney <cagney@redhat.com>
255 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
256 "entry_file_highpc". Update comments.
257 * defs.h (deprecated_inside_entry_file): Rename
259 * blockframe.c (deprecated_inside_entry_file): Rename
261 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
262 * vax-tdep.c (vax_frame_chain): Update.
263 * sh64-tdep.c (sh64_frame_chain): Update.
264 * sh-tdep.c (sh_frame_chain): Update.
265 * rs6000-tdep.c (rs6000_frame_chain): Update.
266 * ns32k-tdep.c (ns32k_frame_chain): Update.
267 * mips-tdep.c (mips_frame_chain): Update.
268 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
269 * m32r-tdep.c (m32r_frame_this_id): Update.
270 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
271 * frv-tdep.c (frv_frame_this_id): Update.
272 * d10v-tdep.c (d10v_frame_this_id): Update.
273 * cris-tdep.c (cris_frame_chain): Update.
274 * blockframe.c (legacy_frame_chain_valid): Update.
275 * avr-tdep.c (avr_frame_this_id): Update.
276 * arm-tdep.c (arm_prologue_this_id): Update.
277 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
278 * objfiles.c (objfile_relocate): Update.
279 * mipsread.c (mipscoff_symfile_read): Update.
280 (mipscoff_symfile_read): Update.
281 * mdebugread.c (parse_partial_symbols): Update.
282 * dwarfread.c (read_file_scope): Update.
283 * dwarf2read.c (read_file_scope): Update.
284 * dbxread.c (read_dbx_symtab): Update.
285 (read_dbx_symtab): Update.
286 * coffread.c (complete_symtab): Update.
288 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
290 * top.c (quit_target): New static helper function.
291 (quit_force): Moved code to quit_target(). Call quit_target()
292 via catch_errors() to catch errors during quit.
294 2003-09-11 David Carlton <carlton@kealia.com>
296 * buildsym.c (finish_block): Use allocate_block to allocate the
298 * mdebugread.c (new_block): Add FIXME.
300 2003-09-11 David Carlton <carlton@kealia.com>
302 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
303 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
304 (recursive_dump_type): Ditto.
305 * printcmd.c (print_formatted): Ditto.
306 * typeprint.c (print_type_scalar): Ditto.
307 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
308 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
309 * cp-support.h: Declare cp_check_possible_namespace_symbols,
310 maint_cplus_cmd_list.
311 * cp-support.c: Make maint_cplus_cmd_list extern.
312 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
314 (lookup_symbol_file): Look in possible namespace blocks when
316 (initialize_namespace_symtab): New.
317 (get_possible_namespace_block, free_namespace_block)
318 (check_possible_namespace_symbols)
319 (check_possible_namespace_symbols_loop)
320 (check_one_possible_namespace_symbol)
321 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
322 (_initialize_cp_namespace): Ditto.
323 * block.h: Declare allocate_block.
324 * block.c (allocate_block): New.
325 * jv-lang.c (get_java_class_symtab): Allocate blocks via
327 * symfile.h: Update declaration of add_psymbol_to_list.
328 * symfile.c (add_psymbol_to_list): Return the partial symbol in
330 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
331 scan_partial_symbols_call.
332 (scan_partial_symbols): Add NAMESPACE argument; update calls to
334 (add_partial_symbol): If necessary, scan mangled names for names
336 (add_partial_namespace): Add NAMESPACE argument; generate partial
337 symbols associated to namespaces.
338 (add_partial_enumeration): Add NAMESPACE argument.
339 (new_symbol): Allow namespace syms.
340 (read_namespace): Generate namespace syms.
341 * objfiles.h: Add opaque declaration of struct symtab.
342 (struct objfile): Add cp_namespace_symtab member.
343 * objfiles.c (allocate_objfile): Set
344 objfile->cp_namespace_symtab.
345 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
346 dictionary_h, command_h.
348 2003-09-11 Andrew Cagney <cagney@redhat.com>
350 * rs6000-tdep.c (rs6000_push_dummy_call): Use
351 regcache_raw_write_signed to set SP_REGNUM, move the operation to
352 near the function's end.
353 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
354 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
355 regcache_raw_write_signed to set SP_REGNUM.
357 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
359 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
360 orig_addrs is set up properly.
362 2003-09-11 Andrew Cagney <cagney@redhat.com>
364 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
365 * gdbarch.h, gdbarch.c: Re-generate.
366 * infcall.c (call_function_by_hand): Update.
367 * hppa-tdep.c (hppa_push_arguments): Update.
368 * ada-lang.c (place_on_stack): Update.
369 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
370 * sparc-tdep.c (sparc_gdbarch_init): Update.
371 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
372 * hppa-tdep.c (hppa_gdbarch_init): Update.
373 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
376 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
378 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
379 register do need a frame.
381 2003-09-11 Andrew Cagney <cagney@redhat.com>
383 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
384 buildable since GDB 5.0.
385 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
386 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
387 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
388 * irix4-nat.c: Delete file.
389 * config/mips/irix4.mh: Delete file.
390 * config/mips/irix3.mh: Delete file.
391 * config/mips/irix3.mt: Delete file.
392 * config/mips/tm-irix3.h: Delete file.
393 * config/mips/nm-irix3.h: Delete file.
394 * config/mips/xm-irix3.h: Delete file.
395 * config/mips/nm-irix4.h: Delete file.
396 * config/mips/xm-irix4.h: Delete file.
397 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
399 2003-09-10 J. Brobecker <brobecker@gnat.com>
401 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
402 * Makefile.in (hppa-tdep.o): Update dependencies.
404 2003-09-10 James E Wilson <wilson@specifixinc.com>
406 * MAINTAINERS: Change my e-mail address. Move to paper trail
409 2003-09-10 Kevin Buettner <kevinb@redhat.com>
411 * MAINTAINERS (frv): New ISA entry.
413 2003-09-10 Kevin Buettner <kevinb@redhat.com>
415 * frv-tdep.c (dis-asm.h): Include.
416 * Makefile.in (frv-tdep.o): Update dependencies.
418 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
420 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
421 Fix typo for high range of floating registers.
423 2003-09-09 David Carlton <carlton@kealia.com>
425 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
426 highpc initialization here out of scan_partial_symbols.
427 (scan_partial_symbols): Restructure into a recursive version,
428 calling add_partial_namespace and add_partial_enumeration when
430 (add_partial_namespace): New.
431 (add_partial_enumeration, locate_pdi_sibling): Ditto.
433 2003-09-09 Andrew Cagney <cagney@redhat.com>
435 * rs6000-tdep.c (ppc_push_return_address): Delete function.
436 (rs6000_push_dummy_call): Set LR to BP_ADDR.
437 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
438 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
440 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
441 (rs6000_push_dummy_call): Set the "TOC" register.
443 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
444 methods "max_register_raw_size", "max_register_virtual_size" or
445 "register_virtual_size".
447 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
449 * MAINTAINERS: Update my e-mail address.
451 2003-09-09 Andrew Cagney <cagney@redhat.com>
453 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
454 (rs6000_push_dummy_call): Store the struct return address.
455 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
457 2003-09-09 Andrew Cagney <cagney@redhat.com>
459 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
460 "ppc_sysv_abi_push_arguments".
461 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
462 "ppc_sysv_abi_push_arguments".
463 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
464 instead of "push_arguments".
465 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
467 2003-09-09 Andrew Cagney <cagney@redhat.com>
469 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
470 instead of CALL_DUMMY_ADDRESS.
472 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
474 * p-lang.c: Eliminate "register".
483 * objc-lang.c: Ditto.
485 2003-09-09 Nick Clifton <nickc@redhat.com>
487 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
489 2003-09-04 Andrew Cagney <cagney@redhat.com>
491 * avr-tdep.c: Include "dis-asm.h".
492 * cris-tdep.c: Include "dis-asm.h".
493 (cris_delayed_get_disassembler): Use "struct disassemble_info"
494 instead of corresponding typedef.
495 * h8300-tdep.c: Include "dis-asm.h".
496 * ia64-tdep.c: Include "dis-asm.h".
497 * i386-tdep.c: Include "dis-asm.h".
498 (i386_print_insn): Use "struct disassemble_info" instead of
499 corresponding typedef.
500 * m68k-tdep.c: Include "dis-asm.h".
501 * mcore-tdep.c: Include "dis-asm.h".
502 * mips-tdep.c: Include "dis-asm.h".
503 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
504 instead of corresponding typedef.
505 * ns32k-tdep.c: Include "dis-asm.h".
506 * s390-tdep.c: Include "dis-asm.h".
507 * sparc-tdep.c: Include "dis-asm.h".
508 * vax-tdep.c: Include "dis-asm.h".
509 * v850-tdep.c: Include "dis-asm.h".
510 * mn10300-tdep.c: Include "dis-asm.h".
511 * rs6000-tdep.c: Include "dis-asm.h".
512 * xstormy16-tdep.c: Include "dis-asm.h".
513 (_initialize_xstormy16_tdep): Delete "extern" declaration of
514 print_insn_xstormy16.
515 * Makefile.in (v850-tdep.o): Update dependencies.
516 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
517 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
518 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
519 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
520 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
521 (gdbarch_h): Remove $(dis_asm_h).
522 * disasm.c: Include "dis-asm.h".
523 (dis_asm_read_memory): Use "struct disassemble_info" instead of
524 corresponding typedef.
525 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
526 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
527 * gdbarch.sh: Do not include "dis-asm.h".
528 (struct disassemble_info): Declare opaque.
529 (TARGET_PRINT_INSN): Update declaration.
530 * gdbarch.h, gdbarch.c: Re-generate.
532 2003-09-08 Andrew Cagney <cagney@redhat.com>
534 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
535 CALL_DUMMY_ADDRESS, change to a predicate.
536 * gdbarch.h, gdbarch.c: Re-generate.
537 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
538 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
539 * infcall.c (call_function_by_hand): Ditto.
540 * sparc-tdep.c (sparc_push_return_address): Ditto.
541 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
542 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
543 CALL_DUMMY_ADDRESS with entry_point_address.
544 * v850-tdep.c (v850_push_return_address): Ditto.
545 * s390-tdep.c (s390_push_return_address): Ditto.
546 * rs6000-tdep.c (ppc_push_return_address): Ditto.
547 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
548 * mcore-tdep.c (mcore_push_return_address): Ditto.
549 * cris-tdep.c (cris_push_return_address): Ditto.
550 * arm-tdep.c (arm_push_return_address): Ditto.
552 2003-09-08 Andrew Cagney <cagney@redhat.com>
554 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
555 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
556 and REG_UNMODIFIED to REG_SAME_VALUE.
557 (execute_cfa_program): Update.
558 (dwarf2_frame_cache): Update. Initialize table to
559 REG_UNSPECIFIED, complain if CFI fails to specify a register's
561 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
563 2003-09-08 Andrew Cagney <cagney@redhat.com>
565 * gnu-nat.c: Remove "inline" function attribute.
566 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
568 2003-09-08 Kevin Buettner <kevinb@redhat.com>
570 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
573 2003-09-08 Kevin Buettner <kevinb@redhat.com>
575 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
576 (frame_extra_info): Rename this struct to frv_unwind_cache.
577 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
578 Add fields ``prev_sp'' and ``base''.
579 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
580 (frv_saved_pc_after_call, frv_init_extra_frame_info)
581 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
583 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
584 Revise all callers. Fill in the unwind cache argument and make
585 other adjustments to account for new frame mechanisms.
586 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
587 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
588 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
589 (frv_frame_unwind, frv_frame_base): New structs.
590 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
591 additional arguments expected by this method and adjust function
593 (frv_gdbarch_init): Remove calls to the following functions:
594 set_gdbarch_deprecated_init_frame_pc(),
595 set_gdbarch_deprecated_saved_pc_after_call(),
596 set_gdbarch_deprecated_frame_chain(),
597 set_gdbarch_deprecated_frame_saved_pc(),
598 set_gdbarch_deprecated_frame_init_saved_regs(),
599 set_gdbarch_deprecated_push_arguments(),
600 set_gdbarch_deprecated_push_return_address(),
601 set_gdbarch_deprecated_pop_frame(),
602 set_gdbarch_deprecated_call_dummy_words(),
603 set_gdbarch_deprecated_sizeof_call_dummy_words(),
604 set_gdbarch_deprecated_init_extra_frame_info(),
605 set_gdbarch_deprecated_dummy_write_sp(), and
606 set_gdbarch_deprecated_pc_in_call_dummy().
607 Add calls to the following functions:
608 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
609 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
610 frame_base_set_default().
611 * Makefile.in (frv-tdep.o): Update dependencies.
613 2003-09-09 Mark Kettenis <kettenis@gnu.org>
615 * dwarf2-frame.c (read_encoded_value): Add support for
616 DW_EH_PE_aligned encoding.
618 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
620 * infrun.c (normal_stop): Don't print a message if the inferior
623 2003-09-08 Jim Blandy <jimb@redhat.com>
625 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
626 * dbxread.c: #include "gdb_assert.h".
627 (read_dbx_symtab): If the objfile has no .data section, use the
628 section index for the .bss section instead.
630 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
632 * frame.c (deprecated_safe_get_selected_frame): New function.
633 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
634 * findvar.c (read_var_value): Call it.
636 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
638 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
639 (sh64-tdep.o): Add dependencies.
640 * configure.tgt: Add FIXME to sh-*-linux*.
641 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
642 (sh_gdbarch_init): Always set correct sh_show_regs function
643 pointer. Call sh64_gdbarch_init() if machine type is sh5.
644 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
645 * sh64-tdep.c: New file, containing all sh64 related code from
647 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
648 * config/sh/linux.mt (TDEPFILES): Ditto.
649 * config/sh/nbsd.mt (TDEPFILES): Ditto.
650 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
651 * config/sh/wince.mt (TDEPFILES): Ditto.
653 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
655 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
656 (stop_wait_callback): Handle !lp->signalled also.
657 (lin_lwp_has_pending, flush_callback): New functions.
658 (lin_lwp_wait): Call flush_callback.
659 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
660 (linux_proc_pending_signals): New function.
661 * linux-nat.h (linux_proc_pending_signals): Add prototype.
663 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
665 From Nick Kelsey <nickk@ubicom.com>:
666 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
667 when the stop PC is at the beginning of a function also.
669 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
671 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
672 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
674 2003-09-06 Mark Kettenis <kettenis@gnu.org>
676 * sol-thread.c: Include "gdb_string.h".
678 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
680 * gcore.c: Reorder include files in alphabetical order. Include
681 "gdb_assert.h". Various coding style fixes.
682 (derive_stack_segment, derive_heap_segment): Replace check for
683 non-null BOTTOM and TOP with gdb_assert.
684 (derive_heap_segment): Replace check for successful creation of
685 ZERO with gdb_assert.
686 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
688 2003-09-04 Andrew Cagney <cagney@redhat.com>
690 * thread-db.c (verbose_dlsym): New function.
691 (thread_db_load): Use verbose_dlsym
692 (thread_db_new_objfile): Print that libthread_db was loaded, and
693 that thread debugging was enabled.
695 2003-09-04 Andrew Cagney <cagney@redhat.com>
697 * configure.tgt: Add "mips64*-*-*" target. Delete
698 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
699 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
700 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
701 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
702 mips*-sony-*, and mips64*-*-elf* targets.
703 * config/mips/embedl.mt: Delete file.
704 * config/mips/embedl64.mt: Delete file.
705 * config/mips/mips.mt: Delete file.
706 * config/mips/mips64.mt: Delete file.
707 * config/mips/tm-embed.h: Delete file.
708 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
709 * config/mips/embed64.mt: Delete out-of-date comment.
711 2003-09-04 Andrew Cagney <cagney@redhat.com>
713 * hppa-tdep.c (hppa_gdbarch_init): Set
714 "have_nonsteppable_watchpoint".
715 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
716 * mips-tdep.c (mips_dump_tdep): Do not print
717 HAVE_NONSTEPPABLE_WATCHPOINT.
718 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
719 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
720 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
721 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
723 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
725 * breakpoint.c (watchpoint_check): Remove accidentally checked in
726 unused code. Add comment.
728 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
730 * breakpoint.c (watchpoint_check): Check for pc being in an
731 epilogue if watchpoint frame couldn't be found.
733 2003-09-04 Andrew Cagney <cagney@redhat.com>
735 * Makefile.in: Re-generate all dependencies.
737 2003-09-03 Andrew Cagney <cagney@redhat.com>
739 * arch-utils.h (legacy_print_insn): Delete declaration.
740 * arch-utils.c (legacy_print_insn): Delete function.
741 * disasm.c (deprecated_tm_print_insn_info): Delete.
742 (_initialize_disasm): Delete function, contained code initializing
743 deprecated_tm_print_insn_info.
744 * gdbarch.sh (deprecated_tm_print_insn): Delete.
745 (deprecated_tm_print_insn_info): Delete.
746 (TARGET_PRINT_INSN): Do not provide a default.
747 * gdbarch.h, gdbarch.c: Re-generate.
749 2003-09-03 Andrew Cagney <cagney@redhat.com>
751 * disasm.c (fprintf_disasm): New function.
752 (gdb_disassemble_info): Call "init_disassemble_info", instead of
753 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
754 reverts 2003-08-14 change.
755 (_initialize_disasm): Call "init_disassemble_info", instead of
756 INIT_DISASSEMBLE_INFO_NO_ARCH.
758 2003-09-03 Michael Snyder <msnyder@redhat.com>
760 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
762 2003-09-03 Andrew Cagney <cagney@redhat.com>
764 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
765 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
766 * symfile.c (syms_from_objfile): Update.
767 (reread_symbols): `Update
768 * exec.c (exec_file_attach): Update.
769 (exec_file_attach): Update.
770 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
772 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
774 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
776 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
778 (arm_get_cache): Delete macro.
779 (struct arm_prologue_cache): Update comments. Make saved_regs into
780 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
782 (thumb_scan_prologue): Update for cache changes. Don't call
783 DEPRECATED_PC_IN_CALL_DUMMY.
784 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
785 argument and use it in desperation search for our prologue. Do not
786 search past the specified PC.
787 (arm_make_prologue_cache): Simplify.
789 (arm_prologue_this_id, arm_prologue_prev_register)
790 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
791 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
792 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
793 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
794 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
796 (arm_frame_chain_valid, arm_find_callers_reg)
797 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
798 (arm_pop_frame): Delete obsolete methods.
799 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
801 (arm_gdbarch_init): Update for new frame methods. Register prologue
802 and sigtramp unwinders. Set the default frame base method.
804 * Makefile.in (arm-tdep.o): Update dependencies.
805 * varobj.c (find_frame_addr_in_frame_chain): Call
806 get_frame_base_address.
807 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
809 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
811 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
812 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
813 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
814 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
815 Take NEXT_FRAME and CACHE arguments. Call
816 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
817 Set unwound_pc in CACHE instead of modifying the frame argument.
818 Don't bother checking the frame type when looking for sigtramp
820 (arm_make_prologue_cache, arm_frame_chain)
821 (arm_init_extra_frame_info): New functions.
823 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
825 * arm-tdep.c (arm_get_cache): Define.
826 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
827 unwound_sp, unwound_pc, and saved_regs.
828 (thumb_scan_prologue): Take a cache instead of the frame.
829 (arm_scan_prologue): Likewise.
830 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
831 instead of a temporary frame.
832 (arm_init_extra_frame_info): Allocate and use a cache.
833 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
835 2003-09-03 Andrew Cagney <cagney@redhat.com>
837 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
838 * config/mips/wince.mt (TM_CLIBS): Ditto.
839 * config/sh/wince.mt (TM_CLIBS): Ditto.
840 * config/pa/hppa64.mt (TM_CLIBS): Delete.
841 * config/sparc/sp64.mt (CC): Delete.
843 2003-09-03 Andrew Cagney <cagney@redhat.com>
845 * defs.h: Do not include "arch-utils.h".
846 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
848 * configure.in (GDB_MULTI_ARCH): Do not define.
849 * configure, config.in: Regenerate.
850 * configure.tgt: Do not set variable "gdb_multi_arch".
851 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
852 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
853 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
854 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
855 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
856 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
857 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
858 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
859 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
860 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
861 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
862 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
863 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
864 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
865 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
866 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
867 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
868 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
870 2003-08-30 Michael Chastain <mec@shout.net>
872 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
873 * config/m68k/nm-hp300hpux.h: Delete.
874 * config/m68k/tm-hp300hpux.h: Delete.
875 * config/m68k/xm-hp300hpux.h: Delete.
876 * config/m68k/xm-hp300bsd.h: Delete.
877 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
878 tm-hp300hpux.h, xm-hp300hpux.h.
879 * somsolib.c: Remove comment about hp300 shared libraries.
881 2003-08-31 Mark Kettenis <kettenis@gnu.org>
883 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
884 Only define PTRACE_GET_THREAD_AREA is not already defined.
885 Various style fixes in code and comments and some additional
886 spelling fixes in comments. Move after functions dealing with
888 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
891 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
892 frame_unwind_register_unsigned instead of
893 frame_unwind_unsigned_register.
895 2003-08-30 Mark Kettenis <kettenis@gnu.org>
897 * configure.in: Search for gethostbyname in libnsl.
898 * configure: Regenerated.
900 2003-08-29 Mark Kettenis <kettenis@gnu.org>
902 * configure.in: Remove redundant AC_MSG_RESULT in check for
903 uintptr_t in stdint.h.
904 * configure: Regenerated.
906 * amd64-nat.h (struct regcache): Add opaque declaration.
908 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
909 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
910 Change "register array" to "register cache" in comments.
911 (x86_64_linux_gregset64_reg_offset): New variable.
912 (GETREGS_SUPPLIES): Remove macro.
913 (supply_gregset): Call amd64_supply_native_gregset instead of
914 x86_64_linux_supply_gregset.
915 (fill_gregset): Rename `regno' to `regnum'. Call
916 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
917 (store_regs): Rename `regno' to `regnum'.
918 (store_fpregs): Rename `regno' to `regnum'.
919 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
920 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
921 Reorganize function a bit.
922 (store_inferior_registers): Rename `regno' to `regnum'. Use
923 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
924 Reorganize function a bit.
925 (_initialize_x86_64_linux_nat): New function.
926 * config/i386/x86-64linux.mh.
928 2003-08-29 Andrew Cagney <cagney@redhat.com>
930 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
931 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
932 (target_remove_watchpoint): Delete macro.
933 (target_insert_watchpoint): Delete macro.
934 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
935 (remote_mips_stopped_by_watchpoint): Delete declaration.
936 (remote_mips_remove_watchpoint): Delete declaration.
937 (remote_mips_set_watchpoint): Delete declaration.
938 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
939 * remote-mips.c (_initialize_remote_mips): Set
940 "to_insert_watchpoint", "to_stopped_by_watchpoint",
941 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
942 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
943 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
944 (mips_stopped_by_watchpoint): Rename
945 remote_mips_stopped_by_watchpoint.
946 (mips_can_hardware_watchpoint): Rename
947 remote_mips_can_use_hardware_watchpoint, update function
950 2003-08-29 Mark Kettenis <kettenis@gnu.org>
952 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
953 USER_DS. We haven't given them a register number yet.
955 * amd64-nat.h: New file.
956 * amd64-nat.c: New file.
957 * amd64fbsd-nat.c: Include "amd64-nat.h".
958 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
959 (amd64fbsd32_r_reg_offset): New variable.
960 (supply_gregset): Simply call amd64_supply_native_gregset.
961 (fill_gregset): Rename `regno' to `regnum'. Simply call
962 amd64_collect_native_gregset.
963 (fill_fpregset): Rename `regno' to `regnum'.
964 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
965 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
966 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
967 `fpregset_t'. Call amd64_supply_native_gregset instead of
968 supply_gregset. Call x86_64_supply_fxsave instead of
970 (store_inferior_registers): Rename `regno' to `regnum'. Replace
971 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
972 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
973 `fpregset_t'. Call amd64_collect_native_gregset instead of
974 fill_gregset. Call x86_64_collect_fxsave instead of
976 (_initialize_am64fbsd_nat): Initialize
977 amd64_native_gregset32_reg_offset and
978 amd64_native_gregset64_reg_offset.
979 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
981 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
982 null pointer. Fix typo in comment.
984 * regcache.c (supply_register): Reimplement to call
986 (regcache_collect): Reimplement by calling regcache_raw_collect.
988 2003-08-28 Mark Kettenis <kettenis@gnu.org>
990 * regcache.c (register_buffer): Consitify first argument.
991 (regcache_raw_supply, regcache_raw_collect): New
994 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
996 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
997 by Nathan J. Williams.
999 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1001 * lin-lwp.c (wait_lwp): New function, copied from
1002 stop_wait_callback. Clean up.
1003 (stop_wait_callback): Use wait_lwp.
1005 2003-08-28 Andrew Cagney <cagney@redhat.com>
1007 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1008 flavour and disassembler options.
1009 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1010 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1011 deprecated_tm_print_insn_info.
1013 2003-08-27 Andrew Cagney <cagney@redhat.com>
1015 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1016 Use target_read_memory.
1017 (s390_get_frame_info): Update. Do not reference
1018 deprecated_tm_print_insn_info.
1019 (s390_check_function_end, s390_is_sigreturn): Ditto.
1021 2003-08-27 Andrew Cagney <cagney@redhat.com>
1023 * Makefile.in (cris-tdep.o): Update dependencies.
1024 * cris-tdep.c: Include "gdb_assert.h".
1025 (cris_gdbarch_init): Set print_insn.
1026 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1027 (cris_delayed_get_disassembler): Simplify, directly call the
1028 disassembler returned by cris_get_disassembler.
1029 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1030 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1031 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1032 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1033 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1034 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1035 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1036 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1037 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1038 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1039 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1040 (gdb_print_insn_sparc): Delete function.
1041 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1042 deprecated_tm_print_insn_info.
1043 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1044 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1045 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1046 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1047 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1048 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1049 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1050 (s390_gdbarch_init): Set print_insn.
1052 2003-08-27 Andrew Cagney <cagney@redhat.com>
1054 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1055 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1056 * infcall.c (call_function_by_hand): Convert the entry point
1057 address into a code address.
1059 2003-08-27 Andrew Cagney <cagney@redhat.com>
1061 * dsrec.c: Include "gdb_string.h".
1062 * Makefile.in (dsrec.o): Update dependencies.
1064 2003-08-27 Michael Chastain <mec@shout.net>
1066 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1068 2003-08-27 Andrew Cagney <cagney@redhat.com>
1070 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1071 (alpha_osf1_init_abi): Do not set call_dummy_address.
1073 2003-08-27 David Carlton <carlton@kealia.com>
1075 From Randolph Chung <tausq@debian.org>:
1076 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1077 compiles with -Wformat-nonliteral -Werror.
1079 2003-08-26 Jim Blandy <jimb@redhat.com>
1081 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1082 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1083 bfd_lookup_symbol, since we only want symbols in code sections.
1084 (look_for_base): Pass zero as the SECT_FLAGS argument to
1085 bfd_lookup_symbol, since we're not concerned about which section
1088 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1090 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1091 we are frameless or the return address register is already known.
1093 2003-08-26 Andrew Cagney <cagney@redhat.com>
1095 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1096 in size. Add comments.
1098 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1100 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1101 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1103 2003-08-26 Jason Merrill <jason@redhat.com>
1105 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1106 case out of #ifdef MIPS block.
1108 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1111 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1112 available before calling SECT_OFF_TEXT.
1113 * PROBLEMS: Remove description of java/1322.
1115 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1117 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1118 bof, and nat0-nat127 as pseudo-registers.
1119 (ia64_frame_cache): New struct used to cache frame info.
1120 (ia64_register_reggroup_p): New routine used to override default
1121 register grouping so registers without names are still saved and
1123 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1125 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1126 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1127 (ia64_alloc_frame_cache): New routine to create a new
1129 (examine_prologue): Change prototype to add next_frame pointer.
1130 Assume frameless until otherwise proven. Verify that the cfm for
1131 current frame matches the cfm that should occur for the prologues
1132 alloc insn and if equal, mark as not frameless. At end of routine,
1133 if not frameless, calculate registers for the previous frame and store
1134 in the cache, if a cache is provided.
1135 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1136 and pass 0 for next_frame.
1137 (ia64_store_return_value): Change to use convert_typed_floating()
1138 instead of calling ia64_convert_to_raw().
1139 (ia64_extract_return_value): Change to use convert_typed_floating()
1140 instead of calling ia64_convert_to_virtual().
1141 (ia64_frame_cache): New routine to support new frame model.
1142 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1143 (ia64_frame_sniffer): Ditto.
1144 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1145 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1146 (ia64_sigtramp_frame_prev_register): Ditto.
1147 (ia64_sigtramp_frame_sniffer): Ditto.
1148 (ia64_frame_base_address): Ditto.
1149 (ia64_extract_struct_value_address): Change to issue error message.
1150 (ia64_frame_align): New routine to align sp.
1151 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1152 (ia64_push_arguments): Removed. Logic moved to
1153 ia64_push_dummy_call().
1154 (ia64_push_return_address): Ditto.
1155 (ia64_unwind_dummy_id): New function.
1156 (ia64_unwind_pc): Ditto.
1157 (ia64_convert_register_p): Ditto.
1158 (ia64_register_to_value): Ditto.
1159 (ia64_value_to_register): Ditto.
1160 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1161 (ia64_register_byte, ia64_register_raw_size): Ditto.
1162 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1163 (ia64_saved_pc_after_call): Ditto.
1164 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1165 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1166 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1167 (ia64_register_convert_to_raw): Ditto.
1168 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1169 (ia64_init_extra_frame_info): Ditto.
1170 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1171 (ia64_gdbarch_init): Remove registering of deprecated functions that
1172 are no longer used. Add registration of new gdbarch functions.
1173 Remove registering deprecated_write_sp. Replace
1174 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1175 Delete set_gdbarch_deprecated_register_convertible(),
1176 set_gdbarch_deprecated_register_convert_to_virtual(), and
1177 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1178 set_gdbarch_deprecated_register_size(),
1179 set_gdbarch_deprecated_register_bytes(),
1180 set_gdbarch_pcregnum(),
1181 set_gdbarch_deprecated_register_byte(),
1182 set_gdbarch_deprecated_register_raw_size(),
1183 set_gdbarch_deprecated_max_register_raw_size(),
1184 set_gdbarch_deprecated_register_virtual_size(),
1185 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1186 Replace set_gdbarch_deprecated_extract_return_value() with
1187 set_gdbarch_extract_return_value(). Remove calls to:
1188 set_gdbarch_deprecated_saved_pc_after_call();
1189 set_gdbarch_deprecated_frame_chain(),
1190 set_gdbarch_deprecated_frame_saved_pc(),
1191 set_gdbarch_deprecated_frame_init_saved_regs(),
1192 set_gdbarch_deprecated_get_saved_register(),
1193 set_gdbarch_deprecated_call_dummy_words(),
1194 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1195 set_gdbarch_deprecated_init_extra_frame_info(),
1196 set_gdbarch_deprecated_frame_args_address(),
1197 set_gdbarch_deprecated_frame_locals_address(),
1198 and set_gdbarch_deprecated_dummy_write_sp().
1199 Add set_gdbarch_convert_register_p(),
1200 set_gdbarch_register_to_value(),
1201 set_gdbarch_value_to_register(),
1202 set_gdbarch_push_dummy_call(),
1203 set_gdbarch_frame_align(),
1204 set_gdbarch_unwind_dummy_id(),
1205 set_gdbarch_unwind_pc(),
1206 frame_unwind_append_sniffer(),
1207 frame_unwind_append_sniffer(),
1208 and frame_base_set_default().
1210 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1212 * configure.tgt: Document need for special "mipsisa64" handling.
1213 (mipsisa64*-*-linux64): Handle as target linux64.
1214 (mipsisa64*-*-*): Handle as target embed64.
1216 2003-08-18 Michael Chastain <mec@shout.net>
1218 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1221 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1223 * i387-tdep.h: Update copyright date.
1224 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1226 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1227 CFLAGS games to reflect reality.
1229 2003-08-24 Andrew Cagney <cagney@redhat.com>
1231 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1232 GDB_MULTI_ARCH is always non-zero.
1233 * osabi.c (_initialize_gdb_osabi): Ditto.
1234 (gdbarch_init_osabi): Ditto.
1235 * sparc-tdep.c: Ditto for #if code.
1237 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1239 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1241 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1243 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1244 x86_64_supply_fxsave.
1245 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1246 x86_64_supply_fxsave.
1247 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1248 x86_64_supply_fxsave.
1250 2003-08-23 Andreas Jaeger <aj@suse.de>
1252 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1255 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1257 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1258 i387_supply_register.
1259 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1260 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1262 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1264 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1266 * i386bsd-nat.c (supply_fpregset): Adjust call to
1268 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1269 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1271 (store_inferior_registers): Remove extraneous whitespace. Call
1272 i387_fill_fsave instead of fill_fpregset.
1273 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1274 (supply_fpregset): Likewise.
1275 * i386v4-nat.c (supply_fpregset): Adjust call to
1277 * i386-interix-nat.c (supply_fpregset): Adjust call to
1279 * i386-linux-nat.c (supply_fpregset): Adjust call to
1281 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1282 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1283 i387supply_fsave and i387_supply_fxsave.
1284 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1285 Incorporate code from `i387_supply_register.
1286 (i387_supply_register): Remove.
1287 (i387_supply_fxsave): Add `regnum' argument.
1289 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1291 (i387_supply_register): remove prototype.
1294 2003-08-22 Michael Chastain <mec@shout.net>
1296 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1297 Add lines for files in gdb/testsuite/gdb.cp/* that are
1298 still not 8.3 unique.
1300 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1302 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1303 TYPE_VPTR_FIELDNO is valid.
1305 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1307 * utils.c (set_width_command): Remove prototypes.
1308 (set_screen_size): New prototype.
1309 (init_page_info): Simplify by fetching the screen size from
1310 Readline. Call set_screen_size.
1311 (set_screen_size): New function.
1312 (set_width): Add missing whitespace in comment.
1313 (set_width_command): Call set_screen_size.
1314 (set_height_command): New function.
1315 (initialize_utils): Fix formatting. Make "set height" command
1316 call set_height_command. Remove redundant code that turns off
1317 pagination if output isn't a terminal. Remove redundant call to
1320 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1322 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1323 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1324 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1325 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1327 (sparc64_register_info): Give the reister with number
1328 SPARC64_STATE_REGNUM a name.
1329 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1331 (sparc64_push_dummy_call): Take BIAS into account when checking
1333 (sparc_software_single_step): Remove assertions that check whether
1334 NPC and NNPC were zero.
1335 (sparc_supply_rwindow): Make public. Merge functionality with
1336 sparc64_supply_rwindow.
1337 (sparc_fill_rwindow): Make public. Merge functionality with
1338 sparc64_fill_rwindow.
1339 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1340 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1341 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1342 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1343 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1345 * reggroups.c: Add whitespace after declarations of local
1346 variables in functions.
1348 2003-08-21 Michael Chastain <mec@shout.net>
1350 * gdbtypes.h: Change array bound type from an int to enum.
1352 2003-08-21 Andrew Cagney <cagney@redhat.com>
1354 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1355 * config/sparc/tm-sparc.h: Ditto.
1356 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1358 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1360 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1362 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1363 (register_objfile_data, set_objfile_data, objfile_data): New
1365 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1367 (allocate_objfile): Call objfile_alloc_data.
1368 (free_objfile): Call objfile_free_data.
1369 (struct objfile_data): New.
1370 (struct objfile_data_registration): New.
1371 (struct objfile_data_registry): New.
1372 (objfile_data_registry): New variable.
1373 (register_objfile_data): New function.
1374 (objfile_alloc_data, objfile_free_data): New functions.
1375 (set_objfile_data, objfile_data): New functions.
1376 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1377 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1378 (_initialize_dwarf2_frame): New function and prototype.
1380 2003-08-21 Andrew Cagney <cagney@redhat.com>
1382 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1383 a specific architecture.
1384 * arch-utils.h (set_architecture_from_arch_mach): Delete
1386 (target_architecture_hook): Delete declaration.
1387 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1388 (default_float_format): Assume GDB_MULTI_ARCH.
1389 (default_double_format): Assume GDB_MULTI_ARCH.
1390 (set_endian_from_file): Delete function.
1391 (arch_ok): Delete function.
1392 (set_arch): Delete function.
1393 (set_architecture_from_arch_mach): Delete function.
1394 (set_architecture_from_file): Delete function.
1395 (set_architecture): Assume GDB_MULTI_ARCH.
1396 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1398 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1400 Rewrite FreeBSD/sparc64 native configuration.
1401 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1402 * sparc64fbsd-nat.c: New file.
1403 * sparc64fbsd-tdep.c: New file.
1404 * sparc64-tdep.c sparc64-tdep.h: New files.
1405 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1406 sparc64fbsd-tdep.o): New dependencies.
1407 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1408 and sparc64fbsd-tdep.c.
1409 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1410 * config/sparc/fbsd.mh: Remove copyright notice.
1411 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1413 * config/sparc/fbsd.mt: Remove copyright notice.
1414 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1415 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1416 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1417 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1418 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1419 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1420 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1421 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1423 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1424 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1426 2003-08-21 Michael Chastain <mec@shout.net>
1428 * symtab.h: Add doco on the space critical structures and
1429 some measurements of space usage.
1431 2003-08-21 Michael Snyder <msnyder@redhat.com>
1433 * tracepoint.c (trace_dump_command): Trace break address
1434 is subject to DECR_PC_AFTER_BREAK.
1435 (set_traceframe_context): Make "trace_line" an int.
1436 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1438 2003-08-20 Michael Snyder <msnyder@redhat.com>
1440 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1441 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1442 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1444 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1445 functions, replace sh_push_dummy_call.
1446 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1448 2003-08-20 Michael Chastain <mec@shout.net>
1450 * gdbtypes.h (struct main_type): Rearrange to save space.
1452 2003-08-20 Michael Snyder <msnyder@redhat.com>
1454 * trad-frame.c: Comment typo fix.
1456 2003-08-20 Michael Snyder <msnyder@redhat.com>
1457 Kevin Buettner <kevinb@redhat.com>
1459 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1460 (frv_frame_init_saved_regs): Add declaration.
1461 (frame_extra_info): Add new field ``saved_regs''.
1462 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1463 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1464 Update frame related code.
1465 (frv_extract_struct_value_address): Adjust formatting.
1466 * Makefile.in (frv-tdep.o): Update dependencies.
1467 * config/frv/tm-frv.h (target_insert_watchpoint)
1468 (target_remove_watchpoint, target_insert_hw_breakpoint)
1469 (target_remove_hw_breakpoint): Delete these macros.
1470 (remote_insert_watchpoint, remote_remove_watchpoint)
1471 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1474 2003-08-20 Michael Chastain <mec@shout.net>
1476 * defs.h (ENUM_BITFIELD): New macro.
1477 * symtab.h (ENUM_BITFIELD): Use it.
1478 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1480 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1482 * MAINTAINERS (write after approval): Add myself.
1484 2003-08-18 Andrew Cagney <cagney@redhat.com>
1486 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1487 * gdbarch.h, gdbarch.c: Re-generate.
1488 * infcall.c (call_function_by_hand): Adjust the SP by
1489 frame_red_zone_size before allocating any stack space.
1490 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1491 * x86-64-tdep.c (x86_64_frame_align): New function.
1492 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1494 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1495 Remove code adjusting SP so that it skips over the Red Zone.
1497 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1499 * NEWS (New native configurations): Mention FreeBSD/amd64.
1501 2003-08-18 Andrew Cagney <cagney@redhat.com>
1503 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1504 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1506 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1508 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1510 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1512 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1514 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1516 * i386-linux-nat.c: Include "linux-nat.h".
1517 (child_post_startup_inferior): New function.
1519 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1521 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1522 at the start of a frameless function. This probably fixes PR
1525 2003-08-17 Michael Chastain <mec@shout.net>
1527 * symfile.c (find_sym_fns): Remove special case for apollo target.
1529 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1531 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1532 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1533 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1534 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1535 (linux_supports_tracevforkdone): New function.
1536 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1538 (child_follow_fork): Handle vfork.
1539 (linux_handle_extended_wait): Likewise. Also handle exec.
1540 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1541 * NEWS: Mention fork tracing.
1543 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1545 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1547 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1549 * Makefile.in (i386-linux-nat.o): Update dependencies.
1550 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1551 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1552 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1553 * i386-linux-nat.c: Include "linux-nat.h".
1554 (child_post_startup_inferior): New function.
1555 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1556 * infptrace.c (kill_inferior): Wrap in #ifdef.
1557 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1558 attaching to each LWP.
1559 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1560 (init_lin_lwp_ops): Fill in some more operations.
1561 * linux-nat.h (linux_enable_event_reporting)
1562 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1564 * linux-nat.c (linux_enable_event_reporting): New function.
1565 (child_post_attach, linux_child_post_startup_inferior)
1566 (child_post_startup_inferior, child_follow_fork)
1567 (linux_handle_extended_wait, kill_inferior): New functions.
1569 2003-08-16 Andrew Cagney <cagney@redhat.com>
1571 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1572 * gdbarch.h, gdbarch.c: Re-generate.
1574 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1576 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1578 2003-08-16 Andrew Cagney <cagney@redhat.com>
1580 * NEWS: Mention that "set prompt-escape-char" was deleted.
1581 * top.c (get_prompt_1): Delete function.
1582 (gdb_prompt_escape):
1583 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1584 prompt-escape-char" command.
1585 (MAX_PROMPT_SIZE): Delete macro.
1586 (get_prompt): Simplify, do not call get_prompt_1.
1588 2003-08-16 Andrew Cagney <cagney@redhat.com>
1590 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1591 -Werror. -Wformat-nonliteral problems.
1593 2003-08-15 J. Brobecker <brobecker@gnat.com>
1595 Further multiarching work mostly for hppa64-*-hpux11:
1596 * hppa-tdep.h: New file.
1597 * hppa-tdep.c: #include hppa-tdep.c.
1598 (hppa32_num_regs): Renamed from hppa_num_regs.
1599 (hppa64_num_regs): New constant.
1600 (hppa64_call_dummy_breakpoint_offset): New constant.
1601 (hppa32_call_dummy_length): New constant.
1602 (hppa64_call_dummy_length): New constant.
1603 (hppa32_stack_align): Make name 32bit explicit.
1604 (hppa32_register_virtual_type): Likewise.
1605 (hppa32_extract_return_value): Likewise.
1606 (hppa32_use_struct_convention): Likewise.
1607 (hppa32_store_return_value): Likewise.
1608 (hppa64_register_virtual_type): New function.
1609 (hppa64_extract_return_value): New function.
1610 (hppa64_use_struct_convention): New function.
1611 (hppa64_store_return_value): New function.
1612 (hppa_frame_locals_address): Remove declaration, function does
1614 (hppa_register_byte): Add support for PA64 ABI.
1615 (hppa_gdbarch_init): Add support for PA64 ABI.
1616 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1617 Make name 32bit explicit.
1618 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1619 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1620 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1621 (hppa64_hpux_frame_base_before_sigtramp): New function.
1622 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1623 * config/pa/tm-hppa64.h: Remove macros that are no longer
1624 necessary now that the gdbarch vector is properly setup.
1625 Transform some macros into function calls. Some minor cleanup.
1626 * config/pa/tm-hppah.h: Update function calls in macros
1627 following the function renaming in hppa-hpux-tdep.c.
1628 * Makefile.in (hppa_tdep_h): New variable.
1629 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1631 2003-08-14 Michael Snyder <msnyder@redhat.com>
1633 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1635 2003-08-13 J. Brobecker <brobecker@gnat.com>
1637 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1638 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1641 2003-08-13 Michael Snyder <msnyder@redhat.com>
1643 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1644 (frv_saved_pc_after_call): Use deprecated ftype.
1645 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1646 (frv_remote_translate_xfer_address): Remove.
1647 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1649 2003-08-13 J. Brobecker <brobecker@gnat.com>
1651 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1652 initialization after the common gdbarch initialization, not before.
1654 2003-08-13 J. Brobecker <brobecker@gnat.com>
1656 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1657 (ADDR_BITS_REMOVE): Remove, redundant.
1659 2003-08-13 J. Brobecker <brobecker@gnat.com>
1661 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1662 gdbarch method to clear the 2 low bits of text addresses.
1664 2003-08-12 Andrew Cagney <cagney@redhat.com>
1666 * Makefile.in (dsrec.o): Update dependencies.
1667 * dsrec.c: Include "gdb_assert.h".
1668 (make_srec): Use snprintf instead of sprintf, use a literal format
1671 2003-08-12 Andrew Cagney <cagney@redhat.com>
1673 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1674 FRAME_OBSTACK_ZALLOC.
1676 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1678 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1681 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1683 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1684 amd64fbsd_sc_reg_offset): Add extern declarations.
1685 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1688 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1690 * MAINTAINERS (write after approval): Update my mail address.
1692 2003-08-10 Andrew Cagney <cagney@redhat.com>
1694 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1696 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1698 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1699 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1700 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1701 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1702 i386bsd_sc_reg_offset): Add extern declarations.
1703 * i386obsd-nat.c: Include "i386-tdep.h"
1704 (_initialize_i386obsd_nat): Remove extern declarations.
1705 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1707 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1710 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1711 instead of frame_read_register.
1712 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1713 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1715 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1716 instead of frame_unwind_unsigned_register. Use
1717 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1718 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1719 instead of read_register. Use builtin_type_void_data_ptr instead
1720 of builtin_type_void_func_ptr when extracting the address of the
1722 (i386_extract_return_value, i386_store_return_value,
1723 i386_pseudo_register_read, i386_pseudo_register_write): Use
1724 register_size instead REGISTER_RAW_SIZE.
1726 2003-08-10 Andrew Cagney <cagney@redhat.com>
1728 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1729 sprintf. Make "name" constant.
1731 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1733 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1734 instead of frame_read_register.
1735 (i387_print_float_info): Use get_frame_register and
1736 get_frame_register_unsigned instead of frame_register_read.
1738 * i386fbsd-nat.c: Include "i386-tdep.h".
1739 (child_resume): Make `eflags' an ULONGEST. Use
1740 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1741 instead of register_read and register_write.
1743 * i386bsd-nat.c (fetch_inferior_registers,
1744 store_inferior_registers): Don't use && at the end of a line.
1745 (_initialize_i386bsd_nat): Fix typo.
1747 * frame.c (_initialize_frame): Add missing backslash.
1749 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1750 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1751 and supply_register instead of manipulating the register buffer
1754 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1755 * config/i386/nm-i386sol2.h
1756 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1758 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1759 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1760 instructions that GCC likes to mingle into the prologue. Fixes
1761 gdb/1253 and gdb/1255.
1763 2003-08-09 Andrew Cagney <cagney@redhat.com>
1766 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1767 * command.h (add_setshow_uinteger_cmd): Declare.
1768 * frame.c (set_backtrace_cmd): New function.
1769 (show_backtrace_cmd): New function.
1770 * frame.c (_initialize_frame): Replace "set/show
1771 backtrace-below-main" with "set/show backtrace past-main". Add
1772 command "set/show backtrace limit".
1773 (backtrace_past_main): Rename "backtrace_below_main".
1774 (backtrace_limit): New variable.
1775 (get_prev_frame): Update. Check the backtrace_limit.
1777 2003-08-09 Andrew Cagney <cagney@redhat.com>
1779 * defs.h (xstrprintf): Declare.
1780 * utils.c (xstrprintf): New function.
1781 * breakpoint.c (insert_breakpoints): Replace sprintf and
1782 non-literal format strings, with xstrprintf and cleanups.
1783 (delete_breakpoint,breakpoint_re_set): Ditto.
1784 (commands_command, insert_breakpoints): Ditto.
1785 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1786 (break_at_finish_command_1): Ditto.
1788 2003-08-09 Andrew Cagney <cagney@redhat.com>
1790 * MAINTAINERS (language support): List Adam Fedor as Objective C
1793 2003-08-08 J. Brobecker <brobecker@gnat.com>
1795 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1796 are now multiarched.
1798 2003-08-08 J. Brobecker <brobecker@gnat.com>
1800 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1801 longer necessary now that hppa64 is partially multiarch'ed.
1803 2003-08-08 Andrew Cagney <cagney@redhat.com>
1805 * interps.c (interp_set): Check for a NULL "old_interp".
1807 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1809 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1810 (install-only): Support DESTDIR.
1811 (uninstall): Likewise.
1812 (install-gdbtk): Likewise.
1814 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1816 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1817 contains something meaningful at all times.
1819 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1821 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1823 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1825 * MAINTAINERS (write after approval): Added self.
1827 2003-08-07 Andrew Cagney <cagney@redhat.com>
1829 * inferior.h (AT_SYMBOL): Define.
1830 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1831 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1832 * mips-tdep.c (mips_call_dummy_address): Delete function.
1833 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1834 set call_dummy_address.
1836 2003-08-07 Andrew Cagney <cagney@redhat.com>
1838 * language.c (op_error): Delete function.
1839 (binop_type_check): Delete function.
1840 * language.h (type_op_error, range_op_error): Delete macros.
1841 (op_error): Delete declaration.
1843 2003-08-07 Andrew Cagney <cagney@redhat.com>
1845 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1847 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1849 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1850 (x86_64_push_arguments): Skip the red zone.
1852 2003-08-05 Andrew Cagney <cagney@redhat.com>
1854 * reggroups.c (reggroup_next): Check for the final entry.
1856 2003-08-04 Andrew Cagney <cagney@redhat.com>
1858 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1859 * cli/cli-script.c (define_command): Call query directly, instead
1860 of passing it a buffer.
1861 * ocd.c (ocd_error): Pass error a constant format string.
1862 * remote-mips.c (mips_error): Use fputs_filtered.
1864 * solib-svr4.c (_initialize_svr4_solib): Update
1865 register_gdbarch_data call.
1866 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1868 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1869 (register_gdbarch_data): Delete "free" parameter. Update
1871 * gdbarch.h, gdbarch.c: Re-generate.
1872 * reggroups.c (_initialize_reggroup): Update.
1873 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1874 * frame-base.c (_initialize_frame_base): Update.
1875 * frame-unwind.c (_initialize_frame_unwind): Update.
1876 * user-regs.c (_initialize_user_regs): Update.
1877 * remote.c (_initialize_remote): Update.
1878 * regcache.c (_initialize_regcache): Update.
1880 * regcache.c (xfree_regcache_descr): Delete function.
1881 (_initialize_regcache): Update call to register_gdbarch_data.
1882 (init_regcache_descr, init_legacy_regcache_descr): Use
1883 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1885 * remote.c (free_remote_state): Delete function.
1886 (_initialize_remote): Update register_gdbarch_data.
1887 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1888 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1890 2003-08-04 Andrew Cagney <cagney@redhat.com>
1892 * reggroups.c (struct reggroup_el): Define.
1893 (struct reggroups): Delete field "nr_group". Replace array
1894 "group" with a "first" to "last" linked list.
1895 (reggroups_init): Update. Allocate using gdbarch's obstack.
1896 (reggroups_free): Delete function.
1897 (add_group): Update. Add "el" parameter.
1898 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1899 (default_groups): Update.
1900 (reggroup_next): Replace reggroups.
1901 (reggroups_dump): Update.
1902 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1903 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1904 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1906 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1908 * Makefile.in (tui-interp.o): Update dependencies.
1910 2003-08-04 David Carlton <carlton@kealia.com>
1912 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1913 to internal_error call.
1914 * source.c (forward_search_command): Add "%s" format argument.
1915 (reverse_search_command): Ditto.
1916 * top.c (quit_confirm): Ditto.
1917 * cli/cli-setshow.c (do_setshow_command): Ditto.
1918 * cp-valprint.c (cp_print_class_method): Replace
1919 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1920 (cp_print_class_member): Ditto.
1921 * event-top.c (command_line_handler): Ditto.
1922 * linux-proc.c (linux_info_proc_cmd): Ditto.
1923 * p-typeprint.c (pascal_type_print_base): Ditto.
1924 * p-valprint.c (pascal_object_print_class_method): Ditto.
1925 (pascal_object_print_class_member): Ditto.
1926 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1927 * remote.c (remote_cisco_section_offsets): Ditto.
1928 * top.c (command_line_input): Ditto.
1929 * utils.c (vwarning,error_stream,quit): Ditto.
1930 * valprint.c (print_floating,print_binary_chars)
1931 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1933 2003-08-04 Andrew Cagney <cagney@redhat.com>
1935 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1937 2003-08-02 Andrew Cagney <cagney@redhat.com>
1939 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1940 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1943 2003-08-02 Andrew Cagney <cagney@redhat.com>
1945 * Makefile.in: Update all dependencies and definitions.
1947 2003-08-02 Adam Fedor <fedor@gnu.org>
1949 * linespec.c (is_objc_method_format): New function
1950 (decode_line_1, locate_first_half): Use it.
1953 2003-08-01 Andrew Cagney <cagney@redhat.com>
1955 * NEWS: Mention that m32r is multi-arch.
1956 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1957 * configure.tgt: Recognize m32r-*-*.
1958 * config/m32r/tm-m32r.h: Delete file.
1959 * config/m32r/m32r.mt: New file.
1960 * m32r-rom.c (m32r_upload_command): Use hostent only when
1961 gethostname succeeds, in order to avoid a compilation
1963 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1966 2003-08-01 Michael Snyder <msnyder@redhat.com>
1968 * sh-tdep.c (sh_frame_align): New gdbarch method.
1969 (sh_gdbarch_init): Set up frame_align method.
1971 2003-07-31 Michael Snyder <msnyder@redhat.com>
1973 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1974 which is already covered by the new frames infrastructure.
1976 2003-07-31 Andrew Cagney <cagney@redhat.com>
1978 * user-regs.c (struct user_reg): Add "next" link.
1979 (struct user_regs): Replace "user" with "first" and "last" links.
1980 (append_user_reg): Add pre-allocated "reg" parameter.
1981 (builtin_user_regs): Provide initial value for "last".
1982 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1983 (user_regs_init): Allocate memory from the gdbarch obstack.
1984 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1985 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1987 (usernum_to_user_reg): New function.
1988 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1989 (value_of_user_reg): Use usernum_to_user_reg.
1990 (user_regs_free): Delete function.
1991 (_initialize_user_regs): Update register_gdbarch_data call.
1993 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1995 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1997 2003-07-30 Michael Snyder <msnyder@redhat.com>
1999 * value.h (value_being_returned): Add a struct_addr argument.
2000 * infcall.c (call_function_by_hand): Pass struct_addr to
2001 value_being_returned.
2002 * infcmd.c (print_return_value): Pass zero as struct_addr.
2003 * values.c (value_being_returned): If struct_addr is passed,
2004 use it instead of trying to recover it from the inferior.
2006 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2008 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2009 the prologue analyzer won't need to attempt to extract the pc
2010 value from the woefully incomplete dummy frame.
2011 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2012 possible. Disable code which modifies the frame.
2014 2003-07-28 Andrew Cagney <cagney@redhat.com>
2016 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2018 (annotate_breakpoints_table, annotate_record): Ditto.
2019 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2020 (annotate_field_name_end, annotate_field_value): Ditto.
2021 (annotate_field_end, annotate_frame_source_begin): Ditto.
2022 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2023 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2024 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2025 (annotate_frame_address_end, annotate_frame_address): Ditto.
2026 (annotate_frame_args, annotate_frame_end): Ditto.
2027 (annotate_frame_where, annotate_arg_begin): Ditto.
2028 (annotate_arg_name_end, annotate_arg_value): Ditto.
2029 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2030 (annotate_function_call, annotate_signal_name): Ditto.
2031 (annotate_signal_string, annotate_signal_name_end): Ditto.
2032 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2033 (annotate_value_begin, annotate_value_history_value): Ditto.
2034 (annotate_value_history_end, annotate_value_end): Ditto.
2035 (annotate_display_begin, annotate_display_number_end): Ditto.
2036 (annotate_display_format, annotate_display_expression): Ditto.
2037 (annotate_display_expression_end, annotate_display_value): Ditto.
2038 (annotate_display_end, annotate_array_section_begin): Ditto.
2039 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2040 (annotate_elt, annotate_array_section_end): Ditto.
2042 2003-07-28 Andrew Cagney <cagney@redhat.com>
2044 * regcache.c (struct regcache_descr): Update comments on
2046 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2047 sizeof_raw_register_valid_p.
2048 (init_regcache_descr): Set nr_raw_registers and
2049 sizeof_raw_register_valid_p before calling
2050 init_legacy_regcache_descr.
2052 2003-07-28 Andrew Cagney <cagney@redhat.com>
2054 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2057 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2059 * thread.c (info_threads_command): Use get_selected_frame ().
2060 Check that there is at least one non-sentinel frame.
2062 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2064 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2065 (m68hc11_pop_frame): Remove.
2066 (m68hc11_frame_saved_pc): Remove.
2067 (m68hc11_frame_chain): Remove.
2068 (m68hc11_frame_init_saved_regs): Remove.
2069 (m68hc11_init_extra_frame_info): Remove.
2070 (m68hc11_store_struct_return): Remove.
2071 (m68hc11_saved_pc_after_call): Remove.
2073 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2075 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2076 frame unwind information.
2077 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2078 and adapted for frame unwinding.
2079 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2080 (m68hc11_unwind_pc): New function.
2081 (m68hc11_frame_unwind_cache): New function to analyze frames.
2082 (m68hc11_frame_this_id): New function to create new frame struct.
2083 (m68hc11_frame_prev_register): New function to unwind a register from
2085 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2086 (m68hc11_frame_p): New function for the above.
2087 (m68hc11_frame_base_address): New function to return fp of frame.
2088 (m68hc11_frame_args_address): Update for frame.
2089 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2090 (m68hc11_unwind_sp): New function.
2091 (m68hc11_unwind_dummy_id): New function.
2092 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2095 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2097 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2098 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2099 when we are beyond the current pc.
2101 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2103 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2104 from m68hc11_push_arguments.
2105 (m68hc11_push_arguments): Remove.
2106 (m68hc11_push_return_address): Remove.
2107 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2108 handlers; remove deprecated_extra_stack_alignment_needed.
2110 2003-07-27 Andrew Cagney <cagney@redhat.com>
2112 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2113 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2114 REAL_PC and not the pointer.
2115 * hppa-hpux-tdep.c: Include frame.h
2117 2003-07-27 Andrew Cagney <cagney@redhat.com>
2119 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2120 GDB_MULTI_ACH_PARTIAL.
2122 2003-07-27 Andrew Cagney <cagney@redhat.com>
2124 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2125 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2126 operator at start and not end of line.
2127 (decode_prologue): Ditto.
2128 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2129 frame_unwind_register_unsigned instead of
2130 frame_unwind_unsigned_register.
2131 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2133 (m32r_push_dummy_call): Use register_size instead of
2135 (m32r_frame_sniffer): Replace m32r_frame_p.
2136 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2137 * m32r-rom.c (report_transfer_performance): Delete extern
2139 (m32r_load, m32r_upload_command): Use print_transfer_performance
2140 instead of report_transfer_performance.
2141 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2142 / add_show_from_set.
2144 2003-07-26 Andrew Cagney <cagney@redhat.com>
2146 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2147 store_return_value and extract_struct_value_address.
2149 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2152 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2153 NULL, default to the section containing PC.
2155 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2157 * NEWS: Mention "regs" deprecated for m68hc11 too.
2159 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2160 (m68hc11_print_register): New function to print out one register.
2161 (m68hc11_print_registers_info): New function to print registers.
2162 (show_regs): Deprecate and use the above.
2163 (m68hc11_gdbarch_init): Install the print_registers_info.
2165 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2167 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2168 that we have a SIGTRAP before returning non-zero.
2170 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2171 Elena Zannoni <ezannoni@redhat.com>
2173 * linespec.c (decode_line_2): Avoid crash if
2174 find_function_start_sal() returns empty record.
2176 2003-07-23 Andreas Schwab <schwab@suse.de>
2178 * ia64-tdep.c (ia64_print_insn): New function.
2179 (ia64_gdbarch_init): Set print_insn to it.
2180 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2181 deprecated_tm_print_insn_info.
2183 2003-07-22 Michael Snyder <msnyder@redhat.com>
2185 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2186 handle 8-bit returns (long long).
2187 (h8300h_extract_return_value): Ditto.
2188 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2190 2003-07-22 Andrew Cagney <cagney@redhat.com>
2192 * gdbarch.c Include "gdb_obstack.h".
2193 (struct gdbarch): Add an "obstack".
2194 (alloc_gdbarch_data): Allocate the gdbarch data using
2195 GDBARCH_OBSTACK_CALLOC.
2196 (free_gdbarch_data): Delete function.
2197 (gdbarch_obstack_zalloc): New function.
2198 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2199 Assert that the architecture is not initialized.
2200 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2201 vector from the obstack.
2202 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2203 architecture obstack.
2204 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2205 (set_gdbarch_data): Assert that the data is not initialized.
2206 (struct gdbarch_data): Delete member "free".
2207 (register_gdbarch_data): Do not initialize "free".
2208 * gdbarch.h, gdbarch.c: Re-generate.
2210 2003-07-22 Andrew Cagney <cagney@redhat.com>
2212 * configure.in (build_warnings): Add -Wformat-nonliteral.
2213 * configure: Re-generate.
2215 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2217 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2219 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2221 * findvar.c (read_var_value): Remove case for thread local storage
2222 variables. It is now entirely handled by the dwarf2 location
2224 * printcmd.c (address_info): Ditto.
2225 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2227 (struct symbol): Remove objfile field, which was used by
2228 LOC_THREAD_LOCAL_STATIC only.
2229 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2230 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2231 usage of objfile pointer.
2232 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2233 thread local variables.
2234 Add include of objfiles.h.
2235 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2237 * Makefile.in (dwarf2loc.o): Update dependencies.
2239 2003-07-22 Andrew Cagney <cagney@redhat.com>
2241 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2243 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2244 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2245 (struct value): Add opaque declaration.
2246 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2248 2003-07-21 Andrew Cagney <cagney@redhat.com>
2250 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2251 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2253 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2255 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2256 regcache_cooked_read_unsigned instead of read_register.
2257 (m68hc11_saved_pc_after_call): Likewise.
2258 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2259 instead of write_register.
2260 (m68hc11_register_type): New function.
2261 (m68hc11_register_virtual_type): Remove.
2262 (m68hc11_store_return_value): Convert to use the regcache.
2263 (m68hc11_extract_struct_value_address): Likewise.
2264 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2265 m68hc11_register_type; undeprecate store_return_value and
2266 extract_struct_value_address.
2268 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2270 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2271 and translate to use regcache.
2272 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2274 2003-07-18 Andrew Cagney <cagney@redhat.com>
2276 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2277 * gdbarch.h, gdbarch.c: Re-generate.
2278 * i386-tdep.c (i386_gdbarch_init): Do not set
2279 DWARF2_BUILD_FRAME_INFO.
2280 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2282 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2283 DWARF2_BUILD_FRAME_INFO.
2285 2003-07-18 Andrew Cagney <cagney@redhat.com>
2287 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2288 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2290 2003-07-18 Andrew Cagney <cagney@redhat.com>
2292 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2293 frame_unwind_address_in_block, instead of frame_pc_unwind.
2294 (dwarf2_frame_cache): Ditto.
2296 2003-07-18 Andrew Cagney <cagney@redhat.com>
2298 * user-regs.h (struct gdbarch): Declare opaque.
2299 * ui-out.h (struct ui_file): Declare opaque.
2300 * dwarf2-frame.h (struct frame_info): Declare opaque.
2302 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2304 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2306 (procfs_meminfo): Change strerror to safe_strerror.
2307 (procfs_can_run): Remove K&R badness.
2309 2003-07-17 Michael Snyder <msnyder@redhat.com>
2311 * remote-sim.c: Comment typo fix.
2313 2003-07-17 Andrew Cagney <cagney@redhat.com>
2315 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2317 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2318 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2319 GDB_MULTI_ARCH_PARTIAL.
2321 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2323 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2324 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2325 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2327 2003-07-16 Theodore A. Roth <troth@openavr.org>
2329 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2331 (avr_frame_unwind_cache): Don't unwind FP for main.
2333 Save the computed prev_sp.
2334 (avr_saved_regs_unwinder): Remove function.
2335 (avr_frame_prev_register): Use PC unwind logic from
2336 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2338 2003-07-16 Andrew Cagney <cagney@redhat.com>
2340 * frame-base.h (frame_base_p_ftype): Delete definition.
2341 (frame_base_append_predicate): Delete declaration.
2342 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2343 (frame_unwind_append_predicate): Delete declaration.
2344 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2345 (append_predicate): Delete parameter "p".
2346 (frame_unwind_append_predicate): Delete function.
2347 (frame_unwind_append_sniffer): Update call to append_predicate.
2348 (frame_unwind_free): Delete function.
2349 (_initialize_frame_unwind): Pass NULL as "free" to
2350 register_gdbarch_data.
2351 (frame_unwind_init): Append the dummy_frame_sniffer.
2352 (frame_unwind_find_by_frame): Simplify.
2353 * frame-base.c (struct frame_base_table): Delete field "p".
2354 (append_predicate): Delete parameter "p".
2355 (frame_base_append_predicate): Delete function.
2356 (frame_base_append_sniffer): Update call to append_predicate.
2357 (frame_base_free): Delete function.
2358 (frame_base_find_by_frame): Simplify.
2359 (_initialize_frame_base): Pass NULL as "free" to
2360 register_gdbarch_data.
2361 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2362 (x86_64_sigtramp_frame_sniffer): Replace
2363 "x86_64_sigtramp_frame_p".
2364 (x86_64_init_abi): Set the frame unwind sniffers.
2365 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2366 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2367 (m68k_gdbarch_init): Set the frame unwind sniffers.
2368 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2369 "i386_sigtramp_frame_p".
2370 (i386_frame_sniffer): Replace "i386_frame_p".
2371 (i386_gdbarch_init): Set the frame unwind sniffers.
2372 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2373 (avr_gdbarch_init): Set the frame unwind sniffers.
2374 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2375 "alpha_sigtramp_frame_p"
2376 (alpha_heuristic_frame_sniffer): Replace
2377 "alpha_heuristic_frame_p".
2378 (alpha_gdbarch_init): Set the frame unwind sniffers.
2379 (alpha_dwarf2_init_abi): Ditto.
2380 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2381 "alpha_debug_frame_p".
2382 (alpha_mdebug_frame_base_sniffer): Replace
2383 "alpha_mdebug_frame_base_p".
2384 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2385 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2386 (d10v_gdbarch_init): Set the frame unwind sniffer.
2387 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2388 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2389 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2390 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2391 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2392 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2394 2003-07-16 Michael Snyder <msnyder@redhat.com>
2396 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2397 should go thru sh_dsp_register_sim_regno, else the dsp regs
2398 will not get the right values.
2400 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2402 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2403 deprecated_store_floating by call to store_typed_floating.
2404 (sh_sh4_register_convert_to_raw): Substitute call to
2405 deprecated_extract_floating by call to extract_typed_floating.
2407 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2409 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2411 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2413 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2414 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2415 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2417 (do_pseudo_register): Remove.
2418 (sh_push_dummy_code): New function.
2419 (sh64_store_struct_return): Rename from sh_store_struct_return.
2420 Only called for sh64 now.
2421 (sh_extract_struct_value_address): Regcache'ify.
2422 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2423 and accomodate new tasks.
2424 (sh64_push_return_address): Rename from sh_push_return_address.
2425 Only called for sh64 now.
2426 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2428 (sh3e_sh4_extract_return_value): Regcache'ify.
2429 (sh_default_store_return_value): Ditto.
2430 (sh3e_sh4_store_return_value): Ditto.
2431 (sh_default_register_byte): Remove.
2432 (sh_sh4_register_byte): Remove.
2433 (sh_default_register_raw_size): Remove.
2434 (sh_sh4_register_raw_size): Remove.
2435 (sh_register_virtual_size): Remove.
2436 (sh_sh3e_register_virtual_type): Remove.
2437 (sh_sh3e_register_type): New function.
2438 (sh_sh4_register_virtual_type): Remove.
2439 (sh_sh4_register_type): New function.
2440 (sh_default_register_virtual_type): Remove.
2441 (sh_default_register_type): New function.
2442 (do_fv_register_info): Add parameters to accomodate call from
2443 sh_print_registers_info.
2444 (do_dr_register_info): Ditto.
2445 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2446 Add parameters to accomodate call from sh_print_registers_info.
2447 (sh_do_fp_register): Ditto.
2448 (sh64_do_pseudo_register): Call do_dr_register_info,
2449 do_fv_register_info and sh_do_fp_register with default parameters.
2450 (sh_do_register): Add parameters to accomodate call from
2451 sh_print_registers_info.
2452 (sh_print_register): Ditto.
2453 (sh_print_registers_info): Rename from sh_do_registers_info.
2454 Add parameters to be used as gdbarch_print_registers_info
2455 implementation. Accomodate removed do_pseudo_register function
2457 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2458 function pointer. Call sh_print_register with default parameters.
2459 (sh64_do_registers_info): Call sh_print_registers_info instead of
2460 sh_do_registers_info.
2461 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2462 detection of deprecated vs. non-deprecated functionality.
2463 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2464 function pointer assignments by direct function calls.
2466 2003-07-15 Andrew Cagney <cagney@redhat.com>
2468 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2469 (frame_register_unwind, create_new_frame): Ditto.
2470 (legacy_get_prev_frame, get_frame_type): Ditto.
2471 (get_frame_base_address): Use frame_base_find_by_frame.
2472 (get_frame_locals_address): Use frame_base_find_by_frame.
2473 (get_frame_args_address): Use frame_base_find_by_frame.
2474 * frame-base.h (frame_base_sniffer_ftype): Declare.
2475 (frame_base_append_sniffer): Declare.
2476 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2477 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2478 (frame_base_append_sniffer): New function.
2479 (frame_base_append_predicate): Add a NULL sniffer.
2480 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2481 (struct frame_base_table): Add "sniffer".
2482 (frame_base_free): Free the "sniffer" table.
2483 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2484 (frame_unwind_append_sniffer): Declare.
2485 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2486 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2487 (struct frame_unwind_table): Add "sniffer", delete "middle".
2488 (append_predicate): Add "sniffer" parameter, append the sniffer.
2489 (frame_unwind_init): Update append_predicate call.
2490 (frame_unwind_append_sniffer): New function.
2491 (frame_unwind_append_predicate): Update append_predicate call.
2492 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2494 2003-07-15 Andrew Cagney <cagney@redhat.com>
2496 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2497 before code inhibiting repeated unwind attempts. Add to
2498 commentary on that test's problems.
2499 * blockframe.c (inside_main_func): Look for "main" in the minimal
2501 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2504 2003-07-15 Andrew Cagney <cagney@redhat.com>
2506 * complaints.c (struct explanation): Define.
2507 (struct complaints): Change type of "explanation" to "struct
2509 (symfile_explanations): Convert to a "struct explanation" table.
2510 (vcomplaint): Update.
2512 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2514 * x86-64-linux-nat.c (regmap): Removed.
2515 (supply_gregset, fill_gregset): Call
2516 x86_64_linux_(fill,supply)_gregset functions.
2517 * x86-64-linux-tdep.c (USER_*): New defines.
2518 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2519 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2521 (fetch_core_registers): Ditto.
2522 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2523 * x86-64-linux-tdep.h: New file.
2524 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2526 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2528 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2530 * x86-64-tdep.c (x86_64_store_return_value): Use
2531 regcache_cooked_write_part instead of regcache_cooked_write.
2533 * configure.host: Add x86_64-*-freebsd*.
2534 * configure.tgt: Add x86_64-*-freebsd*.
2535 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2536 * amd64fbsd-nat.c: New file.
2537 * amd64fbsd-tdep.c: New file.
2538 * config/i386/nm-fbsd64.h: New file.
2539 * config/i386/fbsd64.mh: New file.
2540 * config/i386/fbsd64.mt: New file.
2542 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2544 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2545 `sc_regs_offset' and `sc_fpregs_offset'.
2546 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2547 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2548 (alpha_sigtramp_register_address): Rewrite to use new members of
2549 `struct gdbarch_tdep'.
2550 (alpha_gdbarch_init): Initialize new members of struct
2552 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2553 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2554 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2555 (alphafbsd_pc_in_sigtramp): Implement.
2556 (alphafbsd_sigtramp_offset): New function.
2557 (alphafbsd_sigcontext_addr): New function.
2558 (alphafbsd_init_abi): Initialize signal trampoline related members
2559 of `struct gdbarch_tdep'.
2560 (_initialize_alphafbsd_tdep): Add prototype.
2562 2003-07-11 Theodore A. Roth <troth@openavr.org>
2564 * Makefile.in (install-only): Quote sed expression when generating
2567 2003-07-11 Richard Henderson <rth@redhat.com>
2569 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2570 * dwarf2-frame.c: Include complaints.h.
2571 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2572 variable initialization; return NULL on error.
2573 (decode_frame_entry): New.
2575 2003-07-11 Andrew Cagney <cagney@redhat.com>
2577 * frame.h (frame_address_in_block): Delete declaration.
2578 * blockframe.c (frame_address_in_block): Delete function.
2579 (get_frame_block): Use get_frame_address_in_block.
2580 (block_innermost_frame): Ditto.
2581 * stack.c (print_frame, backtrace_command_1): Ditto.
2583 * frame.h (get_frame_address_in_block): Declare.
2584 (frame_unwind_address_in_block): Declare.
2585 * frame.c (frame_unwind_address_in_block): New function.
2586 (get_frame_address_in_block): New function.
2588 2003-07-10 Andrew Cagney <cagney@redhat.com>
2590 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2591 pre-default. Note: re-generate has no effect.
2593 2003-07-10 Andrew Cagney <cagney@redhat.com>
2595 * gdbarch.sh: When a variable, but not a function, compare against
2596 0. Fix problem in previous patch.
2597 * gdbarch.c: Re-generate.
2599 2003-07-10 Andrew Cagney <cagney@redhat.com>
2601 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2602 functions against NULL, not 0.
2603 * gdbarch.c: Re-generate.
2605 2003-07-10 Fred Fish <fnf@ninemoons.com>
2607 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2608 null string instead of a null pointer.
2609 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2611 2003-07-09 Michael Snyder <msnyder@redhat.com>
2613 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2615 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2617 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2618 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2619 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2620 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2621 * x86-64-tdep.c: ... from here.
2623 2003-07-09 Andreas Schwab <schwab@suse.de>
2625 * m68k-tdep.h (enum struct_return): Define.
2626 (struct gdbarch_tdep): Add struct_return.
2627 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2628 bytes are padded to the right, not to the left. Pass struct value
2629 address in register %a1, not on stack.
2630 (m68k_use_struct_convention): New function.
2631 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2632 struct_return in tdep to pcc_struct_return.
2633 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2636 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2638 * somread.c (som_symfile_offsets): Fix compilation error.
2640 2003-07-09 Andrew Cagney <cagney@redhat.com>
2642 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2643 Add comments about the checks.
2645 2003-07-08 Andrew Cagney <cagney@redhat.com>
2647 * Makefile.in: Make dependency section headers consistent.
2648 (config_h): Move to $BUILD headers section.
2649 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2650 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2651 (ada-exp.tab.c): Move to YACC/LEX section.
2652 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2653 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2655 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2657 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2658 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2659 of strerror with safe_strerror, use ISO C function definitions,
2660 and replace instances of sprintf with snprintf.
2662 2003-07-07 Andrew Cagney <cagney@redhat.com>
2664 * frame.c (get_prev_frame): Enable check for identical frames.
2665 Update comments. Update error messages.
2667 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2669 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2671 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2673 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2674 sort_symtab_syms, no longer necessary.
2676 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2678 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2680 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2682 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2683 (mips_register_byte): Likewise.
2685 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2687 * Makefile.in (sparc_tdep_h): New.
2688 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2689 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2690 * sparc-linux-nat.c: Include "sparc-tdep.h".
2691 * sparc-nat.c: Likewise.
2692 * sparc-tdep.c: Likewise.
2693 * sparc64nbsd-nat.c: Likewise.
2694 * sparcnbsd-nat.c: Likewise.
2695 * sparcnbsd-tdep.c: Likewise.
2696 * sparc-tdep.h: New file.
2697 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2698 and sparc_npc_regnum.
2700 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2702 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2703 (mips_linux_cannot_store_register): List supported instead of
2704 unsupported registers.
2706 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2708 * disasm.c (dump_insns): Separate instructions from addresses.
2710 2003-07-07 Andreas Schwab <schwab@suse.de>
2712 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2714 * m68k-tdep.c (NUM_FREGS): Delete.
2715 (SIG_PC_FP_OFFSET): Delete.
2716 (TARGET_M68K): Delete.
2717 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2718 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2719 P_MOVEL_SP, P_MOVEML_SP): Define.
2720 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2722 (m68k_register_raw_size): Delete.
2723 (m68k_register_virtual_size): Delete.
2724 (m68k_register_type): Renamed from m68k_register_virtual_type and
2725 add gdbarch argument.
2726 (m68k_store_struct_return): Delete.
2727 (m68k_deprecated_extract_return_value): Delete.
2728 (m68k_deprecated_extract_struct_value_address): Delete.
2729 (m68k_frame_chain): Delete.
2730 (m68k_frame_saved_pc): Delete.
2731 (m68k_fix_call_dummy): Delete.
2732 (m68k_push_dummy_frame): Delete.
2733 (m68k_pop_frame): Delete.
2734 (m68k_extract_return_value): New function.
2735 (m68k_store_return_value): Rewrite using regcache.
2736 (m68k_extract_struct_value_address): Rewrite using regcache.
2737 (m68k_push_dummy_call): New function.
2738 (struct m68k_frame_cache): Define.
2739 (m68k_alloc_frame_cache): New function.
2740 (m68k_analyze_frame_setup): New function.
2741 (m68k_analyze_register_saves): New function.
2742 (m68k_analyze_prologue): New function.
2743 (m68k_skip_prologue): Rewrite using above functions.
2744 (m68k_unwind_pc): New function.
2745 (m68k_frame_cache): New function.
2746 (m68k_frame_this_id): New function.
2747 (m68k_frame_prev_register): New function.
2748 (m68k_frame_unwind): New variable.
2749 (m68k_frame_p): New function.
2750 (m68k_sigtramp_frame_cache): New function.
2751 (m68k_sigtramp_frame_this_id): New function.
2752 (m68k_sigtramp_frame_prev_register): New function.
2753 (m68k_sigtramp_frame_unwind): New variable.
2754 (m68k_sigtramp_frame_p): New function.
2755 (m68k_frame_base_address): New function.
2756 (m68k_frame_base): New function.
2757 (m68k_unwind_dummy_id): New function.
2758 (fill_gregset): Use regcache_collect.
2759 (fill_fpregset): Likewise.
2760 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2762 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2763 deprecated_init_frame_pc, deprecated_store_struct_return,
2764 deprecated_extract_return_value, deprecated_store_return_value,
2765 deprecated_frame_chain, deprecated_frame_saved_pc,
2766 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2767 deprecated_register_virtual_size,
2768 deprecated_max_register_raw_size,
2769 deprecated_max_register_virtual_size,
2770 deprecated_register_virtual_type, deprecated_register_size,
2771 deprecated_register_byte, deprecated_register_bytes,
2772 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2773 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2774 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2775 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2776 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2777 deprecated_push_dummy_frame, deprecated_pop_frame,
2778 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2779 only if SYSCALL_TRAP is defined. Set extract_return_value,
2780 store_return_value, extract_struct_value_address, register_type,
2781 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2783 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2784 M68K_MAX_REGISTER_SIZE): Define.
2785 (struct m68k_sigtramp_info): Define.
2786 (struct gdbarch_tdep): Add get_sigtramp_info.
2787 * m68klinux-nat.c (fetch_register): Use register_size instead of
2788 REGISTER_RAW_SIZE. Don't put assignment in if.
2789 (store_register): Likewise.
2790 (fetch_inferior_registers): Likewise.
2791 (store_inferior_registers): Likewise.
2792 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2793 (m68k_linux_frame_saved_pc): Delete.
2794 (m68k_linux_sigcontext_reg_offset,
2795 m68k_linux_ucontext_reg_offset): Define.
2796 (m68k_linux_get_sigtramp_info): New function.
2797 (m68k_linux_extract_return_value): Rewrite using regcache.
2798 (m68k_linux_store_return_value): Likewise.
2799 (m68k_linux_extract_struct_value_address): Likewise.
2800 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2801 Don't set deprecated_frame_saved_pc,
2802 deprecated_extract_return_value, deprecated_store_return_value,
2803 deprecated_extract_struct_value_address. Set
2804 extract_return_value, store_return_value,
2805 extract_struct_value_address.
2807 2003-07-07 Andrew Cagney <cagney@redhat.com>
2809 * expprint.c: Include "user-regs.h" instead of "frame.h".
2810 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2811 frame_map_regnum_to_name.
2812 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2813 (frame_map_name_to_regnum): Simplify, call
2814 user_reg_map_name_to_regnum.
2815 (frame_map_regnum_to_name): Simplify, call
2816 user_reg_map_regnum_to_name.
2817 (frame_register_unwind): Update.
2818 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2819 (_initialize_frame_reg): Call user_reg_add_builtin.
2820 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2821 (value_of_register): Use value_of_user_reg.
2822 * eval.c (evaluate_subexp_standard): Update.
2823 * parse.c (write_dollar_variable): Update.
2824 * d10v-tdep.c (d10v_print_registers_info): Update.
2825 * infcmd.c (registers_info): Update.
2826 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2827 (builtin_regs_h): Delete macro.
2828 (user_regs_h): Define.
2829 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2830 (builtin-regs.o): Delete target.
2831 (user-regs.o): Specify dependencies.
2832 (expprint.o): Update dependencies.
2833 (findvar.o): Update dependencies.
2834 (frame.o): Update dependencies.
2835 (std-regs.o): Update dependencies.
2837 2003-07-06 Christopher Faylor <cgf@redhat.com>
2839 * win32-nat.c (solib_symbols_add): Use one variable for all section
2840 address stuff. Pass variable rather than address of variable to
2841 safe_symbol_file_add.
2843 2003-07-06 Andreas Schwab <schwab@suse.de>
2845 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2847 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2849 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2851 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2853 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2855 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2857 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2858 * config/i386/nto.mh: New file.
2859 * config/i386/nm-nto.h: New file.
2860 * configure.host: Add i[3456]86-*-nto*.
2862 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2864 * remote-vx.c (vx_add_symbols): Fix compilation error.
2866 2003-07-03 Andrew Cagney <cagney@redhat.com>
2868 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2869 * gdbarch.h, gdbarch.c: Re-generate.
2870 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2871 (legacy_register_name): Declare.
2872 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2873 (REGISTER_NAME): Define.
2874 * sparc-tdep.c (legacy_register_name): New function.
2875 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2876 (REGISTER_NAME): Define.
2877 (hppa64_register_name): Declare.
2878 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2879 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2880 (hppa64_register_name): New function.
2881 (hppa_register_name): New function.
2882 * arch-utils.c (legacy_register_name): Delete.
2883 * arch-utils.h (legacy_register_name): Delete.
2885 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2887 * cli/cli-interp.c (cli_interpreter_resume): Update the
2888 cli_uiout's stream to gdb_stdout.
2890 2003-07-03 Andrew Cagney <cagney@redhat.com>
2892 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2894 * gdbarch.h, gdbarch.c: Re-generate.
2895 * regcache.c (init_regcache_descr): Use legacy code when either
2896 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2898 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2900 * NEWS: Move "set logging" entry into GDB 6.0 section.
2902 2003-07-02 Jim Blandy <jimb@redhat.com>
2904 * s390-tdep.c (struct frame_extra_info): new member:
2905 'stack_bought_valid'.
2906 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2907 initialize fextra_info->stack_bought.
2908 (s390_frameless_function_invocation): Don't trust the value of
2909 fextra_info_ptr->stack_bought unless
2910 fextra_info->stack_bought_valid is set.
2912 New S390 prologue analyzer.
2913 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2914 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2915 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2916 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2917 compute_x_addr, s390_on_stack, s390_store,
2918 s390_get_signal_frame_info): New functions.
2919 (S390_NUM_SPILL_SLOTS): New macro.
2920 (s390_get_frame_info): Rewritten.
2921 (is_arg_reg): Deleted.
2923 Break out the decoding of S/390 instructions into separate
2924 functions, to make it more legible, and easier to check
2926 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2927 is_rx, is_rxe): New functions.
2928 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2929 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2930 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2931 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2932 enums for opcode values. (Is this an improvement?)
2934 2003-07-02 Andrew Cagney <cagney@redhat.com>
2936 * i386-tdep.c: Revert change committed as part of trad-frame code
2939 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2941 * breakpoint.c (insert_catchpoint): Make static.
2943 2003-07-02 Andreas Schwab <schwab@suse.de>
2945 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2946 former ia64_push_arguments and ia64_push_return_address, and use
2947 regcache functions instead of read/write_register.
2948 (ia64_gdbarch_init): Set push_dummy_call instead of
2949 deprecated_push_arguments and deprecated_push_return_address.
2951 2003-07-01 Andreas Jaeger <aj@suse.de>
2953 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2955 Set %rax only to number of SSE registers used.
2957 2003-07-01 Andrew Cagney <cagney@redhat.com>
2959 * trad-frame.h: Update comments, a -1 .addr is reserved.
2960 (trad_frame_value_p, trad_frame_addr_p): Declare.
2961 (trad_frame_reg_p): Declare.
2962 (trad_frame_set_value): Rename trad_frame_register_value.
2963 (trad_frame_set_unknown): Declare.
2964 * trad-frame.c (trad_frame_realreg_p): New function.
2965 (trad_frame_addr_p, trad_frame_value_p): New function.
2966 (trad_frame_set_unknown): New function.
2967 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2968 (trad_frame_prev_register): Use trad_frame_realreg_p,
2969 trad_frame_addr_p and trad_frame_value_p.
2970 (trad_frame_set_value): Rename trad_frame_register_value.
2971 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2972 and trad_frame_set_value.
2974 2003-06-30 Jim Blandy <jimb@redhat.com>
2976 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2977 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2978 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2979 for 16 registers, and then 32 more bytes.
2980 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2982 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2983 Move up in the file, since it's now used by is_simple_arg.
2984 (is_simple_arg): Don't assume registers are four bytes long.
2985 Exclude all double arguments. Extended floats are not simple
2987 (is_power_of_two): New function.
2988 (pass_by_copy_ref): Call is_power_of_two, and check that the
2989 length fits in a register, rather than listing all the acceptable
2990 sizes. Extended floats are not passed by reference.
2991 (s390_push_arguments): Don't assume registers are four bytes long.
2992 Reserve an argument register to point to the buffer for structures
2993 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2994 S390_STACK_FRAME_OVERHEAD.
2996 2003-06-30 Andreas Schwab <schwab@suse.de>
2998 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2999 format error message.
3001 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3003 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3005 2003-06-30 David Carlton <carlton@kealia.com>
3007 Band-aid for PR c++/1245.
3008 * Makefile.in (cp-support.o): Depend on complaints_h.
3009 * cp-support.c: Include complaints.h. Add declaration for
3010 find_last_component.
3011 (cp_find_first_component): Separate code into
3012 cp_find_first_component_aux.
3013 (cp_find_first_component_aux): Call demangled_name_complaint.
3014 (demangled_name_complaint): New.
3016 2003-06-30 Andrew Cagney <cagney@redhat.com>
3018 * remote.c (remote_write_bytes): Explicitly compute and then use
3019 the payload size. Update comments to reflect. Fixes problem of
3020 GDB not sending small packets as found by Fred Fish.
3022 2003-06-30 Andrew Cagney <cagney@redhat.com>
3024 * remote.c (remote_async_wait): Fix -Wformat problem.
3026 2003-06-29 Andrew Cagney <cagney@redhat.com>
3028 * remote.c (remote_wait): Call error, and not warning, when the
3030 (remote_async_wait): Ditto.
3032 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3034 * sparc-tdep.c (sparc_y_regnum): Make external again.
3036 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3038 * cli/cli-logging.c (pop_output_files): Add void to function
3041 2003-06-29 Andrew Cagney <cagney@redhat.com>
3043 * frame.c (frame_register_unwind): Use unsigned char when dumping
3044 the buffer contents.
3046 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3048 * cli/cli-logging.c: New file.
3049 * cli-out.c (struct ui_out_data): Add original_stream.
3050 (cli_redirect): New function.
3051 (cli_ui_out_impl): Add cli_redirect.
3052 (cli_out_new): Initialize original_stream.
3053 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3054 (uo_redirect, ui_out_redirect): New.
3055 * ui-out.h (struct ui_out_impl): Add redirect member.
3056 (redirect_ftype): New.
3057 (ui_out_redirect): Add prototype.
3058 * Makefile.in: Add rules for cli-logging.c.
3059 * NEWS: Mention "set logging".
3061 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3063 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3065 2003-06-27 Andrew Cagney <cagney@redhat.com>
3067 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3068 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3069 * avr-tdep.c (avr_call_dummy_address): Delete function.
3070 (avr_gdbarch_init): Do not set call_dummy_address.
3072 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3074 * symfile.c (syms_from_objfile): Move variables to inner block.
3075 Move the checks for the non-mainline case a bit earlier to avoid
3076 doing some useless computations.
3078 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3080 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3082 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3084 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3087 2003-06-26 Michael Chastain <mec@shout.net>
3089 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3090 gdb/testsuite/gdb.c++/pr-1210.exp.
3092 2003-06-26 Andrew Cagney <cagney@redhat.com>
3094 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3095 altivec_expression.h and altivec_registers.h.
3097 2003-06-26 Andrew Cagney <cagney@redhat.com>
3099 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3100 info->mach when MIPS16. Patch suggested by Fred Fish.
3102 2003-06-26 Andrew Cagney <cagney@redhat.com>
3104 * utils.c (internal_vproblem): Print the problem to a reason
3105 buffer and then pass to query. Make the msg variable more local.
3107 2003-06-26 Andrew Cagney <cagney@redhat.com>
3109 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3110 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3111 * gdbarch.h, gdbarch.c: Re-generate.
3112 * frame-base.c (default_frame_args_address): Update. Use
3113 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3115 (default_frame_locals_address): Ditto for
3116 DEPRECATED_FRAME_LOCALS_ADDRESS.
3117 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3118 (vax_frame_num_args): Update.
3119 (vax_gdbarch_init): Update.
3120 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3121 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3122 * mcore-tdep.c (mcore_gdbarch_init): Update.
3123 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3124 * ia64-tdep.c (ia64_gdbarch_init): Update.
3125 * symtab.h (address_class): Update comments.
3126 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3127 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3128 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3129 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3130 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3131 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3132 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3133 * alpha-mdebug-tdep.c: Update.
3134 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3136 2003-06-26 Andreas Jaeger <aj@suse.de>
3138 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3139 of SSE registers so that varargs functions work. Rework handling
3140 of passing arguments on the stack.
3141 (x86_64_store_return_value): Return double and float values in SSE
3144 2003-06-24 Michael Chastain <mec@shout.net>
3146 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3147 the "constructor breakpoints ignored" bug.
3149 2003-06-25 David Carlton <carlton@kealia.com>
3151 * MAINTAINERS: Update e-mail address.
3153 2003-06-24 Jim Blandy <jimb@redhat.com>
3155 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3157 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3159 (ppc_linux_init_abi): Register it as the
3160 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3162 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3163 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3166 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3167 (ppc64_standard_linkage_target): Use it.
3169 2003-06-23 Andrew Cagney <cagney@redhat.com>
3171 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3172 for 0 "int0" and 4 "int32" sized registers.
3173 * gdbtypes.c (builtin_type_int0): Define.
3174 (build_gdbtypes): Initialize builtin_type_int0.
3175 * gdbtypes.h (builtin_type_int0): Declare.
3177 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3179 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3180 as characters are unsigned.
3182 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3185 * dwarfread.c (struct_type): Skip static fields without crashing.
3187 2003-06-22 Andrew Cagney <cagney@redhat.com>
3189 GDB 6.0 branch created.
3191 * PROBLEMS: Update. Empty.
3194 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3196 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3197 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3199 2003-06-22 Andrew Cagney <cagney@redhat.com>
3201 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3202 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3205 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3207 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3210 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3212 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3213 argument of val_print.
3214 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3215 to the address argument of baseclass_offset or target_read_memory.
3216 Do add it to the argument of cp_print_value_fields.
3218 2003-06-21 Andrew Cagney <cagney@redhat.com>
3220 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3221 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3222 instead of 0..NUM_REGS.
3223 (mips_register_reggroup_p): New function.
3224 (mips_pseudo_register_write): New function.
3225 (mips_pseudo_register_read): New function.
3226 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3227 based on the register's type.
3228 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3230 (mips_get_saved_register): Simplify. Assert that REGNO is a
3232 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3233 (mips_register_type): Replace mips_register_virtual_type. Map
3234 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3236 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3237 that the register is cooked / virtual.
3238 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3239 Only get the extra info when needed.
3240 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3241 (mips32_heuristic_proc_desc): Fetch the cooked register.
3242 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3243 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3244 (mips_print_register): Use gdbarch_register_type, instead of
3245 REGISTER_VIRTUAL_TYPE.
3246 (print_gp_register_row): Use gdbarch_register_type, instead of
3247 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3248 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3249 Print the pseudo / cooked registers.
3250 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3251 Print the pseudo / cooked registers.
3252 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3253 REG_NUM is pseudo / cooked.
3254 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3255 (mips_n32n64_xfer_return_value): Ditto.
3256 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3257 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3258 (mips_register_sim_regno): New function.
3259 (mips_gdbarch_init): Set deprecated_register_byte,
3260 register_group_p, pseudo_register_write, pseudo_register_read,
3261 register_sim_regno, and num_pseudo_regs. Set register_type,
3262 instead of register_virtual_type.
3263 * Makefile.in (mips-tdep.o): Update dependencies.
3264 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3265 REGISTER_VIRTUAL_TYPE.
3266 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3267 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3268 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3269 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3270 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3272 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3274 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3275 * cli/cli-cmds.c: Include "gdb_vfork.h".
3276 (shell_escape): Use vfork.
3278 2003-06-21 Andrew Cagney <cagney@redhat.com>
3280 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3281 32 bit floating-point register saves.
3283 * frame.h (deprecated_unwind_get_saved_register): Delete.
3284 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3285 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3286 and deprecated_get_next_frame_hack instead of
3287 deprecated_unwind_get_saved_register.
3289 * mips-tdep.c (mips_dump_tdep): Do not print
3290 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3292 * frame.c (get_frame_register): New function.
3293 (frame_unwind_register_signed): New function.
3294 (get_frame_register_signed): New function.
3295 (frame_unwind_register_unsigned): New function.
3296 (get_frame_register_unsigned): New function.
3297 * frame.h: Add comments on naming schema.
3298 (get_frame_register, frame_unwind_register_signed): Declare.
3299 (get_frame_register_signed, get_frame_register_signed): Declare.
3300 (frame_unwind_register_unsigned): Declare.
3301 (get_frame_register_unsigned): Declare.
3303 2003-06-20 Theodore A. Roth <troth@openavr.org>
3305 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3307 2003-06-20 Theodore A. Roth <troth@openavr.org>
3309 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3310 (avr_read_sp): Ditto.
3312 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3314 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3315 * config/arm/nm-linux.h: Likewise.
3316 * config/arm/tm-linux.h: Likewise.
3317 * config/ia64/nm-linux.h: Likewise.
3318 * config/ia64/tm-ia64.h: Likewise.
3319 * config/s390/tm-linux.h: Likewise.
3320 * config/s390/tm-s390.h: Likewise.
3321 * s390-nat.c: Likewise.
3322 * s390-tdep.c: Likewise.
3324 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3325 * config/ia64/linux.mt: Likewise.
3326 * config/m68k/linux.mh: Likewise.
3327 * config/mips/linux.mt: Likewise.
3328 * config/powerpc/linux.mh: Likewise.
3329 * config/sh/linux.mt: Likewise.
3331 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3333 * solib.c (solib_open): Change tests for whether to search
3334 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3337 2003-06-19 Theodore A. Roth <troth@openavr.org>
3339 * avr-tdep.c (avr_frame_address): Delete function.
3340 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3341 set_gdbarch_frame_args_address.
3343 2003-06-19 Andrew Cagney <cagney@redhat.com>
3345 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3346 (REGISTER_CONVERT_FROM_TYPE): Delete.
3347 (mips_register_convert_to_type): Delete declaration.
3348 (mips_register_convert_from_type): Delete declaration.
3349 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3352 2003-06-19 Michael Snyder <msnyder@redhat.com>
3354 * linux-nat.h: New file.
3355 * linux-nat.c: Include linux-nat.h.
3356 * lin-lwp.c: Include linux-nat.h.
3357 Move struct lwp_info def to linux-nat.h.
3358 * linux-proc.c: Include linux-nat.h.
3359 (linux_make_note_section): Iterate over lwps instead of threads.
3360 (linux_do_thread_registers): Use lwp instead of merged pid.
3361 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3362 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3363 Add dependency on linux_nat_h.
3365 2003-06-19 Theodore A. Roth <troth@openavr.org>
3367 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3369 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3371 * varobj.c (get_type, get_target_type): Use check_typedef.
3373 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3375 * breakpoint.c (insert_catchpoint): Call internal_error.
3377 2003-06-19 Theodore A. Roth <troth@openavr.org>
3379 * avr-tdep.c (avr_push_dummy_code): Delete function.
3380 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3382 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3384 * arch-utils.c (default_prepare_to_proceed): Remove.
3385 (generic_prepare_to_proceed): Remove.
3386 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3387 (generic_prepare_to_proceed): Remove prototype.
3388 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3389 * gdbarch.c: Regenerate.
3390 * gdbarch.h: Regenerate.
3391 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3392 * hppah-nat.c (hppa_switched_threads): Remove.
3393 * infrun.c (prepare_to_proceed): New static function, copied from
3394 generic_prepare_to_proceed. Remove select_it argument.
3395 (proceed): Call prepare_to_proceed.
3396 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3398 (ptrace_wait): Don't set the removed variables.
3399 (hppa_switched_threads): Remove.
3400 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3401 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3402 (lin_lwp_prepare_to_proceed): Remove prototype.
3403 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3404 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3406 2003-06-18 Theodore A. Roth <troth@openavr.org>
3408 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3410 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3411 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3412 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3413 (AVR_PROLOGUE_*): Enumerate prologue types.
3414 (struct frame_extra_info): Remove.
3415 (struct avr_unwind_cache): Define.
3416 (avr_write_sp): Delete function.
3417 (avr_read_fp): Ditto.
3418 (avr_init_extra_frame_info): Ditto.
3419 (avr_pop_frame): Ditto.
3420 (avr_frame_saved_pc): Ditto.
3421 (avr_saved_pc_after_call): Ditto.
3422 (avr_push_return_address): Ditto.
3423 (avr_frame_chain): Ditto.
3424 (avr_store_struct_return): Ditto.
3425 (avr_push_arguments): Ditto.
3426 (avr_scan_prologue): Update comments. Changed to set up the info for
3427 cache unwinding. Now returns end of prologue PC.
3428 (avr_skip_prologue): Better handling of functions lacking a prologue
3429 by using avr_scan_prologue.
3430 (avr_scan_arg_moves): New function.
3431 (avr_saved_regs_unwinder): Ditto.
3432 (avr_frame_unwind_cache): Ditto.
3433 (avr_unwind_pc): Ditto.
3434 (avr_frame_this_id): Ditto.
3435 (avr_frame_prev_register): Ditto.
3436 (avr_frame_p): Ditto.
3437 (avr_frame_base_address ): Ditto.
3438 (avr_unwind_dummy_id): Ditto.
3439 (avr_push_dummy_code): Ditto.
3440 (push_stack_item): Ditto.
3441 (pop_stack_item): Ditto.
3442 (avr_push_dummy_call): Ditto.
3443 (struct stack_item): Define.
3444 (avr_frame_unwind): Declare structure.
3445 (avr_frame_base): Ditto.
3446 (avr_gdbarch_init): Remove calls to
3447 set_gdbarch_deprecated_init_frame_pc,
3448 set_gdbarch_deprecated_target_read_fp,
3449 set_gdbarch_deprecated_dummy_write_sp,
3450 set_gdbarch_deprecated_fp_regnum,
3451 set_gdbarch_deprecated_push_arguments,
3452 set_gdbarch_deprecated_push_return_address,
3453 set_gdbarch_deprecated_pop_frame,
3454 set_gdbarch_deprecated_store_struct_return,
3455 set_gdbarch_deprecated_frame_init_saved_regs,
3456 set_gdbarch_deprecated_init_extra_frame_info,
3457 set_gdbarch_deprecated_frame_chain,
3458 set_gdbarch_deprecated_frame_saved_pc,
3459 set_gdbarch_deprecated_saved_pc_after_call.
3460 Add calls to set_gdbarch_push_dummy_call,
3461 set_gdbarch_push_dummy_code,
3462 frame_unwind_append_predicate,
3463 frame_base_set_default,
3464 set_gdbarch_unwind_dummy_id,
3465 set_gdbarch_unwind_pc.
3468 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3470 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3471 registers for H8/300S.
3472 (h8300_print_registers_info): Ditto.
3473 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3475 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3477 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3478 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3479 (lin_lwp_wait): Likewise. Update comments.
3480 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3481 (pull_pid_from_list, linux_record_stopped_pid): New.
3483 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3485 * ada-lang.c (scan_discrim_bound): Name first argument.
3486 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3487 declared by ALL_BLOCK_SYMBOLS.
3489 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3491 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3492 ("regcache.h"): Include it.
3493 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3495 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3497 * NEWS: Mention gdbserver detach change and "disconnect" command.
3498 * infcmd.c (disconnect_command): New function.
3499 (_initialize_infcmd): Add ``disconnect'' command.
3500 * remote.c (remote_async_detach): Delete.
3501 (remote_detach): Merge remote_async_detach.
3502 (remote_disconnect): New.
3503 (init_remote_ops): Set to_disconnect.
3504 (init_remote_cisco_ops): Likewise.
3505 (init_remote_async_ops): Likewise. Use remote_detach.
3506 * target.c (cleanup_target): Default to_disconnect.
3507 (update_current_target): Inherit to_disconnect.
3508 (target_disconnect, debug_to_disconnect): New functions.
3509 (setup_target_debug): Set to_disconnect.
3510 * target.h (struct target_ops): Add to_disconnect.
3511 (target_disconnect): Add prototype.
3513 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3515 * breakpoint.c (insert_catchpoint): New function.
3516 (insert_breakpoints): Use catch_exceptions to call
3517 insert_catchpoint. Disable catchpoints if they fail to insert.
3519 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3521 * symfile.c (reread_symbols): Clear sym_private.
3523 2003-06-17 Andrew Cagney <cagney@redhat.com>
3525 * trad-frame.h (struct frame_info): Add opaque declaration.
3526 * remote-fileio.h (struct cmd_list_element): Add opaque
3528 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3531 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3533 * remote.c (remote_prepare_to_store): Replace call to
3534 deprecated_read_register_bytes with multiple regcache_raw_read
3537 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3539 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3540 (nto_find_and_open_solib): Likewise.
3541 (nto_init_solib_absolute_prefix): Likewise.
3542 (_initialize_nto_tdep): Fix indentation.
3544 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3546 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3548 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3550 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3552 2003-06-17 Jim Blandy <jimb@redhat.com>
3554 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3556 2003-06-16 Theodore A. Roth <troth@openavr.org>
3558 * avr-tdep.c (avr_extract_return_value): New function.
3559 (avr_gdbarch_init): Set extract_return_value method.
3561 2003-06-16 Andrew Cagney <cagney@redhat.com>
3563 * frame.h (deprecated_get_next_frame_hack): Declare.
3564 * frame.c (legacy_saved_regs_prev_register): Only require
3565 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3566 there are always saved regs.
3567 (deprecated_generic_get_saved_register): Do not require
3568 DEPRECATED_FRAME_INIT_SAVED_REGS.
3569 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3570 use frame ID unwind instead.
3571 (deprecated_get_next_frame_hack): New function.
3573 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3575 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3576 (h8300_push_dummy_call): ...this function. Some minor optimization.
3577 (h8300_push_return_address): Remove.
3578 (h8300_gdbarch_init): Remove calls to
3579 set_gdbarch_deprecated_dummy_write_sp,
3580 set_gdbarch_deprecated_push_arguments and
3581 set_gdbarch_deprecated_push_return_address.
3582 Add call to set_gdbarch_push_dummy_call.
3584 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3586 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3587 (E_PSEUDO_EXR_REGNUM): Ditto.
3588 (h8300_is_argument_spill): Check for instructions moving argument
3589 registers into safe registers.
3590 (h8300_skip_prologue): Check for stm instruction to push registers
3591 used for register variables onto stack.
3592 (gdb_print_insn_h8300): Remove.
3593 (h8300_examine_prologue): Add a comment.
3594 (h8300_register_name): Take pseudo registers into account.
3595 (h8300s_register_name): Ditto.
3596 (h8300sx_register_name): Ditto.
3597 (h8300_print_register): Ditto.
3598 (h8300_print_registers_info): Define "nice" printing order.
3599 (h8300_saved_pc_after_call): Take pseudo registers into account.
3600 (h8300_register_type): Ditto. Return type used for remote connection
3601 when requesting real CCR or EXR register, return actual type when
3602 requesting pseudo CCR or EXR.
3603 (h8300_pseudo_register_read): New function.
3604 (h8300_pseudo_register_write): Ditto.
3605 (h8300_dbg_reg_to_regnum): Ditto.
3606 (h8300s_dbg_reg_to_regnum): Ditto.
3607 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3608 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3609 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3610 set_gdbarch_print_insn architecture dependent.
3611 Call set_gdbarch_pseudo_register_read and
3612 set_gdbarch_pseudo_register_write.
3613 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3615 2003-06-16 Andrew Cagney <cagney@redhat.com>
3617 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3618 * gdbarch.h, gdbarch.c: Re-generate.
3619 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3620 * s390-tdep.c (s390_gdbarch_init): Update.
3621 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3622 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3623 * mips-tdep.c (mips_gdbarch_init): Update.
3624 * mcore-tdep.c (mcore_gdbarch_init): Update.
3625 * cris-tdep.c (cris_gdbarch_init): Update.
3626 * infcall.c (call_function_by_hand): Update.
3627 * ia64-tdep.c (ia64_push_arguments): Update comment.
3628 * frame.c (legacy_get_prev_frame): Do not assume
3629 SAVE_DUMMY_FRAME_TOS_P.
3630 * dummy-frame.c (find_dummy_frame): Update comment.
3632 2003-06-16 Andrew Cagney <cagney@redhat.com>
3634 * regcache.c (do_cooked_read): Do not use register_valid_p.
3636 2003-06-15 Theodore A. Roth <troth@openavr.org>
3638 * avr-tdep.c (avr_register_type): Remove a blank line.
3639 (avr_scan_prologue): Correct some comments.
3641 2003-06-15 Theodore A. Roth <troth@openavr.org>
3643 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3645 Properly scan prologues generated by gcc with the -mcall-prologues
3647 Add code to scan -mcall-prologues for mega devices.
3649 2003-06-15 Theodore A. Roth <troth@openavr.org>
3651 * avr-tdep.c (avr_register_byte): Delete function.
3652 (avr_register_raw_size): Delete function.
3653 (avr_register_virtual_size): Delete function.
3654 (avr_register_virtual_type): Delete function.
3655 (avr_register_type): New function.
3656 (avr_address_to_pointer): Remove unused code.
3657 (avr_read_fp): Need to read FP as two separate bytes due to change to
3658 avr_register_type() usage.
3659 (avr_gdbarch_init): Don't set deprecated_register_size.
3660 Don't set deprecated_register_bytes.
3661 Don't set deprecated_register_byte.
3662 Don't set deprecated_register_raw_size.
3663 Don't set deprecated_max_register_raw_size.
3664 Don't set deprecated_register_virtual_size.
3665 Don't set deprecated_max_register_virtual_size.
3666 Don't set deprecated_register_virtual_type.
3667 Set register_type method.
3669 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3671 * Makefile.in (linux-nat.o): Add rule.
3672 * linux-nat.c: New file.
3673 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3674 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3675 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3676 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3677 * config/arm/linux.mh (NATDEPFILES): Likewise.
3678 * config/i386/linux.mh (NATDEPFILES): Likewise.
3679 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3680 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3681 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3682 * config/mips/linux.mh (NATDEPFILES): Likewise.
3683 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3684 * config/s390/s390.mh (NATDEPFILES): Likewise.
3685 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3687 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3689 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3690 replace out-of-date comment.
3692 2003-06-15 Andrew Cagney <cagney@redhat.com>
3694 * rdi-share/host.h (Fail): Change to a varargs function.
3695 * remote-rdi.c (Fail): Update.
3697 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3699 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3700 (i386_convert_register_p, i386_register_to_value,
3701 i386_register_from_value): Handle types longer than 8 bytes.
3703 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3705 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3706 Move floating-point code to new function in i387-tdep.c.
3707 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3708 New functions containing code moved here from i386-tdep.c.
3709 * i387-tdep.h: Add opaque declaration for `struct type'.
3710 (i387_register_to_value, i387_value_to_register): New prototypes.
3711 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3712 (x86_64_init_abi): Set convert_register_p, register_to_value and
3713 value_to_register here.
3715 2003-06-14 Andrew Cagney <cagney@redhat.com>
3717 * mips-tdep.c (mips_register_to_value): Make static.
3718 (mips_value_to_register): Make static.
3719 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3720 * ia64-tdep.c (ia64_register_raw_size): Make static.
3721 (ia64_register_virtual_size): Make static.
3722 (ia64_register_byte): Make static.
3723 * i387-tdep.c: Include "i387-tdep.h".
3724 (print_387_control_word): Delete function.
3725 (print_387_status_word): Delete function.
3726 (print_387_status_bits): Delete function.
3727 (print_387_control_bits): Delete function.
3728 * Makefile.in (i387-tdep.o): Update dependencies.
3729 * rdi-share/host.h (Fail): Declare.
3730 * remote-rdi.c (Fail): Update to match declaration.
3732 2003-06-14 Andrew Cagney <cagney@redhat.com>
3734 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3735 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3736 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3737 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3738 * README: Delete reference to remote-array.
3739 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3740 (remote-array.o): Delete target.
3741 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3742 * remote-array.c: Delete file.
3744 2003-06-14 Andrew Cagney <cagney@redhat.com>
3745 Mark Kettenis <kettenis@gnu.org>
3747 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3748 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3749 parameter with "frame".
3750 * gdbarch.h, gdbarch.c: Re-generate.
3751 * frame.h (put_frame_register): Declare.
3752 * frame.c (put_frame_register): New function.
3753 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3754 (legacy_register_to_value): Rewrite, use "frame" to get the
3756 (legacy_value_to_register): Rewrite, use "frame" to find the
3757 register's location before storing.
3758 * arch-utils.h (legacy_convert_register_p): Update.
3759 (legacy_register_to_value, legacy_value_to_register): Update.
3760 * findvar.c (value_from_register): Rewrite, eliminate use of
3761 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3762 "frame" to REGISTER_TO_VALUE.
3763 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3764 lval_reg_frame_relative + lval_register branch of the switch. Do
3765 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3766 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3767 I386_EDI_REGNUM): New defines.
3768 (i386_next_regnum, i386_convert_register_p,
3769 i386_register_to_value, i386_value_to_register): New functions.
3770 (i386_register_convertible, i386_register_convert_to_virtual,
3771 i386_convert_to_raw): Remove functions.
3772 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3773 value_to_register instead of register_convertible,
3774 register_convert_to_virtual and register_convert_to_raw.
3775 * mips-tdep.c (mips_convert_register_p): New function.
3776 (mips_value_to_register): Replace mips_register_convert_from_type.
3777 (mips_register_to_value): Replace mips_register_convert_to_type.
3778 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3780 * alpha-tdep.c (alpha_convert_register_p): Update.
3781 (alpha_value_to_register): Update, store the register.
3782 (alpha_register_to_value): Update, fetch the register.
3784 2003-06-14 Theodore A. Roth <troth@openavr.org>
3786 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3787 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3788 Don't set deprecated_call_dummy_words.
3789 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3790 Don't set remote_translate_xfer_address.
3791 (avr_io_reg_read_command): Remove commented out debug printf.
3794 2003-06-14 Theodore A. Roth <troth@openavr.org>
3796 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3797 causes gdb to seg fault.
3799 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3801 * sparc-nat.c (fetch_inferior_registers): Correct
3802 a reference to "registers".
3804 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3806 * Makefile.in (exc_request_U_h): Define
3807 (exc_request_S_h): Likewise.
3808 (msg_reply_S_h): Likewise.
3809 (msg_U_h): Likewise.
3810 (notify_S_h): Likewise.
3811 (process_reply_S_h): Likewise.
3812 (gnu-nat.o): Depend on gdb_obstack_h
3813 * gnu-nat.c: Include "gdb_obstack.h".
3815 2003-06-13 Andrew Cagney <cagney@redhat.com>
3817 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3818 * gdbarch.h, gdbarch.c: Re-generate.
3820 2003-06-13 Andrew Cagney <cagney@redhat.com>
3822 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3823 when deprecated REGISTER macros can be deleted.
3824 * gdbarch.h, gdbarch.c: Re-generate.
3826 2003-06-13 Jim Blandy <jimb@redhat.com>
3828 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3829 Linux entry point symbols for _dl_debug_state, too.
3831 2003-06-13 Andrew Cagney <cagney@redhat.com>
3833 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3834 available, do not use the FP register, and always save the TOS.
3835 * dummy-frame.c (dummy_frame_this_id): Do not assert
3836 SAVE_DUMMY_FRAME_TOS.
3837 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3838 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3839 (i386_push_dummy_call): Add 8 to the returned SP.
3840 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3841 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3842 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3843 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3844 (x86_64_push_dummy_call): Return "sp + 16".
3845 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3846 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3847 save_dummy_frame_tos.
3849 2003-06-13 Jim Blandy <jimb@redhat.com>
3851 * frv-tdep.c (frv_use_struct_convention): Delete static
3852 declaration for function deleted in my change of 2003-06-12.
3854 2003-06-13 Theodore A. Roth <troth@openavr.org>
3856 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3857 (avr_pointer_to_address): Shift code addrs left 1 bit.
3858 (avr_convert_from_func_ptr_addr): Delete function since operation is
3859 better handled by avr_address_to_pointer and avr_pointer_to_address.
3860 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3862 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3864 From Kelley Cook <kelleycook@wideopenwest.com>:
3865 * configure.host: Accept i[34567]86 variants.
3866 * configure.tgt: Likewise.
3867 * nlm/configure.in: Likewise.
3868 * nlm/configure: Regenerated.
3870 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3872 * arm-tdep.c (solib-svr4.h): Dont' include it.
3873 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3874 * arm-linux-tdep.c: ... here. Make static.
3875 (arm_linux_init_abi): Register it.
3876 (solib-svr4.h): Include it.
3877 * Makefile.in: Update dependencies.
3878 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3879 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3881 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3883 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3884 indicate registers used for return values.
3885 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3886 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3888 (h8300_init_extra_frame_info): Ditto.
3889 (h8300_frame_locals_address): Removed.
3890 (h8300_frame_args_address): Removed.
3891 (h8300_extract_return_value): Use new regcache structure. Only care
3893 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3894 (h8300_store_return_value): Use new regcache structure. Only care
3896 (h8300h_store_return_value): Same function for 32 bit CPUs.
3897 (h8300_store_struct_return): Removed.
3898 (h8300_extract_struct_value_address): Use new regcache structure.
3899 (h8300h_extract_struct_value_address): Removed.
3900 (h8300_push_dummy_code): New function.
3901 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3902 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3903 set_gdbarch_store_return_value architecture dependent.
3904 Call set_gdbarch_push_dummy_code and
3905 set_gdbarch_extract_struct_value_address.
3906 Remove calls to set_gdbarch_frame_args_address,
3907 set_gdbarch_frame_locals_address,
3908 set_gdbarch_deprecated_store_struct_return,
3909 set_gdbarch_deprecated_extract_return_value,
3910 set_gdbarch_deprecated_extract_struct_value_address,
3911 set_gdbarch_deprecated_call_dummy_words and
3912 set_gdbarch_deprecated_sizeof_call_dummy_words.
3914 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3916 * h8300-tdep.c (h8300_register_byte): Remove.
3917 (h8300h_register_byte): Remove.
3918 (h8300_register_virtual_type): Remove. Substitute by...
3919 (h8300_register_type): New function.
3920 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3921 (h8300h_extract_struct_value_address): Ditto.
3922 (h8300_gdbarch_init): Drop calls to
3923 set_gdbarch_deprecated_register_byte and
3924 set_gdbarch_deprecated_register_virtual_type.
3925 Add call to set_gdbarch_register_type.
3927 2003-06-13 Andrew Cagney <cagney@redhat.com>
3929 * gdbarch.sh: Update comments on registers.
3930 (deprecated_register_byte): Rename register_byte.
3931 (deprecated_register_raw_size): Rename register_raw_size.
3932 (deprecated_register_virtual_size): Rename register_virtual_size.
3933 (deprecated_register_virtual_type): Rename register_virtual_type.
3934 * gdbarch.h, gdbarch.c: Re-generate.
3935 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3936 * vax-tdep.c (vax_gdbarch_init): Update.
3937 * v850-tdep.c (v850_gdbarch_init): Update.
3938 * sparc-tdep.c (sparc_gdbarch_init): Update.
3939 * sh-tdep.c (sh_gdbarch_init): Update.
3940 * s390-tdep.c (s390_gdbarch_init): Update.
3941 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3942 * ns32k-tdep.c: Update.
3943 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3944 * mips-tdep.c (mips_gdbarch_init): Update.
3945 * mcore-tdep.c (mcore_gdbarch_init): Update.
3946 * m68k-tdep.c (m68k_gdbarch_init): Update.
3947 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3948 * ia64-tdep.c (ia64_gdbarch_init): Update.
3949 * hppa-tdep.c (hppa_gdbarch_init): Update.
3950 * h8300-tdep.c (h8300_gdbarch_init): Update.
3951 * frv-tdep.c (frv_gdbarch_init): Update.
3952 * cris-tdep.c (cris_gdbarch_init): Update.
3953 * avr-tdep.c (avr_gdbarch_init): Update.
3954 * alpha-tdep.c (alpha_gdbarch_init): Update.
3955 * arm-tdep.c (arm_gdbarch_init): Update.
3957 2003-06-13 Andrew Cagney <cagney@redhat.com>
3959 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3960 mips_o32_use_struct_convention with always_use_struct_convention.
3962 2003-06-12 David Carlton <carlton@kealia.com>
3964 * cp-namespace.c (cp_set_block_scope): Comment out
3965 processing_has_namespace_info branch.
3967 2003-06-12 Jim Blandy <jimb@redhat.com>
3969 Recognize and skip 64-bit PowerPC Linux linkage functions.
3970 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3971 insn_pattern, insns_match_pattern, d_field, ds_field): New
3972 functions, macros, and types for working with PPC instructions.
3973 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3974 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3975 ppc64_skip_trampoline_code): New functions, variables, and macros
3976 for recognizing and skipping linkage functions.
3977 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3978 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3980 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3981 register offsets for both the 32- and 64-bit interfaces.
3983 Actually finish the job started by my change of 2003-05-29.
3984 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3985 other #definition of this.
3986 (ppc_linux_skip_trampoline_code): Remove declaration.
3987 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3989 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3992 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3993 'long' on ppc64-*-linux*.
3995 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3996 isn't #defined, assume the register doesn't exist: act as if
3997 tdep->ppc_mq_regnum were -1.
3999 * configure.host, configure.tgt: Add entries for
4000 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4002 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4005 * arch-utils.c (always_use_struct_convention): New function.
4006 * arch-utils.h (always_use_struct_convention): New prototype.
4007 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4008 (alpha_gdbarch_init): Register always_use_struct_convention,
4009 instead of alpha_use_struct_convention.
4010 * cris-tdep.c (cris_use_struct_convention): Delete.
4011 (cris_gdbarch_init): Register always_use_struct_convention,
4012 instead of cris_use_struct_convention.
4013 * frv-tdep.c (frv_use_struct_convention): Delete.
4014 (frv_gdbarch_init): Register always_use_struct_convention,
4015 instead of frv_use_struct_convention.
4016 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4017 (h8300_gdbarch_init): Register always_use_struct_convention,
4018 instead of h8300_use_struct_convention.
4019 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4020 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4021 instead of mips_o32_use_struct_convention.
4023 2003-06-12 Andrew Cagney <cagney@redhat.com>
4025 * wince.c: Include "mips-tdep.h".
4026 * mips-tdep.h (mips_next_pc): Declare.
4027 * mcore-tdep.c: Make more local functions static.
4028 * Makefile.in (wince.o): Update dependencies.
4030 2003-06-12 David Carlton <carlton@kealia.com>
4032 * symtab.c (lookup_symbol_aux_minsyms): Replace
4033 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4034 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4035 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4036 SYMBOL_NATURAL_NAME.
4038 2003-06-12 Andreas Schwab <schwab@suse.de>
4040 * Makefile.in (tuiDisassem.o): Update dependencies.
4042 2003-06-12 David Carlton <carlton@bactrian.org>
4044 * symtab.h: Delete declaration of make_symbol_overload_list.
4045 Add declaration of lookup_partial_symbol.
4046 * symtab.c (remove_params): Move to cp-support.c.
4047 (overload_list_add_symbol, make_symbol_overload_list)
4048 (sym_return_val_size, sym_return_val_index): Ditto.
4049 (lookup_partial_symbol): Make extern.
4050 * cp-support.h: Add declaration of make_symbol_overload_list.
4051 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4052 symtab.h, and block.h.
4053 (remove_params): Move here from symtab.c.
4054 (overload_list_add_symbol, make_symbol_overload_list)
4055 (sym_return_val_size, sym_return_val_index): Ditto.
4056 * valops.c: Include cp-support.h.
4057 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4058 frame_h, and block_h.
4059 (valops.o): Depend on cp_support_h.
4061 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4063 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4064 substitute by NUM_REGS throughout.
4065 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4066 (h8300s_register_name): New function for H8S registers.
4067 (h8300sx_register_name): Ditto for H8SX registers.
4068 (h8300_print_register): Revise register printing, avoid depending
4070 (h8300_register_byte): Only care for H8/300 registers.
4071 (h8300h_register_byte): New function for any other architecture.
4072 (h8300_register_raw_size): Remove.
4073 (h8300_register_virtual_type): Revise to return actually useful
4075 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4076 (h8300h_extract_struct_value_address): New function for any other
4078 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4079 set_gdbarch_register_name, set_gdbarch_register_byte,
4080 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4081 Remove calls to set_gdbarch_deprecated_register_size,
4082 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4083 set_gdbarch_deprecated_max_register_raw_size,
4084 set_gdbarch_register_virtual_size and
4085 set_gdbarch_deprecated_max_register_virtual_size entirely.
4086 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4087 set_gdbarch_long_double_bit.
4089 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4091 * doublest.c (convert_doublest_to_floatformat): When dealing
4092 with the implied integer bit, only alter mant_bits if we are
4093 processing a full 32 bits of mantissa.
4095 2003-06-11 David Carlton <carlton@bactrian.org>
4097 * dictionary.h: New.
4098 * dictionary.c: New.
4099 * block.h: Add opaque declaration for struct dictionary.
4100 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4102 (BLOCK_DICT): New macro.
4103 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4104 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4106 (ALL_BLOCK_SYMBOLS): Update definition.
4107 * Makefile.in (SFILES): Add dictionary.c.
4108 (dictionary_h): New.
4109 (COMMON_OBS): Add dictionary.o.
4110 (dictionary.o): New.
4111 (ada-lang.o): Depend on dictionary_h.
4112 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4113 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4114 (mi-cmd-stack.o): Ditto.
4115 (gdbtk-cmds.o): Update dependencies.
4116 (gdbtk-stack.o): Ditto.
4117 * ada-lang.c: Include dictionary.h.
4118 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4119 (fill_in_ada_prototype, debug_print_block): Ditto.
4120 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4121 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4123 * mdebugread.c: Include dictionary.h.
4124 (struct parse_stack): Delete 'maxsyms' member.
4125 (parse_symbol): Update calls to new_block. Delete calls to
4126 shrink_block. Use dictionary methods.
4127 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4128 Update calls to new_symtab. Don't maintain maxsyms data.
4129 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4130 (add_symbol): Just call dict_add_symbol.
4131 (new_symtab): Delete 'maxsyms' argument.
4132 (new_symtab): Update calls to new_block.
4133 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4134 (shrink_block): Delete function.
4135 (fixup_sigtramp): Update call to new_block. Add symbol via
4137 * jv-lang.c: Include dictionary.h.
4138 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4139 appropriately. Set class_symtab->free_func. Make sure the
4140 blockvector is big enough to hold two blocks.
4141 (add_class_symtab_symbol): Use dictionary methods.
4142 (free_class_block): New function.
4143 (type_from_class): Replace explicit iteration by
4145 * symtab.h (struct symtab): Replace 'free_ptr' method by
4147 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4149 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4151 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4152 Include dictionary.h.
4153 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4154 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4156 * objfiles.c: Include dictionary.h.
4157 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4158 * buildsym.c: Include dictionary.h.
4159 (finish_block): Use dictionary methods.
4160 (end_symtab): Set free_func to NULL, not free_ptr.
4161 * tracepoint.c: Include dictionary.h.
4162 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4163 (scope_info): Ditto.
4164 * stack.c: Include dictionary.h.
4165 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4166 (print_block_frame_labels, print_frame_arg_vars)
4167 (print_frame_args): Ditto.
4168 * symmisc.c (free_symtab_block): Use dictionary methods.
4169 (dump_symtab): Ditto.
4170 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4171 Include dictionary.h.
4172 * symfile.h: Delete declarations of sort_block_syms,
4174 * symfile.c (sort_block_syms): Delete.
4175 (sort_symtab_syms): Delete.
4176 * symtab.c: Include dictionary.h.
4177 (lookup_block_symbol): Use dictionary iterators.
4178 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4179 (search_symbols, make_symbol_completion_list): Ditto.
4180 (make_symbol_overload_list): Ditto.
4181 * valops.c (value_of_local): Use dict_empty.
4182 Include dictionary.h.
4184 2003-06-11 J. Brobecker <brobecker@gnat.com>
4186 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4188 2003-06-11 David Carlton <carlton@bactrian.org>
4190 * block.h (BLOCK_SHOULD_SORT): Delete.
4191 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4193 * ada-lang.c (ada_add_block_symbols): Ditto.
4194 * symfile.c (sort_block_syms): Delete.
4195 (sort_symtab_syms): Ditto.
4196 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4198 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4199 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4200 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4201 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4202 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4203 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4204 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4206 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4208 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4211 2003-06-11 Andrew Cagney <cagney@redhat.com>
4213 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4214 REGISTER_CONVERTIBLE.
4215 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4216 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4217 * gdbarch.h, gdbarch.c: Re-generate.
4218 * arch-utils.h (deprecated_register_convertible_not): Rename
4219 generic_register_convertible_not.
4220 * arch-utils.c (deprecated_register_convertible_not): Rename
4221 generic_register_convertible.
4222 (legacy_convert_register_p, legacy_register_to_value): Update.
4223 * sh-tdep.c (sh64_push_arguments): Update.
4224 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4225 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4226 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4227 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4228 * arch-utils.c (legacy_value_to_register): Update.
4229 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4230 (rs6000_register_convert_to_raw): Make parameter "from" const.
4231 * mips-tdep.c (mips_gdbarch_init): Update.
4232 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4233 * infcmd.c (default_print_registers_info): Update.
4234 * ia64-tdep.c (ia64_gdbarch_init): Update.
4235 (ia64_register_convert_to_raw): Make parameter "from" const.
4236 * i386-tdep.c (i386_gdbarch_init): Update.
4237 (i386_register_convert_to_raw): Update.
4239 2003-06-11 Andrew Cagney <cagney@redhat.com>
4241 * remote-fileio.c: Include "remote-fileio.h".
4242 * Makefile.in (remote-fileio.o): Update dependencies.
4243 (remote_fileio_h): Fix typo.
4245 2003-06-11 Andrew Cagney <cagney@redhat.com>
4247 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4248 (xstormy16_save_dummy_frame_tos): Make static.
4249 (_initialize_xstormy16_tdep): Add declaration.
4250 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4251 * v850-tdep.c: Make local functions static.
4252 (_initialize_v850_tdep): Add declaration.
4253 * sparc-tdep.c: Make local functions static.
4254 (_initialize_sparc_tdep): Add declaration.
4255 * sh-tdep.c: Make local functions static.
4256 (_initialize_sh_tdep): Add declaration.
4257 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4258 * s390-tdep.c: Make local functions static.
4259 (_initialize_s390_tdep): Add declaration.
4260 * dbxread.c (find_stab_function_addr): Make static.
4261 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4262 * ocd.c (_initialize_remote_ocd): Add declaration.
4263 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4264 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4265 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4266 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4267 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4268 * remote-array.c (_initialize_array): Add declaration.
4269 (_initialize_remote_monitors): Add declaration.
4270 * remote-mips.c: Make local functions static.
4271 (_initialize_remote_mips): Add declaration.
4272 * mcore-tdep.c: Make all local functions static.
4273 (_initialize_mcore_tdep): Add declaration.
4274 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4275 * abug-rom.c (_initialize_abug_rom): Add declaration.
4276 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4277 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4278 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4279 * remote-est.c (_initialize_est): Add declaration.
4280 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4281 (m68hc11_call_dummy_address): Make static.
4282 * ia64-tdep.c: Make local functions static.
4283 (_initialize_ia64_tdep): Add declaration.
4284 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4285 * monitor.c (monitor_wait_filter): Make static.
4286 (_initialize_remote_monitors): Add declaration.
4287 * remote-hms.c (_initialize_remote_hms): Add declaration.
4288 * remote-e7000.c (fetch_regs_from_dump): Make static.
4289 (expect_n): Make static.
4290 (_initialize_remote_e7000): Add declaration.
4291 * ser-e7kpc.c: Always include "defs.h".
4292 (_initialize_ser_e7000pc): Add declaration.
4293 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4294 * cris-tdep.c: Make all but one function static.
4295 (_initialize_cris_tdep): Add declaration.
4296 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4297 * solib.c (update_solib_list): Make static.
4298 (_initialize_solib): Add declaration.
4299 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4300 (_initialize_avr_tdep): Add declaration.
4301 * remote-rdi.c (voiddummy): Make static.
4302 (_initialize_remote_rdi): Add declaration.
4303 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4304 * remote-rdp.c (send_rdp): Make static.
4305 (_initialize_remote_rdp): Add declaration.
4306 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4308 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4310 * remote-fileio.c: Make ari happy.
4312 2003-06-10 J. Brobecker <brobecker@gnat.com>
4314 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4315 fetching the trailing bytes of the buffer we are about to write.
4317 2003-06-10 Andrew Cagney <cagney@redhat.com>
4319 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4320 * Makefile.in (remote-fileio.o): Update dependencies.
4321 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4322 include <setjmp.h>, or <sys/types.h> conditional on USG.
4323 (remote_fio_jmp_buf): Delete global variable.
4325 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4326 Martin M. Hunt <hunt@redhat.com>
4328 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4329 (SFILES): Add remote-fileio.c.
4330 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4331 dependencies for building remote.o.
4332 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4333 * remote-fileio.h: New header file defining remote File-I/O interface.
4334 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4335 static storage class.
4336 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4338 (_initialize_remote): Call initialize_remote_fileio().
4339 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4340 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4341 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4342 (captured_main): Initialize new ui_files.
4343 * ui-file.c: Add read and fgets input functions.
4344 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4345 (null_file_read): New function.
4346 (ui_file_read): New function.
4347 (set_ui_file_read): New function.
4348 (stdio_file_read): New function.
4349 * ui-file.h: New type ui_file_read_ftype.
4350 (set_ui_file_read): Declare.
4351 (ui_file_read): Declare.
4353 2003-06-09 Andrew Cagney <cagney@redhat.com>
4355 * frame.h (deprecated_unwind_get_saved_register): Rename
4356 generic_unwind_get_saved_register, update comments.
4357 * mips-tdep.c (mips_get_saved_register): Update.
4358 * frame.c (deprecated_unwind_get_saved_register): Update.
4360 2003-06-09 Andrew Cagney <cagney@redhat.com>
4362 * vax-tdep.c (vax_frame_locals_address): Delete function.
4363 (vax_gdbarch_init): Do not set frame_locals_address.
4364 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4365 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4366 * s390-tdep.c (s390_frame_args_address): Delete function.
4367 (s390_gdbarch_init): Do not set frame_args_address or
4368 frame_locals_address.
4369 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4370 (ns32k_gdbarch_init): Do not set frame_locals_address.
4371 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4372 (hppa_frame_locals_address): Delete function.
4373 (hppa_gdbarch_init): Do not set frame_args_address, or
4374 frame_locals_address.
4375 * arm-tdep.c (arm_frame_args_address): Delete.
4376 (arm_frame_locals_address): Delete.
4377 (arm_gdbarch_init): Do not set frame_args_address, or
4378 frame_locals_address.
4380 2003-06-09 Andrew Cagney <cagney@redhat.com>
4382 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4383 * gdbarch.h, gdbarch.c: Re-generate.
4384 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4385 * arch-utils.c (frame_num_args_unknown): Delete function.
4386 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4387 (frame_info): Use FRAME_NUM_ARGS_P.
4388 * arm-tdep.c (arm_frame_num_args): Delete function.
4389 (arm_gdbarch_init): Do not set frame_num_args.
4390 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4391 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4392 (hppa_gdbarch_init): Do not set frame_num_args.
4393 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4394 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4395 frame_num_args to default frame_num_args_unknown.
4396 * v850-tdep.c (v850_gdbarch_init): Ditto.
4397 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4398 * sh-tdep.c (sh_gdbarch_init): Ditto.
4399 * s390-tdep.c (s390_gdbarch_init): Ditto.
4400 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4401 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4402 * mips-tdep.c (mips_gdbarch_init): Ditto.
4403 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4404 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4405 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4406 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4407 * i386-tdep.c (i386_gdbarch_init): Ditto.
4408 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4409 * frv-tdep.c (frv_gdbarch_init): Ditto.
4410 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4411 * cris-tdep.c (cris_gdbarch_init): Ditto.
4412 * avr-tdep.c (avr_gdbarch_init): Ditto.
4413 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4415 2003-06-09 Andrew Cagney <cagney@redhat.com>
4417 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4418 (print_frame_args): Moved to "stack.c".
4419 * stack.c: Include "gdb_assert.h".
4420 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4421 (print_frame_args): Moved from "printcmd.c".
4422 * frame.h (print_frame_args): Delete declaration.
4423 * Makefile.in (stack.o): Update dependencies.
4425 2003-06-08 Andrew Cagney <cagney@redhat.com>
4427 * frame.c (get_prev_frame): Remove reference to
4428 frame_args_address_correct in comments.
4429 * frame-base.c (default_frame_args_address): Delete code
4430 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4431 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4432 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4433 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4434 (vax_frame_args_address_correct): Delete declaration.
4436 2003-06-08 Andrew Cagney <cagney@redhat.com>
4438 * gdbarch.sh (UNWIND_SP): Add.
4439 * gdbarch.h, gdbarch.c: Re-generate.
4440 * frame.c (frame_sp_unwind): New function.
4441 (get_frame_sp): New function.
4442 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4443 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4444 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4446 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4447 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4449 2003-06-08 Andrew Cagney <cagney@redhat.com>
4451 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4454 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4455 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4456 * config/m68k/tm-sun3.h: Update.
4457 * config/m68k/tm-m68klynx.h: Update.
4458 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4460 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4461 trad_frame". Update comments.
4462 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4463 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4464 (trad_frame_register_value, trad_frame_prev_register): Update.
4466 2003-06-08 Andrew Cagney <cagney@redhat.com>
4468 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4469 from GCC's acinclude.m4.
4470 * configure.in: Check for getopt's delcaration.
4471 * aclocal.m4, config.in, configure: Re-generate.
4472 * main.c (error_init): Delete declaration.
4473 * defs.h (error_init): Declare.
4474 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4475 (rs6000_convert_from_func_ptr_addr): Make static.
4476 (_initialize_rs6000_tdep): Add declaration.
4477 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4478 (show_commands, set_verbose, show_history): Delete declaration.
4479 * top.h (set_verbose): Add declaration.
4480 (show_history, set_history, show_commands): Add declaration.
4481 (do_restore_instream_cleanup): Add declaration.
4482 * objc-lang.c (specialcmp): Make static.
4483 (print_object_command): Make static.
4484 (find_objc_msgsend): Make static.
4485 (find_objc_msgcall_submethod_helper): Make static.
4486 (find_objc_msgcall_submethod): Make static.
4487 (_initialize_objc_language): Add declaration.
4488 (find_implementation_from_class): Make static.
4489 (find_implementation): Make static.
4490 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4491 * objc-lang.h (lookup_struct_typedef): Add declaration.
4492 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4493 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4494 (do_restore_user_call_depth): Make static.
4495 (do_restore_instream_cleanup): Delete declaration.
4496 (dont_repeat): Delete declaration.
4497 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4498 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4499 * reggroups.c (_initialize_reggroup): Add declaration.
4500 * cp-support.c (_initialize_cp_support): Add declaration.
4501 * cp-abi.c (_initialize_cp_abi): Add declaration.
4502 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4503 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4504 (_initialize_gnu_v3_abi): Add declaration.
4505 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4506 (_initialize_gnu_v2_abi): Add declaration.
4507 * frame-base.c (_initialize_frame_base): Add declaration.
4508 * doublest.c (floatformat_from_length): Make static.
4509 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4510 * frame.c (create_sentinel_frame): Make static.
4511 (_initialize_frame): Add declaration.
4512 * top.c (do_catch_errors): Make static.
4513 (gdb_rl_operate_and_get_next_completion): Make static.
4514 * typeprint.c: Include "typeprint.h".
4515 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4516 (sentinel_frame_this_id): Make static.
4517 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4518 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4519 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4520 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4521 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4522 * maint.c (maintenance_print_architecture): Make static.
4523 * signals/signals.c (_initialize_signals): Add declaration.
4524 * std-regs.c (_initialize_frame_reg): Add declaration.
4525 * jv-exp.y (push_variable): ISO C definition.
4526 (push_qualified_expression_name): Ditto.
4527 * memattr.c (_initialize_mem): Add declaration.
4528 * remote.c (remote_check_watch_resources): Make static.
4529 (remote_stopped_by_watchpoint): Make static.
4530 (remote_stopped_data_address): Make static.
4531 * d10v-tdep.c (nr_dmap_regs): Make static.
4532 (a0_regnum): Make static.
4533 (d10v_frame_unwind_cache): Make static.
4534 (d10v_frame_p): Make static.
4535 * osabi.c (show_osabi): Make static.
4536 (_initialize_gdb_osabi): Add extern declaration.
4537 * gdbtypes.c (make_qualified_type): Make static.
4538 (safe_parse_type): Make static.
4539 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4540 * macrotab.c (macro_bcache_free): Make static.
4541 * interps.c (interp_set_quiet): Make static.
4542 (interpreter_exec_cmd): Make static.
4543 * stack.h (select_frame_command): New file.
4544 * stack.c: Include "stack.h".
4545 (select_frame_command_wrapper): Delete function.
4546 (select_frame_command): Make global.
4547 * infcall.c: Include "infcall.h".
4548 * linespec.c: Include "linespec.h".
4549 * symfile.c (sections_overlap): Make static.
4550 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4551 * charset.c (_initialize_charset): Add missing prototype.
4552 * regcache.c (init_legacy_regcache_descr): Make static.
4553 (do_regcache_xfree): Make static.
4554 (regcache_xfer_part): Make static.
4555 (_initialize_regcache): Add missing prototype.
4556 * breakpoint.c (parse_breakpoint_sals): Make static.
4557 (breakpoint_sals_to_pc): Make static.
4558 * interps.h (clear_interpreter_hooks): ISO C declaration.
4559 * Makefile.in (stack_h): Define.
4560 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4561 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4563 2003-06-08 Andrew Cagney <cagney@redhat.com>
4565 * Makefile.in (d10v-tdep.o): Update dependencies.
4566 (SFILES): Add trad-frame.c.
4567 (trad_frame_h): Define.
4568 (COMMON_OBS): Add trad-frame.o.
4569 (trad-frame.o): Specify dependencies.
4570 * d10v-tdep.c: Include "trad-frame.h".
4571 (saved_regs_unwinder): Delete function.
4572 (d10v_frame_prev_register): Use trad_frame_prev_register.
4573 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4574 trad_frame", delete "regs" and "prev_sp".
4575 (prologue_find_regs): Use trad-frame.
4576 * trad-frame.h, trad-frame.c: New files.
4578 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4580 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4582 2003-06-07 Adam Fedor <fedor@gnu.org>
4584 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4585 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4586 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4587 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4588 resolve_msgsend_super, resolve_msgsend_super_stret):
4591 2003-06-07 Andrew Cagney <cagney@redhat.com>
4593 * symfile.h: Re-indent, clean up comments.
4595 2003-06-07 Andrew Cagney <cagney@redhat.com>
4597 * inferior.h (deprecated_write_sp): Replace
4598 generic_target_write_sp.
4599 * regcache.c (deprecated_write_sp): Replace
4600 generic_target_write_sp.
4601 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4602 * vax-tdep.c (vax_gdbarch_init): Update.
4603 * v850-tdep.c (v850_gdbarch_init): Update.
4604 * sparc-tdep.c (sparc_gdbarch_init): Update.
4605 * sh-tdep.c (sh_gdbarch_init): Update.
4606 * s390-tdep.c (s390_gdbarch_init): Update.
4607 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4608 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4609 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4610 * mcore-tdep.c (mcore_gdbarch_init): Update.
4611 * m68k-tdep.c (m68k_gdbarch_init): Update.
4612 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4613 * ia64-tdep.c (ia64_gdbarch_init): Update.
4614 * h8300-tdep.c (h8300_gdbarch_init): Update.
4615 * frv-tdep.c (frv_gdbarch_init): Update.
4616 * cris-tdep.c (cris_gdbarch_init): Update.
4617 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4619 2003-06-07 Andrew Cagney <cagney@redhat.com>
4621 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4622 Assert that PC_REGNUM is valid.
4623 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4625 2003-06-07 Andrew Cagney <cagney@redhat.com>
4627 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4628 * gdbarch.h, gdbarch.c: Regenerate.
4629 * mn10300-tdep.c: Include "gdb_assert.h".
4630 (mn10300_read_fp): New function.
4631 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4632 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4633 * ia64-tdep.c: Include "gdb_assert.h".
4634 (ia64_read_fp): New function.
4635 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4636 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4637 * regcache.c (generic_target_read_sp): Delete function.
4638 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4639 * inferior.h (generic_target_read_sp): Delete declaration.
4640 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4641 generic_target_read_sp.
4642 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4643 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4644 * sh-tdep.c (sh_gdbarch_init): Ditto.
4645 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4646 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4648 2003-06-07 Andrew Cagney <cagney@redhat.com>
4650 * gdbarch.sh: Comment each field of startup_gdbarch.
4651 * gdbarch.h, gdbarch.c: Re-generate.
4653 2003-06-07 Andrew Cagney <cagney@redhat.com>
4655 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4656 * gdbarch.h, gdbarch.c: Re-generate.
4657 * regcache.c: Update comments on read_pc et.al.
4658 (generic_target_read_pc): Delete function.
4659 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4660 * inferior.h (generic_target_read_pc): Delete declaration.
4661 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4662 generic_target_read_pc.
4663 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4664 * sh-tdep.c (sh_gdbarch_init): Ditto.
4665 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4666 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4668 2003-06-07 Andrew Cagney <cagney@redhat.com>
4670 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4671 "index" with "special_local_sect". Use strcmp instead of STREQ.
4672 Append period to coments.
4674 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4676 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4677 (elfstab_offset_sections): Likewise.
4678 * gdb-stabs.h (stab_section_info): Likewise.
4679 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4680 * objfiles.c (objfile_relocate): Likewise.
4681 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4682 * remote.c (get_offsets): Likewise.
4683 (remote_cisco_objfile_relocate): Likewise.
4684 * somread.c (som_symfile_offsets): Likewise.
4685 * symfile.c (alloc_section_addr_info): New function.
4686 (build_section_addr_info_from_section_tab): Use it.
4687 (free_section_addr_info): Adjust.
4688 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4689 (syms_from_objfile): Allocate local_addr dynamically.
4690 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4692 (add_symbol_file_command): Allocate sect_opts dynamically.
4693 (reread_symbols): Avoid use of SECT_OFF_MAX.
4694 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4695 (alloc_section_addr_info): Declare it.
4696 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4697 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4699 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4701 2003-06-06 Andrew Cagney <cagney@redhat.com>
4703 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4704 (d10v_frame_unwind_cache): Do not set "return_pc".
4706 2003-06-06 Michael Snyder <msnyder@redhat.com>
4708 * h8300-tdep.c: Make tidy (long lines).
4710 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4712 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4713 to regcache_collect().
4715 2003-06-05 J. Brobecker <brobecker@gnat.com>
4717 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4718 pc_in_sigtramp multiarch method.
4719 (hppa_hpux_som_init_abi): Use it.
4720 (hppa_hpux_elf_init_abi): Likewise.
4721 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4722 macro has been multiarched.
4723 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4724 macro here, as hppa64 isn't multiarched yet.
4726 2003-06-05 Andrew Cagney <cagney@redhat.com>
4728 * Makefile.in (value_h): Add $(frame_h).
4729 * value.h: Include "frame.h".
4730 (struct value): Replace "frame_addr" with "frame_id".
4731 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4732 * values.c (allocate_value): Use VALUE_FRAME_ID.
4733 (value_copy): Use VALUE_FRAME_ID.
4734 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4735 * valops.c (value_assign): Update. Use frame_find_by_id.
4737 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4739 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4742 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4744 * thread-db.c (check_event): For create/death event breakpoints,
4745 loop through all messages to ensure that we read the message
4746 corresponding to the breakpoint we are at.
4748 2003-06-04 Michael Snyder <msnyder@redhat.com>
4750 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4752 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4754 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4755 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4756 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4757 when handling .eh_frame sections.
4759 2003-06-04 J. Brobecker <brobecker@gnat.com>
4761 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4762 prepare_to_proceed procedure instead of the hppa-specific one.
4763 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4765 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4767 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4768 * config.in: Regenerated.
4769 * configure.in: Add test for syscall function and check for
4770 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4771 * configure: Regenerated.
4772 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4774 (kill_lwp): New function that uses tkill syscall or
4775 uses kill, depending on whether threading model is nptl or not.
4776 All callers of kill() changed to use kill_lwp().
4777 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4778 see if all threads have already exited in the nptl model.
4779 (stop_and_resume_callback): New callback function used by the
4780 lin_lwp_wait thread exit handling code.
4781 (stop_wait_callback): Check for threads already having exited and
4782 delete such threads fromt the lwp list when discovered.
4783 (stop_callback): Don't assert retcode of kill call.
4785 Roland McGrath <roland@redhat.com>
4786 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4789 2003-06-03 Richard Henderson <rth@redhat.com>
4791 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4792 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4793 (alpha_sigtramp_frame_prev_register): Likewise.
4794 (alpha_heuristic_frame_prev_register): Likewise.
4795 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4797 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4798 alpha-specific register id names.
4799 (alpha_mdebug_frame_unwind_cache): Likewise.
4800 (alpha_mdebug_frame_prev_register): Likewise.
4802 2003-06-03 Richard Henderson <rth@redhat.com>
4804 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4805 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4806 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4807 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4809 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4810 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4811 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4813 * alpha-linux-tdep.c: Remove unnecessary includes.
4814 * Makefile.in (alpha-linux-tdep.o): Update.
4816 2003-06-03 Richard Henderson <rth@redhat.com>
4818 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4819 (alphabsd_fill_fpreg): Likewise.
4821 2003-06-03 J. Brobecker <brobecker@gnat.com>
4823 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4824 references to struct frame_info fields by calls to the equivalent
4825 accessors. Necessary now that frame_info is opaque.
4827 2003-06-03 J. Brobecker <brobecker@gnat.com>
4829 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4830 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4831 structure, field no longer exists.
4833 2003-06-03 J. Brobecker <brobecker@gnat.com>
4835 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4836 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4838 2003-06-03 J. Brobecker <brobecker@gnat.com>
4840 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4841 references to struct frame_info fields by calls to the equivalent
4842 accessors. Necessary now that frame_info is opaque.
4844 2003-06-03 J. Brobecker <brobecker@gnat.com>
4846 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4847 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4848 structure, field no longer exists.
4850 2003-06-03 Theodore A. Roth <troth@openavr.org>
4852 * remote.c (init_remote_state): Compute sizeof_g_packet by
4853 accumulation of the size of all registers instead of blindly using
4854 DEPRECATED_REGISTER_BYTES.
4856 2003-06-03 Michael Snyder <msnyder@redhat.com>
4858 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4859 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4862 2003-06-03 J. Brobecker <brobecker@gnat.com>
4864 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4865 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4867 2003-06-03 Andrew Cagney <cagney@redhat.com>
4869 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4870 (sparc_convert_to_raw): Delete function.
4871 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4872 register_convert_to_virtual.
4874 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4876 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4877 layer if not dealing with a statically-linked threaded program.
4879 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4881 * solib.c (solib_open): Update comment to reflect actual search order.
4883 2003-06-03 Andrew Cagney <cagney@redhat.com>
4885 * frame.c (get_frame_memory_signed): New function.
4886 (get_frame_memory, get_frame_memory_unsigned): New function.
4887 (get_frame_arch): New function.
4888 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4889 (get_frame_memory, get_frame_unsigned_memory): Declare.
4890 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4891 get_frame_memory_unsigned and get_frame_arch.
4892 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4894 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4896 * MAINTAINERS (write after approval): Add myself.
4898 2003-06-03 Jim Blandy <jimb@redhat.com>
4900 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4901 elements of gregset_t are 64 bits each, but access registers
4902 are still 32 bits, so they're packed two per gregset_t
4903 element. Unpack/pack them properly.
4905 2003-06-02 David Carlton <carlton@bactrian.org>
4907 * linespec.c (find_methods): Break out code into
4908 add_matching_methods and add_constructors.
4909 (add_matching_methods): New.
4910 (add_constructors): Ditto.
4912 2003-06-02 Andrew Cagney <cagney@redhat.com>
4914 * sparc-tdep.c (sparc_print_registers): Delete call to
4915 REGISTER_CONVERTIBLE.
4916 (sparc_gdbarch_init): Do not set register_convertible.
4917 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4918 * frv-tdep.c (frv_gdbarch_init): Ditto.
4919 * cris-tdep.c (cris_gdbarch_init): Ditto.
4921 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4923 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4924 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4925 (syms_from_objfile): Ditto.
4927 2003-06-03 Andreas Schwab <schwab@suse.de>
4929 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4930 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4932 2003-06-02 Richard Henderson <rth@redhat.com>
4934 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4935 a member of all_reggroup.
4937 2003-06-02 Richard Henderson <rth@redhat.com>
4939 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4940 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4941 (alpha_lds, alpha_sts): New.
4942 (alpha_convert_register_p): Change from _register_convertible.
4943 (alpha_register_to_value): Change from _convert_to_virtual;
4944 restructure and fail for type sizes other than 4 or 8.
4945 (alpha_value_to_register): Similarly.
4946 (alpha_extract_return_value): Use alpha_sts.
4947 (alpha_store_return_value): Use alpha_lds.
4948 (alpha_gdbarch_init): Update hooks.
4950 2003-06-02 Richard Henderson <rth@redhat.com>
4952 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4954 (alpha_sigtramp_register_address): Likewise.
4956 2003-06-02 Richard Henderson <rth@redhat.com>
4958 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4959 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4960 * alpha-tdep.h: Declare them.
4962 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4963 Remove zerobuf. Don't error on UNIQUE.
4964 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4965 (ALPHA_REGSET_UNIQUE): Provide default.
4966 (supply_gregset): Use alpha_supply_int_regs.
4967 (fill_gregset): Use alpha_fill_int_regs.
4968 (supply_fpregset): Use alpha_supply_fp_regs.
4969 (fill_fpregset): Use alpha_fill_fp_regs.
4970 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4971 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4972 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4973 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4974 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4975 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4977 2003-06-02 Richard Henderson <rth@redhat.com>
4979 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4981 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4982 (alpha_store_return_value): Likewise.
4984 2003-06-02 David Carlton <carlton@math.stanford.edu>
4986 * block.c (contained_in): Add 'const' to arguments.
4987 (block_function): Ditto.
4988 * block.h: Update declarations for block_function and
4991 2003-06-02 David Carlton <carlton@math.stanford.edu>
4993 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4994 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4995 * p-valprint.c (pascal_val_print): Ditto.
4996 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4998 2003-06-02 Richard Henderson <rth@redhat.com>
5000 * alpha-tdep.c (alpha_push_dummy_call): Use
5001 builtin_type_ieee_double_little instead of builtin_type_double.
5003 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5004 sign-extension of 32-bit values.
5005 (alpha_store_return_value): Similarly.
5007 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5008 (alpha_extract_return_value): Likewise.
5009 (alpha_store_return_value): Likewise.
5011 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5012 (alpha_store_return_value): Error on IEEE Quad floats.
5014 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5015 (alpha_extract_struct_value_address): Likewise.
5016 (alpha_store_return_value): Likewise.
5017 (alpha_store_struct_return): Remove.
5018 (alpha_gdbarch_init): Update hook registration to match.
5020 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5021 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5022 macros where appropriate.
5023 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5024 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5026 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5027 for SP, GP; void_func_ptr for PC; non-language-specific types
5029 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5031 2003-06-02 Richard Henderson <rth@redhat.com>
5033 * top.h (lim_at_start): Declare.
5034 * main.c (captured_main): Set it.
5035 * top.c (lim_at_start): Define.
5036 (command_loop): Use it instead of &environ.
5037 * event-top.c (command_handler): Likewise.
5039 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5041 * mipsnbsd-tdep.c: Update copyright years.
5042 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5044 2003-06-01 Richard Henderson <rth@redhat.com>
5046 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5047 (alpha-linux-tdep.o): Update dependencies.
5048 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5049 * alpha-mdebug-tdep.c: Remove unneeded includes.
5051 2003-06-01 Richard Henderson <rth@redhat.com>
5053 * alpha-tdep.c (alpha_register_reggroup_p): New.
5054 (alpha_gdbarch_init): Register it.
5056 2003-06-02 Andrew Cagney <cagney@redhat.com>
5058 * dwarfread.c: Eliminate "register"
5059 (decode_die_type): Eliminate assignment within "if".
5060 (struct_type, decode_array_element_type): Ditto.
5061 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5062 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5063 (decode_modified_type, completedieinfo): Ditto.
5064 * block.c: Eliminate "register".
5065 (blockvector_for_pc_sect): Eliminate assignment within "if".
5066 * cp-support.h (struct symbol): Opaque declaration.
5067 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5069 2003-06-01 Richard Henderson <rth@redhat.com>
5071 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5072 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5074 2003-06-01 Adam Fedor <fedor@gnu.org>
5076 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5077 * gdbarch.[ch]: Regenerate.
5078 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5079 (hppa_gdbarch_init): Set it in the gdbarch vector.
5080 * i386-tdep.c (i386_fetch_pointer_argument): New
5081 (i386_gdbarch_init): Set it into gdbarch.
5082 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5083 (rs6000_gdbarch_init): Set it in gdbarch.
5084 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5085 (sparc_gdbarch_init): Set it in gdbarch.
5087 2003-06-01 Andrew Cagney <cagney@redhat.com>
5089 * defs.h (extract_address): Delete declaration.
5090 * findvar.c (extract_address): Delete function.
5091 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5092 extract_address with the inline equivalent,
5093 extract_unsigned_integer.
5094 (xstormy16_extract_struct_value_address): Ditto.
5095 (xstormy16_pointer_to_address): Ditto.
5096 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5097 * v850-tdep.c (v850_push_arguments): Ditto.
5098 (v850_extract_return_value): Ditto.
5099 (v850_extract_struct_value_address): Ditto.
5100 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5101 (sparcnbsd_get_longjmp_target_64): Ditto.
5102 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5103 (get_longjmp_target): Ditto.
5104 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5105 (sh64_extract_struct_value_address): Ditto.
5106 (sh_push_arguments): Ditto.
5107 (sh64_push_arguments): Ditto.
5108 * remote-vxsparc.c (vx_read_register): Ditto.
5109 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5110 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5111 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5112 * mipsv4-nat.c (get_longjmp_target): Ditto.
5113 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5114 * mips-nat.c (get_longjmp_target): Ditto.
5115 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5116 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5117 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5118 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5119 * irix5-nat.c (get_longjmp_target): Ditto.
5120 * irix4-nat.c (get_longjmp_target): Ditto.
5121 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5122 (ia64_push_arguments): Ditto.
5123 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5124 * h8300-tdep.c (h8300_push_arguments): Ditto.
5125 (h8300_store_return_value): Ditto.
5126 (h8300_extract_struct_value_address): Ditto.
5127 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5128 (frv_push_arguments): Ditto.
5129 * avr-tdep.c (avr_pointer_to_address): Ditto.
5130 (avr_push_arguments): Ditto.
5131 * arm-tdep.c (arm_push_dummy_call): Ditto.
5132 (arm_get_longjmp_target): Ditto.
5133 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5134 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5135 (alpha_get_longjmp_target): Ditto.
5137 * solib-irix.c (extract_mips_address): Inline extract_address,
5138 replacing it with extract_signed_integer.
5139 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5140 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5141 (first_link_map_member, open_symbol_file_object): Ditto.
5142 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5143 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5144 (LM_NEXT, LM_NAME): Ditto.
5146 2003-06-01 Richard Henderson <rth@redhat.com>
5148 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5149 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5150 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5151 (alpha_cannot_store_register): Likewise.
5152 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5153 * alpha-nat.c (supply_gregset): Likewise.
5154 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5156 2003-06-01 Andrew Cagney <cagney@redhat.com>
5158 * infcall.c (call_function_by_hand): Update comment on
5159 DEPRECATED_DUMMY_WRITE_SP.
5161 * mips-tdep.c (mips_gdbarch_init): Do not set
5162 deprecated_dummy_write_sp.
5163 (mips_eabi_push_dummy_call): Set the SP register.
5164 (mips_o64_push_dummy_call): Set the SP register.
5165 (mips_o32_push_dummy_call): Set the SP register.
5166 (mips_n32n64_push_dummy_call): Set the SP register.
5168 2003-06-01 Richard Henderson <rth@redhat.com>
5170 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5171 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5172 (supply_gregset): Likewise.
5173 * alpha-tdep.c (alpha_store_return_value): Likewise.
5174 (alpha_get_longjmp_target): Likewise.
5175 (alpha_register_name): Constify array.
5176 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5177 deprecated_register_size, deprecated_register_bytes,
5178 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5179 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5180 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5182 2003-06-01 Richard Henderson <rth@redhat.com>
5184 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5185 from arg_reg_buffer to regcache to avoid double conversion.
5187 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5189 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5191 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5192 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5194 2003-06-01 Richard Henderson <rth@redhat.com>
5196 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5197 (decode_frame_entry): Set it. Skip FDE augmentation.
5199 2003-06-01 Richard Henderson <rth@redhat.com>
5201 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5202 not overlapping PC_REGNUM.
5204 2003-06-01 Richard Henderson <rth@redhat.com>
5206 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5207 alpha_push_arguments. Don't dump argument register data to
5208 the target stack. Fix float and 128-bit long double semantics.
5209 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5210 (alpha_fix_call_dummy): Remove.
5211 (alpha_call_dummy_words): Remove.
5212 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5214 2003-06-01 Richard Henderson <rth@redhat.com>
5216 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5218 2003-06-01 Andrew Cagney <cagney@redhat.com>
5220 * mips-tdep.c (is_mips16_addr): New function.
5221 (make_mips16_addr, unmake_mips16_addr): New functions.
5222 (pc_is_mips16, mips_fetch_instruction): Use.
5223 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5224 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5225 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5226 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5228 * config/mips/tm-mips.h: Update copyright.
5229 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5230 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5231 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5232 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5233 (TM_PRINT_INSN_MACH): Delete.
5234 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5236 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5237 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5238 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5239 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5240 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5241 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5242 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5243 mips*-*-riscos* and mips*-*-sysv* onto mips.
5244 * config/mips/mips64.mt: New file.
5245 * config/mips/mips.mt: New file.
5246 * config/mips/littlemips.mt: Delete file.
5247 * config/mips/decstation.mt: Delete file.
5248 * config/mips/vr4300el.mt: Delete file.
5249 * config/mips/vr5000el.mt: Delete file.
5250 * config/mips/vr5000.mt: Delete file.
5251 * config/mips/vr4100.mt: Delete file.
5252 * config/mips/vr4xxxel.mt: Delete file.
5253 * config/mips/vr4300.mt: Delete file.
5254 * config/mips/vr4xxx.mt: Delete file.
5255 * config/mips/bigmips.mt: Delete file.
5256 * config/mips/bigmips64.mt: Delete file.
5257 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5258 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5259 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5260 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5261 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5263 * config/mips/tm-irix3.h: Ditto.
5264 * config/mips/tm-mipsv4.h: Ditto.
5265 * config/mips/tm-embed.h: Ditto.
5266 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5268 * config/mips/tm-vr5000el.h: Delete file.
5269 * config/mips/tm-tx39l.h: Delete file.
5270 * config/mips/tm-vr4300el.h: Delete file.
5271 * config/mips/tm-vr4xxxel.h: Delete file.
5272 * config/mips/tm-vr4300.h: Delete file.
5273 * config/mips/tm-vr4100.h: Delete file.
5274 * config/mips/tm-vr4xxx.h: Delete file.
5275 * config/mips/tm-vr5000.h: Delete file.
5276 * config/mips/tm-embedl64.h: Delete file.
5277 * config/mips/tm-embedl.h: Delete file.
5278 * config/mips/tm-embed64.h: Delete file.
5279 * config/mips/tm-bigmips64.h: Delete file.
5280 * config/mips/tm-bigmips.h: Delete file.
5282 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5285 * shnbsd-nat.c: Include "sh-tdep.h".
5287 From Richard Henderson <rth@redhat.com>:
5288 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5290 2003-05-31 Andrew Cagney <cagney@redhat.com>
5292 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5293 forward declaration.
5294 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5295 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5296 (mips_find_saved_regs): Use set_reg_offset.
5297 (mips_frame_init_saved_regs): Delete function.
5298 (mips_pop_frame): Call mips_find_saved_regs instead of
5299 DEPRECATED_FRAME_INIT_SAVED_REGS.
5301 2003-05-31 Andrew Cagney <cagney@redhat.com>
5303 * mips-tdep.c (mips_gdbarch_init): Do not set
5304 deprecated_max_register_raw_size, register_virtual_size, and
5305 deprecated_max_register_virtual_size.
5307 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5309 * i386-tdep.c: Include "dwarf2-frame.h".
5310 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5311 * Makefile.in (i386-tdep.o): Update dependencies.
5313 * dwarf2-frame.c, dwarf2-frame.h: New files.
5314 * Makefile.in (SFILES): Add dwarf2-frame.c.
5315 (dwarf2_frame_h): Define.
5316 (COMMON_OBS): Add dwarf2-frame.o.
5317 (dwarf2-frame.o): Add dependencies.
5319 2003-05-31 Andreas Jaeger <aj@suse.de>
5321 * x86-64-linux-nat.c: Fix comment.
5323 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5325 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5328 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5329 have a sigcontext_addr handler.
5330 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5331 sigcontext_addr handler.
5333 2003-05-31 Andrew Cagney <cagney@redhat.com>
5335 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5336 (print_fp_register_row): Replace do_fp_register_row.
5337 (mips_print_fp_register): Add "file" and "frame" parameters.
5338 (mips_print_register): Add "file" and "frame" parameters.
5339 (mips_print_registers_info): Replace mips_do_registers_info.
5340 (mips_gdbarch_init): Set print_registers_info instead of
5341 deprecated_do_registers_info.
5342 (mips_read_fp_register_single): Add "frame" parameter.
5343 (mips_read_fp_register_double): Add "frame" parameter.
5345 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5347 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5348 Fixes a bug where GDB would print the wrong register names for
5349 targets without SSE.
5351 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5352 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5355 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5356 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5357 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5360 From Michal Ludvig <mludvig@suse.cz>:
5361 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5363 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5364 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5365 I386_ST0_REGNUM): Move here from...
5366 * i386-tdep.c: ... here.
5367 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5368 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5369 registers if possible.
5370 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5371 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5373 (i386bsd_sc_reg_offset): New variable.
5374 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5375 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5377 (i386fbsd_sc_reg_offset): New variable.
5378 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5380 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5382 (i386fbsd4_sc_reg_offset): New variable.
5383 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5384 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5386 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5387 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5388 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5390 (i386nbsd_sc_reg_offset): New variable.
5391 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5392 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5394 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5396 (i386obsd_sc_reg_offset): New variable.
5397 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5398 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5400 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5401 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5402 for frame pointer offset in `struct sigcontext'.
5404 2003-05-31 Andrew Cagney <cagney@redhat.com>
5406 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5407 architecture methods call_dummy_words, sizeof_call_dummy_words,
5408 push_return_address, store_struct_return, and fix_call_dummy. Set
5409 push_dummy_call instead of deprecated_push_arguments.
5410 (mips_store_struct_return): Delete function.
5411 (mips_fix_call_dummy): Delete function.
5412 (mips_push_return_address): Delete function.
5413 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5414 RA_REGNUM and T9_REGNUM.
5415 (mips_n32n64_push_dummy_call): Ditto for
5416 mips_n32n64_push_arguments.
5417 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5418 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5420 2003-05-31 Andrew Cagney <cagney@redhat.com>
5422 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5423 "dummy_addr" to "bp_addr".
5424 * infcall.c (call_function_by_hand): Pass "funaddr" to
5425 gdbarch_push_dummy_call.
5426 * gdbarch.h, gdbarch.c: Re-generate.
5427 * i386-tdep.c (i386_push_dummy_call): Update.
5428 * arm-tdep.c (arm_push_dummy_call): Update.
5429 * d10v-tdep.c (d10v_push_dummy_call): Update.
5431 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5433 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5434 variable declarations.
5435 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5436 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5437 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5438 x86_64_init_frame_pc, x86_64_init_frame_pc,
5439 x86_64_function_has_prologue): Remove prototypes.
5440 (X86_64_NUM_GREGS): New define.
5441 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5442 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5443 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5444 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5445 XMM1_REGNUM): Remove defines.
5446 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5447 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5448 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5449 X86_64_XMM1_REGNUM): New defines.
5450 (struct x86_64_register_info): Renamed from `struct
5451 register_info'. Remove `size' member.
5452 (x86_64_register_info_table): Remove variable.
5453 (x86_64_register_info): New variable.
5454 (X86_64_NUM_REGS): New define.
5455 (X86_64_NUM_GREGS): Remove define.
5456 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5457 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5459 (x86_54_dwarf2_reg_to_regnum): Remove function.
5460 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5461 (x86_64_dwarf_reg_to_regnum): New function.
5462 (x86_64_register_name): Rewrite.
5463 (x86_64_register_raw_size): Remove function.
5464 (x86_64_register_byte_table): Remove variable.
5465 (x86_64_register_byte): Remove function.
5466 (x86_64_register_virtual_type): Remove function.
5467 (x86_64_register_type): New function.
5468 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5469 x86_64_register_convert_to_raw): Remove functions.
5470 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5471 (x86_64_use_struct_convention): Make static. Adjust for renamed
5473 (x86_64_frame_init_saved_regs): Remove function.
5474 (x86_64_push_arguments): Make static. Change to accept a regcache
5476 (x86_64_store_return_value, x86_64_extract_return_value): Make
5477 static. Rewrite based on i386 counterparts.
5478 (x86_64_push_dummy_call): New function.
5479 (X86_64_NUM_SAVED_REGS): New define.
5480 (x86_64_register_number): Remove function.
5481 (x86_64_store_struct_return): Remove function.
5482 (x86_64_frameless_function_invocation,
5483 x86_64_function_has_prologue): Remove functions.
5484 (PROLOG_BUFSIZE): Remove define.
5485 (struct x86_64_frame_cache): New structure.
5486 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5487 x86_64_frame_cache, x86_64_frame_this_id,
5488 x86_64_frame_prev_register, x86_64_frame_p,
5489 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5490 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5492 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5494 (x86_64_skip_prologue): Rewrite in terms of
5495 x86_64_analyze_prologue.
5496 (x86_64_frame_base_address): New function.
5497 (x86_64_frame_base): New variable.
5498 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5499 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5500 set deprecated_fp_regnum, deprecated_register_size,
5501 deprecated_register_bytes, register_raw_size, register_byte,
5502 register_virtual_type, register_convertiable,
5503 register_convert_to_virtual, convert_to_raw,
5504 deprecated_get_saved_register, deprecated_target_read_fp,
5505 deprecated_push_arguments, deprecated_push_return_address,
5506 deprecated_pop_frame, deprecated_store_struct_return,
5507 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5508 frameless_function_invocation, deprecated_frame_saved_pc,
5509 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5510 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5511 deprecated_init_frame_pc and virtual_frame_pointer. Call
5512 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5513 and x86_64_frame_p. Call frame_base_set_default to register
5515 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5516 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5517 (_initialize_x86_64_tdep): Remove function.
5518 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5519 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5520 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5522 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5523 (x86_64_linux_sigcontext_addr): Rewrite.
5524 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5525 x86_64_linux_frame_saved_pc): Remove functions.
5526 (x86_64_linux_pc_in_sigtramp): Renamed from
5527 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5529 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5531 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5532 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5533 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5534 (x86_64_regmap): Rename to regmap.
5535 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5537 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5539 (x86_64_fxsave_offset): Remove function.
5540 (supply_fpregset): Simply call x86_64_supply_fxsave.
5541 (fill_fpregset): Simply call x86_64_fill_fxsave.
5542 (fetch_inferior_registers, store_inferior_registers): Avoid
5543 asignment in if-statement.
5544 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5545 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5546 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5547 (fetch_core_registers): Remove function.
5548 (linux_elf_core_fns): Remove.
5549 (offsetoff): Don't define.
5550 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5551 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5552 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5554 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5555 protection against multiple includes instead of NM_X86_64_h. Add
5556 various comments. Include "config/nm-linux.h". Don't include
5558 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5559 GET_THREAD_SIGNALS): Remove defines.
5560 (x86_64_register_u_addr, kernel_u_size,
5561 lin_thread_get_thread_signals): Remove prototypes.
5562 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5563 [HAVE_LINK_H]: Don't include "solib.h".
5564 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5565 * config/i386/tm-x86-64linux.h: Fix comments.
5566 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5567 x86-64-tdep.o): Update dependencies.
5569 2003-05-30 Andrew Cagney <cagney@redhat.com>
5571 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5572 Change parameter type to a "struct regcache *".
5574 * gdbarch.sh: Regardless of the multi-arch level, always define
5575 the macro when not already defined.
5576 * gdbarch.h, gdbarch.c: Re-generate.
5578 2003-05-30 Richard Henderson <rth@redhat.com>
5580 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5581 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5582 (alpha_mdebug_frame_this_id): Likewise.
5583 (alpha_mdebug_frame_prev_register): Likewise.
5584 (alpha_mdebug_frame_base_address): Likewise.
5585 (alpha_mdebug_frame_locals_address): Likewise.
5586 (alpha_mdebug_frame_args_address): Likewise.
5587 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5588 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5589 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5591 (alpha_heuristic_frame_this_id): Make static.
5592 (alpha_heuristic_frame_prev_register): Likewise.
5593 (alpha_heuristic_frame_base_address): Likewise.
5594 * alpha-tdep.h: Update.
5596 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5598 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5599 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5601 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5602 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5603 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5604 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5605 I386_ST0_REGNUM): New defines.
5606 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5607 codestream_get): Remove define.
5608 (codestream_next_addr, condestream_addr, condestream_buf,
5609 codestream_off, codestream_cnt): Remove variables.
5610 (codestream_fill, codestream_seek, codestream_read): Remove
5612 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5614 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5615 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5616 i386_frame_saved_pc, i386_saved_pc_after_call,
5617 i386_frame_num_args, i386_frame_init_saved_regs,
5618 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5619 i386_push_arguments): Remove functions.
5620 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5621 functionality. Use i386_analyze_prologue instead of
5622 i386_get_frame_setup.
5623 (I386_NUM_SAVED_REGS): New define.
5624 (struct i386_frame_cache): New structure.
5625 (i386_alloc_frame_cache, i386_analyze_struct_return,
5626 i386_skip_probe, i386_analyze_frame_setup,
5627 i386_analyze_register_saves, i386_analyze_prologue,
5628 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5629 i386_frame_prev_register, i386_sigtramp_frame_cache,
5630 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5631 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5632 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5634 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5636 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5637 I386_EAX_REGNUM and I386_EDX_REGNUM.
5638 (i386_extract_return_value, i386_store_return_value): Use
5639 I386_ST0_REGNUM where appropriate.
5640 (i386_extract_struct_value_address): Rewrite to use extract_address.
5641 (i386_svr4_pc_in_sigtramp): Add comment.
5642 (i386_svr4_sigcontext_addr): Rewrite.
5643 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5645 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5646 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5647 of new defines. Set push_dummy_call, don't set
5648 deprecated_push_arguments, deprecated_push_return_address,
5649 deprecated_pop_frame. Don't set parm_boundary. Don't set
5650 deprecated_frame_chain, deprecated_frame_saved_pc,
5651 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5652 save_dummy_frame_tos, unwind_pc. Call
5653 frame_unwind_append_predicate and frame_base_set_default. Don't
5654 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5655 Don't set frameless_function_invocation. Don't set
5656 deprecated_register_bytes, deprecated_register_size,
5657 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5658 * i386-linux-tdep.c: Fix formatting in some comments.
5659 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5660 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5661 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5662 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5663 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5664 redundant parentheses.
5665 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5666 (i386_linux_sigcontext_addr): Use it. Rewrite.
5667 (find_minsym_and_objfile): Change name of second argument.
5668 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5669 changed. Use frame_pc_unwind instead of
5670 DEPRECATED_SAVED_PC_AFTER_CALL.
5671 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5672 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5673 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5675 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5677 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5678 (_initialize_i386_cygwin_tdep): New prototype.
5679 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5680 deprecated_frame_chain_valid.
5681 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5682 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5683 Rely on the SVR4 defaults.
5684 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5685 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5687 2003-05-30 Andrew Cagney <cagney@redhat.com>
5689 * infcall.c (call_function_by_hand): Always call
5690 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5692 2003-05-30 Richard Henderson <rth@redhat.com>
5694 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5697 2003-05-29 Jim Blandy <jimb@redhat.com>
5699 Use gdbarch methods for solib stuff on PowerPC Linux.
5700 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5701 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5703 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5704 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5705 giving the same effect as the #definitions above.
5707 2003-05-29 Adam Fedor <fedor@gnu.org>
5709 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5710 (find_implementation_from_class): Replace it with the standard
5711 case i.e. do nothing.
5713 2003-05-29 Richard Henderson <rth@redhat.com>
5715 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5716 (alpha_linux_sigtramp_offset): Use it. Make static.
5717 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5718 update for new frame model.
5719 * alpha-mdebug-tdep.c: New file.
5720 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5721 (alpha_osf1_init_abi): Install it.
5722 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5723 (linked_proc_desc_table): Remove.
5724 (alpha_frame_past_sigtramp_frame): Remove.
5725 (alpha_dynamic_sigtramp_offset): Remove.
5726 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5727 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5728 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5729 (push_sigtramp_desc): Remove.
5730 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5731 (alpha_cannot_store_register): Likewise.
5732 (alpha_sigcontext_addr): Remove.
5733 (alpha_find_saved_regs): Remove.
5734 (alpha_frame_init_saved_regs): Remove.
5735 (alpha_init_frame_pc_first): Remove.
5736 (read_next_frame_reg): Remove.
5737 (alpha_frame_saved_pc): Remove.
5738 (alpha_saved_pc_after_call): Remove.
5739 (temp_proc_desc, temp_saved_regs): Remove.
5740 (alpha_about_to_return): Remove.
5741 (cached_proc_desc): Remove.
5742 (alpha_frame_chain): Remove.
5743 (alpha_print_extra_frame_info): Remove.
5744 (alpha_init_extra_frame_info): Remove.
5745 (alpha_frame_locals_address): Remove.
5746 (alpha_frame_args_address): Remove.
5747 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5748 (alpha_push_dummy_frame): Remove.
5749 (alpha_pop_frame): Remove.
5750 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5751 (alpha_read_insn): New.
5752 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5753 for different insn encodings.
5754 (alpha_in_lenient_prologue): Remove.
5755 (struct alpha_sigtramp_unwind_cache): New.
5756 (alpha_sigtramp_frame_unwind_cache): New.
5757 (alpha_sigtramp_register_address): New.
5758 (alpha_sigtramp_frame_this_id): New.
5759 (alpha_sigtramp_frame_prev_register): New.
5760 (alpha_sigtramp_frame_unwind): New.
5761 (alpha_sigtramp_frame_p): New.
5762 (struct alpha_heuristic_unwind_cache): New.
5763 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5764 don't count nop insns that occur between functions.
5765 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5766 heuristic_proc_desc, but without the mdebug wrapping.
5767 (alpha_heuristic_frame_this_id): New.
5768 (alpha_heuristic_frame_prev_register): New.
5769 (alpha_heuristic_frame_unwind): New.
5770 (alpha_heuristic_frame_p): New.
5771 (alpha_heuristic_frame_base_address): New.
5772 (alpha_heuristic_frame_base): New.
5773 (alpha_unwind_dummy_id): New.
5774 (alpha_unwind_pc): New.
5775 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5776 frame related deprecated initializations; install replacements.
5777 (alpha_dump_tdep): Remove.
5778 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5779 (alpha_read_insn, alpha_after_prologue,
5780 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5781 alpha_heuristic_frame_prev_register,
5782 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5783 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5784 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5785 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5787 2003-05-29 Andrew Cagney <cagney@redhat.com>
5789 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5790 dependant on the availability of ASSERT_FUNCTION.
5791 (ASSERT_FUNCTION): Do not define when there is no function name.
5793 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5795 From Jimi X <jimix@watson.ibm.com>:
5796 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5798 2003-05-28 Jim Blandy <jimb@redhat.com>
5800 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5801 argument to ptrace to int; the system headers should give it the
5802 right type, and pointers don't fit in ints on powerpc64-*-*.
5804 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5806 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5809 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5811 * stabsread.c (dbx_lookup_type): Make static.
5813 (add_undefined_type): Ditto.
5814 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5817 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5819 * hpread.c (hpread_has_name): Make static.
5820 (hpread_psymtab_to_symtab): Ditto.
5821 (file_exists): Ditto.
5822 (hpread_call_pxdb): Ditto.
5823 (hpread_pxdb_needed): Ditto.
5824 (hpread_quick_traverse): Ditto.
5825 (hpread_get_header): Ditto.
5826 (hpread_get_lntt): Ditto.
5827 (hpread_get_slt): Ditto.
5830 2003-05-25 Andreas Schwab <schwab@suse.de>
5832 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5833 stack_align and deprecated_extra_stack_alignment_needed.
5834 (m68k_stack_align): Delete.
5836 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5837 (m68k_register_virtual_size): Likewise.
5838 (altos_skip_prologue): Remove obsolete function.
5839 (isi_frame_num_args): Likewise.
5840 (news_frame_num_args): Likewise.
5841 (m68k_fix_call_dummy): Make static.
5842 (m68k_push_dummy_frame): Likewise.
5843 (m68k_pop_frame): Likewise.
5844 (m68k_skip_prologue): Likewise.
5845 (m68k_frame_init_saved_regs): Likewise.
5846 (m68k_saved_pc_after_call): Likewise.
5847 (m68k_get_longjmp_target): Make multi-arch.
5848 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5849 structure. Register m68k_get_longjmp_target if enabled.
5850 * m68k-tdep.h (struct gdbarch_tdep): Define.
5851 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5853 * Makefile.in (config.status): Also depend on configure.tgt
5855 (m68klinux-tdep.o): Update dependencies.
5856 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5857 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5858 (M68K_LINUX_JB_PC): Define.
5859 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5860 and take additional parameter.
5861 (m68k_linux_sigtramp_saved_pc): Update.
5862 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5863 m68k_linux_pc_in_sigtramp, in_plt_section,
5864 find_solib_trampoline_target.
5865 * config/m68k/tm-linux.h: Don't include any tm headers.
5866 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5867 (JB_ELEMENT_SIZE): Likewise.
5869 (GET_LONGJMP_TARGET): Likewise.
5870 (IN_SIGTRAMP): Likewise.
5871 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5873 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5875 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5876 (sparc32_push_arguments): Re-implement by calling
5877 sparc32_do_push_arguments.
5879 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5881 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5882 SPARC_O1_REGNUM): New defines.
5883 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5884 (sparc32_store_return_value): New function.
5885 (sparc_extract_struct_value_address): Rewrite to operate on a
5887 (sparc_gdbarch_init): Don't set
5888 deprecated_extract_struct_value_address. Set
5889 extract_struct_value_address instead. Don't set
5890 deprecated_extract_return_value and deprecated_store_return_value
5891 for 32-bit targets. Set extract_return_value and
5892 store_return_value instead.
5893 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5894 DEPRECTAED_EXTRACT_RETURN_VALUE,
5895 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5896 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5897 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5898 (sparc_store_return_value): Remove prototype.
5899 (sparc32_store_return_value): New prototype.
5900 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5903 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5905 * sparcnbsd-tdep.c: Include "gdb_string.h".
5907 2003-05-23 Andrew Cagney <cagney@redhat.com>
5909 * p-valprint.c (pascal_val_print): Replace extract_address with
5910 the inline equivalent extract_unsigned_integer.
5911 * jv-valprint.c (java_value_print): Ditto.
5912 * ada-valprint.c (ada_val_print_1): Ditto.
5913 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5915 2003-05-23 Theodore A. Roth <troth@openavr.org>
5917 * blockframe.c (frameless_look_for_prologue): Remove unused
5918 after_prologue variable.
5920 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5922 * blockframe.c (get_pc_function_start): Rewrite to avoid
5923 asignments in if-statements.
5925 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5927 Committed by Elena Zannoni <ezannoni@redhat.com>.
5928 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5929 files, don't relocate absolute symbols (and do use mst_abs).
5931 2003-05-23 Andrew Cagney <cagney@redhat.com>
5933 * objc-lang.c: Include "gdb_assert.h".
5934 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5935 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5936 (gdb_check, gdb_check_fatal): Delete functions.
5937 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5939 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5940 * Makefile.in (objc-lang.o): Update dependencies.
5942 2003-05-22 Ian Lance Taylor <ian@airs.com>
5944 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5945 with fprintf_filtered, not fprintf_unfiltered.
5947 2003-05-22 Andrew Cagney <cagney@redhat.com>
5949 * stack.c (frame_info): Inline extract_address, replacing it with
5950 extract_unsigned_integer.
5951 * findvar.c (unsigned_pointer_to_address): Ditto.
5952 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5953 * dwarf2expr.c (dwarf2_read_address): Ditto.
5954 * frame.c (frame_pc_unwind): Update comment.
5955 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5957 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5959 * infptrace.c (detach): Call print_sys_errmsg rather than
5960 perror_with_name to issue warning message when errno is non-zero
5961 after calling ptrace detach.
5963 2003-05-21 J. Brobecker <brobecker@gnat.com>
5965 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5966 macro definitions from here...
5967 * hppa-tdep.c: ...to there.
5969 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5971 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5972 register_ptrace_addr(). Fix all callers.
5974 2003-05-21 Andreas Schwab <schwab@suse.de>
5976 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5978 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5980 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5981 (_initialize_m68k_linux_tdep): New function.
5982 (m68k_linux_frame_saved_pc): Make static.
5983 (m68k_linux_extract_return_value): Likewise.
5984 (m68k_linux_store_return_value): Likewise.
5985 (m68k_linux_extract_struct_value_address): Likewise.
5986 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5988 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5989 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5990 (DEPRECATED_FRAME_SAVED_PC): Remove.
5992 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5994 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5995 regset numbering rather than our own.
5997 2003-05-19 David Carlton <carlton@bactrian.org>
5999 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6001 2003-05-19 David Carlton <carlton@bactrian.org>
6003 Partial fix for PR c++/827.
6004 * cp-support.h: Include symtab.h.
6005 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6006 * cp-namespace.c: Update contributors.
6007 (cp_lookup_symbol_nonlocal): New.
6008 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6009 (lookup_symbol_file): Ditto.
6010 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6011 * block.h: Declare block_scope, block_using, block_global_block.
6012 * block.c (block_scope): New.
6013 (block_using, block_global_block): Ditto.
6014 * Makefile.in (cp_support_h): Depend on symtab_h.
6015 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6017 2003-05-19 David Carlton <carlton@bactrian.org>
6019 * language.h (struct language_defn): Add 'la_value_of_this'
6020 and 'la_lookup_symbol_nonlocal' members.
6021 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6022 lookup_symbol_static, lookup_symbol_global,
6023 lookup_symbol_aux_block.
6024 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6025 if we should search fields of this and how to do static/global
6027 (lookup_symbol_aux_block): Make extern.
6028 (basic_lookup_symbol_nonlocal): New.
6029 (lookup_symbol_static, lookup_symbol_global): Ditto.
6030 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6031 'la_lookup_symbol_nonlocal' members.
6032 * c-lang.c (c_language_defn, cplus_language_defn)
6033 (asm_language_defn, minimal_language_defn): Ditto.
6034 * jv-lang.c (java_language_defn): Ditto.
6035 * language.c (unknown_language_defn, auto_language_defn)
6036 (local_language_defn): Ditto.
6037 * m2-lang.c (m2_language_defn): Ditto.
6038 * objc-lang.c (objc_language_defn): Ditto.
6039 * scm-lang.c (scm_language_defn): Ditto.
6040 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6041 * p-lang.c (pascal_language_defn): Ditto for both.
6042 * Makefile.in (f-lang.o): Depend on value_h.
6045 2003-05-19 David Carlton <carlton@bactrian.org>
6047 * block.h: Declare block_static_block.
6048 * block.c (block_static_block): New.
6049 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6050 lookup_symbol_aux_local, calling block_static_block instead.
6051 (lookup_symbol_aux_local): Delete 'static_block' argument.
6053 2003-05-19 David Carlton <carlton@bactrian.org>
6055 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6057 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6059 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6060 register numbers mapping.
6062 2003-05-18 Adam Fedor <fedor@gnu.org>
6064 * symtab.c (completion_list_objc_symbol): New function.
6065 (make_symbol_completion_list): Use it to add ObjC symbols
6066 when looking though the list.
6067 (language_search_unquoted_string): New function.
6068 (make_file_symbol_completion_list): Use it.
6070 2003-05-18 Andreas Schwab <schwab@suse.de>
6072 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6074 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6075 as m68k_linux_extract_return_value.
6076 (DEPRECATED_STORE_RETURN_VALUE): Define as
6077 m68k_linux_store_return_value.
6078 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6079 m68k_linux_extract_struct_value_address.
6080 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6081 get_next_frame, get_frame_base, get_frame_pc.
6082 (m68k_linux_frame_saved_pc): Use get_frame_base.
6083 (m68k_linux_extract_return_value): New function.
6084 (m68k_linux_store_return_value): New function.
6085 (m68k_linux_extract_struct_value_address): New function.
6086 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6088 * c-exp.y (typebase): Remove duplicate occurence of
6089 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6090 of lookup_signed_typename.
6092 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6094 * dwarf2loc.c (find_location_expression): Change type of second
6095 argument to `size_t *'.
6096 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6099 2003-05-18 David Carlton <carlton@bactrian.org>
6101 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6102 'linkage_name'. Add comment.
6103 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6105 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6106 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6107 (lookup_block_symbol): Ditto.
6109 2003-05-16 Andrew Cagney <cagney@redhat.com>
6111 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6112 * gdbarch.h, gdbarch.c: Re-generate.
6113 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6114 * TODO (REGISTER_BYTES): Delete reference.
6115 * alpha-tdep.c (alpha_gdbarch_init): Update.
6116 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6117 * x86-64-tdep.c (x86_64_init_abi): Update.
6118 * vax-tdep.c (vax_gdbarch_init): Update.
6119 * v850-tdep.c (v850_gdbarch_init): Update.
6120 * sparc-tdep.c (sparc_gdbarch_init): Update.
6121 * sh-tdep.c (sh_gdbarch_init): Update.
6122 * s390-tdep.c (s390_gdbarch_init): Update.
6123 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6124 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6125 (ns32k_gdbarch_init_32382): Update.
6126 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6127 * mcore-tdep.c (mcore_gdbarch_init): Update.
6128 * m68k-tdep.c (m68k_gdbarch_init): Update.
6129 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6130 * ia64-tdep.c (ia64_gdbarch_init): Update.
6131 * i386-tdep.c (i386_gdbarch_init): Update.
6132 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6133 * hppa-tdep.c (hppa_gdbarch_init): Update.
6134 * h8300-tdep.c (h8300_gdbarch_init): Update.
6135 * frv-tdep.c (frv_gdbarch_init): Update.
6136 * cris-tdep.c (cris_gdbarch_init): Update.
6137 * avr-tdep.c (avr_gdbarch_init): Update.
6138 * arm-tdep.c (arm_gdbarch_init): Update.
6139 * sparc-tdep.c (sparc_pop_frame): Update.
6140 * rs6000-tdep.c (rs6000_pop_frame): Update.
6141 * remote.c (init_remote_state): Update.
6142 (remote_prepare_to_store): Update.
6143 * remote-vx.c (vx_prepare_to_store): Update.
6144 * remote-sds.c (sds_fetch_registers): Update.
6145 (sds_prepare_to_store): Update.
6146 * remote-array.c: Update.
6147 * regcache.c (init_legacy_regcache_descr): Update.
6148 (init_regcache_descr): Update.
6149 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6150 (mips_o64_extract_return_value): Update.
6151 * irix5-nat.c (fetch_core_registers): Update.
6152 * irix4-nat.c (fetch_core_registers): Update.
6153 * i386-tdep.h: Update.
6154 * hppa-tdep.c (pa_do_registers_info): Update.
6155 (pa_do_strcat_registers_info): Update.
6156 * cris-tdep.c (cris_register_bytes_ok): Update.
6157 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6158 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6159 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6160 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6161 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6162 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6163 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6164 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6165 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6166 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6167 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6168 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6169 (REGISTER_BYTES_OK): Update.
6170 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6171 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6173 2003-05-16 Ian Lance Taylor <ian@airs.com>
6175 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6176 (vax_print_insn, print_insn_arg): Remove static functions.
6177 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6178 print_insn_vax from opcodes library.
6179 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6181 2003-05-15 Andrew Cagney <cagney@redhat.com>
6183 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6184 * target.h (memory_breakpoint_from_pc): Delete declaration.
6185 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6186 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6187 * monitor.c (monitor_insert_breakpoint): Use
6188 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6189 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6190 * gdbarch.h, gdbarch.c: Re-generate.
6191 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6192 (sparc_gdbarch_init): Set breakpoint_from_pc to
6193 sparc_breakpoint_from_pc.
6194 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6195 (BREAKPOINT_FROM_PC): Define.
6196 (sparc_breakpoint_from_pc): Declare.
6197 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6198 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6199 (BREAKPOINT_FROM_PC): Define.
6200 (BREAKPOINT): Delete macro.
6201 * target.h: Update comment.
6202 * s390-tdep.c (s390_gdbarch_init): Update comments.
6203 * remote.c: Update comments.
6204 * remote-mips.c: Update comments.
6205 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6206 * mem-break.c: Update comment.
6207 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6208 (ia64_memory_insert_breakpoint): Update.
6209 * config/sparc/tm-sparc.h: Update comment.
6210 * config/pa/tm-hppa64.h: Update comment.
6211 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6212 (rs6000_breakpoint_from_pc): Update.
6213 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6214 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6215 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6216 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6217 (mips_breakpoint_from_pc): Update.
6218 (mips_dump_tdep): Update.
6220 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6221 * minsyms.c (lookup_minimal_symbol): Inline
6222 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6224 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6225 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6226 * p-lang.c (pascal_printstr): Ditto.
6227 * objc-lang.c (objc_printstr): Ditto.
6228 * m2-lang.c (m2_printstr): Ditto.
6229 * jv-valprint.c (java_print_value_fields): Ditto.
6230 * f-lang.c (f_printstr): Ditto.
6231 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6232 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6233 for repeat_count_threshold.
6234 * Makefile.in (cp-valprint.o): Update dependencies.
6236 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6238 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6239 (examine_prologue): Support looking through leaf functions, knowing
6240 they start with mov r2,r12. Support skipping over indirect stores
6241 of the input registers. Upon hitting a non-nop branch instruction
6242 or predicated instruction, bail out by setting lim_pc to the current
6243 pc value in the loop. At the end, if the lim_pc value is still
6244 beyond our calculated value and we have trust_limit set,
6245 use the lim_pc value.
6247 2003-05-15 Andrew Cagney <cagney@redhat.com>
6249 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6250 generic_find_dummy_frame.
6251 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6252 (deprecated_generic_find_dummy_frame): Update.
6253 (deprecated_read_register_dummy): Update.
6254 * frame.c (deprecated_generic_get_saved_register): Update.
6256 2003-05-15 Theodore A. Roth <troth@openavr.org>
6258 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6259 (avr_gdbarch_init): Set breakpoint_from_pc method.
6261 2003-05-15 Andrew Cagney <cagney@redhat.com>
6263 * regcache.c (build_regcache): Set deprecated_register_valid
6265 (deprecated_grub_regcache_for_register_valid): Delete function.
6266 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6269 2003-05-15 David Carlton <carlton@bactrian.org>
6271 Committed by Elena Zannoni <ezannoni@redhat.com>
6272 * symtab.c (lookup_symbol_aux): Delete calls to
6273 lookup_symbol_aux_minsyms.
6274 (lookup_symbol_aux_minsyms): Comment out function and
6275 prototype. Delete lookup by mangled name.
6277 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6279 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6280 correctly indicate an empty stack and ``stack_allocated'' to the
6281 indicate the number of elements initially allocated.
6282 (dwarf_expr_grow_stack): Simplify method for computing new
6283 stack size. Don't loop infinitely if ``stack_len'' is zero.
6284 (execute_stack_op): Move ``ctx->in_reg'' initialization
6285 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6286 be used in conjuction with DW_OP_piece. Revise error message
6289 2003-05-14 Theodore A. Roth <troth@openavr.org>
6291 * MAINTAINERS: Update my email address.
6292 * avr-tdep.c: Ditto.
6294 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6296 * symtab.h (enum domain_enum): Rename from namespace_enum.
6297 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6298 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6299 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6300 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6301 TYPES_NAMESPACE, METHODS_NAMESPACE.
6302 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6303 (struct symbol, struct partial_symbol): Rename field
6304 'namespace_enum namespace' to 'domain_enum domain'.
6305 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6306 Delete old define kludge for namespace.
6308 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6309 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6310 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6311 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6312 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6313 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6314 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6315 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6316 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6317 occurrences of the above.
6319 2003-05-14 Ian Lance Taylor <ian@airs.com>
6321 * Makefile.in (install-only): Use $(SHELL) when running
6324 2003-05-13 Ian Lance Taylor <ian@airs.com>
6326 * MAINTAINERS (write after approval): Add myself.
6328 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6329 second and third arguments.
6330 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6331 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6333 2003-05-13 Andrew Cagney <cagney@redhat.com>
6335 * defs.h (store_address): Delete declaration.
6336 findvar.c (store_address): Delete function.
6337 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6338 store_unsigned_integer.
6339 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6340 * v850-tdep.c (v850_push_arguments): Ditto.
6341 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6342 * sh-tdep.c (sh64_get_saved_register): Ditto.
6343 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6344 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6345 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6346 (mips_get_saved_register): Ditto.
6347 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6348 (find_func_descr, ia64_push_arguments): Ditto.
6349 * i386-tdep.c (i386_push_arguments): Ditto.
6350 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6351 * frv-tdep.c (frv_push_arguments): Ditto.
6352 * frame.c (legacy_saved_regs_prev_register): Ditto.
6353 (deprecated_generic_get_saved_register): Ditto.
6354 * findvar.c (unsigned_address_to_pointer): Ditto.
6355 * dwarf2read.c (dwarf2_const_value): Ditto.
6356 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6357 * alpha-tdep.c (alpha_push_arguments): Ditto.
6359 2003-05-12 J. Brobecker <brobecker@gnat.com>
6361 * NEWS: Mention that the hppa-hpux port has been partially
6362 multiarched (32bit ABIT only, so far).
6364 2003-05-11 Andrew Cagney <cagney@redhat.com>
6366 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6367 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6368 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6369 sim/testsuite/sim/arm/misaligned2.ms, and
6370 sim/testsuite/sim/arm/misaligned3.ms.
6371 * disasm.h (struct ui_file): Add opaque struct declaration.
6372 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6373 * frame.h (struct ui_file): Ditto.
6375 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6377 * value.h: Pretty print.
6379 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6381 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6383 2003-05-08 Andrew Cagney <cagney@redhat.com>
6385 * regcache.h (max_register_size): Delete declaration.
6386 * regcache.c (max_register_size): Delete function.
6387 (struct regcache_descr): Delete field "max_register_size".
6388 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6389 registers fit in MAX_REGISTER_SIZE.
6390 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6391 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6392 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6393 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6394 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6395 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6396 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6397 * dve3900-rom.c, hppa-tdep.c: Ditto.
6399 2003-05-08 David Carlton <carlton@math.stanford.edu>
6401 * valops.c (push_word): Fix typo.
6403 2003-05-08 Andrew Cagney <cagney@redhat.com>
6405 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6406 * gdbarch.h: Re-generate.
6407 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6408 (legacy_max_register_raw_size): Delete declaration.
6409 * regcache.c (legacy_max_register_raw_size): Delete function.
6410 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6411 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6412 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6413 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6414 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6415 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6416 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6417 * findvar.c, dwarf2cfi.c: Ditto.
6419 2003-05-08 Andrew Cagney <cagney@redhat.com>
6421 * mips-tdep.c (read_signed_register): New function, moved to here
6423 (read_signed_register_pid): Ditto.
6424 * regcache.c (read_signed_register_pid): Delete function, moved to
6426 (read_signed_register): Ditto.
6427 * regcache.h (read_signed_register): Delete declaration.
6428 (read_signed_register_pid): Delete declaration.
6430 2003-05-08 Andrew Cagney <cagney@redhat.com>
6432 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6433 * gdbarch.h: Re-generate.
6434 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6435 (legacy_max_register_virtual_size): Delete declaration.
6436 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6437 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6438 * tracepoint.c (memrange_sortmerge): Ditto.
6439 * sparc-tdep.c (sparc_print_registers): Ditto.
6440 * regcache.c (legacy_max_register_virtual_size): Delete function.
6442 2002-05-08 J. Brobecker <brobecker@gnat.com>
6444 * fork-child.c (escape_bang_in_quoted_argument): New function.
6445 (fork_inferior): Escape '!' characters in quoted arguments
6448 2003-05-08 J. Brobecker <brobecker@gnat.com>
6450 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6451 the language of the CU is not currently supported by GDB.
6453 2003-05-08 J. Brobecker <brobecker@gnat.com>
6455 * defs.h (language): Add language_minimal enum value.
6456 * c-lang.c (minimal_language_defn): New language definition.
6457 (_initialize_c_language): Add the new minimal language to the list
6458 of languages known to GDB.
6460 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6462 * frame.c (get_frame_type): Don't attempt to lazily initialize
6463 frame's unwinder for legacy frames.
6465 2003-05-07 Andrew Cagney <cagney@redhat.com>
6467 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6468 and "regcache" parameters.
6469 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6471 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6473 * dwarf2read.c (dwarf_decode_lines): Only use output of
6474 check_cu_functions() when calling record_line(). Do not update
6475 the current address.
6477 2003-05-07 Andrew Cagney <cagney@redhat.com>
6479 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6482 2003-05-07 Jim Blandy <jimb@redhat.com>
6484 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6485 'maint info symtabs' and 'maint info psymtabs'.
6486 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6487 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6488 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6489 Declarations updated.
6490 * maint.c (maintenance_list_command): Delete.
6491 (_initialize_maint_cmds): Update calls to add_cmd.
6492 * gdbcmd.h (maintenancelistlist): Delete declaration.
6493 * cli/cli-cmds.c (maintenancelistlist): Delete.
6494 (init_cmd_lists): Don't initialize it.
6495 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6497 2003-05-07 Andrew Cagney <cagney@redhat.com>
6499 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6501 (d10v_print_registers_info): Update.
6502 (d10v_dmap_register, d10v_imap_register): Delete functions.
6503 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6504 and "imap_register".
6505 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6506 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6507 * arch-utils.c (generic_remote_translate_xfer_address): Add
6508 "regcache" and "gdbarch" parameters.
6509 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6510 parameter. Change class to multi-arch.
6511 * gdbarch.h, gdbarch.c: Re-generate.
6512 * remote.c (remote_xfer_memory): Use
6513 gdbarch_remote_translate_xfer_address.
6515 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6517 * infrun.c (prev_pc): Move declaration ahead of proceed().
6518 (proceed): Refresh prev_pc value before resuming.
6519 (stop_stepping): Remove code to refresh prev_pc.
6521 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6523 * nto-tdep.c: Removed stray comment.
6525 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6527 * i386-nto-tdep.c: Fix old K&R function definitions.
6528 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6529 Also change add_show_from_set() call to add_setshow_cmd().
6530 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6532 2003-05-05 Andrew Cagney <cagney@redhat.com>
6534 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6535 (fprint_dummy_frames): New function.
6536 (maintenance_print_dummy_frames): New function.
6537 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6538 * frame.c (fprint_frame_id): Make global.
6539 * frame.h (fprint_frame_id): Declare.
6540 * Makefile.in (dummy-frame.o): Update dependencies.
6542 2003-05-05 Andrew Cagney <cagney@redhat.com>
6544 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6545 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6546 SIZEOF_CALL_DUMMY_WORDS.
6547 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6548 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6549 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6550 CALL_DUMMY_BREAKPOINT_OFFSET.
6551 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6552 CALL_DUMMY_START_OFFSET.
6553 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6554 * gdbarch.h, gdbarch.c: Re-generate.
6555 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6556 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6557 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6558 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6559 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6560 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6561 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6562 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6563 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6564 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6565 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6566 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6567 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6568 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6569 * config/sparc/tm-sparc.h: Update.
6571 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6573 * configure.tgt: Add i[3456]86-*-nto*.
6574 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6575 * nto-tdep.c: New file. Neutrino target support routines.
6576 * nto-tdep.h: New file. Neutrino target header.
6577 * config/tm-qnxnto.h: New file.
6578 * config/i386/i386nto.mt: New file.
6579 * config/i386/tm-i386nto.h: New file.
6581 2003-05-04 Andrew Cagney <cagney@redhat.com>
6583 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6584 (load_infrun_state): Ditto.
6585 (struct thread_info): Drop "prev_func_name" field.
6586 * thread.c (load_infrun_state): Update.
6587 (save_infrun_state): Update.
6588 * infrun.c (prev_func_name): Delete variable.
6589 (init_wait_for_inferior): Do not clear prev_func_name.
6590 (stop_stepping, keep_going, context_switch): Do not swap
6592 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6593 instead of PC_IN_SIGTRAMP.
6595 2003-05-04 Andrew Cagney <cagney@redhat.com>
6597 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6598 REGISTER_BYTE with register_offset_hack.
6599 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6600 that REGISTER_BYTE is consistent with the regcache.
6601 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6602 * gdbarch.h, gdbarch.c: Regenerate.
6604 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6606 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6607 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6609 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6611 2003-05-03 J. Brobecker <brobecker@gnat.com>
6613 From Thierry Schneider <tpschneider1@yahoo.com>
6614 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6615 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6616 (mi-cmd-symbol.o): Add rule.
6618 2003-05-03 Andrew Cagney <cagney@redhat.com>
6620 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6621 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6622 * gdbarch.h, gdbarch.c: Re-generate.
6623 * d10v-tdep.c (d10v_push_dummy_code): New function.
6624 (d10v_gdbarch_init): Set push_dummy_code.
6625 * infcall.c (legacy_push_dummy_code): New function.
6626 (generic_push_dummy_code): New function.
6627 (push_dummy_code): New function.
6628 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6629 instead of dummy_addr, to push_dummy_call. Move call to
6630 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6632 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6634 2003-05-03 Andrew Cagney <cagney@redhat.com>
6636 * disasm.h (print_insn): Declare.
6637 * disasm.c (init_gdb_disassemble_info): New function.
6638 (gdb_disassembly): Call init_gdb_disassemble_info.
6639 (gdb_print_insn): New function.
6640 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6641 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6642 * mcore-tdep.c: Include "disasm.h"
6643 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6644 * d10v-tdep.c: Include "disasm.h".
6645 (display_trace): Call gdb_print_insn, instead of print_insn.
6646 (print_insn): Delete function.
6647 * printcmd.c: Include "disasm.h".
6648 (print_insn): Delete function.
6649 (print_formatted): Call gdb_print_insn, instead of print_insn.
6650 * Makefile.in (printcmd.o): Update dependencies.
6651 (mcore-tdep.o, d10v-tdep.o): Ditto.
6653 2003-05-02 Andrew Cagney <cagney@redhat.com>
6655 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6656 PC_REGNUM, re-indent.
6657 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6658 PC_REGNUM isn't set.
6660 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6661 * gdbarch.h, gdbarch.c: Re-generate.
6662 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6663 register_virtual_size, pc_regnum, or register_bytes.
6664 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6665 (d10v_register_type): Use D10V_PC_REGNUM.
6666 (d10v_print_registers_info, d10v_read_pc): Ditto.
6667 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6668 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6670 2003-05-02 David Carlton <carlton@bactrian.org>
6672 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6673 the name with mstrsave.
6675 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6677 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6678 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6679 (host_charset_name, target_charset_name): New vars for use by
6681 (host_charset_enum, target_charset_enum): New enums for set/show
6683 (set_charset_sfunc, set_host_charset_sfunc,
6684 set_target_charset_sfunc): New functions.
6685 (set_host_charset, set_target_charset): Make static.
6686 (list_charsets, set_host_charset_command,
6687 set_target_charset_command): Delete functions.
6688 (show_charset_command): Rewrite as....
6689 (show_charset): Hook this up with the set/show command mechanism.
6690 (_initialize_charset): Change names of charsets to match the
6691 set/show enums. Use host_charset_name and target_charset_name.
6692 Use set/show mechanism for charset, host-charset, target-charset
6693 commands. Do not make 'show host-charset' and 'show
6694 target-charset' be aliases of 'show charset'.
6696 * charset.h (set_host_charset, set_target_charset): Don't export,
6697 they are not used outside the file.
6699 2003-05-01 Andrew Cagney <cagney@redhat.com>
6701 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6702 (gdb_disassembly): Make "di" non static, always initialize and
6703 cleanup. Always use dis_asm_read_memory.
6704 (gdb_dis_asm_read_memory): Delete function.
6706 2003-05-01 Andrew Cagney <cagney@redhat.com>
6708 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6709 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6711 2003-04-30 Andrew Cagney <cagney@redhat.com>
6713 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6714 "tm_print_insn_info".
6715 (TARGET_PRINT_INSN_INFO): Delete macro.
6716 (dis_asm_read_memory): Delete function declaration.
6717 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6718 (tm_print_insn_info): Delete variable definition.
6719 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6720 * gdbarch.h, gdbarch.c: Re-generate.
6721 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6722 "deprecated_tm_print_insn_info".
6723 * mcore-tdep.c (mcore_dump_insn): Ditto.
6724 * mips-tdep.c (mips_gdbarch_init): Ditto.
6725 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6726 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6727 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6728 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6729 instead of TARGET_PRINT_INSN_INFO, add comment.
6730 * s390-tdep.c (s390_get_frame_info): Instead of
6731 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6732 (s390_check_function_end, s390_is_sigreturn): Ditto.
6733 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6734 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6735 * disasm.c: Include "gdbcore.h".
6736 (_initialize_disasm): New function, initialize
6737 "deprecated_tm_print_insn_info".
6738 (deprecated_tm_print_insn_info): New variable.
6739 (dis_asm_read_memory): Moved from "corefile.c", made static.
6740 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6741 * Makefile.in (disasm.o): Update dependencies.
6743 2003-04-30 Andrew Cagney <cagney@redhat.com>
6745 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6747 2003-04-29 Adam Fedor <fedor@gnu.org>
6749 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6750 * infcall.c (find_function_addr): Make non-static.
6751 * infcall.h (find_function_addr): Declare.
6752 * Makefile.in (eval.o): Update dependencies.
6754 2003-04-28 Adam Fedor <fedor@gnu.org>
6756 * symtab.c (symbol_find_demangled_name): Check for and demangle
6758 (symbol_init_demangled_name): Init for language_objc as well.
6760 2003-04-28 Andrew Cagney <cagney@redhat.com>
6762 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6763 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6764 * gdbarch.h, gdbarch.c: Re-generate.
6765 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6766 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6767 * inferior.h (deprecated_read_fp): Rename read_fp.
6768 (generic_target_read_fp): Delete declaration.
6769 * regcache.c (generic_target_read_fp): Delete function.
6770 (deprecated_read_fp): Replace read_fp, use
6771 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6772 * d10v-tdep.c (d10v_read_fp): Delete function.
6773 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6775 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6776 deprecated_target_read_fp to generic_target_read_fp.
6777 * sh-tdep.c (sh_gdbarch_init): Ditto.
6778 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6779 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6780 * frv-tdep.c (frv_gdbarch_init): Ditto.
6782 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6783 deprecated_fp_regnum.
6784 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6785 * vax-tdep.c (vax_gdbarch_init): Ditto.
6786 * v850-tdep.c (v850_gdbarch_init): Ditto.
6787 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6788 * sh-tdep.c (sh_gdbarch_init): Ditto.
6789 * s390-tdep.c (s390_gdbarch_init): Ditto.
6790 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6791 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6792 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6793 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6794 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6795 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6796 * i386-tdep.c (i386_gdbarch_init): Ditto.
6797 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6798 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6799 * frv-tdep.c (frv_gdbarch_init): Ditto.
6800 * cris-tdep.c (cris_gdbarch_init): Ditto.
6801 * avr-tdep.c (avr_gdbarch_init): Ditto.
6802 * arm-tdep.c (arm_gdbarch_init): Ditto.
6803 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6805 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6806 * v850-tdep.c (v850_gdbarch_init): Ditto.
6807 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6808 * sh-tdep.c (sh_gdbarch_init): Ditto.
6809 * s390-tdep.c (s390_gdbarch_init): Ditto.
6810 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6811 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6812 * mips-tdep.c (mips_gdbarch_init): Ditto.
6813 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6814 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6815 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6816 * frv-tdep.c (frv_gdbarch_init): Ditto.
6817 * avr-tdep.c (avr_gdbarch_init): Ditto.
6818 * arm-tdep.c (arm_gdbarch_init): Ditto.
6820 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6821 DEPRECATED_FP_REGNUM.
6822 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6823 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6824 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6825 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6826 (sparc32_register_virtual_type): Ditto.
6827 * sh-tdep.c (sh64_frame_chain): Ditto.
6828 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6829 (sh_nofp_frame_init_saved_regs): Ditto.
6830 (sh64_nofp_frame_init_saved_regs): Ditto.
6831 (sh_fp_frame_init_saved_regs): Ditto.
6832 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6833 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6834 * procfs.c (procfs_fetch_registers): Ditto.
6835 (procfs_store_registers): Ditto.
6836 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6837 (store_inferior_registers, fetch_core_registers): Ditto.
6838 (fetch_kcore_registers, clear_regs): Ditto.
6839 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6840 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6841 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6842 * nlm/i386.c (do_status): Ditto.
6843 * mipsv4-nat.c (supply_gregset): Ditto.
6844 * mips-tdep.c: Ditto for comments.
6845 * mips-nat.c (fetch_inferior_registers): Ditto.
6846 (store_inferior_registers, fetch_core_registers): Ditto.
6847 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6848 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6849 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6850 (i386_do_pop_frame, i386_register_type): Ditto.
6851 * hppa-tdep.c (hppa_frame_chain): Ditto.
6852 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6853 (hppa_pop_frame, hppa_read_fp): Ditto.
6854 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6855 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6856 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6857 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6858 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6859 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6860 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6861 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6862 * blockframe.c: Ditto for comments.
6863 * arch-utils.h: Ditto for comments.
6864 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6865 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6866 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6867 * alpha-tdep.h: Ditto for comments.
6868 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6869 (alpha_cannot_store_register): Ditto.
6870 (alpha_push_dummy_frame): Ditto.
6871 * alpha-nat.c (supply_gregset): Ditto.
6873 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6874 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6875 * config/sparc/tm-sparc.h: Update comment.
6877 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6878 deprecated_read_fp instead of TARGET_READ_FP.
6879 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6880 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6881 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6882 deprecated_read_fp instead of read_fp.
6883 * s390-tdep.c (s390_push_arguments): Ditto.
6884 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6885 * frame.h: Ditto in comments.
6886 * frame.c (legacy_get_prev_frame): Ditto.
6887 * dummy-frame.c (dummy_frame_this_id): Ditto.
6888 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6890 2003-04-28 Andrew Cagney <cagney@redhat.com>
6892 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6893 * gdbarch.h, gdbarch.c: Re-generate.
6894 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6895 * vax-tdep.c (_initialize_vax_tdep): Update.
6896 * v850-tdep.c (_initialize_v850_tdep): Update.
6897 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6898 * s390-tdep.c (_initialize_s390_tdep): Update.
6899 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6900 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6901 * mips-tdep.c (_initialize_mips_tdep): Update.
6902 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6903 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6904 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6905 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6906 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6907 * frv-tdep.c (_initialize_frv_tdep): Update.
6908 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6909 (_initialize_cris_tdep): Update.
6910 * arch-utils.c (legacy_print_insn): Update.
6911 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6913 2003-04-26 Adam Fedor <fedor@gnu.org>
6915 * linespec.c (decode_objc): New function to decode ObjC calls
6916 (decode_line_1): Check for ObjC calls (using decode_objc)
6917 * Makefile (linespec.o): Update dependencies.
6919 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6921 * breakpoint.h (struct breakpoint_ops): New.
6922 (struct breakpoint): Add ops member.
6924 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6925 (mention): Use new breakpoint ops member.
6926 (set_raw_breakpoint): Initialize ops field to NULL.
6927 (print_exception_catchpoint, print_one_exception_catchpoint)
6928 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6929 (gnu_v3_exception_catchpoint_ops): New.
6930 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6932 2003-04-25 Adam Fedor <fedor@gnu.org>
6934 * Makefile.in (COMMON_OBS): Add objc-lang.o
6936 2003-04-25 Andrew Cagney <cagney@redhat.com>
6938 * d10v-tdep.c (print_insn): Delete function.
6939 (display_trace): Use TARGET_PRINT_INSN.
6940 (_initialize_d10v_tdep): Do not set tm_print_insn.
6941 (d10v_gdbarch_init): Set print_insn.
6943 2003-04-25 Andrew Cagney <cagney@redhat.com>
6945 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6946 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6947 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6948 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6949 (nr_dmap_regs, a0_regnum): ... new functions.
6950 (d10v_print_registers_info): Use a0_regnum, use register_size.
6951 (d10v_register_byte): Delete function.
6952 (d10v_register_raw_size): Delete function.
6953 (d10v_register_type): Use a0_regnum.
6954 (d10v_print_registers_info): Use a0_regnum.
6955 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6956 (d10v_gdbarch_init): Do not set register_byte or
6957 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6958 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6960 (trace_command): Use XCALLOC.
6961 (print_insn): Delete reference to tm_print_insn.
6962 (saved_regs_unwinder): Use store_unsigned_integer instead of
6964 * frame.h (FRAME_OBSTACK_CALLOC): Define
6966 2003-04-25 David Carlton <carlton@bactrian.org>
6968 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6970 2003-04-24 Adam Fedor <fedor@gnu.org>
6972 * objc-lang.c: Include "valprint.h"
6973 * Makefile.in (objc-lang.o): Update dependencies.
6975 2003-04-24 Adam Fedor <fedor@gnu.org>
6977 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6978 architecture dependant compilation and mark as unimplemented
6979 (until they get put in the gdbarch vector).
6981 2003-04-23 David Carlton <carlton@bactrian.org>
6983 * cp-support.c (cp_find_first_component): Accept 'operator' in
6986 2003-04-23 Andrew Cagney <cagney@redhat.com>
6988 * infcall.c (call_function_by_hand): Eliminate redundant
6989 indentation. Move "saved_async" and "old_cleanups" to where they
6992 2003-04-23 Andrew Cagney <cagney@redhat.com>
6994 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6995 and "buffer". Move the "name" code to where it is needed.
6997 2003-04-23 Andrew Cagney <cagney@redhat.com>
6999 * infcall.c (call_function_by_hand): Move variables "start_sp",
7000 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7001 code to ON_STACK switch branch.
7003 2003-04-23 Andrew Cagney <cagney@redhat.com>
7005 * infcall.c (call_function_by_hand): Make declaration of "i",
7006 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7009 2003-04-23 Andrew Cagney <cagney@redhat.com>
7011 * infcall.c (call_function_by_hand): Delete variable
7012 "n_method_args". Localize "param_type"'s declaration to the loop
7013 that it is used. Reinstate code assigning to said variable -
7014 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7015 Rationalize code using "param_type".
7017 2003-04-22 Andrew Cagney <cagney@redhat.com>
7019 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7020 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7021 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7022 to DEPRECATED_PUSH_RETURN_ADDRESS.
7024 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7026 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7027 on the DWARF2 register number prior to fetching a register.
7029 2003-04-22 J. Brobecker <brobecker@gnat.com>
7031 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7032 Update all the tests using SOFT_FLOAT considering the fact that
7033 this macro was always set to 0.
7034 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7035 considering the fact that this macro was always set to 0.
7036 * hppa-tdep.h (hppa_store_return_value): Likewise.
7037 (hppa_extract_return_value): Likewise.
7039 2003-04-22 J. Brobecker <brobecker@gnat.com>
7041 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7042 the hppa-pro target only.
7044 2003-04-21 J. Brobecker <brobecker@gnat.com>
7046 Ongoing multi-arch conversion effort for HP/UX:
7047 * config/pa/tm-hppa.h: Move all macro that are no longer
7048 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7049 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7051 2003-04-21 J. Brobecker <brobecker@gnat.com>
7053 * config/pa/tm-hppa.h: Obsolete a section that was only used
7056 2003-04-21 J. Brobecker <brobecker@gnat.com>
7058 Ongoing multi-arch conversion for HP/UX.
7059 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7060 if already defined (allows hppa64 to stay non-multiarched for now).
7061 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7063 2003-04-21 Andrew Cagney <cagney@redhat.com>
7065 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7067 2003-04-21 Andrew Cagney <cagney@redhat.com>
7069 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7070 "i386_num_mmx_regs".
7072 2003-04-21 Andrew Cagney <cagney@redhat.com>
7074 * infcall.c: New file.
7075 * infcall.h: New file.
7076 * valarith.c: Include "infcall.h".
7077 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7078 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7079 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7080 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7081 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7082 (SFILES): Add "infcall.c"
7083 (COMMON_OBS): Add "infcall.o".
7084 (infcall.o): Specify dependencies.
7085 * value.h (call_function_by_hand): Delete declaration.
7086 * inferior.h (run_stack_dummy): Delete declaration.
7087 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7088 (run_stack_dummy): Move to "infcall.c", merged into
7089 call_function_by_hand.
7090 * valops.c (call_function_by_hand): Moved to "infcall.c".
7091 (find_function_addr, value_arg_coerce): Ditto.
7092 (unwindonsignal_p, coerce_float_to_double): Ditto.
7093 (_initialize_valops): Move "set/show coerce-float-to-double", and
7094 "set/show unwindonsignal" commands to "infcall.c".
7095 * v850-tdep.c, target.h: Update comments.
7096 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7097 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7098 (sh64_init_extra_frame_info): Update comments.
7099 * mn10300-tdep.c: Update comments.
7100 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7101 * config/sparc/tm-sparc.h: Update comments.
7102 * breakpoint.h: Update comments.
7103 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7104 * arm-tdep.c: Update comment.
7106 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7108 * i386-tdep.c (i386_num_register_names): New variable.
7109 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7110 (MM0_REGNUM): Remove redundant parentheses in define.
7111 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7112 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7113 i386_mxcsr_regnum_p): Remove redundant parentheses.
7114 (i386_register_name): Use i386_num_register_names.
7116 * i386-tdep.c (i386_extract_return_value,
7117 i386_store_return_value): Correct check for availability of
7118 floating-point registers.
7120 * i386-tdep.c (i386_frame_num_args): Remove function.
7121 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7123 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7124 mmx_regnum_to_fp_regnum. Adjust all callers.
7126 * i386-tdep.c (i386_get_longjmp_target): Use
7127 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7128 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7131 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7133 * core-regset.c: Update comments to reflect reality. Re-order
7135 (fetch_core_registers): Use switch instead of if. Remove
7136 redundant prototype.
7138 2003-04-18 Jim Blandy <jimb@redhat.com>
7140 * s390-tdep.c (s390_frame_align): New function.
7141 (s390_gdbarch_init): Register it with the gdbarch object.
7143 2003-04-17 Richard Henderson <rth@redhat.com>
7145 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7147 2003-04-17 Michael Snyder <msnyder@redhat.com>
7148 Karen Bennet <bennet@redhat.com>
7150 Committed by Elena Zannoni <ezannoni@redhat.com>
7151 * gdb_gcore.sh: New script to create a core dump of a process.
7153 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7155 * values.c (value_being_returned): Don't fetch the return
7156 value if the return type is void.
7158 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7160 * thread-db.c: Reindented.
7162 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7164 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7165 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7192 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7194 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7195 the size of ``long double'' to 16, instead of 8.
7197 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7199 * i386-linux-nat.c: Add some whitespace to make things more
7201 (fetch_register, store_register, fetch_inferior_registers,
7202 store_inferior_registers): Get rid of assignment in if-statement.
7203 (store_register): Fix typo in error message.
7205 2003-04-16 Andrew Cagney <cagney@redhat.com>
7207 * utils.c (xmmalloc): Always allocate something, matches
7208 libiberty/xmalloc's semantics.
7209 (xmrealloc, xmcalloc): Ditto.
7211 2003-04-16 Andrew Cagney <cagney@redhat.com>
7213 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7215 (get_frame_type): Initialize unwind and type when needed.
7216 (get_frame_id, frame_register_unwind): Ditto.
7218 2003-04-16 Andrew Cagney <cagney@redhat.com>
7220 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7222 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7223 * sparcl-stub.c: Obsolete file.
7224 * config/sparc/tm-sparclet.h: Obsolete file.
7225 * sparclet-stub.c: Obsolete file.
7226 * sparclet-rom.c: Obsolete file.
7227 * sparcl-tdep.c: Obsolete file.
7228 * config/sparc/tm-sparclite.h: Obsolete file.
7229 * config/sparc/sparclite.mt: Obsolete file.
7230 * config/sparc/sparclet.mt: Obsolete file.
7231 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7232 sparc86x-*-* obsolete.
7234 2003-04-15 David Carlton <carlton@math.stanford.edu>
7236 * Makefile.in (SFILES): Add cp-namespace.c.
7237 (COMMON_OBS): Add cp-namespace.o.
7238 (block.o): Depend on gdb_obstack_h and cp_support_h.
7239 (buildsym.o): Depend on cp_support_h.
7240 (cp-namespace.o): New.
7241 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7242 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7243 (dwarf2read.o): Depend on cp_support_h.
7244 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7245 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7246 processing_current_namespace.
7247 (read_namespace): Update processing_current_namespace; check for
7248 anonymous namespaces.
7249 (dwarf2_name): New function.
7250 (dwarf2_extension): Ditto.
7251 * cp-support.h: Update copyright, contributors.
7252 Add inclusion guards.
7253 Add opaque declaration for structs obstack, block, symbol.
7254 (struct using_direct): New struct.
7255 Add declarations for cp_find_first_component,
7256 cp_entire_prefix_len, processing_has_namespace_info,
7257 processing_current_namespace, cp_is_anonymous,
7258 cp_add_using_directive, cp_initialize_namespace,
7259 cp_finalize_namespace, cp_set_block_scope,
7260 cp_scan_for_anonymous_namespaces.
7261 * cp-namespace.c: New file.
7262 * cp-support.c: Update copyright.
7263 Include ctype.h, gdb_assert.h, gdbcmd.h.
7264 New variable maint_cplus_cmd_list.
7265 (cp_find_first_component): New function.
7266 (cp_entire_prefix_len, maint_cplus_command)
7267 (first_component_command, _initialize_cp_support): Ditto.
7268 * buildsym.c: Include cp-support.h.
7269 New variable using_list.
7270 (add_symbol_to_list): Check for anonymous namespaces.
7271 (finish_block): Set block's scope.
7272 (start_symtab): Initialize C++ namespace support.
7273 (end_symtab): Finalize C++ namespace support.
7274 * block.h: Add opaque declarations for structs
7275 block_namespace_info, using_direct, and obstack.
7276 Add declarations for block_set_scope and block_set_using.
7277 (struct block): Add 'language_specific' member.
7278 (BLOCK_NAMESPACE): New macro.
7279 * block.c: Include gdb_obstack.h and cp-support.h.
7280 (struct block_namespace_info): New struct.
7281 (block_set_scope): New function.
7282 (block_set_using, block_initialize_namespace): Ditto.
7284 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7286 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7287 (locate_base): Return early if there aren't any link map offsets.
7288 (svr4_solib_create_inferior_hook): Warn if shared library support
7291 2003-04-14 David Carlton <carlton@math.stanford.edu>
7293 * symtab.c (symbol_set_names): Add prefix when storing Java names
7294 in hash table. Fix for PR java/1039.
7296 2003-04-14 David Carlton <carlton@math.stanford.edu>
7298 * symtab.c (symbol_set_names): Rename 'name' arg to
7299 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7300 * symtab.h: Change 'name' argument in declaration of
7301 symbol_set_names to 'linkage_name'.
7302 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7304 2003-04-14 Andrew Cagney <cagney@redhat.com>
7306 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7307 return the fully sign-extended register value.
7308 (get_frame_pointer): Ditto.
7309 (mips_pop_frame): Initialize "proc_desc" after checking for a
7312 2003-04-14 Andrew Cagney <cagney@redhat.com>
7314 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7315 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7316 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7317 (mips_push_register): Delete function.
7318 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7321 2003-04-14 Jim Blandy <jimb@redhat.com>
7323 * symmisc.c: #include "gdb_regex.h".
7324 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7326 * maint.c (maintenance_list_command): New function.
7327 (_initialize_maint_cmds): Register the above as commands.
7328 * symtab.h (maintenance_list_symtabs,
7329 maintenance_list_psymtabs): New declarations.
7330 * cli/cli-cmds.c (maintenancelistlist): New variable.
7331 (init_cmd_lists): Initialize it.
7332 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7333 * gdbcmd.h (maintenancelistlist): New declaration.
7334 * Makefile.in (symmisc.o): Update dependencies.
7336 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7338 * s390-nat.c: Include asm/types.h for addr_t.
7340 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7342 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7343 actually incoming type.
7345 2003-04-13 Andrew Cagney <cagney@redhat.com>
7347 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7348 get_next_frame and get_frame_saved_regs.
7350 2003-04-13 Andrew Cagney <cagney@redhat.com>
7352 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7353 of gdbarch_num_regs.
7355 2003-04-13 Andrew Cagney <cagney@redhat.com>
7357 * frame.h: Mention what replaced what in "struct frame_info".
7358 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7359 deprecated_update_frame_base_hack and
7360 deprecated_update_frame_pc_hack.
7361 * hppa-tdep.c: Ditto.
7363 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7365 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7366 to read_reg and update its comment. Remove regnum member.
7367 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7368 Don't call read_reg when setting in_reg. Call read_reg to get
7369 the frame base if it's in a register. Return the register number
7370 on the stack instead of in the context. Remove extra arguments
7372 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7373 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7374 the register number on the expression stack.
7375 (needs_frame_read_reg): Remove extra arguments.
7377 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7379 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7381 (execute_stack_op): All callers updated.
7382 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7383 * dwarf2loc.c (find_location_expression): New function.
7384 (dwarf_expr_frame_base): Call it.
7385 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7386 (dwarf2_tracepoint_var_ref): New function, broken out from
7387 locexpr_tracepoint_var_ref.
7388 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7390 (loclist_read_variable, loclist_read_needs_frame): New functions.
7391 (loclist_describe_location, loclist_tracepoint_var_ref): New
7393 (dwarf2_loclist_funcs): New struct location_funcs.
7394 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7395 (struct dwarf2_locexpr_baton): Add comments.
7396 (dwarf2_loclist_funcs): New extern.
7397 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7398 base_address and base_known.
7399 (dwarf_loc_buffer): New variable.
7400 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7401 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7402 (dwarf2_has_info): Initialize dwarf_loc_offset.
7403 (dwarf2_build_psymtabs): Read in .debug_loc.
7404 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7406 (psymtab_to_symtab_1): Likewise. Move base address calculation
7408 (dwarf2_get_pc_bounds): ... here. Use the base address from
7410 (dwarf2_symbol_mark_computed): Handle location lists.
7412 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7414 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7415 if the linkage name demangled successfully.
7417 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7419 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7420 disassmbly_flavour): Removed.
7422 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7424 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7426 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7428 2003-04-12 Andrew Cagney <cagney@redhat.com>
7430 * frame.h (struct frame_info): Move definition from here ...
7431 * frame.c (struct frame_info): ... to here.
7433 2003-04-12 Andrew Cagney <cagney@redhat.com>
7435 * gdbthread.h (save_infrun_state): Delete parameter
7437 (struct thread_info): Delete field "prev_func_start".
7438 (load_infrun_state): Ditto.
7439 * thread.c (load_infrun_state, save_infrun_state): Update.
7440 * infrun.c (prev_func_start): Delete variable.
7441 (context_switch, init_wait_for_inferior): Update.
7442 (stop_stepping, keep_going): Update.
7444 2003-04-12 Andrew Cagney <cagney@redhat.com>
7446 * gdbarch.sh: Add missing opaque declarations.
7447 * gdbarch.h: Regnerate.
7448 * symtab.h: Add missing opaque declarations.
7449 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7450 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7451 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7452 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7453 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7454 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7455 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7456 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7457 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7458 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7459 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7460 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7461 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7463 2003-04-11 Andrew Cagney <cagney@redhat.com>
7465 * frame.c (get_frame_id): Return this frame's "id".
7466 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7468 (legacy_saved_regs_this_id): Replace function body with
7470 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7471 FRAME_OBSTACK_ZALLOC.
7472 (create_new_frame): Mark the frame ID as valid.
7474 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7476 * Makefile.in (libbfd_h): Added missing setting.
7477 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7478 according to the selected ABI.
7480 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7482 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7484 2003-04-11 Andrew Cagney <cagney@redhat.com>
7486 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7487 SAVED_PC_AFTER_CALL.
7488 * gdbarch.h, gdbarch.c: Regenerate.
7489 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7490 * x86-64-tdep.c (x86_64_init_abi): Update.
7491 * vax-tdep.c (vax_gdbarch_init): Update.
7492 * v850-tdep.c (v850_gdbarch_init): Update.
7493 * sparc-tdep.c (sparc_gdbarch_init): Update.
7494 * sh-tdep.c (sh_gdbarch_init): Update.
7495 * s390-tdep.c (s390_gdbarch_init): Update.
7496 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7497 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7498 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7499 * mips-tdep.c (mips_gdbarch_init): Update.
7500 * mcore-tdep.c (mcore_gdbarch_init): Update.
7501 * m68k-tdep.c (m68k_gdbarch_init): Update.
7502 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7503 * ia64-tdep.c (ia64_gdbarch_init): Update.
7504 (ia64_saved_pc_after_call): Update declaration.
7505 * i386ly-tdep.c (i386lynx_init_abi): Update.
7506 * i386-tdep.c (i386_gdbarch_init): Update.
7507 * hppa-tdep.c (hppa_gdbarch_init): Update.
7508 * h8300-tdep.c (h8300_gdbarch_init): Update.
7509 * frv-tdep.c (frv_gdbarch_init): Update.
7510 * cris-tdep.c (cris_gdbarch_init): Update.
7511 * avr-tdep.c (avr_gdbarch_init): Update.
7512 * arm-tdep.c (arm_gdbarch_init): Update.
7513 * alpha-tdep.c (alpha_gdbarch_init): Update.
7514 * ns32knbsd-nat.c (frame_num_args): Update.
7515 * ns32k-tdep.c (umax_frame_num_args): Update.
7516 * mips-tdep.c (mips_init_frame_pc_first): Update.
7517 * infrun.c (step_over_function): Update.
7518 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7519 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7520 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7521 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7522 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7523 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7524 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7525 * arch-utils.c (init_frame_pc_default): Update.
7526 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7527 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7530 2003-04-11 Andrew Cagney <cagney@redhat.com>
7532 * i387-tdep.c: Update copyright.
7533 (i387_to_double): Delete function.
7534 (double_to_i387): Delete function.
7536 2003-04-10 Andrew Cagney <cagney@redhat.com>
7538 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7539 frame's function's address. Simplify.
7540 (d10v_frame_unwind_cache): Check that the frame's function is
7543 2003-04-10 Jim Blandy <jimb@redhat.com>
7545 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7546 call to set_gdbarch_deprecated_push_arguments.
7548 2003-04-10 Andrew Cagney <cagney@redhat.com>
7550 * frame.c (fprint_frame_id): New function.
7551 (fprint_frame_type, fprint_frame): New function.
7552 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7553 (create_sentinel_frame, get_frame_id): Ditto.
7554 (frame_id_p, frame_id_eq): Ditto.
7555 (frame_id_inner, create_new_frame): Ditto.
7556 (legacy_get_prev_frame, get_prev_frame): Ditto.
7557 (deprecated_update_frame_pc_hack): Ditto.
7558 (frame_register_unwind): Ditto.
7559 (deprecated_update_frame_base_hack): Ditto.
7561 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7563 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7564 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7565 frame_chain function.
7566 * Makefile.in: Add dependencies due to above change.
7568 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7570 * blockframe.c (legacy_frame_chain_valid): Move call to
7571 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7574 2003-04-09 Andrew Cagney <cagney@redhat.com>
7576 * frame.h (struct frame_id): Replace "pc" and "base" with
7577 "stack_addr" and "code_addr". Update comments.
7578 (frame_id_build): Update parameter names and comment.
7579 (struct frame_info): Replace "id_p" and "id" with "this_id".
7580 * dummy-frame.c (dummy_frame_this_id): Update.
7581 * breakpoint.c (print_one_breakpoint): Update.
7582 * frame.c (get_frame_id): Update.
7583 (get_frame_base, frame_id_build): Update.
7584 (create_sentinel_frame, legacy_get_prev_frame): Update.
7585 (deprecated_update_frame_base_hack): Update.
7586 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7587 (frame_id_inner): Ditto.
7589 2003-04-09 Andrew Cagney <cagney@redhat.com>
7591 * defs.h (gdb_print_host_address): Make "addr" parameter a
7593 * utils.c (gdb_print_host_address): Update.
7595 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7597 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7598 register number for R0 is 0.
7600 2003-04-09 J. Brobecker <brobecker@gnat.com>
7602 * frame.h (struct gdbarch): Add opaque structure definition
7603 to avoid a compilation warning on LynxOS 4.0.
7605 2003-04-09 Andrew Cagney <cagney@redhat.com>
7607 * frame.h (struct frame_info): Delete field "pc". Replace
7608 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7610 * frame.c (frame_pc_unwind): Update.
7611 (create_sentinel_frame): Do not set "pc".
7612 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7613 (get_frame_pc): Call frame_pc_unwind.
7614 (deprecated_update_frame_pc_hack): Update.
7615 (create_new_frame): Use "pc" not "->pc".
7617 2003-04-09 Andrew Cagney <cagney@redhat.com>
7619 * frame.c (get_frame_id): Eliminate code updating "frame".
7620 (legacy_get_prev_frame): Ditto.
7621 (get_frame_base): Return id.base directly.
7622 (deprecated_update_frame_base_hack): Update "id.base".
7623 * frame.h (struct frame_info): Delete field "frame".
7625 2003-04-09 Andrew Cagney <cagney@redhat.com>
7627 * NEWS: Mention that the "Sequent family" is obsolete.
7628 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7629 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7630 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7631 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7632 * config/i386/tm-ptx4.h: Obsolete file.
7633 * config/i386/tm-ptx.h: Obsolete file.
7634 * symm-tdep.c: Obsolete file.
7635 * config/i386/symmetry.mt: Obsolete file.
7636 * config/i386/tm-symmetry.h: Obsolete file.
7637 * symm-nat.c: Obsolete file.
7638 * config/i386/nm-symmetry.h: Obsolete file.
7639 * config/i386/xm-symmetry.h: Obsolete file.
7640 * config/i386/symmetry.mh: Obsolete file.
7641 * config/i386/nm-ptx4.h: Obsolete file.
7642 * config/i386/ptx4.mh: Obsolete file.
7643 * config/i386/ptx.mt: Obsolete file.
7644 * config/i386/ptx.mh: Obsolete file.
7645 * config/i386/xm-ptx4.h: Obsolete file.
7646 * config/i386/xm-ptx.h: Obsolete file.
7648 2003-04-09 Andrew Cagney <cagney@redhat.com>
7650 Obsolete mips*-*-mach3*.
7651 * NEWS: Mention that mips*-*-mach3* is obsolete.
7652 * m3-nat.c: Obsolete file.
7653 * config/nm-m3.h: Obsolete file.
7654 * config/mips/tm-mipsm3.h: Obsolete file.
7655 * config/mips/mipsm3.mt: Obsolete file.
7656 * config/mips/mipsm3.mh: Obsolete file.
7657 * config/mips/xm-mipsm3.h: Obsolete file.
7658 * mipsm3-nat.c: Obsolete file.
7659 * configure.host: Obsolete mips-dec-mach3*.
7660 * configure.tgt: Obsolete mips*-*-mach3*.
7662 2003-04-09 Andrew Cagney <cagney@redhat.com>
7664 * doublest.h: Update copyright.
7665 (deprecated_store_floating, deprecated_extract_floating): Rename
7666 store_floating and extract_floating. Update comments.
7667 * doublest.c: Update copyright.
7668 (extract_floating_by_length): Replace extract_floating.
7669 (store_floating_by_length): Replace store_floating.
7670 (deprecated_extract_floating): New function.
7671 (deprecated_store_floating): New function.
7672 (extract_typed_floating): Call extract_floating_by_length.
7673 (store_typed_floating): Call store_floating_by_length.
7674 * x86-64-tdep.c (x86_64_store_return_value): Update.
7675 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7676 (sh64_extract_return_value): Update.
7677 (sh_sh4_register_convert_to_virtual): Update.
7678 (sh_sh64_register_convert_to_virtual): Update.
7679 (sh_sh4_register_convert_to_raw): Update.
7680 (sh_sh64_register_convert_to_raw): Update.
7681 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7682 (rs6000_register_convert_to_raw): Update.
7683 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7684 (ia64_register_convert_to_raw): Update.
7685 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7686 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7687 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7688 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7689 (alpha_register_convert_to_raw): Update.
7691 2003-04-08 Andrew Cagney <cagney@redhat.com>
7693 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7694 * gdbarch.h, gdbarch.c: Re-generate.
7695 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7696 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7697 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7698 conditionally, use frame_pc_unwind as an alternative. Add
7700 * arch-utils.c (init_frame_pc_default): Only call
7701 SAVED_PC_AFTER_CALL when available.
7703 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7705 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7706 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7707 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7708 (start_remote): Ditto.
7709 (handle_inferior_event): Ditto.
7710 (save_inferior_status): Ditto.
7711 (restore_inferior_status): Ditto.
7712 * infcmd.c (attach_command): Ditto.
7713 * fork-child.c (startup_inferior): Ditto.
7714 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7715 * alpha-tdep.c (heuristic_proc_start): Ditto.
7716 * mips-tdep.c (heuristic_proc_start): Ditto.
7717 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7718 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7719 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7720 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7721 * remote-vx.c (vx_create_inferior): Ditto.
7723 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7725 * infrun.c (stop_soon_quietly): Make it an enum, to better
7726 override the default behavior of handle_inferior_event.
7727 (clear_proceed_status): Update uses of stop_soon_quietly to
7728 reflect that it is now an enum.
7729 (start_remote): Ditto.
7730 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7731 is set to handle the new GNU/Linux kernel behavior for
7732 attach/sigstop. Update uses of stop_soon_quietly.
7733 * inferior.h (enum stop_kind): New enum.
7734 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7735 Reset normal handle_inferior_event behavior, afterwards.
7736 * fork-child.c (startup_inferior): Update.
7737 * alpha-tdep.c (heuristic_proc_start): Update.
7738 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7739 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7740 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7741 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7742 * remote-vx.c (vx_create_inferior): Update.
7743 * mips-tdep.c (heuristic_proc_start): Update.
7745 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7747 * disasm.c (dump_insns): Move variables inside loop, or they will
7748 be freed more than once, causing wild memory corruptions.
7749 (gdb_disassembly): Look for the substring "-thread",
7750 instead of "-threads" in the target name, to make sure to find
7751 the 'multi-thread' target. Also, make sure we do the right thing
7752 with the "core" target.
7754 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7756 * mips-tdep.c (mips_print_fp_register): New function, created from
7757 do_fp_register_row(). Registers are now (also) printed as hex.
7758 Only one register is printed per row.
7759 (mips_print_register, do_fp_register_row): Print floating point
7760 registers with mips_print_fp_register().
7762 2003-04-06 Andrew Cagney <cagney@redhat.com>
7764 * valprint.h (inspect_it): Add extern declaration.
7765 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7766 (selectors_info, classes_info): Ditto.
7767 (find_objc_msgcall): Fix indentation.
7768 (objc_printstr): Delete extern declarations.
7770 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7772 2003-04-06 Andrew Cagney <cagney@redhat.com>
7774 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7776 * frame.c (legacy_saved_regs_this_id): Update.
7777 (legacy_get_prev_frame): Update.
7778 * xstormy16-tdep.c: Update comment.
7779 * sparc-tdep.c (sparc_frame_chain): Update comment.
7780 * blockframe.c (legacy_frame_chain_valid): Update.
7782 2003-04-06 Andrew Cagney <cagney@redhat.com>
7784 * valprint.c (val_print_type_code_int): Delete #ifdef
7785 PRINT_TYPELESS_INTEGER code.
7787 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7788 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7789 multi-arch definition.
7790 * gdbarch.h: Re-generate.
7792 2003-04-05 Andrew Cagney <cagney@redhat.com>
7794 Eliminate FRAME_FIND_SAVED_REGS.
7795 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7796 Change FSR parameter to a pointer.
7797 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7798 Assume FSR parameter is a pointer.
7799 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7801 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7802 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7803 saved_regs a pointer.
7804 (hppa_frame_saved_pc): Ditto.
7805 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7806 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7808 (restore_pc_queue): Make fsr a pointer.
7809 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7810 (hppa_frame_chain): Make saved_regs a pointer, call
7811 hppa_frame_init_saved_regs.
7812 * sparc-tdep.c: Include "gdb_assert.h".
7813 (sparc_frame_find_saved_regs): Replace internal_error with
7815 * remote-vxsparc.c (vx_read_register): Delete reference to
7816 FRAME_FIND_SAVED_REGS.
7817 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7818 * gdbarch.h: Regenerate.
7819 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7820 (deprecated_get_frame_saved_regs): Delete declaration.
7821 (struct frame_saved_regs): Delete definition.
7822 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7823 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7824 (hppa_frame_find_saved_regs): Delete declaration.
7825 (FRAME_FIND_SAVED_REGS): Delete macro.
7826 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7827 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7828 FRAME_FIND_SAVED_REGS in comment.
7830 2003-04-05 Andrew Cagney <cagney@redhat.com>
7832 * frame.c (frame_func_unwind, get_frame_func): New functions.
7833 * frame.h (get_frame_func, frame_func_unwind): Declare.
7834 (struct frame_info): Add field "prev_func" for caching the
7835 previous frame's function address.
7836 * arm-tdep.c (arm_frameless_function_invocation): Combine
7837 get_pc_function_start and get_frame_pc into get_frame_func.
7838 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7839 (sh64_nofp_frame_init_saved_regs): Ditto.
7840 * s390-tdep.c (s390_function_start): Ditto.
7841 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7842 (rs6000_frameless_function_invocation): Ditto.
7843 (rs6000_frame_saved_pc): Ditto.
7844 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7845 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7846 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7847 (i386_frame_init_saved_regs): Ditto.
7848 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7849 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7850 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7851 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7852 * blockframe.c (frameless_look_for_prologue): Ditto.
7854 2003-04-05 Andrew Cagney <cagney@redhat.com>
7856 * frame.c (legacy_get_prev_frame): Link prev to next at the
7857 function start. Update comments.
7859 2003-04-05 Andrew Cagney <cagney@redhat.com>
7861 * frame.c (get_frame_id): Update comment.
7862 (legacy_get_prev_frame): Update comment.
7863 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7864 * gdbarch.h: Regenerate.
7865 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7866 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7868 2003-04-05 Andrew Cagney <cagney@redhat.com>
7870 * stack.c (print_frame_info): Use get_frame_pc.
7872 2003-04-04 Andrew Cagney <cagney@redhat.com>
7874 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7875 the frame's type from the unwinder.
7876 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7877 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7878 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7879 (get_frame_base_address): Use get_frame_type.
7880 (get_frame_locals_address, get_frame_args_address): Ditto.
7881 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7882 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7883 (struct frame_info): Add comment explaining why the frame contains
7885 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7886 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7887 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7889 * frame-unwind.h: Include "frame.h".
7890 (struct frame_unwind): Add "type" field.
7891 * Makefile.in (frame_unwind_h): Add $(frame_h).
7893 2003-04-04 Andrew Cagney <cagney@redhat.com>
7895 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7896 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7897 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7899 (d10v_unwind_dummy_id): Use frame_id_build.
7900 * frame.c (find_frame_sal): Use get_frame_pc.
7901 (create_new_frame): Use deprecated_update_frame_pc_hack and
7902 deprecated_update_frame_base_hack.
7903 (create_sentinel_frame): Add comment about ->pc going away.
7904 (get_prev_frame): Add comment about ->pc going away.
7905 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7906 frame_id_build, deprecated_update_frame_pc_hack and
7907 deprecated_update_frame_base_hack.
7908 (select_frame): Use get_frame_pc.
7909 (legacy_saved_regs_this_id): Use frame_id_build.
7911 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7913 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7914 signed integer case.
7915 (classify_argument): Handle enumerations and references.
7917 2003-04-04 Andrew Cagney <cagney@redhat.com>
7919 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7922 2003-04-01 Adam Fedor <fedor@gnu.org>
7924 * gdb/objc-lang.c (selectors_info): Replace calls to
7925 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7926 SYMBOL_NATURAL_NAME.
7927 (classes_info, find_methods): Likewise.
7929 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7931 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7932 ``mach'' to the value determined by bfd_default_set_arch_mach().
7934 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7936 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7937 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7938 (mi-cmd-file.o): Update dependencies.
7940 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7942 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7943 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7945 2003-04-01 Adam Fedor <fedor@gnu.org>
7947 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7948 * language.h (struct language_defn): Add la_demangle.
7949 (language_demangle): Declare.
7950 * language.c (language_demangle): New function.
7951 (unk_lang_demangle): Likewise.
7952 (unknown_language_defn, auto_language_defn, local_language_defn):
7953 Add ukn_lang_demangle.
7954 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7955 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7956 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7957 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7958 * jv-lang.c (java_demangle): New function
7959 (java_language_defn): Use it for la_demangle element.
7960 * objc-lang.c (objc_demangle): Add options argument
7961 (objc_language_defn): Use objc_demangle for la_demangle element.
7962 * maint.c (maintenance_demangle): Replace switch with
7963 call to language_demangle.
7964 * utils.c (fprintf_symbol_filtered): Likewise.
7966 2003-04-01 Andrew Cagney <cagney@redhat.com>
7968 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7969 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7970 PRINT_TYPELESS_INTEGER.
7971 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7972 PUSH_RETURN_ADDRESS.
7974 2003-04-01 Andrew Cagney <cagney@redhat.com>
7976 * Makefile.in (d10v-tdep.o): Update dependencies.
7977 * d10v-tdep.c: Include "frame-base.h".
7978 (d10v_frame_unwind): Make constant.
7979 (d10v_frame_base_address): New function.
7980 (d10v_frame_base): New variable.
7981 (d10v_gdbarch_init): Set frame_base default.
7982 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7984 (d10v_frame_unwind_cache): Set and use "prev_sp".
7985 (d10v_frame_this_id): Use the previous frame's inner most stack
7986 address and this frame's func address for the frame ID. Use
7987 frame_id_build. Don't analyze beyond the current instruction.
7989 2003-04-01 Andrew Cagney <cagney@redhat.com>
7991 * frame.h (get_frame_locals_address, get_frame_args_address):
7992 Refer to the base address, instead of the address of the first
7995 2003-04-01 Andrew Cagney <cagney@redhat.com>
7997 Add frame debug info addresses:
7998 * frame-base.c: New file.
7999 * frame-base.h: New file.
8000 * frame.h (struct frame_base): Add opaque declaration.
8001 (get_frame_base): Update comment.
8002 (get_frame_base_address): Declare.
8003 (get_frame_locals_address): Declare.
8004 (get_frame_args_address): Declare.
8005 (struct frame_info): Add "base" and "base_cache". Update
8006 comments on the unwinder.
8007 * frame.c: Include "frame-base.h".
8008 (get_frame_locals_address): New function.
8009 (get_frame_base_address): New function.
8010 (get_frame_args_address): New function.
8011 * findvar.c (read_var_value): Use get_frame_locals_address and
8012 get_frame_args_address.
8013 * stack.c (frame_info): Use get_frame_locals_address and
8014 get_frame_args_address.
8015 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8016 moved to "frame-base.c".
8017 * printcmd.c (print_frame_nameless_args): Ditto.
8018 * symtab.h (address_class): Update comments.
8019 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8020 get_frame_base_address.
8021 * dwarf2expr.c (execute_stack_op): Ditto.
8022 * Makefile.in (frame_base_h): Define.
8023 (frame.o): Update dependencies.
8024 (frame-base.o): Add dependencies.
8025 (SFILES): Add frame-base.c.
8026 (COMMON_OBS): Add frame-base.o.
8028 2003-04-01 Andrew Cagney <cagney@redhat.com>
8030 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8031 CALL_DUMMY_LENGTH): Ditto.
8032 * gdbarch.c: Re-generate.
8033 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8034 (CALL_DUMMY_LENGTH): Delete macro.
8035 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8036 * arm-tdep.c (arm_gdbarch_init): Ditto.
8037 * avr-tdep.c (avr_gdbarch_init): Ditto.
8038 * cris-tdep.c (cris_gdbarch_init): Ditto.
8039 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8040 * frv-tdep.c (frv_gdbarch_init): Ditto.
8041 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8042 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8043 * i386-tdep.c (i386_gdbarch_init): Ditto.
8044 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8045 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8046 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8047 * mips-tdep.c (mips_gdbarch_init): Ditto.
8048 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8049 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8050 * s390-tdep.c (s390_gdbarch_init): Ditto.
8051 * sh-tdep.c (sh_gdbarch_init): Ditto.
8052 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8053 * v850-tdep.c (v850_gdbarch_init): Ditto.
8054 * vax-tdep.c (vax_gdbarch_init): Ditto.
8055 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8057 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8059 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8061 2003-04-01 Andrew Cagney <cagney@redhat.com>
8063 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8064 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8065 * gdbarch.h, gdbarch.c: Re-generate.
8066 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8067 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8068 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8069 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8070 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8071 * infcmd.c (run_stack_dummy): Simplify assuming
8072 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8073 * infrun.c (handle_inferior_event): Ditto.
8074 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8075 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8076 * arm-tdep.c (arm_gdbarch_init): Ditto.
8077 * avr-tdep.c (avr_gdbarch_init): Ditto.
8078 * cris-tdep.c (cris_gdbarch_init): Ditto.
8079 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8080 * frv-tdep.c (frv_gdbarch_init): Ditto.
8081 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8082 * i386-tdep.c (i386_gdbarch_init): Ditto.
8083 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8084 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8085 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8086 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8087 * mips-tdep.c (mips_gdbarch_init): Ditto.
8088 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8089 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8090 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8091 * s390-tdep.c (s390_gdbarch_init): Ditto.
8092 * sh-tdep.c (sh_gdbarch_init): Ditto.
8093 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8094 * v850-tdep.c (v850_gdbarch_init): Ditto.
8095 * vax-tdep.c (vax_gdbarch_init): Ditto.
8096 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8098 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8100 * symfile.c (symfile_relocate_debug_section): Update call to
8101 bfd_simple_get_relocated_section_contents.
8103 2003-03-31 Andrew Cagney <cagney@redhat.com>
8105 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8106 * gdbarch.h, gdbarch.c: Regenerate.
8107 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8108 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8110 * frame.h (generic_fix_call_dummy): Delete declaration.
8111 * dummy-frame.h: Update comment.
8112 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8113 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8115 * sh-tdep.c (sh_gdbarch_init): Ditto.
8116 * s390-tdep.c (s390_gdbarch_init): Ditto.
8117 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8118 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8119 * m68hc11-tdep.c (m68hc11_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 * avr-tdep.c (avr_gdbarch_init): Ditto.
8127 * arm-tdep.c (arm_gdbarch_init): Ditto.
8129 2003-03-31 J. Brobecker <brobecker@gnat.com>
8131 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8132 (INIT_FRAME_AP): Likewise.
8133 (EXTRA_FRAME_INFO): Likewise.
8135 2003-03-31 Andrew Cagney <cagney@redhat.com>
8137 * gdbarch.sh: Include "symfile.h".
8138 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8139 * gdbarch.h, gdbarch.c: Re-generate.
8140 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8141 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8142 call_dummy_address, the default is at entry_point_address.
8143 * v850-tdep.c (v850_gdbarch_init): Ditto.
8144 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8145 * sh-tdep.c (sh_gdbarch_init): Ditto.
8146 * s390-tdep.c (s390_gdbarch_init): Ditto.
8147 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8148 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8149 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8150 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8151 * i386-tdep.c (i386_gdbarch_init): Ditto.
8152 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8153 * frv-tdep.c (frv_gdbarch_init): Ditto.
8154 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8155 * cris-tdep.c (cris_gdbarch_init): Ditto.
8156 * arm-tdep.c (arm_gdbarch_init): Ditto.
8158 2003-03-31 Andrew Cagney <cagney@redhat.com>
8160 * gdbarch.sh (CALL_DUMMY_P): Delete.
8161 * gdbarch.h, gdbarch.c: Re-generate.
8162 * inferior.h (CALL_DUMMY_P): Delete macro.
8163 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8164 * vax-tdep.c (vax_gdbarch_init): Update.
8165 * v850-tdep.c (v850_gdbarch_init): Update.
8166 * sparc-tdep.c (sparc_gdbarch_init): Update.
8167 * sh-tdep.c (sh_gdbarch_init): Update.
8168 * s390-tdep.c (s390_gdbarch_init): Update.
8169 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8170 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8171 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8172 * mips-tdep.c (mips_gdbarch_init): Update.
8173 * mcore-tdep.c (mcore_gdbarch_init): Update.
8174 * m68k-tdep.c (m68k_gdbarch_init): Update.
8175 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8176 * ia64-tdep.c (ia64_gdbarch_init): Update.
8177 * i386-tdep.c (i386_gdbarch_init): Update.
8178 * h8300-tdep.c (h8300_gdbarch_init): Update.
8179 * frv-tdep.c (frv_gdbarch_init): Update.
8180 * d10v-tdep.c (d10v_gdbarch_init): Update.
8181 * cris-tdep.c (cris_gdbarch_init): Update.
8182 * breakpoint.c (deprecated_frame_in_dummy): Update.
8183 * avr-tdep.c (avr_gdbarch_init): Update.
8184 * alpha-tdep.c (alpha_gdbarch_init): Update.
8185 * arm-tdep.c (arm_gdbarch_init): Update.
8186 * dummy-frame.c (dummy_frame_this_id): Update comments.
8187 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8188 * frame.c (legacy_get_prev_frame): Ditto.
8189 * valops.c (call_function_by_hand): Delete function.
8190 (hand_function_call): Rename to call_function_by_hand
8192 2003-03-30 Andrew Cagney <cagney@redhat.com>
8194 2002-11-10 Klee Dienes <kdienes@apple.com>
8195 * value.h (struct value): Update comment.
8197 2003-03-30 Andrew Cagney <cagney@redhat.com>
8199 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8201 (d10v_gdbarch_init): Do not set fp_regnum.
8203 * frame.c (get_frame_base): Force ID initialization.
8204 (get_prev_frame): Move computation of the frame ID from here ...
8205 (get_frame_id): ... to here.
8206 (legacy_get_prev_frame): Mark the frame ID as valid.
8207 * frame.h (struct frame_info): Add field "id_p".
8209 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8211 * i386-tdep.c (i386_store_struct_return): Removed.
8212 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8214 2003-03-30 Andrew Cagney <cagney@redhat.com>
8216 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8217 * gdbarch.h, gdbarch.c: Regenerate.
8218 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8219 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8220 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8221 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8222 * i386-tdep.c (i386_gdbarch_init): Ditto.
8223 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8224 * cris-tdep.c (cris_gdbarch_init): Ditto.
8225 * vax-tdep.c (vax_gdbarch_init): Ditto.
8226 * s390-tdep.c (s390_gdbarch_init): Ditto.
8227 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8228 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8229 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8230 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8231 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8232 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8233 * sparc-tdep.c (sparc_gdbarch_init): Update.
8234 * sh-tdep.c (sh_gdbarch_init): Update.
8235 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8236 * mips-tdep.c (mips_gdbarch_init): Update.
8237 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8238 * ia64-tdep.c (ia64_gdbarch_init): Update.
8239 * frv-tdep.c (frv_gdbarch_init): Update.
8240 * avr-tdep.c (avr_gdbarch_init): Update.
8241 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8242 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8243 instead of when push_dummy_call is not available.
8245 2003-03-30 Andrew Cagney <cagney@redhat.com>
8247 * infttrace.c: Include "gdbthread.h".
8248 (parent_attach_all): Fix function signature.
8249 (call_ptrace): Update call.
8250 * Makefile.in (infttrace.o): Update dependencies.
8252 2003-03-30 Andrew Cagney <cagney@redhat.com>
8254 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8255 PUSH_RETURN_ADDRESS.
8256 * gdbarch.h, gdbarch.c: Regenerate.
8257 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8258 * x86-64-tdep.c (x86_64_init_abi): Update.
8259 * v850-tdep.c (v850_gdbarch_init): Update.
8260 * sparc-tdep.c (sparc_gdbarch_init): Update.
8261 * sh-tdep.c (sh_gdbarch_init): Update.
8262 * s390-tdep.c (s390_gdbarch_init): Update.
8263 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8264 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8265 * mips-tdep.c (mips_gdbarch_init): Update.
8266 * mcore-tdep.c (mcore_gdbarch_init): Update.
8267 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8268 * ia64-tdep.c (ia64_gdbarch_init): Update.
8269 * i386-tdep.c (i386_gdbarch_init): Update.
8270 * h8300-tdep.c (h8300_gdbarch_init): Update.
8271 * frv-tdep.c (frv_gdbarch_init): Update.
8272 * cris-tdep.c (cris_gdbarch_init): Update.
8273 * avr-tdep.c (avr_gdbarch_init): Update.
8274 * arm-tdep.c (arm_gdbarch_init): Update.
8275 * valops.c (hand_function_call): Update.
8277 2003-03-29 Andrew Cagney <cagney@redhat.com>
8279 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8280 sizeof_call_dummy_words.
8281 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8283 * gdbarch.h: Regenerate.
8285 2003-03-29 Andrew Cagney <cagney@redhat.com>
8287 * infttrace.h: New file.
8288 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8289 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8290 (hpread_read_doc_function_type): Detect an initialized type1.
8291 (hpread_quick_traverse): Initialize mod_name_string.
8292 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8293 (som_solib_get_solib_by_pc): Declare.
8294 (so_lib_thread_start_addr): Declare.
8295 (no_shared_libraries): Declare.
8296 * somread.c (init_import_symbols): Make static. Add forward
8298 * config/pa/nm-hppah.h: Include "infttrace.h" for
8300 (hppa_insert_hw_watchpoint): Declare.
8301 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8302 * hppah-nat.c: Include "gdb_string.h".
8303 (parent_attach_all): Delete extern declaration, moved to
8305 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8307 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8308 * Makefile.in (infttrace_h): Define.
8309 (hpread.o): Update dependencies.
8310 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8311 * hppa-hpux-tdep.c: Include "gdb_string.h".
8312 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8313 * infrun.c (handle_inferior_event): Always initialize
8314 stepped_after_stopped_by_watchpoint. Add default and remove
8315 fallthrough in switch statement.
8316 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8318 (hppa_remove_hw_watchpoint): Ditto.
8320 2003-03-29 Andrew Cagney <cagney@redhat.com>
8322 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8325 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8327 * arm-tdep.c (arm_push_arguments): Delete.
8328 (struct stack_item): New type.
8329 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8330 (arm_store_struct_return): Delte.
8331 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8332 arm_push_arguments or arm_store_struct_return.
8334 2003-03-28 Andrew Cagney <cagney@redhat.com>
8336 * Makefile.in (d10v-tdep.o): Update dependencies.
8337 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8338 * d10v-tdep.c: Include "remote.h".
8339 (target_resume_hook): Delete extern declaration.
8340 (target_wait_loop_hook): Ditto.
8341 (tdisassemble_command): Eliminate assignment in "if" conditional.
8342 (d10v_ts2_register_sim_regno): Eliminate call to
8343 legacy_register_sim_regno.
8344 (d10v_ts3_register_sim_regno): Ditto.
8346 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8348 * thread.c: Reindented.
8350 * linux-proc.c: Ditto.
8352 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8354 * MAINTAINERS (write after approval): Add myself.
8356 2003-03-27 Theodore A. Roth <troth@openavr.org>
8358 * objc-exp.y: Add missing semi-colons.
8360 2003-03-27 Andrew Cagney <cagney@redhat.com>
8362 * regcache.c (write_sp): Delete function and references.
8363 * inferior.h (write_sp): Delete declaration.
8364 * valops.c (hand_function_call): Replace write_sp with
8366 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8367 (sparc_pop_frame): Ditto.
8369 2003-03-27 Andrew Cagney <cagney@redhat.com>
8371 * NEWS: Mention removal of support for hppa*-*-bsd* and
8372 hppa*-*-osf* natives, and hppa*-*-pro* target.
8373 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8374 * config/pa/xm-pa.h: Obsolete file.
8375 * config/pa/xm-hppab.h: Obsolete file.
8376 * config/pa/nm-hppab.h: Obsolete file.
8377 * config/pa/tm-hppab.h: Obsolete file.
8378 * config/pa/tm-hppao.h: Obsolete file.
8379 * config/pa/nm-hppao.h: Obsolete file.
8380 * config/pa/tm-pro.h: Obsolete file.
8381 * config/pa/hppaosf.mt: Obsolete file.
8382 * config/pa/hppaosf.mh: Obsolete file.
8383 * config/pa/hppapro.mt: Obsolete file.
8384 * config/pa/hppabsd.mt: Obsolete file.
8385 * config/pa/hppabsd.mh: Obsolete file.
8386 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8387 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8390 2003-03-27 Andrew Cagney <cagney@redhat.com>
8392 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8393 push_arguments. Don't set push_return_address or write_sp.
8394 (d10v_push_dummy_call): Replace d10v_push_arguments.
8395 (d10v_push_return_address, d10v_write_sp): Delete function,
8396 handled by push_dummy_call.
8398 2003-03-26 Andrew Cagney <cagney@redhat.com>
8400 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8401 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8402 regcache and dummy_addr parameters.
8403 * gdbarch.h, gdbarch.c: Re-generate.
8404 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8405 available; assume it will handle stack alignment and return
8406 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8407 legacy_push_arguments.
8408 (legacy_push_arguments): Rename default_push_arguments.
8409 * value.h (legacy_push_arguments): Rename default_push_arguments.
8410 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8411 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8412 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8413 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8414 * config/i386/tm-symmetry.h: Update.
8415 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8416 * x86-64-tdep.c (x86_64_init_abi): Update.
8417 * v850-tdep.c (v850_gdbarch_init): Update.
8418 * sparc-tdep.c (sparc_gdbarch_init): Update.
8419 * sh-tdep.c (sh_gdbarch_init): Update.
8420 * s390-tdep.c (s390_gdbarch_init): Update.
8421 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8422 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8423 * mips-tdep.c (mips_gdbarch_init): Update.
8424 * mcore-tdep.c (mcore_gdbarch_init): Update.
8425 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8426 * ia64-tdep.c (ia64_gdbarch_init): Update.
8427 * i386-tdep.c (i386_gdbarch_init): Update.
8428 * hppa-tdep.c (hppa_gdbarch_init): Update.
8429 * h8300-tdep.c (h8300_gdbarch_init): Update.
8430 * frv-tdep.c (frv_gdbarch_init): Update.
8431 * d10v-tdep.c (d10v_gdbarch_init): Update.
8432 * cris-tdep.c (cris_gdbarch_init): Update.
8433 * avr-tdep.c (avr_gdbarch_init): Update.
8434 * arm-tdep.c (arm_gdbarch_init): Update.
8435 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8436 * alpha-tdep.c (alpha_gdbarch_init): Update.
8438 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8440 * signals/signals.c (do_target_signal_to_host): Correct realtime
8443 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8445 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8446 (struct sal_chain, map_catch_names): Remove.
8447 (catch_exception_command_1): Don't call
8448 handle_gnu_4_16_catch_command.
8450 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8452 From Mark Dettinger <dettinge@de.ibm.com>:
8453 * dwarf2cfi.c (read_2u): Increment pointer by two.
8455 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8457 * signals/signals.c: Fix typos in last change.
8459 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8461 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8462 not already defined. Use __SIGRTMIN if available.
8463 (target_signal_from_host): Remove SIGRTMIN block.
8464 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8465 the signal is within the realtime range.
8467 2003-03-25 Adam Fedor <fedor@gnu.org>
8469 * Makefile.in (infrun.o): Add $(language_h)
8470 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8471 for language specific trampolines.
8472 * language.h (struct language_defn): Add skip_trampoline.
8473 (skip_language_trampoline): Declare.
8474 * language.c (unk_lang_trampoline, skip_language_trampoline):
8476 (unknown_language_defn, auto_language_defn, local_language_defn):
8477 Add ukn_lang_trampoline.
8478 * ada-lang.c (ada_language_defn): Add NULL for language
8479 specific skip_trampoline.
8480 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8481 scm-lang.c: Likewise.
8482 * objc-lang.c (objc_skip_trampoline): New function.
8483 (objc_language_defn): Add objc_skip_trampoline.
8485 2003-03-25 Andrew Cagney <cagney@redhat.com>
8487 * frame.c (get_prev_frame): Delay validating a frame's ID -
8488 non-NULL, didn't go backwards - until an attempt to unwind it to
8491 2003-03-25 Andrew Cagney <cagney@redhat.com>
8493 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8494 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8495 * gdbarch.h, gdbarch.c: Re-generate.
8496 * config/sparc/tm-sparc.h
8497 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8498 * sparc-tdep.c (sparc_gdbarch_init): Set
8499 deprecated_extra_stack_alignment_needed.
8500 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8501 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8502 extra_stack_alignment_needed.
8503 * v850-tdep.c (v850_gdbarch_init): Ditto.
8504 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8505 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8506 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8507 * cris-tdep.c (cris_gdbarch_init): Ditto.
8508 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8509 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8511 2003-03-25 Andrew Cagney <cagney@redhat.com>
8513 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8514 STORE_STRUCT_RETURN.
8515 * gdbarch.h, gdbarch.c: Regenerate.
8516 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8517 (d10v_push_arguments): Set the struct return register.
8518 (d10v_gdbarch_init): Update.
8519 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8520 * x86-64-tdep.c (x86_64_init_abi): Update.
8521 * vax-tdep.c (vax_gdbarch_init): Update.
8522 * v850-tdep.c (v850_gdbarch_init): Update.
8523 * sparc-tdep.c (sparc_gdbarch_init): Update.
8524 * sh-tdep.c (sh_gdbarch_init): Update.
8525 * s390-tdep.c (s390_gdbarch_init): Update.
8526 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8527 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8528 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8529 * mips-tdep.c (mips_gdbarch_init): Update.
8530 * mcore-tdep.c (mcore_gdbarch_init): Update.
8531 * m68k-tdep.c (m68k_gdbarch_init): Update.
8532 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8533 * ia64-tdep.c (ia64_gdbarch_init): Update.
8534 * i386-tdep.c (i386_gdbarch_init): Update.
8535 * hppa-tdep.c (hppa_gdbarch_init): Update.
8536 * h8300-tdep.c (h8300_gdbarch_init): Update.
8537 * frv-tdep.c (frv_gdbarch_init): Update.
8538 * cris-tdep.c (cris_gdbarch_init): Update.
8539 * avr-tdep.c (avr_gdbarch_init): Update.
8540 * arm-tdep.c (arm_gdbarch_init): Update.
8541 * alpha-tdep.c (alpha_gdbarch_init): Update.
8543 2003-03-25 Andrew Cagney <cagney@redhat.com>
8545 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8546 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8547 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8548 * gdbarch.h, gdbarch.c: Regenerate.
8549 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8550 call_dummy_stack_adjust_p.
8551 * vax-tdep.c (vax_gdbarch_init): Ditto.
8552 * v850-tdep.c (v850_gdbarch_init): Ditto.
8553 * sh-tdep.c (sh_gdbarch_init): Ditto.
8554 * s390-tdep.c (s390_gdbarch_init): Ditto.
8555 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8556 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8557 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8558 * mips-tdep.c (mips_gdbarch_init): Ditto.
8559 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8560 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8561 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8562 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8563 * i386-tdep.c (i386_gdbarch_init): Ditto.
8564 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8565 * frv-tdep.c (frv_gdbarch_init): Ditto.
8566 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8567 * cris-tdep.c (cris_gdbarch_init): Ditto.
8568 * avr-tdep.c (avr_gdbarch_init): Ditto.
8569 * arm-tdep.c (arm_gdbarch_init): Ditto.
8570 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8571 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8572 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8573 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8574 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8575 call_dummy_stack_adjust_p.
8576 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8577 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8578 * sparc-tdep.c (sparc32_push_arguments): Update.
8579 * valops.c (hand_function_call): Update.
8581 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8583 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8584 set_gdbarch_char_signed.
8586 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8589 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8591 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8593 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8594 (_initialize_arm_tdep): Don't set tm_print_insn.
8596 2003-03-24 Adam Fedor <fedor@gnu.org>
8598 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8599 * objc-lang.h: Add multiple inclusion protection.
8600 (start_msglist, add_msglist, end_msglist): Additional declarations.
8602 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8604 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8605 value was renamed to ARM_FLOAT_SOFT_FPA.
8607 2003-03-23 Andrew Cagney <cagney@redhat.com>
8609 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8610 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8611 * gdbarch.h, gdbarch.c: Regenerate.
8612 * valops.c (hand_function_call): Update.
8613 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8614 * frame.c (legacy_saved_regs_this_id): Update.
8615 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8616 * dummy-frame.h: Update.
8617 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8618 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8619 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8620 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8621 * config/m68k/tm-sun3.h: Update.
8622 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8623 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8624 * x86-64-tdep.c (x86_64_init_abi): Update.
8625 * vax-tdep.c (vax_gdbarch_init): Update.
8626 * v850-tdep.c (v850_gdbarch_init): Update.
8627 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8628 * sh-tdep.c (sh_gdbarch_init): Update.
8629 * s390-tdep.c (s390_gdbarch_init): Update.
8630 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8631 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8632 (frame_get_saved_regs): Update.
8633 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8634 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8635 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8636 * mips-tdep.c (mips_gdbarch_init): Update.
8637 * mcore-tdep.c (mcore_gdbarch_init): Update.
8638 * m68k-tdep.c (m68k_gdbarch_init): Update.
8639 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8640 * ia64-tdep.c (ia64_gdbarch_init): Update.
8641 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8642 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8643 (i386_interix_back_one_frame): Update.
8644 * hppa-tdep.c (hppa_gdbarch_init): Update.
8645 (hppa_init_extra_frame_info): Update.
8646 * h8300-tdep.c (h8300_gdbarch_init): Update.
8647 * frv-tdep.c (frv_gdbarch_init): Update.
8648 * cris-tdep.c (cris_gdbarch_init): Update.
8649 * avr-tdep.c (avr_gdbarch_init): Update.
8650 * arm-tdep.c (arm_gdbarch_init): Update.
8651 * alpha-tdep.c (alpha_gdbarch_init): Update.
8653 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8655 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8656 (arm_get_fp_model): Declare.
8657 * arm-tdep.c (fp_model_strings): New string array.
8658 (arm_fp_model, current_fp_model): New variables.
8659 (arm_get_fp_model): New function.
8660 (arm_set_fp): New function.
8661 (set_fp_model_sfunc): New function.
8662 (show_fp_model): New function.
8663 (_initialize_arm_tdep): Add new command to set/show the FPU.
8664 (arm_extract_return_value): Use arm_get_fp_model.
8665 (arm_store_return_value): Likewise.
8666 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8667 to initialize the floating-point data types.
8668 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8671 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8673 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8674 the current setting of each value.
8675 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8676 new_set and new_show. Use add_setshow_cmd_full and
8677 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8678 commands and add new version as subcommands of "set/show arm".
8680 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8682 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8683 (set_arm_command, show_arm_command): New functions.
8684 (_initialize_arm_tdep): Add them.
8685 (num_disassembly_options): Renamed from num_flavor_options.
8686 (valid_disassembly_styles): Renamed from valid_flavors.
8687 (disassembly_style): Renamed from disassembly_flavor.
8688 (set_disassembly_style_sfunc): Renamed from
8689 set_disassembly_flavor_sfunc.
8690 (set_disassembly_style): Renamed from set_disassembly_flavor.
8691 (arm_othernames): Updated.
8692 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8693 command. Add "set/show arm disassembly" commands. Deprecate
8694 "othernames" command.
8696 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8698 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8699 (arm-tdep.o): Depend on elf_arm_h.
8701 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8703 * Makefile.in (coff_internal_h): Define.
8704 (arm-tdep.o): Update dependencies.
8706 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8708 * arm-tdep.c (prologue_cache): Delete.
8709 (check_prologue_cache, save_prologue_cache): Delete.
8710 (arm_scan_prologue): Don't check or update the prologue_cache.
8711 (arm_gdb_arch_init): Don't initialize it.
8712 (_initialize_arm_tdep): Likewise.
8714 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8716 * MAINTAINERS (tui): Maintainer of tui code.
8718 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8720 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8721 (i386-cygwin-tdep.o): Add dependencies.
8722 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8723 * i386-cygwin-tdep.c: New file.
8724 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8725 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8727 2003-03-20 Andrew Cagney <cagney@redhat.com>
8729 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8730 (handle_inferior_event): Remove code calling
8731 DYNAMIC_TRAMPOLINE_NEXTPC.
8733 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8734 already has a full path.
8736 * main.c (gdb_main): Return 1.
8737 (captured_main): Call error to report an invalid interpreter.
8739 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8740 * alpha-osf1-tdep.c: Include "gdb_string.h".
8742 2003-03-19 J. Brobecker <brobecker@gnat.com>
8744 Continuing work to convert the hppa targets to multiarch partial.
8746 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8747 method, now that hppa_push_dummy_frame has a conformant prototype.
8748 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8749 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8750 for the switch to multiarch partial.
8752 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8754 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8755 when iss is issNull.
8757 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8759 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8760 NUM_REGS bounds check.
8762 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8764 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8765 * mips-tdep.c (gdb_assert.h): Include.
8766 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8767 (mips_register_name): Handle integer registers explicitly. Add
8769 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8770 (mips_lsi33k_reg_names): Don't list integer registers; they're
8771 handled by mips_register_name() now.
8772 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8773 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8774 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8775 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8776 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8778 2003-03-18 Andrew Cagney <cagney@redhat.com>
8780 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8782 * gdbtypes.h (print_scalar_formatted): Update declaration.
8783 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8785 2003-03-18 J. Brobecker <brobecker@gnat.com>
8787 * infrun.c (observer.h): Add #include.
8788 (normal_stop): Add call to observer_notify_normal_stop.
8789 * Makefile.in (infrun.o): Add dependency on observer.h.
8791 2003-03-18 J. Brobecker <brobecker@gnat.com>
8793 Continuing work to convert the hppa targets to multiarch partial.
8794 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8795 parameter. Reformat comment.
8796 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8797 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8798 to match new profile.
8800 2003-03-18 J. Brobecker <brobecker@gnat.com>
8802 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8803 appear to be working in any case.
8805 2003-03-18 J. Brobecker <brobecker@gnat.com>
8807 * observer.c (observer_test_first_observer): New static variable.
8808 (observer_test_second_observer): Likewise.
8809 (observer_test_third_observer): Likewise.
8810 (observer_test_first_notification_function): New static function.
8811 (observer_test_second_notification_function): Likewise.
8812 (observer_test_third_notification_function): Likewise.
8814 2003-03-17 J. Brobecker <brobecker@gnat.com>
8816 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8817 * somsolib.c (gdb_assert.h): Likewise.
8818 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8819 (somsolib.o): Likewise.
8821 2003-03-17 Andrew Cagney <cagney@redhat.com>
8823 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8824 BFD. Simplify setting of di.endian.
8826 2003-03-17 Andrew Cagney <cagney@redhat.com>
8828 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8829 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8831 From Elena Zannoni <ezannoni@redhat.com>
8832 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8833 vector and floating-point parameters.
8834 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8836 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8838 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8840 * MAINTAINERS: Remove my name from several maintainership roles.
8842 2003-03-17 Andrew Cagney <cagney@redhat.com>
8844 Fix frame off-by-one bug.
8845 * frame-unwind.h (frame_this_id_ftype): Replace
8846 frame_unwind_id_ftype.
8847 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8848 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8849 with "prev_register".
8850 * frame-unwind.c (frame_unwind_find_by_pc): Return
8851 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8853 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8854 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8855 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8856 (dummy_frame_unwind): Update.
8857 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8858 sentinel_frame_register_unwind.
8859 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8860 (sentinel_frame_unwinder): Update.
8861 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8862 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8863 * frame.c (create_sentinel_frame): Update. Initialize
8864 "prologue_cache" instead of "unwind_cache".
8865 (frame_register_unwind): Call this frame's prev_register with the
8866 next frame and this frame's prologue cache.
8867 (get_prev_frame): Simplify. Always call prev frame's this_id with
8868 this frame and prev frame's prologue cache. Document that this
8869 call is shifted one to the left when compared to the
8870 frame_register_unwind call.
8871 (legacy_saved_regs_prev_register): Replace
8872 frame_saved_regs_register_unwind.
8873 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8874 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8875 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8876 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8877 (d10v_frame_unwind): Update.
8878 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8879 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8880 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8881 "saved_regs" with "this_saved_regs".
8883 2003-03-16 Andrew Cagney <cagney@redhat.com>
8885 * frame.c (frame_pop): Don't call target_store_registers. Fix
8886 problem reported by Mark Kettenis.
8888 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8890 * i386-tdep.c (i386_register_type): Renamed from
8891 i386_register_virtual_type. Adjust function signature.
8892 (i386_gdbarch_init): Set register_type instead of
8893 deprecated_max_register_raw_size,
8894 deprecated_max_register_virtual_size and register_virtual_type.
8896 2003-03-14 Andrew Cagney <cagney@redhat.com>
8898 * frame.c (get_prev_frame): When a legacy frame, always call
8899 legacy_get_prev_frame. Simplify unwind code using assumption that
8900 the unwinder is new.
8901 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8902 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8903 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8905 2003-03-14 Andrew Cagney <cagney@redhat.com>
8907 * frame.c (get_saved_register): Delete function.
8908 * frame.h (get_saved_register): Delete declaration.
8909 * xstormy16-tdep.c: Update comment.
8910 * regcache.h: Update comments.
8911 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8912 get_saved_register and extract_address, use
8913 frame_read_unsigned_register.
8914 (sparc_frame_saved_pc): Ditto.
8915 (sparc_get_saved_register): Instead of get_saved_register, use
8917 (sparc_pop_frame): Ditto.
8918 * findvar.c: Update comments.
8919 (value_of_register): Call frame_register instead of
8921 (value_from_register): Ditto.
8922 * config/sparc/tm-sparc.h: Update comment.
8923 * breakpoint.c: Update comment.
8925 2003-03-14 Andrew Cagney <cagney@redhat.com>
8927 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8929 * gdbarch.h, gdbarch.c: Re-generate.
8930 * frame.h: Update comments.
8931 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8932 * x86-64-tdep.c (x86_64_init_abi): Update.
8933 * sparc-tdep.c (sparc_gdbarch_init): Update.
8934 * sh-tdep.c (sh_gdbarch_init): Update.
8935 * mips-tdep.c (mips_gdbarch_init): Update.
8936 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8937 * cris-tdep.c (cris_gdbarch_init): Update.
8938 * ia64-tdep.c (ia64_gdbarch_init): Update.
8939 * frame.c (frame_register): Update.
8940 (get_saved_register): Update.
8941 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8943 2003-03-13 Andrew Cagney <cagney@redhat.com>
8945 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8946 * gdbarch.h, gdbarch.c: Regenerate.
8947 * valops.c (hand_function_call): Update comment.
8948 * stack.c (return_command): Update comment.
8949 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8950 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8951 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8952 * x86-64-tdep.c (x86_64_init_abi): Update.
8953 * vax-tdep.c (vax_gdbarch_init): Update.
8954 * v850-tdep.c (v850_gdbarch_init): Update.
8955 * sparc-tdep.c (sparc_gdbarch_init): Update.
8956 * sh-tdep.c (sh_gdbarch_init): Update.
8957 * s390-tdep.c (s390_gdbarch_init): Update.
8958 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8959 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8960 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8961 * mips-tdep.c (mips_gdbarch_init): Update.
8962 * mcore-tdep.c (mcore_gdbarch_init): Update.
8963 * m68k-tdep.c (m68k_gdbarch_init): Update.
8964 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8965 * ia64-tdep.c (ia64_gdbarch_init): Update.
8966 * i386-tdep.c (i386_gdbarch_init): Update.
8967 * hppa-tdep.c (hppa_gdbarch_init): Update.
8968 * h8300-tdep.c (h8300_gdbarch_init): Update.
8969 * frv-tdep.c (frv_gdbarch_init): Update.
8970 * cris-tdep.c (cris_gdbarch_init): Update.
8971 * avr-tdep.c (avr_gdbarch_init): Update.
8972 * arm-tdep.c (arm_gdbarch_init): Update.
8973 * alpha-tdep.c (alpha_gdbarch_init): Update.
8975 2003-03-13 Andrew Cagney <cagney@redhat.com>
8977 * frame.c (legacy_frame_p): New function.
8978 (get_prev_frame): Use legacy_frame_p.
8979 * frame.h (legacy_frame_p): Declare.
8981 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8983 * MAINTAINERS (write after approval): Alphabetically
8986 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8988 * MAINTAINERS (write after approval): Add myself.
8990 2003-03-12 Andrew Cagney <cagney@redhat.com>
8992 * frame.c (get_prev_frame): Rename the frame parameter to
8994 (get_next_frame, legacy_get_prev_frame): Ditto.
8996 2003-03-12 Andrew Cagney <cagney@redhat.com>
8998 * frame.c (get_current_frame): Check target_has_registers before
8999 checking target_has_stack.
9000 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9001 instead of deprecated_selected_frame.
9002 * findvar.c (value_of_register): Pass "frame", not
9003 deprecated_selected_frame, to value_of_builtin_reg.
9005 2003-03-12 Andrew Cagney <cagney@redhat.com>
9007 * regcache.c (regcache_cooked_write_signed): New function.
9008 (regcache_cooked_write_unsigned): New function.
9009 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9010 (regcache_cooked_read_signed): Fix regnum in range assertion.
9011 * regcache.h (regcache_cooked_write_signed): Declare.
9012 (regcache_cooked_write_unsigned): Declare.
9014 2003-03-12 Andrew Cagney <cagney@redhat.com>
9016 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9017 * gdbarch.h, gdbarch.c: Re-generate.
9018 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9019 * x86-64-tdep.h: Update.
9020 * x86-64-tdep.c (x86_64_init_abi): Update.
9021 * v850-tdep.c (v850_gdbarch_init): Update.
9022 * sparc-tdep.c (sparc_gdbarch_init): Update.
9023 * sh-tdep.c (sh_gdbarch_init): Update.
9024 * s390-tdep.c (s390_gdbarch_init): Update.
9025 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9026 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9027 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9028 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9029 * mips-tdep.c (mips_gdbarch_init): Update.
9030 * mcore-tdep.c (mcore_gdbarch_init): Update.
9031 * m68k-tdep.c (m68k_gdbarch_init): Update.
9032 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9033 * ia64-tdep.c (ia64_gdbarch_init): Update.
9034 * i386-tdep.c (i386_gdbarch_init): Update.
9035 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9036 * hppa-tdep.c (hppa_gdbarch_init): Update.
9037 * h8300-tdep.c (h8300_gdbarch_init): Update.
9038 * frv-tdep.c (frv_gdbarch_init): Update.
9039 * cris-tdep.c (cris_gdbarch_init): Update.
9040 * avr-tdep.c (avr_gdbarch_init): Update.
9041 * arm-tdep.c (arm_gdbarch_init): Update.
9042 * alpha-tdep.c (alpha_gdbarch_init): Update.
9043 * sh-tdep.c (sh_init_extra_frame_info): Update.
9044 (sh64_init_extra_frame_info): Update.
9045 * ns32knbsd-nat.c (frame_num_args): Update.
9046 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9047 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9048 (xstormy16_frame_chain_valid): Update.
9049 * vax-tdep.c (vax_saved_pc_after_call): Update.
9050 * v850-tdep.c (v850_frame_chain): Update.
9051 (v850_pop_frame): Update.
9052 (v850_init_extra_frame_info): Update.
9053 * sparc-tdep.c (setup_arbitrary_frame): Update.
9054 * ns32k-tdep.c (umax_frame_num_args): Update.
9055 * s390-tdep.c (s390_pop_frame_regular): Update.
9056 * mn10300-tdep.c (mn10300_frame_chain): Update.
9057 (mn10300_pop_frame_regular): Update.
9058 (mn10300_init_extra_frame_info): Update.
9059 * mips-tdep.c (mips_init_frame_pc_first): Update.
9060 (mips_frame_chain): Update.
9061 (mips_pop_frame): Update.
9062 * mcore-tdep.c (mcore_frame_chain): Update.
9063 (mcore_pop_frame): Update.
9064 (mcore_init_extra_frame_info): Update.
9065 * arch-utils.c (init_frame_pc_default): Update.
9066 * m68k-tdep.c (isi_frame_num_args): Update.
9067 (delta68_frame_num_args): Update.
9068 (news_frame_num_args): Update.
9069 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9070 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9071 (alpha_frame_chain): Update.
9072 (alpha_pop_frame): Update.
9073 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9074 (hppa_init_extra_frame_info): Update.
9075 (hppa_frame_chain): Update.
9076 (hppa_frame_chain_valid): Update.
9077 * cris-tdep.c (cris_init_extra_frame_info): Update.
9078 * avr-tdep.c (avr_init_extra_frame_info): Update.
9079 * arm-tdep.c (arm_frame_chain_valid): Update.
9080 (arm_init_extra_frame_info): Update.
9081 (arm_pop_frame): Update.
9082 * frame.c (frame_pc_unwind): Update.
9083 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9084 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9085 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9086 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9087 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9088 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9090 2003-03-12 Andrew Cagney <cagney@redhat.com>
9092 Eliminate the need for POP_FRAME.
9093 * frame.c (do_frame_unwind_register): New function.
9094 (frame_pop): When no POP_FRAME, pop the frame using register
9095 unwind and a scratch regcache.
9096 (frame_saved_regs_pop): Delete function.
9097 (trad_frame_unwinder): Update.
9098 * d10v-tdep.c (d10v_frame_pop): Delete function.
9099 (d10v_frame_unwind): Update.
9100 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9101 (sentinel_frame_unwinder): Update.
9102 * dummy-frame.c (dummy_frame_pop): Delete function.
9103 (dummy_frame_unwind): Update.
9104 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9105 (struct frame_unwind): Update.
9107 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9109 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9110 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9111 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9112 Do range checks on register number obtained from debugging info.
9113 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9114 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9115 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9117 (do_fp_register_row): Fix typo which caused double type to be
9118 used when attempting to unpack a float.
9120 2003-03-11 J. Brobecker <brobecker@gnat.com>
9122 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9124 2003-03-11 Andrew Cagney <cagney@redhat.com>
9126 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9127 frame. Problem found by Corinna Vinschen.
9129 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9131 * doublest.c (floatformat_from_length): Accept also
9132 the real size of 'long double' type.
9134 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9136 From Klee Dienes <kdienes@apple.com>:
9137 * breakpoint.c (bpstat_copy): Copy the command lines as well
9138 as the old value, to match what is freed in bpstat_clear.
9140 2003-03-10 David Carlton <carlton@math.stanford.edu>
9142 * minsyms.c (add_minsym_to_hash_table): Replace
9143 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9144 (compare_minimal_symbols, compact_minimal_symbols)
9145 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9146 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9147 of DEPRECATED_SYMBOL_MATCHES_NAME.
9148 (lookup_minimal_symbol_solib_trampoline): Ditto.
9150 2003-03-10 Andrew Cagney <cagney@redhat.com>
9152 * regcache.h (regcache_cooked_read_ftype): Define.
9153 (regcache_save, regcache_restore): Add a cooked_read parameter.
9154 * regcache.c (regcache_save, regcache_restore): Update.
9155 (do_cooked_read): New function.
9156 (regcache_cpy): Pass do_cooked_read to regcache_save and
9159 2003-03-10 Andrew Cagney <cagney@redhat.com>
9161 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9162 * gdbarch.h, gdbarch.c: Re-generate.
9163 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9164 * x86-64-tdep.h: Update.
9165 * x86-64-tdep.c (x86_64_init_abi): Update.
9166 * v850-tdep.c (v850_gdbarch_init): Update.
9167 * sparc-tdep.c (sparc_gdbarch_init): Update.
9168 * sh-tdep.c (sh_gdbarch_init): Update.
9169 * s390-tdep.c (s390_gdbarch_init): Update.
9170 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9171 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9172 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9173 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9174 * mips-tdep.c (mips_gdbarch_init): Update.
9175 * mcore-tdep.c (mcore_gdbarch_init): Update.
9176 * m68k-tdep.c (m68k_gdbarch_init): Update.
9177 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9178 * ia64-tdep.c (ia64_gdbarch_init): Update.
9179 * i386-tdep.c (i386_gdbarch_init): Update.
9180 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9181 * hppa-tdep.c (hppa_gdbarch_init): Update.
9182 * h8300-tdep.c (h8300_gdbarch_init): Update.
9183 * frv-tdep.c (frv_gdbarch_init): Update.
9184 * cris-tdep.c (cris_gdbarch_init): Update.
9185 * avr-tdep.c (avr_gdbarch_init): Update.
9186 * arm-tdep.c (arm_gdbarch_init): Update.
9187 * alpha-tdep.c (alpha_gdbarch_init): Update.
9188 * sh-tdep.c (sh_init_extra_frame_info): Update.
9189 (sh64_init_extra_frame_info): Update.
9190 * ns32knbsd-nat.c (frame_num_args): Update.
9191 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9192 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9193 (xstormy16_frame_chain_valid): Update.
9194 * vax-tdep.c (vax_saved_pc_after_call): Update.
9195 * v850-tdep.c (v850_frame_chain): Update.
9196 (v850_pop_frame): Update.
9197 (v850_init_extra_frame_info): Update.
9198 * sparc-tdep.c (setup_arbitrary_frame): Update.
9199 * ns32k-tdep.c (umax_frame_num_args): Update.
9200 * s390-tdep.c (s390_pop_frame_regular): Update.
9201 * mn10300-tdep.c (mn10300_frame_chain): Update.
9202 (mn10300_pop_frame_regular): Update.
9203 (mn10300_init_extra_frame_info): Update.
9204 * mips-tdep.c (mips_init_frame_pc_first): Update.
9205 (mips_frame_chain): Update.
9206 (mips_pop_frame): Update.
9207 * mcore-tdep.c (mcore_frame_chain): Update.
9208 (mcore_pop_frame): Update.
9209 (mcore_init_extra_frame_info): Update.
9210 * arch-utils.c (init_frame_pc_default): Update.
9211 * m68k-tdep.c (isi_frame_num_args): Update.
9212 (delta68_frame_num_args): Update.
9213 (news_frame_num_args): Update.
9214 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9215 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9216 (alpha_frame_chain): Update.
9217 (alpha_pop_frame): Update.
9218 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9219 (hppa_init_extra_frame_info): Update.
9220 (hppa_frame_chain): Update.
9221 (hppa_frame_chain_valid): Update.
9222 * cris-tdep.c (cris_init_extra_frame_info): Update.
9223 * avr-tdep.c (avr_init_extra_frame_info): Update.
9224 * arm-tdep.c (arm_frame_chain_valid): Update.
9225 (arm_init_extra_frame_info): Update.
9226 (arm_pop_frame): Update.
9227 * frame.c (frame_pc_unwind): Update.
9228 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9229 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9230 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9231 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9232 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9233 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9235 2003-03-10 Andrew Cagney <cagney@redhat.com>
9237 * gdbarch.sh (gdbarch_unwind_pc): New method.
9238 * gdbarch.h, gdbarch.c: Regenerate.
9239 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9240 but use read_pc and FRAME_SAVED_PC as fall backs.
9241 (frame_saved_regs_pc_unwind): Delete function.
9242 (trad_frame_unwinder): Update.
9243 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9244 (struct frame_unwind): Update.
9245 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9246 (dummy_frame_unwind): Update.
9247 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9248 (sentinel_frame_unwinder): Update.
9249 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9250 (d10v_frame_unwind): Update.
9251 (d10v_unwind_pc): New function.
9252 (d10v_gdbarch_init): Set unwind_pc.
9254 2003-03-10 Andrew Cagney <cagney@redhat.com>
9256 * gdbarch.h: Re-generate.
9258 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9260 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9263 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9265 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9267 2003-03-08 Andrew Cagney <cagney@redhat.com>
9269 * cli-out.c: Update copyright.
9270 (cli_out_data): Define typedef. Use instead of ui_out_data.
9272 2003-03-08 Andrew Cagney <cagney@redhat.com>
9274 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9277 2003-03-07 Andrew Cagney <cagney@redhat.com>
9279 * gdbarch.sh: Don't generate two macro definitions when an
9280 undefined macro taking no arguments.
9281 * gdbarch.h: Regenerate.
9283 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9285 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9286 (x86_64_unwind_dummy_id): New functions.
9287 (x86_64_init_abi): Register these two new functions.
9289 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9291 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9292 (x86_64_skip_prologue): Move prologue detection to
9294 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9296 2003-03-05 Andrew Cagney <cagney@redhat.com>
9298 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9299 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9300 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9301 to use unwind_dummy_id when a dummy frame.
9302 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9304 * gdbarch.h, gdbarch.c: Regneerate.
9306 2003-03-05 Andrew Cagney <cagney@redhat.com>
9308 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9309 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9310 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9313 2003-03-05 Andrew Cagney <cagney@redhat.com>
9315 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9316 (struct d10v_unwind_cache): Delete field "frameless". Replace
9317 "next_addr" with "sp_offset". Add "r11_offset".
9318 (d10v_frame_unwind_cache): Update.
9319 (prologue_find_regs): Update. When "mv r11, sp", save the
9320 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9321 RN was saved in r11_offset.
9323 2003-03-05 Andrew Cagney <cagney@redhat.com>
9325 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9326 cached PC value in the next frame.
9328 2003-03-05 Andrew Cagney <cagney@redhat.com>
9330 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9331 "id_unwind_cache" with "id".
9332 (frame_id_unwind): Delete declaration.
9333 * frame.c (frame_id_unwind): Delete function.
9334 (get_prev_frame): Call the frame id unwind method directly. Store
9335 the returned next frame's ID value in NEXT_FRAME. Note that there
9336 is a problem with the wrong unwind ID being called with the wrong
9339 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9341 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9343 2003-03-05 James Ingham <jingham@apple.com>
9344 Daniel Jacobowitz <drow@mvista.com>
9346 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9347 (auto_cp_abi): New variable.
9348 (current_cp_abi, num_cp_abis): Make static.
9349 (CP_ABI_MAX): Define.
9350 (cp_abis): Turn into an array.
9351 (value_virtual_fn_field): Fix formatting.
9352 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9354 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9355 (list_cp_abis, _initialize_cp_abi): New functions.
9356 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9357 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9358 switch_to_cp_abi. Update prototype for register_cp_abi.
9359 * Makefile.in (cp-abi.o): Update dependencies.
9360 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9361 instead of switch_to_cp_abi.
9362 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9364 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9366 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9368 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9370 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9371 * dwarf2loc.c: Include "regcache.h".
9372 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9374 * Makefile.in (dwarf2loc.o): Update dependencies.
9376 2003-03-04 Theodore A. Roth <troth@openavr.org>
9378 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9379 number of io registers reported by remote target is not a multiple of
9382 2003-03-04 David Carlton <carlton@math.stanford.edu>
9384 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9385 (lookup_symbol_aux_psymtabs): Update call to
9386 lookup_partial_symbol.
9387 (lookup_transparent_type, find_main_psymtab)
9388 (make_symbol_overload_list): Ditto.
9390 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9392 * MAINTAINERS (Write after approval): Update my email address.
9394 2003-03-03 Andrew Cagney <cagney@redhat.com>
9396 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9397 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9398 predicate. Replace MAX_REGISTER_RAW_SIZE.
9399 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9400 MAX_REGISTER_VIRTUAL_SIZE.
9401 * regcache.c (legacy_max_register_raw_size): New function.
9402 (legacy_max_register_virtual_size): New function.
9403 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9404 (MAX_REGISTER_RAW_SIZE): Define.
9405 (legacy_max_register_raw_size): Declare.
9406 (legacy_max_register_virtual_size): Declare.
9407 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9408 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9409 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9410 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9411 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9412 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9413 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9414 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9415 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9416 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9417 * vax-tdep.c (vax_gdbarch_init): Update.
9418 * v850-tdep.c (v850_gdbarch_init): Update.
9419 * sparc-tdep.c (sparc_gdbarch_init): Update.
9420 * sh-tdep.c (sh_gdbarch_init): Update.
9421 * s390-tdep.c (s390_gdbarch_init): Update.
9422 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9423 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9424 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9425 * mips-tdep.c (mips_gdbarch_init): Update.
9426 * mcore-tdep.c (mcore_gdbarch_init): Update.
9427 * m68k-tdep.c (m68k_gdbarch_init): Update.
9428 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9429 * ia64-tdep.c (ia64_gdbarch_init): Update.
9430 * i386-tdep.c (i386_gdbarch_init): Update.
9431 * hppa-tdep.c (hppa_gdbarch_init): Update.
9432 * h8300-tdep.c (h8300_gdbarch_init): Update.
9433 * frv-tdep.c (frv_gdbarch_init): Update.
9434 * cris-tdep.c (cris_gdbarch_init): Update.
9435 * avr-tdep.c (avr_gdbarch_init): Update.
9436 * arm-tdep.c (arm_gdbarch_init): Update.
9437 * alpha-tdep.c (alpha_gdbarch_init): Update.
9438 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9439 max_register_raw_size or max_register_virtual_size.
9441 2003-03-03 David Carlton <carlton@math.stanford.edu>
9443 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9444 SYMBOL_MATCHES_NAME, add comment.
9445 (SYMBOL_MATCHES_NATURAL_NAME): New.
9446 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9447 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9448 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9449 * symtab.c (lookup_partial_symbol): Use
9450 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9452 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9453 SYMBOL_MATCHES_NAME.
9456 2003-03-03 David Carlton <carlton@math.stanford.edu>
9458 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9459 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9460 by regexp matching against SYMBOL_NATURAL_NAME.
9462 2003-03-03 David Carlton <carlton@math.stanford.edu>
9464 * linespec.c (find_method): Extract code into collect_methods.
9465 (collect_methods): New.
9467 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9469 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9472 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9473 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9475 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9477 * arch-utils.c (generic_register_byte): Fix to use the loop index
9478 and not regnum when summing the size of all registers up to regnum.
9480 2003-03-01 Andrew Cagney <cagney@redhat.com>
9482 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9483 FRAME_INIT_SAVED_REGS.
9484 * gdbarch.h, gdbarch.c: Regenerate.
9485 * stack.c (frame_info): Update.
9486 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9487 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9488 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9489 * ns32k-tdep.c (ns32k_pop_frame): Update.
9490 * mips-tdep.c (mips_pop_frame): Update.
9491 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9492 * ia64-tdep.c (ia64_frame_chain): Update.
9493 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9494 (ia64_frameless_function_invocation): Update.
9495 (ia64_init_extra_frame_info): Update.
9496 (ia64_pop_frame_regular): Update.
9497 * frame.h (struct frame_info): Update comment.
9498 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9499 * frame.c (frame_saved_regs_register_unwind): Update.
9500 (frame_saved_regs_register_unwind): Update.
9501 (deprecated_generic_get_saved_register): Update.
9502 * cris-tdep.c: Update comment.
9503 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9505 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9506 * x86-64-tdep.c (x86_64_init_abi): Update.
9507 * vax-tdep.c (vax_gdbarch_init): Update.
9508 * v850-tdep.c (v850_gdbarch_init): Update.
9509 * sparc-tdep.c (sparc_gdbarch_init): Update.
9510 * sh-tdep.c (sh_gdbarch_init): Update.
9511 * s390-tdep.c (s390_gdbarch_init): Update.
9512 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9513 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9514 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9515 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9516 * mips-tdep.c (mips_gdbarch_init): Update.
9517 * mcore-tdep.c (mcore_gdbarch_init): Update.
9518 * m68k-tdep.c (m68k_gdbarch_init): Update.
9519 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9520 * ia64-tdep.c (ia64_gdbarch_init): Update.
9521 * i386-tdep.c (i386_gdbarch_init): Update.
9522 * frv-tdep.c (frv_gdbarch_init): Update.
9523 * avr-tdep.c (avr_gdbarch_init): Update.
9524 * arm-tdep.c (arm_gdbarch_init): Update.
9525 * alpha-tdep.c (alpha_gdbarch_init): Update.
9527 2003-03-01 Andrew Cagney <cagney@redhat.com>
9529 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9530 option enum and switch. When no windows, set the interpreter to
9533 2003-03-01 Andrew Cagney <cagney@redhat.com>
9535 * main.c (captured_main): Replace magic option characters with an
9538 2003-03-01 Andrew Cagney <cagney@redhat.com>
9540 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9541 INIT_EXTRA_FRAME_INFO.
9542 * gdbarch.h, gdbarch.c: Regenerate.
9543 * arm-tdep.c: Update comments.
9544 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9545 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9546 * frame.h, avr-tdep.c: Ditto.
9547 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9548 (create_new_frame, legacy_get_prev_frame): Ditto.
9549 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9550 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9551 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9552 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9553 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9554 * v850-tdep.c (v850_gdbarch_init): Ditto.
9555 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9556 * sh-tdep.c (sh_gdbarch_init): Ditto.
9557 * s390-tdep.c (s390_gdbarch_init): Ditto.
9558 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9559 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9560 * mips-tdep.c (mips_gdbarch_init): Ditto.
9561 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9562 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9563 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9564 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9565 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9566 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9567 * frv-tdep.c (frv_gdbarch_init): Ditto.
9568 * cris-tdep.c (cris_gdbarch_init): Ditto.
9569 * avr-tdep.c (avr_gdbarch_init): Ditto.
9570 * arm-tdep.c (arm_gdbarch_init): Ditto.
9571 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9572 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9574 2003-03-01 Andrew Cagney <cagney@redhat.com>
9576 * gdbarch.sh (register_type): New function with predicate.
9577 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9578 * gdbarch.h, gdbarch.c: Re-generate.
9579 * arch-utils.c (generic_register_byte): Use generic_register_size.
9580 (generic_register_size): When available, use
9581 gdbarch_register_type.
9582 * regcache.c (init_regcache_descr): When available, initialize the
9583 register type array using gdbarch_register_type. If the
9584 architecture supplies gdbarch_register_type, do not use the legacy
9586 * d10v-tdep.c (d10v_register_type): Replace
9587 d10v_register_virtual_type.
9588 (d10v_gdbarch_init): Set register_type instead of
9589 register_virtual_type.
9591 2003-03-01 Andrew Cagney <cagney@redhat.com>
9593 * Makefile.in (ax-gdb.o): Update dependencies.
9594 * ax-gdb.c: Include "regcache.h".
9595 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9596 * findvar.c (value_of_register): Ditto.
9597 * infcmd.c (default_print_registers_info): Ditto.
9599 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9601 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9602 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9604 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9606 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9609 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9611 * Makefile.in (dwarf2loc.o): Update dependencies.
9612 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9613 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9614 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9615 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9616 (locexpr_tracepoint_var_ref): New function.
9617 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9619 2003-02-28 Andrew Cagney <cagney@redhat.com>
9621 * regcache.c (register_size): New function.
9622 * regcache.h (register_size): Declare
9623 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9624 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9626 2003-02-28 David Carlton <carlton@math.stanford.edu>
9628 * linespec.c (decode_compound): Extract code into find_method.
9631 2003-02-28 J. Brobecker <brobecker@gnat.com>
9633 * Makefile.in: Add rules to build and link in observer.o.
9635 2003-02-27 J. Brobecker <brobecker@gnat.com>
9637 * observer.c: Minor comments edits.
9639 2003-02-27 J. Brobecker <brobecker@gnat.com>
9641 * observer.h, observer.c: New file.
9643 2003-02-27 Andrew Cagney <cagney@redhat.com>
9645 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9647 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9649 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9650 (M6812_OP_STS_EXT): Likewise.
9651 (m6811_prologue): Use the above to recognize prologue.
9652 (m6812_prologue): Likewise.
9654 2003-02-27 David Carlton <carlton@math.stanford.edu>
9656 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9658 (compare_psymbols): Ditto.
9659 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9661 2003-02-27 Michael Snyder <msnyder@redhat.com>
9663 * f-lang.c (build_fortran_types): New function.
9664 (_initialize_f_language): Gdbarch-register built-in fortran types.
9665 * doublest.c (extract_floating): Fix warning text.
9667 2003-02-27 Andrew Cagney <cagney@redhat.com>
9669 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9670 predicate. Replaces PUSH_DUMMY_FRAME.
9671 * gdbarch.h, gdbarch.c: Regnerate.
9672 * valops.c (hand_function_call): Update. Call
9673 generic_push_dummy_frame directly.
9674 * vax-tdep.c (vax_gdbarch_init): Update.
9675 * sparc-tdep.c (sparc_gdbarch_init): Update.
9676 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9677 * m68k-tdep.c (m68k_gdbarch_init): Update.
9678 * hppa-tdep.c (hppa_gdbarch_init): Update.
9679 * alpha-tdep.c (alpha_gdbarch_init): Update.
9680 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9681 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9682 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9683 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9684 push_dummy_frame to generic_push_dummy_frame.
9685 * v850-tdep.c (v850_gdbarch_init): Ditto.
9686 * sh-tdep.c (sh_gdbarch_init): Ditto.
9687 * s390-tdep.c (s390_gdbarch_init): Ditto.
9688 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9689 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9690 * mips-tdep.c (mips_gdbarch_init): Ditto.
9691 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9692 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9693 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9694 * i386-tdep.c (i386_gdbarch_init): Ditto.
9695 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9696 * frv-tdep.c (frv_gdbarch_init): Ditto.
9697 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9698 * cris-tdep.c (cris_gdbarch_init): Ditto.
9699 * avr-tdep.c (avr_gdbarch_init): Ditto.
9700 * arm-tdep.c (arm_gdbarch_init): Ditto.
9702 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9704 * mips-tdep.c (show_mips_abi): New function.
9705 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9706 command ``show mips abi''.
9708 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9710 From Elena Zannoni <ezannoni@redhat.com>
9711 * dbxread.c (process_one_symbol): Only record line 0 if one or
9712 more sline entries have been seen for the function.
9714 2003-02-26 Michael Chastain <mec@shout.net>
9716 * configure: Regenerate with autoconf 000227.
9718 2003-02-26 Michael Chastain <mec@shout.net>
9721 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9722 for old libc5/glibc.
9723 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9725 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9727 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9728 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9730 2003-02-26 Michael Chastain <mec@shout.net>
9732 * configure.in: New variable HAVE_UINTPTR_T.
9733 * configure, config.in: Regenerated.
9735 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9738 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9740 2003-02-25 Andrew Cagney <cagney@redhat.com>
9742 * frame.c (get_prev_frame): Add comment on check for
9743 inside_entry_func. Only check for inside_entry_file when not a
9744 dummy and not a sentinel. Check that the new frame is not inner
9747 2003-02-25 Andrew Cagney <cagney@redhat.com>
9749 * frame.c (frame_debug): New variable.
9750 (_initialize_frame): Add "set/show debug frame" command.
9751 (get_prev_frame): When frame_debug, print reason why unwind
9754 2003-02-25 Michael Chastain <mec@shout.net>
9756 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9757 to avoid uintptr_t definition problems.
9759 2003-02-25 David Carlton <carlton@math.stanford.edu>
9761 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9762 (SYMBOL_LINKAGE_NAME): Ditto.
9763 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9764 SYMBOL_LINKAGE_NAME.
9765 (struct general_symbol_info): Expand comment.
9766 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9767 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9768 (SYMBOL_MATCHES_REGEXP): Ditto.
9769 * symtab.c (symbol_natural_name): New function.
9770 * objfiles.h: Replace all uses of SYMBOL_NAME by
9771 DEPRECATED_SYMBOL_NAME.
9772 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9773 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9774 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9775 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9776 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9777 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9778 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9779 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9780 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9781 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9783 * ada-exp.y: Update copyright.
9784 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9785 * cp-valprint.c: Ditto.
9787 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9789 * infptrace.c (detach): Do not flag error if ptrace detach fails
9790 and errno is set to ESRCH.
9792 2003-02-24 Andrew Cagney <cagney@redhat.com>
9794 * infptrace.c (udot_info): Change type of udot_off to long. Use
9795 paddr when printing udot_off's value.
9797 2003-02-24 David Carlton <carlton@math.stanford.edu>
9799 * symtab.c (make_symbol_overload_list): Only read in partial
9800 symtabs containing a matching partial symbol.
9802 2003-02-24 David Carlton <carlton@math.stanford.edu>
9804 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9805 do the comparison, not strcmp.
9806 * symfile.c (compare_psymbols): Ditto.
9807 * defs.h: Declare strcmp_iw_ordered.
9808 * utils.c (strcmp_iw_ordered): New function.
9810 2003-02-24 Jim Blandy <jimb@redhat.com>
9812 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9813 support, shared libs): Remove my name from here, to better reflect
9816 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9818 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9819 (target_ops): Add to_have_continuable_watchpoint.
9820 * target.c (update_current_target): Add INHERIT line for
9821 to_have_continuable_watchpoint.
9822 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9823 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9824 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9825 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9827 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9829 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9832 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9834 * solib.c (solib_open): Call target defined search function after
9835 failing with solib-search-path.
9836 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9837 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9839 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9841 * MAINTAINERS: Add myself to Write After section.
9843 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9845 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9847 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9849 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9850 (m68hc11_add_reggroups): New function.
9851 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9852 (m68hc11_gdbarch_init): Install the reggroups.
9853 (_initialize_m68hc11_tdep): Initialize them.
9855 2003-02-21 James E Wilson <wilson@tuliptree.org>
9857 * MAINTAINERS: Update my email address.
9859 2003-02-21 David Carlton <carlton@math.stanford.edu>
9861 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9863 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9865 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9866 * symtab.h: Add opaque declarations of struct axs_value and
9868 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9869 (struct location_funcs): New type.
9870 (struct symbol): Add "loc" to aux_value.
9871 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9872 * dwarf2read.c: Include "dwarf2expr.h".
9873 (dwarf2_symbol_mark_computed): New function.
9874 (read_func_scope): Use it.
9875 (var_decode_location): New function.
9876 (new_symbol): Use it.
9877 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9879 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9880 (dwarf2expr_h, dwarf2loc_h): New variables.
9881 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9882 (dwarf2expr.o, dwarf2loc.o): New rules.
9883 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9884 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9886 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9887 * m2-exp.y (yylex): Likewise.
9888 * printcmd.c (address_info, print_frame_args): Likewise.
9889 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9890 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9891 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9892 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9893 * symtab.c (lookup_block_symbol): Likewise.
9895 2003-02-20 Adam Fedor <fedor@gnu.org>
9897 * symtab.h: Remove objc_specific struct
9898 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9899 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9900 Have language_objc use cplus_specific struct.
9902 2003-02-20 Tom Tromey <tromey@redhat.com>
9904 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9905 TYPE_NAME, when printing a String value. PR java/1075.
9907 2003-02-20 Adam Fedor <fedor@gnu.org>
9909 * objc-lang.h (find_methods): Remove declaration.
9910 * objc-lang.c (find_methods): Make static.
9912 2003-02-20 Christopher Faylor <cgf@redhat.com>
9914 * win32-nat.c (get_image_name): Check return value from
9916 (child_xfer_memory): Ditto.
9918 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9920 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9921 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9922 '${exec_prefix}' (in addition to the expansion thereof) as
9924 * configure: Rebuilt.
9926 2003-02-20 David Carlton <carlton@math.stanford.edu>
9928 * symtab.c (search_symbols): Revert the search_symbols part of my
9929 2002-12-23 patch. Add comment.
9931 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9933 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9934 * dbxread.c (elfstab_build_psymtabs): Don't call
9935 install_minimal_symbols.
9936 (stabsect_build_psymtabs): Likewise.
9937 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9939 * somread.c (som_symfile_read): Call install_minimal_symbols
9940 and do_cleanups earlier.
9941 * nlmread.c (nlm_symfile_read): Likewise.
9942 * mdebugread.c (elfmdebug_build_psymtabs): Call
9943 install_minimal_symbols and make appropriate cleanups.
9945 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9947 * solib.c (reload_shared_libraries): New function.
9948 (_initialize_solib): Add callbacks for ``set solib-search-path''
9949 and ``set solib-absolute-prefix''.
9951 2003-02-20 David Carlton <carlton@math.stanford.edu>
9953 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9955 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9956 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9957 * ada-typeprint.c (ada_typedef_print): Ditto.
9958 * ax-gdb.c (gen_var_ref): Ditto.
9959 * breakpoint.c (print_one_breakpoint): Ditto.
9960 * buildsym.c (finish_block): Ditto.
9961 * c-valprint.c (c_val_print): Ditto.
9962 * expprint.c (print_subexp): Ditto.
9963 * findvar.c (locate_var_value): Ditto.
9964 * infcmd.c (jump_command): Ditto.
9965 * linespec.c (decode_line_2, decode_compound): Ditto.
9966 * maint.c (maintenance_translate_address): Ditto.
9967 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9968 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9970 * p-valprint.c (pascal_val_print): Ditto.
9971 * stabsread.c (define_symbol): Ditto.
9972 * stack.c (print_frame, frame_info, print_block_frame_locals)
9973 (print_frame_arg_vars, return_command): Ditto.
9974 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9975 * symmisc.c (print_symbol): Ditto.
9976 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9977 (compare_search_syms, print_symbol_info, print_msymbol_info)
9978 (rbreak_command): Ditto.
9979 * tracepoint.c (tracepoints_info): Ditto.
9980 * typeprint.c (typedef_print): Ditto.
9981 * valops.c (value_of_variable, hand_function_call): Ditto.
9982 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9983 * ada-typeprint.c: Update Copyright.
9984 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9985 * tracepoint.c, cli/cli-cmds.c: Ditto.
9987 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9989 * frame.c (generic_unwind_get_saved_register): Make non-static.
9990 * frame.h (generic_unwind_get_saved_register): Declare.
9991 * mips-tdep.c (read_next_frame_reg): Fetch register from
9992 current regcache when frame is NULL.
9993 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9995 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9996 instead of frame_register_unwind().
9998 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10000 * remote-sim.c (gdbsim_insert_breakpoint)
10001 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10004 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10006 * remote.c (_initialize_remote): Add commands "set/show remote
10007 hardware-watchpoint-limit" and "set/show remote
10008 hardware-breakpoint-limit".
10009 (remote_hw_watchpoint_limit): Initialize to -1.
10010 (remote_hw_breakpoint_limit): Ditto.
10011 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10013 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10015 * coff-pe-read.c: New file - support reading of minimal symbols from a
10016 portable executable using the export table.
10017 * coff-pe-read.h: New file.
10018 * coffread.c: Include coff-pe-read.h.
10019 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10020 debugging symbols found.
10021 * Makefile.in (SFILES): Add coff-pe-read.o.
10022 (coff_pe_read_h): Define.
10023 (COMMON_OBS): Add coff-pe-read.o.
10024 (coffread.o): Add coff_pe_read_h dependency.
10025 (coff-pe-read.o): New target.
10027 2003-02-19 David Carlton <carlton@math.stanford.edu>
10029 * Makefile.in (SFILES): Add block.c.
10031 (COMMON_OBS): Add block.o.
10033 (x86-64-tdep.o): Add $(block_h).
10034 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10035 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10036 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10037 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10038 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10039 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10040 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10041 * value.h: Add opaque declaration for struct block.
10042 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10043 * ada-lang.h: Ditto.
10044 * x86-64-tdep.c: #include "block.h"
10045 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10046 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10047 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10048 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10049 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10050 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10051 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10052 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10053 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10054 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10055 * symtab.c (block_function): Ditto.
10056 (contained_in): Ditto.
10057 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10058 block.h. Add opaque declaration for struct block.
10059 * symtab.h: Move block_function and contained_in declarations to
10060 block.h. Add opaque declarations for struct block, struct
10062 (struct block): Move to block.h.
10063 (struct blockvector): Ditto.
10064 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10065 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10066 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10067 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10068 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10070 * block.c: New file.
10071 * block.h: New file.
10073 2003-02-19 Theodore A. Roth <troth@openavr.org>
10075 * avr-tdep.c (avr_extract_return_value): Remove function.
10076 (avr_store_return_value): Remove function.
10077 (avr_extract_struct_value_address): Remove function.
10078 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10080 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10082 * rs6000-tdep.c: Include "gdb_assert.h".
10083 (registers_e500): Add "acc" and "spefscr".
10084 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10085 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10086 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10088 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10090 2003-02-18 Keith Seitz <keiths@redhat.com>
10092 * Makefile.in: Add gdbtk-interps.c.
10094 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10096 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10097 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10099 2003-02-18 Andrew Cagney <cagney@redhat.com>
10101 * symtab.h (struct objfile): Add opaque declaration.
10103 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10105 From Jim Ingham <jingham@apple.com>:
10106 * dbxread.c (process_one_symbol): Use last_function_start rather
10107 than function_start_offset to find the real beginning of the
10108 current function. The latter is just the text section offset on
10109 some systems, the former is always the real function start.
10111 2003-02-17 Andrew Cagney <cagney@redhat.com>
10113 * configure.in: Revert ${target} != ${host}.
10115 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10117 * configure.in (Makefile): Use the test ${target} != ${host},
10118 instead of the absence of the "nm.h" file, to determine of the
10119 configuration non-native.
10120 * configure: Regenerate.
10122 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10124 From Brian Ford <ford@vss.fsi.com>
10126 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10127 conditionalize tui_active test.
10128 (lookup_cmd_1): Ditto.
10130 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10132 * configure.in: Add check for _etext.
10133 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10135 * config.in, configure: regenerated.
10137 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10139 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10141 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10143 * main.c (tui_version): Delete variable.
10144 (captured_main): When --tui, set interpreter_p to "tui" instead of
10145 enabling tui_version.
10146 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10148 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10149 * cli/cli-cmds.c (disassemble_command): Ditto.
10150 * defs.h (tui_version): Delete declaration.
10151 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10152 (tui-interp.o): Add rules.
10153 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10155 2003-02-14 Christopher Faylor <cgf@redhat.com>
10157 * win32-nat.c (register_loaded_dll): Correctly set address range for
10160 2003-02-12 Jason Molenda (jmolenda@apple.com)
10162 * symmisc.c (print_objfile_statistics): Include information about
10163 the number of psymtabs and symtabs in each object file.
10165 2003-02-13 Keith R Seitz <keiths@redhat.com>
10167 * main.h (struct captured_main_args): Add interpreter_p.
10168 * main.c (captured_main): Initialize interpreter_p from context.
10169 * gdb.c (main): Set interpreter_p argument.
10170 * Makefile.in (gdb.o): Add dependency for interps.h.
10172 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10174 * event-top.c (cli_command_loop): Delete declaration.
10175 (_initialize_event_loop): Delete function setting event_loop_hook.
10176 * event-top.h (cli_command_loop): Declare. Update copyright.
10177 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10178 * interps.c (current_interp_command_loop): When event_loop_p, call
10181 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10183 * interps.h (interp_command_loop_ftype): Change return type to
10186 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10188 * x86-64-tdep.c (x86_64_extract_return_value)
10189 (x86_64_store_return_value): Use regcache instead of regbuf.
10190 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10191 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10193 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10195 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10196 * aclocal.m4: Regenerate.
10197 * configure: Regenerate.
10199 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10200 TCL_LD_SEARCH_FLAGS.
10202 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10204 * dwarf2cfi.c: Reindented.
10206 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10208 * interps.c (clear_interpreter_hooks): Convert function definition
10211 2003-02-07 David Carlton <carlton@math.stanford.edu>
10213 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10215 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10217 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10218 (struct type): ...to here.
10219 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10221 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10222 (replace_type): Set length on all type variants for a given type.
10224 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10226 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10228 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10230 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10232 * Makefile.in (symm-nat.o): Update dependencies.
10233 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10234 (lynx-nat.o, ia64-linux-nat.): Ditto.
10235 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10236 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10237 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10239 * Makefile.in (inflow_h): Define.
10240 (procfs.o, inflow.o, procfs.o): Update dependencies.
10241 * inftarg.c (child_stop): Delete extern declaration of
10242 inferior_process_group. Include "inflow.h".
10243 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10244 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10245 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10246 (our_process_group, inferior_process_group): Extern declarations.
10248 * procfs.c: Include "gdb_assert.h".
10250 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10251 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10252 * jv-typeprint.c (java_type_print_base): Ditto.
10253 * typeprint.c (typedef_print): Eliminate STREQ.
10254 * cli/cli-script.c (define_command, define_command): Ditto.
10255 * main.c (captured_main): Ditto.
10256 * values.c (lookup_internalvar): Ditto.
10257 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10258 within `if' conditional.
10259 * linespec.c (decode_line_2): Ditto.
10260 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10261 (bfd_openw_with_cleanup): Ditto.
10263 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10265 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10266 legacy_extract_return_value and store_return_value to
10267 legacy_return_value.
10269 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10271 * win32-nat.c (get_relocated_section_addrs): New function. Find
10272 section load addresses for symbol handling in relocated DLLs.
10273 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10275 2003-02-05 Fred Fish <fnf@intrinsity.com>
10277 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10279 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10281 (angel_RDI_info): Ditto.
10282 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10284 (threads_continue_all_with_signals): Ditto.
10286 2003-02-05 Jim Ingham <jingham@apple.com>
10287 Keith Seitz <keiths@redhat.com>
10288 Elena Zannoni <ezannoni@redhat.com>
10289 Andrew Cagney <ac131313@redhat.com>
10291 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10292 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10293 (SUBDIR_MI_OBS): Add "mi-interp.o".
10294 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10295 (SFILES): Add "interps.c".
10296 (COMMON_OBS): Add "interps.o".
10297 (interps_h, mi_main_h): Define.
10298 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10299 (mi-main.o, main.o, event-top.o): Update dependencies.
10300 * cli/cli-interp.c: New file.
10301 * interps.h, interps.c: New files.
10302 * top.c: (gdb_init): Don't install the default interpreter, handed
10304 * main.c: Include "interps.h".
10305 (interpreter_p): Note that it should malloc'ed.
10306 (captured_command_loop): Call current_interp_command_loop.
10307 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10308 xfree and xstrdup when updating interpreter_p. Install the
10309 default interpreter. Add hack to stop mi1's copyright notice
10311 * event-top.h (gdb_setup_readline): Declare.
10312 (gdb_disable_readline): Declare.
10313 * event-top.c: Include "interps.h".
10314 (display_gdb_prompt): Call current_interp_display_prompt_p.
10315 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10316 gdb_stdlog, and gdb_stdtarg.
10317 (_initialize_event_loop): Don't call gdb_setup_readline.
10318 * cli-out.c (cli_out_set_stream): New function.
10319 * cli-out.h (cli_out_set_stream): Declare.
10321 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10323 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10324 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10325 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10326 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10327 config/i386/i386v42mp.mt: Removed.
10329 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10331 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10334 2003-02-05 Michael Chastain <mec@shout.net>
10336 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10337 2.12.1 and earlier versions.
10339 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10341 Remove orphaned hosts, targets and files.
10342 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10343 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10344 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10345 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10346 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10347 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10348 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10349 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10350 * config/sparc/tm-sp64sim.h: Delete.
10351 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10353 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10354 mips*-dec-mach3* targets.
10356 2003-02-04 Michael Chastain <mec@shout.net>
10358 * NEWS: Fix typo: sepcifying -> specifying.
10360 2003-02-04 Michael Chastain <mec@shout.net>
10362 * dwarfread.c: Add documentation on the state of dwarf-1,
10363 looking towards obsoletion.
10365 2003-02-03 Michael Chastain <mec@shout.net>
10367 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10368 gdb/testsuite/gdb.c++/pr-1023.exp.
10370 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10372 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10373 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10375 * utils.c (init_page_info): Delete reference to MPW in comments.
10376 * main.c (captured_main): Delete #ifdef MPW.
10378 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10380 * NEWS: Note that the m32r-*-elf* is obsolete.
10381 * monitor.c (monitor_expect): Obsolete reference to m32r.
10382 * configure.tgt: Mark m32r-*-elf* as obsolete.
10383 * MAINTAINERS: Mark m32k as obsolete.
10384 * m32r-rom.c: Obsolete file.
10385 * config/m32r/m32r.mt: Obsolete file.
10386 * config/m32r/tm-m32r.h: Obsolete file.
10387 * m32r-stub.c: Obsolete file.
10388 * m32r-tdep.c: Obsolete file.
10390 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10392 * NEWS: Mention that the z8k-zilog-none is obsolete.
10393 * MAINTAINERS: Mark z8k as obsolete.
10394 * configure.tgt: Obsolete the z8k-*-coff* target.
10395 * config/z8k/z8k.mt: Obsolete file.
10396 * config/z8k/tm-z8k.h: Obsolete file.
10397 * z8k-tdep.c: Obsolete file.
10399 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10401 * NEWS: Mention that the mn10200-elf is obsolete.
10402 * configure.tgt: Obsolete mn10200-*-* target.
10403 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10404 mention that the mn10200 is obsolete.
10405 * breakpoint.h: Ditto.
10406 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10407 * config/mn10200/mn10200.mt: Obsolete file.
10408 * config/mn10200/tm-mn10200.h: Obsolete file.
10409 * mn10200-tdep.c: Obsolete file.
10411 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10413 * MAINTAINERS: Mark h8500 as obsolete.
10414 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10415 * findvar.c (value_from_register): Ditto.
10416 * h8500-tdep.c: Mark file as obsolete.
10417 * config/h8500/h8500.mt: Ditto.
10418 * config/h8500/tm-h8500.h: Ditto.
10419 * NEWS: Mention that h8500 is obsolete.
10421 2003-02-04 David Carlton <carlton@math.stanford.edu>
10423 * objfiles.c (allocate_objfile): Always set name. Add comment at
10425 * jv-lang.c (get_dynamics_objfile): Add comment.
10427 2003-02-04 David Carlton <carlton@math.stanford.edu>
10429 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10430 * printcmd.c (build_address_symbolic): Replace uses of
10431 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10432 SYMBOL_NAME, and asm_demangle.
10435 2003-02-04 David Carlton <carlton@math.stanford.edu>
10437 * linespec.c (decode_compound): Extract code into
10439 (lookup_prefix_sym): New function.
10441 2003-02-04 David Carlton <carlton@math.stanford.edu>
10443 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10444 FLOAT_COERCION_BADNESS.
10445 * gdbtypes.c (rank_one_type): Replace all uses of
10446 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10448 2003-02-04 Jim Blandy <jimb@redhat.com>
10450 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10451 section, let dwarf_macinfo_section point to it, not
10454 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10456 Pointed out by Anton Blanchard <anton@samba.org>.
10457 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10458 (ppc_linux_at_sigtramp_return_path): Use it.
10460 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10462 * defs.h (streq): Add prototype.
10463 * utils.c (streq): New function.
10465 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10466 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10467 * mdebugread.c (new_symbol): Likewise.
10468 * stabsread.c (define_symbol): Likewise.
10469 * coffread.c (process_coff_symbol): Likewise.
10470 * dwarfread.c (new_symbol): Likewise.
10472 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10473 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10475 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10476 SYMBOL_INIT_DEMANGLED_NAME.
10477 * objfiles.c: Include "hashtab.h".
10478 (allocate_objfile): Call htab_set_functions_ex for the
10479 demangled_names_hash.
10480 (free_objfile): Call htab_delete for the demangled_names_hash.
10481 * objfiles.h (struct htab): Add declaration.
10482 (struct objfile): Add demangled_names_hash.
10483 * symfile.c: Include "hashtab.h".
10484 (reread_symbols): Call htab_delete for the demangled_names_hash.
10485 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10486 SYMBOL_NAME in the bcache.
10487 * symtab.c: Include "hashtab.h". Update comments.
10488 (create_demangled_names_hash, symbol_set_names): New functions.
10489 (symbol_find_demangled_name): New function, broken out from
10490 symbol_init_demangled_names.
10491 (symbol_init_demangled_names): Use it.
10492 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10493 (SYMBOL_SET_NAMES): New macro.
10494 (symbol_set_names): Add prototype.
10496 2003-02-03 Jim Blandy <jimb@redhat.com>
10498 Use a single, consistent representation for an empty minimal
10499 symbol table in an objfile.
10500 * objfiles.c (terminate_minimal_symbol_table): New function.
10501 (allocate_objfile): Call it.
10502 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10503 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10505 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10506 objfile has minimal symbols, compare minimal_symbol_count to zero,
10507 instead of comparing msymbols with NULL.
10508 * objfiles.c (have_minimal_symbols): Same.
10509 * solib-sunos.c (solib_add_common_symbols): Call
10510 terminate_minimal_symbol_table.
10511 * symfile.c (reread_symbols): Same.
10513 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10515 * s390-tdep.c (s390_address_class_type_flags)
10516 (s390_address_class_type_flags_to_name)
10517 (s390_address_class_name_to_type_flags): New functions.
10518 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10519 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10521 2003-02-03 Michael Snyder <msnyder@redhat.com>
10523 * arm-tdep.c: Fix spell-o in comment.
10525 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10527 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10528 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10529 error messages to contain BFD filename.
10531 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10533 Fix PR gdb/742 gdb/743 gdb/877
10534 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10535 (do_mixed_source_and_assembly): Use
10536 make_cleanup_ui_out_tuple_begin_end and
10537 make_cleanup_ui_out_tuple_begin_end.
10538 (do_mixed_source_and_assembly): Ditto.
10539 * thread.c (do_captured_list_thread_ids): Ditto.
10540 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10541 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10542 ui_out_tuple_end): Delete prototypes.
10543 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10544 ui_out_list_end, ui_out_tuple_end): Delete.
10546 From Kevin Buettner <kevinb@redhat.com>:
10547 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10548 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10549 (do_cleanup_table_end): New functions.
10550 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10551 Use cleanups to invoke_ui_out_tuple_end().
10552 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10553 * cli/cli-setshow.c (cmd_show_list): Use
10554 make_cleanup_ui_out_tuple_begin_end.
10556 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10558 * frame.c (frame_unwind_register): New function.
10559 (frame_unwind_unsigned_register): Use.
10560 (frame_unwind_signed_register): Use.
10561 (frame_read_register): New function.
10562 * frame.h (frame_unwind_register): Declare.
10563 (frame_read_register): Declare.
10565 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10566 and frame_unwind_register instead of read_memory, write_register
10567 and deprecated_write_register_bytes.
10569 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10571 * frame.h: Note that namelen can be negative.
10572 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10575 * NEWS: Mention that the d10v's `regs' command is deprecated.
10576 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10577 (d10v_print_registers_info): New function.
10578 (show_regs): Call d10v_print_registers_info.
10579 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10581 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10583 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10584 lost in the previous patch.
10586 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10588 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10589 * stack.c (print_frame_info_base): Output complete FRAME tuple
10590 for synthesized frames.
10592 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10594 * mips-nat.c (zerobuf): Delete.
10595 (fetch_inferior_registers): Alloc local zerobuf.
10596 (fetch_core_registers): Alloc local zerobuf.
10597 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10598 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10599 * thread-db.c (thread_db_store_registers): Ditto.
10600 * sh-tdep.c (sh_do_register): Ditto.
10601 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10602 * remote-sim.c (gdbsim_store_register): Ditto.
10603 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10604 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10605 * monitor.c (monitor_supply_register): Ditto.
10606 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10607 * mips-nat.c (fetch_inferior_registers): Ditto.
10608 * m68klinux-nat.c (fetch_register): Ditto.
10609 * lynx-nat.c (fetch_inferior_registers): Ditto.
10610 (fetch_inferior_registers): Ditto.
10611 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10612 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10613 (hpux_thread_store_registers): Ditto.
10614 * hppah-nat.c (fetch_register): Ditto.
10615 * hppab-nat.c (fetch_register): Ditto.
10616 * hppa-tdep.c (pa_register_look_aside): Ditto.
10617 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10618 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10620 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10622 * gdbarch.sh: Explictly specify all method levels. When a
10623 variable with an empty level, provide a non-multi-arch default.
10624 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10625 * gdbarch.h: Re-generate.
10626 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10627 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10629 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10631 * defs.h (host_pointer_to_address): Delete declaration.
10632 (address_to_host_pointer): Delete declaration.
10633 * utils.c (host_pointer_to_address): Delete function.
10634 (address_to_host_pointer): Delete function.
10635 * procfs.c (procfs_address_to_host_pointer): New function.
10636 * procfs.c (proc_set_watchpoint): Use.
10637 (procfs_can_use_hw_breakpoint): Update comments.
10638 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10639 (som_solib_add): Use.
10640 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10641 * hppa-tdep.c (unwind_command): Use.
10643 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10645 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10648 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10649 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10650 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10651 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10652 (define_symbol): Update.
10653 * symfile.c (generic_load): Remove references to nindy.
10654 * symtab.c: Remove references to nindy.
10656 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10658 * infcmd.c (print_float_info): Delete code conditional on
10660 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10661 * config/m68k/nm-apollo68b.h: Ditto.
10662 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10663 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10664 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10666 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10668 * config/i386/tm-i386os9k.h: Removed.
10670 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10671 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10672 they're identical to i[3456]86-*-sysv* now.
10673 * config/i386/i386v32.mh: Removed.
10674 * config/i386/xm-i386v32.h: Removed.
10675 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10677 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10679 * config/i386/i386dgux.mh: Removed.
10680 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10682 * configure.in: Fix typo.
10683 * configure: Regenerated.
10685 2003-01-31 David Carlton <carlton@math.stanford.edu>
10687 * dwarf2read.c (dwarf2_locate_sections): Set
10688 dwarf_ranges_section.
10690 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10692 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10693 * utils.c: Update comments documenting legitimate uses of PTR.
10695 * utils.c: Re-indent.
10697 * config/djgpp/fnchange.lst: Delete nindy files.
10698 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10699 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10700 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10701 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10702 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10703 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10704 * Makefile.in (init.c): Remove nindy references.
10705 (saber_gdb): Delete rule.
10706 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10707 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10709 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10710 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10711 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10712 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10713 nindy-share/stop.h.
10714 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10715 * saber.suppress: Delete file.
10717 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10719 * dbxread.c (stabs_data): New static variable.
10720 (fill_symbuf): Support an in-memory buffer for stabs data.
10721 (stabs_seek): New function.
10722 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10723 (read_ofile_symtab): Use stabs_seek.
10724 (elfstab_build_psymtabs): Take an asection* instead of
10725 an offset and size. Relocate the stabs data if necessary.
10726 Save the section* for dbx_psymtab_to_symtab.
10727 * dwarf2read.c: Add section variables for each debug section.
10728 (dwarf2_locate_sections): Fill them in.
10729 (dwarf2_read_section): Take an asection* argument.
10730 Relocate the section contents if necessary.
10731 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10732 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10733 it to dwarf2_read_section.
10734 (dwarf2_build_frame_info): Update callers.
10735 * elfread.c (elf_symfile_read): Update call to
10736 elfstab_build_psymtabs.
10737 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10738 (DBX_STAB_SECTION): New macro.
10739 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10740 * symfile.c (symfile_dummy_outputs): New function.
10741 (symfile_relocate_debug_section): New function.
10742 * symfile.h (symfile_relocate_debug_section): Add prototype.
10744 2003-01-31 Richard Henderson <rth@redhat.com>
10746 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10747 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10748 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10749 * alpha-tdep.c (alpha_register_name): Add "unique".
10750 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10751 (ALPHA_UNIQUE_REGNUM): New.
10752 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10754 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10756 * README: Remove reference to Ericsson 1800 monitor.
10757 * Makefile.in (remote-es.o): Delete rule.
10758 (ALLDEPFILES): Delete remote-es.c.
10759 * remote-es.c: Delete file.
10760 * config/m68k/es1800.mt: Delete file.
10761 * config/djgpp/fnchange.lst: Update.
10762 * configure.tgt: Delete m68*-ericsson-* target.
10764 2003-01-31 Adam Fedor <fedor@gnu.org>
10766 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10767 Remove duplicate/shadowing variable of same name.
10769 2003-01-30 Jim Blandy <jimb@redhat.com>
10771 * symfile.c (find_separate_debug_file): Assert that the objfile's
10772 directory name we compute ends with a slash, and then assume that
10773 that's so everywhere we use it.
10775 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10777 * valops.c (value_assign): Flush frame cache after stores to memory
10780 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10782 * Makefile.in (mon960-rom.o): Delete rule.
10783 * mon960-rom.c: Delete file.
10785 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10787 * d10v-tdep.c: Include "frame-unwind.h".
10788 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10790 (next_addr, uses_frame): Delete.
10791 (struct d10v_unwind_cache): Define.
10792 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10793 Use info instead of next_addr and uses_frame globals.
10794 (d10v_frame_init_saved_regs): Delete function.
10795 (d10v_init_extra_frame_info): Delete function.
10796 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10797 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10798 init_frame_pc or frame_saved_pc.
10799 (d10v_pop_frame): Delete function.
10800 (do_d10v_pop_frame): Delete function.
10801 (d10v_frame_chain): Delete function.
10802 (d10v_frame_chain_valid): Delete function.
10803 (d10v_frame_pc_unwind): New function.
10804 (d10v_frame_id_unwind): New function.
10805 (saved_regs_unwinder): New function.
10806 (d10v_frame_register_unwind): New function.
10807 (d10v_frame_pop): New function.
10808 (d10v_frame_unwind): New variable.
10809 (d10v_frame_p): New function.
10810 (d10v_frame_saved_pc): Delete function.
10811 * Makefile.in (d10v-tdep.o): Update dependencies.
10813 2003-01-30 J. Brobecker <brobecker@gnat.com>
10815 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10816 causing some regressions due to a change in the default value
10819 2003-01-29 Richard Henderson <rth@redhat.com>
10820 Elena Zannoni <ezannoni@redhat.com>
10821 Daniel Jacobowitz <drow@mvista.com>
10824 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10826 (RANGES_SECTION): New.
10827 (dwarf_ranges_buffer): New variable.
10828 (struct comp_unit_head): Add member "die".
10829 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10830 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10831 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10832 (dwarf2_locate_sections): Likewise.
10833 (dwarf2_build_psymtabs): Read .debug_ranges.
10834 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10835 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10836 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10837 Look for DW_AT_ranges and return the bounding box.
10839 2003-01-29 Brian Ford <ford@vss.fsi.com>
10841 * win32-nat.c (cygwin_pid): Removed as unused.
10842 (child_attach): Try fall back to Cygwin pid.
10844 2003-01-29 Jim Blandy <jimb@redhat.com>
10846 * objfiles.h (struct objfile): Doc fix.
10848 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10850 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10851 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10852 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10853 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10854 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10855 (FRAME_SAVED_PC): Change to a function with predicate.
10856 * gdbarch.h, gdbarch.c: Re-generate.
10858 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10860 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10862 * complaints.c (complain): Delete function.
10863 * complaints.h (struct deprecated_complaint): Delete definition.
10864 (complain): Delete declaration.
10866 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10868 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10871 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10873 * sentinel-frame.h, sentinel-frame.c: New files.
10874 * Makefile.in (frame.o): Update dependencies.
10875 (SFILES): Add sentinel-frame.c.
10876 (sentinel_frame_h): Define.
10877 (COMMON_OBS): Add sentinel-frame.o.
10878 (sentinel-frame.o): Specify dependencies.
10879 * frame.c: Include "sentinel-frame.h".
10880 (frame_register_unwind): Rewrite assuming that there is always a a
10882 (frame_register, generic_unwind_get_saved_register): Ditto.
10883 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10884 (create_sentinel_frame, unwind_to_current_frame): New functions.
10885 (get_current_frame): Rewrite using create_sentinel_frame and
10886 unwind_to_current_frame. When possible, always create a frame.
10887 (create_new_frame): Set next to the sentinel frame.
10888 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10889 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10890 ID cache when necessary.
10891 (frame_saved_regs_id_unwind): Use frame_relative_level.
10892 (deprecated_generic_get_saved_register): Use frame_relative_level,
10893 get_frame_saved_regs, get_frame_pc, get_frame_base and
10895 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10898 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10900 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10902 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10904 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10905 (maintenance_set_profile_cmd): Use error () instead of warning ().
10907 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10909 * configure.in: Check that -pg works if using --enable-profiling.
10910 Check for monstartup and _mcleanup regardless of --enable-profiling.
10911 * maint.c: Check for monstartup and _mcleanup before using them.
10912 * config.in: Regenerated.
10913 * configure: Regenerated.
10915 2003-01-24 Nick Clifton <nickc@redhat.com>
10917 * Add sh2e support:
10919 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10921 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10922 (sh2e_show_regs): New.
10923 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10924 * config/sh/tm-sh.h: Added sh2e to comments.
10926 2003-01-23 Jim Blandy <jimb@redhat.com>
10928 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10929 symbols found)" message here; we haven't checked for a separate
10930 debug info file yet, so we don't know yet.
10931 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10932 we've looked everywhere. Also, there's no need to print a special
10933 message when we're loading the separate debug info file: the one
10934 symbol_file_add prints is fine.
10936 2003-01-23 Alexander Larsson <alexl@redhat.com>
10937 Jim Blandy <jimb@redhat.com>
10939 Add support for executables whose debug info has been separated
10940 out into a separate file, leaving only a link behind.
10941 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10942 and separate_debug_objfile_backlink.
10943 (put_objfile_before): New declaration.
10944 * symfile.c: #include "filenames.h".
10945 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10946 debug info in a separate file, read that, too. Save the addrs
10947 argument, so we can use it again to read the separated debug info;
10948 syms_from_objfile modifies the table we pass it.
10949 (reread_symbols): After re-reading an objfile, call
10950 reread_separate_symbols to refresh its separate debug info
10951 objfile, if it has one.
10952 (reread_separate_symbols, find_separate_debug_file,
10953 get_debug_link_info, separate_debug_file_exists): New functions.
10954 (debug_file_directory): New global var.
10955 (_initialize_symfile): Initialize debug_file_directory, and
10956 provide the new `set debug-file-directory' command to let the user
10958 * objfiles.c (free_objfile): If this objfile has its debug info in
10959 a separate objfile, free that one too. If this is itself a
10960 separate debug info objfile, clear our parent's backlink.
10961 (put_objfile_before): New function.
10962 * utils.c (gnu_debuglink_crc32): New function.
10963 * defs.h (gnu_debuglink_crc32): New declaration.
10964 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10965 * configure.in: Handle --with-separate-debug-dir config option.
10966 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10967 * acconfig.h (DEBUGDIR): New macro.
10968 * configure, aclocal.m4, config.in: Regenerated.
10970 2003-01-22 Jim Blandy <jimb@redhat.com>
10972 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10973 like the old symbol_file_add, but taking new arguments: you can
10974 now pass in either a `struct section_addr_info' list to say where
10975 each section is loaded, or a `struct section_offsets' table. Pass
10976 these new arguments through to syms_from_objfile as appropriate.
10977 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10978 with the appropriate quiescent values for the new arguments.
10980 * symfile.c: #include "gdb_assert.h".
10981 (syms_from_objfile): Add the ability to pass in a section offset
10982 table directly, as an alternative to the section_addr_info table.
10983 Document arguments better.
10984 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10985 * symfile.h (syms_from_objfile): Update declaration.
10986 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10988 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10990 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10992 Original patch by Tom Tromey <tromey@cygnus.com> and
10993 Jason Molenda <jmolenda@apple.com>.
10994 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10995 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10996 * NEWS: Mention profiling.
10997 * configure.in (--enable-gdbtk): Fix typo.
10998 (--enable-profiling): New. Set PROFILE_CFLAGS.
10999 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11001 (profiling_state): New variable.
11002 (mcleanup_wrapper): New function.
11003 (_initialize_maint): Remove NOTYET, fix call to
11004 add_setshow_boolean_cmd for "maint set profile".
11005 * configure: Regenerated.
11007 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11009 * Makefile.in (install-gdbtk): Install PNG images too.
11011 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11013 * exec.c (text_start): Delete global variable.
11014 (exec_file_attach): Make text_start local to the function.
11015 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11016 * valops.c (hand_function_call): Delete code that handles
11017 BEFORE_TEXT_END and AFTER_TEXT_END.
11018 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11019 of CALL_DUMMY_LOCATION.
11020 * gdbarch.c: Regenerate.
11021 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11022 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11023 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11024 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11025 (text_end): Delete extern declaration.
11027 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11029 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11030 * blockframe.c (backtrace_below_main): Move to "frame.c".
11031 (frame_chain_valid): Delete check for backtrace_below_main.
11032 (_initialize_blockframe): Delete initialization, move ``set
11033 backtrace-below-main'' command to "frame.c".
11034 (do_flush_frames_sfunc): Delete function.
11035 * frame.c: Include "command.h" and "gdbcmd.h".
11036 (frame_type_from_pc): New function.
11037 (create_new_frame): Use frame_type_from_pc.
11038 (legacy_get_prev_frame): New function.
11039 (get_prev_frame): Rewrite. When an old style frame, call
11040 legacy_get_prev_frame. Otherwize, unwind the PC first.
11041 (_initialize_frame): Add ``set backtrace-below-main'' command.
11042 * Makefile.in (frame.o): Update dependencies.
11044 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11046 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11047 DEPRECATED_REGISTERS_INFO.
11049 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11051 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11052 Maintainers'. Update `Various Maintainers'.
11054 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11056 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11057 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11058 Suppress actual parameters when `-'.
11059 * gdbarch.h, gdbarch.c: Regenerate.
11061 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11063 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11064 code handling dummy frames.
11066 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11068 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11069 (struct frame_unwind): Add field pop.
11070 * frame.h (frame_pop): Declare.
11071 * frame.c (frame_saved_regs_pop): New function.
11072 (trad_frame_unwinder): Add frame_saved_regs_pop.
11073 (frame_pop): New function.
11074 * dummy-frame.c (dummy_frame_pop): New function.
11075 (discard_innermost_dummy): New function.
11076 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11077 (dummy_frame_unwind): Add dummy_frame_pop.
11078 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11079 * valops.c (hand_function_call): Ditto.
11080 * stack.c (return_command): Ditto.
11082 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11084 * cris-tdep.c: Fix function declaration indentation.
11085 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11086 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11087 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11088 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11089 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11090 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11092 2003-01-18 Michael Chastain <mec@shout.net>
11094 * README (Unpacking and Installation -- quick overview):
11095 Warn against ".../gdb-5.3/gdb/configure".
11097 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11099 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11100 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11101 (struct frame_unwind): Declare opaque.
11102 (dummy_frame_p): Declare function.
11103 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11104 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11105 * dummy-frame.c: Include "frame-unwind.h".
11106 (dummy_frame_p): New function.
11107 (dummy_frame_unwind): New variable.
11108 * frame.c: Include "frame-unwind.h".
11109 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11110 to use the new unwind field.
11111 (set_unwind_by_pc): Delete function.
11112 (create_new_frame, get_prev_frame): Set unwind field using
11113 frame_unwind_find_by_pc.
11114 (trad_frame_unwind, trad_frame_unwinder): New variables.
11115 * frame.h (trad_frame_unwind): Declare variable.
11116 (frame_id_unwind_ftype): Delete declaration.
11117 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11118 (struct frame_unwind): Declare opaque.
11119 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11120 register_unwind with a single unwind pointer.
11121 * frame-unwind.h, frame-unwind.c: New files.
11122 * Makefile.in (SFILES): Add frame-unwind.c.
11123 (frame_unwind_h): Define.
11124 (COMMON_OBS): Add frame-unwind.o.
11125 (frame-unwind.o): Specify dependencies.
11126 (frame.o, dummy-frame.o): Update dependencies.
11128 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11130 * ada-valprint.c: Eliminate PTR.
11131 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11132 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11133 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11134 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11135 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11136 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11137 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11139 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11141 * main.c (captured_main): Don't use PTR.
11142 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11143 * gdbtypes.c (lookup_primitive_typename): Ditto.
11144 (lookup_struct_elt_type): Ditto.
11145 * f-valprint.c (info_common_command): Ditto.
11146 (list_all_visible_commons): Ditto.
11147 * jv-typeprint.c (java_type_print_base): Ditto.
11149 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11150 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11151 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11152 i386-interix-nat.c and i386-interix-tdep.c. Rename
11153 m68klinux-nat.c and m68klinux-tdep.c. Rename
11154 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11155 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11156 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11157 * main.c (captured_main): Use xfree, not free.
11159 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11161 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11162 ID back using a parameter.
11163 * frame.c (frame_id_unwind): Update call.
11164 (frame_saved_regs_id_unwind): Update.
11165 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11166 * dummy-frame.h (struct frame_id): Add opaque declaration.
11167 (dummy_frame_id_unwind): Update declaration.
11169 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11171 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11173 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11175 * MAINTAINERS (Stephen P. Smith): Updated email address.
11177 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11180 * breakpoint.c (until_break_command): Add new argument. Use it to
11181 decide whether to stop only at the current frame or not.
11182 * breakpoint.h (until_break_command): Update prototype.
11183 * infcmd.c (until_command): Add new argument to until_break_command
11185 (advance_command): New function.
11186 (_initialize_infcmd): Update help string for 'until' command.
11187 Add new 'advance' command.
11189 2003-01-14 David Carlton <carlton@math.stanford.edu>
11191 * linespec.c (decode_line_1): Normalize comments.
11192 (set_flags): Ditto.
11193 (locate_first_half): Ditto.
11194 (decode_compound): Ditto.
11195 (symtab_from_filename): Ditto.
11196 (decode_all_digits): Ditto.
11197 (decode_dollar): Ditto.
11198 (find_methods): Ditto.
11199 (find_toplevel_char): Ditto.
11201 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11203 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11204 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11205 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11206 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11207 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11208 * language.c, language.h, m32r-tdep.c: Update copyright.
11209 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11210 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11211 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11212 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11213 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11214 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11216 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11218 * stabsread.h (process_later, resolve_cfront_continuation):
11220 Update copyright years.
11221 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11222 Update copyright year.
11223 * dbxread.c(struct cont_elem): Obsolete.
11224 (process_later, process_now): Obsolete functions.
11225 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11226 Update copyright year.
11227 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11228 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11229 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11230 (parse_partial_symbols): Obsolete cfront support.
11232 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11234 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11235 read_cfront_baseclasses, read_cfront_member_functions,
11236 resolve_cfront_continuation,read_cfront_static_fields,
11237 copy_cfront_struct_fields): Obsolete functions.
11238 (define_symbol, read_one_struct_field): Obsolete cfront support.
11239 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11240 Update Copyright year.
11242 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11244 * stack.c (print_frame_info, print_stack_frame_base_stub,
11245 print_stack_frame_base, show_and_print_stack_frame_stub,
11246 show_and_print_stack_frame, print_only_stack_frame_stub,
11247 print_only_stack_frame): Delete functions.
11248 (print_stack_frame_stub): Call print_frame_info instead of
11249 print_frame_info_base.
11250 (print_frame_info_base): Rename to print_frame_info.
11251 (backtrace_command_1): Call print_frame_info, instead of
11252 print_frame_info_base.
11253 (current_frame_command): Call print_stack_frame, instead of
11254 print_only_stack_frame.
11255 (frame_command): Call print_stack_frame, instead of
11256 show_and_print_stack_frame.
11257 (up_command): Ditto.
11258 (down_command): Ditto.
11259 * frame.h (print_only_stack_frame): Delete prototype.
11260 * infrun.c (normal_stop): Call print_stack_frame, instead of
11261 show_and_print_stack_frame.
11262 * thread.c (info_threads_command): Call print_stack_frame, instead
11263 of print_only_stack_frame.
11265 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11267 * README (Graphical interface to GDB): Update URL. Point at
11270 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11273 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11275 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11278 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11280 * thread-db.c (attach_thread): Prototype.
11281 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11282 thread information (ti), and valid flags (th_valid, ti_valid).
11283 (attach_thread): Move target_pid_to_str call to after the thread
11284 is added to GDB's list. Initialize the cache.
11285 (thread_get_info_callback, thread_db_map_id2thr)
11286 (thread_db_get_info): New functions.
11287 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11288 (thread_db_store_registers, thread_db_thread_alive)
11289 (thread_db_get_thread_local_address): Use them.
11290 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11291 of calling error() for threads in unknown state.
11293 (clear_lwpid_callback): New function.
11294 (thread_db_resume): Use it to clear the cache.
11296 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11298 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11299 (resume_callback): Remove dead code.
11301 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11303 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11305 * gdbarch.h, gdbarch.c: Regenerate.
11306 * stack.c (frame_info): Only initialize the saved registers when
11307 FRAME_INIT_SAVED_REGS_P.
11308 * frame.c (frame_saved_regs_register_unwind): Assert
11309 FRAME_INIT_SAVED_REGS_P.
11310 (deprecated_generic_get_saved_register): Ditto.
11312 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11314 * source.c (openp): Squelch warning about "filename".
11316 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11318 * source.c (openp): If the file does not exist don't necessarily
11321 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11324 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11325 (integer_types_same_name_p): New function.
11326 (rank_one_type): Use it.
11327 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11329 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11331 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11333 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11334 * configure.in: Add --with-sysroot.
11335 * configure: Regenerated.
11336 * main.c (gdb_sysroot): New variable.
11337 (captured_main): Initialize gdb_sysroot.
11338 * defs.h (gdb_sysroot): New extern declaration.
11339 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11341 2003-01-12 Michael Chastain <mec@shout.net>
11343 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11345 2003-01-12 Michael Chastain <mec@shout.net>
11347 * top.c (print_gdb_version): Bump copyright year to 2003.
11349 2003-01-12 David Carlton <carlton@bactrian.org>
11351 * linespec.c (symtab_from_filename): Rename variable 's' to
11354 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11356 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11358 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11360 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11362 * d10v-tdep.c: Include "gdb_assert.h".
11363 (d10v_store_return_value): Rewrite to match current interface.
11364 (d10v_extract_struct_value_address): Ditto.
11365 (d10v_extract_return_value): Ditto.
11366 (d10v_gdbarch_init): Set store_restore_value,
11367 extract_struct_value_address and extract_return_value.
11369 2003-01-12 J. Brobecker <brobecker@gnat.com>
11371 * hpread.c (set_namestring): New procedure replacing the
11372 SET_NAMESTRING macro.
11373 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11374 by calls to set_namestring.
11376 2003-01-11 J. Brobecker <brobecker@gnat.com>
11378 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11379 a compilation warning.
11380 (hpread_process_one_debug_symbol): Likewise.
11382 2003-01-10 David Carlton <carlton@math.stanford.edu>
11384 * linespec.c (decode_line_1): Rename variable 's' to
11386 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11387 (decode_dollar): Ditto.
11388 (decode_variable): Ditto.
11389 (symbol_found): Ditto.
11391 2003-01-09 Michael Chastain <mec@shout.net>
11393 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11395 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11397 * win32-nat.c (set_process_privilege): New function.
11398 (child_attach): Call set_process_privilege() to enable the
11399 SE_DEBUG_NAME user privilege if available in process token.
11401 2003-01-10 J. Brobecker <brobecker@gnat.com>
11403 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11404 compilation error in the previous revision.
11406 2003-01-09 David Carlton <carlton@math.stanford.edu>
11408 * linespec.c: Update copyright.
11410 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11412 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11413 than inferior_ptid.
11414 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11416 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11418 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11420 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11421 (frame_saved_regs_zalloc): Update.
11422 (frame_saved_regs_register_unwind): Update.
11423 (create_new_frame): Update.
11424 (get_prev_frame): Update.
11425 (frame_extra_info_zalloc): Update.
11426 (deprecated_get_frame_saved_regs): Update.
11427 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11428 * cris-tdep.c: Update comment.
11430 * somsolib.h: Fix function indentation.
11431 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11432 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11433 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11434 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11435 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11437 * infrun.c (follow_fork): Use ISO C definition.
11438 * expprint.c (print_subexp): Use xfree instead of free.
11439 * charset.c: Include "gdb_string.h" instead of <string.h>.
11440 (register_iconv_charsets): Use ISO C definition.
11441 (host_charset, target_charset): Ditto.
11442 * Makefile.in (charset.o): Update dependencies.
11443 (mi-cmd-env.o): Update dependencies.
11445 2003-01-08 Andrew Cagney <cagney@redhat.com>
11447 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11450 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11452 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11453 build directories. Save edited gdb output in Mbuild.log. If a
11454 build fails, remove any final GDB executable.
11456 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11458 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11459 replacing hex constants with function names and stripping leading
11460 file name directory prefixes.
11462 2003-01-08 Andrew Cagney <cagney@redhat.com>
11464 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11467 2003-01-08 David Carlton <carlton@math.stanford.edu>
11469 * linespec.c (decode_line_1): Move code into decode_variable.
11470 (decode_variable): New function.
11472 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11474 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11476 2003-01-08 Andrew Cagney <cagney@redhat.com>
11478 * cris-tdep.c (cris_frame_init_saved_regs): Use
11479 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11481 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11482 (sh64_nofp_frame_init_saved_regs): Ditto.
11483 (sh_fp_frame_init_saved_regs): Ditto.
11484 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11485 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11486 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11487 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11489 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11491 * minsyms.c (lookup_minimal_symbol): Update comment.
11492 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11493 (lookup_minimal_symbol_solib_trampoline): Likewise.
11495 2003-01-08 Andrew Cagney <cagney@redhat.com>
11497 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11498 frame_relative_level.
11500 * alpha-tdep.c: Use get_frame_extra_info.
11501 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11502 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11503 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11504 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11506 * alpha-tdep.c: Use get_next_frame.
11507 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11508 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11509 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11510 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11511 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11512 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11513 * xstormy16-tdep.c: Ditto.
11515 2003-01-07 Andrew Cagney <cagney@redhat.com>
11517 * alpha-tdep.c: Use get_frame_base.
11518 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11519 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11520 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11521 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11522 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11523 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11524 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11525 * config/sparc/tm-sparc.h: Ditto.
11527 2003-01-07 Andrew Cagney <cagney@redhat.com>
11529 * frame.c (deprecated_get_frame_context): New function.
11530 (deprecated_set_frame_context): New function.
11531 * frame.h (deprecated_get_frame_context): Declare.
11532 (deprecated_set_frame_context): Declare.
11533 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11534 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11536 2003-01-07 Andrew Cagney <cagney@redhat.com>
11538 * frame.c (deprecated_set_frame_next_hack): New function.
11539 (deprecated_set_frame_prev_hack): New function.
11540 * frame.h (deprecated_set_frame_next_hack): Declare.
11541 (deprecated_set_frame_prev_hack): Declare.
11542 * mcore-tdep.c (analyze_dummy_frame): Use
11543 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11544 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11546 2003-01-07 David Carlton <carlton@math.stanford.edu>
11548 * linespec.c (decode_line_1): Move code into decode_dollar.
11549 (decode_dollar): New function.
11551 2003-01-07 Andrew Cagney <cagney@redhat.com>
11553 * arm-tdep.c (arm_init_extra_frame_info): Use
11554 deprecated_update_frame_base_hack.
11555 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11556 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11557 (fix_frame_pointer): Ditto.
11558 (mn10300_analyze_prologue): Ditto.
11560 2003-01-07 Andrew Cagney <cagney@redhat.com>
11562 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11563 extra_info using frame_extra_info_zalloc.
11564 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11565 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11566 (sh64_init_extra_frame_info): Ditto.
11567 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11568 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11569 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11570 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11571 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11572 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11573 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11574 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11575 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11576 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11577 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11578 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11580 * mn10300-tdep.c (analyze_dummy_frame): Use
11581 deprecated_set_frame_extra_info_hack.
11582 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11584 2003-01-07 J. Brobecker <brobecker@gnat.com>
11586 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11587 class is not scText. These do not define "real" procedures.
11588 (parse_partial_symbols): Likewise.
11590 2003-01-06 Michael Snyder <msnyder@redhat.com>
11592 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11594 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11596 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11597 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11598 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11599 deprecated_frame_xmalloc_with_cleanup.
11600 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11601 deprecated_frame_xmalloc.
11602 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11603 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11605 2003-01-06 Andrew Cagney <cagney@redhat.com>
11607 * x86-64-linux-tdep.c: Include "osabi.h".
11608 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11610 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11612 2003-01-06 Andrew Cagney <cagney@redhat.com>
11614 * MAINTAINERS (Target Instruction Set Architectures): Update
11615 arm-elf. Can be built with -Werror, has been multiarched.
11617 * value.h (unpack_long): Make buffer parameter constant.
11618 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11619 * scm-lang.h (scm_parse): Ditto.
11620 * defs.h (extract_typed_address, extract_address): Ditto.
11621 (extract_long_unsigned_integer): Ditto.
11622 * inferior.h (unsigned_pointer_to_address): Ditto.
11623 (signed_pointer_to_address): Ditto.
11624 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11625 * gdbarch.h, gdbarch.c: Regenerate.
11626 * findvar.c (extract_long_unsigned_integer): Update.
11627 (extract_address): Update.
11628 (extract_typed_address): Update.
11629 (unsigned_pointer_to_address): Update.
11630 * values.c (unpack_long): Update.
11631 (unpack_double): Update.
11632 (unpack_pointer): Update.
11633 (unpack_field_as_long): Update.
11634 * d10v-tdep.c (d10v_pointer_to_address): Update.
11635 * avr-tdep.c (avr_pointer_to_address): Update.
11636 * scm-lang.c (scm_unpack): Update.
11637 * findvar.c (signed_pointer_to_address): Update.
11639 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11641 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11642 since it is in i386-tdep.c.
11644 2003-01-06 J. Brobecker <brobecker@gnat.com>
11646 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11647 failure introduced in the previous change.
11649 2003-01-05 Michael Chastain <mec@shout.net>
11651 * README: Remove references to deleted remote-*.c files:
11652 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11653 remote-nrom.c, remote-os9k.c, remote-udi.c.
11655 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11657 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11658 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11659 i386_get_longjmp_target.
11661 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11663 * arm-tdep.c (prologue_cache): Change to a pointer.
11664 (_initialize_arm_tdep): Allocate prologue_cache.
11665 (check_prologue_cache): Update.
11666 (save_prologue_cache): Update.
11667 (arm_gdbarch_init): Update.
11669 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11671 * stabsread.c (update_method_name_from_physname): Call complaint()
11674 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11676 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11677 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11678 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11680 * blockframe.c: Include "gdbcmd.h" and "command.h".
11681 (backtrace_below_main): New variable.
11682 (file_frame_chain_valid, func_frame_chain_valid)
11683 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11684 (generic_func_frame_chain_valid): Remove functions.
11685 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11686 (_initialize_blockframe): New function.
11687 * Makefile.in (blockframe.o): Update dependencies.
11688 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11689 comment. Call frame_chain_valid ().
11690 * frame.h: Remove old prototypes. Add prototype for
11691 frame_chain_valid and update comments to match.
11692 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11693 Remove old comment.
11694 * gdbarch.h: Regenerated.
11695 * gdbarch.c: Regenerated.
11697 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11698 set_gdbarch_frame_chain_valid.
11699 * avr-tdep.c (avr_gdbarch_init): Likewise.
11700 * cris-tdep.c (cris_gdbarch_init): Likewise.
11701 * frv-tdep.c (frv_gdbarch_init): Likewise.
11702 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11703 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11704 (i386_nw_init_abi): Likewise.
11705 (i386_gdbarch_init): Likewise.
11706 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11707 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11708 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11709 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11710 * mips-tdep.c (mips_gdbarch_init): Likewise.
11711 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11712 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11713 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11714 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11715 * s390-tdep.c (s390_gdbarch_init): Likewise.
11716 * sh-tdep.c (sh_gdbarch_init): Likewise.
11717 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11718 * v850-tdep.c (v850_gdbarch_init): Likewise.
11719 * vax-tdep.c (vax_gdbarch_init): Likewise.
11720 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11722 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11723 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11724 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11725 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11726 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11727 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11728 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11729 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11731 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11733 * Makefile.in (acconfig_h): Remove incorrect macro.
11734 (config_h): Define.
11735 (osabi.o): Update dependencies.
11736 * configure.tgt: Set gdb_osabi based on target triplet.
11737 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11738 * configure: Regenerated.
11739 * config.in: Regenerated.
11740 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11741 (GDB_OSABI_DEFAULT): Define if not already defined.
11742 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11743 (set_osabi_string): New variables.
11744 (gdbarch_register_osabi): Add new OS ABI to
11745 gdb_osabi_available_names.
11746 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11747 (set_osabi, show_osabi): New functions.
11748 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11750 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11752 * arch-utils.c (gdbarch_info_init): Set osabi to
11753 GDB_OSABI_UNINITIALIZED.
11754 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11755 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11756 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11757 * gdbarch.c: Regenerated.
11758 * gdbarch.h: Regenerated.
11759 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11761 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11762 * osabi.h (enum gdb_osabi): Move to defs.h.
11763 (gdbarch_init_osabi): Update prototype.
11764 * defs.h (enum gdb_osabi): Moved here.
11765 * Makefile.in: Update dependencies.
11767 * alpha-tdep.h: Don't include "osabi.h".
11768 (struct gdbarch_tdep): Remove osabi member.
11769 * alpha-tdep.c: Include "osabi.h".
11770 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11771 iterate over arches. Update call to gdbarch_init_osabi.
11772 (alpha_dump_tdep): Don't dump osabi.
11773 * alpha-linux-tdep.c: Include "osabi.h".
11774 * alpha-osf1-tdep.c: Include "osabi.h".
11775 * alphafbsd-tdep.c: Include "osabi.h".
11776 * alphanbsd-tdep.c: Include "osabi.h".
11778 * arm-tdep.h: Don't include "osabi.h".
11779 (struct gdbarch_tdep): Remove osabi member.
11780 * arm-tdep.c: Include "osabi.h".
11781 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11782 iterate over arches. Update call to gdbarch_init_osabi.
11783 (arm_dump_tdep): Don't dump osabi.
11784 * arm-linux-tdep.c: Include "osabi.h".
11785 * armnbsd-tdep.c: Include "osabi.h".
11787 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11788 Update call to gdbarch_init_osabi.
11790 * i386-tdep.h: Don't include "osabi.h".
11791 (struct gdbarch_tdep): Remove osabi member.
11792 * i386-tdep.c: Include "osabi.h".
11793 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11794 iterate over arches. Update call to gdbarch_init_osabi.
11795 (i386_dump_tdep): Don't dump osabi.
11796 * i386-linux-tdep.c: Include "osabi.h".
11797 * i386-sol2-tdep.c: Include "osabi.h".
11798 * i386bsd-tdep.c: Include "osabi.h".
11799 * i386gnu-tdep.c: Include "osabi.h".
11800 * i386ly-tdep.c: Include "osabi.h".
11801 * i386nbsd-tdep.c: Include "osabi.h".
11802 * i386obsd-tdep.c: Include "osabi.h".
11804 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11805 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11806 check osabi when iterating over arches. Update call to
11807 gdbarch_init_osabi.
11808 (mips_dump_tdep): Don't dump osabi.
11810 * ns32k-tdep.h: Don't include "osabi.h".
11811 (struct gdbarch_tdep): Remove.
11812 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11813 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11814 allocate tdep. Update call to gdbarch_init_osabi.
11815 (ns32k_dump_tdep): Remove.
11816 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11817 * ns32knbsd-tdep.c: Include "osabi.h".
11819 * ppc-tdep.h: Don't include "osabi.h".
11820 (struct gdbarch_tdep): Remove osabi member.
11821 * rs6000-tdep.c: Include "osabi.h".
11822 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11823 osabi when iterating over arches. Update call to
11824 gdbarch_init_osabi.
11825 (rs6000_dump_tdep): Don't dump osabi.
11826 * ppc-linux-tdep.c: Include "osabi.h".
11827 * ppcnbsd-tdep.c: Include "osabi.h".
11829 * sh-tdep.h: Don't include "osabi.h".
11830 (struct gdbarch_tdep): Remove osabi member.
11831 * sh-tdep.c: Include "osabi.h".
11832 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11833 iterate over arches. Update call to gdbarch_init_osabi.
11834 (sh_dump_tdep): Don't dump osabi.
11835 * shnbsd-tdep.c: Include "osabi.h".
11837 * sparc-tdep.c: Include "osabi.h".
11838 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11839 iterate over arches. Update call to gdbarch_init_osabi.
11840 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11843 * vax-tdep.h: Don't include "osabi.h".
11844 (struct gdbarch_tdep): Remove.
11845 * vax-tdep.c: Include "osabi.h".
11846 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11847 iterate over arches. Don't allocate tdep. Update call
11848 to gdbarch_init_osabi.
11849 (vax_dump_tdep): Remove.
11850 (_initialize_vax_tdep): Update call to gdbarch_register.
11852 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11854 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11856 (breakpoint_re_set_one): Don't fetch the value for a disabled
11859 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11861 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11862 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11863 (COERCE_FLOAT_TO_DOUBLE): Remove.
11864 * gdbarch.c: Regenerate.
11865 * gdbarch.h: Regenerate.
11866 * Makefile.in: Remove value_h from gdbarch_h.
11867 * valops.c (coerce_float_to_double): New variable.
11868 (default_coerce_float_to_double): Remove.
11869 (standard_coerce_float_to_double): Remove.
11870 (value_arg_coerce): Use coerce_float_to_double.
11871 (_initialize_valops): Add "set coerce-float-to-double".
11872 * value.h (default_coerce_float_to_double): Remove prototype.
11873 (standard_coerce_float_to_double): Remove prototype.
11875 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11877 * mdebugread.c (parse_symbol): Likewise.
11878 * stabsread.c (define_symbol): Mark all functions as prototyped.
11880 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11881 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11882 set_gdbarch_coerce_float_to_double.
11883 * arm-tdep.c (arm_gdbarch_init): Likewise.
11884 * frv-tdep.c (frv_gdbarch_init): Likewise.
11885 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11886 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11887 * mips-tdep.c (mips_gdbarch_init): Likewise.
11888 (mips_coerce_float_to_double): Remove.
11889 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11890 (rs6000_coerce_float_to_double): Remove.
11891 * s390-tdep.c (s390_gdbarch_init): Likewise.
11892 * sh-tdep.c (sh_gdbarch_init): Likewise.
11893 (sh_coerce_float_to_double): Remove.
11894 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11895 (sparc_coerce_float_to_double): Remove.
11896 * v850-tdep.c (v850_gdbarch_init): Likewise.
11897 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11898 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11899 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11900 (hppa_coerce_float_to_double): Remove prototype.
11901 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11903 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11905 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11907 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11909 Suggested by Stewart Brown <sb24@avaya.com>:
11910 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11911 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11912 (c_type_print_varspec_suffix): Likewise.
11914 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11916 * configure.in: Don't set and AC_SUBST SUBDIRS.
11917 * configure: Regenerated.
11919 * configure.in: Remove code dealing with shared libraries.
11920 * Makefile.in: Remove HLDFLAGS and HLDENV.
11921 * configure: Regenerated.
11923 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11925 * frame.c (deprecated_frame_xmalloc): New function.
11926 (deprecated_set_frame_saved_regs_hack): New function.
11927 (deprecated_set_frame_extra_info_hack): New function.
11928 * frame.h (deprecated_frame_xmalloc): Declare.
11929 (deprecated_set_frame_saved_regs_hack): Declare.
11930 (deprecated_set_frame_extra_info_hack): Declare.
11932 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11934 * configure.in: Move code that provides the --enable-gdbtk option
11935 right after the code that handles the --enable-tui option, and
11936 polish it somewhat.
11937 * configure: Regenerated.
11939 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11940 AC_CHECK_FUNCS and remove the old check for pread64.
11941 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11942 * acconfig.h (_GNU_SOURCE): Add.
11943 (HAVE_PREAD64): Remove.
11944 * configure, aclocal.m4, config.in: Regenerated.
11946 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11948 * alpha-tdep.c: Use get_frame_saved_regs.
11949 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11950 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11951 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11952 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11953 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11955 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11957 * configure.in: Remove all use of the SUBDIRS variable; add
11958 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11959 code providing the --enable-multi-ice option, and move it right in
11960 front of the code that checks whether gdbserver is supported.
11962 * configure: Regenerated.
11963 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11966 2003-01-03 Andrew Cagney <cagney@redhat.com>
11968 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11969 * avr-tdep.c, cris-tdep.c: Ditto.
11970 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11971 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11973 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11975 * configure.in: Remove --enable-netrom option.
11976 * configure: Regenerated.
11978 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11980 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11981 declaration for `struct re_pattern_buffer' instead.
11982 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11984 2003-01-03 J. Brobecker <brobecker@gnat.com>
11986 * mdebugread.c (parse_symbol): Count until the stEnd matching
11987 the structure name.
11989 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11991 * configure.in: Remove --with-cpu option.
11992 subscripts. Remove evil changequotes here.
11993 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11994 * config.in, configure: Regenerated.
11996 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11997 * configure.in: Cleanup section that sources GDB and BFD configure
11998 subscripts. Remove evil changequotes here.
11999 * config.in, configure: Regenerated.
12001 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12003 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12004 frame accessor methods.
12005 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12006 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12007 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12008 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12009 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12010 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12011 * z8k-tdep.c: Ditto.
12013 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12015 * configure.in: Remove UI_OUT configuration code.
12016 * ada-lang.c: Update assuming UI_OUT is always true.
12017 * Makefile.in (UIOUT_CFLAGS): Remove.
12018 * configure: Regenerated.
12019 * TODO: Remove blurb about elimination of -DUI_OUT.
12021 * configure.in: Move code that provides the --enable-gdbcli,
12022 --enable-gdbmi options right before the code that handles the
12023 --enable-tui option. Polish a bit.
12024 * configure: Regenerated.
12026 * configure.in: Rewrite check for GNU regex and the
12027 --without-included regex option, and move it into the "Checks for
12028 library functions" section. This makes us use the system regex
12029 again by default on systems with version 2 of the GNU C library.
12030 This was apparently broken.
12031 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12032 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12033 * config.in, configure: Regenerated.
12035 * configure.in: Move code that provides the --enable-tui option
12036 before the "Checks for libraries" section. Polish the code
12037 somewhat and set need_curses to yes if we build the TUI. Rewrite
12038 code that looks for a library providing termcap functionality to
12039 match more closely what's done in the Readline library, and move
12040 it into to the "Checks for libraries" section.
12041 * configure: Regenerated.
12042 * Makefile.in (TERMCAP): Remove variable.
12043 * config/i386/go32.mh (TERMCAP): Remove variable.
12045 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12047 * MAINTAINERS: Mention gdb_mbuild.sh.
12048 * gdb_mbuild.sh: Rewrite.
12050 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12052 * configure.in: Fix typo in last change.
12053 * config.in, configure: Regenerated.
12055 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12057 * valarith.c (value_binop): Delete obsolete code and comments.
12058 * configure.host: Ditto.
12059 * buildsym.h (make_blockvector): Ditto.
12060 * buildsym.c (make_blockvector): Ditto.
12061 * defs.h (enum language): Ditto.
12062 (chill_demangle): Ditto.
12063 * elfread.c (elf_symtab_read): Ditto.
12064 * dwarfread.c (CHILL_PRODUCER): Ditto.
12065 (set_cu_language): Ditto.
12066 (handle_producer): Ditto.
12067 * expprint.c (print_subexp): Ditto.
12068 * gdbtypes.c (chill_varying_type): Ditto.
12069 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12070 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12071 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12072 (chill_varying_type): Ditto.
12073 * language.h (_LANG_chill): Ditto.
12074 * language.c (binop_result_type, integral_type): Ditto.
12075 (character_type, string_type, structured_type): Ditto.
12076 (lang_bool_type, binop_type_check): Ditto.
12077 * stabsread.h (os9k_stabs): Ditto.
12078 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12079 (define_symbol, read_type, read_struct_fields): Ditto.
12080 (read_array_type, read_enum_type, read_huge_number): Ditto.
12081 (read_range_type, start_stabs): Ditto.
12082 * symfile.c (init_filename_language_table): Ditto.
12083 (add_psymbol_with_dem_name_to_list): Ditto.
12084 * symtab.c (symbol_init_language_specific): Ditto.
12085 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12086 * symtab.h (struct general_symbol_info): Ditto.
12087 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12088 * typeprint.c (typedef_print): Ditto.
12089 * utils.c (fprintf_symbol_filtered): Ditto.
12090 * valops.c (value_cast, search_struct_field, value_slice): Delete
12092 (varying_to_slice): Delete function.
12093 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12094 (varying_to_slice): Delete declaration.
12095 * MAINTAINERS: Update.
12097 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12099 * configure.in: Reorganize "Checks for library functions section"
12100 a bit. Remove check for `btowc' and `isascii' functions.
12101 * configure: Regenerated.
12103 * acconfig.h (_MSE_INT_H): Remove.
12104 * configure.in: Create "Checks for header files" section, and move
12105 appropriate tests there. Don't check for objlist.h, wchar.h,
12106 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12107 misdetection fix. Also add "Checks for types", "Checks for
12108 compiler characteristics" and "Checks for library functions"
12110 * config.in, configure: Regenerated.
12112 * configure.in: Create "Checks for programs" section, and move
12113 appropriate tests there.
12115 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12117 * configure.in: Create "Checks for libraries" section, and move
12118 appropriate tests there. Cleanup check for wctype in libw. Use
12119 AC_SEARCH_LIBS to see whether we need libsocket.
12120 * configure: Regenerated.
12122 For older changes see ChangeLog-2002
12128 version-control: never