1 2003-09-19 Christopher Faylor <cgf@redhat.com>
3 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
5 2003-09-19 Jim Blandy <jimb@redhat.com>
7 * macrotab.c (macro_include): Use the correct comparison to find
8 the appropriate place for this inclusion in the list.
10 2003-09-19 Andrew Cagney <cagney@redhat.com>
12 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
13 (DEPRECATED_HPUX_TEXT_END): Define.
14 (deprecated_hpux_text_end): Declare.
15 (struct target_ops): Declare opaque.
16 * hppah-nat.c (text_end): Make static.
17 (deprecated_hpux_text_end): New function.
18 * exec.c (text_end): Delete global variable.
19 (NEED_TEXT_START_END): Do not define.
20 (exec_file_attach): Replace code computing "text_end" code with
21 call to DEPRECATED_HPUX_TEXT_END.
23 2003-09-19 Andrew Cagney <cagney@redhat.com>
25 * utils.c (align_up, align_down): New functions.
26 * defs.h (align_up, align_down): Declare.
27 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
28 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
30 (round_up, round_down): Delete functions.
31 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
33 (ROUND_DOWN, ROUND_UP): Delete macros.
34 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
35 * h8300-tdep.c: Replace "round_up" and "round_down" with
36 "align_up" and "align_down".
37 (round_up, round_down): Delete macros.
38 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
40 (ROUND_UP, ROUND_DOWN): Delete macros.
42 2003-09-18 J. Brobecker <brobecker@gnat.com>
44 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
45 hard-coded constant. Use the proper machine name instead.
47 2003-09-17 Andrew Cagney <cagney@redhat.com>
49 * sparc-tdep.c (legacy_register_name): Delete function.
50 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
51 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
52 * infcmd.c (gdb_register_name): Delete variable.
53 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
54 REGISTER_NAME and "tm.h".
55 * gdbarch.h, gdbarch.c: Regenerate.
56 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
57 REGISTER_NAMES in comments.
58 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
59 * m68klinux-nat.c (regmap): Ditto.
61 2003-09-17 Jim Blandy <jimb@redhat.com>
63 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
65 2003-09-17 Andrew Cagney <cagney@redhat.com>
67 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
68 (ppcnbsd_init_abi): Set "use_struct_convention" to
69 "ppcnbsd_use_struct_convention".
71 2003-09-17 Mark Kettenis <kettenis@gnu.org>
73 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
74 * gdbarch.h, gdbarch.c: Regenerate.
75 (stabs_argument_has_addr): New architecture method.
76 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
77 * arch-utils.c: Include "buildsym.h".
78 (default_stabs_argument_has_addr): New function.
79 * stabsread.c (define_symbol): Use stabs_argument_has_addr
80 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
82 2003-09-17 Andrew Cagney <cagney@redhat.com>
84 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
85 * gdbarch.h, gdbarch.c: Regenerate.
86 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
87 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
88 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
89 * sparcnbsd-tdep.c: Update.
91 2003-09-17 Andrew Cagney <cagney@redhat.com>
93 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
94 * gdbarch.h, gdbarch.c: Regenerate.
95 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
96 * d10v-tdep.c, frame.c: Update.
97 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
98 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
99 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
100 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
101 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
102 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
103 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
104 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
105 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
106 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
107 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
108 * config/pa/nm-hppah.h: Update.
110 2003-09-16 Andrew Cagney <cagney@redhat.com>
112 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
113 "use_struct_convention" to "ppc_linux_use_struct_convention".
114 (ppc_linux_use_struct_convention): New function.
115 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
116 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
117 "rs6000_use_struct_convention".
118 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
120 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
123 2003-09-16 Andrew Cagney <cagney@redhat.com>
125 * buildsym.c: Remove more occurances of "register".
126 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
127 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
128 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
129 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
130 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
131 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
132 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
133 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
135 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
137 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
138 numbers to enumeration values.
139 * sh-tdep.c: Accomodate above change.
140 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
141 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
142 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
143 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
144 (IS_FPUSH): Rename from IS_FMOV.
145 (sh_extract_struct_value_address): Remove useless comment.
146 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
147 instead of own local values.
148 (sh_dump_tdep): Remove.
149 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
150 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
152 2003-09-15 Andrew Cagney <cagney@redhat.com>
154 * doublest.c (convert_floatformat_to_doublest): No longer need to
155 cast "exp_bias" to an int. Reverts 2002-12-04 change.
157 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
159 * values.c (unpack_double): Call floatformat_is_valid.
161 2003-09-15 Mark Kettenis <kettenis@gnu.org>
163 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
164 ps_strings into a long.
166 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
167 _initialize_am64fbsd_nat.
169 2003-09-15 Kevin Buettner <kevinb@redhat.com>
171 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
172 associated with DW_AT_ranges attribute is out of bounds.
174 2003-09-15 David Lecomber <dsl@sources.redhat.com>
176 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
178 2003-09-14 Michael Chastain <mec@shout.net>
180 * config/m68k/nm-apollo68v.h: Delete.
181 * config/m68k/xm-apollo68v.h: Delete.
183 2003-09-14 Andrew Cagney <cagney@redhat.com>
185 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
186 * dcache.c: Update copyrights and descriptions.
187 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
189 2003-09-14 Andrew Cagney <cagney@redhat.com>
191 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
192 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
194 2003-09-14 Andrew Cagney <cagney@redhat.com>
196 * alpha-nat.c: Remove some occurances of "register".
197 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
198 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
199 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
200 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
201 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
202 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
203 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
204 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
205 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
206 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
207 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
208 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
209 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
210 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
211 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
212 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
213 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
214 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
215 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
216 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
217 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
218 * values.c, vax-tdep.c, xcoffread.c: Ditto.
220 2003-09-13 Andrew Cagney <cagney@redhat.com>
222 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
223 * ppc-tdep.h (struct regcache): Declare opaque.
224 * objfiles.h (struct objfile_data): Declare opaque.
225 * cp-support.h (struct objfile): Declare opaque.
226 * linux-nat.h (target_waitstatus): Declare opaque.
228 2003-09-14 Mark Kettenis <kettenis@gnu.org>
230 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
231 (stabs_argument_has_addr): New architecture method.
232 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
233 * arch-utils.c: Include "buildsym.h".
234 (default_stabs_argument_has_addr): New function.
235 * stabsread.c (define_symbol): Use stabs_argument_has_addr
236 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
238 * cris-tdep.c (cris_gdbarch_init): Set
239 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
240 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
241 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
242 * mips-tdep.c (mips_gdbarch_init): Likewise.
243 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
244 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
246 2003-09-13 Andrew Cagney <cagney@redhat.com>
248 * values.c (using_struct_return): Delete "function" and "funcaddr"
250 * value.h (using_struct_return): Update declaration.
251 * infcmd.c (finish_command_continuation): Update.
252 (finish_command): Update.
253 * infcall.c (call_function_by_hand): Update.
254 * eval.c (evaluate_subexp_standard): Update.
256 2003-09-13 Christopher Faylor <cgf@redhat.com>
258 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
259 SSE registers since gdb will not operate correctly without this.
260 Restore include file ordering munged in previous change.
261 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
263 2003-09-13 Mark Kettenis <kettenis@gnu.org>
265 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
267 * gdbarch.c, gdbarch.h: Updated.
268 * infcall.c (call_function_by_hand): Update.
269 * stabsread.c (define_symbol): Updated.
271 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
273 2003-09-12 Christopher Faylor <cgf@redhat.com>
275 * win32-nat.c: Reorganize so that defines used by target headers are
276 actually defined by the system headers.
277 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
278 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
280 2003-09-12 Jim Blandy <jimb@redhat.com>
282 * dbxread.c (read_dbx_symtab): Don't report an internal error if
283 the file has no .data, .bss, or .rodata sections. Instead wait
284 until we see a variable alleged to live in one of those sections.
286 * dbxread.c (read_dbx_symtab): If we have no .data section and no
287 .bss section, presume that any variables we find live in the
290 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
291 offsets for global and static variables.
293 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
294 symbol types are, by definition, in the .data section, so it is
295 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
296 If there is no .data section, there should be no N_DATA or N_DATA
299 2003-09-12 Mark Kettenis <kettenis@gnu.org>
301 * amd64fbsd-tdep.c: Fix sigtramp recognition.
302 (amd64fbsd_sigcontext_addr): Rewrite.
303 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
305 (amd64fbsd_sc_reg_offset): Initialize with correct values.
306 (amd64fbsd_init_abi): Fix typo.
308 2003-09-12 Andrew Cagney <cagney@redhat.com>
310 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
311 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
313 2003-09-12 Andrew Cagney <cagney@redhat.com>
315 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
316 "entry_file_highpc". Update comments.
317 * defs.h (deprecated_inside_entry_file): Rename
319 * blockframe.c (deprecated_inside_entry_file): Rename
321 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
322 * vax-tdep.c (vax_frame_chain): Update.
323 * sh64-tdep.c (sh64_frame_chain): Update.
324 * sh-tdep.c (sh_frame_chain): Update.
325 * rs6000-tdep.c (rs6000_frame_chain): Update.
326 * ns32k-tdep.c (ns32k_frame_chain): Update.
327 * mips-tdep.c (mips_frame_chain): Update.
328 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
329 * m32r-tdep.c (m32r_frame_this_id): Update.
330 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
331 * frv-tdep.c (frv_frame_this_id): Update.
332 * d10v-tdep.c (d10v_frame_this_id): Update.
333 * cris-tdep.c (cris_frame_chain): Update.
334 * blockframe.c (legacy_frame_chain_valid): Update.
335 * avr-tdep.c (avr_frame_this_id): Update.
336 * arm-tdep.c (arm_prologue_this_id): Update.
337 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
338 * objfiles.c (objfile_relocate): Update.
339 * mipsread.c (mipscoff_symfile_read): Update.
340 (mipscoff_symfile_read): Update.
341 * mdebugread.c (parse_partial_symbols): Update.
342 * dwarfread.c (read_file_scope): Update.
343 * dwarf2read.c (read_file_scope): Update.
344 * dbxread.c (read_dbx_symtab): Update.
345 (read_dbx_symtab): Update.
346 * coffread.c (complete_symtab): Update.
348 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
350 * top.c (quit_target): New static helper function.
351 (quit_force): Moved code to quit_target(). Call quit_target()
352 via catch_errors() to catch errors during quit.
354 2003-09-11 David Carlton <carlton@kealia.com>
356 * buildsym.c (finish_block): Use allocate_block to allocate the
358 * mdebugread.c (new_block): Add FIXME.
360 2003-09-11 David Carlton <carlton@kealia.com>
362 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
363 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
364 (recursive_dump_type): Ditto.
365 * printcmd.c (print_formatted): Ditto.
366 * typeprint.c (print_type_scalar): Ditto.
367 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
368 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
369 * cp-support.h: Declare cp_check_possible_namespace_symbols,
370 maint_cplus_cmd_list.
371 * cp-support.c: Make maint_cplus_cmd_list extern.
372 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
374 (lookup_symbol_file): Look in possible namespace blocks when
376 (initialize_namespace_symtab): New.
377 (get_possible_namespace_block, free_namespace_block)
378 (check_possible_namespace_symbols)
379 (check_possible_namespace_symbols_loop)
380 (check_one_possible_namespace_symbol)
381 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
382 (_initialize_cp_namespace): Ditto.
383 * block.h: Declare allocate_block.
384 * block.c (allocate_block): New.
385 * jv-lang.c (get_java_class_symtab): Allocate blocks via
387 * symfile.h: Update declaration of add_psymbol_to_list.
388 * symfile.c (add_psymbol_to_list): Return the partial symbol in
390 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
391 scan_partial_symbols_call.
392 (scan_partial_symbols): Add NAMESPACE argument; update calls to
394 (add_partial_symbol): If necessary, scan mangled names for names
396 (add_partial_namespace): Add NAMESPACE argument; generate partial
397 symbols associated to namespaces.
398 (add_partial_enumeration): Add NAMESPACE argument.
399 (new_symbol): Allow namespace syms.
400 (read_namespace): Generate namespace syms.
401 * objfiles.h: Add opaque declaration of struct symtab.
402 (struct objfile): Add cp_namespace_symtab member.
403 * objfiles.c (allocate_objfile): Set
404 objfile->cp_namespace_symtab.
405 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
406 dictionary_h, command_h.
408 2003-09-11 Andrew Cagney <cagney@redhat.com>
410 * rs6000-tdep.c (rs6000_push_dummy_call): Use
411 regcache_raw_write_signed to set SP_REGNUM, move the operation to
412 near the function's end.
413 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
414 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
415 regcache_raw_write_signed to set SP_REGNUM.
417 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
419 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
420 orig_addrs is set up properly.
422 2003-09-11 Andrew Cagney <cagney@redhat.com>
424 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
425 * gdbarch.h, gdbarch.c: Re-generate.
426 * infcall.c (call_function_by_hand): Update.
427 * hppa-tdep.c (hppa_push_arguments): Update.
428 * ada-lang.c (place_on_stack): Update.
429 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
430 * sparc-tdep.c (sparc_gdbarch_init): Update.
431 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
432 * hppa-tdep.c (hppa_gdbarch_init): Update.
433 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
436 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
438 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
439 register do need a frame.
441 2003-09-11 Andrew Cagney <cagney@redhat.com>
443 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
444 buildable since GDB 5.0.
445 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
446 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
447 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
448 * irix4-nat.c: Delete file.
449 * config/mips/irix4.mh: Delete file.
450 * config/mips/irix3.mh: Delete file.
451 * config/mips/irix3.mt: Delete file.
452 * config/mips/tm-irix3.h: Delete file.
453 * config/mips/nm-irix3.h: Delete file.
454 * config/mips/xm-irix3.h: Delete file.
455 * config/mips/nm-irix4.h: Delete file.
456 * config/mips/xm-irix4.h: Delete file.
457 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
459 2003-09-10 J. Brobecker <brobecker@gnat.com>
461 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
462 * Makefile.in (hppa-tdep.o): Update dependencies.
464 2003-09-10 James E Wilson <wilson@specifixinc.com>
466 * MAINTAINERS: Change my e-mail address. Move to paper trail
469 2003-09-10 Kevin Buettner <kevinb@redhat.com>
471 * MAINTAINERS (frv): New ISA entry.
473 2003-09-10 Kevin Buettner <kevinb@redhat.com>
475 * frv-tdep.c (dis-asm.h): Include.
476 * Makefile.in (frv-tdep.o): Update dependencies.
478 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
480 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
481 Fix typo for high range of floating registers.
483 2003-09-09 David Carlton <carlton@kealia.com>
485 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
486 highpc initialization here out of scan_partial_symbols.
487 (scan_partial_symbols): Restructure into a recursive version,
488 calling add_partial_namespace and add_partial_enumeration when
490 (add_partial_namespace): New.
491 (add_partial_enumeration, locate_pdi_sibling): Ditto.
493 2003-09-09 Andrew Cagney <cagney@redhat.com>
495 * rs6000-tdep.c (ppc_push_return_address): Delete function.
496 (rs6000_push_dummy_call): Set LR to BP_ADDR.
497 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
498 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
500 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
501 (rs6000_push_dummy_call): Set the "TOC" register.
503 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
504 methods "max_register_raw_size", "max_register_virtual_size" or
505 "register_virtual_size".
507 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
509 * MAINTAINERS: Update my e-mail address.
511 2003-09-09 Andrew Cagney <cagney@redhat.com>
513 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
514 (rs6000_push_dummy_call): Store the struct return address.
515 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
517 2003-09-09 Andrew Cagney <cagney@redhat.com>
519 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
520 "ppc_sysv_abi_push_arguments".
521 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
522 "ppc_sysv_abi_push_arguments".
523 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
524 instead of "push_arguments".
525 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
527 2003-09-09 Andrew Cagney <cagney@redhat.com>
529 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
530 instead of CALL_DUMMY_ADDRESS.
532 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
534 * p-lang.c: Eliminate "register".
543 * objc-lang.c: Ditto.
545 2003-09-09 Nick Clifton <nickc@redhat.com>
547 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
549 2003-09-04 Andrew Cagney <cagney@redhat.com>
551 * avr-tdep.c: Include "dis-asm.h".
552 * cris-tdep.c: Include "dis-asm.h".
553 (cris_delayed_get_disassembler): Use "struct disassemble_info"
554 instead of corresponding typedef.
555 * h8300-tdep.c: Include "dis-asm.h".
556 * ia64-tdep.c: Include "dis-asm.h".
557 * i386-tdep.c: Include "dis-asm.h".
558 (i386_print_insn): Use "struct disassemble_info" instead of
559 corresponding typedef.
560 * m68k-tdep.c: Include "dis-asm.h".
561 * mcore-tdep.c: Include "dis-asm.h".
562 * mips-tdep.c: Include "dis-asm.h".
563 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
564 instead of corresponding typedef.
565 * ns32k-tdep.c: Include "dis-asm.h".
566 * s390-tdep.c: Include "dis-asm.h".
567 * sparc-tdep.c: Include "dis-asm.h".
568 * vax-tdep.c: Include "dis-asm.h".
569 * v850-tdep.c: Include "dis-asm.h".
570 * mn10300-tdep.c: Include "dis-asm.h".
571 * rs6000-tdep.c: Include "dis-asm.h".
572 * xstormy16-tdep.c: Include "dis-asm.h".
573 (_initialize_xstormy16_tdep): Delete "extern" declaration of
574 print_insn_xstormy16.
575 * Makefile.in (v850-tdep.o): Update dependencies.
576 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
577 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
578 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
579 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
580 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
581 (gdbarch_h): Remove $(dis_asm_h).
582 * disasm.c: Include "dis-asm.h".
583 (dis_asm_read_memory): Use "struct disassemble_info" instead of
584 corresponding typedef.
585 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
586 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
587 * gdbarch.sh: Do not include "dis-asm.h".
588 (struct disassemble_info): Declare opaque.
589 (TARGET_PRINT_INSN): Update declaration.
590 * gdbarch.h, gdbarch.c: Re-generate.
592 2003-09-08 Andrew Cagney <cagney@redhat.com>
594 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
595 CALL_DUMMY_ADDRESS, change to a predicate.
596 * gdbarch.h, gdbarch.c: Re-generate.
597 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
598 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
599 * infcall.c (call_function_by_hand): Ditto.
600 * sparc-tdep.c (sparc_push_return_address): Ditto.
601 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
602 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
603 CALL_DUMMY_ADDRESS with entry_point_address.
604 * v850-tdep.c (v850_push_return_address): Ditto.
605 * s390-tdep.c (s390_push_return_address): Ditto.
606 * rs6000-tdep.c (ppc_push_return_address): Ditto.
607 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
608 * mcore-tdep.c (mcore_push_return_address): Ditto.
609 * cris-tdep.c (cris_push_return_address): Ditto.
610 * arm-tdep.c (arm_push_return_address): Ditto.
612 2003-09-08 Andrew Cagney <cagney@redhat.com>
614 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
615 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
616 and REG_UNMODIFIED to REG_SAME_VALUE.
617 (execute_cfa_program): Update.
618 (dwarf2_frame_cache): Update. Initialize table to
619 REG_UNSPECIFIED, complain if CFI fails to specify a register's
621 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
623 2003-09-08 Andrew Cagney <cagney@redhat.com>
625 * gnu-nat.c: Remove "inline" function attribute.
626 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
628 2003-09-08 Kevin Buettner <kevinb@redhat.com>
630 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
633 2003-09-08 Kevin Buettner <kevinb@redhat.com>
635 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
636 (frame_extra_info): Rename this struct to frv_unwind_cache.
637 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
638 Add fields ``prev_sp'' and ``base''.
639 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
640 (frv_saved_pc_after_call, frv_init_extra_frame_info)
641 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
643 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
644 Revise all callers. Fill in the unwind cache argument and make
645 other adjustments to account for new frame mechanisms.
646 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
647 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
648 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
649 (frv_frame_unwind, frv_frame_base): New structs.
650 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
651 additional arguments expected by this method and adjust function
653 (frv_gdbarch_init): Remove calls to the following functions:
654 set_gdbarch_deprecated_init_frame_pc(),
655 set_gdbarch_deprecated_saved_pc_after_call(),
656 set_gdbarch_deprecated_frame_chain(),
657 set_gdbarch_deprecated_frame_saved_pc(),
658 set_gdbarch_deprecated_frame_init_saved_regs(),
659 set_gdbarch_deprecated_push_arguments(),
660 set_gdbarch_deprecated_push_return_address(),
661 set_gdbarch_deprecated_pop_frame(),
662 set_gdbarch_deprecated_call_dummy_words(),
663 set_gdbarch_deprecated_sizeof_call_dummy_words(),
664 set_gdbarch_deprecated_init_extra_frame_info(),
665 set_gdbarch_deprecated_dummy_write_sp(), and
666 set_gdbarch_deprecated_pc_in_call_dummy().
667 Add calls to the following functions:
668 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
669 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
670 frame_base_set_default().
671 * Makefile.in (frv-tdep.o): Update dependencies.
673 2003-09-09 Mark Kettenis <kettenis@gnu.org>
675 * dwarf2-frame.c (read_encoded_value): Add support for
676 DW_EH_PE_aligned encoding.
678 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
680 * infrun.c (normal_stop): Don't print a message if the inferior
683 2003-09-08 Jim Blandy <jimb@redhat.com>
685 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
686 * dbxread.c: #include "gdb_assert.h".
687 (read_dbx_symtab): If the objfile has no .data section, use the
688 section index for the .bss section instead.
690 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
692 * frame.c (deprecated_safe_get_selected_frame): New function.
693 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
694 * findvar.c (read_var_value): Call it.
696 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
698 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
699 (sh64-tdep.o): Add dependencies.
700 * configure.tgt: Add FIXME to sh-*-linux*.
701 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
702 (sh_gdbarch_init): Always set correct sh_show_regs function
703 pointer. Call sh64_gdbarch_init() if machine type is sh5.
704 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
705 * sh64-tdep.c: New file, containing all sh64 related code from
707 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
708 * config/sh/linux.mt (TDEPFILES): Ditto.
709 * config/sh/nbsd.mt (TDEPFILES): Ditto.
710 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
711 * config/sh/wince.mt (TDEPFILES): Ditto.
713 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
715 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
716 (stop_wait_callback): Handle !lp->signalled also.
717 (lin_lwp_has_pending, flush_callback): New functions.
718 (lin_lwp_wait): Call flush_callback.
719 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
720 (linux_proc_pending_signals): New function.
721 * linux-nat.h (linux_proc_pending_signals): Add prototype.
723 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
725 From Nick Kelsey <nickk@ubicom.com>:
726 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
727 when the stop PC is at the beginning of a function also.
729 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
731 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
732 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
734 2003-09-06 Mark Kettenis <kettenis@gnu.org>
736 * sol-thread.c: Include "gdb_string.h".
738 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
740 * gcore.c: Reorder include files in alphabetical order. Include
741 "gdb_assert.h". Various coding style fixes.
742 (derive_stack_segment, derive_heap_segment): Replace check for
743 non-null BOTTOM and TOP with gdb_assert.
744 (derive_heap_segment): Replace check for successful creation of
745 ZERO with gdb_assert.
746 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
748 2003-09-04 Andrew Cagney <cagney@redhat.com>
750 * thread-db.c (verbose_dlsym): New function.
751 (thread_db_load): Use verbose_dlsym
752 (thread_db_new_objfile): Print that libthread_db was loaded, and
753 that thread debugging was enabled.
755 2003-09-04 Andrew Cagney <cagney@redhat.com>
757 * configure.tgt: Add "mips64*-*-*" target. Delete
758 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
759 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
760 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
761 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
762 mips*-sony-*, and mips64*-*-elf* targets.
763 * config/mips/embedl.mt: Delete file.
764 * config/mips/embedl64.mt: Delete file.
765 * config/mips/mips.mt: Delete file.
766 * config/mips/mips64.mt: Delete file.
767 * config/mips/tm-embed.h: Delete file.
768 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
769 * config/mips/embed64.mt: Delete out-of-date comment.
771 2003-09-04 Andrew Cagney <cagney@redhat.com>
773 * hppa-tdep.c (hppa_gdbarch_init): Set
774 "have_nonsteppable_watchpoint".
775 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
776 * mips-tdep.c (mips_dump_tdep): Do not print
777 HAVE_NONSTEPPABLE_WATCHPOINT.
778 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
779 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
780 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
781 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
783 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
785 * breakpoint.c (watchpoint_check): Remove accidentally checked in
786 unused code. Add comment.
788 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
790 * breakpoint.c (watchpoint_check): Check for pc being in an
791 epilogue if watchpoint frame couldn't be found.
793 2003-09-04 Andrew Cagney <cagney@redhat.com>
795 * Makefile.in: Re-generate all dependencies.
797 2003-09-03 Andrew Cagney <cagney@redhat.com>
799 * arch-utils.h (legacy_print_insn): Delete declaration.
800 * arch-utils.c (legacy_print_insn): Delete function.
801 * disasm.c (deprecated_tm_print_insn_info): Delete.
802 (_initialize_disasm): Delete function, contained code initializing
803 deprecated_tm_print_insn_info.
804 * gdbarch.sh (deprecated_tm_print_insn): Delete.
805 (deprecated_tm_print_insn_info): Delete.
806 (TARGET_PRINT_INSN): Do not provide a default.
807 * gdbarch.h, gdbarch.c: Re-generate.
809 2003-09-03 Andrew Cagney <cagney@redhat.com>
811 * disasm.c (fprintf_disasm): New function.
812 (gdb_disassemble_info): Call "init_disassemble_info", instead of
813 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
814 reverts 2003-08-14 change.
815 (_initialize_disasm): Call "init_disassemble_info", instead of
816 INIT_DISASSEMBLE_INFO_NO_ARCH.
818 2003-09-03 Michael Snyder <msnyder@redhat.com>
820 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
822 2003-09-03 Andrew Cagney <cagney@redhat.com>
824 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
825 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
826 * symfile.c (syms_from_objfile): Update.
827 (reread_symbols): `Update
828 * exec.c (exec_file_attach): Update.
829 (exec_file_attach): Update.
830 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
832 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
834 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
836 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
838 (arm_get_cache): Delete macro.
839 (struct arm_prologue_cache): Update comments. Make saved_regs into
840 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
842 (thumb_scan_prologue): Update for cache changes. Don't call
843 DEPRECATED_PC_IN_CALL_DUMMY.
844 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
845 argument and use it in desperation search for our prologue. Do not
846 search past the specified PC.
847 (arm_make_prologue_cache): Simplify.
849 (arm_prologue_this_id, arm_prologue_prev_register)
850 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
851 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
852 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
853 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
854 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
856 (arm_frame_chain_valid, arm_find_callers_reg)
857 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
858 (arm_pop_frame): Delete obsolete methods.
859 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
861 (arm_gdbarch_init): Update for new frame methods. Register prologue
862 and sigtramp unwinders. Set the default frame base method.
864 * Makefile.in (arm-tdep.o): Update dependencies.
865 * varobj.c (find_frame_addr_in_frame_chain): Call
866 get_frame_base_address.
867 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
869 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
871 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
872 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
873 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
874 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
875 Take NEXT_FRAME and CACHE arguments. Call
876 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
877 Set unwound_pc in CACHE instead of modifying the frame argument.
878 Don't bother checking the frame type when looking for sigtramp
880 (arm_make_prologue_cache, arm_frame_chain)
881 (arm_init_extra_frame_info): New functions.
883 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
885 * arm-tdep.c (arm_get_cache): Define.
886 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
887 unwound_sp, unwound_pc, and saved_regs.
888 (thumb_scan_prologue): Take a cache instead of the frame.
889 (arm_scan_prologue): Likewise.
890 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
891 instead of a temporary frame.
892 (arm_init_extra_frame_info): Allocate and use a cache.
893 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
895 2003-09-03 Andrew Cagney <cagney@redhat.com>
897 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
898 * config/mips/wince.mt (TM_CLIBS): Ditto.
899 * config/sh/wince.mt (TM_CLIBS): Ditto.
900 * config/pa/hppa64.mt (TM_CLIBS): Delete.
901 * config/sparc/sp64.mt (CC): Delete.
903 2003-09-03 Andrew Cagney <cagney@redhat.com>
905 * defs.h: Do not include "arch-utils.h".
906 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
908 * configure.in (GDB_MULTI_ARCH): Do not define.
909 * configure, config.in: Regenerate.
910 * configure.tgt: Do not set variable "gdb_multi_arch".
911 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
912 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
913 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
914 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
915 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
916 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
917 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
918 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
919 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
920 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
921 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
922 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
923 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
924 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
925 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
926 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
927 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
928 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
930 2003-08-30 Michael Chastain <mec@shout.net>
932 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
933 * config/m68k/nm-hp300hpux.h: Delete.
934 * config/m68k/tm-hp300hpux.h: Delete.
935 * config/m68k/xm-hp300hpux.h: Delete.
936 * config/m68k/xm-hp300bsd.h: Delete.
937 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
938 tm-hp300hpux.h, xm-hp300hpux.h.
939 * somsolib.c: Remove comment about hp300 shared libraries.
941 2003-08-31 Mark Kettenis <kettenis@gnu.org>
943 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
944 Only define PTRACE_GET_THREAD_AREA is not already defined.
945 Various style fixes in code and comments and some additional
946 spelling fixes in comments. Move after functions dealing with
948 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
951 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
952 frame_unwind_register_unsigned instead of
953 frame_unwind_unsigned_register.
955 2003-08-30 Mark Kettenis <kettenis@gnu.org>
957 * configure.in: Search for gethostbyname in libnsl.
958 * configure: Regenerated.
960 2003-08-29 Mark Kettenis <kettenis@gnu.org>
962 * configure.in: Remove redundant AC_MSG_RESULT in check for
963 uintptr_t in stdint.h.
964 * configure: Regenerated.
966 * amd64-nat.h (struct regcache): Add opaque declaration.
968 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
969 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
970 Change "register array" to "register cache" in comments.
971 (x86_64_linux_gregset64_reg_offset): New variable.
972 (GETREGS_SUPPLIES): Remove macro.
973 (supply_gregset): Call amd64_supply_native_gregset instead of
974 x86_64_linux_supply_gregset.
975 (fill_gregset): Rename `regno' to `regnum'. Call
976 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
977 (store_regs): Rename `regno' to `regnum'.
978 (store_fpregs): Rename `regno' to `regnum'.
979 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
980 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
981 Reorganize function a bit.
982 (store_inferior_registers): Rename `regno' to `regnum'. Use
983 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
984 Reorganize function a bit.
985 (_initialize_x86_64_linux_nat): New function.
986 * config/i386/x86-64linux.mh.
988 2003-08-29 Andrew Cagney <cagney@redhat.com>
990 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
991 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
992 (target_remove_watchpoint): Delete macro.
993 (target_insert_watchpoint): Delete macro.
994 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
995 (remote_mips_stopped_by_watchpoint): Delete declaration.
996 (remote_mips_remove_watchpoint): Delete declaration.
997 (remote_mips_set_watchpoint): Delete declaration.
998 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
999 * remote-mips.c (_initialize_remote_mips): Set
1000 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1001 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1002 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1003 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1004 (mips_stopped_by_watchpoint): Rename
1005 remote_mips_stopped_by_watchpoint.
1006 (mips_can_hardware_watchpoint): Rename
1007 remote_mips_can_use_hardware_watchpoint, update function
1010 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1012 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1013 USER_DS. We haven't given them a register number yet.
1015 * amd64-nat.h: New file.
1016 * amd64-nat.c: New file.
1017 * amd64fbsd-nat.c: Include "amd64-nat.h".
1018 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1019 (amd64fbsd32_r_reg_offset): New variable.
1020 (supply_gregset): Simply call amd64_supply_native_gregset.
1021 (fill_gregset): Rename `regno' to `regnum'. Simply call
1022 amd64_collect_native_gregset.
1023 (fill_fpregset): Rename `regno' to `regnum'.
1024 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1025 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1026 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1027 `fpregset_t'. Call amd64_supply_native_gregset instead of
1028 supply_gregset. Call x86_64_supply_fxsave instead of
1030 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1031 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1032 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1033 `fpregset_t'. Call amd64_collect_native_gregset instead of
1034 fill_gregset. Call x86_64_collect_fxsave instead of
1036 (_initialize_am64fbsd_nat): Initialize
1037 amd64_native_gregset32_reg_offset and
1038 amd64_native_gregset64_reg_offset.
1039 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1041 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1042 null pointer. Fix typo in comment.
1044 * regcache.c (supply_register): Reimplement to call
1045 regcache_raw_supply.
1046 (regcache_collect): Reimplement by calling regcache_raw_collect.
1048 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1050 * regcache.c (register_buffer): Consitify first argument.
1051 (regcache_raw_supply, regcache_raw_collect): New
1054 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1056 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1057 by Nathan J. Williams.
1059 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1061 * lin-lwp.c (wait_lwp): New function, copied from
1062 stop_wait_callback. Clean up.
1063 (stop_wait_callback): Use wait_lwp.
1065 2003-08-28 Andrew Cagney <cagney@redhat.com>
1067 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1068 flavour and disassembler options.
1069 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1070 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1071 deprecated_tm_print_insn_info.
1073 2003-08-27 Andrew Cagney <cagney@redhat.com>
1075 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1076 Use target_read_memory.
1077 (s390_get_frame_info): Update. Do not reference
1078 deprecated_tm_print_insn_info.
1079 (s390_check_function_end, s390_is_sigreturn): Ditto.
1081 2003-08-27 Andrew Cagney <cagney@redhat.com>
1083 * Makefile.in (cris-tdep.o): Update dependencies.
1084 * cris-tdep.c: Include "gdb_assert.h".
1085 (cris_gdbarch_init): Set print_insn.
1086 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1087 (cris_delayed_get_disassembler): Simplify, directly call the
1088 disassembler returned by cris_get_disassembler.
1089 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1090 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1091 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1092 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1093 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1094 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1095 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1096 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1097 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1098 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1099 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1100 (gdb_print_insn_sparc): Delete function.
1101 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1102 deprecated_tm_print_insn_info.
1103 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1104 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1105 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1106 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1107 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1108 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1109 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1110 (s390_gdbarch_init): Set print_insn.
1112 2003-08-27 Andrew Cagney <cagney@redhat.com>
1114 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1115 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1116 * infcall.c (call_function_by_hand): Convert the entry point
1117 address into a code address.
1119 2003-08-27 Andrew Cagney <cagney@redhat.com>
1121 * dsrec.c: Include "gdb_string.h".
1122 * Makefile.in (dsrec.o): Update dependencies.
1124 2003-08-27 Michael Chastain <mec@shout.net>
1126 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1128 2003-08-27 Andrew Cagney <cagney@redhat.com>
1130 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1131 (alpha_osf1_init_abi): Do not set call_dummy_address.
1133 2003-08-27 David Carlton <carlton@kealia.com>
1135 From Randolph Chung <tausq@debian.org>:
1136 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1137 compiles with -Wformat-nonliteral -Werror.
1139 2003-08-26 Jim Blandy <jimb@redhat.com>
1141 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1142 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1143 bfd_lookup_symbol, since we only want symbols in code sections.
1144 (look_for_base): Pass zero as the SECT_FLAGS argument to
1145 bfd_lookup_symbol, since we're not concerned about which section
1148 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1150 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1151 we are frameless or the return address register is already known.
1153 2003-08-26 Andrew Cagney <cagney@redhat.com>
1155 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1156 in size. Add comments.
1158 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1160 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1161 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1163 2003-08-26 Jason Merrill <jason@redhat.com>
1165 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1166 case out of #ifdef MIPS block.
1168 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1171 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1172 available before calling SECT_OFF_TEXT.
1173 * PROBLEMS: Remove description of java/1322.
1175 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1177 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1178 bof, and nat0-nat127 as pseudo-registers.
1179 (ia64_frame_cache): New struct used to cache frame info.
1180 (ia64_register_reggroup_p): New routine used to override default
1181 register grouping so registers without names are still saved and
1183 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1185 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1186 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1187 (ia64_alloc_frame_cache): New routine to create a new
1189 (examine_prologue): Change prototype to add next_frame pointer.
1190 Assume frameless until otherwise proven. Verify that the cfm for
1191 current frame matches the cfm that should occur for the prologues
1192 alloc insn and if equal, mark as not frameless. At end of routine,
1193 if not frameless, calculate registers for the previous frame and store
1194 in the cache, if a cache is provided.
1195 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1196 and pass 0 for next_frame.
1197 (ia64_store_return_value): Change to use convert_typed_floating()
1198 instead of calling ia64_convert_to_raw().
1199 (ia64_extract_return_value): Change to use convert_typed_floating()
1200 instead of calling ia64_convert_to_virtual().
1201 (ia64_frame_cache): New routine to support new frame model.
1202 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1203 (ia64_frame_sniffer): Ditto.
1204 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1205 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1206 (ia64_sigtramp_frame_prev_register): Ditto.
1207 (ia64_sigtramp_frame_sniffer): Ditto.
1208 (ia64_frame_base_address): Ditto.
1209 (ia64_extract_struct_value_address): Change to issue error message.
1210 (ia64_frame_align): New routine to align sp.
1211 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1212 (ia64_push_arguments): Removed. Logic moved to
1213 ia64_push_dummy_call().
1214 (ia64_push_return_address): Ditto.
1215 (ia64_unwind_dummy_id): New function.
1216 (ia64_unwind_pc): Ditto.
1217 (ia64_convert_register_p): Ditto.
1218 (ia64_register_to_value): Ditto.
1219 (ia64_value_to_register): Ditto.
1220 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1221 (ia64_register_byte, ia64_register_raw_size): Ditto.
1222 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1223 (ia64_saved_pc_after_call): Ditto.
1224 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1225 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1226 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1227 (ia64_register_convert_to_raw): Ditto.
1228 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1229 (ia64_init_extra_frame_info): Ditto.
1230 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1231 (ia64_gdbarch_init): Remove registering of deprecated functions that
1232 are no longer used. Add registration of new gdbarch functions.
1233 Remove registering deprecated_write_sp. Replace
1234 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1235 Delete set_gdbarch_deprecated_register_convertible(),
1236 set_gdbarch_deprecated_register_convert_to_virtual(), and
1237 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1238 set_gdbarch_deprecated_register_size(),
1239 set_gdbarch_deprecated_register_bytes(),
1240 set_gdbarch_pcregnum(),
1241 set_gdbarch_deprecated_register_byte(),
1242 set_gdbarch_deprecated_register_raw_size(),
1243 set_gdbarch_deprecated_max_register_raw_size(),
1244 set_gdbarch_deprecated_register_virtual_size(),
1245 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1246 Replace set_gdbarch_deprecated_extract_return_value() with
1247 set_gdbarch_extract_return_value(). Remove calls to:
1248 set_gdbarch_deprecated_saved_pc_after_call();
1249 set_gdbarch_deprecated_frame_chain(),
1250 set_gdbarch_deprecated_frame_saved_pc(),
1251 set_gdbarch_deprecated_frame_init_saved_regs(),
1252 set_gdbarch_deprecated_get_saved_register(),
1253 set_gdbarch_deprecated_call_dummy_words(),
1254 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1255 set_gdbarch_deprecated_init_extra_frame_info(),
1256 set_gdbarch_deprecated_frame_args_address(),
1257 set_gdbarch_deprecated_frame_locals_address(),
1258 and set_gdbarch_deprecated_dummy_write_sp().
1259 Add set_gdbarch_convert_register_p(),
1260 set_gdbarch_register_to_value(),
1261 set_gdbarch_value_to_register(),
1262 set_gdbarch_push_dummy_call(),
1263 set_gdbarch_frame_align(),
1264 set_gdbarch_unwind_dummy_id(),
1265 set_gdbarch_unwind_pc(),
1266 frame_unwind_append_sniffer(),
1267 frame_unwind_append_sniffer(),
1268 and frame_base_set_default().
1270 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1272 * configure.tgt: Document need for special "mipsisa64" handling.
1273 (mipsisa64*-*-linux64): Handle as target linux64.
1274 (mipsisa64*-*-*): Handle as target embed64.
1276 2003-08-18 Michael Chastain <mec@shout.net>
1278 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1281 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1283 * i387-tdep.h: Update copyright date.
1284 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1286 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1287 CFLAGS games to reflect reality.
1289 2003-08-24 Andrew Cagney <cagney@redhat.com>
1291 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1292 GDB_MULTI_ARCH is always non-zero.
1293 * osabi.c (_initialize_gdb_osabi): Ditto.
1294 (gdbarch_init_osabi): Ditto.
1295 * sparc-tdep.c: Ditto for #if code.
1297 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1299 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1301 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1303 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1304 x86_64_supply_fxsave.
1305 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1306 x86_64_supply_fxsave.
1307 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1308 x86_64_supply_fxsave.
1310 2003-08-23 Andreas Jaeger <aj@suse.de>
1312 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1315 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1317 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1318 i387_supply_register.
1319 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1320 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1322 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1324 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1326 * i386bsd-nat.c (supply_fpregset): Adjust call to
1328 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1329 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1331 (store_inferior_registers): Remove extraneous whitespace. Call
1332 i387_fill_fsave instead of fill_fpregset.
1333 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1334 (supply_fpregset): Likewise.
1335 * i386v4-nat.c (supply_fpregset): Adjust call to
1337 * i386-interix-nat.c (supply_fpregset): Adjust call to
1339 * i386-linux-nat.c (supply_fpregset): Adjust call to
1341 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1342 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1343 i387supply_fsave and i387_supply_fxsave.
1344 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1345 Incorporate code from `i387_supply_register.
1346 (i387_supply_register): Remove.
1347 (i387_supply_fxsave): Add `regnum' argument.
1349 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1351 (i387_supply_register): remove prototype.
1354 2003-08-22 Michael Chastain <mec@shout.net>
1356 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1357 Add lines for files in gdb/testsuite/gdb.cp/* that are
1358 still not 8.3 unique.
1360 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1362 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1363 TYPE_VPTR_FIELDNO is valid.
1365 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1367 * utils.c (set_width_command): Remove prototypes.
1368 (set_screen_size): New prototype.
1369 (init_page_info): Simplify by fetching the screen size from
1370 Readline. Call set_screen_size.
1371 (set_screen_size): New function.
1372 (set_width): Add missing whitespace in comment.
1373 (set_width_command): Call set_screen_size.
1374 (set_height_command): New function.
1375 (initialize_utils): Fix formatting. Make "set height" command
1376 call set_height_command. Remove redundant code that turns off
1377 pagination if output isn't a terminal. Remove redundant call to
1380 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1382 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1383 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1384 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1385 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1387 (sparc64_register_info): Give the reister with number
1388 SPARC64_STATE_REGNUM a name.
1389 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1391 (sparc64_push_dummy_call): Take BIAS into account when checking
1393 (sparc_software_single_step): Remove assertions that check whether
1394 NPC and NNPC were zero.
1395 (sparc_supply_rwindow): Make public. Merge functionality with
1396 sparc64_supply_rwindow.
1397 (sparc_fill_rwindow): Make public. Merge functionality with
1398 sparc64_fill_rwindow.
1399 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1400 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1401 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1402 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1403 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1405 * reggroups.c: Add whitespace after declarations of local
1406 variables in functions.
1408 2003-08-21 Michael Chastain <mec@shout.net>
1410 * gdbtypes.h: Change array bound type from an int to enum.
1412 2003-08-21 Andrew Cagney <cagney@redhat.com>
1414 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1415 * config/sparc/tm-sparc.h: Ditto.
1416 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1418 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1420 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1422 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1423 (register_objfile_data, set_objfile_data, objfile_data): New
1425 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1427 (allocate_objfile): Call objfile_alloc_data.
1428 (free_objfile): Call objfile_free_data.
1429 (struct objfile_data): New.
1430 (struct objfile_data_registration): New.
1431 (struct objfile_data_registry): New.
1432 (objfile_data_registry): New variable.
1433 (register_objfile_data): New function.
1434 (objfile_alloc_data, objfile_free_data): New functions.
1435 (set_objfile_data, objfile_data): New functions.
1436 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1437 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1438 (_initialize_dwarf2_frame): New function and prototype.
1440 2003-08-21 Andrew Cagney <cagney@redhat.com>
1442 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1443 a specific architecture.
1444 * arch-utils.h (set_architecture_from_arch_mach): Delete
1446 (target_architecture_hook): Delete declaration.
1447 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1448 (default_float_format): Assume GDB_MULTI_ARCH.
1449 (default_double_format): Assume GDB_MULTI_ARCH.
1450 (set_endian_from_file): Delete function.
1451 (arch_ok): Delete function.
1452 (set_arch): Delete function.
1453 (set_architecture_from_arch_mach): Delete function.
1454 (set_architecture_from_file): Delete function.
1455 (set_architecture): Assume GDB_MULTI_ARCH.
1456 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1458 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1460 Rewrite FreeBSD/sparc64 native configuration.
1461 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1462 * sparc64fbsd-nat.c: New file.
1463 * sparc64fbsd-tdep.c: New file.
1464 * sparc64-tdep.c sparc64-tdep.h: New files.
1465 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1466 sparc64fbsd-tdep.o): New dependencies.
1467 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1468 and sparc64fbsd-tdep.c.
1469 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1470 * config/sparc/fbsd.mh: Remove copyright notice.
1471 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1473 * config/sparc/fbsd.mt: Remove copyright notice.
1474 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1475 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1476 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1477 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1478 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1479 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1480 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1481 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1483 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1484 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1486 2003-08-21 Michael Chastain <mec@shout.net>
1488 * symtab.h: Add doco on the space critical structures and
1489 some measurements of space usage.
1491 2003-08-21 Michael Snyder <msnyder@redhat.com>
1493 * tracepoint.c (trace_dump_command): Trace break address
1494 is subject to DECR_PC_AFTER_BREAK.
1495 (set_traceframe_context): Make "trace_line" an int.
1496 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1498 2003-08-20 Michael Snyder <msnyder@redhat.com>
1500 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1501 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1502 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1504 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1505 functions, replace sh_push_dummy_call.
1506 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1508 2003-08-20 Michael Chastain <mec@shout.net>
1510 * gdbtypes.h (struct main_type): Rearrange to save space.
1512 2003-08-20 Michael Snyder <msnyder@redhat.com>
1514 * trad-frame.c: Comment typo fix.
1516 2003-08-20 Michael Snyder <msnyder@redhat.com>
1517 Kevin Buettner <kevinb@redhat.com>
1519 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1520 (frv_frame_init_saved_regs): Add declaration.
1521 (frame_extra_info): Add new field ``saved_regs''.
1522 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1523 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1524 Update frame related code.
1525 (frv_extract_struct_value_address): Adjust formatting.
1526 * Makefile.in (frv-tdep.o): Update dependencies.
1527 * config/frv/tm-frv.h (target_insert_watchpoint)
1528 (target_remove_watchpoint, target_insert_hw_breakpoint)
1529 (target_remove_hw_breakpoint): Delete these macros.
1530 (remote_insert_watchpoint, remote_remove_watchpoint)
1531 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1534 2003-08-20 Michael Chastain <mec@shout.net>
1536 * defs.h (ENUM_BITFIELD): New macro.
1537 * symtab.h (ENUM_BITFIELD): Use it.
1538 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1540 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1542 * MAINTAINERS (write after approval): Add myself.
1544 2003-08-18 Andrew Cagney <cagney@redhat.com>
1546 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1547 * gdbarch.h, gdbarch.c: Re-generate.
1548 * infcall.c (call_function_by_hand): Adjust the SP by
1549 frame_red_zone_size before allocating any stack space.
1550 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1551 * x86-64-tdep.c (x86_64_frame_align): New function.
1552 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1554 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1555 Remove code adjusting SP so that it skips over the Red Zone.
1557 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1559 * NEWS (New native configurations): Mention FreeBSD/amd64.
1561 2003-08-18 Andrew Cagney <cagney@redhat.com>
1563 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1564 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1566 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1568 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1570 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1572 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1574 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1576 * i386-linux-nat.c: Include "linux-nat.h".
1577 (child_post_startup_inferior): New function.
1579 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1581 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1582 at the start of a frameless function. This probably fixes PR
1585 2003-08-17 Michael Chastain <mec@shout.net>
1587 * symfile.c (find_sym_fns): Remove special case for apollo target.
1589 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1591 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1592 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1593 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1594 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1595 (linux_supports_tracevforkdone): New function.
1596 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1598 (child_follow_fork): Handle vfork.
1599 (linux_handle_extended_wait): Likewise. Also handle exec.
1600 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1601 * NEWS: Mention fork tracing.
1603 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1605 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1607 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1609 * Makefile.in (i386-linux-nat.o): Update dependencies.
1610 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1611 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1612 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1613 * i386-linux-nat.c: Include "linux-nat.h".
1614 (child_post_startup_inferior): New function.
1615 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1616 * infptrace.c (kill_inferior): Wrap in #ifdef.
1617 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1618 attaching to each LWP.
1619 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1620 (init_lin_lwp_ops): Fill in some more operations.
1621 * linux-nat.h (linux_enable_event_reporting)
1622 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1624 * linux-nat.c (linux_enable_event_reporting): New function.
1625 (child_post_attach, linux_child_post_startup_inferior)
1626 (child_post_startup_inferior, child_follow_fork)
1627 (linux_handle_extended_wait, kill_inferior): New functions.
1629 2003-08-16 Andrew Cagney <cagney@redhat.com>
1631 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1632 * gdbarch.h, gdbarch.c: Re-generate.
1634 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1636 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1638 2003-08-16 Andrew Cagney <cagney@redhat.com>
1640 * NEWS: Mention that "set prompt-escape-char" was deleted.
1641 * top.c (get_prompt_1): Delete function.
1642 (gdb_prompt_escape):
1643 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1644 prompt-escape-char" command.
1645 (MAX_PROMPT_SIZE): Delete macro.
1646 (get_prompt): Simplify, do not call get_prompt_1.
1648 2003-08-16 Andrew Cagney <cagney@redhat.com>
1650 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1651 -Werror. -Wformat-nonliteral problems.
1653 2003-08-15 J. Brobecker <brobecker@gnat.com>
1655 Further multiarching work mostly for hppa64-*-hpux11:
1656 * hppa-tdep.h: New file.
1657 * hppa-tdep.c: #include hppa-tdep.c.
1658 (hppa32_num_regs): Renamed from hppa_num_regs.
1659 (hppa64_num_regs): New constant.
1660 (hppa64_call_dummy_breakpoint_offset): New constant.
1661 (hppa32_call_dummy_length): New constant.
1662 (hppa64_call_dummy_length): New constant.
1663 (hppa32_stack_align): Make name 32bit explicit.
1664 (hppa32_register_virtual_type): Likewise.
1665 (hppa32_extract_return_value): Likewise.
1666 (hppa32_use_struct_convention): Likewise.
1667 (hppa32_store_return_value): Likewise.
1668 (hppa64_register_virtual_type): New function.
1669 (hppa64_extract_return_value): New function.
1670 (hppa64_use_struct_convention): New function.
1671 (hppa64_store_return_value): New function.
1672 (hppa_frame_locals_address): Remove declaration, function does
1674 (hppa_register_byte): Add support for PA64 ABI.
1675 (hppa_gdbarch_init): Add support for PA64 ABI.
1676 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1677 Make name 32bit explicit.
1678 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1679 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1680 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1681 (hppa64_hpux_frame_base_before_sigtramp): New function.
1682 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1683 * config/pa/tm-hppa64.h: Remove macros that are no longer
1684 necessary now that the gdbarch vector is properly setup.
1685 Transform some macros into function calls. Some minor cleanup.
1686 * config/pa/tm-hppah.h: Update function calls in macros
1687 following the function renaming in hppa-hpux-tdep.c.
1688 * Makefile.in (hppa_tdep_h): New variable.
1689 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1691 2003-08-14 Michael Snyder <msnyder@redhat.com>
1693 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1695 2003-08-13 J. Brobecker <brobecker@gnat.com>
1697 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1698 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1701 2003-08-13 Michael Snyder <msnyder@redhat.com>
1703 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1704 (frv_saved_pc_after_call): Use deprecated ftype.
1705 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1706 (frv_remote_translate_xfer_address): Remove.
1707 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1709 2003-08-13 J. Brobecker <brobecker@gnat.com>
1711 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1712 initialization after the common gdbarch initialization, not before.
1714 2003-08-13 J. Brobecker <brobecker@gnat.com>
1716 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1717 (ADDR_BITS_REMOVE): Remove, redundant.
1719 2003-08-13 J. Brobecker <brobecker@gnat.com>
1721 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1722 gdbarch method to clear the 2 low bits of text addresses.
1724 2003-08-12 Andrew Cagney <cagney@redhat.com>
1726 * Makefile.in (dsrec.o): Update dependencies.
1727 * dsrec.c: Include "gdb_assert.h".
1728 (make_srec): Use snprintf instead of sprintf, use a literal format
1731 2003-08-12 Andrew Cagney <cagney@redhat.com>
1733 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1734 FRAME_OBSTACK_ZALLOC.
1736 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1738 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1741 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1743 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1744 amd64fbsd_sc_reg_offset): Add extern declarations.
1745 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1748 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1750 * MAINTAINERS (write after approval): Update my mail address.
1752 2003-08-10 Andrew Cagney <cagney@redhat.com>
1754 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1756 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1758 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1759 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1760 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1761 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1762 i386bsd_sc_reg_offset): Add extern declarations.
1763 * i386obsd-nat.c: Include "i386-tdep.h"
1764 (_initialize_i386obsd_nat): Remove extern declarations.
1765 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1767 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1770 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1771 instead of frame_read_register.
1772 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1773 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1775 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1776 instead of frame_unwind_unsigned_register. Use
1777 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1778 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1779 instead of read_register. Use builtin_type_void_data_ptr instead
1780 of builtin_type_void_func_ptr when extracting the address of the
1782 (i386_extract_return_value, i386_store_return_value,
1783 i386_pseudo_register_read, i386_pseudo_register_write): Use
1784 register_size instead REGISTER_RAW_SIZE.
1786 2003-08-10 Andrew Cagney <cagney@redhat.com>
1788 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1789 sprintf. Make "name" constant.
1791 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1793 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1794 instead of frame_read_register.
1795 (i387_print_float_info): Use get_frame_register and
1796 get_frame_register_unsigned instead of frame_register_read.
1798 * i386fbsd-nat.c: Include "i386-tdep.h".
1799 (child_resume): Make `eflags' an ULONGEST. Use
1800 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1801 instead of register_read and register_write.
1803 * i386bsd-nat.c (fetch_inferior_registers,
1804 store_inferior_registers): Don't use && at the end of a line.
1805 (_initialize_i386bsd_nat): Fix typo.
1807 * frame.c (_initialize_frame): Add missing backslash.
1809 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1810 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1811 and supply_register instead of manipulating the register buffer
1814 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1815 * config/i386/nm-i386sol2.h
1816 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1818 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1819 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1820 instructions that GCC likes to mingle into the prologue. Fixes
1821 gdb/1253 and gdb/1255.
1823 2003-08-09 Andrew Cagney <cagney@redhat.com>
1826 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1827 * command.h (add_setshow_uinteger_cmd): Declare.
1828 * frame.c (set_backtrace_cmd): New function.
1829 (show_backtrace_cmd): New function.
1830 * frame.c (_initialize_frame): Replace "set/show
1831 backtrace-below-main" with "set/show backtrace past-main". Add
1832 command "set/show backtrace limit".
1833 (backtrace_past_main): Rename "backtrace_below_main".
1834 (backtrace_limit): New variable.
1835 (get_prev_frame): Update. Check the backtrace_limit.
1837 2003-08-09 Andrew Cagney <cagney@redhat.com>
1839 * defs.h (xstrprintf): Declare.
1840 * utils.c (xstrprintf): New function.
1841 * breakpoint.c (insert_breakpoints): Replace sprintf and
1842 non-literal format strings, with xstrprintf and cleanups.
1843 (delete_breakpoint,breakpoint_re_set): Ditto.
1844 (commands_command, insert_breakpoints): Ditto.
1845 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1846 (break_at_finish_command_1): Ditto.
1848 2003-08-09 Andrew Cagney <cagney@redhat.com>
1850 * MAINTAINERS (language support): List Adam Fedor as Objective C
1853 2003-08-08 J. Brobecker <brobecker@gnat.com>
1855 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1856 are now multiarched.
1858 2003-08-08 J. Brobecker <brobecker@gnat.com>
1860 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1861 longer necessary now that hppa64 is partially multiarch'ed.
1863 2003-08-08 Andrew Cagney <cagney@redhat.com>
1865 * interps.c (interp_set): Check for a NULL "old_interp".
1867 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1869 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1870 (install-only): Support DESTDIR.
1871 (uninstall): Likewise.
1872 (install-gdbtk): Likewise.
1874 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1876 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1877 contains something meaningful at all times.
1879 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1881 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1883 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1885 * MAINTAINERS (write after approval): Added self.
1887 2003-08-07 Andrew Cagney <cagney@redhat.com>
1889 * inferior.h (AT_SYMBOL): Define.
1890 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1891 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1892 * mips-tdep.c (mips_call_dummy_address): Delete function.
1893 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1894 set call_dummy_address.
1896 2003-08-07 Andrew Cagney <cagney@redhat.com>
1898 * language.c (op_error): Delete function.
1899 (binop_type_check): Delete function.
1900 * language.h (type_op_error, range_op_error): Delete macros.
1901 (op_error): Delete declaration.
1903 2003-08-07 Andrew Cagney <cagney@redhat.com>
1905 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1907 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1909 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1910 (x86_64_push_arguments): Skip the red zone.
1912 2003-08-05 Andrew Cagney <cagney@redhat.com>
1914 * reggroups.c (reggroup_next): Check for the final entry.
1916 2003-08-04 Andrew Cagney <cagney@redhat.com>
1918 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1919 * cli/cli-script.c (define_command): Call query directly, instead
1920 of passing it a buffer.
1921 * ocd.c (ocd_error): Pass error a constant format string.
1922 * remote-mips.c (mips_error): Use fputs_filtered.
1924 * solib-svr4.c (_initialize_svr4_solib): Update
1925 register_gdbarch_data call.
1926 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1928 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1929 (register_gdbarch_data): Delete "free" parameter. Update
1931 * gdbarch.h, gdbarch.c: Re-generate.
1932 * reggroups.c (_initialize_reggroup): Update.
1933 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1934 * frame-base.c (_initialize_frame_base): Update.
1935 * frame-unwind.c (_initialize_frame_unwind): Update.
1936 * user-regs.c (_initialize_user_regs): Update.
1937 * remote.c (_initialize_remote): Update.
1938 * regcache.c (_initialize_regcache): Update.
1940 * regcache.c (xfree_regcache_descr): Delete function.
1941 (_initialize_regcache): Update call to register_gdbarch_data.
1942 (init_regcache_descr, init_legacy_regcache_descr): Use
1943 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1945 * remote.c (free_remote_state): Delete function.
1946 (_initialize_remote): Update register_gdbarch_data.
1947 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1948 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1950 2003-08-04 Andrew Cagney <cagney@redhat.com>
1952 * reggroups.c (struct reggroup_el): Define.
1953 (struct reggroups): Delete field "nr_group". Replace array
1954 "group" with a "first" to "last" linked list.
1955 (reggroups_init): Update. Allocate using gdbarch's obstack.
1956 (reggroups_free): Delete function.
1957 (add_group): Update. Add "el" parameter.
1958 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1959 (default_groups): Update.
1960 (reggroup_next): Replace reggroups.
1961 (reggroups_dump): Update.
1962 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1963 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1964 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1966 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1968 * Makefile.in (tui-interp.o): Update dependencies.
1970 2003-08-04 David Carlton <carlton@kealia.com>
1972 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1973 to internal_error call.
1974 * source.c (forward_search_command): Add "%s" format argument.
1975 (reverse_search_command): Ditto.
1976 * top.c (quit_confirm): Ditto.
1977 * cli/cli-setshow.c (do_setshow_command): Ditto.
1978 * cp-valprint.c (cp_print_class_method): Replace
1979 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1980 (cp_print_class_member): Ditto.
1981 * event-top.c (command_line_handler): Ditto.
1982 * linux-proc.c (linux_info_proc_cmd): Ditto.
1983 * p-typeprint.c (pascal_type_print_base): Ditto.
1984 * p-valprint.c (pascal_object_print_class_method): Ditto.
1985 (pascal_object_print_class_member): Ditto.
1986 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1987 * remote.c (remote_cisco_section_offsets): Ditto.
1988 * top.c (command_line_input): Ditto.
1989 * utils.c (vwarning,error_stream,quit): Ditto.
1990 * valprint.c (print_floating,print_binary_chars)
1991 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1993 2003-08-04 Andrew Cagney <cagney@redhat.com>
1995 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1997 2003-08-02 Andrew Cagney <cagney@redhat.com>
1999 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2000 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2003 2003-08-02 Andrew Cagney <cagney@redhat.com>
2005 * Makefile.in: Update all dependencies and definitions.
2007 2003-08-02 Adam Fedor <fedor@gnu.org>
2009 * linespec.c (is_objc_method_format): New function
2010 (decode_line_1, locate_first_half): Use it.
2013 2003-08-01 Andrew Cagney <cagney@redhat.com>
2015 * NEWS: Mention that m32r is multi-arch.
2016 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2017 * configure.tgt: Recognize m32r-*-*.
2018 * config/m32r/tm-m32r.h: Delete file.
2019 * config/m32r/m32r.mt: New file.
2020 * m32r-rom.c (m32r_upload_command): Use hostent only when
2021 gethostname succeeds, in order to avoid a compilation
2023 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2026 2003-08-01 Michael Snyder <msnyder@redhat.com>
2028 * sh-tdep.c (sh_frame_align): New gdbarch method.
2029 (sh_gdbarch_init): Set up frame_align method.
2031 2003-07-31 Michael Snyder <msnyder@redhat.com>
2033 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2034 which is already covered by the new frames infrastructure.
2036 2003-07-31 Andrew Cagney <cagney@redhat.com>
2038 * user-regs.c (struct user_reg): Add "next" link.
2039 (struct user_regs): Replace "user" with "first" and "last" links.
2040 (append_user_reg): Add pre-allocated "reg" parameter.
2041 (builtin_user_regs): Provide initial value for "last".
2042 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2043 (user_regs_init): Allocate memory from the gdbarch obstack.
2044 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2045 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2047 (usernum_to_user_reg): New function.
2048 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2049 (value_of_user_reg): Use usernum_to_user_reg.
2050 (user_regs_free): Delete function.
2051 (_initialize_user_regs): Update register_gdbarch_data call.
2053 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2055 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2057 2003-07-30 Michael Snyder <msnyder@redhat.com>
2059 * value.h (value_being_returned): Add a struct_addr argument.
2060 * infcall.c (call_function_by_hand): Pass struct_addr to
2061 value_being_returned.
2062 * infcmd.c (print_return_value): Pass zero as struct_addr.
2063 * values.c (value_being_returned): If struct_addr is passed,
2064 use it instead of trying to recover it from the inferior.
2066 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2068 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2069 the prologue analyzer won't need to attempt to extract the pc
2070 value from the woefully incomplete dummy frame.
2071 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2072 possible. Disable code which modifies the frame.
2074 2003-07-28 Andrew Cagney <cagney@redhat.com>
2076 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2078 (annotate_breakpoints_table, annotate_record): Ditto.
2079 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2080 (annotate_field_name_end, annotate_field_value): Ditto.
2081 (annotate_field_end, annotate_frame_source_begin): Ditto.
2082 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2083 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2084 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2085 (annotate_frame_address_end, annotate_frame_address): Ditto.
2086 (annotate_frame_args, annotate_frame_end): Ditto.
2087 (annotate_frame_where, annotate_arg_begin): Ditto.
2088 (annotate_arg_name_end, annotate_arg_value): Ditto.
2089 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2090 (annotate_function_call, annotate_signal_name): Ditto.
2091 (annotate_signal_string, annotate_signal_name_end): Ditto.
2092 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2093 (annotate_value_begin, annotate_value_history_value): Ditto.
2094 (annotate_value_history_end, annotate_value_end): Ditto.
2095 (annotate_display_begin, annotate_display_number_end): Ditto.
2096 (annotate_display_format, annotate_display_expression): Ditto.
2097 (annotate_display_expression_end, annotate_display_value): Ditto.
2098 (annotate_display_end, annotate_array_section_begin): Ditto.
2099 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2100 (annotate_elt, annotate_array_section_end): Ditto.
2102 2003-07-28 Andrew Cagney <cagney@redhat.com>
2104 * regcache.c (struct regcache_descr): Update comments on
2106 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2107 sizeof_raw_register_valid_p.
2108 (init_regcache_descr): Set nr_raw_registers and
2109 sizeof_raw_register_valid_p before calling
2110 init_legacy_regcache_descr.
2112 2003-07-28 Andrew Cagney <cagney@redhat.com>
2114 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2117 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2119 * thread.c (info_threads_command): Use get_selected_frame ().
2120 Check that there is at least one non-sentinel frame.
2122 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2124 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2125 (m68hc11_pop_frame): Remove.
2126 (m68hc11_frame_saved_pc): Remove.
2127 (m68hc11_frame_chain): Remove.
2128 (m68hc11_frame_init_saved_regs): Remove.
2129 (m68hc11_init_extra_frame_info): Remove.
2130 (m68hc11_store_struct_return): Remove.
2131 (m68hc11_saved_pc_after_call): Remove.
2133 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2135 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2136 frame unwind information.
2137 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2138 and adapted for frame unwinding.
2139 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2140 (m68hc11_unwind_pc): New function.
2141 (m68hc11_frame_unwind_cache): New function to analyze frames.
2142 (m68hc11_frame_this_id): New function to create new frame struct.
2143 (m68hc11_frame_prev_register): New function to unwind a register from
2145 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2146 (m68hc11_frame_p): New function for the above.
2147 (m68hc11_frame_base_address): New function to return fp of frame.
2148 (m68hc11_frame_args_address): Update for frame.
2149 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2150 (m68hc11_unwind_sp): New function.
2151 (m68hc11_unwind_dummy_id): New function.
2152 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2155 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2157 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2158 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2159 when we are beyond the current pc.
2161 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2163 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2164 from m68hc11_push_arguments.
2165 (m68hc11_push_arguments): Remove.
2166 (m68hc11_push_return_address): Remove.
2167 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2168 handlers; remove deprecated_extra_stack_alignment_needed.
2170 2003-07-27 Andrew Cagney <cagney@redhat.com>
2172 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2173 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2174 REAL_PC and not the pointer.
2175 * hppa-hpux-tdep.c: Include frame.h
2177 2003-07-27 Andrew Cagney <cagney@redhat.com>
2179 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2180 GDB_MULTI_ACH_PARTIAL.
2182 2003-07-27 Andrew Cagney <cagney@redhat.com>
2184 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2185 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2186 operator at start and not end of line.
2187 (decode_prologue): Ditto.
2188 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2189 frame_unwind_register_unsigned instead of
2190 frame_unwind_unsigned_register.
2191 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2193 (m32r_push_dummy_call): Use register_size instead of
2195 (m32r_frame_sniffer): Replace m32r_frame_p.
2196 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2197 * m32r-rom.c (report_transfer_performance): Delete extern
2199 (m32r_load, m32r_upload_command): Use print_transfer_performance
2200 instead of report_transfer_performance.
2201 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2202 / add_show_from_set.
2204 2003-07-26 Andrew Cagney <cagney@redhat.com>
2206 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2207 store_return_value and extract_struct_value_address.
2209 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2212 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2213 NULL, default to the section containing PC.
2215 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2217 * NEWS: Mention "regs" deprecated for m68hc11 too.
2219 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2220 (m68hc11_print_register): New function to print out one register.
2221 (m68hc11_print_registers_info): New function to print registers.
2222 (show_regs): Deprecate and use the above.
2223 (m68hc11_gdbarch_init): Install the print_registers_info.
2225 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2227 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2228 that we have a SIGTRAP before returning non-zero.
2230 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2231 Elena Zannoni <ezannoni@redhat.com>
2233 * linespec.c (decode_line_2): Avoid crash if
2234 find_function_start_sal() returns empty record.
2236 2003-07-23 Andreas Schwab <schwab@suse.de>
2238 * ia64-tdep.c (ia64_print_insn): New function.
2239 (ia64_gdbarch_init): Set print_insn to it.
2240 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2241 deprecated_tm_print_insn_info.
2243 2003-07-22 Michael Snyder <msnyder@redhat.com>
2245 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2246 handle 8-bit returns (long long).
2247 (h8300h_extract_return_value): Ditto.
2248 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2250 2003-07-22 Andrew Cagney <cagney@redhat.com>
2252 * gdbarch.c Include "gdb_obstack.h".
2253 (struct gdbarch): Add an "obstack".
2254 (alloc_gdbarch_data): Allocate the gdbarch data using
2255 GDBARCH_OBSTACK_CALLOC.
2256 (free_gdbarch_data): Delete function.
2257 (gdbarch_obstack_zalloc): New function.
2258 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2259 Assert that the architecture is not initialized.
2260 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2261 vector from the obstack.
2262 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2263 architecture obstack.
2264 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2265 (set_gdbarch_data): Assert that the data is not initialized.
2266 (struct gdbarch_data): Delete member "free".
2267 (register_gdbarch_data): Do not initialize "free".
2268 * gdbarch.h, gdbarch.c: Re-generate.
2270 2003-07-22 Andrew Cagney <cagney@redhat.com>
2272 * configure.in (build_warnings): Add -Wformat-nonliteral.
2273 * configure: Re-generate.
2275 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2277 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2279 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2281 * findvar.c (read_var_value): Remove case for thread local storage
2282 variables. It is now entirely handled by the dwarf2 location
2284 * printcmd.c (address_info): Ditto.
2285 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2287 (struct symbol): Remove objfile field, which was used by
2288 LOC_THREAD_LOCAL_STATIC only.
2289 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2290 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2291 usage of objfile pointer.
2292 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2293 thread local variables.
2294 Add include of objfiles.h.
2295 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2297 * Makefile.in (dwarf2loc.o): Update dependencies.
2299 2003-07-22 Andrew Cagney <cagney@redhat.com>
2301 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2303 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2304 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2305 (struct value): Add opaque declaration.
2306 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2308 2003-07-21 Andrew Cagney <cagney@redhat.com>
2310 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2311 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2313 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2315 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2316 regcache_cooked_read_unsigned instead of read_register.
2317 (m68hc11_saved_pc_after_call): Likewise.
2318 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2319 instead of write_register.
2320 (m68hc11_register_type): New function.
2321 (m68hc11_register_virtual_type): Remove.
2322 (m68hc11_store_return_value): Convert to use the regcache.
2323 (m68hc11_extract_struct_value_address): Likewise.
2324 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2325 m68hc11_register_type; undeprecate store_return_value and
2326 extract_struct_value_address.
2328 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2330 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2331 and translate to use regcache.
2332 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2334 2003-07-18 Andrew Cagney <cagney@redhat.com>
2336 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2337 * gdbarch.h, gdbarch.c: Re-generate.
2338 * i386-tdep.c (i386_gdbarch_init): Do not set
2339 DWARF2_BUILD_FRAME_INFO.
2340 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2342 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2343 DWARF2_BUILD_FRAME_INFO.
2345 2003-07-18 Andrew Cagney <cagney@redhat.com>
2347 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2348 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2350 2003-07-18 Andrew Cagney <cagney@redhat.com>
2352 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2353 frame_unwind_address_in_block, instead of frame_pc_unwind.
2354 (dwarf2_frame_cache): Ditto.
2356 2003-07-18 Andrew Cagney <cagney@redhat.com>
2358 * user-regs.h (struct gdbarch): Declare opaque.
2359 * ui-out.h (struct ui_file): Declare opaque.
2360 * dwarf2-frame.h (struct frame_info): Declare opaque.
2362 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2364 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2366 (procfs_meminfo): Change strerror to safe_strerror.
2367 (procfs_can_run): Remove K&R badness.
2369 2003-07-17 Michael Snyder <msnyder@redhat.com>
2371 * remote-sim.c: Comment typo fix.
2373 2003-07-17 Andrew Cagney <cagney@redhat.com>
2375 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2377 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2378 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2379 GDB_MULTI_ARCH_PARTIAL.
2381 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2383 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2384 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2385 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2387 2003-07-16 Theodore A. Roth <troth@openavr.org>
2389 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2391 (avr_frame_unwind_cache): Don't unwind FP for main.
2393 Save the computed prev_sp.
2394 (avr_saved_regs_unwinder): Remove function.
2395 (avr_frame_prev_register): Use PC unwind logic from
2396 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2398 2003-07-16 Andrew Cagney <cagney@redhat.com>
2400 * frame-base.h (frame_base_p_ftype): Delete definition.
2401 (frame_base_append_predicate): Delete declaration.
2402 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2403 (frame_unwind_append_predicate): Delete declaration.
2404 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2405 (append_predicate): Delete parameter "p".
2406 (frame_unwind_append_predicate): Delete function.
2407 (frame_unwind_append_sniffer): Update call to append_predicate.
2408 (frame_unwind_free): Delete function.
2409 (_initialize_frame_unwind): Pass NULL as "free" to
2410 register_gdbarch_data.
2411 (frame_unwind_init): Append the dummy_frame_sniffer.
2412 (frame_unwind_find_by_frame): Simplify.
2413 * frame-base.c (struct frame_base_table): Delete field "p".
2414 (append_predicate): Delete parameter "p".
2415 (frame_base_append_predicate): Delete function.
2416 (frame_base_append_sniffer): Update call to append_predicate.
2417 (frame_base_free): Delete function.
2418 (frame_base_find_by_frame): Simplify.
2419 (_initialize_frame_base): Pass NULL as "free" to
2420 register_gdbarch_data.
2421 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2422 (x86_64_sigtramp_frame_sniffer): Replace
2423 "x86_64_sigtramp_frame_p".
2424 (x86_64_init_abi): Set the frame unwind sniffers.
2425 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2426 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2427 (m68k_gdbarch_init): Set the frame unwind sniffers.
2428 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2429 "i386_sigtramp_frame_p".
2430 (i386_frame_sniffer): Replace "i386_frame_p".
2431 (i386_gdbarch_init): Set the frame unwind sniffers.
2432 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2433 (avr_gdbarch_init): Set the frame unwind sniffers.
2434 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2435 "alpha_sigtramp_frame_p"
2436 (alpha_heuristic_frame_sniffer): Replace
2437 "alpha_heuristic_frame_p".
2438 (alpha_gdbarch_init): Set the frame unwind sniffers.
2439 (alpha_dwarf2_init_abi): Ditto.
2440 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2441 "alpha_debug_frame_p".
2442 (alpha_mdebug_frame_base_sniffer): Replace
2443 "alpha_mdebug_frame_base_p".
2444 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2445 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2446 (d10v_gdbarch_init): Set the frame unwind sniffer.
2447 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2448 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2449 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2450 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2451 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2452 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2454 2003-07-16 Michael Snyder <msnyder@redhat.com>
2456 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2457 should go thru sh_dsp_register_sim_regno, else the dsp regs
2458 will not get the right values.
2460 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2462 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2463 deprecated_store_floating by call to store_typed_floating.
2464 (sh_sh4_register_convert_to_raw): Substitute call to
2465 deprecated_extract_floating by call to extract_typed_floating.
2467 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2469 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2471 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2473 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2474 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2475 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2477 (do_pseudo_register): Remove.
2478 (sh_push_dummy_code): New function.
2479 (sh64_store_struct_return): Rename from sh_store_struct_return.
2480 Only called for sh64 now.
2481 (sh_extract_struct_value_address): Regcache'ify.
2482 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2483 and accomodate new tasks.
2484 (sh64_push_return_address): Rename from sh_push_return_address.
2485 Only called for sh64 now.
2486 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2488 (sh3e_sh4_extract_return_value): Regcache'ify.
2489 (sh_default_store_return_value): Ditto.
2490 (sh3e_sh4_store_return_value): Ditto.
2491 (sh_default_register_byte): Remove.
2492 (sh_sh4_register_byte): Remove.
2493 (sh_default_register_raw_size): Remove.
2494 (sh_sh4_register_raw_size): Remove.
2495 (sh_register_virtual_size): Remove.
2496 (sh_sh3e_register_virtual_type): Remove.
2497 (sh_sh3e_register_type): New function.
2498 (sh_sh4_register_virtual_type): Remove.
2499 (sh_sh4_register_type): New function.
2500 (sh_default_register_virtual_type): Remove.
2501 (sh_default_register_type): New function.
2502 (do_fv_register_info): Add parameters to accomodate call from
2503 sh_print_registers_info.
2504 (do_dr_register_info): Ditto.
2505 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2506 Add parameters to accomodate call from sh_print_registers_info.
2507 (sh_do_fp_register): Ditto.
2508 (sh64_do_pseudo_register): Call do_dr_register_info,
2509 do_fv_register_info and sh_do_fp_register with default parameters.
2510 (sh_do_register): Add parameters to accomodate call from
2511 sh_print_registers_info.
2512 (sh_print_register): Ditto.
2513 (sh_print_registers_info): Rename from sh_do_registers_info.
2514 Add parameters to be used as gdbarch_print_registers_info
2515 implementation. Accomodate removed do_pseudo_register function
2517 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2518 function pointer. Call sh_print_register with default parameters.
2519 (sh64_do_registers_info): Call sh_print_registers_info instead of
2520 sh_do_registers_info.
2521 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2522 detection of deprecated vs. non-deprecated functionality.
2523 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2524 function pointer assignments by direct function calls.
2526 2003-07-15 Andrew Cagney <cagney@redhat.com>
2528 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2529 (frame_register_unwind, create_new_frame): Ditto.
2530 (legacy_get_prev_frame, get_frame_type): Ditto.
2531 (get_frame_base_address): Use frame_base_find_by_frame.
2532 (get_frame_locals_address): Use frame_base_find_by_frame.
2533 (get_frame_args_address): Use frame_base_find_by_frame.
2534 * frame-base.h (frame_base_sniffer_ftype): Declare.
2535 (frame_base_append_sniffer): Declare.
2536 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2537 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2538 (frame_base_append_sniffer): New function.
2539 (frame_base_append_predicate): Add a NULL sniffer.
2540 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2541 (struct frame_base_table): Add "sniffer".
2542 (frame_base_free): Free the "sniffer" table.
2543 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2544 (frame_unwind_append_sniffer): Declare.
2545 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2546 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2547 (struct frame_unwind_table): Add "sniffer", delete "middle".
2548 (append_predicate): Add "sniffer" parameter, append the sniffer.
2549 (frame_unwind_init): Update append_predicate call.
2550 (frame_unwind_append_sniffer): New function.
2551 (frame_unwind_append_predicate): Update append_predicate call.
2552 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2554 2003-07-15 Andrew Cagney <cagney@redhat.com>
2556 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2557 before code inhibiting repeated unwind attempts. Add to
2558 commentary on that test's problems.
2559 * blockframe.c (inside_main_func): Look for "main" in the minimal
2561 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2564 2003-07-15 Andrew Cagney <cagney@redhat.com>
2566 * complaints.c (struct explanation): Define.
2567 (struct complaints): Change type of "explanation" to "struct
2569 (symfile_explanations): Convert to a "struct explanation" table.
2570 (vcomplaint): Update.
2572 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2574 * x86-64-linux-nat.c (regmap): Removed.
2575 (supply_gregset, fill_gregset): Call
2576 x86_64_linux_(fill,supply)_gregset functions.
2577 * x86-64-linux-tdep.c (USER_*): New defines.
2578 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2579 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2581 (fetch_core_registers): Ditto.
2582 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2583 * x86-64-linux-tdep.h: New file.
2584 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2586 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2588 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2590 * x86-64-tdep.c (x86_64_store_return_value): Use
2591 regcache_cooked_write_part instead of regcache_cooked_write.
2593 * configure.host: Add x86_64-*-freebsd*.
2594 * configure.tgt: Add x86_64-*-freebsd*.
2595 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2596 * amd64fbsd-nat.c: New file.
2597 * amd64fbsd-tdep.c: New file.
2598 * config/i386/nm-fbsd64.h: New file.
2599 * config/i386/fbsd64.mh: New file.
2600 * config/i386/fbsd64.mt: New file.
2602 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2604 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2605 `sc_regs_offset' and `sc_fpregs_offset'.
2606 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2607 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2608 (alpha_sigtramp_register_address): Rewrite to use new members of
2609 `struct gdbarch_tdep'.
2610 (alpha_gdbarch_init): Initialize new members of struct
2612 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2613 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2614 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2615 (alphafbsd_pc_in_sigtramp): Implement.
2616 (alphafbsd_sigtramp_offset): New function.
2617 (alphafbsd_sigcontext_addr): New function.
2618 (alphafbsd_init_abi): Initialize signal trampoline related members
2619 of `struct gdbarch_tdep'.
2620 (_initialize_alphafbsd_tdep): Add prototype.
2622 2003-07-11 Theodore A. Roth <troth@openavr.org>
2624 * Makefile.in (install-only): Quote sed expression when generating
2627 2003-07-11 Richard Henderson <rth@redhat.com>
2629 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2630 * dwarf2-frame.c: Include complaints.h.
2631 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2632 variable initialization; return NULL on error.
2633 (decode_frame_entry): New.
2635 2003-07-11 Andrew Cagney <cagney@redhat.com>
2637 * frame.h (frame_address_in_block): Delete declaration.
2638 * blockframe.c (frame_address_in_block): Delete function.
2639 (get_frame_block): Use get_frame_address_in_block.
2640 (block_innermost_frame): Ditto.
2641 * stack.c (print_frame, backtrace_command_1): Ditto.
2643 * frame.h (get_frame_address_in_block): Declare.
2644 (frame_unwind_address_in_block): Declare.
2645 * frame.c (frame_unwind_address_in_block): New function.
2646 (get_frame_address_in_block): New function.
2648 2003-07-10 Andrew Cagney <cagney@redhat.com>
2650 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2651 pre-default. Note: re-generate has no effect.
2653 2003-07-10 Andrew Cagney <cagney@redhat.com>
2655 * gdbarch.sh: When a variable, but not a function, compare against
2656 0. Fix problem in previous patch.
2657 * gdbarch.c: Re-generate.
2659 2003-07-10 Andrew Cagney <cagney@redhat.com>
2661 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2662 functions against NULL, not 0.
2663 * gdbarch.c: Re-generate.
2665 2003-07-10 Fred Fish <fnf@ninemoons.com>
2667 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2668 null string instead of a null pointer.
2669 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2671 2003-07-09 Michael Snyder <msnyder@redhat.com>
2673 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2675 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2677 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2678 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2679 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2680 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2681 * x86-64-tdep.c: ... from here.
2683 2003-07-09 Andreas Schwab <schwab@suse.de>
2685 * m68k-tdep.h (enum struct_return): Define.
2686 (struct gdbarch_tdep): Add struct_return.
2687 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2688 bytes are padded to the right, not to the left. Pass struct value
2689 address in register %a1, not on stack.
2690 (m68k_use_struct_convention): New function.
2691 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2692 struct_return in tdep to pcc_struct_return.
2693 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2696 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2698 * somread.c (som_symfile_offsets): Fix compilation error.
2700 2003-07-09 Andrew Cagney <cagney@redhat.com>
2702 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2703 Add comments about the checks.
2705 2003-07-08 Andrew Cagney <cagney@redhat.com>
2707 * Makefile.in: Make dependency section headers consistent.
2708 (config_h): Move to $BUILD headers section.
2709 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2710 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2711 (ada-exp.tab.c): Move to YACC/LEX section.
2712 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2713 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2715 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2717 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2718 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2719 of strerror with safe_strerror, use ISO C function definitions,
2720 and replace instances of sprintf with snprintf.
2722 2003-07-07 Andrew Cagney <cagney@redhat.com>
2724 * frame.c (get_prev_frame): Enable check for identical frames.
2725 Update comments. Update error messages.
2727 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2729 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2731 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2733 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2734 sort_symtab_syms, no longer necessary.
2736 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2738 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2740 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2742 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2743 (mips_register_byte): Likewise.
2745 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2747 * Makefile.in (sparc_tdep_h): New.
2748 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2749 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2750 * sparc-linux-nat.c: Include "sparc-tdep.h".
2751 * sparc-nat.c: Likewise.
2752 * sparc-tdep.c: Likewise.
2753 * sparc64nbsd-nat.c: Likewise.
2754 * sparcnbsd-nat.c: Likewise.
2755 * sparcnbsd-tdep.c: Likewise.
2756 * sparc-tdep.h: New file.
2757 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2758 and sparc_npc_regnum.
2760 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2762 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2763 (mips_linux_cannot_store_register): List supported instead of
2764 unsupported registers.
2766 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2768 * disasm.c (dump_insns): Separate instructions from addresses.
2770 2003-07-07 Andreas Schwab <schwab@suse.de>
2772 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2774 * m68k-tdep.c (NUM_FREGS): Delete.
2775 (SIG_PC_FP_OFFSET): Delete.
2776 (TARGET_M68K): Delete.
2777 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2778 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2779 P_MOVEL_SP, P_MOVEML_SP): Define.
2780 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2782 (m68k_register_raw_size): Delete.
2783 (m68k_register_virtual_size): Delete.
2784 (m68k_register_type): Renamed from m68k_register_virtual_type and
2785 add gdbarch argument.
2786 (m68k_store_struct_return): Delete.
2787 (m68k_deprecated_extract_return_value): Delete.
2788 (m68k_deprecated_extract_struct_value_address): Delete.
2789 (m68k_frame_chain): Delete.
2790 (m68k_frame_saved_pc): Delete.
2791 (m68k_fix_call_dummy): Delete.
2792 (m68k_push_dummy_frame): Delete.
2793 (m68k_pop_frame): Delete.
2794 (m68k_extract_return_value): New function.
2795 (m68k_store_return_value): Rewrite using regcache.
2796 (m68k_extract_struct_value_address): Rewrite using regcache.
2797 (m68k_push_dummy_call): New function.
2798 (struct m68k_frame_cache): Define.
2799 (m68k_alloc_frame_cache): New function.
2800 (m68k_analyze_frame_setup): New function.
2801 (m68k_analyze_register_saves): New function.
2802 (m68k_analyze_prologue): New function.
2803 (m68k_skip_prologue): Rewrite using above functions.
2804 (m68k_unwind_pc): New function.
2805 (m68k_frame_cache): New function.
2806 (m68k_frame_this_id): New function.
2807 (m68k_frame_prev_register): New function.
2808 (m68k_frame_unwind): New variable.
2809 (m68k_frame_p): New function.
2810 (m68k_sigtramp_frame_cache): New function.
2811 (m68k_sigtramp_frame_this_id): New function.
2812 (m68k_sigtramp_frame_prev_register): New function.
2813 (m68k_sigtramp_frame_unwind): New variable.
2814 (m68k_sigtramp_frame_p): New function.
2815 (m68k_frame_base_address): New function.
2816 (m68k_frame_base): New function.
2817 (m68k_unwind_dummy_id): New function.
2818 (fill_gregset): Use regcache_collect.
2819 (fill_fpregset): Likewise.
2820 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2822 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2823 deprecated_init_frame_pc, deprecated_store_struct_return,
2824 deprecated_extract_return_value, deprecated_store_return_value,
2825 deprecated_frame_chain, deprecated_frame_saved_pc,
2826 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2827 deprecated_register_virtual_size,
2828 deprecated_max_register_raw_size,
2829 deprecated_max_register_virtual_size,
2830 deprecated_register_virtual_type, deprecated_register_size,
2831 deprecated_register_byte, deprecated_register_bytes,
2832 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2833 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2834 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2835 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2836 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2837 deprecated_push_dummy_frame, deprecated_pop_frame,
2838 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2839 only if SYSCALL_TRAP is defined. Set extract_return_value,
2840 store_return_value, extract_struct_value_address, register_type,
2841 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2843 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2844 M68K_MAX_REGISTER_SIZE): Define.
2845 (struct m68k_sigtramp_info): Define.
2846 (struct gdbarch_tdep): Add get_sigtramp_info.
2847 * m68klinux-nat.c (fetch_register): Use register_size instead of
2848 REGISTER_RAW_SIZE. Don't put assignment in if.
2849 (store_register): Likewise.
2850 (fetch_inferior_registers): Likewise.
2851 (store_inferior_registers): Likewise.
2852 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2853 (m68k_linux_frame_saved_pc): Delete.
2854 (m68k_linux_sigcontext_reg_offset,
2855 m68k_linux_ucontext_reg_offset): Define.
2856 (m68k_linux_get_sigtramp_info): New function.
2857 (m68k_linux_extract_return_value): Rewrite using regcache.
2858 (m68k_linux_store_return_value): Likewise.
2859 (m68k_linux_extract_struct_value_address): Likewise.
2860 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2861 Don't set deprecated_frame_saved_pc,
2862 deprecated_extract_return_value, deprecated_store_return_value,
2863 deprecated_extract_struct_value_address. Set
2864 extract_return_value, store_return_value,
2865 extract_struct_value_address.
2867 2003-07-07 Andrew Cagney <cagney@redhat.com>
2869 * expprint.c: Include "user-regs.h" instead of "frame.h".
2870 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2871 frame_map_regnum_to_name.
2872 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2873 (frame_map_name_to_regnum): Simplify, call
2874 user_reg_map_name_to_regnum.
2875 (frame_map_regnum_to_name): Simplify, call
2876 user_reg_map_regnum_to_name.
2877 (frame_register_unwind): Update.
2878 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2879 (_initialize_frame_reg): Call user_reg_add_builtin.
2880 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2881 (value_of_register): Use value_of_user_reg.
2882 * eval.c (evaluate_subexp_standard): Update.
2883 * parse.c (write_dollar_variable): Update.
2884 * d10v-tdep.c (d10v_print_registers_info): Update.
2885 * infcmd.c (registers_info): Update.
2886 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2887 (builtin_regs_h): Delete macro.
2888 (user_regs_h): Define.
2889 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2890 (builtin-regs.o): Delete target.
2891 (user-regs.o): Specify dependencies.
2892 (expprint.o): Update dependencies.
2893 (findvar.o): Update dependencies.
2894 (frame.o): Update dependencies.
2895 (std-regs.o): Update dependencies.
2897 2003-07-06 Christopher Faylor <cgf@redhat.com>
2899 * win32-nat.c (solib_symbols_add): Use one variable for all section
2900 address stuff. Pass variable rather than address of variable to
2901 safe_symbol_file_add.
2903 2003-07-06 Andreas Schwab <schwab@suse.de>
2905 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2907 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2909 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2911 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2913 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2915 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2917 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2918 * config/i386/nto.mh: New file.
2919 * config/i386/nm-nto.h: New file.
2920 * configure.host: Add i[3456]86-*-nto*.
2922 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2924 * remote-vx.c (vx_add_symbols): Fix compilation error.
2926 2003-07-03 Andrew Cagney <cagney@redhat.com>
2928 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2929 * gdbarch.h, gdbarch.c: Re-generate.
2930 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2931 (legacy_register_name): Declare.
2932 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2933 (REGISTER_NAME): Define.
2934 * sparc-tdep.c (legacy_register_name): New function.
2935 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2936 (REGISTER_NAME): Define.
2937 (hppa64_register_name): Declare.
2938 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2939 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2940 (hppa64_register_name): New function.
2941 (hppa_register_name): New function.
2942 * arch-utils.c (legacy_register_name): Delete.
2943 * arch-utils.h (legacy_register_name): Delete.
2945 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2947 * cli/cli-interp.c (cli_interpreter_resume): Update the
2948 cli_uiout's stream to gdb_stdout.
2950 2003-07-03 Andrew Cagney <cagney@redhat.com>
2952 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2954 * gdbarch.h, gdbarch.c: Re-generate.
2955 * regcache.c (init_regcache_descr): Use legacy code when either
2956 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2958 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2960 * NEWS: Move "set logging" entry into GDB 6.0 section.
2962 2003-07-02 Jim Blandy <jimb@redhat.com>
2964 * s390-tdep.c (struct frame_extra_info): new member:
2965 'stack_bought_valid'.
2966 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2967 initialize fextra_info->stack_bought.
2968 (s390_frameless_function_invocation): Don't trust the value of
2969 fextra_info_ptr->stack_bought unless
2970 fextra_info->stack_bought_valid is set.
2972 New S390 prologue analyzer.
2973 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2974 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2975 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2976 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2977 compute_x_addr, s390_on_stack, s390_store,
2978 s390_get_signal_frame_info): New functions.
2979 (S390_NUM_SPILL_SLOTS): New macro.
2980 (s390_get_frame_info): Rewritten.
2981 (is_arg_reg): Deleted.
2983 Break out the decoding of S/390 instructions into separate
2984 functions, to make it more legible, and easier to check
2986 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2987 is_rx, is_rxe): New functions.
2988 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2989 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2990 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2991 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2992 enums for opcode values. (Is this an improvement?)
2994 2003-07-02 Andrew Cagney <cagney@redhat.com>
2996 * i386-tdep.c: Revert change committed as part of trad-frame code
2999 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3001 * breakpoint.c (insert_catchpoint): Make static.
3003 2003-07-02 Andreas Schwab <schwab@suse.de>
3005 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3006 former ia64_push_arguments and ia64_push_return_address, and use
3007 regcache functions instead of read/write_register.
3008 (ia64_gdbarch_init): Set push_dummy_call instead of
3009 deprecated_push_arguments and deprecated_push_return_address.
3011 2003-07-01 Andreas Jaeger <aj@suse.de>
3013 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3015 Set %rax only to number of SSE registers used.
3017 2003-07-01 Andrew Cagney <cagney@redhat.com>
3019 * trad-frame.h: Update comments, a -1 .addr is reserved.
3020 (trad_frame_value_p, trad_frame_addr_p): Declare.
3021 (trad_frame_reg_p): Declare.
3022 (trad_frame_set_value): Rename trad_frame_register_value.
3023 (trad_frame_set_unknown): Declare.
3024 * trad-frame.c (trad_frame_realreg_p): New function.
3025 (trad_frame_addr_p, trad_frame_value_p): New function.
3026 (trad_frame_set_unknown): New function.
3027 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3028 (trad_frame_prev_register): Use trad_frame_realreg_p,
3029 trad_frame_addr_p and trad_frame_value_p.
3030 (trad_frame_set_value): Rename trad_frame_register_value.
3031 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3032 and trad_frame_set_value.
3034 2003-06-30 Jim Blandy <jimb@redhat.com>
3036 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3037 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3038 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3039 for 16 registers, and then 32 more bytes.
3040 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3042 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3043 Move up in the file, since it's now used by is_simple_arg.
3044 (is_simple_arg): Don't assume registers are four bytes long.
3045 Exclude all double arguments. Extended floats are not simple
3047 (is_power_of_two): New function.
3048 (pass_by_copy_ref): Call is_power_of_two, and check that the
3049 length fits in a register, rather than listing all the acceptable
3050 sizes. Extended floats are not passed by reference.
3051 (s390_push_arguments): Don't assume registers are four bytes long.
3052 Reserve an argument register to point to the buffer for structures
3053 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3054 S390_STACK_FRAME_OVERHEAD.
3056 2003-06-30 Andreas Schwab <schwab@suse.de>
3058 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3059 format error message.
3061 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3063 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3065 2003-06-30 David Carlton <carlton@kealia.com>
3067 Band-aid for PR c++/1245.
3068 * Makefile.in (cp-support.o): Depend on complaints_h.
3069 * cp-support.c: Include complaints.h. Add declaration for
3070 find_last_component.
3071 (cp_find_first_component): Separate code into
3072 cp_find_first_component_aux.
3073 (cp_find_first_component_aux): Call demangled_name_complaint.
3074 (demangled_name_complaint): New.
3076 2003-06-30 Andrew Cagney <cagney@redhat.com>
3078 * remote.c (remote_write_bytes): Explicitly compute and then use
3079 the payload size. Update comments to reflect. Fixes problem of
3080 GDB not sending small packets as found by Fred Fish.
3082 2003-06-30 Andrew Cagney <cagney@redhat.com>
3084 * remote.c (remote_async_wait): Fix -Wformat problem.
3086 2003-06-29 Andrew Cagney <cagney@redhat.com>
3088 * remote.c (remote_wait): Call error, and not warning, when the
3090 (remote_async_wait): Ditto.
3092 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3094 * sparc-tdep.c (sparc_y_regnum): Make external again.
3096 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3098 * cli/cli-logging.c (pop_output_files): Add void to function
3101 2003-06-29 Andrew Cagney <cagney@redhat.com>
3103 * frame.c (frame_register_unwind): Use unsigned char when dumping
3104 the buffer contents.
3106 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3108 * cli/cli-logging.c: New file.
3109 * cli-out.c (struct ui_out_data): Add original_stream.
3110 (cli_redirect): New function.
3111 (cli_ui_out_impl): Add cli_redirect.
3112 (cli_out_new): Initialize original_stream.
3113 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3114 (uo_redirect, ui_out_redirect): New.
3115 * ui-out.h (struct ui_out_impl): Add redirect member.
3116 (redirect_ftype): New.
3117 (ui_out_redirect): Add prototype.
3118 * Makefile.in: Add rules for cli-logging.c.
3119 * NEWS: Mention "set logging".
3121 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3123 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3125 2003-06-27 Andrew Cagney <cagney@redhat.com>
3127 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3128 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3129 * avr-tdep.c (avr_call_dummy_address): Delete function.
3130 (avr_gdbarch_init): Do not set call_dummy_address.
3132 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3134 * symfile.c (syms_from_objfile): Move variables to inner block.
3135 Move the checks for the non-mainline case a bit earlier to avoid
3136 doing some useless computations.
3138 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3140 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3142 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3144 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3147 2003-06-26 Michael Chastain <mec@shout.net>
3149 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3150 gdb/testsuite/gdb.c++/pr-1210.exp.
3152 2003-06-26 Andrew Cagney <cagney@redhat.com>
3154 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3155 altivec_expression.h and altivec_registers.h.
3157 2003-06-26 Andrew Cagney <cagney@redhat.com>
3159 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3160 info->mach when MIPS16. Patch suggested by Fred Fish.
3162 2003-06-26 Andrew Cagney <cagney@redhat.com>
3164 * utils.c (internal_vproblem): Print the problem to a reason
3165 buffer and then pass to query. Make the msg variable more local.
3167 2003-06-26 Andrew Cagney <cagney@redhat.com>
3169 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3170 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3171 * gdbarch.h, gdbarch.c: Re-generate.
3172 * frame-base.c (default_frame_args_address): Update. Use
3173 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3175 (default_frame_locals_address): Ditto for
3176 DEPRECATED_FRAME_LOCALS_ADDRESS.
3177 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3178 (vax_frame_num_args): Update.
3179 (vax_gdbarch_init): Update.
3180 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3181 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3182 * mcore-tdep.c (mcore_gdbarch_init): Update.
3183 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3184 * ia64-tdep.c (ia64_gdbarch_init): Update.
3185 * symtab.h (address_class): Update comments.
3186 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3187 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3188 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3189 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3190 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3191 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3192 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3193 * alpha-mdebug-tdep.c: Update.
3194 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3196 2003-06-26 Andreas Jaeger <aj@suse.de>
3198 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3199 of SSE registers so that varargs functions work. Rework handling
3200 of passing arguments on the stack.
3201 (x86_64_store_return_value): Return double and float values in SSE
3204 2003-06-24 Michael Chastain <mec@shout.net>
3206 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3207 the "constructor breakpoints ignored" bug.
3209 2003-06-25 David Carlton <carlton@kealia.com>
3211 * MAINTAINERS: Update e-mail address.
3213 2003-06-24 Jim Blandy <jimb@redhat.com>
3215 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3217 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3219 (ppc_linux_init_abi): Register it as the
3220 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3222 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3223 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3226 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3227 (ppc64_standard_linkage_target): Use it.
3229 2003-06-23 Andrew Cagney <cagney@redhat.com>
3231 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3232 for 0 "int0" and 4 "int32" sized registers.
3233 * gdbtypes.c (builtin_type_int0): Define.
3234 (build_gdbtypes): Initialize builtin_type_int0.
3235 * gdbtypes.h (builtin_type_int0): Declare.
3237 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3239 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3240 as characters are unsigned.
3242 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3245 * dwarfread.c (struct_type): Skip static fields without crashing.
3247 2003-06-22 Andrew Cagney <cagney@redhat.com>
3249 GDB 6.0 branch created.
3251 * PROBLEMS: Update. Empty.
3254 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3256 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3257 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3259 2003-06-22 Andrew Cagney <cagney@redhat.com>
3261 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3262 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3265 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3267 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3270 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3272 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3273 argument of val_print.
3274 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3275 to the address argument of baseclass_offset or target_read_memory.
3276 Do add it to the argument of cp_print_value_fields.
3278 2003-06-21 Andrew Cagney <cagney@redhat.com>
3280 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3281 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3282 instead of 0..NUM_REGS.
3283 (mips_register_reggroup_p): New function.
3284 (mips_pseudo_register_write): New function.
3285 (mips_pseudo_register_read): New function.
3286 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3287 based on the register's type.
3288 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3290 (mips_get_saved_register): Simplify. Assert that REGNO is a
3292 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3293 (mips_register_type): Replace mips_register_virtual_type. Map
3294 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3296 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3297 that the register is cooked / virtual.
3298 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3299 Only get the extra info when needed.
3300 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3301 (mips32_heuristic_proc_desc): Fetch the cooked register.
3302 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3303 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3304 (mips_print_register): Use gdbarch_register_type, instead of
3305 REGISTER_VIRTUAL_TYPE.
3306 (print_gp_register_row): Use gdbarch_register_type, instead of
3307 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3308 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3309 Print the pseudo / cooked registers.
3310 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3311 Print the pseudo / cooked registers.
3312 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3313 REG_NUM is pseudo / cooked.
3314 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3315 (mips_n32n64_xfer_return_value): Ditto.
3316 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3317 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3318 (mips_register_sim_regno): New function.
3319 (mips_gdbarch_init): Set deprecated_register_byte,
3320 register_group_p, pseudo_register_write, pseudo_register_read,
3321 register_sim_regno, and num_pseudo_regs. Set register_type,
3322 instead of register_virtual_type.
3323 * Makefile.in (mips-tdep.o): Update dependencies.
3324 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3325 REGISTER_VIRTUAL_TYPE.
3326 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3327 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3328 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3329 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3330 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3332 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3334 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3335 * cli/cli-cmds.c: Include "gdb_vfork.h".
3336 (shell_escape): Use vfork.
3338 2003-06-21 Andrew Cagney <cagney@redhat.com>
3340 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3341 32 bit floating-point register saves.
3343 * frame.h (deprecated_unwind_get_saved_register): Delete.
3344 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3345 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3346 and deprecated_get_next_frame_hack instead of
3347 deprecated_unwind_get_saved_register.
3349 * mips-tdep.c (mips_dump_tdep): Do not print
3350 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3352 * frame.c (get_frame_register): New function.
3353 (frame_unwind_register_signed): New function.
3354 (get_frame_register_signed): New function.
3355 (frame_unwind_register_unsigned): New function.
3356 (get_frame_register_unsigned): New function.
3357 * frame.h: Add comments on naming schema.
3358 (get_frame_register, frame_unwind_register_signed): Declare.
3359 (get_frame_register_signed, get_frame_register_signed): Declare.
3360 (frame_unwind_register_unsigned): Declare.
3361 (get_frame_register_unsigned): Declare.
3363 2003-06-20 Theodore A. Roth <troth@openavr.org>
3365 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3367 2003-06-20 Theodore A. Roth <troth@openavr.org>
3369 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3370 (avr_read_sp): Ditto.
3372 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3374 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3375 * config/arm/nm-linux.h: Likewise.
3376 * config/arm/tm-linux.h: Likewise.
3377 * config/ia64/nm-linux.h: Likewise.
3378 * config/ia64/tm-ia64.h: Likewise.
3379 * config/s390/tm-linux.h: Likewise.
3380 * config/s390/tm-s390.h: Likewise.
3381 * s390-nat.c: Likewise.
3382 * s390-tdep.c: Likewise.
3384 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3385 * config/ia64/linux.mt: Likewise.
3386 * config/m68k/linux.mh: Likewise.
3387 * config/mips/linux.mt: Likewise.
3388 * config/powerpc/linux.mh: Likewise.
3389 * config/sh/linux.mt: Likewise.
3391 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3393 * solib.c (solib_open): Change tests for whether to search
3394 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3397 2003-06-19 Theodore A. Roth <troth@openavr.org>
3399 * avr-tdep.c (avr_frame_address): Delete function.
3400 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3401 set_gdbarch_frame_args_address.
3403 2003-06-19 Andrew Cagney <cagney@redhat.com>
3405 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3406 (REGISTER_CONVERT_FROM_TYPE): Delete.
3407 (mips_register_convert_to_type): Delete declaration.
3408 (mips_register_convert_from_type): Delete declaration.
3409 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3412 2003-06-19 Michael Snyder <msnyder@redhat.com>
3414 * linux-nat.h: New file.
3415 * linux-nat.c: Include linux-nat.h.
3416 * lin-lwp.c: Include linux-nat.h.
3417 Move struct lwp_info def to linux-nat.h.
3418 * linux-proc.c: Include linux-nat.h.
3419 (linux_make_note_section): Iterate over lwps instead of threads.
3420 (linux_do_thread_registers): Use lwp instead of merged pid.
3421 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3422 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3423 Add dependency on linux_nat_h.
3425 2003-06-19 Theodore A. Roth <troth@openavr.org>
3427 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3429 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3431 * varobj.c (get_type, get_target_type): Use check_typedef.
3433 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3435 * breakpoint.c (insert_catchpoint): Call internal_error.
3437 2003-06-19 Theodore A. Roth <troth@openavr.org>
3439 * avr-tdep.c (avr_push_dummy_code): Delete function.
3440 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3442 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3444 * arch-utils.c (default_prepare_to_proceed): Remove.
3445 (generic_prepare_to_proceed): Remove.
3446 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3447 (generic_prepare_to_proceed): Remove prototype.
3448 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3449 * gdbarch.c: Regenerate.
3450 * gdbarch.h: Regenerate.
3451 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3452 * hppah-nat.c (hppa_switched_threads): Remove.
3453 * infrun.c (prepare_to_proceed): New static function, copied from
3454 generic_prepare_to_proceed. Remove select_it argument.
3455 (proceed): Call prepare_to_proceed.
3456 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3458 (ptrace_wait): Don't set the removed variables.
3459 (hppa_switched_threads): Remove.
3460 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3461 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3462 (lin_lwp_prepare_to_proceed): Remove prototype.
3463 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3464 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3466 2003-06-18 Theodore A. Roth <troth@openavr.org>
3468 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3470 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3471 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3472 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3473 (AVR_PROLOGUE_*): Enumerate prologue types.
3474 (struct frame_extra_info): Remove.
3475 (struct avr_unwind_cache): Define.
3476 (avr_write_sp): Delete function.
3477 (avr_read_fp): Ditto.
3478 (avr_init_extra_frame_info): Ditto.
3479 (avr_pop_frame): Ditto.
3480 (avr_frame_saved_pc): Ditto.
3481 (avr_saved_pc_after_call): Ditto.
3482 (avr_push_return_address): Ditto.
3483 (avr_frame_chain): Ditto.
3484 (avr_store_struct_return): Ditto.
3485 (avr_push_arguments): Ditto.
3486 (avr_scan_prologue): Update comments. Changed to set up the info for
3487 cache unwinding. Now returns end of prologue PC.
3488 (avr_skip_prologue): Better handling of functions lacking a prologue
3489 by using avr_scan_prologue.
3490 (avr_scan_arg_moves): New function.
3491 (avr_saved_regs_unwinder): Ditto.
3492 (avr_frame_unwind_cache): Ditto.
3493 (avr_unwind_pc): Ditto.
3494 (avr_frame_this_id): Ditto.
3495 (avr_frame_prev_register): Ditto.
3496 (avr_frame_p): Ditto.
3497 (avr_frame_base_address ): Ditto.
3498 (avr_unwind_dummy_id): Ditto.
3499 (avr_push_dummy_code): Ditto.
3500 (push_stack_item): Ditto.
3501 (pop_stack_item): Ditto.
3502 (avr_push_dummy_call): Ditto.
3503 (struct stack_item): Define.
3504 (avr_frame_unwind): Declare structure.
3505 (avr_frame_base): Ditto.
3506 (avr_gdbarch_init): Remove calls to
3507 set_gdbarch_deprecated_init_frame_pc,
3508 set_gdbarch_deprecated_target_read_fp,
3509 set_gdbarch_deprecated_dummy_write_sp,
3510 set_gdbarch_deprecated_fp_regnum,
3511 set_gdbarch_deprecated_push_arguments,
3512 set_gdbarch_deprecated_push_return_address,
3513 set_gdbarch_deprecated_pop_frame,
3514 set_gdbarch_deprecated_store_struct_return,
3515 set_gdbarch_deprecated_frame_init_saved_regs,
3516 set_gdbarch_deprecated_init_extra_frame_info,
3517 set_gdbarch_deprecated_frame_chain,
3518 set_gdbarch_deprecated_frame_saved_pc,
3519 set_gdbarch_deprecated_saved_pc_after_call.
3520 Add calls to set_gdbarch_push_dummy_call,
3521 set_gdbarch_push_dummy_code,
3522 frame_unwind_append_predicate,
3523 frame_base_set_default,
3524 set_gdbarch_unwind_dummy_id,
3525 set_gdbarch_unwind_pc.
3528 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3530 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3531 registers for H8/300S.
3532 (h8300_print_registers_info): Ditto.
3533 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3535 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3537 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3538 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3539 (lin_lwp_wait): Likewise. Update comments.
3540 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3541 (pull_pid_from_list, linux_record_stopped_pid): New.
3543 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3545 * ada-lang.c (scan_discrim_bound): Name first argument.
3546 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3547 declared by ALL_BLOCK_SYMBOLS.
3549 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3551 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3552 ("regcache.h"): Include it.
3553 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3555 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3557 * NEWS: Mention gdbserver detach change and "disconnect" command.
3558 * infcmd.c (disconnect_command): New function.
3559 (_initialize_infcmd): Add ``disconnect'' command.
3560 * remote.c (remote_async_detach): Delete.
3561 (remote_detach): Merge remote_async_detach.
3562 (remote_disconnect): New.
3563 (init_remote_ops): Set to_disconnect.
3564 (init_remote_cisco_ops): Likewise.
3565 (init_remote_async_ops): Likewise. Use remote_detach.
3566 * target.c (cleanup_target): Default to_disconnect.
3567 (update_current_target): Inherit to_disconnect.
3568 (target_disconnect, debug_to_disconnect): New functions.
3569 (setup_target_debug): Set to_disconnect.
3570 * target.h (struct target_ops): Add to_disconnect.
3571 (target_disconnect): Add prototype.
3573 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3575 * breakpoint.c (insert_catchpoint): New function.
3576 (insert_breakpoints): Use catch_exceptions to call
3577 insert_catchpoint. Disable catchpoints if they fail to insert.
3579 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3581 * symfile.c (reread_symbols): Clear sym_private.
3583 2003-06-17 Andrew Cagney <cagney@redhat.com>
3585 * trad-frame.h (struct frame_info): Add opaque declaration.
3586 * remote-fileio.h (struct cmd_list_element): Add opaque
3588 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3591 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3593 * remote.c (remote_prepare_to_store): Replace call to
3594 deprecated_read_register_bytes with multiple regcache_raw_read
3597 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3599 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3600 (nto_find_and_open_solib): Likewise.
3601 (nto_init_solib_absolute_prefix): Likewise.
3602 (_initialize_nto_tdep): Fix indentation.
3604 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3606 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3608 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3610 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3612 2003-06-17 Jim Blandy <jimb@redhat.com>
3614 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3616 2003-06-16 Theodore A. Roth <troth@openavr.org>
3618 * avr-tdep.c (avr_extract_return_value): New function.
3619 (avr_gdbarch_init): Set extract_return_value method.
3621 2003-06-16 Andrew Cagney <cagney@redhat.com>
3623 * frame.h (deprecated_get_next_frame_hack): Declare.
3624 * frame.c (legacy_saved_regs_prev_register): Only require
3625 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3626 there are always saved regs.
3627 (deprecated_generic_get_saved_register): Do not require
3628 DEPRECATED_FRAME_INIT_SAVED_REGS.
3629 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3630 use frame ID unwind instead.
3631 (deprecated_get_next_frame_hack): New function.
3633 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3635 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3636 (h8300_push_dummy_call): ...this function. Some minor optimization.
3637 (h8300_push_return_address): Remove.
3638 (h8300_gdbarch_init): Remove calls to
3639 set_gdbarch_deprecated_dummy_write_sp,
3640 set_gdbarch_deprecated_push_arguments and
3641 set_gdbarch_deprecated_push_return_address.
3642 Add call to set_gdbarch_push_dummy_call.
3644 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3646 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3647 (E_PSEUDO_EXR_REGNUM): Ditto.
3648 (h8300_is_argument_spill): Check for instructions moving argument
3649 registers into safe registers.
3650 (h8300_skip_prologue): Check for stm instruction to push registers
3651 used for register variables onto stack.
3652 (gdb_print_insn_h8300): Remove.
3653 (h8300_examine_prologue): Add a comment.
3654 (h8300_register_name): Take pseudo registers into account.
3655 (h8300s_register_name): Ditto.
3656 (h8300sx_register_name): Ditto.
3657 (h8300_print_register): Ditto.
3658 (h8300_print_registers_info): Define "nice" printing order.
3659 (h8300_saved_pc_after_call): Take pseudo registers into account.
3660 (h8300_register_type): Ditto. Return type used for remote connection
3661 when requesting real CCR or EXR register, return actual type when
3662 requesting pseudo CCR or EXR.
3663 (h8300_pseudo_register_read): New function.
3664 (h8300_pseudo_register_write): Ditto.
3665 (h8300_dbg_reg_to_regnum): Ditto.
3666 (h8300s_dbg_reg_to_regnum): Ditto.
3667 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3668 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3669 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3670 set_gdbarch_print_insn architecture dependent.
3671 Call set_gdbarch_pseudo_register_read and
3672 set_gdbarch_pseudo_register_write.
3673 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3675 2003-06-16 Andrew Cagney <cagney@redhat.com>
3677 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3678 * gdbarch.h, gdbarch.c: Re-generate.
3679 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3680 * s390-tdep.c (s390_gdbarch_init): Update.
3681 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3682 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3683 * mips-tdep.c (mips_gdbarch_init): Update.
3684 * mcore-tdep.c (mcore_gdbarch_init): Update.
3685 * cris-tdep.c (cris_gdbarch_init): Update.
3686 * infcall.c (call_function_by_hand): Update.
3687 * ia64-tdep.c (ia64_push_arguments): Update comment.
3688 * frame.c (legacy_get_prev_frame): Do not assume
3689 SAVE_DUMMY_FRAME_TOS_P.
3690 * dummy-frame.c (find_dummy_frame): Update comment.
3692 2003-06-16 Andrew Cagney <cagney@redhat.com>
3694 * regcache.c (do_cooked_read): Do not use register_valid_p.
3696 2003-06-15 Theodore A. Roth <troth@openavr.org>
3698 * avr-tdep.c (avr_register_type): Remove a blank line.
3699 (avr_scan_prologue): Correct some comments.
3701 2003-06-15 Theodore A. Roth <troth@openavr.org>
3703 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3705 Properly scan prologues generated by gcc with the -mcall-prologues
3707 Add code to scan -mcall-prologues for mega devices.
3709 2003-06-15 Theodore A. Roth <troth@openavr.org>
3711 * avr-tdep.c (avr_register_byte): Delete function.
3712 (avr_register_raw_size): Delete function.
3713 (avr_register_virtual_size): Delete function.
3714 (avr_register_virtual_type): Delete function.
3715 (avr_register_type): New function.
3716 (avr_address_to_pointer): Remove unused code.
3717 (avr_read_fp): Need to read FP as two separate bytes due to change to
3718 avr_register_type() usage.
3719 (avr_gdbarch_init): Don't set deprecated_register_size.
3720 Don't set deprecated_register_bytes.
3721 Don't set deprecated_register_byte.
3722 Don't set deprecated_register_raw_size.
3723 Don't set deprecated_max_register_raw_size.
3724 Don't set deprecated_register_virtual_size.
3725 Don't set deprecated_max_register_virtual_size.
3726 Don't set deprecated_register_virtual_type.
3727 Set register_type method.
3729 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3731 * Makefile.in (linux-nat.o): Add rule.
3732 * linux-nat.c: New file.
3733 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3734 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3735 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3736 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3737 * config/arm/linux.mh (NATDEPFILES): Likewise.
3738 * config/i386/linux.mh (NATDEPFILES): Likewise.
3739 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3740 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3741 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3742 * config/mips/linux.mh (NATDEPFILES): Likewise.
3743 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3744 * config/s390/s390.mh (NATDEPFILES): Likewise.
3745 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3747 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3749 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3750 replace out-of-date comment.
3752 2003-06-15 Andrew Cagney <cagney@redhat.com>
3754 * rdi-share/host.h (Fail): Change to a varargs function.
3755 * remote-rdi.c (Fail): Update.
3757 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3759 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3760 (i386_convert_register_p, i386_register_to_value,
3761 i386_register_from_value): Handle types longer than 8 bytes.
3763 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3765 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3766 Move floating-point code to new function in i387-tdep.c.
3767 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3768 New functions containing code moved here from i386-tdep.c.
3769 * i387-tdep.h: Add opaque declaration for `struct type'.
3770 (i387_register_to_value, i387_value_to_register): New prototypes.
3771 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3772 (x86_64_init_abi): Set convert_register_p, register_to_value and
3773 value_to_register here.
3775 2003-06-14 Andrew Cagney <cagney@redhat.com>
3777 * mips-tdep.c (mips_register_to_value): Make static.
3778 (mips_value_to_register): Make static.
3779 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3780 * ia64-tdep.c (ia64_register_raw_size): Make static.
3781 (ia64_register_virtual_size): Make static.
3782 (ia64_register_byte): Make static.
3783 * i387-tdep.c: Include "i387-tdep.h".
3784 (print_387_control_word): Delete function.
3785 (print_387_status_word): Delete function.
3786 (print_387_status_bits): Delete function.
3787 (print_387_control_bits): Delete function.
3788 * Makefile.in (i387-tdep.o): Update dependencies.
3789 * rdi-share/host.h (Fail): Declare.
3790 * remote-rdi.c (Fail): Update to match declaration.
3792 2003-06-14 Andrew Cagney <cagney@redhat.com>
3794 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3795 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3796 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3797 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3798 * README: Delete reference to remote-array.
3799 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3800 (remote-array.o): Delete target.
3801 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3802 * remote-array.c: Delete file.
3804 2003-06-14 Andrew Cagney <cagney@redhat.com>
3805 Mark Kettenis <kettenis@gnu.org>
3807 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3808 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3809 parameter with "frame".
3810 * gdbarch.h, gdbarch.c: Re-generate.
3811 * frame.h (put_frame_register): Declare.
3812 * frame.c (put_frame_register): New function.
3813 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3814 (legacy_register_to_value): Rewrite, use "frame" to get the
3816 (legacy_value_to_register): Rewrite, use "frame" to find the
3817 register's location before storing.
3818 * arch-utils.h (legacy_convert_register_p): Update.
3819 (legacy_register_to_value, legacy_value_to_register): Update.
3820 * findvar.c (value_from_register): Rewrite, eliminate use of
3821 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3822 "frame" to REGISTER_TO_VALUE.
3823 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3824 lval_reg_frame_relative + lval_register branch of the switch. Do
3825 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3826 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3827 I386_EDI_REGNUM): New defines.
3828 (i386_next_regnum, i386_convert_register_p,
3829 i386_register_to_value, i386_value_to_register): New functions.
3830 (i386_register_convertible, i386_register_convert_to_virtual,
3831 i386_convert_to_raw): Remove functions.
3832 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3833 value_to_register instead of register_convertible,
3834 register_convert_to_virtual and register_convert_to_raw.
3835 * mips-tdep.c (mips_convert_register_p): New function.
3836 (mips_value_to_register): Replace mips_register_convert_from_type.
3837 (mips_register_to_value): Replace mips_register_convert_to_type.
3838 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3840 * alpha-tdep.c (alpha_convert_register_p): Update.
3841 (alpha_value_to_register): Update, store the register.
3842 (alpha_register_to_value): Update, fetch the register.
3844 2003-06-14 Theodore A. Roth <troth@openavr.org>
3846 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3847 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3848 Don't set deprecated_call_dummy_words.
3849 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3850 Don't set remote_translate_xfer_address.
3851 (avr_io_reg_read_command): Remove commented out debug printf.
3854 2003-06-14 Theodore A. Roth <troth@openavr.org>
3856 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3857 causes gdb to seg fault.
3859 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3861 * sparc-nat.c (fetch_inferior_registers): Correct
3862 a reference to "registers".
3864 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3866 * Makefile.in (exc_request_U_h): Define
3867 (exc_request_S_h): Likewise.
3868 (msg_reply_S_h): Likewise.
3869 (msg_U_h): Likewise.
3870 (notify_S_h): Likewise.
3871 (process_reply_S_h): Likewise.
3872 (gnu-nat.o): Depend on gdb_obstack_h
3873 * gnu-nat.c: Include "gdb_obstack.h".
3875 2003-06-13 Andrew Cagney <cagney@redhat.com>
3877 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3878 * gdbarch.h, gdbarch.c: Re-generate.
3880 2003-06-13 Andrew Cagney <cagney@redhat.com>
3882 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3883 when deprecated REGISTER macros can be deleted.
3884 * gdbarch.h, gdbarch.c: Re-generate.
3886 2003-06-13 Jim Blandy <jimb@redhat.com>
3888 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3889 Linux entry point symbols for _dl_debug_state, too.
3891 2003-06-13 Andrew Cagney <cagney@redhat.com>
3893 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3894 available, do not use the FP register, and always save the TOS.
3895 * dummy-frame.c (dummy_frame_this_id): Do not assert
3896 SAVE_DUMMY_FRAME_TOS.
3897 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3898 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3899 (i386_push_dummy_call): Add 8 to the returned SP.
3900 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3901 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3902 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3903 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3904 (x86_64_push_dummy_call): Return "sp + 16".
3905 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3906 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3907 save_dummy_frame_tos.
3909 2003-06-13 Jim Blandy <jimb@redhat.com>
3911 * frv-tdep.c (frv_use_struct_convention): Delete static
3912 declaration for function deleted in my change of 2003-06-12.
3914 2003-06-13 Theodore A. Roth <troth@openavr.org>
3916 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3917 (avr_pointer_to_address): Shift code addrs left 1 bit.
3918 (avr_convert_from_func_ptr_addr): Delete function since operation is
3919 better handled by avr_address_to_pointer and avr_pointer_to_address.
3920 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3922 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3924 From Kelley Cook <kelleycook@wideopenwest.com>:
3925 * configure.host: Accept i[34567]86 variants.
3926 * configure.tgt: Likewise.
3927 * nlm/configure.in: Likewise.
3928 * nlm/configure: Regenerated.
3930 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3932 * arm-tdep.c (solib-svr4.h): Dont' include it.
3933 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3934 * arm-linux-tdep.c: ... here. Make static.
3935 (arm_linux_init_abi): Register it.
3936 (solib-svr4.h): Include it.
3937 * Makefile.in: Update dependencies.
3938 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3939 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3941 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3943 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3944 indicate registers used for return values.
3945 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3946 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3948 (h8300_init_extra_frame_info): Ditto.
3949 (h8300_frame_locals_address): Removed.
3950 (h8300_frame_args_address): Removed.
3951 (h8300_extract_return_value): Use new regcache structure. Only care
3953 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3954 (h8300_store_return_value): Use new regcache structure. Only care
3956 (h8300h_store_return_value): Same function for 32 bit CPUs.
3957 (h8300_store_struct_return): Removed.
3958 (h8300_extract_struct_value_address): Use new regcache structure.
3959 (h8300h_extract_struct_value_address): Removed.
3960 (h8300_push_dummy_code): New function.
3961 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3962 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3963 set_gdbarch_store_return_value architecture dependent.
3964 Call set_gdbarch_push_dummy_code and
3965 set_gdbarch_extract_struct_value_address.
3966 Remove calls to set_gdbarch_frame_args_address,
3967 set_gdbarch_frame_locals_address,
3968 set_gdbarch_deprecated_store_struct_return,
3969 set_gdbarch_deprecated_extract_return_value,
3970 set_gdbarch_deprecated_extract_struct_value_address,
3971 set_gdbarch_deprecated_call_dummy_words and
3972 set_gdbarch_deprecated_sizeof_call_dummy_words.
3974 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3976 * h8300-tdep.c (h8300_register_byte): Remove.
3977 (h8300h_register_byte): Remove.
3978 (h8300_register_virtual_type): Remove. Substitute by...
3979 (h8300_register_type): New function.
3980 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3981 (h8300h_extract_struct_value_address): Ditto.
3982 (h8300_gdbarch_init): Drop calls to
3983 set_gdbarch_deprecated_register_byte and
3984 set_gdbarch_deprecated_register_virtual_type.
3985 Add call to set_gdbarch_register_type.
3987 2003-06-13 Andrew Cagney <cagney@redhat.com>
3989 * gdbarch.sh: Update comments on registers.
3990 (deprecated_register_byte): Rename register_byte.
3991 (deprecated_register_raw_size): Rename register_raw_size.
3992 (deprecated_register_virtual_size): Rename register_virtual_size.
3993 (deprecated_register_virtual_type): Rename register_virtual_type.
3994 * gdbarch.h, gdbarch.c: Re-generate.
3995 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3996 * vax-tdep.c (vax_gdbarch_init): Update.
3997 * v850-tdep.c (v850_gdbarch_init): Update.
3998 * sparc-tdep.c (sparc_gdbarch_init): Update.
3999 * sh-tdep.c (sh_gdbarch_init): Update.
4000 * s390-tdep.c (s390_gdbarch_init): Update.
4001 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4002 * ns32k-tdep.c: Update.
4003 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4004 * mips-tdep.c (mips_gdbarch_init): Update.
4005 * mcore-tdep.c (mcore_gdbarch_init): Update.
4006 * m68k-tdep.c (m68k_gdbarch_init): Update.
4007 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4008 * ia64-tdep.c (ia64_gdbarch_init): Update.
4009 * hppa-tdep.c (hppa_gdbarch_init): Update.
4010 * h8300-tdep.c (h8300_gdbarch_init): Update.
4011 * frv-tdep.c (frv_gdbarch_init): Update.
4012 * cris-tdep.c (cris_gdbarch_init): Update.
4013 * avr-tdep.c (avr_gdbarch_init): Update.
4014 * alpha-tdep.c (alpha_gdbarch_init): Update.
4015 * arm-tdep.c (arm_gdbarch_init): Update.
4017 2003-06-13 Andrew Cagney <cagney@redhat.com>
4019 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4020 mips_o32_use_struct_convention with always_use_struct_convention.
4022 2003-06-12 David Carlton <carlton@kealia.com>
4024 * cp-namespace.c (cp_set_block_scope): Comment out
4025 processing_has_namespace_info branch.
4027 2003-06-12 Jim Blandy <jimb@redhat.com>
4029 Recognize and skip 64-bit PowerPC Linux linkage functions.
4030 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4031 insn_pattern, insns_match_pattern, d_field, ds_field): New
4032 functions, macros, and types for working with PPC instructions.
4033 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4034 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4035 ppc64_skip_trampoline_code): New functions, variables, and macros
4036 for recognizing and skipping linkage functions.
4037 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4038 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4040 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4041 register offsets for both the 32- and 64-bit interfaces.
4043 Actually finish the job started by my change of 2003-05-29.
4044 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4045 other #definition of this.
4046 (ppc_linux_skip_trampoline_code): Remove declaration.
4047 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4049 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4052 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4053 'long' on ppc64-*-linux*.
4055 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4056 isn't #defined, assume the register doesn't exist: act as if
4057 tdep->ppc_mq_regnum were -1.
4059 * configure.host, configure.tgt: Add entries for
4060 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4062 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4065 * arch-utils.c (always_use_struct_convention): New function.
4066 * arch-utils.h (always_use_struct_convention): New prototype.
4067 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4068 (alpha_gdbarch_init): Register always_use_struct_convention,
4069 instead of alpha_use_struct_convention.
4070 * cris-tdep.c (cris_use_struct_convention): Delete.
4071 (cris_gdbarch_init): Register always_use_struct_convention,
4072 instead of cris_use_struct_convention.
4073 * frv-tdep.c (frv_use_struct_convention): Delete.
4074 (frv_gdbarch_init): Register always_use_struct_convention,
4075 instead of frv_use_struct_convention.
4076 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4077 (h8300_gdbarch_init): Register always_use_struct_convention,
4078 instead of h8300_use_struct_convention.
4079 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4080 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4081 instead of mips_o32_use_struct_convention.
4083 2003-06-12 Andrew Cagney <cagney@redhat.com>
4085 * wince.c: Include "mips-tdep.h".
4086 * mips-tdep.h (mips_next_pc): Declare.
4087 * mcore-tdep.c: Make more local functions static.
4088 * Makefile.in (wince.o): Update dependencies.
4090 2003-06-12 David Carlton <carlton@kealia.com>
4092 * symtab.c (lookup_symbol_aux_minsyms): Replace
4093 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4094 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4095 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4096 SYMBOL_NATURAL_NAME.
4098 2003-06-12 Andreas Schwab <schwab@suse.de>
4100 * Makefile.in (tuiDisassem.o): Update dependencies.
4102 2003-06-12 David Carlton <carlton@bactrian.org>
4104 * symtab.h: Delete declaration of make_symbol_overload_list.
4105 Add declaration of lookup_partial_symbol.
4106 * symtab.c (remove_params): Move to cp-support.c.
4107 (overload_list_add_symbol, make_symbol_overload_list)
4108 (sym_return_val_size, sym_return_val_index): Ditto.
4109 (lookup_partial_symbol): Make extern.
4110 * cp-support.h: Add declaration of make_symbol_overload_list.
4111 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4112 symtab.h, and block.h.
4113 (remove_params): Move here from symtab.c.
4114 (overload_list_add_symbol, make_symbol_overload_list)
4115 (sym_return_val_size, sym_return_val_index): Ditto.
4116 * valops.c: Include cp-support.h.
4117 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4118 frame_h, and block_h.
4119 (valops.o): Depend on cp_support_h.
4121 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4123 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4124 substitute by NUM_REGS throughout.
4125 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4126 (h8300s_register_name): New function for H8S registers.
4127 (h8300sx_register_name): Ditto for H8SX registers.
4128 (h8300_print_register): Revise register printing, avoid depending
4130 (h8300_register_byte): Only care for H8/300 registers.
4131 (h8300h_register_byte): New function for any other architecture.
4132 (h8300_register_raw_size): Remove.
4133 (h8300_register_virtual_type): Revise to return actually useful
4135 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4136 (h8300h_extract_struct_value_address): New function for any other
4138 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4139 set_gdbarch_register_name, set_gdbarch_register_byte,
4140 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4141 Remove calls to set_gdbarch_deprecated_register_size,
4142 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4143 set_gdbarch_deprecated_max_register_raw_size,
4144 set_gdbarch_register_virtual_size and
4145 set_gdbarch_deprecated_max_register_virtual_size entirely.
4146 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4147 set_gdbarch_long_double_bit.
4149 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4151 * doublest.c (convert_doublest_to_floatformat): When dealing
4152 with the implied integer bit, only alter mant_bits if we are
4153 processing a full 32 bits of mantissa.
4155 2003-06-11 David Carlton <carlton@bactrian.org>
4157 * dictionary.h: New.
4158 * dictionary.c: New.
4159 * block.h: Add opaque declaration for struct dictionary.
4160 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4162 (BLOCK_DICT): New macro.
4163 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4164 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4166 (ALL_BLOCK_SYMBOLS): Update definition.
4167 * Makefile.in (SFILES): Add dictionary.c.
4168 (dictionary_h): New.
4169 (COMMON_OBS): Add dictionary.o.
4170 (dictionary.o): New.
4171 (ada-lang.o): Depend on dictionary_h.
4172 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4173 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4174 (mi-cmd-stack.o): Ditto.
4175 (gdbtk-cmds.o): Update dependencies.
4176 (gdbtk-stack.o): Ditto.
4177 * ada-lang.c: Include dictionary.h.
4178 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4179 (fill_in_ada_prototype, debug_print_block): Ditto.
4180 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4181 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4183 * mdebugread.c: Include dictionary.h.
4184 (struct parse_stack): Delete 'maxsyms' member.
4185 (parse_symbol): Update calls to new_block. Delete calls to
4186 shrink_block. Use dictionary methods.
4187 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4188 Update calls to new_symtab. Don't maintain maxsyms data.
4189 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4190 (add_symbol): Just call dict_add_symbol.
4191 (new_symtab): Delete 'maxsyms' argument.
4192 (new_symtab): Update calls to new_block.
4193 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4194 (shrink_block): Delete function.
4195 (fixup_sigtramp): Update call to new_block. Add symbol via
4197 * jv-lang.c: Include dictionary.h.
4198 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4199 appropriately. Set class_symtab->free_func. Make sure the
4200 blockvector is big enough to hold two blocks.
4201 (add_class_symtab_symbol): Use dictionary methods.
4202 (free_class_block): New function.
4203 (type_from_class): Replace explicit iteration by
4205 * symtab.h (struct symtab): Replace 'free_ptr' method by
4207 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4209 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4211 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4212 Include dictionary.h.
4213 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4214 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4216 * objfiles.c: Include dictionary.h.
4217 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4218 * buildsym.c: Include dictionary.h.
4219 (finish_block): Use dictionary methods.
4220 (end_symtab): Set free_func to NULL, not free_ptr.
4221 * tracepoint.c: Include dictionary.h.
4222 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4223 (scope_info): Ditto.
4224 * stack.c: Include dictionary.h.
4225 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4226 (print_block_frame_labels, print_frame_arg_vars)
4227 (print_frame_args): Ditto.
4228 * symmisc.c (free_symtab_block): Use dictionary methods.
4229 (dump_symtab): Ditto.
4230 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4231 Include dictionary.h.
4232 * symfile.h: Delete declarations of sort_block_syms,
4234 * symfile.c (sort_block_syms): Delete.
4235 (sort_symtab_syms): Delete.
4236 * symtab.c: Include dictionary.h.
4237 (lookup_block_symbol): Use dictionary iterators.
4238 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4239 (search_symbols, make_symbol_completion_list): Ditto.
4240 (make_symbol_overload_list): Ditto.
4241 * valops.c (value_of_local): Use dict_empty.
4242 Include dictionary.h.
4244 2003-06-11 J. Brobecker <brobecker@gnat.com>
4246 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4248 2003-06-11 David Carlton <carlton@bactrian.org>
4250 * block.h (BLOCK_SHOULD_SORT): Delete.
4251 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4253 * ada-lang.c (ada_add_block_symbols): Ditto.
4254 * symfile.c (sort_block_syms): Delete.
4255 (sort_symtab_syms): Ditto.
4256 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4258 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4259 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4260 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4261 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4262 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4263 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4264 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4266 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4268 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4271 2003-06-11 Andrew Cagney <cagney@redhat.com>
4273 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4274 REGISTER_CONVERTIBLE.
4275 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4276 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4277 * gdbarch.h, gdbarch.c: Re-generate.
4278 * arch-utils.h (deprecated_register_convertible_not): Rename
4279 generic_register_convertible_not.
4280 * arch-utils.c (deprecated_register_convertible_not): Rename
4281 generic_register_convertible.
4282 (legacy_convert_register_p, legacy_register_to_value): Update.
4283 * sh-tdep.c (sh64_push_arguments): Update.
4284 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4285 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4286 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4287 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4288 * arch-utils.c (legacy_value_to_register): Update.
4289 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4290 (rs6000_register_convert_to_raw): Make parameter "from" const.
4291 * mips-tdep.c (mips_gdbarch_init): Update.
4292 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4293 * infcmd.c (default_print_registers_info): Update.
4294 * ia64-tdep.c (ia64_gdbarch_init): Update.
4295 (ia64_register_convert_to_raw): Make parameter "from" const.
4296 * i386-tdep.c (i386_gdbarch_init): Update.
4297 (i386_register_convert_to_raw): Update.
4299 2003-06-11 Andrew Cagney <cagney@redhat.com>
4301 * remote-fileio.c: Include "remote-fileio.h".
4302 * Makefile.in (remote-fileio.o): Update dependencies.
4303 (remote_fileio_h): Fix typo.
4305 2003-06-11 Andrew Cagney <cagney@redhat.com>
4307 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4308 (xstormy16_save_dummy_frame_tos): Make static.
4309 (_initialize_xstormy16_tdep): Add declaration.
4310 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4311 * v850-tdep.c: Make local functions static.
4312 (_initialize_v850_tdep): Add declaration.
4313 * sparc-tdep.c: Make local functions static.
4314 (_initialize_sparc_tdep): Add declaration.
4315 * sh-tdep.c: Make local functions static.
4316 (_initialize_sh_tdep): Add declaration.
4317 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4318 * s390-tdep.c: Make local functions static.
4319 (_initialize_s390_tdep): Add declaration.
4320 * dbxread.c (find_stab_function_addr): Make static.
4321 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4322 * ocd.c (_initialize_remote_ocd): Add declaration.
4323 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4324 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4325 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4326 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4327 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4328 * remote-array.c (_initialize_array): Add declaration.
4329 (_initialize_remote_monitors): Add declaration.
4330 * remote-mips.c: Make local functions static.
4331 (_initialize_remote_mips): Add declaration.
4332 * mcore-tdep.c: Make all local functions static.
4333 (_initialize_mcore_tdep): Add declaration.
4334 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4335 * abug-rom.c (_initialize_abug_rom): Add declaration.
4336 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4337 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4338 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4339 * remote-est.c (_initialize_est): Add declaration.
4340 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4341 (m68hc11_call_dummy_address): Make static.
4342 * ia64-tdep.c: Make local functions static.
4343 (_initialize_ia64_tdep): Add declaration.
4344 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4345 * monitor.c (monitor_wait_filter): Make static.
4346 (_initialize_remote_monitors): Add declaration.
4347 * remote-hms.c (_initialize_remote_hms): Add declaration.
4348 * remote-e7000.c (fetch_regs_from_dump): Make static.
4349 (expect_n): Make static.
4350 (_initialize_remote_e7000): Add declaration.
4351 * ser-e7kpc.c: Always include "defs.h".
4352 (_initialize_ser_e7000pc): Add declaration.
4353 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4354 * cris-tdep.c: Make all but one function static.
4355 (_initialize_cris_tdep): Add declaration.
4356 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4357 * solib.c (update_solib_list): Make static.
4358 (_initialize_solib): Add declaration.
4359 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4360 (_initialize_avr_tdep): Add declaration.
4361 * remote-rdi.c (voiddummy): Make static.
4362 (_initialize_remote_rdi): Add declaration.
4363 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4364 * remote-rdp.c (send_rdp): Make static.
4365 (_initialize_remote_rdp): Add declaration.
4366 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4368 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4370 * remote-fileio.c: Make ari happy.
4372 2003-06-10 J. Brobecker <brobecker@gnat.com>
4374 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4375 fetching the trailing bytes of the buffer we are about to write.
4377 2003-06-10 Andrew Cagney <cagney@redhat.com>
4379 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4380 * Makefile.in (remote-fileio.o): Update dependencies.
4381 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4382 include <setjmp.h>, or <sys/types.h> conditional on USG.
4383 (remote_fio_jmp_buf): Delete global variable.
4385 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4386 Martin M. Hunt <hunt@redhat.com>
4388 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4389 (SFILES): Add remote-fileio.c.
4390 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4391 dependencies for building remote.o.
4392 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4393 * remote-fileio.h: New header file defining remote File-I/O interface.
4394 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4395 static storage class.
4396 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4398 (_initialize_remote): Call initialize_remote_fileio().
4399 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4400 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4401 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4402 (captured_main): Initialize new ui_files.
4403 * ui-file.c: Add read and fgets input functions.
4404 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4405 (null_file_read): New function.
4406 (ui_file_read): New function.
4407 (set_ui_file_read): New function.
4408 (stdio_file_read): New function.
4409 * ui-file.h: New type ui_file_read_ftype.
4410 (set_ui_file_read): Declare.
4411 (ui_file_read): Declare.
4413 2003-06-09 Andrew Cagney <cagney@redhat.com>
4415 * frame.h (deprecated_unwind_get_saved_register): Rename
4416 generic_unwind_get_saved_register, update comments.
4417 * mips-tdep.c (mips_get_saved_register): Update.
4418 * frame.c (deprecated_unwind_get_saved_register): Update.
4420 2003-06-09 Andrew Cagney <cagney@redhat.com>
4422 * vax-tdep.c (vax_frame_locals_address): Delete function.
4423 (vax_gdbarch_init): Do not set frame_locals_address.
4424 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4425 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4426 * s390-tdep.c (s390_frame_args_address): Delete function.
4427 (s390_gdbarch_init): Do not set frame_args_address or
4428 frame_locals_address.
4429 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4430 (ns32k_gdbarch_init): Do not set frame_locals_address.
4431 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4432 (hppa_frame_locals_address): Delete function.
4433 (hppa_gdbarch_init): Do not set frame_args_address, or
4434 frame_locals_address.
4435 * arm-tdep.c (arm_frame_args_address): Delete.
4436 (arm_frame_locals_address): Delete.
4437 (arm_gdbarch_init): Do not set frame_args_address, or
4438 frame_locals_address.
4440 2003-06-09 Andrew Cagney <cagney@redhat.com>
4442 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4443 * gdbarch.h, gdbarch.c: Re-generate.
4444 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4445 * arch-utils.c (frame_num_args_unknown): Delete function.
4446 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4447 (frame_info): Use FRAME_NUM_ARGS_P.
4448 * arm-tdep.c (arm_frame_num_args): Delete function.
4449 (arm_gdbarch_init): Do not set frame_num_args.
4450 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4451 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4452 (hppa_gdbarch_init): Do not set frame_num_args.
4453 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4454 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4455 frame_num_args to default frame_num_args_unknown.
4456 * v850-tdep.c (v850_gdbarch_init): Ditto.
4457 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4458 * sh-tdep.c (sh_gdbarch_init): Ditto.
4459 * s390-tdep.c (s390_gdbarch_init): Ditto.
4460 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4461 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4462 * mips-tdep.c (mips_gdbarch_init): Ditto.
4463 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4464 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4465 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4466 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4467 * i386-tdep.c (i386_gdbarch_init): Ditto.
4468 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4469 * frv-tdep.c (frv_gdbarch_init): Ditto.
4470 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4471 * cris-tdep.c (cris_gdbarch_init): Ditto.
4472 * avr-tdep.c (avr_gdbarch_init): Ditto.
4473 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4475 2003-06-09 Andrew Cagney <cagney@redhat.com>
4477 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4478 (print_frame_args): Moved to "stack.c".
4479 * stack.c: Include "gdb_assert.h".
4480 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4481 (print_frame_args): Moved from "printcmd.c".
4482 * frame.h (print_frame_args): Delete declaration.
4483 * Makefile.in (stack.o): Update dependencies.
4485 2003-06-08 Andrew Cagney <cagney@redhat.com>
4487 * frame.c (get_prev_frame): Remove reference to
4488 frame_args_address_correct in comments.
4489 * frame-base.c (default_frame_args_address): Delete code
4490 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4491 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4492 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4493 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4494 (vax_frame_args_address_correct): Delete declaration.
4496 2003-06-08 Andrew Cagney <cagney@redhat.com>
4498 * gdbarch.sh (UNWIND_SP): Add.
4499 * gdbarch.h, gdbarch.c: Re-generate.
4500 * frame.c (frame_sp_unwind): New function.
4501 (get_frame_sp): New function.
4502 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4503 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4504 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4506 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4507 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4509 2003-06-08 Andrew Cagney <cagney@redhat.com>
4511 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4514 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4515 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4516 * config/m68k/tm-sun3.h: Update.
4517 * config/m68k/tm-m68klynx.h: Update.
4518 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4520 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4521 trad_frame". Update comments.
4522 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4523 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4524 (trad_frame_register_value, trad_frame_prev_register): Update.
4526 2003-06-08 Andrew Cagney <cagney@redhat.com>
4528 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4529 from GCC's acinclude.m4.
4530 * configure.in: Check for getopt's delcaration.
4531 * aclocal.m4, config.in, configure: Re-generate.
4532 * main.c (error_init): Delete declaration.
4533 * defs.h (error_init): Declare.
4534 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4535 (rs6000_convert_from_func_ptr_addr): Make static.
4536 (_initialize_rs6000_tdep): Add declaration.
4537 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4538 (show_commands, set_verbose, show_history): Delete declaration.
4539 * top.h (set_verbose): Add declaration.
4540 (show_history, set_history, show_commands): Add declaration.
4541 (do_restore_instream_cleanup): Add declaration.
4542 * objc-lang.c (specialcmp): Make static.
4543 (print_object_command): Make static.
4544 (find_objc_msgsend): Make static.
4545 (find_objc_msgcall_submethod_helper): Make static.
4546 (find_objc_msgcall_submethod): Make static.
4547 (_initialize_objc_language): Add declaration.
4548 (find_implementation_from_class): Make static.
4549 (find_implementation): Make static.
4550 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4551 * objc-lang.h (lookup_struct_typedef): Add declaration.
4552 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4553 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4554 (do_restore_user_call_depth): Make static.
4555 (do_restore_instream_cleanup): Delete declaration.
4556 (dont_repeat): Delete declaration.
4557 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4558 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4559 * reggroups.c (_initialize_reggroup): Add declaration.
4560 * cp-support.c (_initialize_cp_support): Add declaration.
4561 * cp-abi.c (_initialize_cp_abi): Add declaration.
4562 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4563 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4564 (_initialize_gnu_v3_abi): Add declaration.
4565 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4566 (_initialize_gnu_v2_abi): Add declaration.
4567 * frame-base.c (_initialize_frame_base): Add declaration.
4568 * doublest.c (floatformat_from_length): Make static.
4569 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4570 * frame.c (create_sentinel_frame): Make static.
4571 (_initialize_frame): Add declaration.
4572 * top.c (do_catch_errors): Make static.
4573 (gdb_rl_operate_and_get_next_completion): Make static.
4574 * typeprint.c: Include "typeprint.h".
4575 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4576 (sentinel_frame_this_id): Make static.
4577 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4578 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4579 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4580 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4581 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4582 * maint.c (maintenance_print_architecture): Make static.
4583 * signals/signals.c (_initialize_signals): Add declaration.
4584 * std-regs.c (_initialize_frame_reg): Add declaration.
4585 * jv-exp.y (push_variable): ISO C definition.
4586 (push_qualified_expression_name): Ditto.
4587 * memattr.c (_initialize_mem): Add declaration.
4588 * remote.c (remote_check_watch_resources): Make static.
4589 (remote_stopped_by_watchpoint): Make static.
4590 (remote_stopped_data_address): Make static.
4591 * d10v-tdep.c (nr_dmap_regs): Make static.
4592 (a0_regnum): Make static.
4593 (d10v_frame_unwind_cache): Make static.
4594 (d10v_frame_p): Make static.
4595 * osabi.c (show_osabi): Make static.
4596 (_initialize_gdb_osabi): Add extern declaration.
4597 * gdbtypes.c (make_qualified_type): Make static.
4598 (safe_parse_type): Make static.
4599 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4600 * macrotab.c (macro_bcache_free): Make static.
4601 * interps.c (interp_set_quiet): Make static.
4602 (interpreter_exec_cmd): Make static.
4603 * stack.h (select_frame_command): New file.
4604 * stack.c: Include "stack.h".
4605 (select_frame_command_wrapper): Delete function.
4606 (select_frame_command): Make global.
4607 * infcall.c: Include "infcall.h".
4608 * linespec.c: Include "linespec.h".
4609 * symfile.c (sections_overlap): Make static.
4610 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4611 * charset.c (_initialize_charset): Add missing prototype.
4612 * regcache.c (init_legacy_regcache_descr): Make static.
4613 (do_regcache_xfree): Make static.
4614 (regcache_xfer_part): Make static.
4615 (_initialize_regcache): Add missing prototype.
4616 * breakpoint.c (parse_breakpoint_sals): Make static.
4617 (breakpoint_sals_to_pc): Make static.
4618 * interps.h (clear_interpreter_hooks): ISO C declaration.
4619 * Makefile.in (stack_h): Define.
4620 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4621 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4623 2003-06-08 Andrew Cagney <cagney@redhat.com>
4625 * Makefile.in (d10v-tdep.o): Update dependencies.
4626 (SFILES): Add trad-frame.c.
4627 (trad_frame_h): Define.
4628 (COMMON_OBS): Add trad-frame.o.
4629 (trad-frame.o): Specify dependencies.
4630 * d10v-tdep.c: Include "trad-frame.h".
4631 (saved_regs_unwinder): Delete function.
4632 (d10v_frame_prev_register): Use trad_frame_prev_register.
4633 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4634 trad_frame", delete "regs" and "prev_sp".
4635 (prologue_find_regs): Use trad-frame.
4636 * trad-frame.h, trad-frame.c: New files.
4638 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4640 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4642 2003-06-07 Adam Fedor <fedor@gnu.org>
4644 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4645 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4646 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4647 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4648 resolve_msgsend_super, resolve_msgsend_super_stret):
4651 2003-06-07 Andrew Cagney <cagney@redhat.com>
4653 * symfile.h: Re-indent, clean up comments.
4655 2003-06-07 Andrew Cagney <cagney@redhat.com>
4657 * inferior.h (deprecated_write_sp): Replace
4658 generic_target_write_sp.
4659 * regcache.c (deprecated_write_sp): Replace
4660 generic_target_write_sp.
4661 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4662 * vax-tdep.c (vax_gdbarch_init): Update.
4663 * v850-tdep.c (v850_gdbarch_init): Update.
4664 * sparc-tdep.c (sparc_gdbarch_init): Update.
4665 * sh-tdep.c (sh_gdbarch_init): Update.
4666 * s390-tdep.c (s390_gdbarch_init): Update.
4667 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4668 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4669 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4670 * mcore-tdep.c (mcore_gdbarch_init): Update.
4671 * m68k-tdep.c (m68k_gdbarch_init): Update.
4672 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4673 * ia64-tdep.c (ia64_gdbarch_init): Update.
4674 * h8300-tdep.c (h8300_gdbarch_init): Update.
4675 * frv-tdep.c (frv_gdbarch_init): Update.
4676 * cris-tdep.c (cris_gdbarch_init): Update.
4677 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4679 2003-06-07 Andrew Cagney <cagney@redhat.com>
4681 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4682 Assert that PC_REGNUM is valid.
4683 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4685 2003-06-07 Andrew Cagney <cagney@redhat.com>
4687 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4688 * gdbarch.h, gdbarch.c: Regenerate.
4689 * mn10300-tdep.c: Include "gdb_assert.h".
4690 (mn10300_read_fp): New function.
4691 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4692 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4693 * ia64-tdep.c: Include "gdb_assert.h".
4694 (ia64_read_fp): New function.
4695 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4696 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4697 * regcache.c (generic_target_read_sp): Delete function.
4698 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4699 * inferior.h (generic_target_read_sp): Delete declaration.
4700 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4701 generic_target_read_sp.
4702 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4703 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4704 * sh-tdep.c (sh_gdbarch_init): Ditto.
4705 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4706 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4708 2003-06-07 Andrew Cagney <cagney@redhat.com>
4710 * gdbarch.sh: Comment each field of startup_gdbarch.
4711 * gdbarch.h, gdbarch.c: Re-generate.
4713 2003-06-07 Andrew Cagney <cagney@redhat.com>
4715 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4716 * gdbarch.h, gdbarch.c: Re-generate.
4717 * regcache.c: Update comments on read_pc et.al.
4718 (generic_target_read_pc): Delete function.
4719 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4720 * inferior.h (generic_target_read_pc): Delete declaration.
4721 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4722 generic_target_read_pc.
4723 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4724 * sh-tdep.c (sh_gdbarch_init): Ditto.
4725 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4726 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4728 2003-06-07 Andrew Cagney <cagney@redhat.com>
4730 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4731 "index" with "special_local_sect". Use strcmp instead of STREQ.
4732 Append period to coments.
4734 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4736 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4737 (elfstab_offset_sections): Likewise.
4738 * gdb-stabs.h (stab_section_info): Likewise.
4739 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4740 * objfiles.c (objfile_relocate): Likewise.
4741 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4742 * remote.c (get_offsets): Likewise.
4743 (remote_cisco_objfile_relocate): Likewise.
4744 * somread.c (som_symfile_offsets): Likewise.
4745 * symfile.c (alloc_section_addr_info): New function.
4746 (build_section_addr_info_from_section_tab): Use it.
4747 (free_section_addr_info): Adjust.
4748 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4749 (syms_from_objfile): Allocate local_addr dynamically.
4750 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4752 (add_symbol_file_command): Allocate sect_opts dynamically.
4753 (reread_symbols): Avoid use of SECT_OFF_MAX.
4754 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4755 (alloc_section_addr_info): Declare it.
4756 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4757 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4759 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4761 2003-06-06 Andrew Cagney <cagney@redhat.com>
4763 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4764 (d10v_frame_unwind_cache): Do not set "return_pc".
4766 2003-06-06 Michael Snyder <msnyder@redhat.com>
4768 * h8300-tdep.c: Make tidy (long lines).
4770 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4772 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4773 to regcache_collect().
4775 2003-06-05 J. Brobecker <brobecker@gnat.com>
4777 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4778 pc_in_sigtramp multiarch method.
4779 (hppa_hpux_som_init_abi): Use it.
4780 (hppa_hpux_elf_init_abi): Likewise.
4781 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4782 macro has been multiarched.
4783 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4784 macro here, as hppa64 isn't multiarched yet.
4786 2003-06-05 Andrew Cagney <cagney@redhat.com>
4788 * Makefile.in (value_h): Add $(frame_h).
4789 * value.h: Include "frame.h".
4790 (struct value): Replace "frame_addr" with "frame_id".
4791 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4792 * values.c (allocate_value): Use VALUE_FRAME_ID.
4793 (value_copy): Use VALUE_FRAME_ID.
4794 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4795 * valops.c (value_assign): Update. Use frame_find_by_id.
4797 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4799 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4802 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4804 * thread-db.c (check_event): For create/death event breakpoints,
4805 loop through all messages to ensure that we read the message
4806 corresponding to the breakpoint we are at.
4808 2003-06-04 Michael Snyder <msnyder@redhat.com>
4810 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4812 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4814 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4815 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4816 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4817 when handling .eh_frame sections.
4819 2003-06-04 J. Brobecker <brobecker@gnat.com>
4821 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4822 prepare_to_proceed procedure instead of the hppa-specific one.
4823 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4825 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4827 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4828 * config.in: Regenerated.
4829 * configure.in: Add test for syscall function and check for
4830 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4831 * configure: Regenerated.
4832 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4834 (kill_lwp): New function that uses tkill syscall or
4835 uses kill, depending on whether threading model is nptl or not.
4836 All callers of kill() changed to use kill_lwp().
4837 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4838 see if all threads have already exited in the nptl model.
4839 (stop_and_resume_callback): New callback function used by the
4840 lin_lwp_wait thread exit handling code.
4841 (stop_wait_callback): Check for threads already having exited and
4842 delete such threads fromt the lwp list when discovered.
4843 (stop_callback): Don't assert retcode of kill call.
4845 Roland McGrath <roland@redhat.com>
4846 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4849 2003-06-03 Richard Henderson <rth@redhat.com>
4851 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4852 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4853 (alpha_sigtramp_frame_prev_register): Likewise.
4854 (alpha_heuristic_frame_prev_register): Likewise.
4855 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4857 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4858 alpha-specific register id names.
4859 (alpha_mdebug_frame_unwind_cache): Likewise.
4860 (alpha_mdebug_frame_prev_register): Likewise.
4862 2003-06-03 Richard Henderson <rth@redhat.com>
4864 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4865 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4866 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4867 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4869 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4870 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4871 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4873 * alpha-linux-tdep.c: Remove unnecessary includes.
4874 * Makefile.in (alpha-linux-tdep.o): Update.
4876 2003-06-03 Richard Henderson <rth@redhat.com>
4878 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4879 (alphabsd_fill_fpreg): Likewise.
4881 2003-06-03 J. Brobecker <brobecker@gnat.com>
4883 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4884 references to struct frame_info fields by calls to the equivalent
4885 accessors. Necessary now that frame_info is opaque.
4887 2003-06-03 J. Brobecker <brobecker@gnat.com>
4889 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4890 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4891 structure, field no longer exists.
4893 2003-06-03 J. Brobecker <brobecker@gnat.com>
4895 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4896 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4898 2003-06-03 J. Brobecker <brobecker@gnat.com>
4900 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4901 references to struct frame_info fields by calls to the equivalent
4902 accessors. Necessary now that frame_info is opaque.
4904 2003-06-03 J. Brobecker <brobecker@gnat.com>
4906 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4907 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4908 structure, field no longer exists.
4910 2003-06-03 Theodore A. Roth <troth@openavr.org>
4912 * remote.c (init_remote_state): Compute sizeof_g_packet by
4913 accumulation of the size of all registers instead of blindly using
4914 DEPRECATED_REGISTER_BYTES.
4916 2003-06-03 Michael Snyder <msnyder@redhat.com>
4918 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4919 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4922 2003-06-03 J. Brobecker <brobecker@gnat.com>
4924 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4925 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4927 2003-06-03 Andrew Cagney <cagney@redhat.com>
4929 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4930 (sparc_convert_to_raw): Delete function.
4931 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4932 register_convert_to_virtual.
4934 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4936 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4937 layer if not dealing with a statically-linked threaded program.
4939 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4941 * solib.c (solib_open): Update comment to reflect actual search order.
4943 2003-06-03 Andrew Cagney <cagney@redhat.com>
4945 * frame.c (get_frame_memory_signed): New function.
4946 (get_frame_memory, get_frame_memory_unsigned): New function.
4947 (get_frame_arch): New function.
4948 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4949 (get_frame_memory, get_frame_unsigned_memory): Declare.
4950 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4951 get_frame_memory_unsigned and get_frame_arch.
4952 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4954 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4956 * MAINTAINERS (write after approval): Add myself.
4958 2003-06-03 Jim Blandy <jimb@redhat.com>
4960 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4961 elements of gregset_t are 64 bits each, but access registers
4962 are still 32 bits, so they're packed two per gregset_t
4963 element. Unpack/pack them properly.
4965 2003-06-02 David Carlton <carlton@bactrian.org>
4967 * linespec.c (find_methods): Break out code into
4968 add_matching_methods and add_constructors.
4969 (add_matching_methods): New.
4970 (add_constructors): Ditto.
4972 2003-06-02 Andrew Cagney <cagney@redhat.com>
4974 * sparc-tdep.c (sparc_print_registers): Delete call to
4975 REGISTER_CONVERTIBLE.
4976 (sparc_gdbarch_init): Do not set register_convertible.
4977 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4978 * frv-tdep.c (frv_gdbarch_init): Ditto.
4979 * cris-tdep.c (cris_gdbarch_init): Ditto.
4981 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4983 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4984 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4985 (syms_from_objfile): Ditto.
4987 2003-06-03 Andreas Schwab <schwab@suse.de>
4989 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4990 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4992 2003-06-02 Richard Henderson <rth@redhat.com>
4994 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4995 a member of all_reggroup.
4997 2003-06-02 Richard Henderson <rth@redhat.com>
4999 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5000 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5001 (alpha_lds, alpha_sts): New.
5002 (alpha_convert_register_p): Change from _register_convertible.
5003 (alpha_register_to_value): Change from _convert_to_virtual;
5004 restructure and fail for type sizes other than 4 or 8.
5005 (alpha_value_to_register): Similarly.
5006 (alpha_extract_return_value): Use alpha_sts.
5007 (alpha_store_return_value): Use alpha_lds.
5008 (alpha_gdbarch_init): Update hooks.
5010 2003-06-02 Richard Henderson <rth@redhat.com>
5012 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5014 (alpha_sigtramp_register_address): Likewise.
5016 2003-06-02 Richard Henderson <rth@redhat.com>
5018 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5019 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5020 * alpha-tdep.h: Declare them.
5022 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5023 Remove zerobuf. Don't error on UNIQUE.
5024 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5025 (ALPHA_REGSET_UNIQUE): Provide default.
5026 (supply_gregset): Use alpha_supply_int_regs.
5027 (fill_gregset): Use alpha_fill_int_regs.
5028 (supply_fpregset): Use alpha_supply_fp_regs.
5029 (fill_fpregset): Use alpha_fill_fp_regs.
5030 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5031 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5032 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5033 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5034 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5035 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5037 2003-06-02 Richard Henderson <rth@redhat.com>
5039 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5041 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5042 (alpha_store_return_value): Likewise.
5044 2003-06-02 David Carlton <carlton@math.stanford.edu>
5046 * block.c (contained_in): Add 'const' to arguments.
5047 (block_function): Ditto.
5048 * block.h: Update declarations for block_function and
5051 2003-06-02 David Carlton <carlton@math.stanford.edu>
5053 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5054 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5055 * p-valprint.c (pascal_val_print): Ditto.
5056 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5058 2003-06-02 Richard Henderson <rth@redhat.com>
5060 * alpha-tdep.c (alpha_push_dummy_call): Use
5061 builtin_type_ieee_double_little instead of builtin_type_double.
5063 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5064 sign-extension of 32-bit values.
5065 (alpha_store_return_value): Similarly.
5067 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5068 (alpha_extract_return_value): Likewise.
5069 (alpha_store_return_value): Likewise.
5071 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5072 (alpha_store_return_value): Error on IEEE Quad floats.
5074 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5075 (alpha_extract_struct_value_address): Likewise.
5076 (alpha_store_return_value): Likewise.
5077 (alpha_store_struct_return): Remove.
5078 (alpha_gdbarch_init): Update hook registration to match.
5080 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5081 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5082 macros where appropriate.
5083 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5084 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5086 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5087 for SP, GP; void_func_ptr for PC; non-language-specific types
5089 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5091 2003-06-02 Richard Henderson <rth@redhat.com>
5093 * top.h (lim_at_start): Declare.
5094 * main.c (captured_main): Set it.
5095 * top.c (lim_at_start): Define.
5096 (command_loop): Use it instead of &environ.
5097 * event-top.c (command_handler): Likewise.
5099 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5101 * mipsnbsd-tdep.c: Update copyright years.
5102 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5104 2003-06-01 Richard Henderson <rth@redhat.com>
5106 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5107 (alpha-linux-tdep.o): Update dependencies.
5108 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5109 * alpha-mdebug-tdep.c: Remove unneeded includes.
5111 2003-06-01 Richard Henderson <rth@redhat.com>
5113 * alpha-tdep.c (alpha_register_reggroup_p): New.
5114 (alpha_gdbarch_init): Register it.
5116 2003-06-02 Andrew Cagney <cagney@redhat.com>
5118 * dwarfread.c: Eliminate "register"
5119 (decode_die_type): Eliminate assignment within "if".
5120 (struct_type, decode_array_element_type): Ditto.
5121 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5122 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5123 (decode_modified_type, completedieinfo): Ditto.
5124 * block.c: Eliminate "register".
5125 (blockvector_for_pc_sect): Eliminate assignment within "if".
5126 * cp-support.h (struct symbol): Opaque declaration.
5127 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5129 2003-06-01 Richard Henderson <rth@redhat.com>
5131 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5132 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5134 2003-06-01 Adam Fedor <fedor@gnu.org>
5136 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5137 * gdbarch.[ch]: Regenerate.
5138 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5139 (hppa_gdbarch_init): Set it in the gdbarch vector.
5140 * i386-tdep.c (i386_fetch_pointer_argument): New
5141 (i386_gdbarch_init): Set it into gdbarch.
5142 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5143 (rs6000_gdbarch_init): Set it in gdbarch.
5144 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5145 (sparc_gdbarch_init): Set it in gdbarch.
5147 2003-06-01 Andrew Cagney <cagney@redhat.com>
5149 * defs.h (extract_address): Delete declaration.
5150 * findvar.c (extract_address): Delete function.
5151 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5152 extract_address with the inline equivalent,
5153 extract_unsigned_integer.
5154 (xstormy16_extract_struct_value_address): Ditto.
5155 (xstormy16_pointer_to_address): Ditto.
5156 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5157 * v850-tdep.c (v850_push_arguments): Ditto.
5158 (v850_extract_return_value): Ditto.
5159 (v850_extract_struct_value_address): Ditto.
5160 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5161 (sparcnbsd_get_longjmp_target_64): Ditto.
5162 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5163 (get_longjmp_target): Ditto.
5164 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5165 (sh64_extract_struct_value_address): Ditto.
5166 (sh_push_arguments): Ditto.
5167 (sh64_push_arguments): Ditto.
5168 * remote-vxsparc.c (vx_read_register): Ditto.
5169 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5170 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5171 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5172 * mipsv4-nat.c (get_longjmp_target): Ditto.
5173 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5174 * mips-nat.c (get_longjmp_target): Ditto.
5175 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5176 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5177 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5178 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5179 * irix5-nat.c (get_longjmp_target): Ditto.
5180 * irix4-nat.c (get_longjmp_target): Ditto.
5181 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5182 (ia64_push_arguments): Ditto.
5183 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5184 * h8300-tdep.c (h8300_push_arguments): Ditto.
5185 (h8300_store_return_value): Ditto.
5186 (h8300_extract_struct_value_address): Ditto.
5187 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5188 (frv_push_arguments): Ditto.
5189 * avr-tdep.c (avr_pointer_to_address): Ditto.
5190 (avr_push_arguments): Ditto.
5191 * arm-tdep.c (arm_push_dummy_call): Ditto.
5192 (arm_get_longjmp_target): Ditto.
5193 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5194 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5195 (alpha_get_longjmp_target): Ditto.
5197 * solib-irix.c (extract_mips_address): Inline extract_address,
5198 replacing it with extract_signed_integer.
5199 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5200 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5201 (first_link_map_member, open_symbol_file_object): Ditto.
5202 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5203 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5204 (LM_NEXT, LM_NAME): Ditto.
5206 2003-06-01 Richard Henderson <rth@redhat.com>
5208 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5209 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5210 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5211 (alpha_cannot_store_register): Likewise.
5212 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5213 * alpha-nat.c (supply_gregset): Likewise.
5214 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5216 2003-06-01 Andrew Cagney <cagney@redhat.com>
5218 * infcall.c (call_function_by_hand): Update comment on
5219 DEPRECATED_DUMMY_WRITE_SP.
5221 * mips-tdep.c (mips_gdbarch_init): Do not set
5222 deprecated_dummy_write_sp.
5223 (mips_eabi_push_dummy_call): Set the SP register.
5224 (mips_o64_push_dummy_call): Set the SP register.
5225 (mips_o32_push_dummy_call): Set the SP register.
5226 (mips_n32n64_push_dummy_call): Set the SP register.
5228 2003-06-01 Richard Henderson <rth@redhat.com>
5230 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5231 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5232 (supply_gregset): Likewise.
5233 * alpha-tdep.c (alpha_store_return_value): Likewise.
5234 (alpha_get_longjmp_target): Likewise.
5235 (alpha_register_name): Constify array.
5236 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5237 deprecated_register_size, deprecated_register_bytes,
5238 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5239 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5240 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5242 2003-06-01 Richard Henderson <rth@redhat.com>
5244 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5245 from arg_reg_buffer to regcache to avoid double conversion.
5247 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5249 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5251 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5252 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5254 2003-06-01 Richard Henderson <rth@redhat.com>
5256 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5257 (decode_frame_entry): Set it. Skip FDE augmentation.
5259 2003-06-01 Richard Henderson <rth@redhat.com>
5261 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5262 not overlapping PC_REGNUM.
5264 2003-06-01 Richard Henderson <rth@redhat.com>
5266 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5267 alpha_push_arguments. Don't dump argument register data to
5268 the target stack. Fix float and 128-bit long double semantics.
5269 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5270 (alpha_fix_call_dummy): Remove.
5271 (alpha_call_dummy_words): Remove.
5272 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5274 2003-06-01 Richard Henderson <rth@redhat.com>
5276 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5278 2003-06-01 Andrew Cagney <cagney@redhat.com>
5280 * mips-tdep.c (is_mips16_addr): New function.
5281 (make_mips16_addr, unmake_mips16_addr): New functions.
5282 (pc_is_mips16, mips_fetch_instruction): Use.
5283 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5284 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5285 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5286 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5288 * config/mips/tm-mips.h: Update copyright.
5289 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5290 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5291 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5292 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5293 (TM_PRINT_INSN_MACH): Delete.
5294 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5296 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5297 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5298 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5299 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5300 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5301 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5302 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5303 mips*-*-riscos* and mips*-*-sysv* onto mips.
5304 * config/mips/mips64.mt: New file.
5305 * config/mips/mips.mt: New file.
5306 * config/mips/littlemips.mt: Delete file.
5307 * config/mips/decstation.mt: Delete file.
5308 * config/mips/vr4300el.mt: Delete file.
5309 * config/mips/vr5000el.mt: Delete file.
5310 * config/mips/vr5000.mt: Delete file.
5311 * config/mips/vr4100.mt: Delete file.
5312 * config/mips/vr4xxxel.mt: Delete file.
5313 * config/mips/vr4300.mt: Delete file.
5314 * config/mips/vr4xxx.mt: Delete file.
5315 * config/mips/bigmips.mt: Delete file.
5316 * config/mips/bigmips64.mt: Delete file.
5317 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5318 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5319 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5320 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5321 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5323 * config/mips/tm-irix3.h: Ditto.
5324 * config/mips/tm-mipsv4.h: Ditto.
5325 * config/mips/tm-embed.h: Ditto.
5326 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5328 * config/mips/tm-vr5000el.h: Delete file.
5329 * config/mips/tm-tx39l.h: Delete file.
5330 * config/mips/tm-vr4300el.h: Delete file.
5331 * config/mips/tm-vr4xxxel.h: Delete file.
5332 * config/mips/tm-vr4300.h: Delete file.
5333 * config/mips/tm-vr4100.h: Delete file.
5334 * config/mips/tm-vr4xxx.h: Delete file.
5335 * config/mips/tm-vr5000.h: Delete file.
5336 * config/mips/tm-embedl64.h: Delete file.
5337 * config/mips/tm-embedl.h: Delete file.
5338 * config/mips/tm-embed64.h: Delete file.
5339 * config/mips/tm-bigmips64.h: Delete file.
5340 * config/mips/tm-bigmips.h: Delete file.
5342 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5345 * shnbsd-nat.c: Include "sh-tdep.h".
5347 From Richard Henderson <rth@redhat.com>:
5348 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5350 2003-05-31 Andrew Cagney <cagney@redhat.com>
5352 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5353 forward declaration.
5354 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5355 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5356 (mips_find_saved_regs): Use set_reg_offset.
5357 (mips_frame_init_saved_regs): Delete function.
5358 (mips_pop_frame): Call mips_find_saved_regs instead of
5359 DEPRECATED_FRAME_INIT_SAVED_REGS.
5361 2003-05-31 Andrew Cagney <cagney@redhat.com>
5363 * mips-tdep.c (mips_gdbarch_init): Do not set
5364 deprecated_max_register_raw_size, register_virtual_size, and
5365 deprecated_max_register_virtual_size.
5367 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5369 * i386-tdep.c: Include "dwarf2-frame.h".
5370 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5371 * Makefile.in (i386-tdep.o): Update dependencies.
5373 * dwarf2-frame.c, dwarf2-frame.h: New files.
5374 * Makefile.in (SFILES): Add dwarf2-frame.c.
5375 (dwarf2_frame_h): Define.
5376 (COMMON_OBS): Add dwarf2-frame.o.
5377 (dwarf2-frame.o): Add dependencies.
5379 2003-05-31 Andreas Jaeger <aj@suse.de>
5381 * x86-64-linux-nat.c: Fix comment.
5383 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5385 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5388 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5389 have a sigcontext_addr handler.
5390 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5391 sigcontext_addr handler.
5393 2003-05-31 Andrew Cagney <cagney@redhat.com>
5395 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5396 (print_fp_register_row): Replace do_fp_register_row.
5397 (mips_print_fp_register): Add "file" and "frame" parameters.
5398 (mips_print_register): Add "file" and "frame" parameters.
5399 (mips_print_registers_info): Replace mips_do_registers_info.
5400 (mips_gdbarch_init): Set print_registers_info instead of
5401 deprecated_do_registers_info.
5402 (mips_read_fp_register_single): Add "frame" parameter.
5403 (mips_read_fp_register_double): Add "frame" parameter.
5405 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5407 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5408 Fixes a bug where GDB would print the wrong register names for
5409 targets without SSE.
5411 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5412 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5415 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5416 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5417 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5420 From Michal Ludvig <mludvig@suse.cz>:
5421 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5423 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5424 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5425 I386_ST0_REGNUM): Move here from...
5426 * i386-tdep.c: ... here.
5427 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5428 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5429 registers if possible.
5430 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5431 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5433 (i386bsd_sc_reg_offset): New variable.
5434 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5435 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5437 (i386fbsd_sc_reg_offset): New variable.
5438 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5440 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5442 (i386fbsd4_sc_reg_offset): New variable.
5443 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5444 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5446 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5447 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5448 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5450 (i386nbsd_sc_reg_offset): New variable.
5451 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5452 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5454 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5456 (i386obsd_sc_reg_offset): New variable.
5457 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5458 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5460 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5461 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5462 for frame pointer offset in `struct sigcontext'.
5464 2003-05-31 Andrew Cagney <cagney@redhat.com>
5466 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5467 architecture methods call_dummy_words, sizeof_call_dummy_words,
5468 push_return_address, store_struct_return, and fix_call_dummy. Set
5469 push_dummy_call instead of deprecated_push_arguments.
5470 (mips_store_struct_return): Delete function.
5471 (mips_fix_call_dummy): Delete function.
5472 (mips_push_return_address): Delete function.
5473 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5474 RA_REGNUM and T9_REGNUM.
5475 (mips_n32n64_push_dummy_call): Ditto for
5476 mips_n32n64_push_arguments.
5477 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5478 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5480 2003-05-31 Andrew Cagney <cagney@redhat.com>
5482 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5483 "dummy_addr" to "bp_addr".
5484 * infcall.c (call_function_by_hand): Pass "funaddr" to
5485 gdbarch_push_dummy_call.
5486 * gdbarch.h, gdbarch.c: Re-generate.
5487 * i386-tdep.c (i386_push_dummy_call): Update.
5488 * arm-tdep.c (arm_push_dummy_call): Update.
5489 * d10v-tdep.c (d10v_push_dummy_call): Update.
5491 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5493 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5494 variable declarations.
5495 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5496 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5497 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5498 x86_64_init_frame_pc, x86_64_init_frame_pc,
5499 x86_64_function_has_prologue): Remove prototypes.
5500 (X86_64_NUM_GREGS): New define.
5501 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5502 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5503 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5504 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5505 XMM1_REGNUM): Remove defines.
5506 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5507 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5508 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5509 X86_64_XMM1_REGNUM): New defines.
5510 (struct x86_64_register_info): Renamed from `struct
5511 register_info'. Remove `size' member.
5512 (x86_64_register_info_table): Remove variable.
5513 (x86_64_register_info): New variable.
5514 (X86_64_NUM_REGS): New define.
5515 (X86_64_NUM_GREGS): Remove define.
5516 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5517 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5519 (x86_54_dwarf2_reg_to_regnum): Remove function.
5520 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5521 (x86_64_dwarf_reg_to_regnum): New function.
5522 (x86_64_register_name): Rewrite.
5523 (x86_64_register_raw_size): Remove function.
5524 (x86_64_register_byte_table): Remove variable.
5525 (x86_64_register_byte): Remove function.
5526 (x86_64_register_virtual_type): Remove function.
5527 (x86_64_register_type): New function.
5528 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5529 x86_64_register_convert_to_raw): Remove functions.
5530 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5531 (x86_64_use_struct_convention): Make static. Adjust for renamed
5533 (x86_64_frame_init_saved_regs): Remove function.
5534 (x86_64_push_arguments): Make static. Change to accept a regcache
5536 (x86_64_store_return_value, x86_64_extract_return_value): Make
5537 static. Rewrite based on i386 counterparts.
5538 (x86_64_push_dummy_call): New function.
5539 (X86_64_NUM_SAVED_REGS): New define.
5540 (x86_64_register_number): Remove function.
5541 (x86_64_store_struct_return): Remove function.
5542 (x86_64_frameless_function_invocation,
5543 x86_64_function_has_prologue): Remove functions.
5544 (PROLOG_BUFSIZE): Remove define.
5545 (struct x86_64_frame_cache): New structure.
5546 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5547 x86_64_frame_cache, x86_64_frame_this_id,
5548 x86_64_frame_prev_register, x86_64_frame_p,
5549 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5550 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5552 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5554 (x86_64_skip_prologue): Rewrite in terms of
5555 x86_64_analyze_prologue.
5556 (x86_64_frame_base_address): New function.
5557 (x86_64_frame_base): New variable.
5558 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5559 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5560 set deprecated_fp_regnum, deprecated_register_size,
5561 deprecated_register_bytes, register_raw_size, register_byte,
5562 register_virtual_type, register_convertiable,
5563 register_convert_to_virtual, convert_to_raw,
5564 deprecated_get_saved_register, deprecated_target_read_fp,
5565 deprecated_push_arguments, deprecated_push_return_address,
5566 deprecated_pop_frame, deprecated_store_struct_return,
5567 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5568 frameless_function_invocation, deprecated_frame_saved_pc,
5569 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5570 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5571 deprecated_init_frame_pc and virtual_frame_pointer. Call
5572 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5573 and x86_64_frame_p. Call frame_base_set_default to register
5575 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5576 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5577 (_initialize_x86_64_tdep): Remove function.
5578 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5579 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5580 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5582 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5583 (x86_64_linux_sigcontext_addr): Rewrite.
5584 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5585 x86_64_linux_frame_saved_pc): Remove functions.
5586 (x86_64_linux_pc_in_sigtramp): Renamed from
5587 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5589 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5591 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5592 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5593 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5594 (x86_64_regmap): Rename to regmap.
5595 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5597 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5599 (x86_64_fxsave_offset): Remove function.
5600 (supply_fpregset): Simply call x86_64_supply_fxsave.
5601 (fill_fpregset): Simply call x86_64_fill_fxsave.
5602 (fetch_inferior_registers, store_inferior_registers): Avoid
5603 asignment in if-statement.
5604 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5605 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5606 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5607 (fetch_core_registers): Remove function.
5608 (linux_elf_core_fns): Remove.
5609 (offsetoff): Don't define.
5610 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5611 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5612 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5614 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5615 protection against multiple includes instead of NM_X86_64_h. Add
5616 various comments. Include "config/nm-linux.h". Don't include
5618 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5619 GET_THREAD_SIGNALS): Remove defines.
5620 (x86_64_register_u_addr, kernel_u_size,
5621 lin_thread_get_thread_signals): Remove prototypes.
5622 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5623 [HAVE_LINK_H]: Don't include "solib.h".
5624 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5625 * config/i386/tm-x86-64linux.h: Fix comments.
5626 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5627 x86-64-tdep.o): Update dependencies.
5629 2003-05-30 Andrew Cagney <cagney@redhat.com>
5631 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5632 Change parameter type to a "struct regcache *".
5634 * gdbarch.sh: Regardless of the multi-arch level, always define
5635 the macro when not already defined.
5636 * gdbarch.h, gdbarch.c: Re-generate.
5638 2003-05-30 Richard Henderson <rth@redhat.com>
5640 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5641 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5642 (alpha_mdebug_frame_this_id): Likewise.
5643 (alpha_mdebug_frame_prev_register): Likewise.
5644 (alpha_mdebug_frame_base_address): Likewise.
5645 (alpha_mdebug_frame_locals_address): Likewise.
5646 (alpha_mdebug_frame_args_address): Likewise.
5647 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5648 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5649 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5651 (alpha_heuristic_frame_this_id): Make static.
5652 (alpha_heuristic_frame_prev_register): Likewise.
5653 (alpha_heuristic_frame_base_address): Likewise.
5654 * alpha-tdep.h: Update.
5656 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5658 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5659 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5661 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5662 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5663 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5664 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5665 I386_ST0_REGNUM): New defines.
5666 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5667 codestream_get): Remove define.
5668 (codestream_next_addr, condestream_addr, condestream_buf,
5669 codestream_off, codestream_cnt): Remove variables.
5670 (codestream_fill, codestream_seek, codestream_read): Remove
5672 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5674 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5675 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5676 i386_frame_saved_pc, i386_saved_pc_after_call,
5677 i386_frame_num_args, i386_frame_init_saved_regs,
5678 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5679 i386_push_arguments): Remove functions.
5680 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5681 functionality. Use i386_analyze_prologue instead of
5682 i386_get_frame_setup.
5683 (I386_NUM_SAVED_REGS): New define.
5684 (struct i386_frame_cache): New structure.
5685 (i386_alloc_frame_cache, i386_analyze_struct_return,
5686 i386_skip_probe, i386_analyze_frame_setup,
5687 i386_analyze_register_saves, i386_analyze_prologue,
5688 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5689 i386_frame_prev_register, i386_sigtramp_frame_cache,
5690 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5691 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5692 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5694 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5696 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5697 I386_EAX_REGNUM and I386_EDX_REGNUM.
5698 (i386_extract_return_value, i386_store_return_value): Use
5699 I386_ST0_REGNUM where appropriate.
5700 (i386_extract_struct_value_address): Rewrite to use extract_address.
5701 (i386_svr4_pc_in_sigtramp): Add comment.
5702 (i386_svr4_sigcontext_addr): Rewrite.
5703 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5705 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5706 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5707 of new defines. Set push_dummy_call, don't set
5708 deprecated_push_arguments, deprecated_push_return_address,
5709 deprecated_pop_frame. Don't set parm_boundary. Don't set
5710 deprecated_frame_chain, deprecated_frame_saved_pc,
5711 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5712 save_dummy_frame_tos, unwind_pc. Call
5713 frame_unwind_append_predicate and frame_base_set_default. Don't
5714 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5715 Don't set frameless_function_invocation. Don't set
5716 deprecated_register_bytes, deprecated_register_size,
5717 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5718 * i386-linux-tdep.c: Fix formatting in some comments.
5719 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5720 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5721 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5722 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5723 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5724 redundant parentheses.
5725 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5726 (i386_linux_sigcontext_addr): Use it. Rewrite.
5727 (find_minsym_and_objfile): Change name of second argument.
5728 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5729 changed. Use frame_pc_unwind instead of
5730 DEPRECATED_SAVED_PC_AFTER_CALL.
5731 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5732 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5733 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5735 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5737 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5738 (_initialize_i386_cygwin_tdep): New prototype.
5739 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5740 deprecated_frame_chain_valid.
5741 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5742 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5743 Rely on the SVR4 defaults.
5744 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5745 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5747 2003-05-30 Andrew Cagney <cagney@redhat.com>
5749 * infcall.c (call_function_by_hand): Always call
5750 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5752 2003-05-30 Richard Henderson <rth@redhat.com>
5754 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5757 2003-05-29 Jim Blandy <jimb@redhat.com>
5759 Use gdbarch methods for solib stuff on PowerPC Linux.
5760 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5761 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5763 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5764 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5765 giving the same effect as the #definitions above.
5767 2003-05-29 Adam Fedor <fedor@gnu.org>
5769 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5770 (find_implementation_from_class): Replace it with the standard
5771 case i.e. do nothing.
5773 2003-05-29 Richard Henderson <rth@redhat.com>
5775 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5776 (alpha_linux_sigtramp_offset): Use it. Make static.
5777 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5778 update for new frame model.
5779 * alpha-mdebug-tdep.c: New file.
5780 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5781 (alpha_osf1_init_abi): Install it.
5782 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5783 (linked_proc_desc_table): Remove.
5784 (alpha_frame_past_sigtramp_frame): Remove.
5785 (alpha_dynamic_sigtramp_offset): Remove.
5786 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5787 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5788 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5789 (push_sigtramp_desc): Remove.
5790 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5791 (alpha_cannot_store_register): Likewise.
5792 (alpha_sigcontext_addr): Remove.
5793 (alpha_find_saved_regs): Remove.
5794 (alpha_frame_init_saved_regs): Remove.
5795 (alpha_init_frame_pc_first): Remove.
5796 (read_next_frame_reg): Remove.
5797 (alpha_frame_saved_pc): Remove.
5798 (alpha_saved_pc_after_call): Remove.
5799 (temp_proc_desc, temp_saved_regs): Remove.
5800 (alpha_about_to_return): Remove.
5801 (cached_proc_desc): Remove.
5802 (alpha_frame_chain): Remove.
5803 (alpha_print_extra_frame_info): Remove.
5804 (alpha_init_extra_frame_info): Remove.
5805 (alpha_frame_locals_address): Remove.
5806 (alpha_frame_args_address): Remove.
5807 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5808 (alpha_push_dummy_frame): Remove.
5809 (alpha_pop_frame): Remove.
5810 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5811 (alpha_read_insn): New.
5812 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5813 for different insn encodings.
5814 (alpha_in_lenient_prologue): Remove.
5815 (struct alpha_sigtramp_unwind_cache): New.
5816 (alpha_sigtramp_frame_unwind_cache): New.
5817 (alpha_sigtramp_register_address): New.
5818 (alpha_sigtramp_frame_this_id): New.
5819 (alpha_sigtramp_frame_prev_register): New.
5820 (alpha_sigtramp_frame_unwind): New.
5821 (alpha_sigtramp_frame_p): New.
5822 (struct alpha_heuristic_unwind_cache): New.
5823 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5824 don't count nop insns that occur between functions.
5825 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5826 heuristic_proc_desc, but without the mdebug wrapping.
5827 (alpha_heuristic_frame_this_id): New.
5828 (alpha_heuristic_frame_prev_register): New.
5829 (alpha_heuristic_frame_unwind): New.
5830 (alpha_heuristic_frame_p): New.
5831 (alpha_heuristic_frame_base_address): New.
5832 (alpha_heuristic_frame_base): New.
5833 (alpha_unwind_dummy_id): New.
5834 (alpha_unwind_pc): New.
5835 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5836 frame related deprecated initializations; install replacements.
5837 (alpha_dump_tdep): Remove.
5838 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5839 (alpha_read_insn, alpha_after_prologue,
5840 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5841 alpha_heuristic_frame_prev_register,
5842 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5843 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5844 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5845 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5847 2003-05-29 Andrew Cagney <cagney@redhat.com>
5849 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5850 dependant on the availability of ASSERT_FUNCTION.
5851 (ASSERT_FUNCTION): Do not define when there is no function name.
5853 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5855 From Jimi X <jimix@watson.ibm.com>:
5856 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5858 2003-05-28 Jim Blandy <jimb@redhat.com>
5860 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5861 argument to ptrace to int; the system headers should give it the
5862 right type, and pointers don't fit in ints on powerpc64-*-*.
5864 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5866 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5869 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5871 * stabsread.c (dbx_lookup_type): Make static.
5873 (add_undefined_type): Ditto.
5874 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5877 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5879 * hpread.c (hpread_has_name): Make static.
5880 (hpread_psymtab_to_symtab): Ditto.
5881 (file_exists): Ditto.
5882 (hpread_call_pxdb): Ditto.
5883 (hpread_pxdb_needed): Ditto.
5884 (hpread_quick_traverse): Ditto.
5885 (hpread_get_header): Ditto.
5886 (hpread_get_lntt): Ditto.
5887 (hpread_get_slt): Ditto.
5890 2003-05-25 Andreas Schwab <schwab@suse.de>
5892 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5893 stack_align and deprecated_extra_stack_alignment_needed.
5894 (m68k_stack_align): Delete.
5896 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5897 (m68k_register_virtual_size): Likewise.
5898 (altos_skip_prologue): Remove obsolete function.
5899 (isi_frame_num_args): Likewise.
5900 (news_frame_num_args): Likewise.
5901 (m68k_fix_call_dummy): Make static.
5902 (m68k_push_dummy_frame): Likewise.
5903 (m68k_pop_frame): Likewise.
5904 (m68k_skip_prologue): Likewise.
5905 (m68k_frame_init_saved_regs): Likewise.
5906 (m68k_saved_pc_after_call): Likewise.
5907 (m68k_get_longjmp_target): Make multi-arch.
5908 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5909 structure. Register m68k_get_longjmp_target if enabled.
5910 * m68k-tdep.h (struct gdbarch_tdep): Define.
5911 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5913 * Makefile.in (config.status): Also depend on configure.tgt
5915 (m68klinux-tdep.o): Update dependencies.
5916 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5917 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5918 (M68K_LINUX_JB_PC): Define.
5919 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5920 and take additional parameter.
5921 (m68k_linux_sigtramp_saved_pc): Update.
5922 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5923 m68k_linux_pc_in_sigtramp, in_plt_section,
5924 find_solib_trampoline_target.
5925 * config/m68k/tm-linux.h: Don't include any tm headers.
5926 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5927 (JB_ELEMENT_SIZE): Likewise.
5929 (GET_LONGJMP_TARGET): Likewise.
5930 (IN_SIGTRAMP): Likewise.
5931 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5933 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5935 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5936 (sparc32_push_arguments): Re-implement by calling
5937 sparc32_do_push_arguments.
5939 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5941 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5942 SPARC_O1_REGNUM): New defines.
5943 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5944 (sparc32_store_return_value): New function.
5945 (sparc_extract_struct_value_address): Rewrite to operate on a
5947 (sparc_gdbarch_init): Don't set
5948 deprecated_extract_struct_value_address. Set
5949 extract_struct_value_address instead. Don't set
5950 deprecated_extract_return_value and deprecated_store_return_value
5951 for 32-bit targets. Set extract_return_value and
5952 store_return_value instead.
5953 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5954 DEPRECTAED_EXTRACT_RETURN_VALUE,
5955 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5956 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5957 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5958 (sparc_store_return_value): Remove prototype.
5959 (sparc32_store_return_value): New prototype.
5960 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5963 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5965 * sparcnbsd-tdep.c: Include "gdb_string.h".
5967 2003-05-23 Andrew Cagney <cagney@redhat.com>
5969 * p-valprint.c (pascal_val_print): Replace extract_address with
5970 the inline equivalent extract_unsigned_integer.
5971 * jv-valprint.c (java_value_print): Ditto.
5972 * ada-valprint.c (ada_val_print_1): Ditto.
5973 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5975 2003-05-23 Theodore A. Roth <troth@openavr.org>
5977 * blockframe.c (frameless_look_for_prologue): Remove unused
5978 after_prologue variable.
5980 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5982 * blockframe.c (get_pc_function_start): Rewrite to avoid
5983 asignments in if-statements.
5985 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5987 Committed by Elena Zannoni <ezannoni@redhat.com>.
5988 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5989 files, don't relocate absolute symbols (and do use mst_abs).
5991 2003-05-23 Andrew Cagney <cagney@redhat.com>
5993 * objc-lang.c: Include "gdb_assert.h".
5994 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5995 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5996 (gdb_check, gdb_check_fatal): Delete functions.
5997 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5999 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6000 * Makefile.in (objc-lang.o): Update dependencies.
6002 2003-05-22 Ian Lance Taylor <ian@airs.com>
6004 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6005 with fprintf_filtered, not fprintf_unfiltered.
6007 2003-05-22 Andrew Cagney <cagney@redhat.com>
6009 * stack.c (frame_info): Inline extract_address, replacing it with
6010 extract_unsigned_integer.
6011 * findvar.c (unsigned_pointer_to_address): Ditto.
6012 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6013 * dwarf2expr.c (dwarf2_read_address): Ditto.
6014 * frame.c (frame_pc_unwind): Update comment.
6015 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6017 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6019 * infptrace.c (detach): Call print_sys_errmsg rather than
6020 perror_with_name to issue warning message when errno is non-zero
6021 after calling ptrace detach.
6023 2003-05-21 J. Brobecker <brobecker@gnat.com>
6025 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6026 macro definitions from here...
6027 * hppa-tdep.c: ...to there.
6029 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6031 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6032 register_ptrace_addr(). Fix all callers.
6034 2003-05-21 Andreas Schwab <schwab@suse.de>
6036 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6038 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6040 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6041 (_initialize_m68k_linux_tdep): New function.
6042 (m68k_linux_frame_saved_pc): Make static.
6043 (m68k_linux_extract_return_value): Likewise.
6044 (m68k_linux_store_return_value): Likewise.
6045 (m68k_linux_extract_struct_value_address): Likewise.
6046 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6048 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6049 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6050 (DEPRECATED_FRAME_SAVED_PC): Remove.
6052 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6054 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6055 regset numbering rather than our own.
6057 2003-05-19 David Carlton <carlton@bactrian.org>
6059 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6061 2003-05-19 David Carlton <carlton@bactrian.org>
6063 Partial fix for PR c++/827.
6064 * cp-support.h: Include symtab.h.
6065 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6066 * cp-namespace.c: Update contributors.
6067 (cp_lookup_symbol_nonlocal): New.
6068 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6069 (lookup_symbol_file): Ditto.
6070 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6071 * block.h: Declare block_scope, block_using, block_global_block.
6072 * block.c (block_scope): New.
6073 (block_using, block_global_block): Ditto.
6074 * Makefile.in (cp_support_h): Depend on symtab_h.
6075 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6077 2003-05-19 David Carlton <carlton@bactrian.org>
6079 * language.h (struct language_defn): Add 'la_value_of_this'
6080 and 'la_lookup_symbol_nonlocal' members.
6081 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6082 lookup_symbol_static, lookup_symbol_global,
6083 lookup_symbol_aux_block.
6084 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6085 if we should search fields of this and how to do static/global
6087 (lookup_symbol_aux_block): Make extern.
6088 (basic_lookup_symbol_nonlocal): New.
6089 (lookup_symbol_static, lookup_symbol_global): Ditto.
6090 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6091 'la_lookup_symbol_nonlocal' members.
6092 * c-lang.c (c_language_defn, cplus_language_defn)
6093 (asm_language_defn, minimal_language_defn): Ditto.
6094 * jv-lang.c (java_language_defn): Ditto.
6095 * language.c (unknown_language_defn, auto_language_defn)
6096 (local_language_defn): Ditto.
6097 * m2-lang.c (m2_language_defn): Ditto.
6098 * objc-lang.c (objc_language_defn): Ditto.
6099 * scm-lang.c (scm_language_defn): Ditto.
6100 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6101 * p-lang.c (pascal_language_defn): Ditto for both.
6102 * Makefile.in (f-lang.o): Depend on value_h.
6105 2003-05-19 David Carlton <carlton@bactrian.org>
6107 * block.h: Declare block_static_block.
6108 * block.c (block_static_block): New.
6109 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6110 lookup_symbol_aux_local, calling block_static_block instead.
6111 (lookup_symbol_aux_local): Delete 'static_block' argument.
6113 2003-05-19 David Carlton <carlton@bactrian.org>
6115 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6117 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6119 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6120 register numbers mapping.
6122 2003-05-18 Adam Fedor <fedor@gnu.org>
6124 * symtab.c (completion_list_objc_symbol): New function.
6125 (make_symbol_completion_list): Use it to add ObjC symbols
6126 when looking though the list.
6127 (language_search_unquoted_string): New function.
6128 (make_file_symbol_completion_list): Use it.
6130 2003-05-18 Andreas Schwab <schwab@suse.de>
6132 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6134 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6135 as m68k_linux_extract_return_value.
6136 (DEPRECATED_STORE_RETURN_VALUE): Define as
6137 m68k_linux_store_return_value.
6138 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6139 m68k_linux_extract_struct_value_address.
6140 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6141 get_next_frame, get_frame_base, get_frame_pc.
6142 (m68k_linux_frame_saved_pc): Use get_frame_base.
6143 (m68k_linux_extract_return_value): New function.
6144 (m68k_linux_store_return_value): New function.
6145 (m68k_linux_extract_struct_value_address): New function.
6146 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6148 * c-exp.y (typebase): Remove duplicate occurence of
6149 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6150 of lookup_signed_typename.
6152 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6154 * dwarf2loc.c (find_location_expression): Change type of second
6155 argument to `size_t *'.
6156 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6159 2003-05-18 David Carlton <carlton@bactrian.org>
6161 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6162 'linkage_name'. Add comment.
6163 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6165 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6166 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6167 (lookup_block_symbol): Ditto.
6169 2003-05-16 Andrew Cagney <cagney@redhat.com>
6171 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6172 * gdbarch.h, gdbarch.c: Re-generate.
6173 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6174 * TODO (REGISTER_BYTES): Delete reference.
6175 * alpha-tdep.c (alpha_gdbarch_init): Update.
6176 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6177 * x86-64-tdep.c (x86_64_init_abi): Update.
6178 * vax-tdep.c (vax_gdbarch_init): Update.
6179 * v850-tdep.c (v850_gdbarch_init): Update.
6180 * sparc-tdep.c (sparc_gdbarch_init): Update.
6181 * sh-tdep.c (sh_gdbarch_init): Update.
6182 * s390-tdep.c (s390_gdbarch_init): Update.
6183 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6184 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6185 (ns32k_gdbarch_init_32382): Update.
6186 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6187 * mcore-tdep.c (mcore_gdbarch_init): Update.
6188 * m68k-tdep.c (m68k_gdbarch_init): Update.
6189 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6190 * ia64-tdep.c (ia64_gdbarch_init): Update.
6191 * i386-tdep.c (i386_gdbarch_init): Update.
6192 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6193 * hppa-tdep.c (hppa_gdbarch_init): Update.
6194 * h8300-tdep.c (h8300_gdbarch_init): Update.
6195 * frv-tdep.c (frv_gdbarch_init): Update.
6196 * cris-tdep.c (cris_gdbarch_init): Update.
6197 * avr-tdep.c (avr_gdbarch_init): Update.
6198 * arm-tdep.c (arm_gdbarch_init): Update.
6199 * sparc-tdep.c (sparc_pop_frame): Update.
6200 * rs6000-tdep.c (rs6000_pop_frame): Update.
6201 * remote.c (init_remote_state): Update.
6202 (remote_prepare_to_store): Update.
6203 * remote-vx.c (vx_prepare_to_store): Update.
6204 * remote-sds.c (sds_fetch_registers): Update.
6205 (sds_prepare_to_store): Update.
6206 * remote-array.c: Update.
6207 * regcache.c (init_legacy_regcache_descr): Update.
6208 (init_regcache_descr): Update.
6209 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6210 (mips_o64_extract_return_value): Update.
6211 * irix5-nat.c (fetch_core_registers): Update.
6212 * irix4-nat.c (fetch_core_registers): Update.
6213 * i386-tdep.h: Update.
6214 * hppa-tdep.c (pa_do_registers_info): Update.
6215 (pa_do_strcat_registers_info): Update.
6216 * cris-tdep.c (cris_register_bytes_ok): Update.
6217 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6218 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6219 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6220 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6221 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6222 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6223 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6224 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6225 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6226 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6227 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6228 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6229 (REGISTER_BYTES_OK): Update.
6230 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6231 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6233 2003-05-16 Ian Lance Taylor <ian@airs.com>
6235 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6236 (vax_print_insn, print_insn_arg): Remove static functions.
6237 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6238 print_insn_vax from opcodes library.
6239 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6241 2003-05-15 Andrew Cagney <cagney@redhat.com>
6243 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6244 * target.h (memory_breakpoint_from_pc): Delete declaration.
6245 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6246 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6247 * monitor.c (monitor_insert_breakpoint): Use
6248 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6249 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6250 * gdbarch.h, gdbarch.c: Re-generate.
6251 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6252 (sparc_gdbarch_init): Set breakpoint_from_pc to
6253 sparc_breakpoint_from_pc.
6254 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6255 (BREAKPOINT_FROM_PC): Define.
6256 (sparc_breakpoint_from_pc): Declare.
6257 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6258 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6259 (BREAKPOINT_FROM_PC): Define.
6260 (BREAKPOINT): Delete macro.
6261 * target.h: Update comment.
6262 * s390-tdep.c (s390_gdbarch_init): Update comments.
6263 * remote.c: Update comments.
6264 * remote-mips.c: Update comments.
6265 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6266 * mem-break.c: Update comment.
6267 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6268 (ia64_memory_insert_breakpoint): Update.
6269 * config/sparc/tm-sparc.h: Update comment.
6270 * config/pa/tm-hppa64.h: Update comment.
6271 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6272 (rs6000_breakpoint_from_pc): Update.
6273 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6274 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6275 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6276 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6277 (mips_breakpoint_from_pc): Update.
6278 (mips_dump_tdep): Update.
6280 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6281 * minsyms.c (lookup_minimal_symbol): Inline
6282 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6284 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6285 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6286 * p-lang.c (pascal_printstr): Ditto.
6287 * objc-lang.c (objc_printstr): Ditto.
6288 * m2-lang.c (m2_printstr): Ditto.
6289 * jv-valprint.c (java_print_value_fields): Ditto.
6290 * f-lang.c (f_printstr): Ditto.
6291 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6292 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6293 for repeat_count_threshold.
6294 * Makefile.in (cp-valprint.o): Update dependencies.
6296 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6298 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6299 (examine_prologue): Support looking through leaf functions, knowing
6300 they start with mov r2,r12. Support skipping over indirect stores
6301 of the input registers. Upon hitting a non-nop branch instruction
6302 or predicated instruction, bail out by setting lim_pc to the current
6303 pc value in the loop. At the end, if the lim_pc value is still
6304 beyond our calculated value and we have trust_limit set,
6305 use the lim_pc value.
6307 2003-05-15 Andrew Cagney <cagney@redhat.com>
6309 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6310 generic_find_dummy_frame.
6311 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6312 (deprecated_generic_find_dummy_frame): Update.
6313 (deprecated_read_register_dummy): Update.
6314 * frame.c (deprecated_generic_get_saved_register): Update.
6316 2003-05-15 Theodore A. Roth <troth@openavr.org>
6318 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6319 (avr_gdbarch_init): Set breakpoint_from_pc method.
6321 2003-05-15 Andrew Cagney <cagney@redhat.com>
6323 * regcache.c (build_regcache): Set deprecated_register_valid
6325 (deprecated_grub_regcache_for_register_valid): Delete function.
6326 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6329 2003-05-15 David Carlton <carlton@bactrian.org>
6331 Committed by Elena Zannoni <ezannoni@redhat.com>
6332 * symtab.c (lookup_symbol_aux): Delete calls to
6333 lookup_symbol_aux_minsyms.
6334 (lookup_symbol_aux_minsyms): Comment out function and
6335 prototype. Delete lookup by mangled name.
6337 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6339 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6340 correctly indicate an empty stack and ``stack_allocated'' to the
6341 indicate the number of elements initially allocated.
6342 (dwarf_expr_grow_stack): Simplify method for computing new
6343 stack size. Don't loop infinitely if ``stack_len'' is zero.
6344 (execute_stack_op): Move ``ctx->in_reg'' initialization
6345 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6346 be used in conjuction with DW_OP_piece. Revise error message
6349 2003-05-14 Theodore A. Roth <troth@openavr.org>
6351 * MAINTAINERS: Update my email address.
6352 * avr-tdep.c: Ditto.
6354 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6356 * symtab.h (enum domain_enum): Rename from namespace_enum.
6357 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6358 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6359 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6360 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6361 TYPES_NAMESPACE, METHODS_NAMESPACE.
6362 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6363 (struct symbol, struct partial_symbol): Rename field
6364 'namespace_enum namespace' to 'domain_enum domain'.
6365 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6366 Delete old define kludge for namespace.
6368 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6369 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6370 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6371 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6372 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6373 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6374 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6375 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6376 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6377 occurrences of the above.
6379 2003-05-14 Ian Lance Taylor <ian@airs.com>
6381 * Makefile.in (install-only): Use $(SHELL) when running
6384 2003-05-13 Ian Lance Taylor <ian@airs.com>
6386 * MAINTAINERS (write after approval): Add myself.
6388 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6389 second and third arguments.
6390 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6391 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6393 2003-05-13 Andrew Cagney <cagney@redhat.com>
6395 * defs.h (store_address): Delete declaration.
6396 findvar.c (store_address): Delete function.
6397 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6398 store_unsigned_integer.
6399 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6400 * v850-tdep.c (v850_push_arguments): Ditto.
6401 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6402 * sh-tdep.c (sh64_get_saved_register): Ditto.
6403 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6404 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6405 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6406 (mips_get_saved_register): Ditto.
6407 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6408 (find_func_descr, ia64_push_arguments): Ditto.
6409 * i386-tdep.c (i386_push_arguments): Ditto.
6410 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6411 * frv-tdep.c (frv_push_arguments): Ditto.
6412 * frame.c (legacy_saved_regs_prev_register): Ditto.
6413 (deprecated_generic_get_saved_register): Ditto.
6414 * findvar.c (unsigned_address_to_pointer): Ditto.
6415 * dwarf2read.c (dwarf2_const_value): Ditto.
6416 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6417 * alpha-tdep.c (alpha_push_arguments): Ditto.
6419 2003-05-12 J. Brobecker <brobecker@gnat.com>
6421 * NEWS: Mention that the hppa-hpux port has been partially
6422 multiarched (32bit ABIT only, so far).
6424 2003-05-11 Andrew Cagney <cagney@redhat.com>
6426 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6427 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6428 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6429 sim/testsuite/sim/arm/misaligned2.ms, and
6430 sim/testsuite/sim/arm/misaligned3.ms.
6431 * disasm.h (struct ui_file): Add opaque struct declaration.
6432 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6433 * frame.h (struct ui_file): Ditto.
6435 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6437 * value.h: Pretty print.
6439 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6441 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6443 2003-05-08 Andrew Cagney <cagney@redhat.com>
6445 * regcache.h (max_register_size): Delete declaration.
6446 * regcache.c (max_register_size): Delete function.
6447 (struct regcache_descr): Delete field "max_register_size".
6448 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6449 registers fit in MAX_REGISTER_SIZE.
6450 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6451 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6452 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6453 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6454 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6455 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6456 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6457 * dve3900-rom.c, hppa-tdep.c: Ditto.
6459 2003-05-08 David Carlton <carlton@math.stanford.edu>
6461 * valops.c (push_word): Fix typo.
6463 2003-05-08 Andrew Cagney <cagney@redhat.com>
6465 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6466 * gdbarch.h: Re-generate.
6467 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6468 (legacy_max_register_raw_size): Delete declaration.
6469 * regcache.c (legacy_max_register_raw_size): Delete function.
6470 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6471 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6472 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6473 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6474 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6475 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6476 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6477 * findvar.c, dwarf2cfi.c: Ditto.
6479 2003-05-08 Andrew Cagney <cagney@redhat.com>
6481 * mips-tdep.c (read_signed_register): New function, moved to here
6483 (read_signed_register_pid): Ditto.
6484 * regcache.c (read_signed_register_pid): Delete function, moved to
6486 (read_signed_register): Ditto.
6487 * regcache.h (read_signed_register): Delete declaration.
6488 (read_signed_register_pid): Delete declaration.
6490 2003-05-08 Andrew Cagney <cagney@redhat.com>
6492 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6493 * gdbarch.h: Re-generate.
6494 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6495 (legacy_max_register_virtual_size): Delete declaration.
6496 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6497 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6498 * tracepoint.c (memrange_sortmerge): Ditto.
6499 * sparc-tdep.c (sparc_print_registers): Ditto.
6500 * regcache.c (legacy_max_register_virtual_size): Delete function.
6502 2002-05-08 J. Brobecker <brobecker@gnat.com>
6504 * fork-child.c (escape_bang_in_quoted_argument): New function.
6505 (fork_inferior): Escape '!' characters in quoted arguments
6508 2003-05-08 J. Brobecker <brobecker@gnat.com>
6510 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6511 the language of the CU is not currently supported by GDB.
6513 2003-05-08 J. Brobecker <brobecker@gnat.com>
6515 * defs.h (language): Add language_minimal enum value.
6516 * c-lang.c (minimal_language_defn): New language definition.
6517 (_initialize_c_language): Add the new minimal language to the list
6518 of languages known to GDB.
6520 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6522 * frame.c (get_frame_type): Don't attempt to lazily initialize
6523 frame's unwinder for legacy frames.
6525 2003-05-07 Andrew Cagney <cagney@redhat.com>
6527 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6528 and "regcache" parameters.
6529 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6531 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6533 * dwarf2read.c (dwarf_decode_lines): Only use output of
6534 check_cu_functions() when calling record_line(). Do not update
6535 the current address.
6537 2003-05-07 Andrew Cagney <cagney@redhat.com>
6539 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6542 2003-05-07 Jim Blandy <jimb@redhat.com>
6544 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6545 'maint info symtabs' and 'maint info psymtabs'.
6546 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6547 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6548 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6549 Declarations updated.
6550 * maint.c (maintenance_list_command): Delete.
6551 (_initialize_maint_cmds): Update calls to add_cmd.
6552 * gdbcmd.h (maintenancelistlist): Delete declaration.
6553 * cli/cli-cmds.c (maintenancelistlist): Delete.
6554 (init_cmd_lists): Don't initialize it.
6555 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6557 2003-05-07 Andrew Cagney <cagney@redhat.com>
6559 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6561 (d10v_print_registers_info): Update.
6562 (d10v_dmap_register, d10v_imap_register): Delete functions.
6563 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6564 and "imap_register".
6565 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6566 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6567 * arch-utils.c (generic_remote_translate_xfer_address): Add
6568 "regcache" and "gdbarch" parameters.
6569 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6570 parameter. Change class to multi-arch.
6571 * gdbarch.h, gdbarch.c: Re-generate.
6572 * remote.c (remote_xfer_memory): Use
6573 gdbarch_remote_translate_xfer_address.
6575 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6577 * infrun.c (prev_pc): Move declaration ahead of proceed().
6578 (proceed): Refresh prev_pc value before resuming.
6579 (stop_stepping): Remove code to refresh prev_pc.
6581 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6583 * nto-tdep.c: Removed stray comment.
6585 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6587 * i386-nto-tdep.c: Fix old K&R function definitions.
6588 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6589 Also change add_show_from_set() call to add_setshow_cmd().
6590 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6592 2003-05-05 Andrew Cagney <cagney@redhat.com>
6594 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6595 (fprint_dummy_frames): New function.
6596 (maintenance_print_dummy_frames): New function.
6597 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6598 * frame.c (fprint_frame_id): Make global.
6599 * frame.h (fprint_frame_id): Declare.
6600 * Makefile.in (dummy-frame.o): Update dependencies.
6602 2003-05-05 Andrew Cagney <cagney@redhat.com>
6604 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6605 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6606 SIZEOF_CALL_DUMMY_WORDS.
6607 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6608 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6609 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6610 CALL_DUMMY_BREAKPOINT_OFFSET.
6611 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6612 CALL_DUMMY_START_OFFSET.
6613 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6614 * gdbarch.h, gdbarch.c: Re-generate.
6615 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6616 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6617 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6618 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6619 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6620 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6621 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6622 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6623 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6624 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6625 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6626 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6627 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6628 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6629 * config/sparc/tm-sparc.h: Update.
6631 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6633 * configure.tgt: Add i[3456]86-*-nto*.
6634 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6635 * nto-tdep.c: New file. Neutrino target support routines.
6636 * nto-tdep.h: New file. Neutrino target header.
6637 * config/tm-qnxnto.h: New file.
6638 * config/i386/i386nto.mt: New file.
6639 * config/i386/tm-i386nto.h: New file.
6641 2003-05-04 Andrew Cagney <cagney@redhat.com>
6643 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6644 (load_infrun_state): Ditto.
6645 (struct thread_info): Drop "prev_func_name" field.
6646 * thread.c (load_infrun_state): Update.
6647 (save_infrun_state): Update.
6648 * infrun.c (prev_func_name): Delete variable.
6649 (init_wait_for_inferior): Do not clear prev_func_name.
6650 (stop_stepping, keep_going, context_switch): Do not swap
6652 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6653 instead of PC_IN_SIGTRAMP.
6655 2003-05-04 Andrew Cagney <cagney@redhat.com>
6657 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6658 REGISTER_BYTE with register_offset_hack.
6659 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6660 that REGISTER_BYTE is consistent with the regcache.
6661 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6662 * gdbarch.h, gdbarch.c: Regenerate.
6664 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6666 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6667 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6669 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6671 2003-05-03 J. Brobecker <brobecker@gnat.com>
6673 From Thierry Schneider <tpschneider1@yahoo.com>
6674 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6675 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6676 (mi-cmd-symbol.o): Add rule.
6678 2003-05-03 Andrew Cagney <cagney@redhat.com>
6680 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6681 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6682 * gdbarch.h, gdbarch.c: Re-generate.
6683 * d10v-tdep.c (d10v_push_dummy_code): New function.
6684 (d10v_gdbarch_init): Set push_dummy_code.
6685 * infcall.c (legacy_push_dummy_code): New function.
6686 (generic_push_dummy_code): New function.
6687 (push_dummy_code): New function.
6688 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6689 instead of dummy_addr, to push_dummy_call. Move call to
6690 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6692 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6694 2003-05-03 Andrew Cagney <cagney@redhat.com>
6696 * disasm.h (print_insn): Declare.
6697 * disasm.c (init_gdb_disassemble_info): New function.
6698 (gdb_disassembly): Call init_gdb_disassemble_info.
6699 (gdb_print_insn): New function.
6700 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6701 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6702 * mcore-tdep.c: Include "disasm.h"
6703 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6704 * d10v-tdep.c: Include "disasm.h".
6705 (display_trace): Call gdb_print_insn, instead of print_insn.
6706 (print_insn): Delete function.
6707 * printcmd.c: Include "disasm.h".
6708 (print_insn): Delete function.
6709 (print_formatted): Call gdb_print_insn, instead of print_insn.
6710 * Makefile.in (printcmd.o): Update dependencies.
6711 (mcore-tdep.o, d10v-tdep.o): Ditto.
6713 2003-05-02 Andrew Cagney <cagney@redhat.com>
6715 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6716 PC_REGNUM, re-indent.
6717 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6718 PC_REGNUM isn't set.
6720 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6721 * gdbarch.h, gdbarch.c: Re-generate.
6722 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6723 register_virtual_size, pc_regnum, or register_bytes.
6724 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6725 (d10v_register_type): Use D10V_PC_REGNUM.
6726 (d10v_print_registers_info, d10v_read_pc): Ditto.
6727 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6728 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6730 2003-05-02 David Carlton <carlton@bactrian.org>
6732 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6733 the name with mstrsave.
6735 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6737 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6738 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6739 (host_charset_name, target_charset_name): New vars for use by
6741 (host_charset_enum, target_charset_enum): New enums for set/show
6743 (set_charset_sfunc, set_host_charset_sfunc,
6744 set_target_charset_sfunc): New functions.
6745 (set_host_charset, set_target_charset): Make static.
6746 (list_charsets, set_host_charset_command,
6747 set_target_charset_command): Delete functions.
6748 (show_charset_command): Rewrite as....
6749 (show_charset): Hook this up with the set/show command mechanism.
6750 (_initialize_charset): Change names of charsets to match the
6751 set/show enums. Use host_charset_name and target_charset_name.
6752 Use set/show mechanism for charset, host-charset, target-charset
6753 commands. Do not make 'show host-charset' and 'show
6754 target-charset' be aliases of 'show charset'.
6756 * charset.h (set_host_charset, set_target_charset): Don't export,
6757 they are not used outside the file.
6759 2003-05-01 Andrew Cagney <cagney@redhat.com>
6761 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6762 (gdb_disassembly): Make "di" non static, always initialize and
6763 cleanup. Always use dis_asm_read_memory.
6764 (gdb_dis_asm_read_memory): Delete function.
6766 2003-05-01 Andrew Cagney <cagney@redhat.com>
6768 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6769 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6771 2003-04-30 Andrew Cagney <cagney@redhat.com>
6773 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6774 "tm_print_insn_info".
6775 (TARGET_PRINT_INSN_INFO): Delete macro.
6776 (dis_asm_read_memory): Delete function declaration.
6777 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6778 (tm_print_insn_info): Delete variable definition.
6779 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6780 * gdbarch.h, gdbarch.c: Re-generate.
6781 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6782 "deprecated_tm_print_insn_info".
6783 * mcore-tdep.c (mcore_dump_insn): Ditto.
6784 * mips-tdep.c (mips_gdbarch_init): Ditto.
6785 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6786 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6787 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6788 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6789 instead of TARGET_PRINT_INSN_INFO, add comment.
6790 * s390-tdep.c (s390_get_frame_info): Instead of
6791 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6792 (s390_check_function_end, s390_is_sigreturn): Ditto.
6793 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6794 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6795 * disasm.c: Include "gdbcore.h".
6796 (_initialize_disasm): New function, initialize
6797 "deprecated_tm_print_insn_info".
6798 (deprecated_tm_print_insn_info): New variable.
6799 (dis_asm_read_memory): Moved from "corefile.c", made static.
6800 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6801 * Makefile.in (disasm.o): Update dependencies.
6803 2003-04-30 Andrew Cagney <cagney@redhat.com>
6805 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6807 2003-04-29 Adam Fedor <fedor@gnu.org>
6809 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6810 * infcall.c (find_function_addr): Make non-static.
6811 * infcall.h (find_function_addr): Declare.
6812 * Makefile.in (eval.o): Update dependencies.
6814 2003-04-28 Adam Fedor <fedor@gnu.org>
6816 * symtab.c (symbol_find_demangled_name): Check for and demangle
6818 (symbol_init_demangled_name): Init for language_objc as well.
6820 2003-04-28 Andrew Cagney <cagney@redhat.com>
6822 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6823 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6824 * gdbarch.h, gdbarch.c: Re-generate.
6825 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6826 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6827 * inferior.h (deprecated_read_fp): Rename read_fp.
6828 (generic_target_read_fp): Delete declaration.
6829 * regcache.c (generic_target_read_fp): Delete function.
6830 (deprecated_read_fp): Replace read_fp, use
6831 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6832 * d10v-tdep.c (d10v_read_fp): Delete function.
6833 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6835 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6836 deprecated_target_read_fp to generic_target_read_fp.
6837 * sh-tdep.c (sh_gdbarch_init): Ditto.
6838 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6839 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6840 * frv-tdep.c (frv_gdbarch_init): Ditto.
6842 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6843 deprecated_fp_regnum.
6844 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6845 * vax-tdep.c (vax_gdbarch_init): Ditto.
6846 * v850-tdep.c (v850_gdbarch_init): Ditto.
6847 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6848 * sh-tdep.c (sh_gdbarch_init): Ditto.
6849 * s390-tdep.c (s390_gdbarch_init): Ditto.
6850 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6851 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6852 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6853 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6854 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6855 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6856 * i386-tdep.c (i386_gdbarch_init): Ditto.
6857 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6858 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6859 * frv-tdep.c (frv_gdbarch_init): Ditto.
6860 * cris-tdep.c (cris_gdbarch_init): Ditto.
6861 * avr-tdep.c (avr_gdbarch_init): Ditto.
6862 * arm-tdep.c (arm_gdbarch_init): Ditto.
6863 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6865 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6866 * v850-tdep.c (v850_gdbarch_init): Ditto.
6867 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6868 * sh-tdep.c (sh_gdbarch_init): Ditto.
6869 * s390-tdep.c (s390_gdbarch_init): Ditto.
6870 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6871 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6872 * mips-tdep.c (mips_gdbarch_init): Ditto.
6873 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6874 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6875 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6876 * frv-tdep.c (frv_gdbarch_init): Ditto.
6877 * avr-tdep.c (avr_gdbarch_init): Ditto.
6878 * arm-tdep.c (arm_gdbarch_init): Ditto.
6880 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6881 DEPRECATED_FP_REGNUM.
6882 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6883 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6884 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6885 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6886 (sparc32_register_virtual_type): Ditto.
6887 * sh-tdep.c (sh64_frame_chain): Ditto.
6888 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6889 (sh_nofp_frame_init_saved_regs): Ditto.
6890 (sh64_nofp_frame_init_saved_regs): Ditto.
6891 (sh_fp_frame_init_saved_regs): Ditto.
6892 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6893 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6894 * procfs.c (procfs_fetch_registers): Ditto.
6895 (procfs_store_registers): Ditto.
6896 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6897 (store_inferior_registers, fetch_core_registers): Ditto.
6898 (fetch_kcore_registers, clear_regs): Ditto.
6899 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6900 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6901 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6902 * nlm/i386.c (do_status): Ditto.
6903 * mipsv4-nat.c (supply_gregset): Ditto.
6904 * mips-tdep.c: Ditto for comments.
6905 * mips-nat.c (fetch_inferior_registers): Ditto.
6906 (store_inferior_registers, fetch_core_registers): Ditto.
6907 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6908 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6909 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6910 (i386_do_pop_frame, i386_register_type): Ditto.
6911 * hppa-tdep.c (hppa_frame_chain): Ditto.
6912 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6913 (hppa_pop_frame, hppa_read_fp): Ditto.
6914 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6915 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6916 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6917 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6918 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6919 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6920 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6921 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6922 * blockframe.c: Ditto for comments.
6923 * arch-utils.h: Ditto for comments.
6924 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6925 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6926 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6927 * alpha-tdep.h: Ditto for comments.
6928 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6929 (alpha_cannot_store_register): Ditto.
6930 (alpha_push_dummy_frame): Ditto.
6931 * alpha-nat.c (supply_gregset): Ditto.
6933 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6934 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6935 * config/sparc/tm-sparc.h: Update comment.
6937 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6938 deprecated_read_fp instead of TARGET_READ_FP.
6939 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6940 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6941 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6942 deprecated_read_fp instead of read_fp.
6943 * s390-tdep.c (s390_push_arguments): Ditto.
6944 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6945 * frame.h: Ditto in comments.
6946 * frame.c (legacy_get_prev_frame): Ditto.
6947 * dummy-frame.c (dummy_frame_this_id): Ditto.
6948 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6950 2003-04-28 Andrew Cagney <cagney@redhat.com>
6952 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6953 * gdbarch.h, gdbarch.c: Re-generate.
6954 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6955 * vax-tdep.c (_initialize_vax_tdep): Update.
6956 * v850-tdep.c (_initialize_v850_tdep): Update.
6957 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6958 * s390-tdep.c (_initialize_s390_tdep): Update.
6959 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6960 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6961 * mips-tdep.c (_initialize_mips_tdep): Update.
6962 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6963 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6964 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6965 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6966 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6967 * frv-tdep.c (_initialize_frv_tdep): Update.
6968 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6969 (_initialize_cris_tdep): Update.
6970 * arch-utils.c (legacy_print_insn): Update.
6971 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6973 2003-04-26 Adam Fedor <fedor@gnu.org>
6975 * linespec.c (decode_objc): New function to decode ObjC calls
6976 (decode_line_1): Check for ObjC calls (using decode_objc)
6977 * Makefile (linespec.o): Update dependencies.
6979 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6981 * breakpoint.h (struct breakpoint_ops): New.
6982 (struct breakpoint): Add ops member.
6984 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6985 (mention): Use new breakpoint ops member.
6986 (set_raw_breakpoint): Initialize ops field to NULL.
6987 (print_exception_catchpoint, print_one_exception_catchpoint)
6988 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6989 (gnu_v3_exception_catchpoint_ops): New.
6990 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6992 2003-04-25 Adam Fedor <fedor@gnu.org>
6994 * Makefile.in (COMMON_OBS): Add objc-lang.o
6996 2003-04-25 Andrew Cagney <cagney@redhat.com>
6998 * d10v-tdep.c (print_insn): Delete function.
6999 (display_trace): Use TARGET_PRINT_INSN.
7000 (_initialize_d10v_tdep): Do not set tm_print_insn.
7001 (d10v_gdbarch_init): Set print_insn.
7003 2003-04-25 Andrew Cagney <cagney@redhat.com>
7005 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7006 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7007 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7008 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7009 (nr_dmap_regs, a0_regnum): ... new functions.
7010 (d10v_print_registers_info): Use a0_regnum, use register_size.
7011 (d10v_register_byte): Delete function.
7012 (d10v_register_raw_size): Delete function.
7013 (d10v_register_type): Use a0_regnum.
7014 (d10v_print_registers_info): Use a0_regnum.
7015 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7016 (d10v_gdbarch_init): Do not set register_byte or
7017 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7018 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7020 (trace_command): Use XCALLOC.
7021 (print_insn): Delete reference to tm_print_insn.
7022 (saved_regs_unwinder): Use store_unsigned_integer instead of
7024 * frame.h (FRAME_OBSTACK_CALLOC): Define
7026 2003-04-25 David Carlton <carlton@bactrian.org>
7028 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7030 2003-04-24 Adam Fedor <fedor@gnu.org>
7032 * objc-lang.c: Include "valprint.h"
7033 * Makefile.in (objc-lang.o): Update dependencies.
7035 2003-04-24 Adam Fedor <fedor@gnu.org>
7037 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7038 architecture dependant compilation and mark as unimplemented
7039 (until they get put in the gdbarch vector).
7041 2003-04-23 David Carlton <carlton@bactrian.org>
7043 * cp-support.c (cp_find_first_component): Accept 'operator' in
7046 2003-04-23 Andrew Cagney <cagney@redhat.com>
7048 * infcall.c (call_function_by_hand): Eliminate redundant
7049 indentation. Move "saved_async" and "old_cleanups" to where they
7052 2003-04-23 Andrew Cagney <cagney@redhat.com>
7054 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7055 and "buffer". Move the "name" code to where it is needed.
7057 2003-04-23 Andrew Cagney <cagney@redhat.com>
7059 * infcall.c (call_function_by_hand): Move variables "start_sp",
7060 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7061 code to ON_STACK switch branch.
7063 2003-04-23 Andrew Cagney <cagney@redhat.com>
7065 * infcall.c (call_function_by_hand): Make declaration of "i",
7066 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7069 2003-04-23 Andrew Cagney <cagney@redhat.com>
7071 * infcall.c (call_function_by_hand): Delete variable
7072 "n_method_args". Localize "param_type"'s declaration to the loop
7073 that it is used. Reinstate code assigning to said variable -
7074 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7075 Rationalize code using "param_type".
7077 2003-04-22 Andrew Cagney <cagney@redhat.com>
7079 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7080 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7081 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7082 to DEPRECATED_PUSH_RETURN_ADDRESS.
7084 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7086 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7087 on the DWARF2 register number prior to fetching a register.
7089 2003-04-22 J. Brobecker <brobecker@gnat.com>
7091 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7092 Update all the tests using SOFT_FLOAT considering the fact that
7093 this macro was always set to 0.
7094 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7095 considering the fact that this macro was always set to 0.
7096 * hppa-tdep.h (hppa_store_return_value): Likewise.
7097 (hppa_extract_return_value): Likewise.
7099 2003-04-22 J. Brobecker <brobecker@gnat.com>
7101 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7102 the hppa-pro target only.
7104 2003-04-21 J. Brobecker <brobecker@gnat.com>
7106 Ongoing multi-arch conversion effort for HP/UX:
7107 * config/pa/tm-hppa.h: Move all macro that are no longer
7108 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7109 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7111 2003-04-21 J. Brobecker <brobecker@gnat.com>
7113 * config/pa/tm-hppa.h: Obsolete a section that was only used
7116 2003-04-21 J. Brobecker <brobecker@gnat.com>
7118 Ongoing multi-arch conversion for HP/UX.
7119 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7120 if already defined (allows hppa64 to stay non-multiarched for now).
7121 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7123 2003-04-21 Andrew Cagney <cagney@redhat.com>
7125 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7127 2003-04-21 Andrew Cagney <cagney@redhat.com>
7129 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7130 "i386_num_mmx_regs".
7132 2003-04-21 Andrew Cagney <cagney@redhat.com>
7134 * infcall.c: New file.
7135 * infcall.h: New file.
7136 * valarith.c: Include "infcall.h".
7137 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7138 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7139 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7140 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7141 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7142 (SFILES): Add "infcall.c"
7143 (COMMON_OBS): Add "infcall.o".
7144 (infcall.o): Specify dependencies.
7145 * value.h (call_function_by_hand): Delete declaration.
7146 * inferior.h (run_stack_dummy): Delete declaration.
7147 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7148 (run_stack_dummy): Move to "infcall.c", merged into
7149 call_function_by_hand.
7150 * valops.c (call_function_by_hand): Moved to "infcall.c".
7151 (find_function_addr, value_arg_coerce): Ditto.
7152 (unwindonsignal_p, coerce_float_to_double): Ditto.
7153 (_initialize_valops): Move "set/show coerce-float-to-double", and
7154 "set/show unwindonsignal" commands to "infcall.c".
7155 * v850-tdep.c, target.h: Update comments.
7156 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7157 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7158 (sh64_init_extra_frame_info): Update comments.
7159 * mn10300-tdep.c: Update comments.
7160 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7161 * config/sparc/tm-sparc.h: Update comments.
7162 * breakpoint.h: Update comments.
7163 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7164 * arm-tdep.c: Update comment.
7166 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7168 * i386-tdep.c (i386_num_register_names): New variable.
7169 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7170 (MM0_REGNUM): Remove redundant parentheses in define.
7171 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7172 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7173 i386_mxcsr_regnum_p): Remove redundant parentheses.
7174 (i386_register_name): Use i386_num_register_names.
7176 * i386-tdep.c (i386_extract_return_value,
7177 i386_store_return_value): Correct check for availability of
7178 floating-point registers.
7180 * i386-tdep.c (i386_frame_num_args): Remove function.
7181 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7183 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7184 mmx_regnum_to_fp_regnum. Adjust all callers.
7186 * i386-tdep.c (i386_get_longjmp_target): Use
7187 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7188 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7191 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7193 * core-regset.c: Update comments to reflect reality. Re-order
7195 (fetch_core_registers): Use switch instead of if. Remove
7196 redundant prototype.
7198 2003-04-18 Jim Blandy <jimb@redhat.com>
7200 * s390-tdep.c (s390_frame_align): New function.
7201 (s390_gdbarch_init): Register it with the gdbarch object.
7203 2003-04-17 Richard Henderson <rth@redhat.com>
7205 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7207 2003-04-17 Michael Snyder <msnyder@redhat.com>
7208 Karen Bennet <bennet@redhat.com>
7210 Committed by Elena Zannoni <ezannoni@redhat.com>
7211 * gdb_gcore.sh: New script to create a core dump of a process.
7213 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7215 * values.c (value_being_returned): Don't fetch the return
7216 value if the return type is void.
7218 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7220 * thread-db.c: Reindented.
7222 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7224 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7225 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7252 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7254 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7255 the size of ``long double'' to 16, instead of 8.
7257 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7259 * i386-linux-nat.c: Add some whitespace to make things more
7261 (fetch_register, store_register, fetch_inferior_registers,
7262 store_inferior_registers): Get rid of assignment in if-statement.
7263 (store_register): Fix typo in error message.
7265 2003-04-16 Andrew Cagney <cagney@redhat.com>
7267 * utils.c (xmmalloc): Always allocate something, matches
7268 libiberty/xmalloc's semantics.
7269 (xmrealloc, xmcalloc): Ditto.
7271 2003-04-16 Andrew Cagney <cagney@redhat.com>
7273 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7275 (get_frame_type): Initialize unwind and type when needed.
7276 (get_frame_id, frame_register_unwind): Ditto.
7278 2003-04-16 Andrew Cagney <cagney@redhat.com>
7280 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7282 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7283 * sparcl-stub.c: Obsolete file.
7284 * config/sparc/tm-sparclet.h: Obsolete file.
7285 * sparclet-stub.c: Obsolete file.
7286 * sparclet-rom.c: Obsolete file.
7287 * sparcl-tdep.c: Obsolete file.
7288 * config/sparc/tm-sparclite.h: Obsolete file.
7289 * config/sparc/sparclite.mt: Obsolete file.
7290 * config/sparc/sparclet.mt: Obsolete file.
7291 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7292 sparc86x-*-* obsolete.
7294 2003-04-15 David Carlton <carlton@math.stanford.edu>
7296 * Makefile.in (SFILES): Add cp-namespace.c.
7297 (COMMON_OBS): Add cp-namespace.o.
7298 (block.o): Depend on gdb_obstack_h and cp_support_h.
7299 (buildsym.o): Depend on cp_support_h.
7300 (cp-namespace.o): New.
7301 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7302 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7303 (dwarf2read.o): Depend on cp_support_h.
7304 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7305 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7306 processing_current_namespace.
7307 (read_namespace): Update processing_current_namespace; check for
7308 anonymous namespaces.
7309 (dwarf2_name): New function.
7310 (dwarf2_extension): Ditto.
7311 * cp-support.h: Update copyright, contributors.
7312 Add inclusion guards.
7313 Add opaque declaration for structs obstack, block, symbol.
7314 (struct using_direct): New struct.
7315 Add declarations for cp_find_first_component,
7316 cp_entire_prefix_len, processing_has_namespace_info,
7317 processing_current_namespace, cp_is_anonymous,
7318 cp_add_using_directive, cp_initialize_namespace,
7319 cp_finalize_namespace, cp_set_block_scope,
7320 cp_scan_for_anonymous_namespaces.
7321 * cp-namespace.c: New file.
7322 * cp-support.c: Update copyright.
7323 Include ctype.h, gdb_assert.h, gdbcmd.h.
7324 New variable maint_cplus_cmd_list.
7325 (cp_find_first_component): New function.
7326 (cp_entire_prefix_len, maint_cplus_command)
7327 (first_component_command, _initialize_cp_support): Ditto.
7328 * buildsym.c: Include cp-support.h.
7329 New variable using_list.
7330 (add_symbol_to_list): Check for anonymous namespaces.
7331 (finish_block): Set block's scope.
7332 (start_symtab): Initialize C++ namespace support.
7333 (end_symtab): Finalize C++ namespace support.
7334 * block.h: Add opaque declarations for structs
7335 block_namespace_info, using_direct, and obstack.
7336 Add declarations for block_set_scope and block_set_using.
7337 (struct block): Add 'language_specific' member.
7338 (BLOCK_NAMESPACE): New macro.
7339 * block.c: Include gdb_obstack.h and cp-support.h.
7340 (struct block_namespace_info): New struct.
7341 (block_set_scope): New function.
7342 (block_set_using, block_initialize_namespace): Ditto.
7344 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7346 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7347 (locate_base): Return early if there aren't any link map offsets.
7348 (svr4_solib_create_inferior_hook): Warn if shared library support
7351 2003-04-14 David Carlton <carlton@math.stanford.edu>
7353 * symtab.c (symbol_set_names): Add prefix when storing Java names
7354 in hash table. Fix for PR java/1039.
7356 2003-04-14 David Carlton <carlton@math.stanford.edu>
7358 * symtab.c (symbol_set_names): Rename 'name' arg to
7359 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7360 * symtab.h: Change 'name' argument in declaration of
7361 symbol_set_names to 'linkage_name'.
7362 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7364 2003-04-14 Andrew Cagney <cagney@redhat.com>
7366 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7367 return the fully sign-extended register value.
7368 (get_frame_pointer): Ditto.
7369 (mips_pop_frame): Initialize "proc_desc" after checking for a
7372 2003-04-14 Andrew Cagney <cagney@redhat.com>
7374 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7375 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7376 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7377 (mips_push_register): Delete function.
7378 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7381 2003-04-14 Jim Blandy <jimb@redhat.com>
7383 * symmisc.c: #include "gdb_regex.h".
7384 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7386 * maint.c (maintenance_list_command): New function.
7387 (_initialize_maint_cmds): Register the above as commands.
7388 * symtab.h (maintenance_list_symtabs,
7389 maintenance_list_psymtabs): New declarations.
7390 * cli/cli-cmds.c (maintenancelistlist): New variable.
7391 (init_cmd_lists): Initialize it.
7392 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7393 * gdbcmd.h (maintenancelistlist): New declaration.
7394 * Makefile.in (symmisc.o): Update dependencies.
7396 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7398 * s390-nat.c: Include asm/types.h for addr_t.
7400 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7402 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7403 actually incoming type.
7405 2003-04-13 Andrew Cagney <cagney@redhat.com>
7407 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7408 get_next_frame and get_frame_saved_regs.
7410 2003-04-13 Andrew Cagney <cagney@redhat.com>
7412 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7413 of gdbarch_num_regs.
7415 2003-04-13 Andrew Cagney <cagney@redhat.com>
7417 * frame.h: Mention what replaced what in "struct frame_info".
7418 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7419 deprecated_update_frame_base_hack and
7420 deprecated_update_frame_pc_hack.
7421 * hppa-tdep.c: Ditto.
7423 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7425 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7426 to read_reg and update its comment. Remove regnum member.
7427 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7428 Don't call read_reg when setting in_reg. Call read_reg to get
7429 the frame base if it's in a register. Return the register number
7430 on the stack instead of in the context. Remove extra arguments
7432 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7433 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7434 the register number on the expression stack.
7435 (needs_frame_read_reg): Remove extra arguments.
7437 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7439 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7441 (execute_stack_op): All callers updated.
7442 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7443 * dwarf2loc.c (find_location_expression): New function.
7444 (dwarf_expr_frame_base): Call it.
7445 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7446 (dwarf2_tracepoint_var_ref): New function, broken out from
7447 locexpr_tracepoint_var_ref.
7448 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7450 (loclist_read_variable, loclist_read_needs_frame): New functions.
7451 (loclist_describe_location, loclist_tracepoint_var_ref): New
7453 (dwarf2_loclist_funcs): New struct location_funcs.
7454 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7455 (struct dwarf2_locexpr_baton): Add comments.
7456 (dwarf2_loclist_funcs): New extern.
7457 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7458 base_address and base_known.
7459 (dwarf_loc_buffer): New variable.
7460 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7461 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7462 (dwarf2_has_info): Initialize dwarf_loc_offset.
7463 (dwarf2_build_psymtabs): Read in .debug_loc.
7464 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7466 (psymtab_to_symtab_1): Likewise. Move base address calculation
7468 (dwarf2_get_pc_bounds): ... here. Use the base address from
7470 (dwarf2_symbol_mark_computed): Handle location lists.
7472 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7474 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7475 if the linkage name demangled successfully.
7477 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7479 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7480 disassmbly_flavour): Removed.
7482 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7484 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7486 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7488 2003-04-12 Andrew Cagney <cagney@redhat.com>
7490 * frame.h (struct frame_info): Move definition from here ...
7491 * frame.c (struct frame_info): ... to here.
7493 2003-04-12 Andrew Cagney <cagney@redhat.com>
7495 * gdbthread.h (save_infrun_state): Delete parameter
7497 (struct thread_info): Delete field "prev_func_start".
7498 (load_infrun_state): Ditto.
7499 * thread.c (load_infrun_state, save_infrun_state): Update.
7500 * infrun.c (prev_func_start): Delete variable.
7501 (context_switch, init_wait_for_inferior): Update.
7502 (stop_stepping, keep_going): Update.
7504 2003-04-12 Andrew Cagney <cagney@redhat.com>
7506 * gdbarch.sh: Add missing opaque declarations.
7507 * gdbarch.h: Regnerate.
7508 * symtab.h: Add missing opaque declarations.
7509 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7510 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7511 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7512 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7513 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7514 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7515 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7516 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7517 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7518 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7519 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7520 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7521 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7523 2003-04-11 Andrew Cagney <cagney@redhat.com>
7525 * frame.c (get_frame_id): Return this frame's "id".
7526 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7528 (legacy_saved_regs_this_id): Replace function body with
7530 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7531 FRAME_OBSTACK_ZALLOC.
7532 (create_new_frame): Mark the frame ID as valid.
7534 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7536 * Makefile.in (libbfd_h): Added missing setting.
7537 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7538 according to the selected ABI.
7540 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7542 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7544 2003-04-11 Andrew Cagney <cagney@redhat.com>
7546 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7547 SAVED_PC_AFTER_CALL.
7548 * gdbarch.h, gdbarch.c: Regenerate.
7549 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7550 * x86-64-tdep.c (x86_64_init_abi): Update.
7551 * vax-tdep.c (vax_gdbarch_init): Update.
7552 * v850-tdep.c (v850_gdbarch_init): Update.
7553 * sparc-tdep.c (sparc_gdbarch_init): Update.
7554 * sh-tdep.c (sh_gdbarch_init): Update.
7555 * s390-tdep.c (s390_gdbarch_init): Update.
7556 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7557 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7558 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7559 * mips-tdep.c (mips_gdbarch_init): Update.
7560 * mcore-tdep.c (mcore_gdbarch_init): Update.
7561 * m68k-tdep.c (m68k_gdbarch_init): Update.
7562 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7563 * ia64-tdep.c (ia64_gdbarch_init): Update.
7564 (ia64_saved_pc_after_call): Update declaration.
7565 * i386ly-tdep.c (i386lynx_init_abi): Update.
7566 * i386-tdep.c (i386_gdbarch_init): Update.
7567 * hppa-tdep.c (hppa_gdbarch_init): Update.
7568 * h8300-tdep.c (h8300_gdbarch_init): Update.
7569 * frv-tdep.c (frv_gdbarch_init): Update.
7570 * cris-tdep.c (cris_gdbarch_init): Update.
7571 * avr-tdep.c (avr_gdbarch_init): Update.
7572 * arm-tdep.c (arm_gdbarch_init): Update.
7573 * alpha-tdep.c (alpha_gdbarch_init): Update.
7574 * ns32knbsd-nat.c (frame_num_args): Update.
7575 * ns32k-tdep.c (umax_frame_num_args): Update.
7576 * mips-tdep.c (mips_init_frame_pc_first): Update.
7577 * infrun.c (step_over_function): Update.
7578 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7579 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7580 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7581 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7582 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7583 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7584 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7585 * arch-utils.c (init_frame_pc_default): Update.
7586 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7587 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7590 2003-04-11 Andrew Cagney <cagney@redhat.com>
7592 * i387-tdep.c: Update copyright.
7593 (i387_to_double): Delete function.
7594 (double_to_i387): Delete function.
7596 2003-04-10 Andrew Cagney <cagney@redhat.com>
7598 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7599 frame's function's address. Simplify.
7600 (d10v_frame_unwind_cache): Check that the frame's function is
7603 2003-04-10 Jim Blandy <jimb@redhat.com>
7605 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7606 call to set_gdbarch_deprecated_push_arguments.
7608 2003-04-10 Andrew Cagney <cagney@redhat.com>
7610 * frame.c (fprint_frame_id): New function.
7611 (fprint_frame_type, fprint_frame): New function.
7612 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7613 (create_sentinel_frame, get_frame_id): Ditto.
7614 (frame_id_p, frame_id_eq): Ditto.
7615 (frame_id_inner, create_new_frame): Ditto.
7616 (legacy_get_prev_frame, get_prev_frame): Ditto.
7617 (deprecated_update_frame_pc_hack): Ditto.
7618 (frame_register_unwind): Ditto.
7619 (deprecated_update_frame_base_hack): Ditto.
7621 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7623 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7624 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7625 frame_chain function.
7626 * Makefile.in: Add dependencies due to above change.
7628 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7630 * blockframe.c (legacy_frame_chain_valid): Move call to
7631 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7634 2003-04-09 Andrew Cagney <cagney@redhat.com>
7636 * frame.h (struct frame_id): Replace "pc" and "base" with
7637 "stack_addr" and "code_addr". Update comments.
7638 (frame_id_build): Update parameter names and comment.
7639 (struct frame_info): Replace "id_p" and "id" with "this_id".
7640 * dummy-frame.c (dummy_frame_this_id): Update.
7641 * breakpoint.c (print_one_breakpoint): Update.
7642 * frame.c (get_frame_id): Update.
7643 (get_frame_base, frame_id_build): Update.
7644 (create_sentinel_frame, legacy_get_prev_frame): Update.
7645 (deprecated_update_frame_base_hack): Update.
7646 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7647 (frame_id_inner): Ditto.
7649 2003-04-09 Andrew Cagney <cagney@redhat.com>
7651 * defs.h (gdb_print_host_address): Make "addr" parameter a
7653 * utils.c (gdb_print_host_address): Update.
7655 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7657 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7658 register number for R0 is 0.
7660 2003-04-09 J. Brobecker <brobecker@gnat.com>
7662 * frame.h (struct gdbarch): Add opaque structure definition
7663 to avoid a compilation warning on LynxOS 4.0.
7665 2003-04-09 Andrew Cagney <cagney@redhat.com>
7667 * frame.h (struct frame_info): Delete field "pc". Replace
7668 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7670 * frame.c (frame_pc_unwind): Update.
7671 (create_sentinel_frame): Do not set "pc".
7672 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7673 (get_frame_pc): Call frame_pc_unwind.
7674 (deprecated_update_frame_pc_hack): Update.
7675 (create_new_frame): Use "pc" not "->pc".
7677 2003-04-09 Andrew Cagney <cagney@redhat.com>
7679 * frame.c (get_frame_id): Eliminate code updating "frame".
7680 (legacy_get_prev_frame): Ditto.
7681 (get_frame_base): Return id.base directly.
7682 (deprecated_update_frame_base_hack): Update "id.base".
7683 * frame.h (struct frame_info): Delete field "frame".
7685 2003-04-09 Andrew Cagney <cagney@redhat.com>
7687 * NEWS: Mention that the "Sequent family" is obsolete.
7688 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7689 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7690 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7691 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7692 * config/i386/tm-ptx4.h: Obsolete file.
7693 * config/i386/tm-ptx.h: Obsolete file.
7694 * symm-tdep.c: Obsolete file.
7695 * config/i386/symmetry.mt: Obsolete file.
7696 * config/i386/tm-symmetry.h: Obsolete file.
7697 * symm-nat.c: Obsolete file.
7698 * config/i386/nm-symmetry.h: Obsolete file.
7699 * config/i386/xm-symmetry.h: Obsolete file.
7700 * config/i386/symmetry.mh: Obsolete file.
7701 * config/i386/nm-ptx4.h: Obsolete file.
7702 * config/i386/ptx4.mh: Obsolete file.
7703 * config/i386/ptx.mt: Obsolete file.
7704 * config/i386/ptx.mh: Obsolete file.
7705 * config/i386/xm-ptx4.h: Obsolete file.
7706 * config/i386/xm-ptx.h: Obsolete file.
7708 2003-04-09 Andrew Cagney <cagney@redhat.com>
7710 Obsolete mips*-*-mach3*.
7711 * NEWS: Mention that mips*-*-mach3* is obsolete.
7712 * m3-nat.c: Obsolete file.
7713 * config/nm-m3.h: Obsolete file.
7714 * config/mips/tm-mipsm3.h: Obsolete file.
7715 * config/mips/mipsm3.mt: Obsolete file.
7716 * config/mips/mipsm3.mh: Obsolete file.
7717 * config/mips/xm-mipsm3.h: Obsolete file.
7718 * mipsm3-nat.c: Obsolete file.
7719 * configure.host: Obsolete mips-dec-mach3*.
7720 * configure.tgt: Obsolete mips*-*-mach3*.
7722 2003-04-09 Andrew Cagney <cagney@redhat.com>
7724 * doublest.h: Update copyright.
7725 (deprecated_store_floating, deprecated_extract_floating): Rename
7726 store_floating and extract_floating. Update comments.
7727 * doublest.c: Update copyright.
7728 (extract_floating_by_length): Replace extract_floating.
7729 (store_floating_by_length): Replace store_floating.
7730 (deprecated_extract_floating): New function.
7731 (deprecated_store_floating): New function.
7732 (extract_typed_floating): Call extract_floating_by_length.
7733 (store_typed_floating): Call store_floating_by_length.
7734 * x86-64-tdep.c (x86_64_store_return_value): Update.
7735 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7736 (sh64_extract_return_value): Update.
7737 (sh_sh4_register_convert_to_virtual): Update.
7738 (sh_sh64_register_convert_to_virtual): Update.
7739 (sh_sh4_register_convert_to_raw): Update.
7740 (sh_sh64_register_convert_to_raw): Update.
7741 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7742 (rs6000_register_convert_to_raw): Update.
7743 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7744 (ia64_register_convert_to_raw): Update.
7745 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7746 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7747 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7748 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7749 (alpha_register_convert_to_raw): Update.
7751 2003-04-08 Andrew Cagney <cagney@redhat.com>
7753 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7754 * gdbarch.h, gdbarch.c: Re-generate.
7755 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7756 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7757 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7758 conditionally, use frame_pc_unwind as an alternative. Add
7760 * arch-utils.c (init_frame_pc_default): Only call
7761 SAVED_PC_AFTER_CALL when available.
7763 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7765 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7766 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7767 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7768 (start_remote): Ditto.
7769 (handle_inferior_event): Ditto.
7770 (save_inferior_status): Ditto.
7771 (restore_inferior_status): Ditto.
7772 * infcmd.c (attach_command): Ditto.
7773 * fork-child.c (startup_inferior): Ditto.
7774 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7775 * alpha-tdep.c (heuristic_proc_start): Ditto.
7776 * mips-tdep.c (heuristic_proc_start): Ditto.
7777 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7778 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7779 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7780 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7781 * remote-vx.c (vx_create_inferior): Ditto.
7783 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7785 * infrun.c (stop_soon_quietly): Make it an enum, to better
7786 override the default behavior of handle_inferior_event.
7787 (clear_proceed_status): Update uses of stop_soon_quietly to
7788 reflect that it is now an enum.
7789 (start_remote): Ditto.
7790 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7791 is set to handle the new GNU/Linux kernel behavior for
7792 attach/sigstop. Update uses of stop_soon_quietly.
7793 * inferior.h (enum stop_kind): New enum.
7794 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7795 Reset normal handle_inferior_event behavior, afterwards.
7796 * fork-child.c (startup_inferior): Update.
7797 * alpha-tdep.c (heuristic_proc_start): Update.
7798 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7799 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7800 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7801 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7802 * remote-vx.c (vx_create_inferior): Update.
7803 * mips-tdep.c (heuristic_proc_start): Update.
7805 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7807 * disasm.c (dump_insns): Move variables inside loop, or they will
7808 be freed more than once, causing wild memory corruptions.
7809 (gdb_disassembly): Look for the substring "-thread",
7810 instead of "-threads" in the target name, to make sure to find
7811 the 'multi-thread' target. Also, make sure we do the right thing
7812 with the "core" target.
7814 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7816 * mips-tdep.c (mips_print_fp_register): New function, created from
7817 do_fp_register_row(). Registers are now (also) printed as hex.
7818 Only one register is printed per row.
7819 (mips_print_register, do_fp_register_row): Print floating point
7820 registers with mips_print_fp_register().
7822 2003-04-06 Andrew Cagney <cagney@redhat.com>
7824 * valprint.h (inspect_it): Add extern declaration.
7825 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7826 (selectors_info, classes_info): Ditto.
7827 (find_objc_msgcall): Fix indentation.
7828 (objc_printstr): Delete extern declarations.
7830 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7832 2003-04-06 Andrew Cagney <cagney@redhat.com>
7834 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7836 * frame.c (legacy_saved_regs_this_id): Update.
7837 (legacy_get_prev_frame): Update.
7838 * xstormy16-tdep.c: Update comment.
7839 * sparc-tdep.c (sparc_frame_chain): Update comment.
7840 * blockframe.c (legacy_frame_chain_valid): Update.
7842 2003-04-06 Andrew Cagney <cagney@redhat.com>
7844 * valprint.c (val_print_type_code_int): Delete #ifdef
7845 PRINT_TYPELESS_INTEGER code.
7847 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7848 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7849 multi-arch definition.
7850 * gdbarch.h: Re-generate.
7852 2003-04-05 Andrew Cagney <cagney@redhat.com>
7854 Eliminate FRAME_FIND_SAVED_REGS.
7855 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7856 Change FSR parameter to a pointer.
7857 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7858 Assume FSR parameter is a pointer.
7859 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7861 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7862 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7863 saved_regs a pointer.
7864 (hppa_frame_saved_pc): Ditto.
7865 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7866 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7868 (restore_pc_queue): Make fsr a pointer.
7869 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7870 (hppa_frame_chain): Make saved_regs a pointer, call
7871 hppa_frame_init_saved_regs.
7872 * sparc-tdep.c: Include "gdb_assert.h".
7873 (sparc_frame_find_saved_regs): Replace internal_error with
7875 * remote-vxsparc.c (vx_read_register): Delete reference to
7876 FRAME_FIND_SAVED_REGS.
7877 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7878 * gdbarch.h: Regenerate.
7879 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7880 (deprecated_get_frame_saved_regs): Delete declaration.
7881 (struct frame_saved_regs): Delete definition.
7882 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7883 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7884 (hppa_frame_find_saved_regs): Delete declaration.
7885 (FRAME_FIND_SAVED_REGS): Delete macro.
7886 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7887 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7888 FRAME_FIND_SAVED_REGS in comment.
7890 2003-04-05 Andrew Cagney <cagney@redhat.com>
7892 * frame.c (frame_func_unwind, get_frame_func): New functions.
7893 * frame.h (get_frame_func, frame_func_unwind): Declare.
7894 (struct frame_info): Add field "prev_func" for caching the
7895 previous frame's function address.
7896 * arm-tdep.c (arm_frameless_function_invocation): Combine
7897 get_pc_function_start and get_frame_pc into get_frame_func.
7898 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7899 (sh64_nofp_frame_init_saved_regs): Ditto.
7900 * s390-tdep.c (s390_function_start): Ditto.
7901 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7902 (rs6000_frameless_function_invocation): Ditto.
7903 (rs6000_frame_saved_pc): Ditto.
7904 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7905 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7906 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7907 (i386_frame_init_saved_regs): Ditto.
7908 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7909 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7910 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7911 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7912 * blockframe.c (frameless_look_for_prologue): Ditto.
7914 2003-04-05 Andrew Cagney <cagney@redhat.com>
7916 * frame.c (legacy_get_prev_frame): Link prev to next at the
7917 function start. Update comments.
7919 2003-04-05 Andrew Cagney <cagney@redhat.com>
7921 * frame.c (get_frame_id): Update comment.
7922 (legacy_get_prev_frame): Update comment.
7923 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7924 * gdbarch.h: Regenerate.
7925 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7926 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7928 2003-04-05 Andrew Cagney <cagney@redhat.com>
7930 * stack.c (print_frame_info): Use get_frame_pc.
7932 2003-04-04 Andrew Cagney <cagney@redhat.com>
7934 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7935 the frame's type from the unwinder.
7936 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7937 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7938 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7939 (get_frame_base_address): Use get_frame_type.
7940 (get_frame_locals_address, get_frame_args_address): Ditto.
7941 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7942 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7943 (struct frame_info): Add comment explaining why the frame contains
7945 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7946 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7947 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7949 * frame-unwind.h: Include "frame.h".
7950 (struct frame_unwind): Add "type" field.
7951 * Makefile.in (frame_unwind_h): Add $(frame_h).
7953 2003-04-04 Andrew Cagney <cagney@redhat.com>
7955 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7956 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7957 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7959 (d10v_unwind_dummy_id): Use frame_id_build.
7960 * frame.c (find_frame_sal): Use get_frame_pc.
7961 (create_new_frame): Use deprecated_update_frame_pc_hack and
7962 deprecated_update_frame_base_hack.
7963 (create_sentinel_frame): Add comment about ->pc going away.
7964 (get_prev_frame): Add comment about ->pc going away.
7965 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7966 frame_id_build, deprecated_update_frame_pc_hack and
7967 deprecated_update_frame_base_hack.
7968 (select_frame): Use get_frame_pc.
7969 (legacy_saved_regs_this_id): Use frame_id_build.
7971 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7973 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7974 signed integer case.
7975 (classify_argument): Handle enumerations and references.
7977 2003-04-04 Andrew Cagney <cagney@redhat.com>
7979 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7982 2003-04-01 Adam Fedor <fedor@gnu.org>
7984 * gdb/objc-lang.c (selectors_info): Replace calls to
7985 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7986 SYMBOL_NATURAL_NAME.
7987 (classes_info, find_methods): Likewise.
7989 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7991 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7992 ``mach'' to the value determined by bfd_default_set_arch_mach().
7994 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7996 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7997 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7998 (mi-cmd-file.o): Update dependencies.
8000 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8002 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8003 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8005 2003-04-01 Adam Fedor <fedor@gnu.org>
8007 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8008 * language.h (struct language_defn): Add la_demangle.
8009 (language_demangle): Declare.
8010 * language.c (language_demangle): New function.
8011 (unk_lang_demangle): Likewise.
8012 (unknown_language_defn, auto_language_defn, local_language_defn):
8013 Add ukn_lang_demangle.
8014 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8015 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8016 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8017 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8018 * jv-lang.c (java_demangle): New function
8019 (java_language_defn): Use it for la_demangle element.
8020 * objc-lang.c (objc_demangle): Add options argument
8021 (objc_language_defn): Use objc_demangle for la_demangle element.
8022 * maint.c (maintenance_demangle): Replace switch with
8023 call to language_demangle.
8024 * utils.c (fprintf_symbol_filtered): Likewise.
8026 2003-04-01 Andrew Cagney <cagney@redhat.com>
8028 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8029 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8030 PRINT_TYPELESS_INTEGER.
8031 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8032 PUSH_RETURN_ADDRESS.
8034 2003-04-01 Andrew Cagney <cagney@redhat.com>
8036 * Makefile.in (d10v-tdep.o): Update dependencies.
8037 * d10v-tdep.c: Include "frame-base.h".
8038 (d10v_frame_unwind): Make constant.
8039 (d10v_frame_base_address): New function.
8040 (d10v_frame_base): New variable.
8041 (d10v_gdbarch_init): Set frame_base default.
8042 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8044 (d10v_frame_unwind_cache): Set and use "prev_sp".
8045 (d10v_frame_this_id): Use the previous frame's inner most stack
8046 address and this frame's func address for the frame ID. Use
8047 frame_id_build. Don't analyze beyond the current instruction.
8049 2003-04-01 Andrew Cagney <cagney@redhat.com>
8051 * frame.h (get_frame_locals_address, get_frame_args_address):
8052 Refer to the base address, instead of the address of the first
8055 2003-04-01 Andrew Cagney <cagney@redhat.com>
8057 Add frame debug info addresses:
8058 * frame-base.c: New file.
8059 * frame-base.h: New file.
8060 * frame.h (struct frame_base): Add opaque declaration.
8061 (get_frame_base): Update comment.
8062 (get_frame_base_address): Declare.
8063 (get_frame_locals_address): Declare.
8064 (get_frame_args_address): Declare.
8065 (struct frame_info): Add "base" and "base_cache". Update
8066 comments on the unwinder.
8067 * frame.c: Include "frame-base.h".
8068 (get_frame_locals_address): New function.
8069 (get_frame_base_address): New function.
8070 (get_frame_args_address): New function.
8071 * findvar.c (read_var_value): Use get_frame_locals_address and
8072 get_frame_args_address.
8073 * stack.c (frame_info): Use get_frame_locals_address and
8074 get_frame_args_address.
8075 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8076 moved to "frame-base.c".
8077 * printcmd.c (print_frame_nameless_args): Ditto.
8078 * symtab.h (address_class): Update comments.
8079 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8080 get_frame_base_address.
8081 * dwarf2expr.c (execute_stack_op): Ditto.
8082 * Makefile.in (frame_base_h): Define.
8083 (frame.o): Update dependencies.
8084 (frame-base.o): Add dependencies.
8085 (SFILES): Add frame-base.c.
8086 (COMMON_OBS): Add frame-base.o.
8088 2003-04-01 Andrew Cagney <cagney@redhat.com>
8090 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8091 CALL_DUMMY_LENGTH): Ditto.
8092 * gdbarch.c: Re-generate.
8093 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8094 (CALL_DUMMY_LENGTH): Delete macro.
8095 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8096 * arm-tdep.c (arm_gdbarch_init): Ditto.
8097 * avr-tdep.c (avr_gdbarch_init): Ditto.
8098 * cris-tdep.c (cris_gdbarch_init): Ditto.
8099 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8100 * frv-tdep.c (frv_gdbarch_init): Ditto.
8101 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8102 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8103 * i386-tdep.c (i386_gdbarch_init): Ditto.
8104 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8105 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8106 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8107 * mips-tdep.c (mips_gdbarch_init): Ditto.
8108 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8109 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8110 * s390-tdep.c (s390_gdbarch_init): Ditto.
8111 * sh-tdep.c (sh_gdbarch_init): Ditto.
8112 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8113 * v850-tdep.c (v850_gdbarch_init): Ditto.
8114 * vax-tdep.c (vax_gdbarch_init): Ditto.
8115 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8117 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8119 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8121 2003-04-01 Andrew Cagney <cagney@redhat.com>
8123 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8124 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8125 * gdbarch.h, gdbarch.c: Re-generate.
8126 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8127 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8128 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8129 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8130 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8131 * infcmd.c (run_stack_dummy): Simplify assuming
8132 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8133 * infrun.c (handle_inferior_event): Ditto.
8134 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8135 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8136 * arm-tdep.c (arm_gdbarch_init): Ditto.
8137 * avr-tdep.c (avr_gdbarch_init): Ditto.
8138 * cris-tdep.c (cris_gdbarch_init): Ditto.
8139 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8140 * frv-tdep.c (frv_gdbarch_init): Ditto.
8141 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8142 * i386-tdep.c (i386_gdbarch_init): Ditto.
8143 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8144 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8145 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8146 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8147 * mips-tdep.c (mips_gdbarch_init): Ditto.
8148 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8149 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8150 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8151 * s390-tdep.c (s390_gdbarch_init): Ditto.
8152 * sh-tdep.c (sh_gdbarch_init): Ditto.
8153 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8154 * v850-tdep.c (v850_gdbarch_init): Ditto.
8155 * vax-tdep.c (vax_gdbarch_init): Ditto.
8156 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8158 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8160 * symfile.c (symfile_relocate_debug_section): Update call to
8161 bfd_simple_get_relocated_section_contents.
8163 2003-03-31 Andrew Cagney <cagney@redhat.com>
8165 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8166 * gdbarch.h, gdbarch.c: Regenerate.
8167 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8168 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8170 * frame.h (generic_fix_call_dummy): Delete declaration.
8171 * dummy-frame.h: Update comment.
8172 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8173 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8175 * sh-tdep.c (sh_gdbarch_init): Ditto.
8176 * s390-tdep.c (s390_gdbarch_init): Ditto.
8177 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8178 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8179 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8180 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8181 * i386-tdep.c (i386_gdbarch_init): Ditto.
8182 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8183 * frv-tdep.c (frv_gdbarch_init): Ditto.
8184 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8185 * cris-tdep.c (cris_gdbarch_init): Ditto.
8186 * avr-tdep.c (avr_gdbarch_init): Ditto.
8187 * arm-tdep.c (arm_gdbarch_init): Ditto.
8189 2003-03-31 J. Brobecker <brobecker@gnat.com>
8191 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8192 (INIT_FRAME_AP): Likewise.
8193 (EXTRA_FRAME_INFO): Likewise.
8195 2003-03-31 Andrew Cagney <cagney@redhat.com>
8197 * gdbarch.sh: Include "symfile.h".
8198 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8199 * gdbarch.h, gdbarch.c: Re-generate.
8200 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8201 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8202 call_dummy_address, the default is at entry_point_address.
8203 * v850-tdep.c (v850_gdbarch_init): Ditto.
8204 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8205 * sh-tdep.c (sh_gdbarch_init): Ditto.
8206 * s390-tdep.c (s390_gdbarch_init): Ditto.
8207 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8208 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8209 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8210 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8211 * i386-tdep.c (i386_gdbarch_init): Ditto.
8212 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8213 * frv-tdep.c (frv_gdbarch_init): Ditto.
8214 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8215 * cris-tdep.c (cris_gdbarch_init): Ditto.
8216 * arm-tdep.c (arm_gdbarch_init): Ditto.
8218 2003-03-31 Andrew Cagney <cagney@redhat.com>
8220 * gdbarch.sh (CALL_DUMMY_P): Delete.
8221 * gdbarch.h, gdbarch.c: Re-generate.
8222 * inferior.h (CALL_DUMMY_P): Delete macro.
8223 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8224 * vax-tdep.c (vax_gdbarch_init): Update.
8225 * v850-tdep.c (v850_gdbarch_init): Update.
8226 * sparc-tdep.c (sparc_gdbarch_init): Update.
8227 * sh-tdep.c (sh_gdbarch_init): Update.
8228 * s390-tdep.c (s390_gdbarch_init): Update.
8229 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8230 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8231 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8232 * mips-tdep.c (mips_gdbarch_init): Update.
8233 * mcore-tdep.c (mcore_gdbarch_init): Update.
8234 * m68k-tdep.c (m68k_gdbarch_init): Update.
8235 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8236 * ia64-tdep.c (ia64_gdbarch_init): Update.
8237 * i386-tdep.c (i386_gdbarch_init): Update.
8238 * h8300-tdep.c (h8300_gdbarch_init): Update.
8239 * frv-tdep.c (frv_gdbarch_init): Update.
8240 * d10v-tdep.c (d10v_gdbarch_init): Update.
8241 * cris-tdep.c (cris_gdbarch_init): Update.
8242 * breakpoint.c (deprecated_frame_in_dummy): Update.
8243 * avr-tdep.c (avr_gdbarch_init): Update.
8244 * alpha-tdep.c (alpha_gdbarch_init): Update.
8245 * arm-tdep.c (arm_gdbarch_init): Update.
8246 * dummy-frame.c (dummy_frame_this_id): Update comments.
8247 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8248 * frame.c (legacy_get_prev_frame): Ditto.
8249 * valops.c (call_function_by_hand): Delete function.
8250 (hand_function_call): Rename to call_function_by_hand
8252 2003-03-30 Andrew Cagney <cagney@redhat.com>
8254 2002-11-10 Klee Dienes <kdienes@apple.com>
8255 * value.h (struct value): Update comment.
8257 2003-03-30 Andrew Cagney <cagney@redhat.com>
8259 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8261 (d10v_gdbarch_init): Do not set fp_regnum.
8263 * frame.c (get_frame_base): Force ID initialization.
8264 (get_prev_frame): Move computation of the frame ID from here ...
8265 (get_frame_id): ... to here.
8266 (legacy_get_prev_frame): Mark the frame ID as valid.
8267 * frame.h (struct frame_info): Add field "id_p".
8269 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8271 * i386-tdep.c (i386_store_struct_return): Removed.
8272 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8274 2003-03-30 Andrew Cagney <cagney@redhat.com>
8276 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8277 * gdbarch.h, gdbarch.c: Regenerate.
8278 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8279 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8280 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8281 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8282 * i386-tdep.c (i386_gdbarch_init): Ditto.
8283 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8284 * cris-tdep.c (cris_gdbarch_init): Ditto.
8285 * vax-tdep.c (vax_gdbarch_init): Ditto.
8286 * s390-tdep.c (s390_gdbarch_init): Ditto.
8287 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8288 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8289 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8290 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8291 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8292 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8293 * sparc-tdep.c (sparc_gdbarch_init): Update.
8294 * sh-tdep.c (sh_gdbarch_init): Update.
8295 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8296 * mips-tdep.c (mips_gdbarch_init): Update.
8297 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8298 * ia64-tdep.c (ia64_gdbarch_init): Update.
8299 * frv-tdep.c (frv_gdbarch_init): Update.
8300 * avr-tdep.c (avr_gdbarch_init): Update.
8301 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8302 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8303 instead of when push_dummy_call is not available.
8305 2003-03-30 Andrew Cagney <cagney@redhat.com>
8307 * infttrace.c: Include "gdbthread.h".
8308 (parent_attach_all): Fix function signature.
8309 (call_ptrace): Update call.
8310 * Makefile.in (infttrace.o): Update dependencies.
8312 2003-03-30 Andrew Cagney <cagney@redhat.com>
8314 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8315 PUSH_RETURN_ADDRESS.
8316 * gdbarch.h, gdbarch.c: Regenerate.
8317 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8318 * x86-64-tdep.c (x86_64_init_abi): Update.
8319 * v850-tdep.c (v850_gdbarch_init): Update.
8320 * sparc-tdep.c (sparc_gdbarch_init): Update.
8321 * sh-tdep.c (sh_gdbarch_init): Update.
8322 * s390-tdep.c (s390_gdbarch_init): Update.
8323 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8324 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8325 * mips-tdep.c (mips_gdbarch_init): Update.
8326 * mcore-tdep.c (mcore_gdbarch_init): Update.
8327 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8328 * ia64-tdep.c (ia64_gdbarch_init): Update.
8329 * i386-tdep.c (i386_gdbarch_init): Update.
8330 * h8300-tdep.c (h8300_gdbarch_init): Update.
8331 * frv-tdep.c (frv_gdbarch_init): Update.
8332 * cris-tdep.c (cris_gdbarch_init): Update.
8333 * avr-tdep.c (avr_gdbarch_init): Update.
8334 * arm-tdep.c (arm_gdbarch_init): Update.
8335 * valops.c (hand_function_call): Update.
8337 2003-03-29 Andrew Cagney <cagney@redhat.com>
8339 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8340 sizeof_call_dummy_words.
8341 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8343 * gdbarch.h: Regenerate.
8345 2003-03-29 Andrew Cagney <cagney@redhat.com>
8347 * infttrace.h: New file.
8348 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8349 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8350 (hpread_read_doc_function_type): Detect an initialized type1.
8351 (hpread_quick_traverse): Initialize mod_name_string.
8352 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8353 (som_solib_get_solib_by_pc): Declare.
8354 (so_lib_thread_start_addr): Declare.
8355 (no_shared_libraries): Declare.
8356 * somread.c (init_import_symbols): Make static. Add forward
8358 * config/pa/nm-hppah.h: Include "infttrace.h" for
8360 (hppa_insert_hw_watchpoint): Declare.
8361 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8362 * hppah-nat.c: Include "gdb_string.h".
8363 (parent_attach_all): Delete extern declaration, moved to
8365 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8367 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8368 * Makefile.in (infttrace_h): Define.
8369 (hpread.o): Update dependencies.
8370 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8371 * hppa-hpux-tdep.c: Include "gdb_string.h".
8372 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8373 * infrun.c (handle_inferior_event): Always initialize
8374 stepped_after_stopped_by_watchpoint. Add default and remove
8375 fallthrough in switch statement.
8376 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8378 (hppa_remove_hw_watchpoint): Ditto.
8380 2003-03-29 Andrew Cagney <cagney@redhat.com>
8382 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8385 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8387 * arm-tdep.c (arm_push_arguments): Delete.
8388 (struct stack_item): New type.
8389 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8390 (arm_store_struct_return): Delte.
8391 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8392 arm_push_arguments or arm_store_struct_return.
8394 2003-03-28 Andrew Cagney <cagney@redhat.com>
8396 * Makefile.in (d10v-tdep.o): Update dependencies.
8397 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8398 * d10v-tdep.c: Include "remote.h".
8399 (target_resume_hook): Delete extern declaration.
8400 (target_wait_loop_hook): Ditto.
8401 (tdisassemble_command): Eliminate assignment in "if" conditional.
8402 (d10v_ts2_register_sim_regno): Eliminate call to
8403 legacy_register_sim_regno.
8404 (d10v_ts3_register_sim_regno): Ditto.
8406 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8408 * thread.c: Reindented.
8410 * linux-proc.c: Ditto.
8412 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8414 * MAINTAINERS (write after approval): Add myself.
8416 2003-03-27 Theodore A. Roth <troth@openavr.org>
8418 * objc-exp.y: Add missing semi-colons.
8420 2003-03-27 Andrew Cagney <cagney@redhat.com>
8422 * regcache.c (write_sp): Delete function and references.
8423 * inferior.h (write_sp): Delete declaration.
8424 * valops.c (hand_function_call): Replace write_sp with
8426 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8427 (sparc_pop_frame): Ditto.
8429 2003-03-27 Andrew Cagney <cagney@redhat.com>
8431 * NEWS: Mention removal of support for hppa*-*-bsd* and
8432 hppa*-*-osf* natives, and hppa*-*-pro* target.
8433 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8434 * config/pa/xm-pa.h: Obsolete file.
8435 * config/pa/xm-hppab.h: Obsolete file.
8436 * config/pa/nm-hppab.h: Obsolete file.
8437 * config/pa/tm-hppab.h: Obsolete file.
8438 * config/pa/tm-hppao.h: Obsolete file.
8439 * config/pa/nm-hppao.h: Obsolete file.
8440 * config/pa/tm-pro.h: Obsolete file.
8441 * config/pa/hppaosf.mt: Obsolete file.
8442 * config/pa/hppaosf.mh: Obsolete file.
8443 * config/pa/hppapro.mt: Obsolete file.
8444 * config/pa/hppabsd.mt: Obsolete file.
8445 * config/pa/hppabsd.mh: Obsolete file.
8446 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8447 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8450 2003-03-27 Andrew Cagney <cagney@redhat.com>
8452 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8453 push_arguments. Don't set push_return_address or write_sp.
8454 (d10v_push_dummy_call): Replace d10v_push_arguments.
8455 (d10v_push_return_address, d10v_write_sp): Delete function,
8456 handled by push_dummy_call.
8458 2003-03-26 Andrew Cagney <cagney@redhat.com>
8460 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8461 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8462 regcache and dummy_addr parameters.
8463 * gdbarch.h, gdbarch.c: Re-generate.
8464 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8465 available; assume it will handle stack alignment and return
8466 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8467 legacy_push_arguments.
8468 (legacy_push_arguments): Rename default_push_arguments.
8469 * value.h (legacy_push_arguments): Rename default_push_arguments.
8470 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8471 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8472 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8473 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8474 * config/i386/tm-symmetry.h: Update.
8475 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8476 * x86-64-tdep.c (x86_64_init_abi): Update.
8477 * v850-tdep.c (v850_gdbarch_init): Update.
8478 * sparc-tdep.c (sparc_gdbarch_init): Update.
8479 * sh-tdep.c (sh_gdbarch_init): Update.
8480 * s390-tdep.c (s390_gdbarch_init): Update.
8481 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8482 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8483 * mips-tdep.c (mips_gdbarch_init): Update.
8484 * mcore-tdep.c (mcore_gdbarch_init): Update.
8485 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8486 * ia64-tdep.c (ia64_gdbarch_init): Update.
8487 * i386-tdep.c (i386_gdbarch_init): Update.
8488 * hppa-tdep.c (hppa_gdbarch_init): Update.
8489 * h8300-tdep.c (h8300_gdbarch_init): Update.
8490 * frv-tdep.c (frv_gdbarch_init): Update.
8491 * d10v-tdep.c (d10v_gdbarch_init): Update.
8492 * cris-tdep.c (cris_gdbarch_init): Update.
8493 * avr-tdep.c (avr_gdbarch_init): Update.
8494 * arm-tdep.c (arm_gdbarch_init): Update.
8495 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8496 * alpha-tdep.c (alpha_gdbarch_init): Update.
8498 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8500 * signals/signals.c (do_target_signal_to_host): Correct realtime
8503 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8505 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8506 (struct sal_chain, map_catch_names): Remove.
8507 (catch_exception_command_1): Don't call
8508 handle_gnu_4_16_catch_command.
8510 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8512 From Mark Dettinger <dettinge@de.ibm.com>:
8513 * dwarf2cfi.c (read_2u): Increment pointer by two.
8515 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8517 * signals/signals.c: Fix typos in last change.
8519 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8521 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8522 not already defined. Use __SIGRTMIN if available.
8523 (target_signal_from_host): Remove SIGRTMIN block.
8524 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8525 the signal is within the realtime range.
8527 2003-03-25 Adam Fedor <fedor@gnu.org>
8529 * Makefile.in (infrun.o): Add $(language_h)
8530 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8531 for language specific trampolines.
8532 * language.h (struct language_defn): Add skip_trampoline.
8533 (skip_language_trampoline): Declare.
8534 * language.c (unk_lang_trampoline, skip_language_trampoline):
8536 (unknown_language_defn, auto_language_defn, local_language_defn):
8537 Add ukn_lang_trampoline.
8538 * ada-lang.c (ada_language_defn): Add NULL for language
8539 specific skip_trampoline.
8540 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8541 scm-lang.c: Likewise.
8542 * objc-lang.c (objc_skip_trampoline): New function.
8543 (objc_language_defn): Add objc_skip_trampoline.
8545 2003-03-25 Andrew Cagney <cagney@redhat.com>
8547 * frame.c (get_prev_frame): Delay validating a frame's ID -
8548 non-NULL, didn't go backwards - until an attempt to unwind it to
8551 2003-03-25 Andrew Cagney <cagney@redhat.com>
8553 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8554 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8555 * gdbarch.h, gdbarch.c: Re-generate.
8556 * config/sparc/tm-sparc.h
8557 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8558 * sparc-tdep.c (sparc_gdbarch_init): Set
8559 deprecated_extra_stack_alignment_needed.
8560 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8561 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8562 extra_stack_alignment_needed.
8563 * v850-tdep.c (v850_gdbarch_init): Ditto.
8564 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8565 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8566 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8567 * cris-tdep.c (cris_gdbarch_init): Ditto.
8568 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8569 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8571 2003-03-25 Andrew Cagney <cagney@redhat.com>
8573 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8574 STORE_STRUCT_RETURN.
8575 * gdbarch.h, gdbarch.c: Regenerate.
8576 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8577 (d10v_push_arguments): Set the struct return register.
8578 (d10v_gdbarch_init): Update.
8579 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8580 * x86-64-tdep.c (x86_64_init_abi): Update.
8581 * vax-tdep.c (vax_gdbarch_init): Update.
8582 * v850-tdep.c (v850_gdbarch_init): Update.
8583 * sparc-tdep.c (sparc_gdbarch_init): Update.
8584 * sh-tdep.c (sh_gdbarch_init): Update.
8585 * s390-tdep.c (s390_gdbarch_init): Update.
8586 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8587 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8588 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8589 * mips-tdep.c (mips_gdbarch_init): Update.
8590 * mcore-tdep.c (mcore_gdbarch_init): Update.
8591 * m68k-tdep.c (m68k_gdbarch_init): Update.
8592 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8593 * ia64-tdep.c (ia64_gdbarch_init): Update.
8594 * i386-tdep.c (i386_gdbarch_init): Update.
8595 * hppa-tdep.c (hppa_gdbarch_init): Update.
8596 * h8300-tdep.c (h8300_gdbarch_init): Update.
8597 * frv-tdep.c (frv_gdbarch_init): Update.
8598 * cris-tdep.c (cris_gdbarch_init): Update.
8599 * avr-tdep.c (avr_gdbarch_init): Update.
8600 * arm-tdep.c (arm_gdbarch_init): Update.
8601 * alpha-tdep.c (alpha_gdbarch_init): Update.
8603 2003-03-25 Andrew Cagney <cagney@redhat.com>
8605 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8606 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8607 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8608 * gdbarch.h, gdbarch.c: Regenerate.
8609 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8610 call_dummy_stack_adjust_p.
8611 * vax-tdep.c (vax_gdbarch_init): Ditto.
8612 * v850-tdep.c (v850_gdbarch_init): Ditto.
8613 * sh-tdep.c (sh_gdbarch_init): Ditto.
8614 * s390-tdep.c (s390_gdbarch_init): Ditto.
8615 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8616 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8617 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8618 * mips-tdep.c (mips_gdbarch_init): Ditto.
8619 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8620 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8621 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8622 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8623 * i386-tdep.c (i386_gdbarch_init): Ditto.
8624 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8625 * frv-tdep.c (frv_gdbarch_init): Ditto.
8626 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8627 * cris-tdep.c (cris_gdbarch_init): Ditto.
8628 * avr-tdep.c (avr_gdbarch_init): Ditto.
8629 * arm-tdep.c (arm_gdbarch_init): Ditto.
8630 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8631 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8632 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8633 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8634 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8635 call_dummy_stack_adjust_p.
8636 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8637 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8638 * sparc-tdep.c (sparc32_push_arguments): Update.
8639 * valops.c (hand_function_call): Update.
8641 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8643 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8644 set_gdbarch_char_signed.
8646 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8649 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8651 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8653 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8654 (_initialize_arm_tdep): Don't set tm_print_insn.
8656 2003-03-24 Adam Fedor <fedor@gnu.org>
8658 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8659 * objc-lang.h: Add multiple inclusion protection.
8660 (start_msglist, add_msglist, end_msglist): Additional declarations.
8662 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8664 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8665 value was renamed to ARM_FLOAT_SOFT_FPA.
8667 2003-03-23 Andrew Cagney <cagney@redhat.com>
8669 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8670 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8671 * gdbarch.h, gdbarch.c: Regenerate.
8672 * valops.c (hand_function_call): Update.
8673 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8674 * frame.c (legacy_saved_regs_this_id): Update.
8675 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8676 * dummy-frame.h: Update.
8677 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8678 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8679 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8680 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8681 * config/m68k/tm-sun3.h: Update.
8682 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8683 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8684 * x86-64-tdep.c (x86_64_init_abi): Update.
8685 * vax-tdep.c (vax_gdbarch_init): Update.
8686 * v850-tdep.c (v850_gdbarch_init): Update.
8687 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8688 * sh-tdep.c (sh_gdbarch_init): Update.
8689 * s390-tdep.c (s390_gdbarch_init): Update.
8690 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8691 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8692 (frame_get_saved_regs): Update.
8693 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8694 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8695 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8696 * mips-tdep.c (mips_gdbarch_init): Update.
8697 * mcore-tdep.c (mcore_gdbarch_init): Update.
8698 * m68k-tdep.c (m68k_gdbarch_init): Update.
8699 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8700 * ia64-tdep.c (ia64_gdbarch_init): Update.
8701 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8702 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8703 (i386_interix_back_one_frame): Update.
8704 * hppa-tdep.c (hppa_gdbarch_init): Update.
8705 (hppa_init_extra_frame_info): Update.
8706 * h8300-tdep.c (h8300_gdbarch_init): Update.
8707 * frv-tdep.c (frv_gdbarch_init): Update.
8708 * cris-tdep.c (cris_gdbarch_init): Update.
8709 * avr-tdep.c (avr_gdbarch_init): Update.
8710 * arm-tdep.c (arm_gdbarch_init): Update.
8711 * alpha-tdep.c (alpha_gdbarch_init): Update.
8713 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8715 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8716 (arm_get_fp_model): Declare.
8717 * arm-tdep.c (fp_model_strings): New string array.
8718 (arm_fp_model, current_fp_model): New variables.
8719 (arm_get_fp_model): New function.
8720 (arm_set_fp): New function.
8721 (set_fp_model_sfunc): New function.
8722 (show_fp_model): New function.
8723 (_initialize_arm_tdep): Add new command to set/show the FPU.
8724 (arm_extract_return_value): Use arm_get_fp_model.
8725 (arm_store_return_value): Likewise.
8726 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8727 to initialize the floating-point data types.
8728 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8731 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8733 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8734 the current setting of each value.
8735 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8736 new_set and new_show. Use add_setshow_cmd_full and
8737 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8738 commands and add new version as subcommands of "set/show arm".
8740 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8742 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8743 (set_arm_command, show_arm_command): New functions.
8744 (_initialize_arm_tdep): Add them.
8745 (num_disassembly_options): Renamed from num_flavor_options.
8746 (valid_disassembly_styles): Renamed from valid_flavors.
8747 (disassembly_style): Renamed from disassembly_flavor.
8748 (set_disassembly_style_sfunc): Renamed from
8749 set_disassembly_flavor_sfunc.
8750 (set_disassembly_style): Renamed from set_disassembly_flavor.
8751 (arm_othernames): Updated.
8752 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8753 command. Add "set/show arm disassembly" commands. Deprecate
8754 "othernames" command.
8756 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8758 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8759 (arm-tdep.o): Depend on elf_arm_h.
8761 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8763 * Makefile.in (coff_internal_h): Define.
8764 (arm-tdep.o): Update dependencies.
8766 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8768 * arm-tdep.c (prologue_cache): Delete.
8769 (check_prologue_cache, save_prologue_cache): Delete.
8770 (arm_scan_prologue): Don't check or update the prologue_cache.
8771 (arm_gdb_arch_init): Don't initialize it.
8772 (_initialize_arm_tdep): Likewise.
8774 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8776 * MAINTAINERS (tui): Maintainer of tui code.
8778 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8780 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8781 (i386-cygwin-tdep.o): Add dependencies.
8782 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8783 * i386-cygwin-tdep.c: New file.
8784 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8785 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8787 2003-03-20 Andrew Cagney <cagney@redhat.com>
8789 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8790 (handle_inferior_event): Remove code calling
8791 DYNAMIC_TRAMPOLINE_NEXTPC.
8793 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8794 already has a full path.
8796 * main.c (gdb_main): Return 1.
8797 (captured_main): Call error to report an invalid interpreter.
8799 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8800 * alpha-osf1-tdep.c: Include "gdb_string.h".
8802 2003-03-19 J. Brobecker <brobecker@gnat.com>
8804 Continuing work to convert the hppa targets to multiarch partial.
8806 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8807 method, now that hppa_push_dummy_frame has a conformant prototype.
8808 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8809 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8810 for the switch to multiarch partial.
8812 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8814 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8815 when iss is issNull.
8817 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8819 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8820 NUM_REGS bounds check.
8822 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8824 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8825 * mips-tdep.c (gdb_assert.h): Include.
8826 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8827 (mips_register_name): Handle integer registers explicitly. Add
8829 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8830 (mips_lsi33k_reg_names): Don't list integer registers; they're
8831 handled by mips_register_name() now.
8832 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8833 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8834 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8835 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8836 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8838 2003-03-18 Andrew Cagney <cagney@redhat.com>
8840 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8842 * gdbtypes.h (print_scalar_formatted): Update declaration.
8843 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8845 2003-03-18 J. Brobecker <brobecker@gnat.com>
8847 * infrun.c (observer.h): Add #include.
8848 (normal_stop): Add call to observer_notify_normal_stop.
8849 * Makefile.in (infrun.o): Add dependency on observer.h.
8851 2003-03-18 J. Brobecker <brobecker@gnat.com>
8853 Continuing work to convert the hppa targets to multiarch partial.
8854 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8855 parameter. Reformat comment.
8856 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8857 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8858 to match new profile.
8860 2003-03-18 J. Brobecker <brobecker@gnat.com>
8862 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8863 appear to be working in any case.
8865 2003-03-18 J. Brobecker <brobecker@gnat.com>
8867 * observer.c (observer_test_first_observer): New static variable.
8868 (observer_test_second_observer): Likewise.
8869 (observer_test_third_observer): Likewise.
8870 (observer_test_first_notification_function): New static function.
8871 (observer_test_second_notification_function): Likewise.
8872 (observer_test_third_notification_function): Likewise.
8874 2003-03-17 J. Brobecker <brobecker@gnat.com>
8876 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8877 * somsolib.c (gdb_assert.h): Likewise.
8878 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8879 (somsolib.o): Likewise.
8881 2003-03-17 Andrew Cagney <cagney@redhat.com>
8883 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8884 BFD. Simplify setting of di.endian.
8886 2003-03-17 Andrew Cagney <cagney@redhat.com>
8888 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8889 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8891 From Elena Zannoni <ezannoni@redhat.com>
8892 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8893 vector and floating-point parameters.
8894 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8896 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8898 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8900 * MAINTAINERS: Remove my name from several maintainership roles.
8902 2003-03-17 Andrew Cagney <cagney@redhat.com>
8904 Fix frame off-by-one bug.
8905 * frame-unwind.h (frame_this_id_ftype): Replace
8906 frame_unwind_id_ftype.
8907 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8908 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8909 with "prev_register".
8910 * frame-unwind.c (frame_unwind_find_by_pc): Return
8911 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8913 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8914 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8915 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8916 (dummy_frame_unwind): Update.
8917 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8918 sentinel_frame_register_unwind.
8919 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8920 (sentinel_frame_unwinder): Update.
8921 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8922 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8923 * frame.c (create_sentinel_frame): Update. Initialize
8924 "prologue_cache" instead of "unwind_cache".
8925 (frame_register_unwind): Call this frame's prev_register with the
8926 next frame and this frame's prologue cache.
8927 (get_prev_frame): Simplify. Always call prev frame's this_id with
8928 this frame and prev frame's prologue cache. Document that this
8929 call is shifted one to the left when compared to the
8930 frame_register_unwind call.
8931 (legacy_saved_regs_prev_register): Replace
8932 frame_saved_regs_register_unwind.
8933 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8934 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8935 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8936 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8937 (d10v_frame_unwind): Update.
8938 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8939 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8940 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8941 "saved_regs" with "this_saved_regs".
8943 2003-03-16 Andrew Cagney <cagney@redhat.com>
8945 * frame.c (frame_pop): Don't call target_store_registers. Fix
8946 problem reported by Mark Kettenis.
8948 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8950 * i386-tdep.c (i386_register_type): Renamed from
8951 i386_register_virtual_type. Adjust function signature.
8952 (i386_gdbarch_init): Set register_type instead of
8953 deprecated_max_register_raw_size,
8954 deprecated_max_register_virtual_size and register_virtual_type.
8956 2003-03-14 Andrew Cagney <cagney@redhat.com>
8958 * frame.c (get_prev_frame): When a legacy frame, always call
8959 legacy_get_prev_frame. Simplify unwind code using assumption that
8960 the unwinder is new.
8961 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8962 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8963 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8965 2003-03-14 Andrew Cagney <cagney@redhat.com>
8967 * frame.c (get_saved_register): Delete function.
8968 * frame.h (get_saved_register): Delete declaration.
8969 * xstormy16-tdep.c: Update comment.
8970 * regcache.h: Update comments.
8971 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8972 get_saved_register and extract_address, use
8973 frame_read_unsigned_register.
8974 (sparc_frame_saved_pc): Ditto.
8975 (sparc_get_saved_register): Instead of get_saved_register, use
8977 (sparc_pop_frame): Ditto.
8978 * findvar.c: Update comments.
8979 (value_of_register): Call frame_register instead of
8981 (value_from_register): Ditto.
8982 * config/sparc/tm-sparc.h: Update comment.
8983 * breakpoint.c: Update comment.
8985 2003-03-14 Andrew Cagney <cagney@redhat.com>
8987 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8989 * gdbarch.h, gdbarch.c: Re-generate.
8990 * frame.h: Update comments.
8991 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8992 * x86-64-tdep.c (x86_64_init_abi): Update.
8993 * sparc-tdep.c (sparc_gdbarch_init): Update.
8994 * sh-tdep.c (sh_gdbarch_init): Update.
8995 * mips-tdep.c (mips_gdbarch_init): Update.
8996 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8997 * cris-tdep.c (cris_gdbarch_init): Update.
8998 * ia64-tdep.c (ia64_gdbarch_init): Update.
8999 * frame.c (frame_register): Update.
9000 (get_saved_register): Update.
9001 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9003 2003-03-13 Andrew Cagney <cagney@redhat.com>
9005 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9006 * gdbarch.h, gdbarch.c: Regenerate.
9007 * valops.c (hand_function_call): Update comment.
9008 * stack.c (return_command): Update comment.
9009 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9010 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9011 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9012 * x86-64-tdep.c (x86_64_init_abi): Update.
9013 * vax-tdep.c (vax_gdbarch_init): Update.
9014 * v850-tdep.c (v850_gdbarch_init): Update.
9015 * sparc-tdep.c (sparc_gdbarch_init): Update.
9016 * sh-tdep.c (sh_gdbarch_init): Update.
9017 * s390-tdep.c (s390_gdbarch_init): Update.
9018 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9019 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9020 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9021 * mips-tdep.c (mips_gdbarch_init): Update.
9022 * mcore-tdep.c (mcore_gdbarch_init): Update.
9023 * m68k-tdep.c (m68k_gdbarch_init): Update.
9024 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9025 * ia64-tdep.c (ia64_gdbarch_init): Update.
9026 * i386-tdep.c (i386_gdbarch_init): Update.
9027 * hppa-tdep.c (hppa_gdbarch_init): Update.
9028 * h8300-tdep.c (h8300_gdbarch_init): Update.
9029 * frv-tdep.c (frv_gdbarch_init): Update.
9030 * cris-tdep.c (cris_gdbarch_init): Update.
9031 * avr-tdep.c (avr_gdbarch_init): Update.
9032 * arm-tdep.c (arm_gdbarch_init): Update.
9033 * alpha-tdep.c (alpha_gdbarch_init): Update.
9035 2003-03-13 Andrew Cagney <cagney@redhat.com>
9037 * frame.c (legacy_frame_p): New function.
9038 (get_prev_frame): Use legacy_frame_p.
9039 * frame.h (legacy_frame_p): Declare.
9041 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9043 * MAINTAINERS (write after approval): Alphabetically
9046 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9048 * MAINTAINERS (write after approval): Add myself.
9050 2003-03-12 Andrew Cagney <cagney@redhat.com>
9052 * frame.c (get_prev_frame): Rename the frame parameter to
9054 (get_next_frame, legacy_get_prev_frame): Ditto.
9056 2003-03-12 Andrew Cagney <cagney@redhat.com>
9058 * frame.c (get_current_frame): Check target_has_registers before
9059 checking target_has_stack.
9060 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9061 instead of deprecated_selected_frame.
9062 * findvar.c (value_of_register): Pass "frame", not
9063 deprecated_selected_frame, to value_of_builtin_reg.
9065 2003-03-12 Andrew Cagney <cagney@redhat.com>
9067 * regcache.c (regcache_cooked_write_signed): New function.
9068 (regcache_cooked_write_unsigned): New function.
9069 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9070 (regcache_cooked_read_signed): Fix regnum in range assertion.
9071 * regcache.h (regcache_cooked_write_signed): Declare.
9072 (regcache_cooked_write_unsigned): Declare.
9074 2003-03-12 Andrew Cagney <cagney@redhat.com>
9076 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9077 * gdbarch.h, gdbarch.c: Re-generate.
9078 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9079 * x86-64-tdep.h: Update.
9080 * x86-64-tdep.c (x86_64_init_abi): Update.
9081 * v850-tdep.c (v850_gdbarch_init): Update.
9082 * sparc-tdep.c (sparc_gdbarch_init): Update.
9083 * sh-tdep.c (sh_gdbarch_init): Update.
9084 * s390-tdep.c (s390_gdbarch_init): Update.
9085 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9086 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9087 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9088 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9089 * mips-tdep.c (mips_gdbarch_init): Update.
9090 * mcore-tdep.c (mcore_gdbarch_init): Update.
9091 * m68k-tdep.c (m68k_gdbarch_init): Update.
9092 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9093 * ia64-tdep.c (ia64_gdbarch_init): Update.
9094 * i386-tdep.c (i386_gdbarch_init): Update.
9095 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9096 * hppa-tdep.c (hppa_gdbarch_init): Update.
9097 * h8300-tdep.c (h8300_gdbarch_init): Update.
9098 * frv-tdep.c (frv_gdbarch_init): Update.
9099 * cris-tdep.c (cris_gdbarch_init): Update.
9100 * avr-tdep.c (avr_gdbarch_init): Update.
9101 * arm-tdep.c (arm_gdbarch_init): Update.
9102 * alpha-tdep.c (alpha_gdbarch_init): Update.
9103 * sh-tdep.c (sh_init_extra_frame_info): Update.
9104 (sh64_init_extra_frame_info): Update.
9105 * ns32knbsd-nat.c (frame_num_args): Update.
9106 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9107 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9108 (xstormy16_frame_chain_valid): Update.
9109 * vax-tdep.c (vax_saved_pc_after_call): Update.
9110 * v850-tdep.c (v850_frame_chain): Update.
9111 (v850_pop_frame): Update.
9112 (v850_init_extra_frame_info): Update.
9113 * sparc-tdep.c (setup_arbitrary_frame): Update.
9114 * ns32k-tdep.c (umax_frame_num_args): Update.
9115 * s390-tdep.c (s390_pop_frame_regular): Update.
9116 * mn10300-tdep.c (mn10300_frame_chain): Update.
9117 (mn10300_pop_frame_regular): Update.
9118 (mn10300_init_extra_frame_info): Update.
9119 * mips-tdep.c (mips_init_frame_pc_first): Update.
9120 (mips_frame_chain): Update.
9121 (mips_pop_frame): Update.
9122 * mcore-tdep.c (mcore_frame_chain): Update.
9123 (mcore_pop_frame): Update.
9124 (mcore_init_extra_frame_info): Update.
9125 * arch-utils.c (init_frame_pc_default): Update.
9126 * m68k-tdep.c (isi_frame_num_args): Update.
9127 (delta68_frame_num_args): Update.
9128 (news_frame_num_args): Update.
9129 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9130 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9131 (alpha_frame_chain): Update.
9132 (alpha_pop_frame): Update.
9133 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9134 (hppa_init_extra_frame_info): Update.
9135 (hppa_frame_chain): Update.
9136 (hppa_frame_chain_valid): Update.
9137 * cris-tdep.c (cris_init_extra_frame_info): Update.
9138 * avr-tdep.c (avr_init_extra_frame_info): Update.
9139 * arm-tdep.c (arm_frame_chain_valid): Update.
9140 (arm_init_extra_frame_info): Update.
9141 (arm_pop_frame): Update.
9142 * frame.c (frame_pc_unwind): Update.
9143 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9144 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9145 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9146 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9147 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9148 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9150 2003-03-12 Andrew Cagney <cagney@redhat.com>
9152 Eliminate the need for POP_FRAME.
9153 * frame.c (do_frame_unwind_register): New function.
9154 (frame_pop): When no POP_FRAME, pop the frame using register
9155 unwind and a scratch regcache.
9156 (frame_saved_regs_pop): Delete function.
9157 (trad_frame_unwinder): Update.
9158 * d10v-tdep.c (d10v_frame_pop): Delete function.
9159 (d10v_frame_unwind): Update.
9160 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9161 (sentinel_frame_unwinder): Update.
9162 * dummy-frame.c (dummy_frame_pop): Delete function.
9163 (dummy_frame_unwind): Update.
9164 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9165 (struct frame_unwind): Update.
9167 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9169 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9170 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9171 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9172 Do range checks on register number obtained from debugging info.
9173 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9174 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9175 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9177 (do_fp_register_row): Fix typo which caused double type to be
9178 used when attempting to unpack a float.
9180 2003-03-11 J. Brobecker <brobecker@gnat.com>
9182 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9184 2003-03-11 Andrew Cagney <cagney@redhat.com>
9186 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9187 frame. Problem found by Corinna Vinschen.
9189 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9191 * doublest.c (floatformat_from_length): Accept also
9192 the real size of 'long double' type.
9194 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9196 From Klee Dienes <kdienes@apple.com>:
9197 * breakpoint.c (bpstat_copy): Copy the command lines as well
9198 as the old value, to match what is freed in bpstat_clear.
9200 2003-03-10 David Carlton <carlton@math.stanford.edu>
9202 * minsyms.c (add_minsym_to_hash_table): Replace
9203 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9204 (compare_minimal_symbols, compact_minimal_symbols)
9205 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9206 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9207 of DEPRECATED_SYMBOL_MATCHES_NAME.
9208 (lookup_minimal_symbol_solib_trampoline): Ditto.
9210 2003-03-10 Andrew Cagney <cagney@redhat.com>
9212 * regcache.h (regcache_cooked_read_ftype): Define.
9213 (regcache_save, regcache_restore): Add a cooked_read parameter.
9214 * regcache.c (regcache_save, regcache_restore): Update.
9215 (do_cooked_read): New function.
9216 (regcache_cpy): Pass do_cooked_read to regcache_save and
9219 2003-03-10 Andrew Cagney <cagney@redhat.com>
9221 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9222 * gdbarch.h, gdbarch.c: Re-generate.
9223 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9224 * x86-64-tdep.h: Update.
9225 * x86-64-tdep.c (x86_64_init_abi): Update.
9226 * v850-tdep.c (v850_gdbarch_init): Update.
9227 * sparc-tdep.c (sparc_gdbarch_init): Update.
9228 * sh-tdep.c (sh_gdbarch_init): Update.
9229 * s390-tdep.c (s390_gdbarch_init): Update.
9230 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9231 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9232 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9233 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9234 * mips-tdep.c (mips_gdbarch_init): Update.
9235 * mcore-tdep.c (mcore_gdbarch_init): Update.
9236 * m68k-tdep.c (m68k_gdbarch_init): Update.
9237 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9238 * ia64-tdep.c (ia64_gdbarch_init): Update.
9239 * i386-tdep.c (i386_gdbarch_init): Update.
9240 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9241 * hppa-tdep.c (hppa_gdbarch_init): Update.
9242 * h8300-tdep.c (h8300_gdbarch_init): Update.
9243 * frv-tdep.c (frv_gdbarch_init): Update.
9244 * cris-tdep.c (cris_gdbarch_init): Update.
9245 * avr-tdep.c (avr_gdbarch_init): Update.
9246 * arm-tdep.c (arm_gdbarch_init): Update.
9247 * alpha-tdep.c (alpha_gdbarch_init): Update.
9248 * sh-tdep.c (sh_init_extra_frame_info): Update.
9249 (sh64_init_extra_frame_info): Update.
9250 * ns32knbsd-nat.c (frame_num_args): Update.
9251 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9252 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9253 (xstormy16_frame_chain_valid): Update.
9254 * vax-tdep.c (vax_saved_pc_after_call): Update.
9255 * v850-tdep.c (v850_frame_chain): Update.
9256 (v850_pop_frame): Update.
9257 (v850_init_extra_frame_info): Update.
9258 * sparc-tdep.c (setup_arbitrary_frame): Update.
9259 * ns32k-tdep.c (umax_frame_num_args): Update.
9260 * s390-tdep.c (s390_pop_frame_regular): Update.
9261 * mn10300-tdep.c (mn10300_frame_chain): Update.
9262 (mn10300_pop_frame_regular): Update.
9263 (mn10300_init_extra_frame_info): Update.
9264 * mips-tdep.c (mips_init_frame_pc_first): Update.
9265 (mips_frame_chain): Update.
9266 (mips_pop_frame): Update.
9267 * mcore-tdep.c (mcore_frame_chain): Update.
9268 (mcore_pop_frame): Update.
9269 (mcore_init_extra_frame_info): Update.
9270 * arch-utils.c (init_frame_pc_default): Update.
9271 * m68k-tdep.c (isi_frame_num_args): Update.
9272 (delta68_frame_num_args): Update.
9273 (news_frame_num_args): Update.
9274 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9275 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9276 (alpha_frame_chain): Update.
9277 (alpha_pop_frame): Update.
9278 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9279 (hppa_init_extra_frame_info): Update.
9280 (hppa_frame_chain): Update.
9281 (hppa_frame_chain_valid): Update.
9282 * cris-tdep.c (cris_init_extra_frame_info): Update.
9283 * avr-tdep.c (avr_init_extra_frame_info): Update.
9284 * arm-tdep.c (arm_frame_chain_valid): Update.
9285 (arm_init_extra_frame_info): Update.
9286 (arm_pop_frame): Update.
9287 * frame.c (frame_pc_unwind): Update.
9288 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9289 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9290 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9291 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9292 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9293 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9295 2003-03-10 Andrew Cagney <cagney@redhat.com>
9297 * gdbarch.sh (gdbarch_unwind_pc): New method.
9298 * gdbarch.h, gdbarch.c: Regenerate.
9299 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9300 but use read_pc and FRAME_SAVED_PC as fall backs.
9301 (frame_saved_regs_pc_unwind): Delete function.
9302 (trad_frame_unwinder): Update.
9303 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9304 (struct frame_unwind): Update.
9305 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9306 (dummy_frame_unwind): Update.
9307 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9308 (sentinel_frame_unwinder): Update.
9309 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9310 (d10v_frame_unwind): Update.
9311 (d10v_unwind_pc): New function.
9312 (d10v_gdbarch_init): Set unwind_pc.
9314 2003-03-10 Andrew Cagney <cagney@redhat.com>
9316 * gdbarch.h: Re-generate.
9318 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9320 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9323 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9325 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9327 2003-03-08 Andrew Cagney <cagney@redhat.com>
9329 * cli-out.c: Update copyright.
9330 (cli_out_data): Define typedef. Use instead of ui_out_data.
9332 2003-03-08 Andrew Cagney <cagney@redhat.com>
9334 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9337 2003-03-07 Andrew Cagney <cagney@redhat.com>
9339 * gdbarch.sh: Don't generate two macro definitions when an
9340 undefined macro taking no arguments.
9341 * gdbarch.h: Regenerate.
9343 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9345 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9346 (x86_64_unwind_dummy_id): New functions.
9347 (x86_64_init_abi): Register these two new functions.
9349 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9351 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9352 (x86_64_skip_prologue): Move prologue detection to
9354 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9356 2003-03-05 Andrew Cagney <cagney@redhat.com>
9358 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9359 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9360 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9361 to use unwind_dummy_id when a dummy frame.
9362 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9364 * gdbarch.h, gdbarch.c: Regneerate.
9366 2003-03-05 Andrew Cagney <cagney@redhat.com>
9368 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9369 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9370 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9373 2003-03-05 Andrew Cagney <cagney@redhat.com>
9375 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9376 (struct d10v_unwind_cache): Delete field "frameless". Replace
9377 "next_addr" with "sp_offset". Add "r11_offset".
9378 (d10v_frame_unwind_cache): Update.
9379 (prologue_find_regs): Update. When "mv r11, sp", save the
9380 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9381 RN was saved in r11_offset.
9383 2003-03-05 Andrew Cagney <cagney@redhat.com>
9385 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9386 cached PC value in the next frame.
9388 2003-03-05 Andrew Cagney <cagney@redhat.com>
9390 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9391 "id_unwind_cache" with "id".
9392 (frame_id_unwind): Delete declaration.
9393 * frame.c (frame_id_unwind): Delete function.
9394 (get_prev_frame): Call the frame id unwind method directly. Store
9395 the returned next frame's ID value in NEXT_FRAME. Note that there
9396 is a problem with the wrong unwind ID being called with the wrong
9399 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9401 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9403 2003-03-05 James Ingham <jingham@apple.com>
9404 Daniel Jacobowitz <drow@mvista.com>
9406 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9407 (auto_cp_abi): New variable.
9408 (current_cp_abi, num_cp_abis): Make static.
9409 (CP_ABI_MAX): Define.
9410 (cp_abis): Turn into an array.
9411 (value_virtual_fn_field): Fix formatting.
9412 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9414 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9415 (list_cp_abis, _initialize_cp_abi): New functions.
9416 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9417 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9418 switch_to_cp_abi. Update prototype for register_cp_abi.
9419 * Makefile.in (cp-abi.o): Update dependencies.
9420 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9421 instead of switch_to_cp_abi.
9422 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9424 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9426 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9428 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9430 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9431 * dwarf2loc.c: Include "regcache.h".
9432 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9434 * Makefile.in (dwarf2loc.o): Update dependencies.
9436 2003-03-04 Theodore A. Roth <troth@openavr.org>
9438 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9439 number of io registers reported by remote target is not a multiple of
9442 2003-03-04 David Carlton <carlton@math.stanford.edu>
9444 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9445 (lookup_symbol_aux_psymtabs): Update call to
9446 lookup_partial_symbol.
9447 (lookup_transparent_type, find_main_psymtab)
9448 (make_symbol_overload_list): Ditto.
9450 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9452 * MAINTAINERS (Write after approval): Update my email address.
9454 2003-03-03 Andrew Cagney <cagney@redhat.com>
9456 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9457 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9458 predicate. Replace MAX_REGISTER_RAW_SIZE.
9459 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9460 MAX_REGISTER_VIRTUAL_SIZE.
9461 * regcache.c (legacy_max_register_raw_size): New function.
9462 (legacy_max_register_virtual_size): New function.
9463 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9464 (MAX_REGISTER_RAW_SIZE): Define.
9465 (legacy_max_register_raw_size): Declare.
9466 (legacy_max_register_virtual_size): Declare.
9467 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9468 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9469 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9470 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9471 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9472 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9473 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9474 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9475 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9476 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9477 * vax-tdep.c (vax_gdbarch_init): Update.
9478 * v850-tdep.c (v850_gdbarch_init): Update.
9479 * sparc-tdep.c (sparc_gdbarch_init): Update.
9480 * sh-tdep.c (sh_gdbarch_init): Update.
9481 * s390-tdep.c (s390_gdbarch_init): Update.
9482 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9483 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9484 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9485 * mips-tdep.c (mips_gdbarch_init): Update.
9486 * mcore-tdep.c (mcore_gdbarch_init): Update.
9487 * m68k-tdep.c (m68k_gdbarch_init): Update.
9488 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9489 * ia64-tdep.c (ia64_gdbarch_init): Update.
9490 * i386-tdep.c (i386_gdbarch_init): Update.
9491 * hppa-tdep.c (hppa_gdbarch_init): Update.
9492 * h8300-tdep.c (h8300_gdbarch_init): Update.
9493 * frv-tdep.c (frv_gdbarch_init): Update.
9494 * cris-tdep.c (cris_gdbarch_init): Update.
9495 * avr-tdep.c (avr_gdbarch_init): Update.
9496 * arm-tdep.c (arm_gdbarch_init): Update.
9497 * alpha-tdep.c (alpha_gdbarch_init): Update.
9498 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9499 max_register_raw_size or max_register_virtual_size.
9501 2003-03-03 David Carlton <carlton@math.stanford.edu>
9503 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9504 SYMBOL_MATCHES_NAME, add comment.
9505 (SYMBOL_MATCHES_NATURAL_NAME): New.
9506 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9507 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9508 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9509 * symtab.c (lookup_partial_symbol): Use
9510 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9512 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9513 SYMBOL_MATCHES_NAME.
9516 2003-03-03 David Carlton <carlton@math.stanford.edu>
9518 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9519 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9520 by regexp matching against SYMBOL_NATURAL_NAME.
9522 2003-03-03 David Carlton <carlton@math.stanford.edu>
9524 * linespec.c (find_method): Extract code into collect_methods.
9525 (collect_methods): New.
9527 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9529 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9532 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9533 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9535 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9537 * arch-utils.c (generic_register_byte): Fix to use the loop index
9538 and not regnum when summing the size of all registers up to regnum.
9540 2003-03-01 Andrew Cagney <cagney@redhat.com>
9542 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9543 FRAME_INIT_SAVED_REGS.
9544 * gdbarch.h, gdbarch.c: Regenerate.
9545 * stack.c (frame_info): Update.
9546 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9547 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9548 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9549 * ns32k-tdep.c (ns32k_pop_frame): Update.
9550 * mips-tdep.c (mips_pop_frame): Update.
9551 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9552 * ia64-tdep.c (ia64_frame_chain): Update.
9553 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9554 (ia64_frameless_function_invocation): Update.
9555 (ia64_init_extra_frame_info): Update.
9556 (ia64_pop_frame_regular): Update.
9557 * frame.h (struct frame_info): Update comment.
9558 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9559 * frame.c (frame_saved_regs_register_unwind): Update.
9560 (frame_saved_regs_register_unwind): Update.
9561 (deprecated_generic_get_saved_register): Update.
9562 * cris-tdep.c: Update comment.
9563 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9565 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9566 * x86-64-tdep.c (x86_64_init_abi): Update.
9567 * vax-tdep.c (vax_gdbarch_init): Update.
9568 * v850-tdep.c (v850_gdbarch_init): Update.
9569 * sparc-tdep.c (sparc_gdbarch_init): Update.
9570 * sh-tdep.c (sh_gdbarch_init): Update.
9571 * s390-tdep.c (s390_gdbarch_init): Update.
9572 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9573 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9574 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9575 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9576 * mips-tdep.c (mips_gdbarch_init): Update.
9577 * mcore-tdep.c (mcore_gdbarch_init): Update.
9578 * m68k-tdep.c (m68k_gdbarch_init): Update.
9579 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9580 * ia64-tdep.c (ia64_gdbarch_init): Update.
9581 * i386-tdep.c (i386_gdbarch_init): Update.
9582 * frv-tdep.c (frv_gdbarch_init): Update.
9583 * avr-tdep.c (avr_gdbarch_init): Update.
9584 * arm-tdep.c (arm_gdbarch_init): Update.
9585 * alpha-tdep.c (alpha_gdbarch_init): Update.
9587 2003-03-01 Andrew Cagney <cagney@redhat.com>
9589 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9590 option enum and switch. When no windows, set the interpreter to
9593 2003-03-01 Andrew Cagney <cagney@redhat.com>
9595 * main.c (captured_main): Replace magic option characters with an
9598 2003-03-01 Andrew Cagney <cagney@redhat.com>
9600 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9601 INIT_EXTRA_FRAME_INFO.
9602 * gdbarch.h, gdbarch.c: Regenerate.
9603 * arm-tdep.c: Update comments.
9604 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9605 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9606 * frame.h, avr-tdep.c: Ditto.
9607 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9608 (create_new_frame, legacy_get_prev_frame): Ditto.
9609 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9610 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9611 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9612 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9613 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9614 * v850-tdep.c (v850_gdbarch_init): Ditto.
9615 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9616 * sh-tdep.c (sh_gdbarch_init): Ditto.
9617 * s390-tdep.c (s390_gdbarch_init): Ditto.
9618 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9619 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9620 * mips-tdep.c (mips_gdbarch_init): Ditto.
9621 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9622 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9623 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9624 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9625 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9626 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9627 * frv-tdep.c (frv_gdbarch_init): Ditto.
9628 * cris-tdep.c (cris_gdbarch_init): Ditto.
9629 * avr-tdep.c (avr_gdbarch_init): Ditto.
9630 * arm-tdep.c (arm_gdbarch_init): Ditto.
9631 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9632 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9634 2003-03-01 Andrew Cagney <cagney@redhat.com>
9636 * gdbarch.sh (register_type): New function with predicate.
9637 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9638 * gdbarch.h, gdbarch.c: Re-generate.
9639 * arch-utils.c (generic_register_byte): Use generic_register_size.
9640 (generic_register_size): When available, use
9641 gdbarch_register_type.
9642 * regcache.c (init_regcache_descr): When available, initialize the
9643 register type array using gdbarch_register_type. If the
9644 architecture supplies gdbarch_register_type, do not use the legacy
9646 * d10v-tdep.c (d10v_register_type): Replace
9647 d10v_register_virtual_type.
9648 (d10v_gdbarch_init): Set register_type instead of
9649 register_virtual_type.
9651 2003-03-01 Andrew Cagney <cagney@redhat.com>
9653 * Makefile.in (ax-gdb.o): Update dependencies.
9654 * ax-gdb.c: Include "regcache.h".
9655 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9656 * findvar.c (value_of_register): Ditto.
9657 * infcmd.c (default_print_registers_info): Ditto.
9659 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9661 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9662 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9664 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9666 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9669 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9671 * Makefile.in (dwarf2loc.o): Update dependencies.
9672 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9673 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9674 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9675 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9676 (locexpr_tracepoint_var_ref): New function.
9677 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9679 2003-02-28 Andrew Cagney <cagney@redhat.com>
9681 * regcache.c (register_size): New function.
9682 * regcache.h (register_size): Declare
9683 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9684 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9686 2003-02-28 David Carlton <carlton@math.stanford.edu>
9688 * linespec.c (decode_compound): Extract code into find_method.
9691 2003-02-28 J. Brobecker <brobecker@gnat.com>
9693 * Makefile.in: Add rules to build and link in observer.o.
9695 2003-02-27 J. Brobecker <brobecker@gnat.com>
9697 * observer.c: Minor comments edits.
9699 2003-02-27 J. Brobecker <brobecker@gnat.com>
9701 * observer.h, observer.c: New file.
9703 2003-02-27 Andrew Cagney <cagney@redhat.com>
9705 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9707 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9709 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9710 (M6812_OP_STS_EXT): Likewise.
9711 (m6811_prologue): Use the above to recognize prologue.
9712 (m6812_prologue): Likewise.
9714 2003-02-27 David Carlton <carlton@math.stanford.edu>
9716 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9718 (compare_psymbols): Ditto.
9719 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9721 2003-02-27 Michael Snyder <msnyder@redhat.com>
9723 * f-lang.c (build_fortran_types): New function.
9724 (_initialize_f_language): Gdbarch-register built-in fortran types.
9725 * doublest.c (extract_floating): Fix warning text.
9727 2003-02-27 Andrew Cagney <cagney@redhat.com>
9729 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9730 predicate. Replaces PUSH_DUMMY_FRAME.
9731 * gdbarch.h, gdbarch.c: Regnerate.
9732 * valops.c (hand_function_call): Update. Call
9733 generic_push_dummy_frame directly.
9734 * vax-tdep.c (vax_gdbarch_init): Update.
9735 * sparc-tdep.c (sparc_gdbarch_init): Update.
9736 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9737 * m68k-tdep.c (m68k_gdbarch_init): Update.
9738 * hppa-tdep.c (hppa_gdbarch_init): Update.
9739 * alpha-tdep.c (alpha_gdbarch_init): Update.
9740 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9741 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9742 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9743 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9744 push_dummy_frame to generic_push_dummy_frame.
9745 * v850-tdep.c (v850_gdbarch_init): Ditto.
9746 * sh-tdep.c (sh_gdbarch_init): Ditto.
9747 * s390-tdep.c (s390_gdbarch_init): Ditto.
9748 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9749 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9750 * mips-tdep.c (mips_gdbarch_init): Ditto.
9751 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9752 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9753 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9754 * i386-tdep.c (i386_gdbarch_init): Ditto.
9755 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9756 * frv-tdep.c (frv_gdbarch_init): Ditto.
9757 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9758 * cris-tdep.c (cris_gdbarch_init): Ditto.
9759 * avr-tdep.c (avr_gdbarch_init): Ditto.
9760 * arm-tdep.c (arm_gdbarch_init): Ditto.
9762 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9764 * mips-tdep.c (show_mips_abi): New function.
9765 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9766 command ``show mips abi''.
9768 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9770 From Elena Zannoni <ezannoni@redhat.com>
9771 * dbxread.c (process_one_symbol): Only record line 0 if one or
9772 more sline entries have been seen for the function.
9774 2003-02-26 Michael Chastain <mec@shout.net>
9776 * configure: Regenerate with autoconf 000227.
9778 2003-02-26 Michael Chastain <mec@shout.net>
9781 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9782 for old libc5/glibc.
9783 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9785 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9787 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9788 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9790 2003-02-26 Michael Chastain <mec@shout.net>
9792 * configure.in: New variable HAVE_UINTPTR_T.
9793 * configure, config.in: Regenerated.
9795 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9798 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9800 2003-02-25 Andrew Cagney <cagney@redhat.com>
9802 * frame.c (get_prev_frame): Add comment on check for
9803 inside_entry_func. Only check for inside_entry_file when not a
9804 dummy and not a sentinel. Check that the new frame is not inner
9807 2003-02-25 Andrew Cagney <cagney@redhat.com>
9809 * frame.c (frame_debug): New variable.
9810 (_initialize_frame): Add "set/show debug frame" command.
9811 (get_prev_frame): When frame_debug, print reason why unwind
9814 2003-02-25 Michael Chastain <mec@shout.net>
9816 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9817 to avoid uintptr_t definition problems.
9819 2003-02-25 David Carlton <carlton@math.stanford.edu>
9821 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9822 (SYMBOL_LINKAGE_NAME): Ditto.
9823 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9824 SYMBOL_LINKAGE_NAME.
9825 (struct general_symbol_info): Expand comment.
9826 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9827 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9828 (SYMBOL_MATCHES_REGEXP): Ditto.
9829 * symtab.c (symbol_natural_name): New function.
9830 * objfiles.h: Replace all uses of SYMBOL_NAME by
9831 DEPRECATED_SYMBOL_NAME.
9832 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9833 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9834 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9835 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9836 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9837 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9838 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9839 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9840 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9841 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9843 * ada-exp.y: Update copyright.
9844 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9845 * cp-valprint.c: Ditto.
9847 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9849 * infptrace.c (detach): Do not flag error if ptrace detach fails
9850 and errno is set to ESRCH.
9852 2003-02-24 Andrew Cagney <cagney@redhat.com>
9854 * infptrace.c (udot_info): Change type of udot_off to long. Use
9855 paddr when printing udot_off's value.
9857 2003-02-24 David Carlton <carlton@math.stanford.edu>
9859 * symtab.c (make_symbol_overload_list): Only read in partial
9860 symtabs containing a matching partial symbol.
9862 2003-02-24 David Carlton <carlton@math.stanford.edu>
9864 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9865 do the comparison, not strcmp.
9866 * symfile.c (compare_psymbols): Ditto.
9867 * defs.h: Declare strcmp_iw_ordered.
9868 * utils.c (strcmp_iw_ordered): New function.
9870 2003-02-24 Jim Blandy <jimb@redhat.com>
9872 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9873 support, shared libs): Remove my name from here, to better reflect
9876 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9878 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9879 (target_ops): Add to_have_continuable_watchpoint.
9880 * target.c (update_current_target): Add INHERIT line for
9881 to_have_continuable_watchpoint.
9882 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9883 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9884 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9885 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9887 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9889 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9892 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9894 * solib.c (solib_open): Call target defined search function after
9895 failing with solib-search-path.
9896 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9897 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9899 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9901 * MAINTAINERS: Add myself to Write After section.
9903 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9905 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9907 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9909 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9910 (m68hc11_add_reggroups): New function.
9911 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9912 (m68hc11_gdbarch_init): Install the reggroups.
9913 (_initialize_m68hc11_tdep): Initialize them.
9915 2003-02-21 James E Wilson <wilson@tuliptree.org>
9917 * MAINTAINERS: Update my email address.
9919 2003-02-21 David Carlton <carlton@math.stanford.edu>
9921 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9923 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9925 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9926 * symtab.h: Add opaque declarations of struct axs_value and
9928 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9929 (struct location_funcs): New type.
9930 (struct symbol): Add "loc" to aux_value.
9931 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9932 * dwarf2read.c: Include "dwarf2expr.h".
9933 (dwarf2_symbol_mark_computed): New function.
9934 (read_func_scope): Use it.
9935 (var_decode_location): New function.
9936 (new_symbol): Use it.
9937 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9939 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9940 (dwarf2expr_h, dwarf2loc_h): New variables.
9941 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9942 (dwarf2expr.o, dwarf2loc.o): New rules.
9943 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9944 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9946 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9947 * m2-exp.y (yylex): Likewise.
9948 * printcmd.c (address_info, print_frame_args): Likewise.
9949 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9950 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9951 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9952 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9953 * symtab.c (lookup_block_symbol): Likewise.
9955 2003-02-20 Adam Fedor <fedor@gnu.org>
9957 * symtab.h: Remove objc_specific struct
9958 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9959 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9960 Have language_objc use cplus_specific struct.
9962 2003-02-20 Tom Tromey <tromey@redhat.com>
9964 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9965 TYPE_NAME, when printing a String value. PR java/1075.
9967 2003-02-20 Adam Fedor <fedor@gnu.org>
9969 * objc-lang.h (find_methods): Remove declaration.
9970 * objc-lang.c (find_methods): Make static.
9972 2003-02-20 Christopher Faylor <cgf@redhat.com>
9974 * win32-nat.c (get_image_name): Check return value from
9976 (child_xfer_memory): Ditto.
9978 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9980 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9981 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9982 '${exec_prefix}' (in addition to the expansion thereof) as
9984 * configure: Rebuilt.
9986 2003-02-20 David Carlton <carlton@math.stanford.edu>
9988 * symtab.c (search_symbols): Revert the search_symbols part of my
9989 2002-12-23 patch. Add comment.
9991 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9993 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9994 * dbxread.c (elfstab_build_psymtabs): Don't call
9995 install_minimal_symbols.
9996 (stabsect_build_psymtabs): Likewise.
9997 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9999 * somread.c (som_symfile_read): Call install_minimal_symbols
10000 and do_cleanups earlier.
10001 * nlmread.c (nlm_symfile_read): Likewise.
10002 * mdebugread.c (elfmdebug_build_psymtabs): Call
10003 install_minimal_symbols and make appropriate cleanups.
10005 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10007 * solib.c (reload_shared_libraries): New function.
10008 (_initialize_solib): Add callbacks for ``set solib-search-path''
10009 and ``set solib-absolute-prefix''.
10011 2003-02-20 David Carlton <carlton@math.stanford.edu>
10013 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10015 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10016 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10017 * ada-typeprint.c (ada_typedef_print): Ditto.
10018 * ax-gdb.c (gen_var_ref): Ditto.
10019 * breakpoint.c (print_one_breakpoint): Ditto.
10020 * buildsym.c (finish_block): Ditto.
10021 * c-valprint.c (c_val_print): Ditto.
10022 * expprint.c (print_subexp): Ditto.
10023 * findvar.c (locate_var_value): Ditto.
10024 * infcmd.c (jump_command): Ditto.
10025 * linespec.c (decode_line_2, decode_compound): Ditto.
10026 * maint.c (maintenance_translate_address): Ditto.
10027 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10028 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10030 * p-valprint.c (pascal_val_print): Ditto.
10031 * stabsread.c (define_symbol): Ditto.
10032 * stack.c (print_frame, frame_info, print_block_frame_locals)
10033 (print_frame_arg_vars, return_command): Ditto.
10034 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10035 * symmisc.c (print_symbol): Ditto.
10036 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10037 (compare_search_syms, print_symbol_info, print_msymbol_info)
10038 (rbreak_command): Ditto.
10039 * tracepoint.c (tracepoints_info): Ditto.
10040 * typeprint.c (typedef_print): Ditto.
10041 * valops.c (value_of_variable, hand_function_call): Ditto.
10042 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10043 * ada-typeprint.c: Update Copyright.
10044 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10045 * tracepoint.c, cli/cli-cmds.c: Ditto.
10047 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10049 * frame.c (generic_unwind_get_saved_register): Make non-static.
10050 * frame.h (generic_unwind_get_saved_register): Declare.
10051 * mips-tdep.c (read_next_frame_reg): Fetch register from
10052 current regcache when frame is NULL.
10053 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10055 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10056 instead of frame_register_unwind().
10058 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10060 * remote-sim.c (gdbsim_insert_breakpoint)
10061 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10064 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10066 * remote.c (_initialize_remote): Add commands "set/show remote
10067 hardware-watchpoint-limit" and "set/show remote
10068 hardware-breakpoint-limit".
10069 (remote_hw_watchpoint_limit): Initialize to -1.
10070 (remote_hw_breakpoint_limit): Ditto.
10071 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10073 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10075 * coff-pe-read.c: New file - support reading of minimal symbols from a
10076 portable executable using the export table.
10077 * coff-pe-read.h: New file.
10078 * coffread.c: Include coff-pe-read.h.
10079 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10080 debugging symbols found.
10081 * Makefile.in (SFILES): Add coff-pe-read.o.
10082 (coff_pe_read_h): Define.
10083 (COMMON_OBS): Add coff-pe-read.o.
10084 (coffread.o): Add coff_pe_read_h dependency.
10085 (coff-pe-read.o): New target.
10087 2003-02-19 David Carlton <carlton@math.stanford.edu>
10089 * Makefile.in (SFILES): Add block.c.
10091 (COMMON_OBS): Add block.o.
10093 (x86-64-tdep.o): Add $(block_h).
10094 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10095 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10096 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10097 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10098 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10099 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10100 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10101 * value.h: Add opaque declaration for struct block.
10102 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10103 * ada-lang.h: Ditto.
10104 * x86-64-tdep.c: #include "block.h"
10105 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10106 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10107 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10108 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10109 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10110 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10111 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10112 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10113 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10114 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10115 * symtab.c (block_function): Ditto.
10116 (contained_in): Ditto.
10117 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10118 block.h. Add opaque declaration for struct block.
10119 * symtab.h: Move block_function and contained_in declarations to
10120 block.h. Add opaque declarations for struct block, struct
10122 (struct block): Move to block.h.
10123 (struct blockvector): Ditto.
10124 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10125 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10126 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10127 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10128 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10130 * block.c: New file.
10131 * block.h: New file.
10133 2003-02-19 Theodore A. Roth <troth@openavr.org>
10135 * avr-tdep.c (avr_extract_return_value): Remove function.
10136 (avr_store_return_value): Remove function.
10137 (avr_extract_struct_value_address): Remove function.
10138 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10140 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10142 * rs6000-tdep.c: Include "gdb_assert.h".
10143 (registers_e500): Add "acc" and "spefscr".
10144 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10145 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10146 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10148 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10150 2003-02-18 Keith Seitz <keiths@redhat.com>
10152 * Makefile.in: Add gdbtk-interps.c.
10154 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10156 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10157 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10159 2003-02-18 Andrew Cagney <cagney@redhat.com>
10161 * symtab.h (struct objfile): Add opaque declaration.
10163 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10165 From Jim Ingham <jingham@apple.com>:
10166 * dbxread.c (process_one_symbol): Use last_function_start rather
10167 than function_start_offset to find the real beginning of the
10168 current function. The latter is just the text section offset on
10169 some systems, the former is always the real function start.
10171 2003-02-17 Andrew Cagney <cagney@redhat.com>
10173 * configure.in: Revert ${target} != ${host}.
10175 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10177 * configure.in (Makefile): Use the test ${target} != ${host},
10178 instead of the absence of the "nm.h" file, to determine of the
10179 configuration non-native.
10180 * configure: Regenerate.
10182 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10184 From Brian Ford <ford@vss.fsi.com>
10186 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10187 conditionalize tui_active test.
10188 (lookup_cmd_1): Ditto.
10190 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10192 * configure.in: Add check for _etext.
10193 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10195 * config.in, configure: regenerated.
10197 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10199 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10201 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10203 * main.c (tui_version): Delete variable.
10204 (captured_main): When --tui, set interpreter_p to "tui" instead of
10205 enabling tui_version.
10206 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10208 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10209 * cli/cli-cmds.c (disassemble_command): Ditto.
10210 * defs.h (tui_version): Delete declaration.
10211 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10212 (tui-interp.o): Add rules.
10213 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10215 2003-02-14 Christopher Faylor <cgf@redhat.com>
10217 * win32-nat.c (register_loaded_dll): Correctly set address range for
10220 2003-02-12 Jason Molenda (jmolenda@apple.com)
10222 * symmisc.c (print_objfile_statistics): Include information about
10223 the number of psymtabs and symtabs in each object file.
10225 2003-02-13 Keith R Seitz <keiths@redhat.com>
10227 * main.h (struct captured_main_args): Add interpreter_p.
10228 * main.c (captured_main): Initialize interpreter_p from context.
10229 * gdb.c (main): Set interpreter_p argument.
10230 * Makefile.in (gdb.o): Add dependency for interps.h.
10232 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10234 * event-top.c (cli_command_loop): Delete declaration.
10235 (_initialize_event_loop): Delete function setting event_loop_hook.
10236 * event-top.h (cli_command_loop): Declare. Update copyright.
10237 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10238 * interps.c (current_interp_command_loop): When event_loop_p, call
10241 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10243 * interps.h (interp_command_loop_ftype): Change return type to
10246 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10248 * x86-64-tdep.c (x86_64_extract_return_value)
10249 (x86_64_store_return_value): Use regcache instead of regbuf.
10250 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10251 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10253 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10255 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10256 * aclocal.m4: Regenerate.
10257 * configure: Regenerate.
10259 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10260 TCL_LD_SEARCH_FLAGS.
10262 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10264 * dwarf2cfi.c: Reindented.
10266 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10268 * interps.c (clear_interpreter_hooks): Convert function definition
10271 2003-02-07 David Carlton <carlton@math.stanford.edu>
10273 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10275 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10277 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10278 (struct type): ...to here.
10279 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10281 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10282 (replace_type): Set length on all type variants for a given type.
10284 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10286 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10288 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10290 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10292 * Makefile.in (symm-nat.o): Update dependencies.
10293 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10294 (lynx-nat.o, ia64-linux-nat.): Ditto.
10295 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10296 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10297 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10299 * Makefile.in (inflow_h): Define.
10300 (procfs.o, inflow.o, procfs.o): Update dependencies.
10301 * inftarg.c (child_stop): Delete extern declaration of
10302 inferior_process_group. Include "inflow.h".
10303 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10304 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10305 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10306 (our_process_group, inferior_process_group): Extern declarations.
10308 * procfs.c: Include "gdb_assert.h".
10310 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10311 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10312 * jv-typeprint.c (java_type_print_base): Ditto.
10313 * typeprint.c (typedef_print): Eliminate STREQ.
10314 * cli/cli-script.c (define_command, define_command): Ditto.
10315 * main.c (captured_main): Ditto.
10316 * values.c (lookup_internalvar): Ditto.
10317 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10318 within `if' conditional.
10319 * linespec.c (decode_line_2): Ditto.
10320 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10321 (bfd_openw_with_cleanup): Ditto.
10323 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10325 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10326 legacy_extract_return_value and store_return_value to
10327 legacy_return_value.
10329 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10331 * win32-nat.c (get_relocated_section_addrs): New function. Find
10332 section load addresses for symbol handling in relocated DLLs.
10333 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10335 2003-02-05 Fred Fish <fnf@intrinsity.com>
10337 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10339 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10341 (angel_RDI_info): Ditto.
10342 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10344 (threads_continue_all_with_signals): Ditto.
10346 2003-02-05 Jim Ingham <jingham@apple.com>
10347 Keith Seitz <keiths@redhat.com>
10348 Elena Zannoni <ezannoni@redhat.com>
10349 Andrew Cagney <ac131313@redhat.com>
10351 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10352 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10353 (SUBDIR_MI_OBS): Add "mi-interp.o".
10354 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10355 (SFILES): Add "interps.c".
10356 (COMMON_OBS): Add "interps.o".
10357 (interps_h, mi_main_h): Define.
10358 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10359 (mi-main.o, main.o, event-top.o): Update dependencies.
10360 * cli/cli-interp.c: New file.
10361 * interps.h, interps.c: New files.
10362 * top.c: (gdb_init): Don't install the default interpreter, handed
10364 * main.c: Include "interps.h".
10365 (interpreter_p): Note that it should malloc'ed.
10366 (captured_command_loop): Call current_interp_command_loop.
10367 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10368 xfree and xstrdup when updating interpreter_p. Install the
10369 default interpreter. Add hack to stop mi1's copyright notice
10371 * event-top.h (gdb_setup_readline): Declare.
10372 (gdb_disable_readline): Declare.
10373 * event-top.c: Include "interps.h".
10374 (display_gdb_prompt): Call current_interp_display_prompt_p.
10375 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10376 gdb_stdlog, and gdb_stdtarg.
10377 (_initialize_event_loop): Don't call gdb_setup_readline.
10378 * cli-out.c (cli_out_set_stream): New function.
10379 * cli-out.h (cli_out_set_stream): Declare.
10381 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10383 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10384 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10385 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10386 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10387 config/i386/i386v42mp.mt: Removed.
10389 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10391 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10394 2003-02-05 Michael Chastain <mec@shout.net>
10396 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10397 2.12.1 and earlier versions.
10399 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10401 Remove orphaned hosts, targets and files.
10402 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10403 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10404 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10405 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10406 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10407 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10408 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10409 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10410 * config/sparc/tm-sp64sim.h: Delete.
10411 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10413 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10414 mips*-dec-mach3* targets.
10416 2003-02-04 Michael Chastain <mec@shout.net>
10418 * NEWS: Fix typo: sepcifying -> specifying.
10420 2003-02-04 Michael Chastain <mec@shout.net>
10422 * dwarfread.c: Add documentation on the state of dwarf-1,
10423 looking towards obsoletion.
10425 2003-02-03 Michael Chastain <mec@shout.net>
10427 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10428 gdb/testsuite/gdb.c++/pr-1023.exp.
10430 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10432 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10433 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10435 * utils.c (init_page_info): Delete reference to MPW in comments.
10436 * main.c (captured_main): Delete #ifdef MPW.
10438 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10440 * NEWS: Note that the m32r-*-elf* is obsolete.
10441 * monitor.c (monitor_expect): Obsolete reference to m32r.
10442 * configure.tgt: Mark m32r-*-elf* as obsolete.
10443 * MAINTAINERS: Mark m32k as obsolete.
10444 * m32r-rom.c: Obsolete file.
10445 * config/m32r/m32r.mt: Obsolete file.
10446 * config/m32r/tm-m32r.h: Obsolete file.
10447 * m32r-stub.c: Obsolete file.
10448 * m32r-tdep.c: Obsolete file.
10450 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10452 * NEWS: Mention that the z8k-zilog-none is obsolete.
10453 * MAINTAINERS: Mark z8k as obsolete.
10454 * configure.tgt: Obsolete the z8k-*-coff* target.
10455 * config/z8k/z8k.mt: Obsolete file.
10456 * config/z8k/tm-z8k.h: Obsolete file.
10457 * z8k-tdep.c: Obsolete file.
10459 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10461 * NEWS: Mention that the mn10200-elf is obsolete.
10462 * configure.tgt: Obsolete mn10200-*-* target.
10463 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10464 mention that the mn10200 is obsolete.
10465 * breakpoint.h: Ditto.
10466 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10467 * config/mn10200/mn10200.mt: Obsolete file.
10468 * config/mn10200/tm-mn10200.h: Obsolete file.
10469 * mn10200-tdep.c: Obsolete file.
10471 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10473 * MAINTAINERS: Mark h8500 as obsolete.
10474 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10475 * findvar.c (value_from_register): Ditto.
10476 * h8500-tdep.c: Mark file as obsolete.
10477 * config/h8500/h8500.mt: Ditto.
10478 * config/h8500/tm-h8500.h: Ditto.
10479 * NEWS: Mention that h8500 is obsolete.
10481 2003-02-04 David Carlton <carlton@math.stanford.edu>
10483 * objfiles.c (allocate_objfile): Always set name. Add comment at
10485 * jv-lang.c (get_dynamics_objfile): Add comment.
10487 2003-02-04 David Carlton <carlton@math.stanford.edu>
10489 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10490 * printcmd.c (build_address_symbolic): Replace uses of
10491 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10492 SYMBOL_NAME, and asm_demangle.
10495 2003-02-04 David Carlton <carlton@math.stanford.edu>
10497 * linespec.c (decode_compound): Extract code into
10499 (lookup_prefix_sym): New function.
10501 2003-02-04 David Carlton <carlton@math.stanford.edu>
10503 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10504 FLOAT_COERCION_BADNESS.
10505 * gdbtypes.c (rank_one_type): Replace all uses of
10506 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10508 2003-02-04 Jim Blandy <jimb@redhat.com>
10510 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10511 section, let dwarf_macinfo_section point to it, not
10514 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10516 Pointed out by Anton Blanchard <anton@samba.org>.
10517 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10518 (ppc_linux_at_sigtramp_return_path): Use it.
10520 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10522 * defs.h (streq): Add prototype.
10523 * utils.c (streq): New function.
10525 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10526 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10527 * mdebugread.c (new_symbol): Likewise.
10528 * stabsread.c (define_symbol): Likewise.
10529 * coffread.c (process_coff_symbol): Likewise.
10530 * dwarfread.c (new_symbol): Likewise.
10532 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10533 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10535 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10536 SYMBOL_INIT_DEMANGLED_NAME.
10537 * objfiles.c: Include "hashtab.h".
10538 (allocate_objfile): Call htab_set_functions_ex for the
10539 demangled_names_hash.
10540 (free_objfile): Call htab_delete for the demangled_names_hash.
10541 * objfiles.h (struct htab): Add declaration.
10542 (struct objfile): Add demangled_names_hash.
10543 * symfile.c: Include "hashtab.h".
10544 (reread_symbols): Call htab_delete for the demangled_names_hash.
10545 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10546 SYMBOL_NAME in the bcache.
10547 * symtab.c: Include "hashtab.h". Update comments.
10548 (create_demangled_names_hash, symbol_set_names): New functions.
10549 (symbol_find_demangled_name): New function, broken out from
10550 symbol_init_demangled_names.
10551 (symbol_init_demangled_names): Use it.
10552 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10553 (SYMBOL_SET_NAMES): New macro.
10554 (symbol_set_names): Add prototype.
10556 2003-02-03 Jim Blandy <jimb@redhat.com>
10558 Use a single, consistent representation for an empty minimal
10559 symbol table in an objfile.
10560 * objfiles.c (terminate_minimal_symbol_table): New function.
10561 (allocate_objfile): Call it.
10562 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10563 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10565 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10566 objfile has minimal symbols, compare minimal_symbol_count to zero,
10567 instead of comparing msymbols with NULL.
10568 * objfiles.c (have_minimal_symbols): Same.
10569 * solib-sunos.c (solib_add_common_symbols): Call
10570 terminate_minimal_symbol_table.
10571 * symfile.c (reread_symbols): Same.
10573 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10575 * s390-tdep.c (s390_address_class_type_flags)
10576 (s390_address_class_type_flags_to_name)
10577 (s390_address_class_name_to_type_flags): New functions.
10578 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10579 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10581 2003-02-03 Michael Snyder <msnyder@redhat.com>
10583 * arm-tdep.c: Fix spell-o in comment.
10585 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10587 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10588 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10589 error messages to contain BFD filename.
10591 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10593 Fix PR gdb/742 gdb/743 gdb/877
10594 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10595 (do_mixed_source_and_assembly): Use
10596 make_cleanup_ui_out_tuple_begin_end and
10597 make_cleanup_ui_out_tuple_begin_end.
10598 (do_mixed_source_and_assembly): Ditto.
10599 * thread.c (do_captured_list_thread_ids): Ditto.
10600 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10601 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10602 ui_out_tuple_end): Delete prototypes.
10603 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10604 ui_out_list_end, ui_out_tuple_end): Delete.
10606 From Kevin Buettner <kevinb@redhat.com>:
10607 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10608 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10609 (do_cleanup_table_end): New functions.
10610 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10611 Use cleanups to invoke_ui_out_tuple_end().
10612 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10613 * cli/cli-setshow.c (cmd_show_list): Use
10614 make_cleanup_ui_out_tuple_begin_end.
10616 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10618 * frame.c (frame_unwind_register): New function.
10619 (frame_unwind_unsigned_register): Use.
10620 (frame_unwind_signed_register): Use.
10621 (frame_read_register): New function.
10622 * frame.h (frame_unwind_register): Declare.
10623 (frame_read_register): Declare.
10625 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10626 and frame_unwind_register instead of read_memory, write_register
10627 and deprecated_write_register_bytes.
10629 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10631 * frame.h: Note that namelen can be negative.
10632 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10635 * NEWS: Mention that the d10v's `regs' command is deprecated.
10636 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10637 (d10v_print_registers_info): New function.
10638 (show_regs): Call d10v_print_registers_info.
10639 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10641 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10643 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10644 lost in the previous patch.
10646 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10648 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10649 * stack.c (print_frame_info_base): Output complete FRAME tuple
10650 for synthesized frames.
10652 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10654 * mips-nat.c (zerobuf): Delete.
10655 (fetch_inferior_registers): Alloc local zerobuf.
10656 (fetch_core_registers): Alloc local zerobuf.
10657 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10658 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10659 * thread-db.c (thread_db_store_registers): Ditto.
10660 * sh-tdep.c (sh_do_register): Ditto.
10661 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10662 * remote-sim.c (gdbsim_store_register): Ditto.
10663 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10664 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10665 * monitor.c (monitor_supply_register): Ditto.
10666 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10667 * mips-nat.c (fetch_inferior_registers): Ditto.
10668 * m68klinux-nat.c (fetch_register): Ditto.
10669 * lynx-nat.c (fetch_inferior_registers): Ditto.
10670 (fetch_inferior_registers): Ditto.
10671 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10672 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10673 (hpux_thread_store_registers): Ditto.
10674 * hppah-nat.c (fetch_register): Ditto.
10675 * hppab-nat.c (fetch_register): Ditto.
10676 * hppa-tdep.c (pa_register_look_aside): Ditto.
10677 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10678 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10680 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10682 * gdbarch.sh: Explictly specify all method levels. When a
10683 variable with an empty level, provide a non-multi-arch default.
10684 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10685 * gdbarch.h: Re-generate.
10686 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10687 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10689 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10691 * defs.h (host_pointer_to_address): Delete declaration.
10692 (address_to_host_pointer): Delete declaration.
10693 * utils.c (host_pointer_to_address): Delete function.
10694 (address_to_host_pointer): Delete function.
10695 * procfs.c (procfs_address_to_host_pointer): New function.
10696 * procfs.c (proc_set_watchpoint): Use.
10697 (procfs_can_use_hw_breakpoint): Update comments.
10698 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10699 (som_solib_add): Use.
10700 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10701 * hppa-tdep.c (unwind_command): Use.
10703 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10705 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10708 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10709 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10710 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10711 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10712 (define_symbol): Update.
10713 * symfile.c (generic_load): Remove references to nindy.
10714 * symtab.c: Remove references to nindy.
10716 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10718 * infcmd.c (print_float_info): Delete code conditional on
10720 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10721 * config/m68k/nm-apollo68b.h: Ditto.
10722 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10723 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10724 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10726 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10728 * config/i386/tm-i386os9k.h: Removed.
10730 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10731 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10732 they're identical to i[3456]86-*-sysv* now.
10733 * config/i386/i386v32.mh: Removed.
10734 * config/i386/xm-i386v32.h: Removed.
10735 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10737 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10739 * config/i386/i386dgux.mh: Removed.
10740 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10742 * configure.in: Fix typo.
10743 * configure: Regenerated.
10745 2003-01-31 David Carlton <carlton@math.stanford.edu>
10747 * dwarf2read.c (dwarf2_locate_sections): Set
10748 dwarf_ranges_section.
10750 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10752 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10753 * utils.c: Update comments documenting legitimate uses of PTR.
10755 * utils.c: Re-indent.
10757 * config/djgpp/fnchange.lst: Delete nindy files.
10758 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10759 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10760 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10761 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10762 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10763 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10764 * Makefile.in (init.c): Remove nindy references.
10765 (saber_gdb): Delete rule.
10766 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10767 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10769 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10770 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10771 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10772 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10773 nindy-share/stop.h.
10774 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10775 * saber.suppress: Delete file.
10777 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10779 * dbxread.c (stabs_data): New static variable.
10780 (fill_symbuf): Support an in-memory buffer for stabs data.
10781 (stabs_seek): New function.
10782 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10783 (read_ofile_symtab): Use stabs_seek.
10784 (elfstab_build_psymtabs): Take an asection* instead of
10785 an offset and size. Relocate the stabs data if necessary.
10786 Save the section* for dbx_psymtab_to_symtab.
10787 * dwarf2read.c: Add section variables for each debug section.
10788 (dwarf2_locate_sections): Fill them in.
10789 (dwarf2_read_section): Take an asection* argument.
10790 Relocate the section contents if necessary.
10791 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10792 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10793 it to dwarf2_read_section.
10794 (dwarf2_build_frame_info): Update callers.
10795 * elfread.c (elf_symfile_read): Update call to
10796 elfstab_build_psymtabs.
10797 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10798 (DBX_STAB_SECTION): New macro.
10799 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10800 * symfile.c (symfile_dummy_outputs): New function.
10801 (symfile_relocate_debug_section): New function.
10802 * symfile.h (symfile_relocate_debug_section): Add prototype.
10804 2003-01-31 Richard Henderson <rth@redhat.com>
10806 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10807 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10808 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10809 * alpha-tdep.c (alpha_register_name): Add "unique".
10810 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10811 (ALPHA_UNIQUE_REGNUM): New.
10812 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10814 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10816 * README: Remove reference to Ericsson 1800 monitor.
10817 * Makefile.in (remote-es.o): Delete rule.
10818 (ALLDEPFILES): Delete remote-es.c.
10819 * remote-es.c: Delete file.
10820 * config/m68k/es1800.mt: Delete file.
10821 * config/djgpp/fnchange.lst: Update.
10822 * configure.tgt: Delete m68*-ericsson-* target.
10824 2003-01-31 Adam Fedor <fedor@gnu.org>
10826 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10827 Remove duplicate/shadowing variable of same name.
10829 2003-01-30 Jim Blandy <jimb@redhat.com>
10831 * symfile.c (find_separate_debug_file): Assert that the objfile's
10832 directory name we compute ends with a slash, and then assume that
10833 that's so everywhere we use it.
10835 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10837 * valops.c (value_assign): Flush frame cache after stores to memory
10840 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10842 * Makefile.in (mon960-rom.o): Delete rule.
10843 * mon960-rom.c: Delete file.
10845 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10847 * d10v-tdep.c: Include "frame-unwind.h".
10848 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10850 (next_addr, uses_frame): Delete.
10851 (struct d10v_unwind_cache): Define.
10852 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10853 Use info instead of next_addr and uses_frame globals.
10854 (d10v_frame_init_saved_regs): Delete function.
10855 (d10v_init_extra_frame_info): Delete function.
10856 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10857 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10858 init_frame_pc or frame_saved_pc.
10859 (d10v_pop_frame): Delete function.
10860 (do_d10v_pop_frame): Delete function.
10861 (d10v_frame_chain): Delete function.
10862 (d10v_frame_chain_valid): Delete function.
10863 (d10v_frame_pc_unwind): New function.
10864 (d10v_frame_id_unwind): New function.
10865 (saved_regs_unwinder): New function.
10866 (d10v_frame_register_unwind): New function.
10867 (d10v_frame_pop): New function.
10868 (d10v_frame_unwind): New variable.
10869 (d10v_frame_p): New function.
10870 (d10v_frame_saved_pc): Delete function.
10871 * Makefile.in (d10v-tdep.o): Update dependencies.
10873 2003-01-30 J. Brobecker <brobecker@gnat.com>
10875 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10876 causing some regressions due to a change in the default value
10879 2003-01-29 Richard Henderson <rth@redhat.com>
10880 Elena Zannoni <ezannoni@redhat.com>
10881 Daniel Jacobowitz <drow@mvista.com>
10884 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10886 (RANGES_SECTION): New.
10887 (dwarf_ranges_buffer): New variable.
10888 (struct comp_unit_head): Add member "die".
10889 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10890 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10891 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10892 (dwarf2_locate_sections): Likewise.
10893 (dwarf2_build_psymtabs): Read .debug_ranges.
10894 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10895 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10896 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10897 Look for DW_AT_ranges and return the bounding box.
10899 2003-01-29 Brian Ford <ford@vss.fsi.com>
10901 * win32-nat.c (cygwin_pid): Removed as unused.
10902 (child_attach): Try fall back to Cygwin pid.
10904 2003-01-29 Jim Blandy <jimb@redhat.com>
10906 * objfiles.h (struct objfile): Doc fix.
10908 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10910 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10911 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10912 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10913 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10914 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10915 (FRAME_SAVED_PC): Change to a function with predicate.
10916 * gdbarch.h, gdbarch.c: Re-generate.
10918 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10920 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10922 * complaints.c (complain): Delete function.
10923 * complaints.h (struct deprecated_complaint): Delete definition.
10924 (complain): Delete declaration.
10926 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10928 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10931 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10933 * sentinel-frame.h, sentinel-frame.c: New files.
10934 * Makefile.in (frame.o): Update dependencies.
10935 (SFILES): Add sentinel-frame.c.
10936 (sentinel_frame_h): Define.
10937 (COMMON_OBS): Add sentinel-frame.o.
10938 (sentinel-frame.o): Specify dependencies.
10939 * frame.c: Include "sentinel-frame.h".
10940 (frame_register_unwind): Rewrite assuming that there is always a a
10942 (frame_register, generic_unwind_get_saved_register): Ditto.
10943 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10944 (create_sentinel_frame, unwind_to_current_frame): New functions.
10945 (get_current_frame): Rewrite using create_sentinel_frame and
10946 unwind_to_current_frame. When possible, always create a frame.
10947 (create_new_frame): Set next to the sentinel frame.
10948 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10949 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10950 ID cache when necessary.
10951 (frame_saved_regs_id_unwind): Use frame_relative_level.
10952 (deprecated_generic_get_saved_register): Use frame_relative_level,
10953 get_frame_saved_regs, get_frame_pc, get_frame_base and
10955 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10958 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10960 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10962 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10964 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10965 (maintenance_set_profile_cmd): Use error () instead of warning ().
10967 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10969 * configure.in: Check that -pg works if using --enable-profiling.
10970 Check for monstartup and _mcleanup regardless of --enable-profiling.
10971 * maint.c: Check for monstartup and _mcleanup before using them.
10972 * config.in: Regenerated.
10973 * configure: Regenerated.
10975 2003-01-24 Nick Clifton <nickc@redhat.com>
10977 * Add sh2e support:
10979 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10981 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10982 (sh2e_show_regs): New.
10983 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10984 * config/sh/tm-sh.h: Added sh2e to comments.
10986 2003-01-23 Jim Blandy <jimb@redhat.com>
10988 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10989 symbols found)" message here; we haven't checked for a separate
10990 debug info file yet, so we don't know yet.
10991 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10992 we've looked everywhere. Also, there's no need to print a special
10993 message when we're loading the separate debug info file: the one
10994 symbol_file_add prints is fine.
10996 2003-01-23 Alexander Larsson <alexl@redhat.com>
10997 Jim Blandy <jimb@redhat.com>
10999 Add support for executables whose debug info has been separated
11000 out into a separate file, leaving only a link behind.
11001 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11002 and separate_debug_objfile_backlink.
11003 (put_objfile_before): New declaration.
11004 * symfile.c: #include "filenames.h".
11005 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11006 debug info in a separate file, read that, too. Save the addrs
11007 argument, so we can use it again to read the separated debug info;
11008 syms_from_objfile modifies the table we pass it.
11009 (reread_symbols): After re-reading an objfile, call
11010 reread_separate_symbols to refresh its separate debug info
11011 objfile, if it has one.
11012 (reread_separate_symbols, find_separate_debug_file,
11013 get_debug_link_info, separate_debug_file_exists): New functions.
11014 (debug_file_directory): New global var.
11015 (_initialize_symfile): Initialize debug_file_directory, and
11016 provide the new `set debug-file-directory' command to let the user
11018 * objfiles.c (free_objfile): If this objfile has its debug info in
11019 a separate objfile, free that one too. If this is itself a
11020 separate debug info objfile, clear our parent's backlink.
11021 (put_objfile_before): New function.
11022 * utils.c (gnu_debuglink_crc32): New function.
11023 * defs.h (gnu_debuglink_crc32): New declaration.
11024 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11025 * configure.in: Handle --with-separate-debug-dir config option.
11026 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11027 * acconfig.h (DEBUGDIR): New macro.
11028 * configure, aclocal.m4, config.in: Regenerated.
11030 2003-01-22 Jim Blandy <jimb@redhat.com>
11032 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11033 like the old symbol_file_add, but taking new arguments: you can
11034 now pass in either a `struct section_addr_info' list to say where
11035 each section is loaded, or a `struct section_offsets' table. Pass
11036 these new arguments through to syms_from_objfile as appropriate.
11037 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11038 with the appropriate quiescent values for the new arguments.
11040 * symfile.c: #include "gdb_assert.h".
11041 (syms_from_objfile): Add the ability to pass in a section offset
11042 table directly, as an alternative to the section_addr_info table.
11043 Document arguments better.
11044 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11045 * symfile.h (syms_from_objfile): Update declaration.
11046 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11048 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11050 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11052 Original patch by Tom Tromey <tromey@cygnus.com> and
11053 Jason Molenda <jmolenda@apple.com>.
11054 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11055 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11056 * NEWS: Mention profiling.
11057 * configure.in (--enable-gdbtk): Fix typo.
11058 (--enable-profiling): New. Set PROFILE_CFLAGS.
11059 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11061 (profiling_state): New variable.
11062 (mcleanup_wrapper): New function.
11063 (_initialize_maint): Remove NOTYET, fix call to
11064 add_setshow_boolean_cmd for "maint set profile".
11065 * configure: Regenerated.
11067 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11069 * Makefile.in (install-gdbtk): Install PNG images too.
11071 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11073 * exec.c (text_start): Delete global variable.
11074 (exec_file_attach): Make text_start local to the function.
11075 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11076 * valops.c (hand_function_call): Delete code that handles
11077 BEFORE_TEXT_END and AFTER_TEXT_END.
11078 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11079 of CALL_DUMMY_LOCATION.
11080 * gdbarch.c: Regenerate.
11081 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11082 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11083 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11084 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11085 (text_end): Delete extern declaration.
11087 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11089 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11090 * blockframe.c (backtrace_below_main): Move to "frame.c".
11091 (frame_chain_valid): Delete check for backtrace_below_main.
11092 (_initialize_blockframe): Delete initialization, move ``set
11093 backtrace-below-main'' command to "frame.c".
11094 (do_flush_frames_sfunc): Delete function.
11095 * frame.c: Include "command.h" and "gdbcmd.h".
11096 (frame_type_from_pc): New function.
11097 (create_new_frame): Use frame_type_from_pc.
11098 (legacy_get_prev_frame): New function.
11099 (get_prev_frame): Rewrite. When an old style frame, call
11100 legacy_get_prev_frame. Otherwize, unwind the PC first.
11101 (_initialize_frame): Add ``set backtrace-below-main'' command.
11102 * Makefile.in (frame.o): Update dependencies.
11104 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11106 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11107 DEPRECATED_REGISTERS_INFO.
11109 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11111 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11112 Maintainers'. Update `Various Maintainers'.
11114 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11116 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11117 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11118 Suppress actual parameters when `-'.
11119 * gdbarch.h, gdbarch.c: Regenerate.
11121 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11123 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11124 code handling dummy frames.
11126 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11128 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11129 (struct frame_unwind): Add field pop.
11130 * frame.h (frame_pop): Declare.
11131 * frame.c (frame_saved_regs_pop): New function.
11132 (trad_frame_unwinder): Add frame_saved_regs_pop.
11133 (frame_pop): New function.
11134 * dummy-frame.c (dummy_frame_pop): New function.
11135 (discard_innermost_dummy): New function.
11136 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11137 (dummy_frame_unwind): Add dummy_frame_pop.
11138 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11139 * valops.c (hand_function_call): Ditto.
11140 * stack.c (return_command): Ditto.
11142 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11144 * cris-tdep.c: Fix function declaration indentation.
11145 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11146 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11147 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11148 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11149 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11150 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11152 2003-01-18 Michael Chastain <mec@shout.net>
11154 * README (Unpacking and Installation -- quick overview):
11155 Warn against ".../gdb-5.3/gdb/configure".
11157 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11159 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11160 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11161 (struct frame_unwind): Declare opaque.
11162 (dummy_frame_p): Declare function.
11163 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11164 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11165 * dummy-frame.c: Include "frame-unwind.h".
11166 (dummy_frame_p): New function.
11167 (dummy_frame_unwind): New variable.
11168 * frame.c: Include "frame-unwind.h".
11169 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11170 to use the new unwind field.
11171 (set_unwind_by_pc): Delete function.
11172 (create_new_frame, get_prev_frame): Set unwind field using
11173 frame_unwind_find_by_pc.
11174 (trad_frame_unwind, trad_frame_unwinder): New variables.
11175 * frame.h (trad_frame_unwind): Declare variable.
11176 (frame_id_unwind_ftype): Delete declaration.
11177 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11178 (struct frame_unwind): Declare opaque.
11179 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11180 register_unwind with a single unwind pointer.
11181 * frame-unwind.h, frame-unwind.c: New files.
11182 * Makefile.in (SFILES): Add frame-unwind.c.
11183 (frame_unwind_h): Define.
11184 (COMMON_OBS): Add frame-unwind.o.
11185 (frame-unwind.o): Specify dependencies.
11186 (frame.o, dummy-frame.o): Update dependencies.
11188 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11190 * ada-valprint.c: Eliminate PTR.
11191 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11192 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11193 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11194 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11195 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11196 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11197 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11199 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11201 * main.c (captured_main): Don't use PTR.
11202 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11203 * gdbtypes.c (lookup_primitive_typename): Ditto.
11204 (lookup_struct_elt_type): Ditto.
11205 * f-valprint.c (info_common_command): Ditto.
11206 (list_all_visible_commons): Ditto.
11207 * jv-typeprint.c (java_type_print_base): Ditto.
11209 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11210 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11211 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11212 i386-interix-nat.c and i386-interix-tdep.c. Rename
11213 m68klinux-nat.c and m68klinux-tdep.c. Rename
11214 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11215 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11216 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11217 * main.c (captured_main): Use xfree, not free.
11219 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11221 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11222 ID back using a parameter.
11223 * frame.c (frame_id_unwind): Update call.
11224 (frame_saved_regs_id_unwind): Update.
11225 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11226 * dummy-frame.h (struct frame_id): Add opaque declaration.
11227 (dummy_frame_id_unwind): Update declaration.
11229 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11231 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11233 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11235 * MAINTAINERS (Stephen P. Smith): Updated email address.
11237 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11240 * breakpoint.c (until_break_command): Add new argument. Use it to
11241 decide whether to stop only at the current frame or not.
11242 * breakpoint.h (until_break_command): Update prototype.
11243 * infcmd.c (until_command): Add new argument to until_break_command
11245 (advance_command): New function.
11246 (_initialize_infcmd): Update help string for 'until' command.
11247 Add new 'advance' command.
11249 2003-01-14 David Carlton <carlton@math.stanford.edu>
11251 * linespec.c (decode_line_1): Normalize comments.
11252 (set_flags): Ditto.
11253 (locate_first_half): Ditto.
11254 (decode_compound): Ditto.
11255 (symtab_from_filename): Ditto.
11256 (decode_all_digits): Ditto.
11257 (decode_dollar): Ditto.
11258 (find_methods): Ditto.
11259 (find_toplevel_char): Ditto.
11261 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11263 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11264 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11265 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11266 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11267 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11268 * language.c, language.h, m32r-tdep.c: Update copyright.
11269 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11270 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11271 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11272 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11273 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11274 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11276 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11278 * stabsread.h (process_later, resolve_cfront_continuation):
11280 Update copyright years.
11281 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11282 Update copyright year.
11283 * dbxread.c(struct cont_elem): Obsolete.
11284 (process_later, process_now): Obsolete functions.
11285 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11286 Update copyright year.
11287 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11288 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11289 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11290 (parse_partial_symbols): Obsolete cfront support.
11292 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11294 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11295 read_cfront_baseclasses, read_cfront_member_functions,
11296 resolve_cfront_continuation,read_cfront_static_fields,
11297 copy_cfront_struct_fields): Obsolete functions.
11298 (define_symbol, read_one_struct_field): Obsolete cfront support.
11299 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11300 Update Copyright year.
11302 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11304 * stack.c (print_frame_info, print_stack_frame_base_stub,
11305 print_stack_frame_base, show_and_print_stack_frame_stub,
11306 show_and_print_stack_frame, print_only_stack_frame_stub,
11307 print_only_stack_frame): Delete functions.
11308 (print_stack_frame_stub): Call print_frame_info instead of
11309 print_frame_info_base.
11310 (print_frame_info_base): Rename to print_frame_info.
11311 (backtrace_command_1): Call print_frame_info, instead of
11312 print_frame_info_base.
11313 (current_frame_command): Call print_stack_frame, instead of
11314 print_only_stack_frame.
11315 (frame_command): Call print_stack_frame, instead of
11316 show_and_print_stack_frame.
11317 (up_command): Ditto.
11318 (down_command): Ditto.
11319 * frame.h (print_only_stack_frame): Delete prototype.
11320 * infrun.c (normal_stop): Call print_stack_frame, instead of
11321 show_and_print_stack_frame.
11322 * thread.c (info_threads_command): Call print_stack_frame, instead
11323 of print_only_stack_frame.
11325 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11327 * README (Graphical interface to GDB): Update URL. Point at
11330 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11333 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11335 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11338 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11340 * thread-db.c (attach_thread): Prototype.
11341 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11342 thread information (ti), and valid flags (th_valid, ti_valid).
11343 (attach_thread): Move target_pid_to_str call to after the thread
11344 is added to GDB's list. Initialize the cache.
11345 (thread_get_info_callback, thread_db_map_id2thr)
11346 (thread_db_get_info): New functions.
11347 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11348 (thread_db_store_registers, thread_db_thread_alive)
11349 (thread_db_get_thread_local_address): Use them.
11350 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11351 of calling error() for threads in unknown state.
11353 (clear_lwpid_callback): New function.
11354 (thread_db_resume): Use it to clear the cache.
11356 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11358 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11359 (resume_callback): Remove dead code.
11361 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11363 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11365 * gdbarch.h, gdbarch.c: Regenerate.
11366 * stack.c (frame_info): Only initialize the saved registers when
11367 FRAME_INIT_SAVED_REGS_P.
11368 * frame.c (frame_saved_regs_register_unwind): Assert
11369 FRAME_INIT_SAVED_REGS_P.
11370 (deprecated_generic_get_saved_register): Ditto.
11372 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11374 * source.c (openp): Squelch warning about "filename".
11376 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11378 * source.c (openp): If the file does not exist don't necessarily
11381 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11384 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11385 (integer_types_same_name_p): New function.
11386 (rank_one_type): Use it.
11387 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11389 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11391 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11393 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11394 * configure.in: Add --with-sysroot.
11395 * configure: Regenerated.
11396 * main.c (gdb_sysroot): New variable.
11397 (captured_main): Initialize gdb_sysroot.
11398 * defs.h (gdb_sysroot): New extern declaration.
11399 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11401 2003-01-12 Michael Chastain <mec@shout.net>
11403 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11405 2003-01-12 Michael Chastain <mec@shout.net>
11407 * top.c (print_gdb_version): Bump copyright year to 2003.
11409 2003-01-12 David Carlton <carlton@bactrian.org>
11411 * linespec.c (symtab_from_filename): Rename variable 's' to
11414 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11416 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11418 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11420 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11422 * d10v-tdep.c: Include "gdb_assert.h".
11423 (d10v_store_return_value): Rewrite to match current interface.
11424 (d10v_extract_struct_value_address): Ditto.
11425 (d10v_extract_return_value): Ditto.
11426 (d10v_gdbarch_init): Set store_restore_value,
11427 extract_struct_value_address and extract_return_value.
11429 2003-01-12 J. Brobecker <brobecker@gnat.com>
11431 * hpread.c (set_namestring): New procedure replacing the
11432 SET_NAMESTRING macro.
11433 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11434 by calls to set_namestring.
11436 2003-01-11 J. Brobecker <brobecker@gnat.com>
11438 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11439 a compilation warning.
11440 (hpread_process_one_debug_symbol): Likewise.
11442 2003-01-10 David Carlton <carlton@math.stanford.edu>
11444 * linespec.c (decode_line_1): Rename variable 's' to
11446 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11447 (decode_dollar): Ditto.
11448 (decode_variable): Ditto.
11449 (symbol_found): Ditto.
11451 2003-01-09 Michael Chastain <mec@shout.net>
11453 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11455 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11457 * win32-nat.c (set_process_privilege): New function.
11458 (child_attach): Call set_process_privilege() to enable the
11459 SE_DEBUG_NAME user privilege if available in process token.
11461 2003-01-10 J. Brobecker <brobecker@gnat.com>
11463 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11464 compilation error in the previous revision.
11466 2003-01-09 David Carlton <carlton@math.stanford.edu>
11468 * linespec.c: Update copyright.
11470 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11472 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11473 than inferior_ptid.
11474 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11476 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11478 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11480 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11481 (frame_saved_regs_zalloc): Update.
11482 (frame_saved_regs_register_unwind): Update.
11483 (create_new_frame): Update.
11484 (get_prev_frame): Update.
11485 (frame_extra_info_zalloc): Update.
11486 (deprecated_get_frame_saved_regs): Update.
11487 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11488 * cris-tdep.c: Update comment.
11490 * somsolib.h: Fix function indentation.
11491 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11492 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11493 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11494 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11495 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11497 * infrun.c (follow_fork): Use ISO C definition.
11498 * expprint.c (print_subexp): Use xfree instead of free.
11499 * charset.c: Include "gdb_string.h" instead of <string.h>.
11500 (register_iconv_charsets): Use ISO C definition.
11501 (host_charset, target_charset): Ditto.
11502 * Makefile.in (charset.o): Update dependencies.
11503 (mi-cmd-env.o): Update dependencies.
11505 2003-01-08 Andrew Cagney <cagney@redhat.com>
11507 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11510 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11512 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11513 build directories. Save edited gdb output in Mbuild.log. If a
11514 build fails, remove any final GDB executable.
11516 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11518 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11519 replacing hex constants with function names and stripping leading
11520 file name directory prefixes.
11522 2003-01-08 Andrew Cagney <cagney@redhat.com>
11524 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11527 2003-01-08 David Carlton <carlton@math.stanford.edu>
11529 * linespec.c (decode_line_1): Move code into decode_variable.
11530 (decode_variable): New function.
11532 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11534 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11536 2003-01-08 Andrew Cagney <cagney@redhat.com>
11538 * cris-tdep.c (cris_frame_init_saved_regs): Use
11539 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11541 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11542 (sh64_nofp_frame_init_saved_regs): Ditto.
11543 (sh_fp_frame_init_saved_regs): Ditto.
11544 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11545 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11546 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11547 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11549 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11551 * minsyms.c (lookup_minimal_symbol): Update comment.
11552 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11553 (lookup_minimal_symbol_solib_trampoline): Likewise.
11555 2003-01-08 Andrew Cagney <cagney@redhat.com>
11557 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11558 frame_relative_level.
11560 * alpha-tdep.c: Use get_frame_extra_info.
11561 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11562 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11563 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11564 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11566 * alpha-tdep.c: Use get_next_frame.
11567 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11568 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11569 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11570 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11571 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11572 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11573 * xstormy16-tdep.c: Ditto.
11575 2003-01-07 Andrew Cagney <cagney@redhat.com>
11577 * alpha-tdep.c: Use get_frame_base.
11578 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11579 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11580 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11581 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11582 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11583 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11584 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11585 * config/sparc/tm-sparc.h: Ditto.
11587 2003-01-07 Andrew Cagney <cagney@redhat.com>
11589 * frame.c (deprecated_get_frame_context): New function.
11590 (deprecated_set_frame_context): New function.
11591 * frame.h (deprecated_get_frame_context): Declare.
11592 (deprecated_set_frame_context): Declare.
11593 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11594 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11596 2003-01-07 Andrew Cagney <cagney@redhat.com>
11598 * frame.c (deprecated_set_frame_next_hack): New function.
11599 (deprecated_set_frame_prev_hack): New function.
11600 * frame.h (deprecated_set_frame_next_hack): Declare.
11601 (deprecated_set_frame_prev_hack): Declare.
11602 * mcore-tdep.c (analyze_dummy_frame): Use
11603 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11604 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11606 2003-01-07 David Carlton <carlton@math.stanford.edu>
11608 * linespec.c (decode_line_1): Move code into decode_dollar.
11609 (decode_dollar): New function.
11611 2003-01-07 Andrew Cagney <cagney@redhat.com>
11613 * arm-tdep.c (arm_init_extra_frame_info): Use
11614 deprecated_update_frame_base_hack.
11615 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11616 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11617 (fix_frame_pointer): Ditto.
11618 (mn10300_analyze_prologue): Ditto.
11620 2003-01-07 Andrew Cagney <cagney@redhat.com>
11622 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11623 extra_info using frame_extra_info_zalloc.
11624 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11625 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11626 (sh64_init_extra_frame_info): Ditto.
11627 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11628 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11629 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11630 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11631 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11632 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11633 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11634 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11635 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11636 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11637 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11638 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11640 * mn10300-tdep.c (analyze_dummy_frame): Use
11641 deprecated_set_frame_extra_info_hack.
11642 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11644 2003-01-07 J. Brobecker <brobecker@gnat.com>
11646 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11647 class is not scText. These do not define "real" procedures.
11648 (parse_partial_symbols): Likewise.
11650 2003-01-06 Michael Snyder <msnyder@redhat.com>
11652 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11654 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11656 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11657 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11658 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11659 deprecated_frame_xmalloc_with_cleanup.
11660 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11661 deprecated_frame_xmalloc.
11662 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11663 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11665 2003-01-06 Andrew Cagney <cagney@redhat.com>
11667 * x86-64-linux-tdep.c: Include "osabi.h".
11668 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11670 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11672 2003-01-06 Andrew Cagney <cagney@redhat.com>
11674 * MAINTAINERS (Target Instruction Set Architectures): Update
11675 arm-elf. Can be built with -Werror, has been multiarched.
11677 * value.h (unpack_long): Make buffer parameter constant.
11678 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11679 * scm-lang.h (scm_parse): Ditto.
11680 * defs.h (extract_typed_address, extract_address): Ditto.
11681 (extract_long_unsigned_integer): Ditto.
11682 * inferior.h (unsigned_pointer_to_address): Ditto.
11683 (signed_pointer_to_address): Ditto.
11684 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11685 * gdbarch.h, gdbarch.c: Regenerate.
11686 * findvar.c (extract_long_unsigned_integer): Update.
11687 (extract_address): Update.
11688 (extract_typed_address): Update.
11689 (unsigned_pointer_to_address): Update.
11690 * values.c (unpack_long): Update.
11691 (unpack_double): Update.
11692 (unpack_pointer): Update.
11693 (unpack_field_as_long): Update.
11694 * d10v-tdep.c (d10v_pointer_to_address): Update.
11695 * avr-tdep.c (avr_pointer_to_address): Update.
11696 * scm-lang.c (scm_unpack): Update.
11697 * findvar.c (signed_pointer_to_address): Update.
11699 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11701 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11702 since it is in i386-tdep.c.
11704 2003-01-06 J. Brobecker <brobecker@gnat.com>
11706 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11707 failure introduced in the previous change.
11709 2003-01-05 Michael Chastain <mec@shout.net>
11711 * README: Remove references to deleted remote-*.c files:
11712 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11713 remote-nrom.c, remote-os9k.c, remote-udi.c.
11715 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11717 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11718 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11719 i386_get_longjmp_target.
11721 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11723 * arm-tdep.c (prologue_cache): Change to a pointer.
11724 (_initialize_arm_tdep): Allocate prologue_cache.
11725 (check_prologue_cache): Update.
11726 (save_prologue_cache): Update.
11727 (arm_gdbarch_init): Update.
11729 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11731 * stabsread.c (update_method_name_from_physname): Call complaint()
11734 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11736 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11737 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11738 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11740 * blockframe.c: Include "gdbcmd.h" and "command.h".
11741 (backtrace_below_main): New variable.
11742 (file_frame_chain_valid, func_frame_chain_valid)
11743 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11744 (generic_func_frame_chain_valid): Remove functions.
11745 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11746 (_initialize_blockframe): New function.
11747 * Makefile.in (blockframe.o): Update dependencies.
11748 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11749 comment. Call frame_chain_valid ().
11750 * frame.h: Remove old prototypes. Add prototype for
11751 frame_chain_valid and update comments to match.
11752 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11753 Remove old comment.
11754 * gdbarch.h: Regenerated.
11755 * gdbarch.c: Regenerated.
11757 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11758 set_gdbarch_frame_chain_valid.
11759 * avr-tdep.c (avr_gdbarch_init): Likewise.
11760 * cris-tdep.c (cris_gdbarch_init): Likewise.
11761 * frv-tdep.c (frv_gdbarch_init): Likewise.
11762 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11763 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11764 (i386_nw_init_abi): Likewise.
11765 (i386_gdbarch_init): Likewise.
11766 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11767 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11768 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11769 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11770 * mips-tdep.c (mips_gdbarch_init): Likewise.
11771 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11772 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11773 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11774 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11775 * s390-tdep.c (s390_gdbarch_init): Likewise.
11776 * sh-tdep.c (sh_gdbarch_init): Likewise.
11777 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11778 * v850-tdep.c (v850_gdbarch_init): Likewise.
11779 * vax-tdep.c (vax_gdbarch_init): Likewise.
11780 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11782 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11783 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11784 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11785 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11786 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11787 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11788 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11789 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11791 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11793 * Makefile.in (acconfig_h): Remove incorrect macro.
11794 (config_h): Define.
11795 (osabi.o): Update dependencies.
11796 * configure.tgt: Set gdb_osabi based on target triplet.
11797 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11798 * configure: Regenerated.
11799 * config.in: Regenerated.
11800 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11801 (GDB_OSABI_DEFAULT): Define if not already defined.
11802 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11803 (set_osabi_string): New variables.
11804 (gdbarch_register_osabi): Add new OS ABI to
11805 gdb_osabi_available_names.
11806 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11807 (set_osabi, show_osabi): New functions.
11808 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11810 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11812 * arch-utils.c (gdbarch_info_init): Set osabi to
11813 GDB_OSABI_UNINITIALIZED.
11814 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11815 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11816 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11817 * gdbarch.c: Regenerated.
11818 * gdbarch.h: Regenerated.
11819 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11821 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11822 * osabi.h (enum gdb_osabi): Move to defs.h.
11823 (gdbarch_init_osabi): Update prototype.
11824 * defs.h (enum gdb_osabi): Moved here.
11825 * Makefile.in: Update dependencies.
11827 * alpha-tdep.h: Don't include "osabi.h".
11828 (struct gdbarch_tdep): Remove osabi member.
11829 * alpha-tdep.c: Include "osabi.h".
11830 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11831 iterate over arches. Update call to gdbarch_init_osabi.
11832 (alpha_dump_tdep): Don't dump osabi.
11833 * alpha-linux-tdep.c: Include "osabi.h".
11834 * alpha-osf1-tdep.c: Include "osabi.h".
11835 * alphafbsd-tdep.c: Include "osabi.h".
11836 * alphanbsd-tdep.c: Include "osabi.h".
11838 * arm-tdep.h: Don't include "osabi.h".
11839 (struct gdbarch_tdep): Remove osabi member.
11840 * arm-tdep.c: Include "osabi.h".
11841 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11842 iterate over arches. Update call to gdbarch_init_osabi.
11843 (arm_dump_tdep): Don't dump osabi.
11844 * arm-linux-tdep.c: Include "osabi.h".
11845 * armnbsd-tdep.c: Include "osabi.h".
11847 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11848 Update call to gdbarch_init_osabi.
11850 * i386-tdep.h: Don't include "osabi.h".
11851 (struct gdbarch_tdep): Remove osabi member.
11852 * i386-tdep.c: Include "osabi.h".
11853 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11854 iterate over arches. Update call to gdbarch_init_osabi.
11855 (i386_dump_tdep): Don't dump osabi.
11856 * i386-linux-tdep.c: Include "osabi.h".
11857 * i386-sol2-tdep.c: Include "osabi.h".
11858 * i386bsd-tdep.c: Include "osabi.h".
11859 * i386gnu-tdep.c: Include "osabi.h".
11860 * i386ly-tdep.c: Include "osabi.h".
11861 * i386nbsd-tdep.c: Include "osabi.h".
11862 * i386obsd-tdep.c: Include "osabi.h".
11864 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11865 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11866 check osabi when iterating over arches. Update call to
11867 gdbarch_init_osabi.
11868 (mips_dump_tdep): Don't dump osabi.
11870 * ns32k-tdep.h: Don't include "osabi.h".
11871 (struct gdbarch_tdep): Remove.
11872 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11873 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11874 allocate tdep. Update call to gdbarch_init_osabi.
11875 (ns32k_dump_tdep): Remove.
11876 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11877 * ns32knbsd-tdep.c: Include "osabi.h".
11879 * ppc-tdep.h: Don't include "osabi.h".
11880 (struct gdbarch_tdep): Remove osabi member.
11881 * rs6000-tdep.c: Include "osabi.h".
11882 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11883 osabi when iterating over arches. Update call to
11884 gdbarch_init_osabi.
11885 (rs6000_dump_tdep): Don't dump osabi.
11886 * ppc-linux-tdep.c: Include "osabi.h".
11887 * ppcnbsd-tdep.c: Include "osabi.h".
11889 * sh-tdep.h: Don't include "osabi.h".
11890 (struct gdbarch_tdep): Remove osabi member.
11891 * sh-tdep.c: Include "osabi.h".
11892 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11893 iterate over arches. Update call to gdbarch_init_osabi.
11894 (sh_dump_tdep): Don't dump osabi.
11895 * shnbsd-tdep.c: Include "osabi.h".
11897 * sparc-tdep.c: Include "osabi.h".
11898 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11899 iterate over arches. Update call to gdbarch_init_osabi.
11900 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11903 * vax-tdep.h: Don't include "osabi.h".
11904 (struct gdbarch_tdep): Remove.
11905 * vax-tdep.c: Include "osabi.h".
11906 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11907 iterate over arches. Don't allocate tdep. Update call
11908 to gdbarch_init_osabi.
11909 (vax_dump_tdep): Remove.
11910 (_initialize_vax_tdep): Update call to gdbarch_register.
11912 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11914 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11916 (breakpoint_re_set_one): Don't fetch the value for a disabled
11919 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11921 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11922 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11923 (COERCE_FLOAT_TO_DOUBLE): Remove.
11924 * gdbarch.c: Regenerate.
11925 * gdbarch.h: Regenerate.
11926 * Makefile.in: Remove value_h from gdbarch_h.
11927 * valops.c (coerce_float_to_double): New variable.
11928 (default_coerce_float_to_double): Remove.
11929 (standard_coerce_float_to_double): Remove.
11930 (value_arg_coerce): Use coerce_float_to_double.
11931 (_initialize_valops): Add "set coerce-float-to-double".
11932 * value.h (default_coerce_float_to_double): Remove prototype.
11933 (standard_coerce_float_to_double): Remove prototype.
11935 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11937 * mdebugread.c (parse_symbol): Likewise.
11938 * stabsread.c (define_symbol): Mark all functions as prototyped.
11940 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11941 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11942 set_gdbarch_coerce_float_to_double.
11943 * arm-tdep.c (arm_gdbarch_init): Likewise.
11944 * frv-tdep.c (frv_gdbarch_init): Likewise.
11945 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11946 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11947 * mips-tdep.c (mips_gdbarch_init): Likewise.
11948 (mips_coerce_float_to_double): Remove.
11949 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11950 (rs6000_coerce_float_to_double): Remove.
11951 * s390-tdep.c (s390_gdbarch_init): Likewise.
11952 * sh-tdep.c (sh_gdbarch_init): Likewise.
11953 (sh_coerce_float_to_double): Remove.
11954 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11955 (sparc_coerce_float_to_double): Remove.
11956 * v850-tdep.c (v850_gdbarch_init): Likewise.
11957 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11958 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11959 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11960 (hppa_coerce_float_to_double): Remove prototype.
11961 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11963 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11965 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11967 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11969 Suggested by Stewart Brown <sb24@avaya.com>:
11970 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11971 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11972 (c_type_print_varspec_suffix): Likewise.
11974 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11976 * configure.in: Don't set and AC_SUBST SUBDIRS.
11977 * configure: Regenerated.
11979 * configure.in: Remove code dealing with shared libraries.
11980 * Makefile.in: Remove HLDFLAGS and HLDENV.
11981 * configure: Regenerated.
11983 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11985 * frame.c (deprecated_frame_xmalloc): New function.
11986 (deprecated_set_frame_saved_regs_hack): New function.
11987 (deprecated_set_frame_extra_info_hack): New function.
11988 * frame.h (deprecated_frame_xmalloc): Declare.
11989 (deprecated_set_frame_saved_regs_hack): Declare.
11990 (deprecated_set_frame_extra_info_hack): Declare.
11992 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11994 * configure.in: Move code that provides the --enable-gdbtk option
11995 right after the code that handles the --enable-tui option, and
11996 polish it somewhat.
11997 * configure: Regenerated.
11999 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12000 AC_CHECK_FUNCS and remove the old check for pread64.
12001 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12002 * acconfig.h (_GNU_SOURCE): Add.
12003 (HAVE_PREAD64): Remove.
12004 * configure, aclocal.m4, config.in: Regenerated.
12006 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12008 * alpha-tdep.c: Use get_frame_saved_regs.
12009 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12010 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12011 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12012 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12013 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12015 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12017 * configure.in: Remove all use of the SUBDIRS variable; add
12018 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12019 code providing the --enable-multi-ice option, and move it right in
12020 front of the code that checks whether gdbserver is supported.
12022 * configure: Regenerated.
12023 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12026 2003-01-03 Andrew Cagney <cagney@redhat.com>
12028 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12029 * avr-tdep.c, cris-tdep.c: Ditto.
12030 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12031 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12033 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12035 * configure.in: Remove --enable-netrom option.
12036 * configure: Regenerated.
12038 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12040 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12041 declaration for `struct re_pattern_buffer' instead.
12042 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12044 2003-01-03 J. Brobecker <brobecker@gnat.com>
12046 * mdebugread.c (parse_symbol): Count until the stEnd matching
12047 the structure name.
12049 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12051 * configure.in: Remove --with-cpu option.
12052 subscripts. Remove evil changequotes here.
12053 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12054 * config.in, configure: Regenerated.
12056 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12057 * configure.in: Cleanup section that sources GDB and BFD configure
12058 subscripts. Remove evil changequotes here.
12059 * config.in, configure: Regenerated.
12061 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12063 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12064 frame accessor methods.
12065 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12066 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12067 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12068 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12069 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12070 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12071 * z8k-tdep.c: Ditto.
12073 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12075 * configure.in: Remove UI_OUT configuration code.
12076 * ada-lang.c: Update assuming UI_OUT is always true.
12077 * Makefile.in (UIOUT_CFLAGS): Remove.
12078 * configure: Regenerated.
12079 * TODO: Remove blurb about elimination of -DUI_OUT.
12081 * configure.in: Move code that provides the --enable-gdbcli,
12082 --enable-gdbmi options right before the code that handles the
12083 --enable-tui option. Polish a bit.
12084 * configure: Regenerated.
12086 * configure.in: Rewrite check for GNU regex and the
12087 --without-included regex option, and move it into the "Checks for
12088 library functions" section. This makes us use the system regex
12089 again by default on systems with version 2 of the GNU C library.
12090 This was apparently broken.
12091 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12092 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12093 * config.in, configure: Regenerated.
12095 * configure.in: Move code that provides the --enable-tui option
12096 before the "Checks for libraries" section. Polish the code
12097 somewhat and set need_curses to yes if we build the TUI. Rewrite
12098 code that looks for a library providing termcap functionality to
12099 match more closely what's done in the Readline library, and move
12100 it into to the "Checks for libraries" section.
12101 * configure: Regenerated.
12102 * Makefile.in (TERMCAP): Remove variable.
12103 * config/i386/go32.mh (TERMCAP): Remove variable.
12105 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12107 * MAINTAINERS: Mention gdb_mbuild.sh.
12108 * gdb_mbuild.sh: Rewrite.
12110 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12112 * configure.in: Fix typo in last change.
12113 * config.in, configure: Regenerated.
12115 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12117 * valarith.c (value_binop): Delete obsolete code and comments.
12118 * configure.host: Ditto.
12119 * buildsym.h (make_blockvector): Ditto.
12120 * buildsym.c (make_blockvector): Ditto.
12121 * defs.h (enum language): Ditto.
12122 (chill_demangle): Ditto.
12123 * elfread.c (elf_symtab_read): Ditto.
12124 * dwarfread.c (CHILL_PRODUCER): Ditto.
12125 (set_cu_language): Ditto.
12126 (handle_producer): Ditto.
12127 * expprint.c (print_subexp): Ditto.
12128 * gdbtypes.c (chill_varying_type): Ditto.
12129 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12130 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12131 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12132 (chill_varying_type): Ditto.
12133 * language.h (_LANG_chill): Ditto.
12134 * language.c (binop_result_type, integral_type): Ditto.
12135 (character_type, string_type, structured_type): Ditto.
12136 (lang_bool_type, binop_type_check): Ditto.
12137 * stabsread.h (os9k_stabs): Ditto.
12138 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12139 (define_symbol, read_type, read_struct_fields): Ditto.
12140 (read_array_type, read_enum_type, read_huge_number): Ditto.
12141 (read_range_type, start_stabs): Ditto.
12142 * symfile.c (init_filename_language_table): Ditto.
12143 (add_psymbol_with_dem_name_to_list): Ditto.
12144 * symtab.c (symbol_init_language_specific): Ditto.
12145 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12146 * symtab.h (struct general_symbol_info): Ditto.
12147 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12148 * typeprint.c (typedef_print): Ditto.
12149 * utils.c (fprintf_symbol_filtered): Ditto.
12150 * valops.c (value_cast, search_struct_field, value_slice): Delete
12152 (varying_to_slice): Delete function.
12153 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12154 (varying_to_slice): Delete declaration.
12155 * MAINTAINERS: Update.
12157 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12159 * configure.in: Reorganize "Checks for library functions section"
12160 a bit. Remove check for `btowc' and `isascii' functions.
12161 * configure: Regenerated.
12163 * acconfig.h (_MSE_INT_H): Remove.
12164 * configure.in: Create "Checks for header files" section, and move
12165 appropriate tests there. Don't check for objlist.h, wchar.h,
12166 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12167 misdetection fix. Also add "Checks for types", "Checks for
12168 compiler characteristics" and "Checks for library functions"
12170 * config.in, configure: Regenerated.
12172 * configure.in: Create "Checks for programs" section, and move
12173 appropriate tests there.
12175 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12177 * configure.in: Create "Checks for libraries" section, and move
12178 appropriate tests there. Cleanup check for wctype in libw. Use
12179 AC_SEARCH_LIBS to see whether we need libsocket.
12180 * configure: Regenerated.
12182 For older changes see ChangeLog-2002
12188 version-control: never