1 2003-09-22 Anthony Green <green@redhat.com>
3 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
6 2003-09-20 Andrew Cagney <cagney@redhat.com>
8 * breakpoint.c: Eliminate ARGSUSED.
9 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
10 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
11 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
12 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
13 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
14 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
15 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
16 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
17 * wince.c, remote-vx.c: Ditto.
19 * cli/cli-script.c: Remove "register" attributes.
20 * config/pa/tm-hppa.h: Ditto.
21 * cli/cli-decode.c: Ditto.
22 * cli/cli-cmds.c: Ditto.
24 2003-09-19 Andrew Cagney <cagney@redhat.com>
26 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
27 DEPRECATED_NPC_REGNUM.
28 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
30 2003-09-19 Christopher Faylor <cgf@redhat.com>
32 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
34 2003-09-19 Jim Blandy <jimb@redhat.com>
36 * macrotab.c (macro_include): Use the correct comparison to find
37 the appropriate place for this inclusion in the list.
39 2003-09-19 Andrew Cagney <cagney@redhat.com>
41 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
42 (DEPRECATED_HPUX_TEXT_END): Define.
43 (deprecated_hpux_text_end): Declare.
44 (struct target_ops): Declare opaque.
45 * hppah-nat.c (text_end): Make static.
46 (deprecated_hpux_text_end): New function.
47 * exec.c (text_end): Delete global variable.
48 (NEED_TEXT_START_END): Do not define.
49 (exec_file_attach): Replace code computing "text_end" code with
50 call to DEPRECATED_HPUX_TEXT_END.
52 2003-09-19 Andrew Cagney <cagney@redhat.com>
54 * utils.c (align_up, align_down): New functions.
55 * defs.h (align_up, align_down): Declare.
56 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
57 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
59 (round_up, round_down): Delete functions.
60 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
62 (ROUND_DOWN, ROUND_UP): Delete macros.
63 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
64 * h8300-tdep.c: Replace "round_up" and "round_down" with
65 "align_up" and "align_down".
66 (round_up, round_down): Delete macros.
67 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
69 (ROUND_UP, ROUND_DOWN): Delete macros.
71 2003-09-18 J. Brobecker <brobecker@gnat.com>
73 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
74 hard-coded constant. Use the proper machine name instead.
76 2003-09-17 Andrew Cagney <cagney@redhat.com>
78 * sparc-tdep.c (legacy_register_name): Delete function.
79 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
80 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
81 * infcmd.c (gdb_register_name): Delete variable.
82 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
83 REGISTER_NAME and "tm.h".
84 * gdbarch.h, gdbarch.c: Regenerate.
85 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
86 REGISTER_NAMES in comments.
87 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
88 * m68klinux-nat.c (regmap): Ditto.
90 2003-09-17 Jim Blandy <jimb@redhat.com>
92 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
94 2003-09-17 Andrew Cagney <cagney@redhat.com>
96 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
97 (ppcnbsd_init_abi): Set "use_struct_convention" to
98 "ppcnbsd_use_struct_convention".
100 2003-09-17 Mark Kettenis <kettenis@gnu.org>
102 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
103 * gdbarch.h, gdbarch.c: Regenerate.
104 (stabs_argument_has_addr): New architecture method.
105 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
106 * arch-utils.c: Include "buildsym.h".
107 (default_stabs_argument_has_addr): New function.
108 * stabsread.c (define_symbol): Use stabs_argument_has_addr
109 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
111 2003-09-17 Andrew Cagney <cagney@redhat.com>
113 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
114 * gdbarch.h, gdbarch.c: Regenerate.
115 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
116 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
117 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
118 * sparcnbsd-tdep.c: Update.
120 2003-09-17 Andrew Cagney <cagney@redhat.com>
122 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
123 * gdbarch.h, gdbarch.c: Regenerate.
124 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
125 * d10v-tdep.c, frame.c: Update.
126 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
127 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
128 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
129 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
130 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
131 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
132 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
133 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
134 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
135 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
136 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
137 * config/pa/nm-hppah.h: Update.
139 2003-09-16 Andrew Cagney <cagney@redhat.com>
141 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
142 "use_struct_convention" to "ppc_linux_use_struct_convention".
143 (ppc_linux_use_struct_convention): New function.
144 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
145 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
146 "rs6000_use_struct_convention".
147 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
149 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
152 2003-09-16 Andrew Cagney <cagney@redhat.com>
154 * buildsym.c: Remove more occurances of "register".
155 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
156 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
157 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
158 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
159 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
160 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
161 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
162 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
164 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
166 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
167 numbers to enumeration values.
168 * sh-tdep.c: Accomodate above change.
169 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
170 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
171 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
172 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
173 (IS_FPUSH): Rename from IS_FMOV.
174 (sh_extract_struct_value_address): Remove useless comment.
175 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
176 instead of own local values.
177 (sh_dump_tdep): Remove.
178 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
179 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
181 2003-09-15 Andrew Cagney <cagney@redhat.com>
183 * doublest.c (convert_floatformat_to_doublest): No longer need to
184 cast "exp_bias" to an int. Reverts 2002-12-04 change.
186 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
188 * values.c (unpack_double): Call floatformat_is_valid.
190 2003-09-15 Mark Kettenis <kettenis@gnu.org>
192 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
193 ps_strings into a long.
195 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
196 _initialize_am64fbsd_nat.
198 2003-09-15 Kevin Buettner <kevinb@redhat.com>
200 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
201 associated with DW_AT_ranges attribute is out of bounds.
203 2003-09-15 David Lecomber <dsl@sources.redhat.com>
205 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
207 2003-09-14 Michael Chastain <mec@shout.net>
209 * config/m68k/nm-apollo68v.h: Delete.
210 * config/m68k/xm-apollo68v.h: Delete.
212 2003-09-14 Andrew Cagney <cagney@redhat.com>
214 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
215 * dcache.c: Update copyrights and descriptions.
216 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
218 2003-09-14 Andrew Cagney <cagney@redhat.com>
220 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
221 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
223 2003-09-14 Andrew Cagney <cagney@redhat.com>
225 * alpha-nat.c: Remove some occurances of "register".
226 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
227 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
228 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
229 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
230 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
231 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
232 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
233 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
234 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
235 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
236 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
237 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
238 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
239 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
240 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
241 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
242 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
243 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
244 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
245 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
246 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
247 * values.c, vax-tdep.c, xcoffread.c: Ditto.
249 2003-09-13 Andrew Cagney <cagney@redhat.com>
251 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
252 * ppc-tdep.h (struct regcache): Declare opaque.
253 * objfiles.h (struct objfile_data): Declare opaque.
254 * cp-support.h (struct objfile): Declare opaque.
255 * linux-nat.h (target_waitstatus): Declare opaque.
257 2003-09-14 Mark Kettenis <kettenis@gnu.org>
259 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
260 (stabs_argument_has_addr): New architecture method.
261 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
262 * arch-utils.c: Include "buildsym.h".
263 (default_stabs_argument_has_addr): New function.
264 * stabsread.c (define_symbol): Use stabs_argument_has_addr
265 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
267 * cris-tdep.c (cris_gdbarch_init): Set
268 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
269 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
270 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
271 * mips-tdep.c (mips_gdbarch_init): Likewise.
272 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
273 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
275 2003-09-13 Andrew Cagney <cagney@redhat.com>
277 * values.c (using_struct_return): Delete "function" and "funcaddr"
279 * value.h (using_struct_return): Update declaration.
280 * infcmd.c (finish_command_continuation): Update.
281 (finish_command): Update.
282 * infcall.c (call_function_by_hand): Update.
283 * eval.c (evaluate_subexp_standard): Update.
285 2003-09-13 Christopher Faylor <cgf@redhat.com>
287 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
288 SSE registers since gdb will not operate correctly without this.
289 Restore include file ordering munged in previous change.
290 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
292 2003-09-13 Mark Kettenis <kettenis@gnu.org>
294 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
296 * gdbarch.c, gdbarch.h: Updated.
297 * infcall.c (call_function_by_hand): Update.
298 * stabsread.c (define_symbol): Updated.
300 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
302 2003-09-12 Christopher Faylor <cgf@redhat.com>
304 * win32-nat.c: Reorganize so that defines used by target headers are
305 actually defined by the system headers.
306 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
307 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
309 2003-09-12 Jim Blandy <jimb@redhat.com>
311 * dbxread.c (read_dbx_symtab): Don't report an internal error if
312 the file has no .data, .bss, or .rodata sections. Instead wait
313 until we see a variable alleged to live in one of those sections.
315 * dbxread.c (read_dbx_symtab): If we have no .data section and no
316 .bss section, presume that any variables we find live in the
319 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
320 offsets for global and static variables.
322 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
323 symbol types are, by definition, in the .data section, so it is
324 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
325 If there is no .data section, there should be no N_DATA or N_DATA
328 2003-09-12 Mark Kettenis <kettenis@gnu.org>
330 * amd64fbsd-tdep.c: Fix sigtramp recognition.
331 (amd64fbsd_sigcontext_addr): Rewrite.
332 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
334 (amd64fbsd_sc_reg_offset): Initialize with correct values.
335 (amd64fbsd_init_abi): Fix typo.
337 2003-09-12 Andrew Cagney <cagney@redhat.com>
339 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
340 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
342 2003-09-12 Andrew Cagney <cagney@redhat.com>
344 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
345 "entry_file_highpc". Update comments.
346 * defs.h (deprecated_inside_entry_file): Rename
348 * blockframe.c (deprecated_inside_entry_file): Rename
350 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
351 * vax-tdep.c (vax_frame_chain): Update.
352 * sh64-tdep.c (sh64_frame_chain): Update.
353 * sh-tdep.c (sh_frame_chain): Update.
354 * rs6000-tdep.c (rs6000_frame_chain): Update.
355 * ns32k-tdep.c (ns32k_frame_chain): Update.
356 * mips-tdep.c (mips_frame_chain): Update.
357 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
358 * m32r-tdep.c (m32r_frame_this_id): Update.
359 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
360 * frv-tdep.c (frv_frame_this_id): Update.
361 * d10v-tdep.c (d10v_frame_this_id): Update.
362 * cris-tdep.c (cris_frame_chain): Update.
363 * blockframe.c (legacy_frame_chain_valid): Update.
364 * avr-tdep.c (avr_frame_this_id): Update.
365 * arm-tdep.c (arm_prologue_this_id): Update.
366 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
367 * objfiles.c (objfile_relocate): Update.
368 * mipsread.c (mipscoff_symfile_read): Update.
369 (mipscoff_symfile_read): Update.
370 * mdebugread.c (parse_partial_symbols): Update.
371 * dwarfread.c (read_file_scope): Update.
372 * dwarf2read.c (read_file_scope): Update.
373 * dbxread.c (read_dbx_symtab): Update.
374 (read_dbx_symtab): Update.
375 * coffread.c (complete_symtab): Update.
377 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
379 * top.c (quit_target): New static helper function.
380 (quit_force): Moved code to quit_target(). Call quit_target()
381 via catch_errors() to catch errors during quit.
383 2003-09-11 David Carlton <carlton@kealia.com>
385 * buildsym.c (finish_block): Use allocate_block to allocate the
387 * mdebugread.c (new_block): Add FIXME.
389 2003-09-11 David Carlton <carlton@kealia.com>
391 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
392 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
393 (recursive_dump_type): Ditto.
394 * printcmd.c (print_formatted): Ditto.
395 * typeprint.c (print_type_scalar): Ditto.
396 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
397 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
398 * cp-support.h: Declare cp_check_possible_namespace_symbols,
399 maint_cplus_cmd_list.
400 * cp-support.c: Make maint_cplus_cmd_list extern.
401 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
403 (lookup_symbol_file): Look in possible namespace blocks when
405 (initialize_namespace_symtab): New.
406 (get_possible_namespace_block, free_namespace_block)
407 (check_possible_namespace_symbols)
408 (check_possible_namespace_symbols_loop)
409 (check_one_possible_namespace_symbol)
410 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
411 (_initialize_cp_namespace): Ditto.
412 * block.h: Declare allocate_block.
413 * block.c (allocate_block): New.
414 * jv-lang.c (get_java_class_symtab): Allocate blocks via
416 * symfile.h: Update declaration of add_psymbol_to_list.
417 * symfile.c (add_psymbol_to_list): Return the partial symbol in
419 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
420 scan_partial_symbols_call.
421 (scan_partial_symbols): Add NAMESPACE argument; update calls to
423 (add_partial_symbol): If necessary, scan mangled names for names
425 (add_partial_namespace): Add NAMESPACE argument; generate partial
426 symbols associated to namespaces.
427 (add_partial_enumeration): Add NAMESPACE argument.
428 (new_symbol): Allow namespace syms.
429 (read_namespace): Generate namespace syms.
430 * objfiles.h: Add opaque declaration of struct symtab.
431 (struct objfile): Add cp_namespace_symtab member.
432 * objfiles.c (allocate_objfile): Set
433 objfile->cp_namespace_symtab.
434 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
435 dictionary_h, command_h.
437 2003-09-11 Andrew Cagney <cagney@redhat.com>
439 * rs6000-tdep.c (rs6000_push_dummy_call): Use
440 regcache_raw_write_signed to set SP_REGNUM, move the operation to
441 near the function's end.
442 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
443 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
444 regcache_raw_write_signed to set SP_REGNUM.
446 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
448 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
449 orig_addrs is set up properly.
451 2003-09-11 Andrew Cagney <cagney@redhat.com>
453 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
454 * gdbarch.h, gdbarch.c: Re-generate.
455 * infcall.c (call_function_by_hand): Update.
456 * hppa-tdep.c (hppa_push_arguments): Update.
457 * ada-lang.c (place_on_stack): Update.
458 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
459 * sparc-tdep.c (sparc_gdbarch_init): Update.
460 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
461 * hppa-tdep.c (hppa_gdbarch_init): Update.
462 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
465 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
467 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
468 register do need a frame.
470 2003-09-11 Andrew Cagney <cagney@redhat.com>
472 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
473 buildable since GDB 5.0.
474 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
475 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
476 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
477 * irix4-nat.c: Delete file.
478 * config/mips/irix4.mh: Delete file.
479 * config/mips/irix3.mh: Delete file.
480 * config/mips/irix3.mt: Delete file.
481 * config/mips/tm-irix3.h: Delete file.
482 * config/mips/nm-irix3.h: Delete file.
483 * config/mips/xm-irix3.h: Delete file.
484 * config/mips/nm-irix4.h: Delete file.
485 * config/mips/xm-irix4.h: Delete file.
486 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
488 2003-09-10 J. Brobecker <brobecker@gnat.com>
490 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
491 * Makefile.in (hppa-tdep.o): Update dependencies.
493 2003-09-10 James E Wilson <wilson@specifixinc.com>
495 * MAINTAINERS: Change my e-mail address. Move to paper trail
498 2003-09-10 Kevin Buettner <kevinb@redhat.com>
500 * MAINTAINERS (frv): New ISA entry.
502 2003-09-10 Kevin Buettner <kevinb@redhat.com>
504 * frv-tdep.c (dis-asm.h): Include.
505 * Makefile.in (frv-tdep.o): Update dependencies.
507 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
509 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
510 Fix typo for high range of floating registers.
512 2003-09-09 David Carlton <carlton@kealia.com>
514 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
515 highpc initialization here out of scan_partial_symbols.
516 (scan_partial_symbols): Restructure into a recursive version,
517 calling add_partial_namespace and add_partial_enumeration when
519 (add_partial_namespace): New.
520 (add_partial_enumeration, locate_pdi_sibling): Ditto.
522 2003-09-09 Andrew Cagney <cagney@redhat.com>
524 * rs6000-tdep.c (ppc_push_return_address): Delete function.
525 (rs6000_push_dummy_call): Set LR to BP_ADDR.
526 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
527 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
529 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
530 (rs6000_push_dummy_call): Set the "TOC" register.
532 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
533 methods "max_register_raw_size", "max_register_virtual_size" or
534 "register_virtual_size".
536 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
538 * MAINTAINERS: Update my e-mail address.
540 2003-09-09 Andrew Cagney <cagney@redhat.com>
542 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
543 (rs6000_push_dummy_call): Store the struct return address.
544 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
546 2003-09-09 Andrew Cagney <cagney@redhat.com>
548 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
549 "ppc_sysv_abi_push_arguments".
550 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
551 "ppc_sysv_abi_push_arguments".
552 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
553 instead of "push_arguments".
554 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
556 2003-09-09 Andrew Cagney <cagney@redhat.com>
558 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
559 instead of CALL_DUMMY_ADDRESS.
561 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
563 * p-lang.c: Eliminate "register".
572 * objc-lang.c: Ditto.
574 2003-09-09 Nick Clifton <nickc@redhat.com>
576 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
578 2003-09-04 Andrew Cagney <cagney@redhat.com>
580 * avr-tdep.c: Include "dis-asm.h".
581 * cris-tdep.c: Include "dis-asm.h".
582 (cris_delayed_get_disassembler): Use "struct disassemble_info"
583 instead of corresponding typedef.
584 * h8300-tdep.c: Include "dis-asm.h".
585 * ia64-tdep.c: Include "dis-asm.h".
586 * i386-tdep.c: Include "dis-asm.h".
587 (i386_print_insn): Use "struct disassemble_info" instead of
588 corresponding typedef.
589 * m68k-tdep.c: Include "dis-asm.h".
590 * mcore-tdep.c: Include "dis-asm.h".
591 * mips-tdep.c: Include "dis-asm.h".
592 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
593 instead of corresponding typedef.
594 * ns32k-tdep.c: Include "dis-asm.h".
595 * s390-tdep.c: Include "dis-asm.h".
596 * sparc-tdep.c: Include "dis-asm.h".
597 * vax-tdep.c: Include "dis-asm.h".
598 * v850-tdep.c: Include "dis-asm.h".
599 * mn10300-tdep.c: Include "dis-asm.h".
600 * rs6000-tdep.c: Include "dis-asm.h".
601 * xstormy16-tdep.c: Include "dis-asm.h".
602 (_initialize_xstormy16_tdep): Delete "extern" declaration of
603 print_insn_xstormy16.
604 * Makefile.in (v850-tdep.o): Update dependencies.
605 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
606 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
607 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
608 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
609 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
610 (gdbarch_h): Remove $(dis_asm_h).
611 * disasm.c: Include "dis-asm.h".
612 (dis_asm_read_memory): Use "struct disassemble_info" instead of
613 corresponding typedef.
614 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
615 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
616 * gdbarch.sh: Do not include "dis-asm.h".
617 (struct disassemble_info): Declare opaque.
618 (TARGET_PRINT_INSN): Update declaration.
619 * gdbarch.h, gdbarch.c: Re-generate.
621 2003-09-08 Andrew Cagney <cagney@redhat.com>
623 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
624 CALL_DUMMY_ADDRESS, change to a predicate.
625 * gdbarch.h, gdbarch.c: Re-generate.
626 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
627 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
628 * infcall.c (call_function_by_hand): Ditto.
629 * sparc-tdep.c (sparc_push_return_address): Ditto.
630 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
631 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
632 CALL_DUMMY_ADDRESS with entry_point_address.
633 * v850-tdep.c (v850_push_return_address): Ditto.
634 * s390-tdep.c (s390_push_return_address): Ditto.
635 * rs6000-tdep.c (ppc_push_return_address): Ditto.
636 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
637 * mcore-tdep.c (mcore_push_return_address): Ditto.
638 * cris-tdep.c (cris_push_return_address): Ditto.
639 * arm-tdep.c (arm_push_return_address): Ditto.
641 2003-09-08 Andrew Cagney <cagney@redhat.com>
643 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
644 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
645 and REG_UNMODIFIED to REG_SAME_VALUE.
646 (execute_cfa_program): Update.
647 (dwarf2_frame_cache): Update. Initialize table to
648 REG_UNSPECIFIED, complain if CFI fails to specify a register's
650 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
652 2003-09-08 Andrew Cagney <cagney@redhat.com>
654 * gnu-nat.c: Remove "inline" function attribute.
655 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
657 2003-09-08 Kevin Buettner <kevinb@redhat.com>
659 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
662 2003-09-08 Kevin Buettner <kevinb@redhat.com>
664 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
665 (frame_extra_info): Rename this struct to frv_unwind_cache.
666 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
667 Add fields ``prev_sp'' and ``base''.
668 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
669 (frv_saved_pc_after_call, frv_init_extra_frame_info)
670 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
672 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
673 Revise all callers. Fill in the unwind cache argument and make
674 other adjustments to account for new frame mechanisms.
675 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
676 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
677 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
678 (frv_frame_unwind, frv_frame_base): New structs.
679 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
680 additional arguments expected by this method and adjust function
682 (frv_gdbarch_init): Remove calls to the following functions:
683 set_gdbarch_deprecated_init_frame_pc(),
684 set_gdbarch_deprecated_saved_pc_after_call(),
685 set_gdbarch_deprecated_frame_chain(),
686 set_gdbarch_deprecated_frame_saved_pc(),
687 set_gdbarch_deprecated_frame_init_saved_regs(),
688 set_gdbarch_deprecated_push_arguments(),
689 set_gdbarch_deprecated_push_return_address(),
690 set_gdbarch_deprecated_pop_frame(),
691 set_gdbarch_deprecated_call_dummy_words(),
692 set_gdbarch_deprecated_sizeof_call_dummy_words(),
693 set_gdbarch_deprecated_init_extra_frame_info(),
694 set_gdbarch_deprecated_dummy_write_sp(), and
695 set_gdbarch_deprecated_pc_in_call_dummy().
696 Add calls to the following functions:
697 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
698 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
699 frame_base_set_default().
700 * Makefile.in (frv-tdep.o): Update dependencies.
702 2003-09-09 Mark Kettenis <kettenis@gnu.org>
704 * dwarf2-frame.c (read_encoded_value): Add support for
705 DW_EH_PE_aligned encoding.
707 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
709 * infrun.c (normal_stop): Don't print a message if the inferior
712 2003-09-08 Jim Blandy <jimb@redhat.com>
714 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
715 * dbxread.c: #include "gdb_assert.h".
716 (read_dbx_symtab): If the objfile has no .data section, use the
717 section index for the .bss section instead.
719 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
721 * frame.c (deprecated_safe_get_selected_frame): New function.
722 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
723 * findvar.c (read_var_value): Call it.
725 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
727 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
728 (sh64-tdep.o): Add dependencies.
729 * configure.tgt: Add FIXME to sh-*-linux*.
730 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
731 (sh_gdbarch_init): Always set correct sh_show_regs function
732 pointer. Call sh64_gdbarch_init() if machine type is sh5.
733 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
734 * sh64-tdep.c: New file, containing all sh64 related code from
736 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
737 * config/sh/linux.mt (TDEPFILES): Ditto.
738 * config/sh/nbsd.mt (TDEPFILES): Ditto.
739 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
740 * config/sh/wince.mt (TDEPFILES): Ditto.
742 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
744 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
745 (stop_wait_callback): Handle !lp->signalled also.
746 (lin_lwp_has_pending, flush_callback): New functions.
747 (lin_lwp_wait): Call flush_callback.
748 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
749 (linux_proc_pending_signals): New function.
750 * linux-nat.h (linux_proc_pending_signals): Add prototype.
752 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
754 From Nick Kelsey <nickk@ubicom.com>:
755 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
756 when the stop PC is at the beginning of a function also.
758 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
760 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
761 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
763 2003-09-06 Mark Kettenis <kettenis@gnu.org>
765 * sol-thread.c: Include "gdb_string.h".
767 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
769 * gcore.c: Reorder include files in alphabetical order. Include
770 "gdb_assert.h". Various coding style fixes.
771 (derive_stack_segment, derive_heap_segment): Replace check for
772 non-null BOTTOM and TOP with gdb_assert.
773 (derive_heap_segment): Replace check for successful creation of
774 ZERO with gdb_assert.
775 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
777 2003-09-04 Andrew Cagney <cagney@redhat.com>
779 * thread-db.c (verbose_dlsym): New function.
780 (thread_db_load): Use verbose_dlsym
781 (thread_db_new_objfile): Print that libthread_db was loaded, and
782 that thread debugging was enabled.
784 2003-09-04 Andrew Cagney <cagney@redhat.com>
786 * configure.tgt: Add "mips64*-*-*" target. Delete
787 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
788 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
789 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
790 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
791 mips*-sony-*, and mips64*-*-elf* targets.
792 * config/mips/embedl.mt: Delete file.
793 * config/mips/embedl64.mt: Delete file.
794 * config/mips/mips.mt: Delete file.
795 * config/mips/mips64.mt: Delete file.
796 * config/mips/tm-embed.h: Delete file.
797 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
798 * config/mips/embed64.mt: Delete out-of-date comment.
800 2003-09-04 Andrew Cagney <cagney@redhat.com>
802 * hppa-tdep.c (hppa_gdbarch_init): Set
803 "have_nonsteppable_watchpoint".
804 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
805 * mips-tdep.c (mips_dump_tdep): Do not print
806 HAVE_NONSTEPPABLE_WATCHPOINT.
807 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
808 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
809 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
810 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
812 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
814 * breakpoint.c (watchpoint_check): Remove accidentally checked in
815 unused code. Add comment.
817 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
819 * breakpoint.c (watchpoint_check): Check for pc being in an
820 epilogue if watchpoint frame couldn't be found.
822 2003-09-04 Andrew Cagney <cagney@redhat.com>
824 * Makefile.in: Re-generate all dependencies.
826 2003-09-03 Andrew Cagney <cagney@redhat.com>
828 * arch-utils.h (legacy_print_insn): Delete declaration.
829 * arch-utils.c (legacy_print_insn): Delete function.
830 * disasm.c (deprecated_tm_print_insn_info): Delete.
831 (_initialize_disasm): Delete function, contained code initializing
832 deprecated_tm_print_insn_info.
833 * gdbarch.sh (deprecated_tm_print_insn): Delete.
834 (deprecated_tm_print_insn_info): Delete.
835 (TARGET_PRINT_INSN): Do not provide a default.
836 * gdbarch.h, gdbarch.c: Re-generate.
838 2003-09-03 Andrew Cagney <cagney@redhat.com>
840 * disasm.c (fprintf_disasm): New function.
841 (gdb_disassemble_info): Call "init_disassemble_info", instead of
842 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
843 reverts 2003-08-14 change.
844 (_initialize_disasm): Call "init_disassemble_info", instead of
845 INIT_DISASSEMBLE_INFO_NO_ARCH.
847 2003-09-03 Michael Snyder <msnyder@redhat.com>
849 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
851 2003-09-03 Andrew Cagney <cagney@redhat.com>
853 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
854 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
855 * symfile.c (syms_from_objfile): Update.
856 (reread_symbols): `Update
857 * exec.c (exec_file_attach): Update.
858 (exec_file_attach): Update.
859 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
861 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
863 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
865 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
867 (arm_get_cache): Delete macro.
868 (struct arm_prologue_cache): Update comments. Make saved_regs into
869 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
871 (thumb_scan_prologue): Update for cache changes. Don't call
872 DEPRECATED_PC_IN_CALL_DUMMY.
873 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
874 argument and use it in desperation search for our prologue. Do not
875 search past the specified PC.
876 (arm_make_prologue_cache): Simplify.
878 (arm_prologue_this_id, arm_prologue_prev_register)
879 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
880 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
881 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
882 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
883 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
885 (arm_frame_chain_valid, arm_find_callers_reg)
886 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
887 (arm_pop_frame): Delete obsolete methods.
888 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
890 (arm_gdbarch_init): Update for new frame methods. Register prologue
891 and sigtramp unwinders. Set the default frame base method.
893 * Makefile.in (arm-tdep.o): Update dependencies.
894 * varobj.c (find_frame_addr_in_frame_chain): Call
895 get_frame_base_address.
896 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
898 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
900 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
901 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
902 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
903 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
904 Take NEXT_FRAME and CACHE arguments. Call
905 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
906 Set unwound_pc in CACHE instead of modifying the frame argument.
907 Don't bother checking the frame type when looking for sigtramp
909 (arm_make_prologue_cache, arm_frame_chain)
910 (arm_init_extra_frame_info): New functions.
912 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
914 * arm-tdep.c (arm_get_cache): Define.
915 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
916 unwound_sp, unwound_pc, and saved_regs.
917 (thumb_scan_prologue): Take a cache instead of the frame.
918 (arm_scan_prologue): Likewise.
919 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
920 instead of a temporary frame.
921 (arm_init_extra_frame_info): Allocate and use a cache.
922 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
924 2003-09-03 Andrew Cagney <cagney@redhat.com>
926 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
927 * config/mips/wince.mt (TM_CLIBS): Ditto.
928 * config/sh/wince.mt (TM_CLIBS): Ditto.
929 * config/pa/hppa64.mt (TM_CLIBS): Delete.
930 * config/sparc/sp64.mt (CC): Delete.
932 2003-09-03 Andrew Cagney <cagney@redhat.com>
934 * defs.h: Do not include "arch-utils.h".
935 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
937 * configure.in (GDB_MULTI_ARCH): Do not define.
938 * configure, config.in: Regenerate.
939 * configure.tgt: Do not set variable "gdb_multi_arch".
940 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
941 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
942 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
943 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
944 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
945 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
946 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
947 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
948 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
949 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
950 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
951 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
952 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
953 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
954 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
955 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
956 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
957 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
959 2003-08-30 Michael Chastain <mec@shout.net>
961 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
962 * config/m68k/nm-hp300hpux.h: Delete.
963 * config/m68k/tm-hp300hpux.h: Delete.
964 * config/m68k/xm-hp300hpux.h: Delete.
965 * config/m68k/xm-hp300bsd.h: Delete.
966 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
967 tm-hp300hpux.h, xm-hp300hpux.h.
968 * somsolib.c: Remove comment about hp300 shared libraries.
970 2003-08-31 Mark Kettenis <kettenis@gnu.org>
972 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
973 Only define PTRACE_GET_THREAD_AREA is not already defined.
974 Various style fixes in code and comments and some additional
975 spelling fixes in comments. Move after functions dealing with
977 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
980 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
981 frame_unwind_register_unsigned instead of
982 frame_unwind_unsigned_register.
984 2003-08-30 Mark Kettenis <kettenis@gnu.org>
986 * configure.in: Search for gethostbyname in libnsl.
987 * configure: Regenerated.
989 2003-08-29 Mark Kettenis <kettenis@gnu.org>
991 * configure.in: Remove redundant AC_MSG_RESULT in check for
992 uintptr_t in stdint.h.
993 * configure: Regenerated.
995 * amd64-nat.h (struct regcache): Add opaque declaration.
997 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
998 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
999 Change "register array" to "register cache" in comments.
1000 (x86_64_linux_gregset64_reg_offset): New variable.
1001 (GETREGS_SUPPLIES): Remove macro.
1002 (supply_gregset): Call amd64_supply_native_gregset instead of
1003 x86_64_linux_supply_gregset.
1004 (fill_gregset): Rename `regno' to `regnum'. Call
1005 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1006 (store_regs): Rename `regno' to `regnum'.
1007 (store_fpregs): Rename `regno' to `regnum'.
1008 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1009 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1010 Reorganize function a bit.
1011 (store_inferior_registers): Rename `regno' to `regnum'. Use
1012 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1013 Reorganize function a bit.
1014 (_initialize_x86_64_linux_nat): New function.
1015 * config/i386/x86-64linux.mh.
1017 2003-08-29 Andrew Cagney <cagney@redhat.com>
1019 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1020 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1021 (target_remove_watchpoint): Delete macro.
1022 (target_insert_watchpoint): Delete macro.
1023 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1024 (remote_mips_stopped_by_watchpoint): Delete declaration.
1025 (remote_mips_remove_watchpoint): Delete declaration.
1026 (remote_mips_set_watchpoint): Delete declaration.
1027 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1028 * remote-mips.c (_initialize_remote_mips): Set
1029 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1030 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1031 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1032 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1033 (mips_stopped_by_watchpoint): Rename
1034 remote_mips_stopped_by_watchpoint.
1035 (mips_can_hardware_watchpoint): Rename
1036 remote_mips_can_use_hardware_watchpoint, update function
1039 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1041 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1042 USER_DS. We haven't given them a register number yet.
1044 * amd64-nat.h: New file.
1045 * amd64-nat.c: New file.
1046 * amd64fbsd-nat.c: Include "amd64-nat.h".
1047 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1048 (amd64fbsd32_r_reg_offset): New variable.
1049 (supply_gregset): Simply call amd64_supply_native_gregset.
1050 (fill_gregset): Rename `regno' to `regnum'. Simply call
1051 amd64_collect_native_gregset.
1052 (fill_fpregset): Rename `regno' to `regnum'.
1053 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1054 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1055 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1056 `fpregset_t'. Call amd64_supply_native_gregset instead of
1057 supply_gregset. Call x86_64_supply_fxsave instead of
1059 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1060 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1061 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1062 `fpregset_t'. Call amd64_collect_native_gregset instead of
1063 fill_gregset. Call x86_64_collect_fxsave instead of
1065 (_initialize_am64fbsd_nat): Initialize
1066 amd64_native_gregset32_reg_offset and
1067 amd64_native_gregset64_reg_offset.
1068 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1070 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1071 null pointer. Fix typo in comment.
1073 * regcache.c (supply_register): Reimplement to call
1074 regcache_raw_supply.
1075 (regcache_collect): Reimplement by calling regcache_raw_collect.
1077 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1079 * regcache.c (register_buffer): Consitify first argument.
1080 (regcache_raw_supply, regcache_raw_collect): New
1083 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1085 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1086 by Nathan J. Williams.
1088 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1090 * lin-lwp.c (wait_lwp): New function, copied from
1091 stop_wait_callback. Clean up.
1092 (stop_wait_callback): Use wait_lwp.
1094 2003-08-28 Andrew Cagney <cagney@redhat.com>
1096 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1097 flavour and disassembler options.
1098 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1099 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1100 deprecated_tm_print_insn_info.
1102 2003-08-27 Andrew Cagney <cagney@redhat.com>
1104 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1105 Use target_read_memory.
1106 (s390_get_frame_info): Update. Do not reference
1107 deprecated_tm_print_insn_info.
1108 (s390_check_function_end, s390_is_sigreturn): Ditto.
1110 2003-08-27 Andrew Cagney <cagney@redhat.com>
1112 * Makefile.in (cris-tdep.o): Update dependencies.
1113 * cris-tdep.c: Include "gdb_assert.h".
1114 (cris_gdbarch_init): Set print_insn.
1115 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1116 (cris_delayed_get_disassembler): Simplify, directly call the
1117 disassembler returned by cris_get_disassembler.
1118 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1119 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1120 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1121 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1122 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1123 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1124 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1125 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1126 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1127 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1128 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1129 (gdb_print_insn_sparc): Delete function.
1130 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1131 deprecated_tm_print_insn_info.
1132 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1133 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1134 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1135 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1136 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1137 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1138 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1139 (s390_gdbarch_init): Set print_insn.
1141 2003-08-27 Andrew Cagney <cagney@redhat.com>
1143 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1144 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1145 * infcall.c (call_function_by_hand): Convert the entry point
1146 address into a code address.
1148 2003-08-27 Andrew Cagney <cagney@redhat.com>
1150 * dsrec.c: Include "gdb_string.h".
1151 * Makefile.in (dsrec.o): Update dependencies.
1153 2003-08-27 Michael Chastain <mec@shout.net>
1155 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1157 2003-08-27 Andrew Cagney <cagney@redhat.com>
1159 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1160 (alpha_osf1_init_abi): Do not set call_dummy_address.
1162 2003-08-27 David Carlton <carlton@kealia.com>
1164 From Randolph Chung <tausq@debian.org>:
1165 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1166 compiles with -Wformat-nonliteral -Werror.
1168 2003-08-26 Jim Blandy <jimb@redhat.com>
1170 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1171 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1172 bfd_lookup_symbol, since we only want symbols in code sections.
1173 (look_for_base): Pass zero as the SECT_FLAGS argument to
1174 bfd_lookup_symbol, since we're not concerned about which section
1177 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1179 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1180 we are frameless or the return address register is already known.
1182 2003-08-26 Andrew Cagney <cagney@redhat.com>
1184 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1185 in size. Add comments.
1187 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1189 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1190 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1192 2003-08-26 Jason Merrill <jason@redhat.com>
1194 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1195 case out of #ifdef MIPS block.
1197 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1200 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1201 available before calling SECT_OFF_TEXT.
1202 * PROBLEMS: Remove description of java/1322.
1204 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1206 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1207 bof, and nat0-nat127 as pseudo-registers.
1208 (ia64_frame_cache): New struct used to cache frame info.
1209 (ia64_register_reggroup_p): New routine used to override default
1210 register grouping so registers without names are still saved and
1212 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1214 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1215 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1216 (ia64_alloc_frame_cache): New routine to create a new
1218 (examine_prologue): Change prototype to add next_frame pointer.
1219 Assume frameless until otherwise proven. Verify that the cfm for
1220 current frame matches the cfm that should occur for the prologues
1221 alloc insn and if equal, mark as not frameless. At end of routine,
1222 if not frameless, calculate registers for the previous frame and store
1223 in the cache, if a cache is provided.
1224 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1225 and pass 0 for next_frame.
1226 (ia64_store_return_value): Change to use convert_typed_floating()
1227 instead of calling ia64_convert_to_raw().
1228 (ia64_extract_return_value): Change to use convert_typed_floating()
1229 instead of calling ia64_convert_to_virtual().
1230 (ia64_frame_cache): New routine to support new frame model.
1231 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1232 (ia64_frame_sniffer): Ditto.
1233 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1234 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1235 (ia64_sigtramp_frame_prev_register): Ditto.
1236 (ia64_sigtramp_frame_sniffer): Ditto.
1237 (ia64_frame_base_address): Ditto.
1238 (ia64_extract_struct_value_address): Change to issue error message.
1239 (ia64_frame_align): New routine to align sp.
1240 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1241 (ia64_push_arguments): Removed. Logic moved to
1242 ia64_push_dummy_call().
1243 (ia64_push_return_address): Ditto.
1244 (ia64_unwind_dummy_id): New function.
1245 (ia64_unwind_pc): Ditto.
1246 (ia64_convert_register_p): Ditto.
1247 (ia64_register_to_value): Ditto.
1248 (ia64_value_to_register): Ditto.
1249 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1250 (ia64_register_byte, ia64_register_raw_size): Ditto.
1251 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1252 (ia64_saved_pc_after_call): Ditto.
1253 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1254 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1255 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1256 (ia64_register_convert_to_raw): Ditto.
1257 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1258 (ia64_init_extra_frame_info): Ditto.
1259 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1260 (ia64_gdbarch_init): Remove registering of deprecated functions that
1261 are no longer used. Add registration of new gdbarch functions.
1262 Remove registering deprecated_write_sp. Replace
1263 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1264 Delete set_gdbarch_deprecated_register_convertible(),
1265 set_gdbarch_deprecated_register_convert_to_virtual(), and
1266 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1267 set_gdbarch_deprecated_register_size(),
1268 set_gdbarch_deprecated_register_bytes(),
1269 set_gdbarch_pcregnum(),
1270 set_gdbarch_deprecated_register_byte(),
1271 set_gdbarch_deprecated_register_raw_size(),
1272 set_gdbarch_deprecated_max_register_raw_size(),
1273 set_gdbarch_deprecated_register_virtual_size(),
1274 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1275 Replace set_gdbarch_deprecated_extract_return_value() with
1276 set_gdbarch_extract_return_value(). Remove calls to:
1277 set_gdbarch_deprecated_saved_pc_after_call();
1278 set_gdbarch_deprecated_frame_chain(),
1279 set_gdbarch_deprecated_frame_saved_pc(),
1280 set_gdbarch_deprecated_frame_init_saved_regs(),
1281 set_gdbarch_deprecated_get_saved_register(),
1282 set_gdbarch_deprecated_call_dummy_words(),
1283 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1284 set_gdbarch_deprecated_init_extra_frame_info(),
1285 set_gdbarch_deprecated_frame_args_address(),
1286 set_gdbarch_deprecated_frame_locals_address(),
1287 and set_gdbarch_deprecated_dummy_write_sp().
1288 Add set_gdbarch_convert_register_p(),
1289 set_gdbarch_register_to_value(),
1290 set_gdbarch_value_to_register(),
1291 set_gdbarch_push_dummy_call(),
1292 set_gdbarch_frame_align(),
1293 set_gdbarch_unwind_dummy_id(),
1294 set_gdbarch_unwind_pc(),
1295 frame_unwind_append_sniffer(),
1296 frame_unwind_append_sniffer(),
1297 and frame_base_set_default().
1299 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1301 * configure.tgt: Document need for special "mipsisa64" handling.
1302 (mipsisa64*-*-linux64): Handle as target linux64.
1303 (mipsisa64*-*-*): Handle as target embed64.
1305 2003-08-18 Michael Chastain <mec@shout.net>
1307 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1310 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1312 * i387-tdep.h: Update copyright date.
1313 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1315 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1316 CFLAGS games to reflect reality.
1318 2003-08-24 Andrew Cagney <cagney@redhat.com>
1320 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1321 GDB_MULTI_ARCH is always non-zero.
1322 * osabi.c (_initialize_gdb_osabi): Ditto.
1323 (gdbarch_init_osabi): Ditto.
1324 * sparc-tdep.c: Ditto for #if code.
1326 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1328 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1330 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1332 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1333 x86_64_supply_fxsave.
1334 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1335 x86_64_supply_fxsave.
1336 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1337 x86_64_supply_fxsave.
1339 2003-08-23 Andreas Jaeger <aj@suse.de>
1341 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1344 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1346 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1347 i387_supply_register.
1348 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1349 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1351 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1353 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1355 * i386bsd-nat.c (supply_fpregset): Adjust call to
1357 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1358 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1360 (store_inferior_registers): Remove extraneous whitespace. Call
1361 i387_fill_fsave instead of fill_fpregset.
1362 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1363 (supply_fpregset): Likewise.
1364 * i386v4-nat.c (supply_fpregset): Adjust call to
1366 * i386-interix-nat.c (supply_fpregset): Adjust call to
1368 * i386-linux-nat.c (supply_fpregset): Adjust call to
1370 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1371 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1372 i387supply_fsave and i387_supply_fxsave.
1373 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1374 Incorporate code from `i387_supply_register.
1375 (i387_supply_register): Remove.
1376 (i387_supply_fxsave): Add `regnum' argument.
1378 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1380 (i387_supply_register): remove prototype.
1383 2003-08-22 Michael Chastain <mec@shout.net>
1385 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1386 Add lines for files in gdb/testsuite/gdb.cp/* that are
1387 still not 8.3 unique.
1389 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1391 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1392 TYPE_VPTR_FIELDNO is valid.
1394 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1396 * utils.c (set_width_command): Remove prototypes.
1397 (set_screen_size): New prototype.
1398 (init_page_info): Simplify by fetching the screen size from
1399 Readline. Call set_screen_size.
1400 (set_screen_size): New function.
1401 (set_width): Add missing whitespace in comment.
1402 (set_width_command): Call set_screen_size.
1403 (set_height_command): New function.
1404 (initialize_utils): Fix formatting. Make "set height" command
1405 call set_height_command. Remove redundant code that turns off
1406 pagination if output isn't a terminal. Remove redundant call to
1409 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1411 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1412 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1413 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1414 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1416 (sparc64_register_info): Give the reister with number
1417 SPARC64_STATE_REGNUM a name.
1418 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1420 (sparc64_push_dummy_call): Take BIAS into account when checking
1422 (sparc_software_single_step): Remove assertions that check whether
1423 NPC and NNPC were zero.
1424 (sparc_supply_rwindow): Make public. Merge functionality with
1425 sparc64_supply_rwindow.
1426 (sparc_fill_rwindow): Make public. Merge functionality with
1427 sparc64_fill_rwindow.
1428 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1429 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1430 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1431 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1432 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1434 * reggroups.c: Add whitespace after declarations of local
1435 variables in functions.
1437 2003-08-21 Michael Chastain <mec@shout.net>
1439 * gdbtypes.h: Change array bound type from an int to enum.
1441 2003-08-21 Andrew Cagney <cagney@redhat.com>
1443 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1444 * config/sparc/tm-sparc.h: Ditto.
1445 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1447 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1449 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1451 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1452 (register_objfile_data, set_objfile_data, objfile_data): New
1454 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1456 (allocate_objfile): Call objfile_alloc_data.
1457 (free_objfile): Call objfile_free_data.
1458 (struct objfile_data): New.
1459 (struct objfile_data_registration): New.
1460 (struct objfile_data_registry): New.
1461 (objfile_data_registry): New variable.
1462 (register_objfile_data): New function.
1463 (objfile_alloc_data, objfile_free_data): New functions.
1464 (set_objfile_data, objfile_data): New functions.
1465 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1466 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1467 (_initialize_dwarf2_frame): New function and prototype.
1469 2003-08-21 Andrew Cagney <cagney@redhat.com>
1471 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1472 a specific architecture.
1473 * arch-utils.h (set_architecture_from_arch_mach): Delete
1475 (target_architecture_hook): Delete declaration.
1476 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1477 (default_float_format): Assume GDB_MULTI_ARCH.
1478 (default_double_format): Assume GDB_MULTI_ARCH.
1479 (set_endian_from_file): Delete function.
1480 (arch_ok): Delete function.
1481 (set_arch): Delete function.
1482 (set_architecture_from_arch_mach): Delete function.
1483 (set_architecture_from_file): Delete function.
1484 (set_architecture): Assume GDB_MULTI_ARCH.
1485 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1487 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1489 Rewrite FreeBSD/sparc64 native configuration.
1490 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1491 * sparc64fbsd-nat.c: New file.
1492 * sparc64fbsd-tdep.c: New file.
1493 * sparc64-tdep.c sparc64-tdep.h: New files.
1494 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1495 sparc64fbsd-tdep.o): New dependencies.
1496 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1497 and sparc64fbsd-tdep.c.
1498 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1499 * config/sparc/fbsd.mh: Remove copyright notice.
1500 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1502 * config/sparc/fbsd.mt: Remove copyright notice.
1503 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1504 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1505 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1506 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1507 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1508 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1509 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1510 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1512 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1513 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1515 2003-08-21 Michael Chastain <mec@shout.net>
1517 * symtab.h: Add doco on the space critical structures and
1518 some measurements of space usage.
1520 2003-08-21 Michael Snyder <msnyder@redhat.com>
1522 * tracepoint.c (trace_dump_command): Trace break address
1523 is subject to DECR_PC_AFTER_BREAK.
1524 (set_traceframe_context): Make "trace_line" an int.
1525 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1527 2003-08-20 Michael Snyder <msnyder@redhat.com>
1529 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1530 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1531 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1533 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1534 functions, replace sh_push_dummy_call.
1535 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1537 2003-08-20 Michael Chastain <mec@shout.net>
1539 * gdbtypes.h (struct main_type): Rearrange to save space.
1541 2003-08-20 Michael Snyder <msnyder@redhat.com>
1543 * trad-frame.c: Comment typo fix.
1545 2003-08-20 Michael Snyder <msnyder@redhat.com>
1546 Kevin Buettner <kevinb@redhat.com>
1548 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1549 (frv_frame_init_saved_regs): Add declaration.
1550 (frame_extra_info): Add new field ``saved_regs''.
1551 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1552 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1553 Update frame related code.
1554 (frv_extract_struct_value_address): Adjust formatting.
1555 * Makefile.in (frv-tdep.o): Update dependencies.
1556 * config/frv/tm-frv.h (target_insert_watchpoint)
1557 (target_remove_watchpoint, target_insert_hw_breakpoint)
1558 (target_remove_hw_breakpoint): Delete these macros.
1559 (remote_insert_watchpoint, remote_remove_watchpoint)
1560 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1563 2003-08-20 Michael Chastain <mec@shout.net>
1565 * defs.h (ENUM_BITFIELD): New macro.
1566 * symtab.h (ENUM_BITFIELD): Use it.
1567 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1569 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1571 * MAINTAINERS (write after approval): Add myself.
1573 2003-08-18 Andrew Cagney <cagney@redhat.com>
1575 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1576 * gdbarch.h, gdbarch.c: Re-generate.
1577 * infcall.c (call_function_by_hand): Adjust the SP by
1578 frame_red_zone_size before allocating any stack space.
1579 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1580 * x86-64-tdep.c (x86_64_frame_align): New function.
1581 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1583 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1584 Remove code adjusting SP so that it skips over the Red Zone.
1586 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1588 * NEWS (New native configurations): Mention FreeBSD/amd64.
1590 2003-08-18 Andrew Cagney <cagney@redhat.com>
1592 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1593 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1595 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1597 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1599 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1601 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1603 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1605 * i386-linux-nat.c: Include "linux-nat.h".
1606 (child_post_startup_inferior): New function.
1608 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1610 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1611 at the start of a frameless function. This probably fixes PR
1614 2003-08-17 Michael Chastain <mec@shout.net>
1616 * symfile.c (find_sym_fns): Remove special case for apollo target.
1618 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1620 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1621 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1622 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1623 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1624 (linux_supports_tracevforkdone): New function.
1625 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1627 (child_follow_fork): Handle vfork.
1628 (linux_handle_extended_wait): Likewise. Also handle exec.
1629 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1630 * NEWS: Mention fork tracing.
1632 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1634 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1636 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1638 * Makefile.in (i386-linux-nat.o): Update dependencies.
1639 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1640 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1641 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1642 * i386-linux-nat.c: Include "linux-nat.h".
1643 (child_post_startup_inferior): New function.
1644 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1645 * infptrace.c (kill_inferior): Wrap in #ifdef.
1646 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1647 attaching to each LWP.
1648 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1649 (init_lin_lwp_ops): Fill in some more operations.
1650 * linux-nat.h (linux_enable_event_reporting)
1651 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1653 * linux-nat.c (linux_enable_event_reporting): New function.
1654 (child_post_attach, linux_child_post_startup_inferior)
1655 (child_post_startup_inferior, child_follow_fork)
1656 (linux_handle_extended_wait, kill_inferior): New functions.
1658 2003-08-16 Andrew Cagney <cagney@redhat.com>
1660 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1661 * gdbarch.h, gdbarch.c: Re-generate.
1663 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1665 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1667 2003-08-16 Andrew Cagney <cagney@redhat.com>
1669 * NEWS: Mention that "set prompt-escape-char" was deleted.
1670 * top.c (get_prompt_1): Delete function.
1671 (gdb_prompt_escape):
1672 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1673 prompt-escape-char" command.
1674 (MAX_PROMPT_SIZE): Delete macro.
1675 (get_prompt): Simplify, do not call get_prompt_1.
1677 2003-08-16 Andrew Cagney <cagney@redhat.com>
1679 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1680 -Werror. -Wformat-nonliteral problems.
1682 2003-08-15 J. Brobecker <brobecker@gnat.com>
1684 Further multiarching work mostly for hppa64-*-hpux11:
1685 * hppa-tdep.h: New file.
1686 * hppa-tdep.c: #include hppa-tdep.c.
1687 (hppa32_num_regs): Renamed from hppa_num_regs.
1688 (hppa64_num_regs): New constant.
1689 (hppa64_call_dummy_breakpoint_offset): New constant.
1690 (hppa32_call_dummy_length): New constant.
1691 (hppa64_call_dummy_length): New constant.
1692 (hppa32_stack_align): Make name 32bit explicit.
1693 (hppa32_register_virtual_type): Likewise.
1694 (hppa32_extract_return_value): Likewise.
1695 (hppa32_use_struct_convention): Likewise.
1696 (hppa32_store_return_value): Likewise.
1697 (hppa64_register_virtual_type): New function.
1698 (hppa64_extract_return_value): New function.
1699 (hppa64_use_struct_convention): New function.
1700 (hppa64_store_return_value): New function.
1701 (hppa_frame_locals_address): Remove declaration, function does
1703 (hppa_register_byte): Add support for PA64 ABI.
1704 (hppa_gdbarch_init): Add support for PA64 ABI.
1705 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1706 Make name 32bit explicit.
1707 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1708 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1709 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1710 (hppa64_hpux_frame_base_before_sigtramp): New function.
1711 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1712 * config/pa/tm-hppa64.h: Remove macros that are no longer
1713 necessary now that the gdbarch vector is properly setup.
1714 Transform some macros into function calls. Some minor cleanup.
1715 * config/pa/tm-hppah.h: Update function calls in macros
1716 following the function renaming in hppa-hpux-tdep.c.
1717 * Makefile.in (hppa_tdep_h): New variable.
1718 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1720 2003-08-14 Michael Snyder <msnyder@redhat.com>
1722 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1724 2003-08-13 J. Brobecker <brobecker@gnat.com>
1726 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1727 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1730 2003-08-13 Michael Snyder <msnyder@redhat.com>
1732 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1733 (frv_saved_pc_after_call): Use deprecated ftype.
1734 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1735 (frv_remote_translate_xfer_address): Remove.
1736 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1738 2003-08-13 J. Brobecker <brobecker@gnat.com>
1740 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1741 initialization after the common gdbarch initialization, not before.
1743 2003-08-13 J. Brobecker <brobecker@gnat.com>
1745 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1746 (ADDR_BITS_REMOVE): Remove, redundant.
1748 2003-08-13 J. Brobecker <brobecker@gnat.com>
1750 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1751 gdbarch method to clear the 2 low bits of text addresses.
1753 2003-08-12 Andrew Cagney <cagney@redhat.com>
1755 * Makefile.in (dsrec.o): Update dependencies.
1756 * dsrec.c: Include "gdb_assert.h".
1757 (make_srec): Use snprintf instead of sprintf, use a literal format
1760 2003-08-12 Andrew Cagney <cagney@redhat.com>
1762 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1763 FRAME_OBSTACK_ZALLOC.
1765 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1767 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1770 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1772 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1773 amd64fbsd_sc_reg_offset): Add extern declarations.
1774 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1777 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1779 * MAINTAINERS (write after approval): Update my mail address.
1781 2003-08-10 Andrew Cagney <cagney@redhat.com>
1783 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1785 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1787 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1788 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1789 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1790 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1791 i386bsd_sc_reg_offset): Add extern declarations.
1792 * i386obsd-nat.c: Include "i386-tdep.h"
1793 (_initialize_i386obsd_nat): Remove extern declarations.
1794 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1796 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1799 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1800 instead of frame_read_register.
1801 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1802 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1804 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1805 instead of frame_unwind_unsigned_register. Use
1806 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1807 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1808 instead of read_register. Use builtin_type_void_data_ptr instead
1809 of builtin_type_void_func_ptr when extracting the address of the
1811 (i386_extract_return_value, i386_store_return_value,
1812 i386_pseudo_register_read, i386_pseudo_register_write): Use
1813 register_size instead REGISTER_RAW_SIZE.
1815 2003-08-10 Andrew Cagney <cagney@redhat.com>
1817 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1818 sprintf. Make "name" constant.
1820 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1822 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1823 instead of frame_read_register.
1824 (i387_print_float_info): Use get_frame_register and
1825 get_frame_register_unsigned instead of frame_register_read.
1827 * i386fbsd-nat.c: Include "i386-tdep.h".
1828 (child_resume): Make `eflags' an ULONGEST. Use
1829 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1830 instead of register_read and register_write.
1832 * i386bsd-nat.c (fetch_inferior_registers,
1833 store_inferior_registers): Don't use && at the end of a line.
1834 (_initialize_i386bsd_nat): Fix typo.
1836 * frame.c (_initialize_frame): Add missing backslash.
1838 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1839 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1840 and supply_register instead of manipulating the register buffer
1843 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1844 * config/i386/nm-i386sol2.h
1845 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1847 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1848 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1849 instructions that GCC likes to mingle into the prologue. Fixes
1850 gdb/1253 and gdb/1255.
1852 2003-08-09 Andrew Cagney <cagney@redhat.com>
1855 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1856 * command.h (add_setshow_uinteger_cmd): Declare.
1857 * frame.c (set_backtrace_cmd): New function.
1858 (show_backtrace_cmd): New function.
1859 * frame.c (_initialize_frame): Replace "set/show
1860 backtrace-below-main" with "set/show backtrace past-main". Add
1861 command "set/show backtrace limit".
1862 (backtrace_past_main): Rename "backtrace_below_main".
1863 (backtrace_limit): New variable.
1864 (get_prev_frame): Update. Check the backtrace_limit.
1866 2003-08-09 Andrew Cagney <cagney@redhat.com>
1868 * defs.h (xstrprintf): Declare.
1869 * utils.c (xstrprintf): New function.
1870 * breakpoint.c (insert_breakpoints): Replace sprintf and
1871 non-literal format strings, with xstrprintf and cleanups.
1872 (delete_breakpoint,breakpoint_re_set): Ditto.
1873 (commands_command, insert_breakpoints): Ditto.
1874 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1875 (break_at_finish_command_1): Ditto.
1877 2003-08-09 Andrew Cagney <cagney@redhat.com>
1879 * MAINTAINERS (language support): List Adam Fedor as Objective C
1882 2003-08-08 J. Brobecker <brobecker@gnat.com>
1884 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1885 are now multiarched.
1887 2003-08-08 J. Brobecker <brobecker@gnat.com>
1889 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1890 longer necessary now that hppa64 is partially multiarch'ed.
1892 2003-08-08 Andrew Cagney <cagney@redhat.com>
1894 * interps.c (interp_set): Check for a NULL "old_interp".
1896 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1898 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1899 (install-only): Support DESTDIR.
1900 (uninstall): Likewise.
1901 (install-gdbtk): Likewise.
1903 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1905 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1906 contains something meaningful at all times.
1908 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1910 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1912 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1914 * MAINTAINERS (write after approval): Added self.
1916 2003-08-07 Andrew Cagney <cagney@redhat.com>
1918 * inferior.h (AT_SYMBOL): Define.
1919 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1920 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1921 * mips-tdep.c (mips_call_dummy_address): Delete function.
1922 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1923 set call_dummy_address.
1925 2003-08-07 Andrew Cagney <cagney@redhat.com>
1927 * language.c (op_error): Delete function.
1928 (binop_type_check): Delete function.
1929 * language.h (type_op_error, range_op_error): Delete macros.
1930 (op_error): Delete declaration.
1932 2003-08-07 Andrew Cagney <cagney@redhat.com>
1934 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1936 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1938 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1939 (x86_64_push_arguments): Skip the red zone.
1941 2003-08-05 Andrew Cagney <cagney@redhat.com>
1943 * reggroups.c (reggroup_next): Check for the final entry.
1945 2003-08-04 Andrew Cagney <cagney@redhat.com>
1947 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1948 * cli/cli-script.c (define_command): Call query directly, instead
1949 of passing it a buffer.
1950 * ocd.c (ocd_error): Pass error a constant format string.
1951 * remote-mips.c (mips_error): Use fputs_filtered.
1953 * solib-svr4.c (_initialize_svr4_solib): Update
1954 register_gdbarch_data call.
1955 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1957 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1958 (register_gdbarch_data): Delete "free" parameter. Update
1960 * gdbarch.h, gdbarch.c: Re-generate.
1961 * reggroups.c (_initialize_reggroup): Update.
1962 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1963 * frame-base.c (_initialize_frame_base): Update.
1964 * frame-unwind.c (_initialize_frame_unwind): Update.
1965 * user-regs.c (_initialize_user_regs): Update.
1966 * remote.c (_initialize_remote): Update.
1967 * regcache.c (_initialize_regcache): Update.
1969 * regcache.c (xfree_regcache_descr): Delete function.
1970 (_initialize_regcache): Update call to register_gdbarch_data.
1971 (init_regcache_descr, init_legacy_regcache_descr): Use
1972 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1974 * remote.c (free_remote_state): Delete function.
1975 (_initialize_remote): Update register_gdbarch_data.
1976 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1977 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1979 2003-08-04 Andrew Cagney <cagney@redhat.com>
1981 * reggroups.c (struct reggroup_el): Define.
1982 (struct reggroups): Delete field "nr_group". Replace array
1983 "group" with a "first" to "last" linked list.
1984 (reggroups_init): Update. Allocate using gdbarch's obstack.
1985 (reggroups_free): Delete function.
1986 (add_group): Update. Add "el" parameter.
1987 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1988 (default_groups): Update.
1989 (reggroup_next): Replace reggroups.
1990 (reggroups_dump): Update.
1991 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1992 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1993 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1995 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1997 * Makefile.in (tui-interp.o): Update dependencies.
1999 2003-08-04 David Carlton <carlton@kealia.com>
2001 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2002 to internal_error call.
2003 * source.c (forward_search_command): Add "%s" format argument.
2004 (reverse_search_command): Ditto.
2005 * top.c (quit_confirm): Ditto.
2006 * cli/cli-setshow.c (do_setshow_command): Ditto.
2007 * cp-valprint.c (cp_print_class_method): Replace
2008 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2009 (cp_print_class_member): Ditto.
2010 * event-top.c (command_line_handler): Ditto.
2011 * linux-proc.c (linux_info_proc_cmd): Ditto.
2012 * p-typeprint.c (pascal_type_print_base): Ditto.
2013 * p-valprint.c (pascal_object_print_class_method): Ditto.
2014 (pascal_object_print_class_member): Ditto.
2015 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2016 * remote.c (remote_cisco_section_offsets): Ditto.
2017 * top.c (command_line_input): Ditto.
2018 * utils.c (vwarning,error_stream,quit): Ditto.
2019 * valprint.c (print_floating,print_binary_chars)
2020 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2022 2003-08-04 Andrew Cagney <cagney@redhat.com>
2024 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2026 2003-08-02 Andrew Cagney <cagney@redhat.com>
2028 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2029 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2032 2003-08-02 Andrew Cagney <cagney@redhat.com>
2034 * Makefile.in: Update all dependencies and definitions.
2036 2003-08-02 Adam Fedor <fedor@gnu.org>
2038 * linespec.c (is_objc_method_format): New function
2039 (decode_line_1, locate_first_half): Use it.
2042 2003-08-01 Andrew Cagney <cagney@redhat.com>
2044 * NEWS: Mention that m32r is multi-arch.
2045 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2046 * configure.tgt: Recognize m32r-*-*.
2047 * config/m32r/tm-m32r.h: Delete file.
2048 * config/m32r/m32r.mt: New file.
2049 * m32r-rom.c (m32r_upload_command): Use hostent only when
2050 gethostname succeeds, in order to avoid a compilation
2052 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2055 2003-08-01 Michael Snyder <msnyder@redhat.com>
2057 * sh-tdep.c (sh_frame_align): New gdbarch method.
2058 (sh_gdbarch_init): Set up frame_align method.
2060 2003-07-31 Michael Snyder <msnyder@redhat.com>
2062 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2063 which is already covered by the new frames infrastructure.
2065 2003-07-31 Andrew Cagney <cagney@redhat.com>
2067 * user-regs.c (struct user_reg): Add "next" link.
2068 (struct user_regs): Replace "user" with "first" and "last" links.
2069 (append_user_reg): Add pre-allocated "reg" parameter.
2070 (builtin_user_regs): Provide initial value for "last".
2071 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2072 (user_regs_init): Allocate memory from the gdbarch obstack.
2073 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2074 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2076 (usernum_to_user_reg): New function.
2077 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2078 (value_of_user_reg): Use usernum_to_user_reg.
2079 (user_regs_free): Delete function.
2080 (_initialize_user_regs): Update register_gdbarch_data call.
2082 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2084 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2086 2003-07-30 Michael Snyder <msnyder@redhat.com>
2088 * value.h (value_being_returned): Add a struct_addr argument.
2089 * infcall.c (call_function_by_hand): Pass struct_addr to
2090 value_being_returned.
2091 * infcmd.c (print_return_value): Pass zero as struct_addr.
2092 * values.c (value_being_returned): If struct_addr is passed,
2093 use it instead of trying to recover it from the inferior.
2095 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2097 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2098 the prologue analyzer won't need to attempt to extract the pc
2099 value from the woefully incomplete dummy frame.
2100 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2101 possible. Disable code which modifies the frame.
2103 2003-07-28 Andrew Cagney <cagney@redhat.com>
2105 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2107 (annotate_breakpoints_table, annotate_record): Ditto.
2108 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2109 (annotate_field_name_end, annotate_field_value): Ditto.
2110 (annotate_field_end, annotate_frame_source_begin): Ditto.
2111 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2112 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2113 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2114 (annotate_frame_address_end, annotate_frame_address): Ditto.
2115 (annotate_frame_args, annotate_frame_end): Ditto.
2116 (annotate_frame_where, annotate_arg_begin): Ditto.
2117 (annotate_arg_name_end, annotate_arg_value): Ditto.
2118 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2119 (annotate_function_call, annotate_signal_name): Ditto.
2120 (annotate_signal_string, annotate_signal_name_end): Ditto.
2121 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2122 (annotate_value_begin, annotate_value_history_value): Ditto.
2123 (annotate_value_history_end, annotate_value_end): Ditto.
2124 (annotate_display_begin, annotate_display_number_end): Ditto.
2125 (annotate_display_format, annotate_display_expression): Ditto.
2126 (annotate_display_expression_end, annotate_display_value): Ditto.
2127 (annotate_display_end, annotate_array_section_begin): Ditto.
2128 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2129 (annotate_elt, annotate_array_section_end): Ditto.
2131 2003-07-28 Andrew Cagney <cagney@redhat.com>
2133 * regcache.c (struct regcache_descr): Update comments on
2135 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2136 sizeof_raw_register_valid_p.
2137 (init_regcache_descr): Set nr_raw_registers and
2138 sizeof_raw_register_valid_p before calling
2139 init_legacy_regcache_descr.
2141 2003-07-28 Andrew Cagney <cagney@redhat.com>
2143 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2146 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2148 * thread.c (info_threads_command): Use get_selected_frame ().
2149 Check that there is at least one non-sentinel frame.
2151 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2153 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2154 (m68hc11_pop_frame): Remove.
2155 (m68hc11_frame_saved_pc): Remove.
2156 (m68hc11_frame_chain): Remove.
2157 (m68hc11_frame_init_saved_regs): Remove.
2158 (m68hc11_init_extra_frame_info): Remove.
2159 (m68hc11_store_struct_return): Remove.
2160 (m68hc11_saved_pc_after_call): Remove.
2162 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2164 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2165 frame unwind information.
2166 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2167 and adapted for frame unwinding.
2168 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2169 (m68hc11_unwind_pc): New function.
2170 (m68hc11_frame_unwind_cache): New function to analyze frames.
2171 (m68hc11_frame_this_id): New function to create new frame struct.
2172 (m68hc11_frame_prev_register): New function to unwind a register from
2174 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2175 (m68hc11_frame_p): New function for the above.
2176 (m68hc11_frame_base_address): New function to return fp of frame.
2177 (m68hc11_frame_args_address): Update for frame.
2178 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2179 (m68hc11_unwind_sp): New function.
2180 (m68hc11_unwind_dummy_id): New function.
2181 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2184 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2186 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2187 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2188 when we are beyond the current pc.
2190 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2192 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2193 from m68hc11_push_arguments.
2194 (m68hc11_push_arguments): Remove.
2195 (m68hc11_push_return_address): Remove.
2196 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2197 handlers; remove deprecated_extra_stack_alignment_needed.
2199 2003-07-27 Andrew Cagney <cagney@redhat.com>
2201 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2202 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2203 REAL_PC and not the pointer.
2204 * hppa-hpux-tdep.c: Include frame.h
2206 2003-07-27 Andrew Cagney <cagney@redhat.com>
2208 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2209 GDB_MULTI_ACH_PARTIAL.
2211 2003-07-27 Andrew Cagney <cagney@redhat.com>
2213 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2214 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2215 operator at start and not end of line.
2216 (decode_prologue): Ditto.
2217 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2218 frame_unwind_register_unsigned instead of
2219 frame_unwind_unsigned_register.
2220 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2222 (m32r_push_dummy_call): Use register_size instead of
2224 (m32r_frame_sniffer): Replace m32r_frame_p.
2225 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2226 * m32r-rom.c (report_transfer_performance): Delete extern
2228 (m32r_load, m32r_upload_command): Use print_transfer_performance
2229 instead of report_transfer_performance.
2230 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2231 / add_show_from_set.
2233 2003-07-26 Andrew Cagney <cagney@redhat.com>
2235 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2236 store_return_value and extract_struct_value_address.
2238 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2241 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2242 NULL, default to the section containing PC.
2244 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2246 * NEWS: Mention "regs" deprecated for m68hc11 too.
2248 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2249 (m68hc11_print_register): New function to print out one register.
2250 (m68hc11_print_registers_info): New function to print registers.
2251 (show_regs): Deprecate and use the above.
2252 (m68hc11_gdbarch_init): Install the print_registers_info.
2254 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2256 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2257 that we have a SIGTRAP before returning non-zero.
2259 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2260 Elena Zannoni <ezannoni@redhat.com>
2262 * linespec.c (decode_line_2): Avoid crash if
2263 find_function_start_sal() returns empty record.
2265 2003-07-23 Andreas Schwab <schwab@suse.de>
2267 * ia64-tdep.c (ia64_print_insn): New function.
2268 (ia64_gdbarch_init): Set print_insn to it.
2269 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2270 deprecated_tm_print_insn_info.
2272 2003-07-22 Michael Snyder <msnyder@redhat.com>
2274 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2275 handle 8-bit returns (long long).
2276 (h8300h_extract_return_value): Ditto.
2277 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2279 2003-07-22 Andrew Cagney <cagney@redhat.com>
2281 * gdbarch.c Include "gdb_obstack.h".
2282 (struct gdbarch): Add an "obstack".
2283 (alloc_gdbarch_data): Allocate the gdbarch data using
2284 GDBARCH_OBSTACK_CALLOC.
2285 (free_gdbarch_data): Delete function.
2286 (gdbarch_obstack_zalloc): New function.
2287 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2288 Assert that the architecture is not initialized.
2289 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2290 vector from the obstack.
2291 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2292 architecture obstack.
2293 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2294 (set_gdbarch_data): Assert that the data is not initialized.
2295 (struct gdbarch_data): Delete member "free".
2296 (register_gdbarch_data): Do not initialize "free".
2297 * gdbarch.h, gdbarch.c: Re-generate.
2299 2003-07-22 Andrew Cagney <cagney@redhat.com>
2301 * configure.in (build_warnings): Add -Wformat-nonliteral.
2302 * configure: Re-generate.
2304 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2306 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2308 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2310 * findvar.c (read_var_value): Remove case for thread local storage
2311 variables. It is now entirely handled by the dwarf2 location
2313 * printcmd.c (address_info): Ditto.
2314 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2316 (struct symbol): Remove objfile field, which was used by
2317 LOC_THREAD_LOCAL_STATIC only.
2318 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2319 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2320 usage of objfile pointer.
2321 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2322 thread local variables.
2323 Add include of objfiles.h.
2324 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2326 * Makefile.in (dwarf2loc.o): Update dependencies.
2328 2003-07-22 Andrew Cagney <cagney@redhat.com>
2330 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2332 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2333 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2334 (struct value): Add opaque declaration.
2335 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2337 2003-07-21 Andrew Cagney <cagney@redhat.com>
2339 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2340 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2342 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2344 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2345 regcache_cooked_read_unsigned instead of read_register.
2346 (m68hc11_saved_pc_after_call): Likewise.
2347 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2348 instead of write_register.
2349 (m68hc11_register_type): New function.
2350 (m68hc11_register_virtual_type): Remove.
2351 (m68hc11_store_return_value): Convert to use the regcache.
2352 (m68hc11_extract_struct_value_address): Likewise.
2353 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2354 m68hc11_register_type; undeprecate store_return_value and
2355 extract_struct_value_address.
2357 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2359 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2360 and translate to use regcache.
2361 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2363 2003-07-18 Andrew Cagney <cagney@redhat.com>
2365 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2366 * gdbarch.h, gdbarch.c: Re-generate.
2367 * i386-tdep.c (i386_gdbarch_init): Do not set
2368 DWARF2_BUILD_FRAME_INFO.
2369 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2371 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2372 DWARF2_BUILD_FRAME_INFO.
2374 2003-07-18 Andrew Cagney <cagney@redhat.com>
2376 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2377 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2379 2003-07-18 Andrew Cagney <cagney@redhat.com>
2381 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2382 frame_unwind_address_in_block, instead of frame_pc_unwind.
2383 (dwarf2_frame_cache): Ditto.
2385 2003-07-18 Andrew Cagney <cagney@redhat.com>
2387 * user-regs.h (struct gdbarch): Declare opaque.
2388 * ui-out.h (struct ui_file): Declare opaque.
2389 * dwarf2-frame.h (struct frame_info): Declare opaque.
2391 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2393 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2395 (procfs_meminfo): Change strerror to safe_strerror.
2396 (procfs_can_run): Remove K&R badness.
2398 2003-07-17 Michael Snyder <msnyder@redhat.com>
2400 * remote-sim.c: Comment typo fix.
2402 2003-07-17 Andrew Cagney <cagney@redhat.com>
2404 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2406 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2407 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2408 GDB_MULTI_ARCH_PARTIAL.
2410 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2412 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2413 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2414 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2416 2003-07-16 Theodore A. Roth <troth@openavr.org>
2418 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2420 (avr_frame_unwind_cache): Don't unwind FP for main.
2422 Save the computed prev_sp.
2423 (avr_saved_regs_unwinder): Remove function.
2424 (avr_frame_prev_register): Use PC unwind logic from
2425 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2427 2003-07-16 Andrew Cagney <cagney@redhat.com>
2429 * frame-base.h (frame_base_p_ftype): Delete definition.
2430 (frame_base_append_predicate): Delete declaration.
2431 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2432 (frame_unwind_append_predicate): Delete declaration.
2433 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2434 (append_predicate): Delete parameter "p".
2435 (frame_unwind_append_predicate): Delete function.
2436 (frame_unwind_append_sniffer): Update call to append_predicate.
2437 (frame_unwind_free): Delete function.
2438 (_initialize_frame_unwind): Pass NULL as "free" to
2439 register_gdbarch_data.
2440 (frame_unwind_init): Append the dummy_frame_sniffer.
2441 (frame_unwind_find_by_frame): Simplify.
2442 * frame-base.c (struct frame_base_table): Delete field "p".
2443 (append_predicate): Delete parameter "p".
2444 (frame_base_append_predicate): Delete function.
2445 (frame_base_append_sniffer): Update call to append_predicate.
2446 (frame_base_free): Delete function.
2447 (frame_base_find_by_frame): Simplify.
2448 (_initialize_frame_base): Pass NULL as "free" to
2449 register_gdbarch_data.
2450 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2451 (x86_64_sigtramp_frame_sniffer): Replace
2452 "x86_64_sigtramp_frame_p".
2453 (x86_64_init_abi): Set the frame unwind sniffers.
2454 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2455 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2456 (m68k_gdbarch_init): Set the frame unwind sniffers.
2457 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2458 "i386_sigtramp_frame_p".
2459 (i386_frame_sniffer): Replace "i386_frame_p".
2460 (i386_gdbarch_init): Set the frame unwind sniffers.
2461 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2462 (avr_gdbarch_init): Set the frame unwind sniffers.
2463 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2464 "alpha_sigtramp_frame_p"
2465 (alpha_heuristic_frame_sniffer): Replace
2466 "alpha_heuristic_frame_p".
2467 (alpha_gdbarch_init): Set the frame unwind sniffers.
2468 (alpha_dwarf2_init_abi): Ditto.
2469 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2470 "alpha_debug_frame_p".
2471 (alpha_mdebug_frame_base_sniffer): Replace
2472 "alpha_mdebug_frame_base_p".
2473 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2474 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2475 (d10v_gdbarch_init): Set the frame unwind sniffer.
2476 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2477 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2478 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2479 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2480 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2481 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2483 2003-07-16 Michael Snyder <msnyder@redhat.com>
2485 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2486 should go thru sh_dsp_register_sim_regno, else the dsp regs
2487 will not get the right values.
2489 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2491 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2492 deprecated_store_floating by call to store_typed_floating.
2493 (sh_sh4_register_convert_to_raw): Substitute call to
2494 deprecated_extract_floating by call to extract_typed_floating.
2496 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2498 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2500 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2502 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2503 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2504 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2506 (do_pseudo_register): Remove.
2507 (sh_push_dummy_code): New function.
2508 (sh64_store_struct_return): Rename from sh_store_struct_return.
2509 Only called for sh64 now.
2510 (sh_extract_struct_value_address): Regcache'ify.
2511 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2512 and accomodate new tasks.
2513 (sh64_push_return_address): Rename from sh_push_return_address.
2514 Only called for sh64 now.
2515 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2517 (sh3e_sh4_extract_return_value): Regcache'ify.
2518 (sh_default_store_return_value): Ditto.
2519 (sh3e_sh4_store_return_value): Ditto.
2520 (sh_default_register_byte): Remove.
2521 (sh_sh4_register_byte): Remove.
2522 (sh_default_register_raw_size): Remove.
2523 (sh_sh4_register_raw_size): Remove.
2524 (sh_register_virtual_size): Remove.
2525 (sh_sh3e_register_virtual_type): Remove.
2526 (sh_sh3e_register_type): New function.
2527 (sh_sh4_register_virtual_type): Remove.
2528 (sh_sh4_register_type): New function.
2529 (sh_default_register_virtual_type): Remove.
2530 (sh_default_register_type): New function.
2531 (do_fv_register_info): Add parameters to accomodate call from
2532 sh_print_registers_info.
2533 (do_dr_register_info): Ditto.
2534 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2535 Add parameters to accomodate call from sh_print_registers_info.
2536 (sh_do_fp_register): Ditto.
2537 (sh64_do_pseudo_register): Call do_dr_register_info,
2538 do_fv_register_info and sh_do_fp_register with default parameters.
2539 (sh_do_register): Add parameters to accomodate call from
2540 sh_print_registers_info.
2541 (sh_print_register): Ditto.
2542 (sh_print_registers_info): Rename from sh_do_registers_info.
2543 Add parameters to be used as gdbarch_print_registers_info
2544 implementation. Accomodate removed do_pseudo_register function
2546 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2547 function pointer. Call sh_print_register with default parameters.
2548 (sh64_do_registers_info): Call sh_print_registers_info instead of
2549 sh_do_registers_info.
2550 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2551 detection of deprecated vs. non-deprecated functionality.
2552 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2553 function pointer assignments by direct function calls.
2555 2003-07-15 Andrew Cagney <cagney@redhat.com>
2557 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2558 (frame_register_unwind, create_new_frame): Ditto.
2559 (legacy_get_prev_frame, get_frame_type): Ditto.
2560 (get_frame_base_address): Use frame_base_find_by_frame.
2561 (get_frame_locals_address): Use frame_base_find_by_frame.
2562 (get_frame_args_address): Use frame_base_find_by_frame.
2563 * frame-base.h (frame_base_sniffer_ftype): Declare.
2564 (frame_base_append_sniffer): Declare.
2565 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2566 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2567 (frame_base_append_sniffer): New function.
2568 (frame_base_append_predicate): Add a NULL sniffer.
2569 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2570 (struct frame_base_table): Add "sniffer".
2571 (frame_base_free): Free the "sniffer" table.
2572 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2573 (frame_unwind_append_sniffer): Declare.
2574 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2575 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2576 (struct frame_unwind_table): Add "sniffer", delete "middle".
2577 (append_predicate): Add "sniffer" parameter, append the sniffer.
2578 (frame_unwind_init): Update append_predicate call.
2579 (frame_unwind_append_sniffer): New function.
2580 (frame_unwind_append_predicate): Update append_predicate call.
2581 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2583 2003-07-15 Andrew Cagney <cagney@redhat.com>
2585 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2586 before code inhibiting repeated unwind attempts. Add to
2587 commentary on that test's problems.
2588 * blockframe.c (inside_main_func): Look for "main" in the minimal
2590 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2593 2003-07-15 Andrew Cagney <cagney@redhat.com>
2595 * complaints.c (struct explanation): Define.
2596 (struct complaints): Change type of "explanation" to "struct
2598 (symfile_explanations): Convert to a "struct explanation" table.
2599 (vcomplaint): Update.
2601 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2603 * x86-64-linux-nat.c (regmap): Removed.
2604 (supply_gregset, fill_gregset): Call
2605 x86_64_linux_(fill,supply)_gregset functions.
2606 * x86-64-linux-tdep.c (USER_*): New defines.
2607 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2608 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2610 (fetch_core_registers): Ditto.
2611 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2612 * x86-64-linux-tdep.h: New file.
2613 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2615 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2617 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2619 * x86-64-tdep.c (x86_64_store_return_value): Use
2620 regcache_cooked_write_part instead of regcache_cooked_write.
2622 * configure.host: Add x86_64-*-freebsd*.
2623 * configure.tgt: Add x86_64-*-freebsd*.
2624 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2625 * amd64fbsd-nat.c: New file.
2626 * amd64fbsd-tdep.c: New file.
2627 * config/i386/nm-fbsd64.h: New file.
2628 * config/i386/fbsd64.mh: New file.
2629 * config/i386/fbsd64.mt: New file.
2631 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2633 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2634 `sc_regs_offset' and `sc_fpregs_offset'.
2635 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2636 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2637 (alpha_sigtramp_register_address): Rewrite to use new members of
2638 `struct gdbarch_tdep'.
2639 (alpha_gdbarch_init): Initialize new members of struct
2641 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2642 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2643 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2644 (alphafbsd_pc_in_sigtramp): Implement.
2645 (alphafbsd_sigtramp_offset): New function.
2646 (alphafbsd_sigcontext_addr): New function.
2647 (alphafbsd_init_abi): Initialize signal trampoline related members
2648 of `struct gdbarch_tdep'.
2649 (_initialize_alphafbsd_tdep): Add prototype.
2651 2003-07-11 Theodore A. Roth <troth@openavr.org>
2653 * Makefile.in (install-only): Quote sed expression when generating
2656 2003-07-11 Richard Henderson <rth@redhat.com>
2658 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2659 * dwarf2-frame.c: Include complaints.h.
2660 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2661 variable initialization; return NULL on error.
2662 (decode_frame_entry): New.
2664 2003-07-11 Andrew Cagney <cagney@redhat.com>
2666 * frame.h (frame_address_in_block): Delete declaration.
2667 * blockframe.c (frame_address_in_block): Delete function.
2668 (get_frame_block): Use get_frame_address_in_block.
2669 (block_innermost_frame): Ditto.
2670 * stack.c (print_frame, backtrace_command_1): Ditto.
2672 * frame.h (get_frame_address_in_block): Declare.
2673 (frame_unwind_address_in_block): Declare.
2674 * frame.c (frame_unwind_address_in_block): New function.
2675 (get_frame_address_in_block): New function.
2677 2003-07-10 Andrew Cagney <cagney@redhat.com>
2679 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2680 pre-default. Note: re-generate has no effect.
2682 2003-07-10 Andrew Cagney <cagney@redhat.com>
2684 * gdbarch.sh: When a variable, but not a function, compare against
2685 0. Fix problem in previous patch.
2686 * gdbarch.c: Re-generate.
2688 2003-07-10 Andrew Cagney <cagney@redhat.com>
2690 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2691 functions against NULL, not 0.
2692 * gdbarch.c: Re-generate.
2694 2003-07-10 Fred Fish <fnf@ninemoons.com>
2696 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2697 null string instead of a null pointer.
2698 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2700 2003-07-09 Michael Snyder <msnyder@redhat.com>
2702 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2704 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2706 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2707 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2708 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2709 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2710 * x86-64-tdep.c: ... from here.
2712 2003-07-09 Andreas Schwab <schwab@suse.de>
2714 * m68k-tdep.h (enum struct_return): Define.
2715 (struct gdbarch_tdep): Add struct_return.
2716 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2717 bytes are padded to the right, not to the left. Pass struct value
2718 address in register %a1, not on stack.
2719 (m68k_use_struct_convention): New function.
2720 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2721 struct_return in tdep to pcc_struct_return.
2722 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2725 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2727 * somread.c (som_symfile_offsets): Fix compilation error.
2729 2003-07-09 Andrew Cagney <cagney@redhat.com>
2731 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2732 Add comments about the checks.
2734 2003-07-08 Andrew Cagney <cagney@redhat.com>
2736 * Makefile.in: Make dependency section headers consistent.
2737 (config_h): Move to $BUILD headers section.
2738 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2739 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2740 (ada-exp.tab.c): Move to YACC/LEX section.
2741 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2742 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2744 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2746 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2747 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2748 of strerror with safe_strerror, use ISO C function definitions,
2749 and replace instances of sprintf with snprintf.
2751 2003-07-07 Andrew Cagney <cagney@redhat.com>
2753 * frame.c (get_prev_frame): Enable check for identical frames.
2754 Update comments. Update error messages.
2756 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2758 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2760 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2762 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2763 sort_symtab_syms, no longer necessary.
2765 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2767 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2769 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2771 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2772 (mips_register_byte): Likewise.
2774 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2776 * Makefile.in (sparc_tdep_h): New.
2777 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2778 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2779 * sparc-linux-nat.c: Include "sparc-tdep.h".
2780 * sparc-nat.c: Likewise.
2781 * sparc-tdep.c: Likewise.
2782 * sparc64nbsd-nat.c: Likewise.
2783 * sparcnbsd-nat.c: Likewise.
2784 * sparcnbsd-tdep.c: Likewise.
2785 * sparc-tdep.h: New file.
2786 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2787 and sparc_npc_regnum.
2789 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2791 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2792 (mips_linux_cannot_store_register): List supported instead of
2793 unsupported registers.
2795 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2797 * disasm.c (dump_insns): Separate instructions from addresses.
2799 2003-07-07 Andreas Schwab <schwab@suse.de>
2801 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2803 * m68k-tdep.c (NUM_FREGS): Delete.
2804 (SIG_PC_FP_OFFSET): Delete.
2805 (TARGET_M68K): Delete.
2806 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2807 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2808 P_MOVEL_SP, P_MOVEML_SP): Define.
2809 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2811 (m68k_register_raw_size): Delete.
2812 (m68k_register_virtual_size): Delete.
2813 (m68k_register_type): Renamed from m68k_register_virtual_type and
2814 add gdbarch argument.
2815 (m68k_store_struct_return): Delete.
2816 (m68k_deprecated_extract_return_value): Delete.
2817 (m68k_deprecated_extract_struct_value_address): Delete.
2818 (m68k_frame_chain): Delete.
2819 (m68k_frame_saved_pc): Delete.
2820 (m68k_fix_call_dummy): Delete.
2821 (m68k_push_dummy_frame): Delete.
2822 (m68k_pop_frame): Delete.
2823 (m68k_extract_return_value): New function.
2824 (m68k_store_return_value): Rewrite using regcache.
2825 (m68k_extract_struct_value_address): Rewrite using regcache.
2826 (m68k_push_dummy_call): New function.
2827 (struct m68k_frame_cache): Define.
2828 (m68k_alloc_frame_cache): New function.
2829 (m68k_analyze_frame_setup): New function.
2830 (m68k_analyze_register_saves): New function.
2831 (m68k_analyze_prologue): New function.
2832 (m68k_skip_prologue): Rewrite using above functions.
2833 (m68k_unwind_pc): New function.
2834 (m68k_frame_cache): New function.
2835 (m68k_frame_this_id): New function.
2836 (m68k_frame_prev_register): New function.
2837 (m68k_frame_unwind): New variable.
2838 (m68k_frame_p): New function.
2839 (m68k_sigtramp_frame_cache): New function.
2840 (m68k_sigtramp_frame_this_id): New function.
2841 (m68k_sigtramp_frame_prev_register): New function.
2842 (m68k_sigtramp_frame_unwind): New variable.
2843 (m68k_sigtramp_frame_p): New function.
2844 (m68k_frame_base_address): New function.
2845 (m68k_frame_base): New function.
2846 (m68k_unwind_dummy_id): New function.
2847 (fill_gregset): Use regcache_collect.
2848 (fill_fpregset): Likewise.
2849 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2851 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2852 deprecated_init_frame_pc, deprecated_store_struct_return,
2853 deprecated_extract_return_value, deprecated_store_return_value,
2854 deprecated_frame_chain, deprecated_frame_saved_pc,
2855 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2856 deprecated_register_virtual_size,
2857 deprecated_max_register_raw_size,
2858 deprecated_max_register_virtual_size,
2859 deprecated_register_virtual_type, deprecated_register_size,
2860 deprecated_register_byte, deprecated_register_bytes,
2861 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2862 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2863 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2864 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2865 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2866 deprecated_push_dummy_frame, deprecated_pop_frame,
2867 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2868 only if SYSCALL_TRAP is defined. Set extract_return_value,
2869 store_return_value, extract_struct_value_address, register_type,
2870 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2872 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2873 M68K_MAX_REGISTER_SIZE): Define.
2874 (struct m68k_sigtramp_info): Define.
2875 (struct gdbarch_tdep): Add get_sigtramp_info.
2876 * m68klinux-nat.c (fetch_register): Use register_size instead of
2877 REGISTER_RAW_SIZE. Don't put assignment in if.
2878 (store_register): Likewise.
2879 (fetch_inferior_registers): Likewise.
2880 (store_inferior_registers): Likewise.
2881 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2882 (m68k_linux_frame_saved_pc): Delete.
2883 (m68k_linux_sigcontext_reg_offset,
2884 m68k_linux_ucontext_reg_offset): Define.
2885 (m68k_linux_get_sigtramp_info): New function.
2886 (m68k_linux_extract_return_value): Rewrite using regcache.
2887 (m68k_linux_store_return_value): Likewise.
2888 (m68k_linux_extract_struct_value_address): Likewise.
2889 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2890 Don't set deprecated_frame_saved_pc,
2891 deprecated_extract_return_value, deprecated_store_return_value,
2892 deprecated_extract_struct_value_address. Set
2893 extract_return_value, store_return_value,
2894 extract_struct_value_address.
2896 2003-07-07 Andrew Cagney <cagney@redhat.com>
2898 * expprint.c: Include "user-regs.h" instead of "frame.h".
2899 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2900 frame_map_regnum_to_name.
2901 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2902 (frame_map_name_to_regnum): Simplify, call
2903 user_reg_map_name_to_regnum.
2904 (frame_map_regnum_to_name): Simplify, call
2905 user_reg_map_regnum_to_name.
2906 (frame_register_unwind): Update.
2907 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2908 (_initialize_frame_reg): Call user_reg_add_builtin.
2909 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2910 (value_of_register): Use value_of_user_reg.
2911 * eval.c (evaluate_subexp_standard): Update.
2912 * parse.c (write_dollar_variable): Update.
2913 * d10v-tdep.c (d10v_print_registers_info): Update.
2914 * infcmd.c (registers_info): Update.
2915 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2916 (builtin_regs_h): Delete macro.
2917 (user_regs_h): Define.
2918 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2919 (builtin-regs.o): Delete target.
2920 (user-regs.o): Specify dependencies.
2921 (expprint.o): Update dependencies.
2922 (findvar.o): Update dependencies.
2923 (frame.o): Update dependencies.
2924 (std-regs.o): Update dependencies.
2926 2003-07-06 Christopher Faylor <cgf@redhat.com>
2928 * win32-nat.c (solib_symbols_add): Use one variable for all section
2929 address stuff. Pass variable rather than address of variable to
2930 safe_symbol_file_add.
2932 2003-07-06 Andreas Schwab <schwab@suse.de>
2934 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2936 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2938 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2940 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2942 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2944 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2946 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2947 * config/i386/nto.mh: New file.
2948 * config/i386/nm-nto.h: New file.
2949 * configure.host: Add i[3456]86-*-nto*.
2951 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2953 * remote-vx.c (vx_add_symbols): Fix compilation error.
2955 2003-07-03 Andrew Cagney <cagney@redhat.com>
2957 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2958 * gdbarch.h, gdbarch.c: Re-generate.
2959 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2960 (legacy_register_name): Declare.
2961 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2962 (REGISTER_NAME): Define.
2963 * sparc-tdep.c (legacy_register_name): New function.
2964 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2965 (REGISTER_NAME): Define.
2966 (hppa64_register_name): Declare.
2967 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2968 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2969 (hppa64_register_name): New function.
2970 (hppa_register_name): New function.
2971 * arch-utils.c (legacy_register_name): Delete.
2972 * arch-utils.h (legacy_register_name): Delete.
2974 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2976 * cli/cli-interp.c (cli_interpreter_resume): Update the
2977 cli_uiout's stream to gdb_stdout.
2979 2003-07-03 Andrew Cagney <cagney@redhat.com>
2981 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2983 * gdbarch.h, gdbarch.c: Re-generate.
2984 * regcache.c (init_regcache_descr): Use legacy code when either
2985 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2987 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2989 * NEWS: Move "set logging" entry into GDB 6.0 section.
2991 2003-07-02 Jim Blandy <jimb@redhat.com>
2993 * s390-tdep.c (struct frame_extra_info): new member:
2994 'stack_bought_valid'.
2995 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2996 initialize fextra_info->stack_bought.
2997 (s390_frameless_function_invocation): Don't trust the value of
2998 fextra_info_ptr->stack_bought unless
2999 fextra_info->stack_bought_valid is set.
3001 New S390 prologue analyzer.
3002 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3003 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3004 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3005 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3006 compute_x_addr, s390_on_stack, s390_store,
3007 s390_get_signal_frame_info): New functions.
3008 (S390_NUM_SPILL_SLOTS): New macro.
3009 (s390_get_frame_info): Rewritten.
3010 (is_arg_reg): Deleted.
3012 Break out the decoding of S/390 instructions into separate
3013 functions, to make it more legible, and easier to check
3015 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3016 is_rx, is_rxe): New functions.
3017 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3018 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3019 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3020 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3021 enums for opcode values. (Is this an improvement?)
3023 2003-07-02 Andrew Cagney <cagney@redhat.com>
3025 * i386-tdep.c: Revert change committed as part of trad-frame code
3028 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3030 * breakpoint.c (insert_catchpoint): Make static.
3032 2003-07-02 Andreas Schwab <schwab@suse.de>
3034 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3035 former ia64_push_arguments and ia64_push_return_address, and use
3036 regcache functions instead of read/write_register.
3037 (ia64_gdbarch_init): Set push_dummy_call instead of
3038 deprecated_push_arguments and deprecated_push_return_address.
3040 2003-07-01 Andreas Jaeger <aj@suse.de>
3042 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3044 Set %rax only to number of SSE registers used.
3046 2003-07-01 Andrew Cagney <cagney@redhat.com>
3048 * trad-frame.h: Update comments, a -1 .addr is reserved.
3049 (trad_frame_value_p, trad_frame_addr_p): Declare.
3050 (trad_frame_reg_p): Declare.
3051 (trad_frame_set_value): Rename trad_frame_register_value.
3052 (trad_frame_set_unknown): Declare.
3053 * trad-frame.c (trad_frame_realreg_p): New function.
3054 (trad_frame_addr_p, trad_frame_value_p): New function.
3055 (trad_frame_set_unknown): New function.
3056 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3057 (trad_frame_prev_register): Use trad_frame_realreg_p,
3058 trad_frame_addr_p and trad_frame_value_p.
3059 (trad_frame_set_value): Rename trad_frame_register_value.
3060 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3061 and trad_frame_set_value.
3063 2003-06-30 Jim Blandy <jimb@redhat.com>
3065 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3066 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3067 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3068 for 16 registers, and then 32 more bytes.
3069 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3071 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3072 Move up in the file, since it's now used by is_simple_arg.
3073 (is_simple_arg): Don't assume registers are four bytes long.
3074 Exclude all double arguments. Extended floats are not simple
3076 (is_power_of_two): New function.
3077 (pass_by_copy_ref): Call is_power_of_two, and check that the
3078 length fits in a register, rather than listing all the acceptable
3079 sizes. Extended floats are not passed by reference.
3080 (s390_push_arguments): Don't assume registers are four bytes long.
3081 Reserve an argument register to point to the buffer for structures
3082 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3083 S390_STACK_FRAME_OVERHEAD.
3085 2003-06-30 Andreas Schwab <schwab@suse.de>
3087 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3088 format error message.
3090 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3092 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3094 2003-06-30 David Carlton <carlton@kealia.com>
3096 Band-aid for PR c++/1245.
3097 * Makefile.in (cp-support.o): Depend on complaints_h.
3098 * cp-support.c: Include complaints.h. Add declaration for
3099 find_last_component.
3100 (cp_find_first_component): Separate code into
3101 cp_find_first_component_aux.
3102 (cp_find_first_component_aux): Call demangled_name_complaint.
3103 (demangled_name_complaint): New.
3105 2003-06-30 Andrew Cagney <cagney@redhat.com>
3107 * remote.c (remote_write_bytes): Explicitly compute and then use
3108 the payload size. Update comments to reflect. Fixes problem of
3109 GDB not sending small packets as found by Fred Fish.
3111 2003-06-30 Andrew Cagney <cagney@redhat.com>
3113 * remote.c (remote_async_wait): Fix -Wformat problem.
3115 2003-06-29 Andrew Cagney <cagney@redhat.com>
3117 * remote.c (remote_wait): Call error, and not warning, when the
3119 (remote_async_wait): Ditto.
3121 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3123 * sparc-tdep.c (sparc_y_regnum): Make external again.
3125 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3127 * cli/cli-logging.c (pop_output_files): Add void to function
3130 2003-06-29 Andrew Cagney <cagney@redhat.com>
3132 * frame.c (frame_register_unwind): Use unsigned char when dumping
3133 the buffer contents.
3135 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3137 * cli/cli-logging.c: New file.
3138 * cli-out.c (struct ui_out_data): Add original_stream.
3139 (cli_redirect): New function.
3140 (cli_ui_out_impl): Add cli_redirect.
3141 (cli_out_new): Initialize original_stream.
3142 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3143 (uo_redirect, ui_out_redirect): New.
3144 * ui-out.h (struct ui_out_impl): Add redirect member.
3145 (redirect_ftype): New.
3146 (ui_out_redirect): Add prototype.
3147 * Makefile.in: Add rules for cli-logging.c.
3148 * NEWS: Mention "set logging".
3150 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3152 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3154 2003-06-27 Andrew Cagney <cagney@redhat.com>
3156 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3157 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3158 * avr-tdep.c (avr_call_dummy_address): Delete function.
3159 (avr_gdbarch_init): Do not set call_dummy_address.
3161 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3163 * symfile.c (syms_from_objfile): Move variables to inner block.
3164 Move the checks for the non-mainline case a bit earlier to avoid
3165 doing some useless computations.
3167 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3169 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3171 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3173 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3176 2003-06-26 Michael Chastain <mec@shout.net>
3178 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3179 gdb/testsuite/gdb.c++/pr-1210.exp.
3181 2003-06-26 Andrew Cagney <cagney@redhat.com>
3183 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3184 altivec_expression.h and altivec_registers.h.
3186 2003-06-26 Andrew Cagney <cagney@redhat.com>
3188 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3189 info->mach when MIPS16. Patch suggested by Fred Fish.
3191 2003-06-26 Andrew Cagney <cagney@redhat.com>
3193 * utils.c (internal_vproblem): Print the problem to a reason
3194 buffer and then pass to query. Make the msg variable more local.
3196 2003-06-26 Andrew Cagney <cagney@redhat.com>
3198 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3199 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3200 * gdbarch.h, gdbarch.c: Re-generate.
3201 * frame-base.c (default_frame_args_address): Update. Use
3202 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3204 (default_frame_locals_address): Ditto for
3205 DEPRECATED_FRAME_LOCALS_ADDRESS.
3206 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3207 (vax_frame_num_args): Update.
3208 (vax_gdbarch_init): Update.
3209 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3210 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3211 * mcore-tdep.c (mcore_gdbarch_init): Update.
3212 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3213 * ia64-tdep.c (ia64_gdbarch_init): Update.
3214 * symtab.h (address_class): Update comments.
3215 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3216 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3217 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3218 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3219 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3220 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3221 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3222 * alpha-mdebug-tdep.c: Update.
3223 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3225 2003-06-26 Andreas Jaeger <aj@suse.de>
3227 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3228 of SSE registers so that varargs functions work. Rework handling
3229 of passing arguments on the stack.
3230 (x86_64_store_return_value): Return double and float values in SSE
3233 2003-06-24 Michael Chastain <mec@shout.net>
3235 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3236 the "constructor breakpoints ignored" bug.
3238 2003-06-25 David Carlton <carlton@kealia.com>
3240 * MAINTAINERS: Update e-mail address.
3242 2003-06-24 Jim Blandy <jimb@redhat.com>
3244 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3246 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3248 (ppc_linux_init_abi): Register it as the
3249 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3251 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3252 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3255 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3256 (ppc64_standard_linkage_target): Use it.
3258 2003-06-23 Andrew Cagney <cagney@redhat.com>
3260 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3261 for 0 "int0" and 4 "int32" sized registers.
3262 * gdbtypes.c (builtin_type_int0): Define.
3263 (build_gdbtypes): Initialize builtin_type_int0.
3264 * gdbtypes.h (builtin_type_int0): Declare.
3266 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3268 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3269 as characters are unsigned.
3271 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3274 * dwarfread.c (struct_type): Skip static fields without crashing.
3276 2003-06-22 Andrew Cagney <cagney@redhat.com>
3278 GDB 6.0 branch created.
3280 * PROBLEMS: Update. Empty.
3283 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3285 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3286 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3288 2003-06-22 Andrew Cagney <cagney@redhat.com>
3290 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3291 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3294 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3296 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3299 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3301 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3302 argument of val_print.
3303 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3304 to the address argument of baseclass_offset or target_read_memory.
3305 Do add it to the argument of cp_print_value_fields.
3307 2003-06-21 Andrew Cagney <cagney@redhat.com>
3309 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3310 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3311 instead of 0..NUM_REGS.
3312 (mips_register_reggroup_p): New function.
3313 (mips_pseudo_register_write): New function.
3314 (mips_pseudo_register_read): New function.
3315 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3316 based on the register's type.
3317 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3319 (mips_get_saved_register): Simplify. Assert that REGNO is a
3321 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3322 (mips_register_type): Replace mips_register_virtual_type. Map
3323 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3325 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3326 that the register is cooked / virtual.
3327 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3328 Only get the extra info when needed.
3329 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3330 (mips32_heuristic_proc_desc): Fetch the cooked register.
3331 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3332 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3333 (mips_print_register): Use gdbarch_register_type, instead of
3334 REGISTER_VIRTUAL_TYPE.
3335 (print_gp_register_row): Use gdbarch_register_type, instead of
3336 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3337 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3338 Print the pseudo / cooked registers.
3339 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3340 Print the pseudo / cooked registers.
3341 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3342 REG_NUM is pseudo / cooked.
3343 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3344 (mips_n32n64_xfer_return_value): Ditto.
3345 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3346 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3347 (mips_register_sim_regno): New function.
3348 (mips_gdbarch_init): Set deprecated_register_byte,
3349 register_group_p, pseudo_register_write, pseudo_register_read,
3350 register_sim_regno, and num_pseudo_regs. Set register_type,
3351 instead of register_virtual_type.
3352 * Makefile.in (mips-tdep.o): Update dependencies.
3353 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3354 REGISTER_VIRTUAL_TYPE.
3355 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3356 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3357 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3358 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3359 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3361 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3363 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3364 * cli/cli-cmds.c: Include "gdb_vfork.h".
3365 (shell_escape): Use vfork.
3367 2003-06-21 Andrew Cagney <cagney@redhat.com>
3369 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3370 32 bit floating-point register saves.
3372 * frame.h (deprecated_unwind_get_saved_register): Delete.
3373 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3374 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3375 and deprecated_get_next_frame_hack instead of
3376 deprecated_unwind_get_saved_register.
3378 * mips-tdep.c (mips_dump_tdep): Do not print
3379 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3381 * frame.c (get_frame_register): New function.
3382 (frame_unwind_register_signed): New function.
3383 (get_frame_register_signed): New function.
3384 (frame_unwind_register_unsigned): New function.
3385 (get_frame_register_unsigned): New function.
3386 * frame.h: Add comments on naming schema.
3387 (get_frame_register, frame_unwind_register_signed): Declare.
3388 (get_frame_register_signed, get_frame_register_signed): Declare.
3389 (frame_unwind_register_unsigned): Declare.
3390 (get_frame_register_unsigned): Declare.
3392 2003-06-20 Theodore A. Roth <troth@openavr.org>
3394 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3396 2003-06-20 Theodore A. Roth <troth@openavr.org>
3398 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3399 (avr_read_sp): Ditto.
3401 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3403 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3404 * config/arm/nm-linux.h: Likewise.
3405 * config/arm/tm-linux.h: Likewise.
3406 * config/ia64/nm-linux.h: Likewise.
3407 * config/ia64/tm-ia64.h: Likewise.
3408 * config/s390/tm-linux.h: Likewise.
3409 * config/s390/tm-s390.h: Likewise.
3410 * s390-nat.c: Likewise.
3411 * s390-tdep.c: Likewise.
3413 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3414 * config/ia64/linux.mt: Likewise.
3415 * config/m68k/linux.mh: Likewise.
3416 * config/mips/linux.mt: Likewise.
3417 * config/powerpc/linux.mh: Likewise.
3418 * config/sh/linux.mt: Likewise.
3420 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3422 * solib.c (solib_open): Change tests for whether to search
3423 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3426 2003-06-19 Theodore A. Roth <troth@openavr.org>
3428 * avr-tdep.c (avr_frame_address): Delete function.
3429 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3430 set_gdbarch_frame_args_address.
3432 2003-06-19 Andrew Cagney <cagney@redhat.com>
3434 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3435 (REGISTER_CONVERT_FROM_TYPE): Delete.
3436 (mips_register_convert_to_type): Delete declaration.
3437 (mips_register_convert_from_type): Delete declaration.
3438 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3441 2003-06-19 Michael Snyder <msnyder@redhat.com>
3443 * linux-nat.h: New file.
3444 * linux-nat.c: Include linux-nat.h.
3445 * lin-lwp.c: Include linux-nat.h.
3446 Move struct lwp_info def to linux-nat.h.
3447 * linux-proc.c: Include linux-nat.h.
3448 (linux_make_note_section): Iterate over lwps instead of threads.
3449 (linux_do_thread_registers): Use lwp instead of merged pid.
3450 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3451 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3452 Add dependency on linux_nat_h.
3454 2003-06-19 Theodore A. Roth <troth@openavr.org>
3456 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3458 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3460 * varobj.c (get_type, get_target_type): Use check_typedef.
3462 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3464 * breakpoint.c (insert_catchpoint): Call internal_error.
3466 2003-06-19 Theodore A. Roth <troth@openavr.org>
3468 * avr-tdep.c (avr_push_dummy_code): Delete function.
3469 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3471 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3473 * arch-utils.c (default_prepare_to_proceed): Remove.
3474 (generic_prepare_to_proceed): Remove.
3475 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3476 (generic_prepare_to_proceed): Remove prototype.
3477 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3478 * gdbarch.c: Regenerate.
3479 * gdbarch.h: Regenerate.
3480 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3481 * hppah-nat.c (hppa_switched_threads): Remove.
3482 * infrun.c (prepare_to_proceed): New static function, copied from
3483 generic_prepare_to_proceed. Remove select_it argument.
3484 (proceed): Call prepare_to_proceed.
3485 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3487 (ptrace_wait): Don't set the removed variables.
3488 (hppa_switched_threads): Remove.
3489 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3490 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3491 (lin_lwp_prepare_to_proceed): Remove prototype.
3492 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3493 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3495 2003-06-18 Theodore A. Roth <troth@openavr.org>
3497 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3499 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3500 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3501 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3502 (AVR_PROLOGUE_*): Enumerate prologue types.
3503 (struct frame_extra_info): Remove.
3504 (struct avr_unwind_cache): Define.
3505 (avr_write_sp): Delete function.
3506 (avr_read_fp): Ditto.
3507 (avr_init_extra_frame_info): Ditto.
3508 (avr_pop_frame): Ditto.
3509 (avr_frame_saved_pc): Ditto.
3510 (avr_saved_pc_after_call): Ditto.
3511 (avr_push_return_address): Ditto.
3512 (avr_frame_chain): Ditto.
3513 (avr_store_struct_return): Ditto.
3514 (avr_push_arguments): Ditto.
3515 (avr_scan_prologue): Update comments. Changed to set up the info for
3516 cache unwinding. Now returns end of prologue PC.
3517 (avr_skip_prologue): Better handling of functions lacking a prologue
3518 by using avr_scan_prologue.
3519 (avr_scan_arg_moves): New function.
3520 (avr_saved_regs_unwinder): Ditto.
3521 (avr_frame_unwind_cache): Ditto.
3522 (avr_unwind_pc): Ditto.
3523 (avr_frame_this_id): Ditto.
3524 (avr_frame_prev_register): Ditto.
3525 (avr_frame_p): Ditto.
3526 (avr_frame_base_address ): Ditto.
3527 (avr_unwind_dummy_id): Ditto.
3528 (avr_push_dummy_code): Ditto.
3529 (push_stack_item): Ditto.
3530 (pop_stack_item): Ditto.
3531 (avr_push_dummy_call): Ditto.
3532 (struct stack_item): Define.
3533 (avr_frame_unwind): Declare structure.
3534 (avr_frame_base): Ditto.
3535 (avr_gdbarch_init): Remove calls to
3536 set_gdbarch_deprecated_init_frame_pc,
3537 set_gdbarch_deprecated_target_read_fp,
3538 set_gdbarch_deprecated_dummy_write_sp,
3539 set_gdbarch_deprecated_fp_regnum,
3540 set_gdbarch_deprecated_push_arguments,
3541 set_gdbarch_deprecated_push_return_address,
3542 set_gdbarch_deprecated_pop_frame,
3543 set_gdbarch_deprecated_store_struct_return,
3544 set_gdbarch_deprecated_frame_init_saved_regs,
3545 set_gdbarch_deprecated_init_extra_frame_info,
3546 set_gdbarch_deprecated_frame_chain,
3547 set_gdbarch_deprecated_frame_saved_pc,
3548 set_gdbarch_deprecated_saved_pc_after_call.
3549 Add calls to set_gdbarch_push_dummy_call,
3550 set_gdbarch_push_dummy_code,
3551 frame_unwind_append_predicate,
3552 frame_base_set_default,
3553 set_gdbarch_unwind_dummy_id,
3554 set_gdbarch_unwind_pc.
3557 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3559 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3560 registers for H8/300S.
3561 (h8300_print_registers_info): Ditto.
3562 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3564 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3566 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3567 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3568 (lin_lwp_wait): Likewise. Update comments.
3569 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3570 (pull_pid_from_list, linux_record_stopped_pid): New.
3572 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3574 * ada-lang.c (scan_discrim_bound): Name first argument.
3575 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3576 declared by ALL_BLOCK_SYMBOLS.
3578 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3580 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3581 ("regcache.h"): Include it.
3582 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3584 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3586 * NEWS: Mention gdbserver detach change and "disconnect" command.
3587 * infcmd.c (disconnect_command): New function.
3588 (_initialize_infcmd): Add ``disconnect'' command.
3589 * remote.c (remote_async_detach): Delete.
3590 (remote_detach): Merge remote_async_detach.
3591 (remote_disconnect): New.
3592 (init_remote_ops): Set to_disconnect.
3593 (init_remote_cisco_ops): Likewise.
3594 (init_remote_async_ops): Likewise. Use remote_detach.
3595 * target.c (cleanup_target): Default to_disconnect.
3596 (update_current_target): Inherit to_disconnect.
3597 (target_disconnect, debug_to_disconnect): New functions.
3598 (setup_target_debug): Set to_disconnect.
3599 * target.h (struct target_ops): Add to_disconnect.
3600 (target_disconnect): Add prototype.
3602 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3604 * breakpoint.c (insert_catchpoint): New function.
3605 (insert_breakpoints): Use catch_exceptions to call
3606 insert_catchpoint. Disable catchpoints if they fail to insert.
3608 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3610 * symfile.c (reread_symbols): Clear sym_private.
3612 2003-06-17 Andrew Cagney <cagney@redhat.com>
3614 * trad-frame.h (struct frame_info): Add opaque declaration.
3615 * remote-fileio.h (struct cmd_list_element): Add opaque
3617 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3620 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3622 * remote.c (remote_prepare_to_store): Replace call to
3623 deprecated_read_register_bytes with multiple regcache_raw_read
3626 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3628 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3629 (nto_find_and_open_solib): Likewise.
3630 (nto_init_solib_absolute_prefix): Likewise.
3631 (_initialize_nto_tdep): Fix indentation.
3633 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3635 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3637 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3639 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3641 2003-06-17 Jim Blandy <jimb@redhat.com>
3643 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3645 2003-06-16 Theodore A. Roth <troth@openavr.org>
3647 * avr-tdep.c (avr_extract_return_value): New function.
3648 (avr_gdbarch_init): Set extract_return_value method.
3650 2003-06-16 Andrew Cagney <cagney@redhat.com>
3652 * frame.h (deprecated_get_next_frame_hack): Declare.
3653 * frame.c (legacy_saved_regs_prev_register): Only require
3654 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3655 there are always saved regs.
3656 (deprecated_generic_get_saved_register): Do not require
3657 DEPRECATED_FRAME_INIT_SAVED_REGS.
3658 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3659 use frame ID unwind instead.
3660 (deprecated_get_next_frame_hack): New function.
3662 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3664 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3665 (h8300_push_dummy_call): ...this function. Some minor optimization.
3666 (h8300_push_return_address): Remove.
3667 (h8300_gdbarch_init): Remove calls to
3668 set_gdbarch_deprecated_dummy_write_sp,
3669 set_gdbarch_deprecated_push_arguments and
3670 set_gdbarch_deprecated_push_return_address.
3671 Add call to set_gdbarch_push_dummy_call.
3673 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3675 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3676 (E_PSEUDO_EXR_REGNUM): Ditto.
3677 (h8300_is_argument_spill): Check for instructions moving argument
3678 registers into safe registers.
3679 (h8300_skip_prologue): Check for stm instruction to push registers
3680 used for register variables onto stack.
3681 (gdb_print_insn_h8300): Remove.
3682 (h8300_examine_prologue): Add a comment.
3683 (h8300_register_name): Take pseudo registers into account.
3684 (h8300s_register_name): Ditto.
3685 (h8300sx_register_name): Ditto.
3686 (h8300_print_register): Ditto.
3687 (h8300_print_registers_info): Define "nice" printing order.
3688 (h8300_saved_pc_after_call): Take pseudo registers into account.
3689 (h8300_register_type): Ditto. Return type used for remote connection
3690 when requesting real CCR or EXR register, return actual type when
3691 requesting pseudo CCR or EXR.
3692 (h8300_pseudo_register_read): New function.
3693 (h8300_pseudo_register_write): Ditto.
3694 (h8300_dbg_reg_to_regnum): Ditto.
3695 (h8300s_dbg_reg_to_regnum): Ditto.
3696 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3697 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3698 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3699 set_gdbarch_print_insn architecture dependent.
3700 Call set_gdbarch_pseudo_register_read and
3701 set_gdbarch_pseudo_register_write.
3702 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3704 2003-06-16 Andrew Cagney <cagney@redhat.com>
3706 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3707 * gdbarch.h, gdbarch.c: Re-generate.
3708 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3709 * s390-tdep.c (s390_gdbarch_init): Update.
3710 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3711 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3712 * mips-tdep.c (mips_gdbarch_init): Update.
3713 * mcore-tdep.c (mcore_gdbarch_init): Update.
3714 * cris-tdep.c (cris_gdbarch_init): Update.
3715 * infcall.c (call_function_by_hand): Update.
3716 * ia64-tdep.c (ia64_push_arguments): Update comment.
3717 * frame.c (legacy_get_prev_frame): Do not assume
3718 SAVE_DUMMY_FRAME_TOS_P.
3719 * dummy-frame.c (find_dummy_frame): Update comment.
3721 2003-06-16 Andrew Cagney <cagney@redhat.com>
3723 * regcache.c (do_cooked_read): Do not use register_valid_p.
3725 2003-06-15 Theodore A. Roth <troth@openavr.org>
3727 * avr-tdep.c (avr_register_type): Remove a blank line.
3728 (avr_scan_prologue): Correct some comments.
3730 2003-06-15 Theodore A. Roth <troth@openavr.org>
3732 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3734 Properly scan prologues generated by gcc with the -mcall-prologues
3736 Add code to scan -mcall-prologues for mega devices.
3738 2003-06-15 Theodore A. Roth <troth@openavr.org>
3740 * avr-tdep.c (avr_register_byte): Delete function.
3741 (avr_register_raw_size): Delete function.
3742 (avr_register_virtual_size): Delete function.
3743 (avr_register_virtual_type): Delete function.
3744 (avr_register_type): New function.
3745 (avr_address_to_pointer): Remove unused code.
3746 (avr_read_fp): Need to read FP as two separate bytes due to change to
3747 avr_register_type() usage.
3748 (avr_gdbarch_init): Don't set deprecated_register_size.
3749 Don't set deprecated_register_bytes.
3750 Don't set deprecated_register_byte.
3751 Don't set deprecated_register_raw_size.
3752 Don't set deprecated_max_register_raw_size.
3753 Don't set deprecated_register_virtual_size.
3754 Don't set deprecated_max_register_virtual_size.
3755 Don't set deprecated_register_virtual_type.
3756 Set register_type method.
3758 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3760 * Makefile.in (linux-nat.o): Add rule.
3761 * linux-nat.c: New file.
3762 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3763 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3764 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3765 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3766 * config/arm/linux.mh (NATDEPFILES): Likewise.
3767 * config/i386/linux.mh (NATDEPFILES): Likewise.
3768 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3769 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3770 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3771 * config/mips/linux.mh (NATDEPFILES): Likewise.
3772 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3773 * config/s390/s390.mh (NATDEPFILES): Likewise.
3774 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3776 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3778 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3779 replace out-of-date comment.
3781 2003-06-15 Andrew Cagney <cagney@redhat.com>
3783 * rdi-share/host.h (Fail): Change to a varargs function.
3784 * remote-rdi.c (Fail): Update.
3786 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3788 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3789 (i386_convert_register_p, i386_register_to_value,
3790 i386_register_from_value): Handle types longer than 8 bytes.
3792 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3794 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3795 Move floating-point code to new function in i387-tdep.c.
3796 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3797 New functions containing code moved here from i386-tdep.c.
3798 * i387-tdep.h: Add opaque declaration for `struct type'.
3799 (i387_register_to_value, i387_value_to_register): New prototypes.
3800 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3801 (x86_64_init_abi): Set convert_register_p, register_to_value and
3802 value_to_register here.
3804 2003-06-14 Andrew Cagney <cagney@redhat.com>
3806 * mips-tdep.c (mips_register_to_value): Make static.
3807 (mips_value_to_register): Make static.
3808 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3809 * ia64-tdep.c (ia64_register_raw_size): Make static.
3810 (ia64_register_virtual_size): Make static.
3811 (ia64_register_byte): Make static.
3812 * i387-tdep.c: Include "i387-tdep.h".
3813 (print_387_control_word): Delete function.
3814 (print_387_status_word): Delete function.
3815 (print_387_status_bits): Delete function.
3816 (print_387_control_bits): Delete function.
3817 * Makefile.in (i387-tdep.o): Update dependencies.
3818 * rdi-share/host.h (Fail): Declare.
3819 * remote-rdi.c (Fail): Update to match declaration.
3821 2003-06-14 Andrew Cagney <cagney@redhat.com>
3823 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3824 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3825 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3826 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3827 * README: Delete reference to remote-array.
3828 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3829 (remote-array.o): Delete target.
3830 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3831 * remote-array.c: Delete file.
3833 2003-06-14 Andrew Cagney <cagney@redhat.com>
3834 Mark Kettenis <kettenis@gnu.org>
3836 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3837 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3838 parameter with "frame".
3839 * gdbarch.h, gdbarch.c: Re-generate.
3840 * frame.h (put_frame_register): Declare.
3841 * frame.c (put_frame_register): New function.
3842 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3843 (legacy_register_to_value): Rewrite, use "frame" to get the
3845 (legacy_value_to_register): Rewrite, use "frame" to find the
3846 register's location before storing.
3847 * arch-utils.h (legacy_convert_register_p): Update.
3848 (legacy_register_to_value, legacy_value_to_register): Update.
3849 * findvar.c (value_from_register): Rewrite, eliminate use of
3850 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3851 "frame" to REGISTER_TO_VALUE.
3852 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3853 lval_reg_frame_relative + lval_register branch of the switch. Do
3854 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3855 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3856 I386_EDI_REGNUM): New defines.
3857 (i386_next_regnum, i386_convert_register_p,
3858 i386_register_to_value, i386_value_to_register): New functions.
3859 (i386_register_convertible, i386_register_convert_to_virtual,
3860 i386_convert_to_raw): Remove functions.
3861 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3862 value_to_register instead of register_convertible,
3863 register_convert_to_virtual and register_convert_to_raw.
3864 * mips-tdep.c (mips_convert_register_p): New function.
3865 (mips_value_to_register): Replace mips_register_convert_from_type.
3866 (mips_register_to_value): Replace mips_register_convert_to_type.
3867 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3869 * alpha-tdep.c (alpha_convert_register_p): Update.
3870 (alpha_value_to_register): Update, store the register.
3871 (alpha_register_to_value): Update, fetch the register.
3873 2003-06-14 Theodore A. Roth <troth@openavr.org>
3875 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3876 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3877 Don't set deprecated_call_dummy_words.
3878 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3879 Don't set remote_translate_xfer_address.
3880 (avr_io_reg_read_command): Remove commented out debug printf.
3883 2003-06-14 Theodore A. Roth <troth@openavr.org>
3885 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3886 causes gdb to seg fault.
3888 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3890 * sparc-nat.c (fetch_inferior_registers): Correct
3891 a reference to "registers".
3893 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3895 * Makefile.in (exc_request_U_h): Define
3896 (exc_request_S_h): Likewise.
3897 (msg_reply_S_h): Likewise.
3898 (msg_U_h): Likewise.
3899 (notify_S_h): Likewise.
3900 (process_reply_S_h): Likewise.
3901 (gnu-nat.o): Depend on gdb_obstack_h
3902 * gnu-nat.c: Include "gdb_obstack.h".
3904 2003-06-13 Andrew Cagney <cagney@redhat.com>
3906 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3907 * gdbarch.h, gdbarch.c: Re-generate.
3909 2003-06-13 Andrew Cagney <cagney@redhat.com>
3911 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3912 when deprecated REGISTER macros can be deleted.
3913 * gdbarch.h, gdbarch.c: Re-generate.
3915 2003-06-13 Jim Blandy <jimb@redhat.com>
3917 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3918 Linux entry point symbols for _dl_debug_state, too.
3920 2003-06-13 Andrew Cagney <cagney@redhat.com>
3922 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3923 available, do not use the FP register, and always save the TOS.
3924 * dummy-frame.c (dummy_frame_this_id): Do not assert
3925 SAVE_DUMMY_FRAME_TOS.
3926 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3927 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3928 (i386_push_dummy_call): Add 8 to the returned SP.
3929 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3930 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3931 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3932 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3933 (x86_64_push_dummy_call): Return "sp + 16".
3934 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3935 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3936 save_dummy_frame_tos.
3938 2003-06-13 Jim Blandy <jimb@redhat.com>
3940 * frv-tdep.c (frv_use_struct_convention): Delete static
3941 declaration for function deleted in my change of 2003-06-12.
3943 2003-06-13 Theodore A. Roth <troth@openavr.org>
3945 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3946 (avr_pointer_to_address): Shift code addrs left 1 bit.
3947 (avr_convert_from_func_ptr_addr): Delete function since operation is
3948 better handled by avr_address_to_pointer and avr_pointer_to_address.
3949 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3951 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3953 From Kelley Cook <kelleycook@wideopenwest.com>:
3954 * configure.host: Accept i[34567]86 variants.
3955 * configure.tgt: Likewise.
3956 * nlm/configure.in: Likewise.
3957 * nlm/configure: Regenerated.
3959 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3961 * arm-tdep.c (solib-svr4.h): Dont' include it.
3962 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3963 * arm-linux-tdep.c: ... here. Make static.
3964 (arm_linux_init_abi): Register it.
3965 (solib-svr4.h): Include it.
3966 * Makefile.in: Update dependencies.
3967 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3968 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3970 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3972 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3973 indicate registers used for return values.
3974 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3975 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3977 (h8300_init_extra_frame_info): Ditto.
3978 (h8300_frame_locals_address): Removed.
3979 (h8300_frame_args_address): Removed.
3980 (h8300_extract_return_value): Use new regcache structure. Only care
3982 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3983 (h8300_store_return_value): Use new regcache structure. Only care
3985 (h8300h_store_return_value): Same function for 32 bit CPUs.
3986 (h8300_store_struct_return): Removed.
3987 (h8300_extract_struct_value_address): Use new regcache structure.
3988 (h8300h_extract_struct_value_address): Removed.
3989 (h8300_push_dummy_code): New function.
3990 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3991 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3992 set_gdbarch_store_return_value architecture dependent.
3993 Call set_gdbarch_push_dummy_code and
3994 set_gdbarch_extract_struct_value_address.
3995 Remove calls to set_gdbarch_frame_args_address,
3996 set_gdbarch_frame_locals_address,
3997 set_gdbarch_deprecated_store_struct_return,
3998 set_gdbarch_deprecated_extract_return_value,
3999 set_gdbarch_deprecated_extract_struct_value_address,
4000 set_gdbarch_deprecated_call_dummy_words and
4001 set_gdbarch_deprecated_sizeof_call_dummy_words.
4003 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4005 * h8300-tdep.c (h8300_register_byte): Remove.
4006 (h8300h_register_byte): Remove.
4007 (h8300_register_virtual_type): Remove. Substitute by...
4008 (h8300_register_type): New function.
4009 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4010 (h8300h_extract_struct_value_address): Ditto.
4011 (h8300_gdbarch_init): Drop calls to
4012 set_gdbarch_deprecated_register_byte and
4013 set_gdbarch_deprecated_register_virtual_type.
4014 Add call to set_gdbarch_register_type.
4016 2003-06-13 Andrew Cagney <cagney@redhat.com>
4018 * gdbarch.sh: Update comments on registers.
4019 (deprecated_register_byte): Rename register_byte.
4020 (deprecated_register_raw_size): Rename register_raw_size.
4021 (deprecated_register_virtual_size): Rename register_virtual_size.
4022 (deprecated_register_virtual_type): Rename register_virtual_type.
4023 * gdbarch.h, gdbarch.c: Re-generate.
4024 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4025 * vax-tdep.c (vax_gdbarch_init): Update.
4026 * v850-tdep.c (v850_gdbarch_init): Update.
4027 * sparc-tdep.c (sparc_gdbarch_init): Update.
4028 * sh-tdep.c (sh_gdbarch_init): Update.
4029 * s390-tdep.c (s390_gdbarch_init): Update.
4030 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4031 * ns32k-tdep.c: Update.
4032 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4033 * mips-tdep.c (mips_gdbarch_init): Update.
4034 * mcore-tdep.c (mcore_gdbarch_init): Update.
4035 * m68k-tdep.c (m68k_gdbarch_init): Update.
4036 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4037 * ia64-tdep.c (ia64_gdbarch_init): Update.
4038 * hppa-tdep.c (hppa_gdbarch_init): Update.
4039 * h8300-tdep.c (h8300_gdbarch_init): Update.
4040 * frv-tdep.c (frv_gdbarch_init): Update.
4041 * cris-tdep.c (cris_gdbarch_init): Update.
4042 * avr-tdep.c (avr_gdbarch_init): Update.
4043 * alpha-tdep.c (alpha_gdbarch_init): Update.
4044 * arm-tdep.c (arm_gdbarch_init): Update.
4046 2003-06-13 Andrew Cagney <cagney@redhat.com>
4048 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4049 mips_o32_use_struct_convention with always_use_struct_convention.
4051 2003-06-12 David Carlton <carlton@kealia.com>
4053 * cp-namespace.c (cp_set_block_scope): Comment out
4054 processing_has_namespace_info branch.
4056 2003-06-12 Jim Blandy <jimb@redhat.com>
4058 Recognize and skip 64-bit PowerPC Linux linkage functions.
4059 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4060 insn_pattern, insns_match_pattern, d_field, ds_field): New
4061 functions, macros, and types for working with PPC instructions.
4062 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4063 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4064 ppc64_skip_trampoline_code): New functions, variables, and macros
4065 for recognizing and skipping linkage functions.
4066 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4067 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4069 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4070 register offsets for both the 32- and 64-bit interfaces.
4072 Actually finish the job started by my change of 2003-05-29.
4073 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4074 other #definition of this.
4075 (ppc_linux_skip_trampoline_code): Remove declaration.
4076 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4078 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4081 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4082 'long' on ppc64-*-linux*.
4084 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4085 isn't #defined, assume the register doesn't exist: act as if
4086 tdep->ppc_mq_regnum were -1.
4088 * configure.host, configure.tgt: Add entries for
4089 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4091 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4094 * arch-utils.c (always_use_struct_convention): New function.
4095 * arch-utils.h (always_use_struct_convention): New prototype.
4096 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4097 (alpha_gdbarch_init): Register always_use_struct_convention,
4098 instead of alpha_use_struct_convention.
4099 * cris-tdep.c (cris_use_struct_convention): Delete.
4100 (cris_gdbarch_init): Register always_use_struct_convention,
4101 instead of cris_use_struct_convention.
4102 * frv-tdep.c (frv_use_struct_convention): Delete.
4103 (frv_gdbarch_init): Register always_use_struct_convention,
4104 instead of frv_use_struct_convention.
4105 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4106 (h8300_gdbarch_init): Register always_use_struct_convention,
4107 instead of h8300_use_struct_convention.
4108 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4109 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4110 instead of mips_o32_use_struct_convention.
4112 2003-06-12 Andrew Cagney <cagney@redhat.com>
4114 * wince.c: Include "mips-tdep.h".
4115 * mips-tdep.h (mips_next_pc): Declare.
4116 * mcore-tdep.c: Make more local functions static.
4117 * Makefile.in (wince.o): Update dependencies.
4119 2003-06-12 David Carlton <carlton@kealia.com>
4121 * symtab.c (lookup_symbol_aux_minsyms): Replace
4122 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4123 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4124 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4125 SYMBOL_NATURAL_NAME.
4127 2003-06-12 Andreas Schwab <schwab@suse.de>
4129 * Makefile.in (tuiDisassem.o): Update dependencies.
4131 2003-06-12 David Carlton <carlton@bactrian.org>
4133 * symtab.h: Delete declaration of make_symbol_overload_list.
4134 Add declaration of lookup_partial_symbol.
4135 * symtab.c (remove_params): Move to cp-support.c.
4136 (overload_list_add_symbol, make_symbol_overload_list)
4137 (sym_return_val_size, sym_return_val_index): Ditto.
4138 (lookup_partial_symbol): Make extern.
4139 * cp-support.h: Add declaration of make_symbol_overload_list.
4140 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4141 symtab.h, and block.h.
4142 (remove_params): Move here from symtab.c.
4143 (overload_list_add_symbol, make_symbol_overload_list)
4144 (sym_return_val_size, sym_return_val_index): Ditto.
4145 * valops.c: Include cp-support.h.
4146 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4147 frame_h, and block_h.
4148 (valops.o): Depend on cp_support_h.
4150 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4152 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4153 substitute by NUM_REGS throughout.
4154 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4155 (h8300s_register_name): New function for H8S registers.
4156 (h8300sx_register_name): Ditto for H8SX registers.
4157 (h8300_print_register): Revise register printing, avoid depending
4159 (h8300_register_byte): Only care for H8/300 registers.
4160 (h8300h_register_byte): New function for any other architecture.
4161 (h8300_register_raw_size): Remove.
4162 (h8300_register_virtual_type): Revise to return actually useful
4164 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4165 (h8300h_extract_struct_value_address): New function for any other
4167 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4168 set_gdbarch_register_name, set_gdbarch_register_byte,
4169 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4170 Remove calls to set_gdbarch_deprecated_register_size,
4171 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4172 set_gdbarch_deprecated_max_register_raw_size,
4173 set_gdbarch_register_virtual_size and
4174 set_gdbarch_deprecated_max_register_virtual_size entirely.
4175 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4176 set_gdbarch_long_double_bit.
4178 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4180 * doublest.c (convert_doublest_to_floatformat): When dealing
4181 with the implied integer bit, only alter mant_bits if we are
4182 processing a full 32 bits of mantissa.
4184 2003-06-11 David Carlton <carlton@bactrian.org>
4186 * dictionary.h: New.
4187 * dictionary.c: New.
4188 * block.h: Add opaque declaration for struct dictionary.
4189 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4191 (BLOCK_DICT): New macro.
4192 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4193 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4195 (ALL_BLOCK_SYMBOLS): Update definition.
4196 * Makefile.in (SFILES): Add dictionary.c.
4197 (dictionary_h): New.
4198 (COMMON_OBS): Add dictionary.o.
4199 (dictionary.o): New.
4200 (ada-lang.o): Depend on dictionary_h.
4201 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4202 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4203 (mi-cmd-stack.o): Ditto.
4204 (gdbtk-cmds.o): Update dependencies.
4205 (gdbtk-stack.o): Ditto.
4206 * ada-lang.c: Include dictionary.h.
4207 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4208 (fill_in_ada_prototype, debug_print_block): Ditto.
4209 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4210 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4212 * mdebugread.c: Include dictionary.h.
4213 (struct parse_stack): Delete 'maxsyms' member.
4214 (parse_symbol): Update calls to new_block. Delete calls to
4215 shrink_block. Use dictionary methods.
4216 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4217 Update calls to new_symtab. Don't maintain maxsyms data.
4218 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4219 (add_symbol): Just call dict_add_symbol.
4220 (new_symtab): Delete 'maxsyms' argument.
4221 (new_symtab): Update calls to new_block.
4222 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4223 (shrink_block): Delete function.
4224 (fixup_sigtramp): Update call to new_block. Add symbol via
4226 * jv-lang.c: Include dictionary.h.
4227 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4228 appropriately. Set class_symtab->free_func. Make sure the
4229 blockvector is big enough to hold two blocks.
4230 (add_class_symtab_symbol): Use dictionary methods.
4231 (free_class_block): New function.
4232 (type_from_class): Replace explicit iteration by
4234 * symtab.h (struct symtab): Replace 'free_ptr' method by
4236 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4238 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4240 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4241 Include dictionary.h.
4242 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4243 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4245 * objfiles.c: Include dictionary.h.
4246 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4247 * buildsym.c: Include dictionary.h.
4248 (finish_block): Use dictionary methods.
4249 (end_symtab): Set free_func to NULL, not free_ptr.
4250 * tracepoint.c: Include dictionary.h.
4251 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4252 (scope_info): Ditto.
4253 * stack.c: Include dictionary.h.
4254 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4255 (print_block_frame_labels, print_frame_arg_vars)
4256 (print_frame_args): Ditto.
4257 * symmisc.c (free_symtab_block): Use dictionary methods.
4258 (dump_symtab): Ditto.
4259 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4260 Include dictionary.h.
4261 * symfile.h: Delete declarations of sort_block_syms,
4263 * symfile.c (sort_block_syms): Delete.
4264 (sort_symtab_syms): Delete.
4265 * symtab.c: Include dictionary.h.
4266 (lookup_block_symbol): Use dictionary iterators.
4267 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4268 (search_symbols, make_symbol_completion_list): Ditto.
4269 (make_symbol_overload_list): Ditto.
4270 * valops.c (value_of_local): Use dict_empty.
4271 Include dictionary.h.
4273 2003-06-11 J. Brobecker <brobecker@gnat.com>
4275 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4277 2003-06-11 David Carlton <carlton@bactrian.org>
4279 * block.h (BLOCK_SHOULD_SORT): Delete.
4280 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4282 * ada-lang.c (ada_add_block_symbols): Ditto.
4283 * symfile.c (sort_block_syms): Delete.
4284 (sort_symtab_syms): Ditto.
4285 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4287 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4288 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4289 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4290 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4291 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4292 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4293 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4295 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4297 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4300 2003-06-11 Andrew Cagney <cagney@redhat.com>
4302 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4303 REGISTER_CONVERTIBLE.
4304 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4305 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4306 * gdbarch.h, gdbarch.c: Re-generate.
4307 * arch-utils.h (deprecated_register_convertible_not): Rename
4308 generic_register_convertible_not.
4309 * arch-utils.c (deprecated_register_convertible_not): Rename
4310 generic_register_convertible.
4311 (legacy_convert_register_p, legacy_register_to_value): Update.
4312 * sh-tdep.c (sh64_push_arguments): Update.
4313 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4314 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4315 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4316 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4317 * arch-utils.c (legacy_value_to_register): Update.
4318 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4319 (rs6000_register_convert_to_raw): Make parameter "from" const.
4320 * mips-tdep.c (mips_gdbarch_init): Update.
4321 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4322 * infcmd.c (default_print_registers_info): Update.
4323 * ia64-tdep.c (ia64_gdbarch_init): Update.
4324 (ia64_register_convert_to_raw): Make parameter "from" const.
4325 * i386-tdep.c (i386_gdbarch_init): Update.
4326 (i386_register_convert_to_raw): Update.
4328 2003-06-11 Andrew Cagney <cagney@redhat.com>
4330 * remote-fileio.c: Include "remote-fileio.h".
4331 * Makefile.in (remote-fileio.o): Update dependencies.
4332 (remote_fileio_h): Fix typo.
4334 2003-06-11 Andrew Cagney <cagney@redhat.com>
4336 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4337 (xstormy16_save_dummy_frame_tos): Make static.
4338 (_initialize_xstormy16_tdep): Add declaration.
4339 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4340 * v850-tdep.c: Make local functions static.
4341 (_initialize_v850_tdep): Add declaration.
4342 * sparc-tdep.c: Make local functions static.
4343 (_initialize_sparc_tdep): Add declaration.
4344 * sh-tdep.c: Make local functions static.
4345 (_initialize_sh_tdep): Add declaration.
4346 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4347 * s390-tdep.c: Make local functions static.
4348 (_initialize_s390_tdep): Add declaration.
4349 * dbxread.c (find_stab_function_addr): Make static.
4350 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4351 * ocd.c (_initialize_remote_ocd): Add declaration.
4352 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4353 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4354 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4355 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4356 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4357 * remote-array.c (_initialize_array): Add declaration.
4358 (_initialize_remote_monitors): Add declaration.
4359 * remote-mips.c: Make local functions static.
4360 (_initialize_remote_mips): Add declaration.
4361 * mcore-tdep.c: Make all local functions static.
4362 (_initialize_mcore_tdep): Add declaration.
4363 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4364 * abug-rom.c (_initialize_abug_rom): Add declaration.
4365 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4366 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4367 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4368 * remote-est.c (_initialize_est): Add declaration.
4369 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4370 (m68hc11_call_dummy_address): Make static.
4371 * ia64-tdep.c: Make local functions static.
4372 (_initialize_ia64_tdep): Add declaration.
4373 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4374 * monitor.c (monitor_wait_filter): Make static.
4375 (_initialize_remote_monitors): Add declaration.
4376 * remote-hms.c (_initialize_remote_hms): Add declaration.
4377 * remote-e7000.c (fetch_regs_from_dump): Make static.
4378 (expect_n): Make static.
4379 (_initialize_remote_e7000): Add declaration.
4380 * ser-e7kpc.c: Always include "defs.h".
4381 (_initialize_ser_e7000pc): Add declaration.
4382 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4383 * cris-tdep.c: Make all but one function static.
4384 (_initialize_cris_tdep): Add declaration.
4385 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4386 * solib.c (update_solib_list): Make static.
4387 (_initialize_solib): Add declaration.
4388 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4389 (_initialize_avr_tdep): Add declaration.
4390 * remote-rdi.c (voiddummy): Make static.
4391 (_initialize_remote_rdi): Add declaration.
4392 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4393 * remote-rdp.c (send_rdp): Make static.
4394 (_initialize_remote_rdp): Add declaration.
4395 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4397 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4399 * remote-fileio.c: Make ari happy.
4401 2003-06-10 J. Brobecker <brobecker@gnat.com>
4403 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4404 fetching the trailing bytes of the buffer we are about to write.
4406 2003-06-10 Andrew Cagney <cagney@redhat.com>
4408 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4409 * Makefile.in (remote-fileio.o): Update dependencies.
4410 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4411 include <setjmp.h>, or <sys/types.h> conditional on USG.
4412 (remote_fio_jmp_buf): Delete global variable.
4414 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4415 Martin M. Hunt <hunt@redhat.com>
4417 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4418 (SFILES): Add remote-fileio.c.
4419 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4420 dependencies for building remote.o.
4421 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4422 * remote-fileio.h: New header file defining remote File-I/O interface.
4423 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4424 static storage class.
4425 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4427 (_initialize_remote): Call initialize_remote_fileio().
4428 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4429 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4430 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4431 (captured_main): Initialize new ui_files.
4432 * ui-file.c: Add read and fgets input functions.
4433 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4434 (null_file_read): New function.
4435 (ui_file_read): New function.
4436 (set_ui_file_read): New function.
4437 (stdio_file_read): New function.
4438 * ui-file.h: New type ui_file_read_ftype.
4439 (set_ui_file_read): Declare.
4440 (ui_file_read): Declare.
4442 2003-06-09 Andrew Cagney <cagney@redhat.com>
4444 * frame.h (deprecated_unwind_get_saved_register): Rename
4445 generic_unwind_get_saved_register, update comments.
4446 * mips-tdep.c (mips_get_saved_register): Update.
4447 * frame.c (deprecated_unwind_get_saved_register): Update.
4449 2003-06-09 Andrew Cagney <cagney@redhat.com>
4451 * vax-tdep.c (vax_frame_locals_address): Delete function.
4452 (vax_gdbarch_init): Do not set frame_locals_address.
4453 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4454 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4455 * s390-tdep.c (s390_frame_args_address): Delete function.
4456 (s390_gdbarch_init): Do not set frame_args_address or
4457 frame_locals_address.
4458 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4459 (ns32k_gdbarch_init): Do not set frame_locals_address.
4460 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4461 (hppa_frame_locals_address): Delete function.
4462 (hppa_gdbarch_init): Do not set frame_args_address, or
4463 frame_locals_address.
4464 * arm-tdep.c (arm_frame_args_address): Delete.
4465 (arm_frame_locals_address): Delete.
4466 (arm_gdbarch_init): Do not set frame_args_address, or
4467 frame_locals_address.
4469 2003-06-09 Andrew Cagney <cagney@redhat.com>
4471 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4472 * gdbarch.h, gdbarch.c: Re-generate.
4473 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4474 * arch-utils.c (frame_num_args_unknown): Delete function.
4475 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4476 (frame_info): Use FRAME_NUM_ARGS_P.
4477 * arm-tdep.c (arm_frame_num_args): Delete function.
4478 (arm_gdbarch_init): Do not set frame_num_args.
4479 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4480 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4481 (hppa_gdbarch_init): Do not set frame_num_args.
4482 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4483 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4484 frame_num_args to default frame_num_args_unknown.
4485 * v850-tdep.c (v850_gdbarch_init): Ditto.
4486 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4487 * sh-tdep.c (sh_gdbarch_init): Ditto.
4488 * s390-tdep.c (s390_gdbarch_init): Ditto.
4489 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4490 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4491 * mips-tdep.c (mips_gdbarch_init): Ditto.
4492 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4493 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4494 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4495 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4496 * i386-tdep.c (i386_gdbarch_init): Ditto.
4497 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4498 * frv-tdep.c (frv_gdbarch_init): Ditto.
4499 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4500 * cris-tdep.c (cris_gdbarch_init): Ditto.
4501 * avr-tdep.c (avr_gdbarch_init): Ditto.
4502 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4504 2003-06-09 Andrew Cagney <cagney@redhat.com>
4506 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4507 (print_frame_args): Moved to "stack.c".
4508 * stack.c: Include "gdb_assert.h".
4509 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4510 (print_frame_args): Moved from "printcmd.c".
4511 * frame.h (print_frame_args): Delete declaration.
4512 * Makefile.in (stack.o): Update dependencies.
4514 2003-06-08 Andrew Cagney <cagney@redhat.com>
4516 * frame.c (get_prev_frame): Remove reference to
4517 frame_args_address_correct in comments.
4518 * frame-base.c (default_frame_args_address): Delete code
4519 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4520 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4521 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4522 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4523 (vax_frame_args_address_correct): Delete declaration.
4525 2003-06-08 Andrew Cagney <cagney@redhat.com>
4527 * gdbarch.sh (UNWIND_SP): Add.
4528 * gdbarch.h, gdbarch.c: Re-generate.
4529 * frame.c (frame_sp_unwind): New function.
4530 (get_frame_sp): New function.
4531 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4532 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4533 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4535 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4536 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4538 2003-06-08 Andrew Cagney <cagney@redhat.com>
4540 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4543 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4544 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4545 * config/m68k/tm-sun3.h: Update.
4546 * config/m68k/tm-m68klynx.h: Update.
4547 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4549 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4550 trad_frame". Update comments.
4551 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4552 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4553 (trad_frame_register_value, trad_frame_prev_register): Update.
4555 2003-06-08 Andrew Cagney <cagney@redhat.com>
4557 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4558 from GCC's acinclude.m4.
4559 * configure.in: Check for getopt's delcaration.
4560 * aclocal.m4, config.in, configure: Re-generate.
4561 * main.c (error_init): Delete declaration.
4562 * defs.h (error_init): Declare.
4563 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4564 (rs6000_convert_from_func_ptr_addr): Make static.
4565 (_initialize_rs6000_tdep): Add declaration.
4566 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4567 (show_commands, set_verbose, show_history): Delete declaration.
4568 * top.h (set_verbose): Add declaration.
4569 (show_history, set_history, show_commands): Add declaration.
4570 (do_restore_instream_cleanup): Add declaration.
4571 * objc-lang.c (specialcmp): Make static.
4572 (print_object_command): Make static.
4573 (find_objc_msgsend): Make static.
4574 (find_objc_msgcall_submethod_helper): Make static.
4575 (find_objc_msgcall_submethod): Make static.
4576 (_initialize_objc_language): Add declaration.
4577 (find_implementation_from_class): Make static.
4578 (find_implementation): Make static.
4579 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4580 * objc-lang.h (lookup_struct_typedef): Add declaration.
4581 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4582 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4583 (do_restore_user_call_depth): Make static.
4584 (do_restore_instream_cleanup): Delete declaration.
4585 (dont_repeat): Delete declaration.
4586 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4587 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4588 * reggroups.c (_initialize_reggroup): Add declaration.
4589 * cp-support.c (_initialize_cp_support): Add declaration.
4590 * cp-abi.c (_initialize_cp_abi): Add declaration.
4591 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4592 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4593 (_initialize_gnu_v3_abi): Add declaration.
4594 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4595 (_initialize_gnu_v2_abi): Add declaration.
4596 * frame-base.c (_initialize_frame_base): Add declaration.
4597 * doublest.c (floatformat_from_length): Make static.
4598 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4599 * frame.c (create_sentinel_frame): Make static.
4600 (_initialize_frame): Add declaration.
4601 * top.c (do_catch_errors): Make static.
4602 (gdb_rl_operate_and_get_next_completion): Make static.
4603 * typeprint.c: Include "typeprint.h".
4604 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4605 (sentinel_frame_this_id): Make static.
4606 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4607 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4608 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4609 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4610 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4611 * maint.c (maintenance_print_architecture): Make static.
4612 * signals/signals.c (_initialize_signals): Add declaration.
4613 * std-regs.c (_initialize_frame_reg): Add declaration.
4614 * jv-exp.y (push_variable): ISO C definition.
4615 (push_qualified_expression_name): Ditto.
4616 * memattr.c (_initialize_mem): Add declaration.
4617 * remote.c (remote_check_watch_resources): Make static.
4618 (remote_stopped_by_watchpoint): Make static.
4619 (remote_stopped_data_address): Make static.
4620 * d10v-tdep.c (nr_dmap_regs): Make static.
4621 (a0_regnum): Make static.
4622 (d10v_frame_unwind_cache): Make static.
4623 (d10v_frame_p): Make static.
4624 * osabi.c (show_osabi): Make static.
4625 (_initialize_gdb_osabi): Add extern declaration.
4626 * gdbtypes.c (make_qualified_type): Make static.
4627 (safe_parse_type): Make static.
4628 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4629 * macrotab.c (macro_bcache_free): Make static.
4630 * interps.c (interp_set_quiet): Make static.
4631 (interpreter_exec_cmd): Make static.
4632 * stack.h (select_frame_command): New file.
4633 * stack.c: Include "stack.h".
4634 (select_frame_command_wrapper): Delete function.
4635 (select_frame_command): Make global.
4636 * infcall.c: Include "infcall.h".
4637 * linespec.c: Include "linespec.h".
4638 * symfile.c (sections_overlap): Make static.
4639 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4640 * charset.c (_initialize_charset): Add missing prototype.
4641 * regcache.c (init_legacy_regcache_descr): Make static.
4642 (do_regcache_xfree): Make static.
4643 (regcache_xfer_part): Make static.
4644 (_initialize_regcache): Add missing prototype.
4645 * breakpoint.c (parse_breakpoint_sals): Make static.
4646 (breakpoint_sals_to_pc): Make static.
4647 * interps.h (clear_interpreter_hooks): ISO C declaration.
4648 * Makefile.in (stack_h): Define.
4649 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4650 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4652 2003-06-08 Andrew Cagney <cagney@redhat.com>
4654 * Makefile.in (d10v-tdep.o): Update dependencies.
4655 (SFILES): Add trad-frame.c.
4656 (trad_frame_h): Define.
4657 (COMMON_OBS): Add trad-frame.o.
4658 (trad-frame.o): Specify dependencies.
4659 * d10v-tdep.c: Include "trad-frame.h".
4660 (saved_regs_unwinder): Delete function.
4661 (d10v_frame_prev_register): Use trad_frame_prev_register.
4662 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4663 trad_frame", delete "regs" and "prev_sp".
4664 (prologue_find_regs): Use trad-frame.
4665 * trad-frame.h, trad-frame.c: New files.
4667 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4669 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4671 2003-06-07 Adam Fedor <fedor@gnu.org>
4673 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4674 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4675 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4676 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4677 resolve_msgsend_super, resolve_msgsend_super_stret):
4680 2003-06-07 Andrew Cagney <cagney@redhat.com>
4682 * symfile.h: Re-indent, clean up comments.
4684 2003-06-07 Andrew Cagney <cagney@redhat.com>
4686 * inferior.h (deprecated_write_sp): Replace
4687 generic_target_write_sp.
4688 * regcache.c (deprecated_write_sp): Replace
4689 generic_target_write_sp.
4690 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4691 * vax-tdep.c (vax_gdbarch_init): Update.
4692 * v850-tdep.c (v850_gdbarch_init): Update.
4693 * sparc-tdep.c (sparc_gdbarch_init): Update.
4694 * sh-tdep.c (sh_gdbarch_init): Update.
4695 * s390-tdep.c (s390_gdbarch_init): Update.
4696 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4697 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4698 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4699 * mcore-tdep.c (mcore_gdbarch_init): Update.
4700 * m68k-tdep.c (m68k_gdbarch_init): Update.
4701 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4702 * ia64-tdep.c (ia64_gdbarch_init): Update.
4703 * h8300-tdep.c (h8300_gdbarch_init): Update.
4704 * frv-tdep.c (frv_gdbarch_init): Update.
4705 * cris-tdep.c (cris_gdbarch_init): Update.
4706 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4708 2003-06-07 Andrew Cagney <cagney@redhat.com>
4710 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4711 Assert that PC_REGNUM is valid.
4712 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4714 2003-06-07 Andrew Cagney <cagney@redhat.com>
4716 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4717 * gdbarch.h, gdbarch.c: Regenerate.
4718 * mn10300-tdep.c: Include "gdb_assert.h".
4719 (mn10300_read_fp): New function.
4720 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4721 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4722 * ia64-tdep.c: Include "gdb_assert.h".
4723 (ia64_read_fp): New function.
4724 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4725 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4726 * regcache.c (generic_target_read_sp): Delete function.
4727 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4728 * inferior.h (generic_target_read_sp): Delete declaration.
4729 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4730 generic_target_read_sp.
4731 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4732 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4733 * sh-tdep.c (sh_gdbarch_init): Ditto.
4734 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4735 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4737 2003-06-07 Andrew Cagney <cagney@redhat.com>
4739 * gdbarch.sh: Comment each field of startup_gdbarch.
4740 * gdbarch.h, gdbarch.c: Re-generate.
4742 2003-06-07 Andrew Cagney <cagney@redhat.com>
4744 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4745 * gdbarch.h, gdbarch.c: Re-generate.
4746 * regcache.c: Update comments on read_pc et.al.
4747 (generic_target_read_pc): Delete function.
4748 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4749 * inferior.h (generic_target_read_pc): Delete declaration.
4750 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4751 generic_target_read_pc.
4752 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4753 * sh-tdep.c (sh_gdbarch_init): Ditto.
4754 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4755 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4757 2003-06-07 Andrew Cagney <cagney@redhat.com>
4759 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4760 "index" with "special_local_sect". Use strcmp instead of STREQ.
4761 Append period to coments.
4763 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4765 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4766 (elfstab_offset_sections): Likewise.
4767 * gdb-stabs.h (stab_section_info): Likewise.
4768 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4769 * objfiles.c (objfile_relocate): Likewise.
4770 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4771 * remote.c (get_offsets): Likewise.
4772 (remote_cisco_objfile_relocate): Likewise.
4773 * somread.c (som_symfile_offsets): Likewise.
4774 * symfile.c (alloc_section_addr_info): New function.
4775 (build_section_addr_info_from_section_tab): Use it.
4776 (free_section_addr_info): Adjust.
4777 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4778 (syms_from_objfile): Allocate local_addr dynamically.
4779 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4781 (add_symbol_file_command): Allocate sect_opts dynamically.
4782 (reread_symbols): Avoid use of SECT_OFF_MAX.
4783 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4784 (alloc_section_addr_info): Declare it.
4785 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4786 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4788 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4790 2003-06-06 Andrew Cagney <cagney@redhat.com>
4792 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4793 (d10v_frame_unwind_cache): Do not set "return_pc".
4795 2003-06-06 Michael Snyder <msnyder@redhat.com>
4797 * h8300-tdep.c: Make tidy (long lines).
4799 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4801 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4802 to regcache_collect().
4804 2003-06-05 J. Brobecker <brobecker@gnat.com>
4806 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4807 pc_in_sigtramp multiarch method.
4808 (hppa_hpux_som_init_abi): Use it.
4809 (hppa_hpux_elf_init_abi): Likewise.
4810 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4811 macro has been multiarched.
4812 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4813 macro here, as hppa64 isn't multiarched yet.
4815 2003-06-05 Andrew Cagney <cagney@redhat.com>
4817 * Makefile.in (value_h): Add $(frame_h).
4818 * value.h: Include "frame.h".
4819 (struct value): Replace "frame_addr" with "frame_id".
4820 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4821 * values.c (allocate_value): Use VALUE_FRAME_ID.
4822 (value_copy): Use VALUE_FRAME_ID.
4823 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4824 * valops.c (value_assign): Update. Use frame_find_by_id.
4826 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4828 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4831 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4833 * thread-db.c (check_event): For create/death event breakpoints,
4834 loop through all messages to ensure that we read the message
4835 corresponding to the breakpoint we are at.
4837 2003-06-04 Michael Snyder <msnyder@redhat.com>
4839 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4841 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4843 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4844 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4845 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4846 when handling .eh_frame sections.
4848 2003-06-04 J. Brobecker <brobecker@gnat.com>
4850 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4851 prepare_to_proceed procedure instead of the hppa-specific one.
4852 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4854 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4856 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4857 * config.in: Regenerated.
4858 * configure.in: Add test for syscall function and check for
4859 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4860 * configure: Regenerated.
4861 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4863 (kill_lwp): New function that uses tkill syscall or
4864 uses kill, depending on whether threading model is nptl or not.
4865 All callers of kill() changed to use kill_lwp().
4866 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4867 see if all threads have already exited in the nptl model.
4868 (stop_and_resume_callback): New callback function used by the
4869 lin_lwp_wait thread exit handling code.
4870 (stop_wait_callback): Check for threads already having exited and
4871 delete such threads fromt the lwp list when discovered.
4872 (stop_callback): Don't assert retcode of kill call.
4874 Roland McGrath <roland@redhat.com>
4875 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4878 2003-06-03 Richard Henderson <rth@redhat.com>
4880 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4881 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4882 (alpha_sigtramp_frame_prev_register): Likewise.
4883 (alpha_heuristic_frame_prev_register): Likewise.
4884 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4886 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4887 alpha-specific register id names.
4888 (alpha_mdebug_frame_unwind_cache): Likewise.
4889 (alpha_mdebug_frame_prev_register): Likewise.
4891 2003-06-03 Richard Henderson <rth@redhat.com>
4893 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4894 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4895 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4896 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4898 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4899 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4900 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4902 * alpha-linux-tdep.c: Remove unnecessary includes.
4903 * Makefile.in (alpha-linux-tdep.o): Update.
4905 2003-06-03 Richard Henderson <rth@redhat.com>
4907 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4908 (alphabsd_fill_fpreg): Likewise.
4910 2003-06-03 J. Brobecker <brobecker@gnat.com>
4912 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4913 references to struct frame_info fields by calls to the equivalent
4914 accessors. Necessary now that frame_info is opaque.
4916 2003-06-03 J. Brobecker <brobecker@gnat.com>
4918 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4919 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4920 structure, field no longer exists.
4922 2003-06-03 J. Brobecker <brobecker@gnat.com>
4924 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4925 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4927 2003-06-03 J. Brobecker <brobecker@gnat.com>
4929 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4930 references to struct frame_info fields by calls to the equivalent
4931 accessors. Necessary now that frame_info is opaque.
4933 2003-06-03 J. Brobecker <brobecker@gnat.com>
4935 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4936 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4937 structure, field no longer exists.
4939 2003-06-03 Theodore A. Roth <troth@openavr.org>
4941 * remote.c (init_remote_state): Compute sizeof_g_packet by
4942 accumulation of the size of all registers instead of blindly using
4943 DEPRECATED_REGISTER_BYTES.
4945 2003-06-03 Michael Snyder <msnyder@redhat.com>
4947 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4948 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4951 2003-06-03 J. Brobecker <brobecker@gnat.com>
4953 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4954 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4956 2003-06-03 Andrew Cagney <cagney@redhat.com>
4958 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4959 (sparc_convert_to_raw): Delete function.
4960 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4961 register_convert_to_virtual.
4963 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4965 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4966 layer if not dealing with a statically-linked threaded program.
4968 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4970 * solib.c (solib_open): Update comment to reflect actual search order.
4972 2003-06-03 Andrew Cagney <cagney@redhat.com>
4974 * frame.c (get_frame_memory_signed): New function.
4975 (get_frame_memory, get_frame_memory_unsigned): New function.
4976 (get_frame_arch): New function.
4977 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4978 (get_frame_memory, get_frame_unsigned_memory): Declare.
4979 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4980 get_frame_memory_unsigned and get_frame_arch.
4981 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4983 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4985 * MAINTAINERS (write after approval): Add myself.
4987 2003-06-03 Jim Blandy <jimb@redhat.com>
4989 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4990 elements of gregset_t are 64 bits each, but access registers
4991 are still 32 bits, so they're packed two per gregset_t
4992 element. Unpack/pack them properly.
4994 2003-06-02 David Carlton <carlton@bactrian.org>
4996 * linespec.c (find_methods): Break out code into
4997 add_matching_methods and add_constructors.
4998 (add_matching_methods): New.
4999 (add_constructors): Ditto.
5001 2003-06-02 Andrew Cagney <cagney@redhat.com>
5003 * sparc-tdep.c (sparc_print_registers): Delete call to
5004 REGISTER_CONVERTIBLE.
5005 (sparc_gdbarch_init): Do not set register_convertible.
5006 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5007 * frv-tdep.c (frv_gdbarch_init): Ditto.
5008 * cris-tdep.c (cris_gdbarch_init): Ditto.
5010 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5012 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5013 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5014 (syms_from_objfile): Ditto.
5016 2003-06-03 Andreas Schwab <schwab@suse.de>
5018 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5019 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5021 2003-06-02 Richard Henderson <rth@redhat.com>
5023 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5024 a member of all_reggroup.
5026 2003-06-02 Richard Henderson <rth@redhat.com>
5028 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5029 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5030 (alpha_lds, alpha_sts): New.
5031 (alpha_convert_register_p): Change from _register_convertible.
5032 (alpha_register_to_value): Change from _convert_to_virtual;
5033 restructure and fail for type sizes other than 4 or 8.
5034 (alpha_value_to_register): Similarly.
5035 (alpha_extract_return_value): Use alpha_sts.
5036 (alpha_store_return_value): Use alpha_lds.
5037 (alpha_gdbarch_init): Update hooks.
5039 2003-06-02 Richard Henderson <rth@redhat.com>
5041 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5043 (alpha_sigtramp_register_address): Likewise.
5045 2003-06-02 Richard Henderson <rth@redhat.com>
5047 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5048 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5049 * alpha-tdep.h: Declare them.
5051 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5052 Remove zerobuf. Don't error on UNIQUE.
5053 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5054 (ALPHA_REGSET_UNIQUE): Provide default.
5055 (supply_gregset): Use alpha_supply_int_regs.
5056 (fill_gregset): Use alpha_fill_int_regs.
5057 (supply_fpregset): Use alpha_supply_fp_regs.
5058 (fill_fpregset): Use alpha_fill_fp_regs.
5059 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5060 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5061 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5062 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5063 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5064 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5066 2003-06-02 Richard Henderson <rth@redhat.com>
5068 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5070 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5071 (alpha_store_return_value): Likewise.
5073 2003-06-02 David Carlton <carlton@math.stanford.edu>
5075 * block.c (contained_in): Add 'const' to arguments.
5076 (block_function): Ditto.
5077 * block.h: Update declarations for block_function and
5080 2003-06-02 David Carlton <carlton@math.stanford.edu>
5082 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5083 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5084 * p-valprint.c (pascal_val_print): Ditto.
5085 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5087 2003-06-02 Richard Henderson <rth@redhat.com>
5089 * alpha-tdep.c (alpha_push_dummy_call): Use
5090 builtin_type_ieee_double_little instead of builtin_type_double.
5092 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5093 sign-extension of 32-bit values.
5094 (alpha_store_return_value): Similarly.
5096 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5097 (alpha_extract_return_value): Likewise.
5098 (alpha_store_return_value): Likewise.
5100 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5101 (alpha_store_return_value): Error on IEEE Quad floats.
5103 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5104 (alpha_extract_struct_value_address): Likewise.
5105 (alpha_store_return_value): Likewise.
5106 (alpha_store_struct_return): Remove.
5107 (alpha_gdbarch_init): Update hook registration to match.
5109 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5110 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5111 macros where appropriate.
5112 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5113 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5115 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5116 for SP, GP; void_func_ptr for PC; non-language-specific types
5118 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5120 2003-06-02 Richard Henderson <rth@redhat.com>
5122 * top.h (lim_at_start): Declare.
5123 * main.c (captured_main): Set it.
5124 * top.c (lim_at_start): Define.
5125 (command_loop): Use it instead of &environ.
5126 * event-top.c (command_handler): Likewise.
5128 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5130 * mipsnbsd-tdep.c: Update copyright years.
5131 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5133 2003-06-01 Richard Henderson <rth@redhat.com>
5135 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5136 (alpha-linux-tdep.o): Update dependencies.
5137 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5138 * alpha-mdebug-tdep.c: Remove unneeded includes.
5140 2003-06-01 Richard Henderson <rth@redhat.com>
5142 * alpha-tdep.c (alpha_register_reggroup_p): New.
5143 (alpha_gdbarch_init): Register it.
5145 2003-06-02 Andrew Cagney <cagney@redhat.com>
5147 * dwarfread.c: Eliminate "register"
5148 (decode_die_type): Eliminate assignment within "if".
5149 (struct_type, decode_array_element_type): Ditto.
5150 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5151 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5152 (decode_modified_type, completedieinfo): Ditto.
5153 * block.c: Eliminate "register".
5154 (blockvector_for_pc_sect): Eliminate assignment within "if".
5155 * cp-support.h (struct symbol): Opaque declaration.
5156 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5158 2003-06-01 Richard Henderson <rth@redhat.com>
5160 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5161 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5163 2003-06-01 Adam Fedor <fedor@gnu.org>
5165 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5166 * gdbarch.[ch]: Regenerate.
5167 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5168 (hppa_gdbarch_init): Set it in the gdbarch vector.
5169 * i386-tdep.c (i386_fetch_pointer_argument): New
5170 (i386_gdbarch_init): Set it into gdbarch.
5171 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5172 (rs6000_gdbarch_init): Set it in gdbarch.
5173 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5174 (sparc_gdbarch_init): Set it in gdbarch.
5176 2003-06-01 Andrew Cagney <cagney@redhat.com>
5178 * defs.h (extract_address): Delete declaration.
5179 * findvar.c (extract_address): Delete function.
5180 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5181 extract_address with the inline equivalent,
5182 extract_unsigned_integer.
5183 (xstormy16_extract_struct_value_address): Ditto.
5184 (xstormy16_pointer_to_address): Ditto.
5185 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5186 * v850-tdep.c (v850_push_arguments): Ditto.
5187 (v850_extract_return_value): Ditto.
5188 (v850_extract_struct_value_address): Ditto.
5189 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5190 (sparcnbsd_get_longjmp_target_64): Ditto.
5191 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5192 (get_longjmp_target): Ditto.
5193 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5194 (sh64_extract_struct_value_address): Ditto.
5195 (sh_push_arguments): Ditto.
5196 (sh64_push_arguments): Ditto.
5197 * remote-vxsparc.c (vx_read_register): Ditto.
5198 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5199 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5200 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5201 * mipsv4-nat.c (get_longjmp_target): Ditto.
5202 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5203 * mips-nat.c (get_longjmp_target): Ditto.
5204 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5205 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5206 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5207 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5208 * irix5-nat.c (get_longjmp_target): Ditto.
5209 * irix4-nat.c (get_longjmp_target): Ditto.
5210 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5211 (ia64_push_arguments): Ditto.
5212 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5213 * h8300-tdep.c (h8300_push_arguments): Ditto.
5214 (h8300_store_return_value): Ditto.
5215 (h8300_extract_struct_value_address): Ditto.
5216 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5217 (frv_push_arguments): Ditto.
5218 * avr-tdep.c (avr_pointer_to_address): Ditto.
5219 (avr_push_arguments): Ditto.
5220 * arm-tdep.c (arm_push_dummy_call): Ditto.
5221 (arm_get_longjmp_target): Ditto.
5222 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5223 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5224 (alpha_get_longjmp_target): Ditto.
5226 * solib-irix.c (extract_mips_address): Inline extract_address,
5227 replacing it with extract_signed_integer.
5228 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5229 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5230 (first_link_map_member, open_symbol_file_object): Ditto.
5231 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5232 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5233 (LM_NEXT, LM_NAME): Ditto.
5235 2003-06-01 Richard Henderson <rth@redhat.com>
5237 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5238 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5239 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5240 (alpha_cannot_store_register): Likewise.
5241 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5242 * alpha-nat.c (supply_gregset): Likewise.
5243 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5245 2003-06-01 Andrew Cagney <cagney@redhat.com>
5247 * infcall.c (call_function_by_hand): Update comment on
5248 DEPRECATED_DUMMY_WRITE_SP.
5250 * mips-tdep.c (mips_gdbarch_init): Do not set
5251 deprecated_dummy_write_sp.
5252 (mips_eabi_push_dummy_call): Set the SP register.
5253 (mips_o64_push_dummy_call): Set the SP register.
5254 (mips_o32_push_dummy_call): Set the SP register.
5255 (mips_n32n64_push_dummy_call): Set the SP register.
5257 2003-06-01 Richard Henderson <rth@redhat.com>
5259 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5260 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5261 (supply_gregset): Likewise.
5262 * alpha-tdep.c (alpha_store_return_value): Likewise.
5263 (alpha_get_longjmp_target): Likewise.
5264 (alpha_register_name): Constify array.
5265 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5266 deprecated_register_size, deprecated_register_bytes,
5267 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5268 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5269 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5271 2003-06-01 Richard Henderson <rth@redhat.com>
5273 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5274 from arg_reg_buffer to regcache to avoid double conversion.
5276 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5278 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5280 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5281 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5283 2003-06-01 Richard Henderson <rth@redhat.com>
5285 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5286 (decode_frame_entry): Set it. Skip FDE augmentation.
5288 2003-06-01 Richard Henderson <rth@redhat.com>
5290 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5291 not overlapping PC_REGNUM.
5293 2003-06-01 Richard Henderson <rth@redhat.com>
5295 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5296 alpha_push_arguments. Don't dump argument register data to
5297 the target stack. Fix float and 128-bit long double semantics.
5298 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5299 (alpha_fix_call_dummy): Remove.
5300 (alpha_call_dummy_words): Remove.
5301 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5303 2003-06-01 Richard Henderson <rth@redhat.com>
5305 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5307 2003-06-01 Andrew Cagney <cagney@redhat.com>
5309 * mips-tdep.c (is_mips16_addr): New function.
5310 (make_mips16_addr, unmake_mips16_addr): New functions.
5311 (pc_is_mips16, mips_fetch_instruction): Use.
5312 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5313 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5314 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5315 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5317 * config/mips/tm-mips.h: Update copyright.
5318 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5319 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5320 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5321 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5322 (TM_PRINT_INSN_MACH): Delete.
5323 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5325 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5326 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5327 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5328 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5329 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5330 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5331 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5332 mips*-*-riscos* and mips*-*-sysv* onto mips.
5333 * config/mips/mips64.mt: New file.
5334 * config/mips/mips.mt: New file.
5335 * config/mips/littlemips.mt: Delete file.
5336 * config/mips/decstation.mt: Delete file.
5337 * config/mips/vr4300el.mt: Delete file.
5338 * config/mips/vr5000el.mt: Delete file.
5339 * config/mips/vr5000.mt: Delete file.
5340 * config/mips/vr4100.mt: Delete file.
5341 * config/mips/vr4xxxel.mt: Delete file.
5342 * config/mips/vr4300.mt: Delete file.
5343 * config/mips/vr4xxx.mt: Delete file.
5344 * config/mips/bigmips.mt: Delete file.
5345 * config/mips/bigmips64.mt: Delete file.
5346 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5347 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5348 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5349 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5350 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5352 * config/mips/tm-irix3.h: Ditto.
5353 * config/mips/tm-mipsv4.h: Ditto.
5354 * config/mips/tm-embed.h: Ditto.
5355 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5357 * config/mips/tm-vr5000el.h: Delete file.
5358 * config/mips/tm-tx39l.h: Delete file.
5359 * config/mips/tm-vr4300el.h: Delete file.
5360 * config/mips/tm-vr4xxxel.h: Delete file.
5361 * config/mips/tm-vr4300.h: Delete file.
5362 * config/mips/tm-vr4100.h: Delete file.
5363 * config/mips/tm-vr4xxx.h: Delete file.
5364 * config/mips/tm-vr5000.h: Delete file.
5365 * config/mips/tm-embedl64.h: Delete file.
5366 * config/mips/tm-embedl.h: Delete file.
5367 * config/mips/tm-embed64.h: Delete file.
5368 * config/mips/tm-bigmips64.h: Delete file.
5369 * config/mips/tm-bigmips.h: Delete file.
5371 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5374 * shnbsd-nat.c: Include "sh-tdep.h".
5376 From Richard Henderson <rth@redhat.com>:
5377 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5379 2003-05-31 Andrew Cagney <cagney@redhat.com>
5381 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5382 forward declaration.
5383 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5384 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5385 (mips_find_saved_regs): Use set_reg_offset.
5386 (mips_frame_init_saved_regs): Delete function.
5387 (mips_pop_frame): Call mips_find_saved_regs instead of
5388 DEPRECATED_FRAME_INIT_SAVED_REGS.
5390 2003-05-31 Andrew Cagney <cagney@redhat.com>
5392 * mips-tdep.c (mips_gdbarch_init): Do not set
5393 deprecated_max_register_raw_size, register_virtual_size, and
5394 deprecated_max_register_virtual_size.
5396 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5398 * i386-tdep.c: Include "dwarf2-frame.h".
5399 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5400 * Makefile.in (i386-tdep.o): Update dependencies.
5402 * dwarf2-frame.c, dwarf2-frame.h: New files.
5403 * Makefile.in (SFILES): Add dwarf2-frame.c.
5404 (dwarf2_frame_h): Define.
5405 (COMMON_OBS): Add dwarf2-frame.o.
5406 (dwarf2-frame.o): Add dependencies.
5408 2003-05-31 Andreas Jaeger <aj@suse.de>
5410 * x86-64-linux-nat.c: Fix comment.
5412 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5414 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5417 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5418 have a sigcontext_addr handler.
5419 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5420 sigcontext_addr handler.
5422 2003-05-31 Andrew Cagney <cagney@redhat.com>
5424 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5425 (print_fp_register_row): Replace do_fp_register_row.
5426 (mips_print_fp_register): Add "file" and "frame" parameters.
5427 (mips_print_register): Add "file" and "frame" parameters.
5428 (mips_print_registers_info): Replace mips_do_registers_info.
5429 (mips_gdbarch_init): Set print_registers_info instead of
5430 deprecated_do_registers_info.
5431 (mips_read_fp_register_single): Add "frame" parameter.
5432 (mips_read_fp_register_double): Add "frame" parameter.
5434 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5436 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5437 Fixes a bug where GDB would print the wrong register names for
5438 targets without SSE.
5440 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5441 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5444 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5445 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5446 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5449 From Michal Ludvig <mludvig@suse.cz>:
5450 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5452 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5453 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5454 I386_ST0_REGNUM): Move here from...
5455 * i386-tdep.c: ... here.
5456 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5457 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5458 registers if possible.
5459 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5460 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5462 (i386bsd_sc_reg_offset): New variable.
5463 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5464 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5466 (i386fbsd_sc_reg_offset): New variable.
5467 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5469 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5471 (i386fbsd4_sc_reg_offset): New variable.
5472 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5473 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5475 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5476 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5477 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5479 (i386nbsd_sc_reg_offset): New variable.
5480 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5481 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5483 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5485 (i386obsd_sc_reg_offset): New variable.
5486 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5487 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5489 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5490 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5491 for frame pointer offset in `struct sigcontext'.
5493 2003-05-31 Andrew Cagney <cagney@redhat.com>
5495 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5496 architecture methods call_dummy_words, sizeof_call_dummy_words,
5497 push_return_address, store_struct_return, and fix_call_dummy. Set
5498 push_dummy_call instead of deprecated_push_arguments.
5499 (mips_store_struct_return): Delete function.
5500 (mips_fix_call_dummy): Delete function.
5501 (mips_push_return_address): Delete function.
5502 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5503 RA_REGNUM and T9_REGNUM.
5504 (mips_n32n64_push_dummy_call): Ditto for
5505 mips_n32n64_push_arguments.
5506 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5507 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5509 2003-05-31 Andrew Cagney <cagney@redhat.com>
5511 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5512 "dummy_addr" to "bp_addr".
5513 * infcall.c (call_function_by_hand): Pass "funaddr" to
5514 gdbarch_push_dummy_call.
5515 * gdbarch.h, gdbarch.c: Re-generate.
5516 * i386-tdep.c (i386_push_dummy_call): Update.
5517 * arm-tdep.c (arm_push_dummy_call): Update.
5518 * d10v-tdep.c (d10v_push_dummy_call): Update.
5520 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5522 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5523 variable declarations.
5524 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5525 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5526 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5527 x86_64_init_frame_pc, x86_64_init_frame_pc,
5528 x86_64_function_has_prologue): Remove prototypes.
5529 (X86_64_NUM_GREGS): New define.
5530 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5531 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5532 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5533 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5534 XMM1_REGNUM): Remove defines.
5535 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5536 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5537 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5538 X86_64_XMM1_REGNUM): New defines.
5539 (struct x86_64_register_info): Renamed from `struct
5540 register_info'. Remove `size' member.
5541 (x86_64_register_info_table): Remove variable.
5542 (x86_64_register_info): New variable.
5543 (X86_64_NUM_REGS): New define.
5544 (X86_64_NUM_GREGS): Remove define.
5545 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5546 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5548 (x86_54_dwarf2_reg_to_regnum): Remove function.
5549 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5550 (x86_64_dwarf_reg_to_regnum): New function.
5551 (x86_64_register_name): Rewrite.
5552 (x86_64_register_raw_size): Remove function.
5553 (x86_64_register_byte_table): Remove variable.
5554 (x86_64_register_byte): Remove function.
5555 (x86_64_register_virtual_type): Remove function.
5556 (x86_64_register_type): New function.
5557 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5558 x86_64_register_convert_to_raw): Remove functions.
5559 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5560 (x86_64_use_struct_convention): Make static. Adjust for renamed
5562 (x86_64_frame_init_saved_regs): Remove function.
5563 (x86_64_push_arguments): Make static. Change to accept a regcache
5565 (x86_64_store_return_value, x86_64_extract_return_value): Make
5566 static. Rewrite based on i386 counterparts.
5567 (x86_64_push_dummy_call): New function.
5568 (X86_64_NUM_SAVED_REGS): New define.
5569 (x86_64_register_number): Remove function.
5570 (x86_64_store_struct_return): Remove function.
5571 (x86_64_frameless_function_invocation,
5572 x86_64_function_has_prologue): Remove functions.
5573 (PROLOG_BUFSIZE): Remove define.
5574 (struct x86_64_frame_cache): New structure.
5575 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5576 x86_64_frame_cache, x86_64_frame_this_id,
5577 x86_64_frame_prev_register, x86_64_frame_p,
5578 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5579 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5581 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5583 (x86_64_skip_prologue): Rewrite in terms of
5584 x86_64_analyze_prologue.
5585 (x86_64_frame_base_address): New function.
5586 (x86_64_frame_base): New variable.
5587 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5588 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5589 set deprecated_fp_regnum, deprecated_register_size,
5590 deprecated_register_bytes, register_raw_size, register_byte,
5591 register_virtual_type, register_convertiable,
5592 register_convert_to_virtual, convert_to_raw,
5593 deprecated_get_saved_register, deprecated_target_read_fp,
5594 deprecated_push_arguments, deprecated_push_return_address,
5595 deprecated_pop_frame, deprecated_store_struct_return,
5596 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5597 frameless_function_invocation, deprecated_frame_saved_pc,
5598 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5599 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5600 deprecated_init_frame_pc and virtual_frame_pointer. Call
5601 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5602 and x86_64_frame_p. Call frame_base_set_default to register
5604 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5605 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5606 (_initialize_x86_64_tdep): Remove function.
5607 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5608 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5609 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5611 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5612 (x86_64_linux_sigcontext_addr): Rewrite.
5613 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5614 x86_64_linux_frame_saved_pc): Remove functions.
5615 (x86_64_linux_pc_in_sigtramp): Renamed from
5616 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5618 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5620 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5621 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5622 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5623 (x86_64_regmap): Rename to regmap.
5624 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5626 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5628 (x86_64_fxsave_offset): Remove function.
5629 (supply_fpregset): Simply call x86_64_supply_fxsave.
5630 (fill_fpregset): Simply call x86_64_fill_fxsave.
5631 (fetch_inferior_registers, store_inferior_registers): Avoid
5632 asignment in if-statement.
5633 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5634 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5635 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5636 (fetch_core_registers): Remove function.
5637 (linux_elf_core_fns): Remove.
5638 (offsetoff): Don't define.
5639 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5640 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5641 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5643 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5644 protection against multiple includes instead of NM_X86_64_h. Add
5645 various comments. Include "config/nm-linux.h". Don't include
5647 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5648 GET_THREAD_SIGNALS): Remove defines.
5649 (x86_64_register_u_addr, kernel_u_size,
5650 lin_thread_get_thread_signals): Remove prototypes.
5651 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5652 [HAVE_LINK_H]: Don't include "solib.h".
5653 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5654 * config/i386/tm-x86-64linux.h: Fix comments.
5655 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5656 x86-64-tdep.o): Update dependencies.
5658 2003-05-30 Andrew Cagney <cagney@redhat.com>
5660 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5661 Change parameter type to a "struct regcache *".
5663 * gdbarch.sh: Regardless of the multi-arch level, always define
5664 the macro when not already defined.
5665 * gdbarch.h, gdbarch.c: Re-generate.
5667 2003-05-30 Richard Henderson <rth@redhat.com>
5669 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5670 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5671 (alpha_mdebug_frame_this_id): Likewise.
5672 (alpha_mdebug_frame_prev_register): Likewise.
5673 (alpha_mdebug_frame_base_address): Likewise.
5674 (alpha_mdebug_frame_locals_address): Likewise.
5675 (alpha_mdebug_frame_args_address): Likewise.
5676 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5677 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5678 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5680 (alpha_heuristic_frame_this_id): Make static.
5681 (alpha_heuristic_frame_prev_register): Likewise.
5682 (alpha_heuristic_frame_base_address): Likewise.
5683 * alpha-tdep.h: Update.
5685 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5687 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5688 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5690 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5691 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5692 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5693 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5694 I386_ST0_REGNUM): New defines.
5695 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5696 codestream_get): Remove define.
5697 (codestream_next_addr, condestream_addr, condestream_buf,
5698 codestream_off, codestream_cnt): Remove variables.
5699 (codestream_fill, codestream_seek, codestream_read): Remove
5701 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5703 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5704 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5705 i386_frame_saved_pc, i386_saved_pc_after_call,
5706 i386_frame_num_args, i386_frame_init_saved_regs,
5707 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5708 i386_push_arguments): Remove functions.
5709 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5710 functionality. Use i386_analyze_prologue instead of
5711 i386_get_frame_setup.
5712 (I386_NUM_SAVED_REGS): New define.
5713 (struct i386_frame_cache): New structure.
5714 (i386_alloc_frame_cache, i386_analyze_struct_return,
5715 i386_skip_probe, i386_analyze_frame_setup,
5716 i386_analyze_register_saves, i386_analyze_prologue,
5717 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5718 i386_frame_prev_register, i386_sigtramp_frame_cache,
5719 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5720 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5721 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5723 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5725 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5726 I386_EAX_REGNUM and I386_EDX_REGNUM.
5727 (i386_extract_return_value, i386_store_return_value): Use
5728 I386_ST0_REGNUM where appropriate.
5729 (i386_extract_struct_value_address): Rewrite to use extract_address.
5730 (i386_svr4_pc_in_sigtramp): Add comment.
5731 (i386_svr4_sigcontext_addr): Rewrite.
5732 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5734 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5735 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5736 of new defines. Set push_dummy_call, don't set
5737 deprecated_push_arguments, deprecated_push_return_address,
5738 deprecated_pop_frame. Don't set parm_boundary. Don't set
5739 deprecated_frame_chain, deprecated_frame_saved_pc,
5740 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5741 save_dummy_frame_tos, unwind_pc. Call
5742 frame_unwind_append_predicate and frame_base_set_default. Don't
5743 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5744 Don't set frameless_function_invocation. Don't set
5745 deprecated_register_bytes, deprecated_register_size,
5746 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5747 * i386-linux-tdep.c: Fix formatting in some comments.
5748 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5749 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5750 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5751 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5752 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5753 redundant parentheses.
5754 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5755 (i386_linux_sigcontext_addr): Use it. Rewrite.
5756 (find_minsym_and_objfile): Change name of second argument.
5757 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5758 changed. Use frame_pc_unwind instead of
5759 DEPRECATED_SAVED_PC_AFTER_CALL.
5760 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5761 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5762 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5764 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5766 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5767 (_initialize_i386_cygwin_tdep): New prototype.
5768 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5769 deprecated_frame_chain_valid.
5770 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5771 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5772 Rely on the SVR4 defaults.
5773 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5774 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5776 2003-05-30 Andrew Cagney <cagney@redhat.com>
5778 * infcall.c (call_function_by_hand): Always call
5779 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5781 2003-05-30 Richard Henderson <rth@redhat.com>
5783 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5786 2003-05-29 Jim Blandy <jimb@redhat.com>
5788 Use gdbarch methods for solib stuff on PowerPC Linux.
5789 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5790 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5792 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5793 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5794 giving the same effect as the #definitions above.
5796 2003-05-29 Adam Fedor <fedor@gnu.org>
5798 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5799 (find_implementation_from_class): Replace it with the standard
5800 case i.e. do nothing.
5802 2003-05-29 Richard Henderson <rth@redhat.com>
5804 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5805 (alpha_linux_sigtramp_offset): Use it. Make static.
5806 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5807 update for new frame model.
5808 * alpha-mdebug-tdep.c: New file.
5809 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5810 (alpha_osf1_init_abi): Install it.
5811 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5812 (linked_proc_desc_table): Remove.
5813 (alpha_frame_past_sigtramp_frame): Remove.
5814 (alpha_dynamic_sigtramp_offset): Remove.
5815 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5816 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5817 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5818 (push_sigtramp_desc): Remove.
5819 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5820 (alpha_cannot_store_register): Likewise.
5821 (alpha_sigcontext_addr): Remove.
5822 (alpha_find_saved_regs): Remove.
5823 (alpha_frame_init_saved_regs): Remove.
5824 (alpha_init_frame_pc_first): Remove.
5825 (read_next_frame_reg): Remove.
5826 (alpha_frame_saved_pc): Remove.
5827 (alpha_saved_pc_after_call): Remove.
5828 (temp_proc_desc, temp_saved_regs): Remove.
5829 (alpha_about_to_return): Remove.
5830 (cached_proc_desc): Remove.
5831 (alpha_frame_chain): Remove.
5832 (alpha_print_extra_frame_info): Remove.
5833 (alpha_init_extra_frame_info): Remove.
5834 (alpha_frame_locals_address): Remove.
5835 (alpha_frame_args_address): Remove.
5836 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5837 (alpha_push_dummy_frame): Remove.
5838 (alpha_pop_frame): Remove.
5839 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5840 (alpha_read_insn): New.
5841 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5842 for different insn encodings.
5843 (alpha_in_lenient_prologue): Remove.
5844 (struct alpha_sigtramp_unwind_cache): New.
5845 (alpha_sigtramp_frame_unwind_cache): New.
5846 (alpha_sigtramp_register_address): New.
5847 (alpha_sigtramp_frame_this_id): New.
5848 (alpha_sigtramp_frame_prev_register): New.
5849 (alpha_sigtramp_frame_unwind): New.
5850 (alpha_sigtramp_frame_p): New.
5851 (struct alpha_heuristic_unwind_cache): New.
5852 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5853 don't count nop insns that occur between functions.
5854 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5855 heuristic_proc_desc, but without the mdebug wrapping.
5856 (alpha_heuristic_frame_this_id): New.
5857 (alpha_heuristic_frame_prev_register): New.
5858 (alpha_heuristic_frame_unwind): New.
5859 (alpha_heuristic_frame_p): New.
5860 (alpha_heuristic_frame_base_address): New.
5861 (alpha_heuristic_frame_base): New.
5862 (alpha_unwind_dummy_id): New.
5863 (alpha_unwind_pc): New.
5864 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5865 frame related deprecated initializations; install replacements.
5866 (alpha_dump_tdep): Remove.
5867 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5868 (alpha_read_insn, alpha_after_prologue,
5869 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5870 alpha_heuristic_frame_prev_register,
5871 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5872 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5873 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5874 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5876 2003-05-29 Andrew Cagney <cagney@redhat.com>
5878 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5879 dependant on the availability of ASSERT_FUNCTION.
5880 (ASSERT_FUNCTION): Do not define when there is no function name.
5882 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5884 From Jimi X <jimix@watson.ibm.com>:
5885 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5887 2003-05-28 Jim Blandy <jimb@redhat.com>
5889 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5890 argument to ptrace to int; the system headers should give it the
5891 right type, and pointers don't fit in ints on powerpc64-*-*.
5893 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5895 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5898 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5900 * stabsread.c (dbx_lookup_type): Make static.
5902 (add_undefined_type): Ditto.
5903 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5906 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5908 * hpread.c (hpread_has_name): Make static.
5909 (hpread_psymtab_to_symtab): Ditto.
5910 (file_exists): Ditto.
5911 (hpread_call_pxdb): Ditto.
5912 (hpread_pxdb_needed): Ditto.
5913 (hpread_quick_traverse): Ditto.
5914 (hpread_get_header): Ditto.
5915 (hpread_get_lntt): Ditto.
5916 (hpread_get_slt): Ditto.
5919 2003-05-25 Andreas Schwab <schwab@suse.de>
5921 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5922 stack_align and deprecated_extra_stack_alignment_needed.
5923 (m68k_stack_align): Delete.
5925 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5926 (m68k_register_virtual_size): Likewise.
5927 (altos_skip_prologue): Remove obsolete function.
5928 (isi_frame_num_args): Likewise.
5929 (news_frame_num_args): Likewise.
5930 (m68k_fix_call_dummy): Make static.
5931 (m68k_push_dummy_frame): Likewise.
5932 (m68k_pop_frame): Likewise.
5933 (m68k_skip_prologue): Likewise.
5934 (m68k_frame_init_saved_regs): Likewise.
5935 (m68k_saved_pc_after_call): Likewise.
5936 (m68k_get_longjmp_target): Make multi-arch.
5937 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5938 structure. Register m68k_get_longjmp_target if enabled.
5939 * m68k-tdep.h (struct gdbarch_tdep): Define.
5940 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5942 * Makefile.in (config.status): Also depend on configure.tgt
5944 (m68klinux-tdep.o): Update dependencies.
5945 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5946 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5947 (M68K_LINUX_JB_PC): Define.
5948 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5949 and take additional parameter.
5950 (m68k_linux_sigtramp_saved_pc): Update.
5951 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5952 m68k_linux_pc_in_sigtramp, in_plt_section,
5953 find_solib_trampoline_target.
5954 * config/m68k/tm-linux.h: Don't include any tm headers.
5955 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5956 (JB_ELEMENT_SIZE): Likewise.
5958 (GET_LONGJMP_TARGET): Likewise.
5959 (IN_SIGTRAMP): Likewise.
5960 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5962 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5964 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5965 (sparc32_push_arguments): Re-implement by calling
5966 sparc32_do_push_arguments.
5968 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5970 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5971 SPARC_O1_REGNUM): New defines.
5972 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5973 (sparc32_store_return_value): New function.
5974 (sparc_extract_struct_value_address): Rewrite to operate on a
5976 (sparc_gdbarch_init): Don't set
5977 deprecated_extract_struct_value_address. Set
5978 extract_struct_value_address instead. Don't set
5979 deprecated_extract_return_value and deprecated_store_return_value
5980 for 32-bit targets. Set extract_return_value and
5981 store_return_value instead.
5982 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5983 DEPRECTAED_EXTRACT_RETURN_VALUE,
5984 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5985 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5986 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5987 (sparc_store_return_value): Remove prototype.
5988 (sparc32_store_return_value): New prototype.
5989 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5992 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5994 * sparcnbsd-tdep.c: Include "gdb_string.h".
5996 2003-05-23 Andrew Cagney <cagney@redhat.com>
5998 * p-valprint.c (pascal_val_print): Replace extract_address with
5999 the inline equivalent extract_unsigned_integer.
6000 * jv-valprint.c (java_value_print): Ditto.
6001 * ada-valprint.c (ada_val_print_1): Ditto.
6002 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6004 2003-05-23 Theodore A. Roth <troth@openavr.org>
6006 * blockframe.c (frameless_look_for_prologue): Remove unused
6007 after_prologue variable.
6009 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6011 * blockframe.c (get_pc_function_start): Rewrite to avoid
6012 asignments in if-statements.
6014 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6016 Committed by Elena Zannoni <ezannoni@redhat.com>.
6017 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6018 files, don't relocate absolute symbols (and do use mst_abs).
6020 2003-05-23 Andrew Cagney <cagney@redhat.com>
6022 * objc-lang.c: Include "gdb_assert.h".
6023 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6024 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6025 (gdb_check, gdb_check_fatal): Delete functions.
6026 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6028 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6029 * Makefile.in (objc-lang.o): Update dependencies.
6031 2003-05-22 Ian Lance Taylor <ian@airs.com>
6033 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6034 with fprintf_filtered, not fprintf_unfiltered.
6036 2003-05-22 Andrew Cagney <cagney@redhat.com>
6038 * stack.c (frame_info): Inline extract_address, replacing it with
6039 extract_unsigned_integer.
6040 * findvar.c (unsigned_pointer_to_address): Ditto.
6041 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6042 * dwarf2expr.c (dwarf2_read_address): Ditto.
6043 * frame.c (frame_pc_unwind): Update comment.
6044 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6046 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6048 * infptrace.c (detach): Call print_sys_errmsg rather than
6049 perror_with_name to issue warning message when errno is non-zero
6050 after calling ptrace detach.
6052 2003-05-21 J. Brobecker <brobecker@gnat.com>
6054 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6055 macro definitions from here...
6056 * hppa-tdep.c: ...to there.
6058 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6060 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6061 register_ptrace_addr(). Fix all callers.
6063 2003-05-21 Andreas Schwab <schwab@suse.de>
6065 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6067 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6069 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6070 (_initialize_m68k_linux_tdep): New function.
6071 (m68k_linux_frame_saved_pc): Make static.
6072 (m68k_linux_extract_return_value): Likewise.
6073 (m68k_linux_store_return_value): Likewise.
6074 (m68k_linux_extract_struct_value_address): Likewise.
6075 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6077 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6078 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6079 (DEPRECATED_FRAME_SAVED_PC): Remove.
6081 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6083 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6084 regset numbering rather than our own.
6086 2003-05-19 David Carlton <carlton@bactrian.org>
6088 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6090 2003-05-19 David Carlton <carlton@bactrian.org>
6092 Partial fix for PR c++/827.
6093 * cp-support.h: Include symtab.h.
6094 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6095 * cp-namespace.c: Update contributors.
6096 (cp_lookup_symbol_nonlocal): New.
6097 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6098 (lookup_symbol_file): Ditto.
6099 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6100 * block.h: Declare block_scope, block_using, block_global_block.
6101 * block.c (block_scope): New.
6102 (block_using, block_global_block): Ditto.
6103 * Makefile.in (cp_support_h): Depend on symtab_h.
6104 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6106 2003-05-19 David Carlton <carlton@bactrian.org>
6108 * language.h (struct language_defn): Add 'la_value_of_this'
6109 and 'la_lookup_symbol_nonlocal' members.
6110 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6111 lookup_symbol_static, lookup_symbol_global,
6112 lookup_symbol_aux_block.
6113 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6114 if we should search fields of this and how to do static/global
6116 (lookup_symbol_aux_block): Make extern.
6117 (basic_lookup_symbol_nonlocal): New.
6118 (lookup_symbol_static, lookup_symbol_global): Ditto.
6119 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6120 'la_lookup_symbol_nonlocal' members.
6121 * c-lang.c (c_language_defn, cplus_language_defn)
6122 (asm_language_defn, minimal_language_defn): Ditto.
6123 * jv-lang.c (java_language_defn): Ditto.
6124 * language.c (unknown_language_defn, auto_language_defn)
6125 (local_language_defn): Ditto.
6126 * m2-lang.c (m2_language_defn): Ditto.
6127 * objc-lang.c (objc_language_defn): Ditto.
6128 * scm-lang.c (scm_language_defn): Ditto.
6129 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6130 * p-lang.c (pascal_language_defn): Ditto for both.
6131 * Makefile.in (f-lang.o): Depend on value_h.
6134 2003-05-19 David Carlton <carlton@bactrian.org>
6136 * block.h: Declare block_static_block.
6137 * block.c (block_static_block): New.
6138 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6139 lookup_symbol_aux_local, calling block_static_block instead.
6140 (lookup_symbol_aux_local): Delete 'static_block' argument.
6142 2003-05-19 David Carlton <carlton@bactrian.org>
6144 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6146 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6148 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6149 register numbers mapping.
6151 2003-05-18 Adam Fedor <fedor@gnu.org>
6153 * symtab.c (completion_list_objc_symbol): New function.
6154 (make_symbol_completion_list): Use it to add ObjC symbols
6155 when looking though the list.
6156 (language_search_unquoted_string): New function.
6157 (make_file_symbol_completion_list): Use it.
6159 2003-05-18 Andreas Schwab <schwab@suse.de>
6161 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6163 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6164 as m68k_linux_extract_return_value.
6165 (DEPRECATED_STORE_RETURN_VALUE): Define as
6166 m68k_linux_store_return_value.
6167 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6168 m68k_linux_extract_struct_value_address.
6169 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6170 get_next_frame, get_frame_base, get_frame_pc.
6171 (m68k_linux_frame_saved_pc): Use get_frame_base.
6172 (m68k_linux_extract_return_value): New function.
6173 (m68k_linux_store_return_value): New function.
6174 (m68k_linux_extract_struct_value_address): New function.
6175 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6177 * c-exp.y (typebase): Remove duplicate occurence of
6178 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6179 of lookup_signed_typename.
6181 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6183 * dwarf2loc.c (find_location_expression): Change type of second
6184 argument to `size_t *'.
6185 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6188 2003-05-18 David Carlton <carlton@bactrian.org>
6190 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6191 'linkage_name'. Add comment.
6192 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6194 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6195 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6196 (lookup_block_symbol): Ditto.
6198 2003-05-16 Andrew Cagney <cagney@redhat.com>
6200 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6201 * gdbarch.h, gdbarch.c: Re-generate.
6202 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6203 * TODO (REGISTER_BYTES): Delete reference.
6204 * alpha-tdep.c (alpha_gdbarch_init): Update.
6205 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6206 * x86-64-tdep.c (x86_64_init_abi): Update.
6207 * vax-tdep.c (vax_gdbarch_init): Update.
6208 * v850-tdep.c (v850_gdbarch_init): Update.
6209 * sparc-tdep.c (sparc_gdbarch_init): Update.
6210 * sh-tdep.c (sh_gdbarch_init): Update.
6211 * s390-tdep.c (s390_gdbarch_init): Update.
6212 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6213 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6214 (ns32k_gdbarch_init_32382): Update.
6215 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6216 * mcore-tdep.c (mcore_gdbarch_init): Update.
6217 * m68k-tdep.c (m68k_gdbarch_init): Update.
6218 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6219 * ia64-tdep.c (ia64_gdbarch_init): Update.
6220 * i386-tdep.c (i386_gdbarch_init): Update.
6221 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6222 * hppa-tdep.c (hppa_gdbarch_init): Update.
6223 * h8300-tdep.c (h8300_gdbarch_init): Update.
6224 * frv-tdep.c (frv_gdbarch_init): Update.
6225 * cris-tdep.c (cris_gdbarch_init): Update.
6226 * avr-tdep.c (avr_gdbarch_init): Update.
6227 * arm-tdep.c (arm_gdbarch_init): Update.
6228 * sparc-tdep.c (sparc_pop_frame): Update.
6229 * rs6000-tdep.c (rs6000_pop_frame): Update.
6230 * remote.c (init_remote_state): Update.
6231 (remote_prepare_to_store): Update.
6232 * remote-vx.c (vx_prepare_to_store): Update.
6233 * remote-sds.c (sds_fetch_registers): Update.
6234 (sds_prepare_to_store): Update.
6235 * remote-array.c: Update.
6236 * regcache.c (init_legacy_regcache_descr): Update.
6237 (init_regcache_descr): Update.
6238 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6239 (mips_o64_extract_return_value): Update.
6240 * irix5-nat.c (fetch_core_registers): Update.
6241 * irix4-nat.c (fetch_core_registers): Update.
6242 * i386-tdep.h: Update.
6243 * hppa-tdep.c (pa_do_registers_info): Update.
6244 (pa_do_strcat_registers_info): Update.
6245 * cris-tdep.c (cris_register_bytes_ok): Update.
6246 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6247 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6248 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6249 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6250 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6251 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6252 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6253 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6254 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6255 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6256 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6257 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6258 (REGISTER_BYTES_OK): Update.
6259 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6260 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6262 2003-05-16 Ian Lance Taylor <ian@airs.com>
6264 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6265 (vax_print_insn, print_insn_arg): Remove static functions.
6266 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6267 print_insn_vax from opcodes library.
6268 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6270 2003-05-15 Andrew Cagney <cagney@redhat.com>
6272 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6273 * target.h (memory_breakpoint_from_pc): Delete declaration.
6274 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6275 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6276 * monitor.c (monitor_insert_breakpoint): Use
6277 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6278 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6279 * gdbarch.h, gdbarch.c: Re-generate.
6280 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6281 (sparc_gdbarch_init): Set breakpoint_from_pc to
6282 sparc_breakpoint_from_pc.
6283 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6284 (BREAKPOINT_FROM_PC): Define.
6285 (sparc_breakpoint_from_pc): Declare.
6286 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6287 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6288 (BREAKPOINT_FROM_PC): Define.
6289 (BREAKPOINT): Delete macro.
6290 * target.h: Update comment.
6291 * s390-tdep.c (s390_gdbarch_init): Update comments.
6292 * remote.c: Update comments.
6293 * remote-mips.c: Update comments.
6294 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6295 * mem-break.c: Update comment.
6296 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6297 (ia64_memory_insert_breakpoint): Update.
6298 * config/sparc/tm-sparc.h: Update comment.
6299 * config/pa/tm-hppa64.h: Update comment.
6300 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6301 (rs6000_breakpoint_from_pc): Update.
6302 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6303 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6304 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6305 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6306 (mips_breakpoint_from_pc): Update.
6307 (mips_dump_tdep): Update.
6309 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6310 * minsyms.c (lookup_minimal_symbol): Inline
6311 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6313 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6314 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6315 * p-lang.c (pascal_printstr): Ditto.
6316 * objc-lang.c (objc_printstr): Ditto.
6317 * m2-lang.c (m2_printstr): Ditto.
6318 * jv-valprint.c (java_print_value_fields): Ditto.
6319 * f-lang.c (f_printstr): Ditto.
6320 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6321 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6322 for repeat_count_threshold.
6323 * Makefile.in (cp-valprint.o): Update dependencies.
6325 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6327 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6328 (examine_prologue): Support looking through leaf functions, knowing
6329 they start with mov r2,r12. Support skipping over indirect stores
6330 of the input registers. Upon hitting a non-nop branch instruction
6331 or predicated instruction, bail out by setting lim_pc to the current
6332 pc value in the loop. At the end, if the lim_pc value is still
6333 beyond our calculated value and we have trust_limit set,
6334 use the lim_pc value.
6336 2003-05-15 Andrew Cagney <cagney@redhat.com>
6338 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6339 generic_find_dummy_frame.
6340 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6341 (deprecated_generic_find_dummy_frame): Update.
6342 (deprecated_read_register_dummy): Update.
6343 * frame.c (deprecated_generic_get_saved_register): Update.
6345 2003-05-15 Theodore A. Roth <troth@openavr.org>
6347 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6348 (avr_gdbarch_init): Set breakpoint_from_pc method.
6350 2003-05-15 Andrew Cagney <cagney@redhat.com>
6352 * regcache.c (build_regcache): Set deprecated_register_valid
6354 (deprecated_grub_regcache_for_register_valid): Delete function.
6355 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6358 2003-05-15 David Carlton <carlton@bactrian.org>
6360 Committed by Elena Zannoni <ezannoni@redhat.com>
6361 * symtab.c (lookup_symbol_aux): Delete calls to
6362 lookup_symbol_aux_minsyms.
6363 (lookup_symbol_aux_minsyms): Comment out function and
6364 prototype. Delete lookup by mangled name.
6366 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6368 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6369 correctly indicate an empty stack and ``stack_allocated'' to the
6370 indicate the number of elements initially allocated.
6371 (dwarf_expr_grow_stack): Simplify method for computing new
6372 stack size. Don't loop infinitely if ``stack_len'' is zero.
6373 (execute_stack_op): Move ``ctx->in_reg'' initialization
6374 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6375 be used in conjuction with DW_OP_piece. Revise error message
6378 2003-05-14 Theodore A. Roth <troth@openavr.org>
6380 * MAINTAINERS: Update my email address.
6381 * avr-tdep.c: Ditto.
6383 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6385 * symtab.h (enum domain_enum): Rename from namespace_enum.
6386 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6387 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6388 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6389 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6390 TYPES_NAMESPACE, METHODS_NAMESPACE.
6391 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6392 (struct symbol, struct partial_symbol): Rename field
6393 'namespace_enum namespace' to 'domain_enum domain'.
6394 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6395 Delete old define kludge for namespace.
6397 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6398 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6399 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6400 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6401 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6402 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6403 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6404 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6405 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6406 occurrences of the above.
6408 2003-05-14 Ian Lance Taylor <ian@airs.com>
6410 * Makefile.in (install-only): Use $(SHELL) when running
6413 2003-05-13 Ian Lance Taylor <ian@airs.com>
6415 * MAINTAINERS (write after approval): Add myself.
6417 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6418 second and third arguments.
6419 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6420 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6422 2003-05-13 Andrew Cagney <cagney@redhat.com>
6424 * defs.h (store_address): Delete declaration.
6425 findvar.c (store_address): Delete function.
6426 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6427 store_unsigned_integer.
6428 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6429 * v850-tdep.c (v850_push_arguments): Ditto.
6430 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6431 * sh-tdep.c (sh64_get_saved_register): Ditto.
6432 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6433 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6434 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6435 (mips_get_saved_register): Ditto.
6436 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6437 (find_func_descr, ia64_push_arguments): Ditto.
6438 * i386-tdep.c (i386_push_arguments): Ditto.
6439 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6440 * frv-tdep.c (frv_push_arguments): Ditto.
6441 * frame.c (legacy_saved_regs_prev_register): Ditto.
6442 (deprecated_generic_get_saved_register): Ditto.
6443 * findvar.c (unsigned_address_to_pointer): Ditto.
6444 * dwarf2read.c (dwarf2_const_value): Ditto.
6445 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6446 * alpha-tdep.c (alpha_push_arguments): Ditto.
6448 2003-05-12 J. Brobecker <brobecker@gnat.com>
6450 * NEWS: Mention that the hppa-hpux port has been partially
6451 multiarched (32bit ABIT only, so far).
6453 2003-05-11 Andrew Cagney <cagney@redhat.com>
6455 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6456 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6457 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6458 sim/testsuite/sim/arm/misaligned2.ms, and
6459 sim/testsuite/sim/arm/misaligned3.ms.
6460 * disasm.h (struct ui_file): Add opaque struct declaration.
6461 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6462 * frame.h (struct ui_file): Ditto.
6464 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6466 * value.h: Pretty print.
6468 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6470 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6472 2003-05-08 Andrew Cagney <cagney@redhat.com>
6474 * regcache.h (max_register_size): Delete declaration.
6475 * regcache.c (max_register_size): Delete function.
6476 (struct regcache_descr): Delete field "max_register_size".
6477 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6478 registers fit in MAX_REGISTER_SIZE.
6479 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6480 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6481 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6482 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6483 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6484 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6485 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6486 * dve3900-rom.c, hppa-tdep.c: Ditto.
6488 2003-05-08 David Carlton <carlton@math.stanford.edu>
6490 * valops.c (push_word): Fix typo.
6492 2003-05-08 Andrew Cagney <cagney@redhat.com>
6494 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6495 * gdbarch.h: Re-generate.
6496 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6497 (legacy_max_register_raw_size): Delete declaration.
6498 * regcache.c (legacy_max_register_raw_size): Delete function.
6499 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6500 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6501 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6502 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6503 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6504 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6505 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6506 * findvar.c, dwarf2cfi.c: Ditto.
6508 2003-05-08 Andrew Cagney <cagney@redhat.com>
6510 * mips-tdep.c (read_signed_register): New function, moved to here
6512 (read_signed_register_pid): Ditto.
6513 * regcache.c (read_signed_register_pid): Delete function, moved to
6515 (read_signed_register): Ditto.
6516 * regcache.h (read_signed_register): Delete declaration.
6517 (read_signed_register_pid): Delete declaration.
6519 2003-05-08 Andrew Cagney <cagney@redhat.com>
6521 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6522 * gdbarch.h: Re-generate.
6523 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6524 (legacy_max_register_virtual_size): Delete declaration.
6525 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6526 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6527 * tracepoint.c (memrange_sortmerge): Ditto.
6528 * sparc-tdep.c (sparc_print_registers): Ditto.
6529 * regcache.c (legacy_max_register_virtual_size): Delete function.
6531 2002-05-08 J. Brobecker <brobecker@gnat.com>
6533 * fork-child.c (escape_bang_in_quoted_argument): New function.
6534 (fork_inferior): Escape '!' characters in quoted arguments
6537 2003-05-08 J. Brobecker <brobecker@gnat.com>
6539 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6540 the language of the CU is not currently supported by GDB.
6542 2003-05-08 J. Brobecker <brobecker@gnat.com>
6544 * defs.h (language): Add language_minimal enum value.
6545 * c-lang.c (minimal_language_defn): New language definition.
6546 (_initialize_c_language): Add the new minimal language to the list
6547 of languages known to GDB.
6549 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6551 * frame.c (get_frame_type): Don't attempt to lazily initialize
6552 frame's unwinder for legacy frames.
6554 2003-05-07 Andrew Cagney <cagney@redhat.com>
6556 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6557 and "regcache" parameters.
6558 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6560 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6562 * dwarf2read.c (dwarf_decode_lines): Only use output of
6563 check_cu_functions() when calling record_line(). Do not update
6564 the current address.
6566 2003-05-07 Andrew Cagney <cagney@redhat.com>
6568 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6571 2003-05-07 Jim Blandy <jimb@redhat.com>
6573 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6574 'maint info symtabs' and 'maint info psymtabs'.
6575 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6576 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6577 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6578 Declarations updated.
6579 * maint.c (maintenance_list_command): Delete.
6580 (_initialize_maint_cmds): Update calls to add_cmd.
6581 * gdbcmd.h (maintenancelistlist): Delete declaration.
6582 * cli/cli-cmds.c (maintenancelistlist): Delete.
6583 (init_cmd_lists): Don't initialize it.
6584 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6586 2003-05-07 Andrew Cagney <cagney@redhat.com>
6588 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6590 (d10v_print_registers_info): Update.
6591 (d10v_dmap_register, d10v_imap_register): Delete functions.
6592 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6593 and "imap_register".
6594 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6595 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6596 * arch-utils.c (generic_remote_translate_xfer_address): Add
6597 "regcache" and "gdbarch" parameters.
6598 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6599 parameter. Change class to multi-arch.
6600 * gdbarch.h, gdbarch.c: Re-generate.
6601 * remote.c (remote_xfer_memory): Use
6602 gdbarch_remote_translate_xfer_address.
6604 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6606 * infrun.c (prev_pc): Move declaration ahead of proceed().
6607 (proceed): Refresh prev_pc value before resuming.
6608 (stop_stepping): Remove code to refresh prev_pc.
6610 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6612 * nto-tdep.c: Removed stray comment.
6614 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6616 * i386-nto-tdep.c: Fix old K&R function definitions.
6617 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6618 Also change add_show_from_set() call to add_setshow_cmd().
6619 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6621 2003-05-05 Andrew Cagney <cagney@redhat.com>
6623 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6624 (fprint_dummy_frames): New function.
6625 (maintenance_print_dummy_frames): New function.
6626 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6627 * frame.c (fprint_frame_id): Make global.
6628 * frame.h (fprint_frame_id): Declare.
6629 * Makefile.in (dummy-frame.o): Update dependencies.
6631 2003-05-05 Andrew Cagney <cagney@redhat.com>
6633 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6634 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6635 SIZEOF_CALL_DUMMY_WORDS.
6636 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6637 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6638 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6639 CALL_DUMMY_BREAKPOINT_OFFSET.
6640 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6641 CALL_DUMMY_START_OFFSET.
6642 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6643 * gdbarch.h, gdbarch.c: Re-generate.
6644 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6645 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6646 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6647 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6648 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6649 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6650 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6651 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6652 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6653 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6654 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6655 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6656 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6657 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6658 * config/sparc/tm-sparc.h: Update.
6660 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6662 * configure.tgt: Add i[3456]86-*-nto*.
6663 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6664 * nto-tdep.c: New file. Neutrino target support routines.
6665 * nto-tdep.h: New file. Neutrino target header.
6666 * config/tm-qnxnto.h: New file.
6667 * config/i386/i386nto.mt: New file.
6668 * config/i386/tm-i386nto.h: New file.
6670 2003-05-04 Andrew Cagney <cagney@redhat.com>
6672 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6673 (load_infrun_state): Ditto.
6674 (struct thread_info): Drop "prev_func_name" field.
6675 * thread.c (load_infrun_state): Update.
6676 (save_infrun_state): Update.
6677 * infrun.c (prev_func_name): Delete variable.
6678 (init_wait_for_inferior): Do not clear prev_func_name.
6679 (stop_stepping, keep_going, context_switch): Do not swap
6681 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6682 instead of PC_IN_SIGTRAMP.
6684 2003-05-04 Andrew Cagney <cagney@redhat.com>
6686 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6687 REGISTER_BYTE with register_offset_hack.
6688 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6689 that REGISTER_BYTE is consistent with the regcache.
6690 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6691 * gdbarch.h, gdbarch.c: Regenerate.
6693 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6695 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6696 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6698 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6700 2003-05-03 J. Brobecker <brobecker@gnat.com>
6702 From Thierry Schneider <tpschneider1@yahoo.com>
6703 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6704 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6705 (mi-cmd-symbol.o): Add rule.
6707 2003-05-03 Andrew Cagney <cagney@redhat.com>
6709 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6710 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6711 * gdbarch.h, gdbarch.c: Re-generate.
6712 * d10v-tdep.c (d10v_push_dummy_code): New function.
6713 (d10v_gdbarch_init): Set push_dummy_code.
6714 * infcall.c (legacy_push_dummy_code): New function.
6715 (generic_push_dummy_code): New function.
6716 (push_dummy_code): New function.
6717 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6718 instead of dummy_addr, to push_dummy_call. Move call to
6719 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6721 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6723 2003-05-03 Andrew Cagney <cagney@redhat.com>
6725 * disasm.h (print_insn): Declare.
6726 * disasm.c (init_gdb_disassemble_info): New function.
6727 (gdb_disassembly): Call init_gdb_disassemble_info.
6728 (gdb_print_insn): New function.
6729 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6730 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6731 * mcore-tdep.c: Include "disasm.h"
6732 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6733 * d10v-tdep.c: Include "disasm.h".
6734 (display_trace): Call gdb_print_insn, instead of print_insn.
6735 (print_insn): Delete function.
6736 * printcmd.c: Include "disasm.h".
6737 (print_insn): Delete function.
6738 (print_formatted): Call gdb_print_insn, instead of print_insn.
6739 * Makefile.in (printcmd.o): Update dependencies.
6740 (mcore-tdep.o, d10v-tdep.o): Ditto.
6742 2003-05-02 Andrew Cagney <cagney@redhat.com>
6744 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6745 PC_REGNUM, re-indent.
6746 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6747 PC_REGNUM isn't set.
6749 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6750 * gdbarch.h, gdbarch.c: Re-generate.
6751 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6752 register_virtual_size, pc_regnum, or register_bytes.
6753 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6754 (d10v_register_type): Use D10V_PC_REGNUM.
6755 (d10v_print_registers_info, d10v_read_pc): Ditto.
6756 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6757 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6759 2003-05-02 David Carlton <carlton@bactrian.org>
6761 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6762 the name with mstrsave.
6764 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6766 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6767 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6768 (host_charset_name, target_charset_name): New vars for use by
6770 (host_charset_enum, target_charset_enum): New enums for set/show
6772 (set_charset_sfunc, set_host_charset_sfunc,
6773 set_target_charset_sfunc): New functions.
6774 (set_host_charset, set_target_charset): Make static.
6775 (list_charsets, set_host_charset_command,
6776 set_target_charset_command): Delete functions.
6777 (show_charset_command): Rewrite as....
6778 (show_charset): Hook this up with the set/show command mechanism.
6779 (_initialize_charset): Change names of charsets to match the
6780 set/show enums. Use host_charset_name and target_charset_name.
6781 Use set/show mechanism for charset, host-charset, target-charset
6782 commands. Do not make 'show host-charset' and 'show
6783 target-charset' be aliases of 'show charset'.
6785 * charset.h (set_host_charset, set_target_charset): Don't export,
6786 they are not used outside the file.
6788 2003-05-01 Andrew Cagney <cagney@redhat.com>
6790 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6791 (gdb_disassembly): Make "di" non static, always initialize and
6792 cleanup. Always use dis_asm_read_memory.
6793 (gdb_dis_asm_read_memory): Delete function.
6795 2003-05-01 Andrew Cagney <cagney@redhat.com>
6797 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6798 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6800 2003-04-30 Andrew Cagney <cagney@redhat.com>
6802 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6803 "tm_print_insn_info".
6804 (TARGET_PRINT_INSN_INFO): Delete macro.
6805 (dis_asm_read_memory): Delete function declaration.
6806 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6807 (tm_print_insn_info): Delete variable definition.
6808 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6809 * gdbarch.h, gdbarch.c: Re-generate.
6810 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6811 "deprecated_tm_print_insn_info".
6812 * mcore-tdep.c (mcore_dump_insn): Ditto.
6813 * mips-tdep.c (mips_gdbarch_init): Ditto.
6814 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6815 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6816 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6817 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6818 instead of TARGET_PRINT_INSN_INFO, add comment.
6819 * s390-tdep.c (s390_get_frame_info): Instead of
6820 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6821 (s390_check_function_end, s390_is_sigreturn): Ditto.
6822 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6823 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6824 * disasm.c: Include "gdbcore.h".
6825 (_initialize_disasm): New function, initialize
6826 "deprecated_tm_print_insn_info".
6827 (deprecated_tm_print_insn_info): New variable.
6828 (dis_asm_read_memory): Moved from "corefile.c", made static.
6829 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6830 * Makefile.in (disasm.o): Update dependencies.
6832 2003-04-30 Andrew Cagney <cagney@redhat.com>
6834 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6836 2003-04-29 Adam Fedor <fedor@gnu.org>
6838 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6839 * infcall.c (find_function_addr): Make non-static.
6840 * infcall.h (find_function_addr): Declare.
6841 * Makefile.in (eval.o): Update dependencies.
6843 2003-04-28 Adam Fedor <fedor@gnu.org>
6845 * symtab.c (symbol_find_demangled_name): Check for and demangle
6847 (symbol_init_demangled_name): Init for language_objc as well.
6849 2003-04-28 Andrew Cagney <cagney@redhat.com>
6851 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6852 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6853 * gdbarch.h, gdbarch.c: Re-generate.
6854 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6855 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6856 * inferior.h (deprecated_read_fp): Rename read_fp.
6857 (generic_target_read_fp): Delete declaration.
6858 * regcache.c (generic_target_read_fp): Delete function.
6859 (deprecated_read_fp): Replace read_fp, use
6860 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6861 * d10v-tdep.c (d10v_read_fp): Delete function.
6862 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6864 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6865 deprecated_target_read_fp to generic_target_read_fp.
6866 * sh-tdep.c (sh_gdbarch_init): Ditto.
6867 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6868 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6869 * frv-tdep.c (frv_gdbarch_init): Ditto.
6871 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6872 deprecated_fp_regnum.
6873 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6874 * vax-tdep.c (vax_gdbarch_init): Ditto.
6875 * v850-tdep.c (v850_gdbarch_init): Ditto.
6876 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6877 * sh-tdep.c (sh_gdbarch_init): Ditto.
6878 * s390-tdep.c (s390_gdbarch_init): Ditto.
6879 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6880 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6881 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6882 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6883 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6884 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6885 * i386-tdep.c (i386_gdbarch_init): Ditto.
6886 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6887 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6888 * frv-tdep.c (frv_gdbarch_init): Ditto.
6889 * cris-tdep.c (cris_gdbarch_init): Ditto.
6890 * avr-tdep.c (avr_gdbarch_init): Ditto.
6891 * arm-tdep.c (arm_gdbarch_init): Ditto.
6892 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6894 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6895 * v850-tdep.c (v850_gdbarch_init): Ditto.
6896 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6897 * sh-tdep.c (sh_gdbarch_init): Ditto.
6898 * s390-tdep.c (s390_gdbarch_init): Ditto.
6899 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6900 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6901 * mips-tdep.c (mips_gdbarch_init): Ditto.
6902 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6903 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6904 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6905 * frv-tdep.c (frv_gdbarch_init): Ditto.
6906 * avr-tdep.c (avr_gdbarch_init): Ditto.
6907 * arm-tdep.c (arm_gdbarch_init): Ditto.
6909 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6910 DEPRECATED_FP_REGNUM.
6911 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6912 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6913 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6914 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6915 (sparc32_register_virtual_type): Ditto.
6916 * sh-tdep.c (sh64_frame_chain): Ditto.
6917 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6918 (sh_nofp_frame_init_saved_regs): Ditto.
6919 (sh64_nofp_frame_init_saved_regs): Ditto.
6920 (sh_fp_frame_init_saved_regs): Ditto.
6921 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6922 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6923 * procfs.c (procfs_fetch_registers): Ditto.
6924 (procfs_store_registers): Ditto.
6925 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6926 (store_inferior_registers, fetch_core_registers): Ditto.
6927 (fetch_kcore_registers, clear_regs): Ditto.
6928 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6929 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6930 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6931 * nlm/i386.c (do_status): Ditto.
6932 * mipsv4-nat.c (supply_gregset): Ditto.
6933 * mips-tdep.c: Ditto for comments.
6934 * mips-nat.c (fetch_inferior_registers): Ditto.
6935 (store_inferior_registers, fetch_core_registers): Ditto.
6936 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6937 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6938 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6939 (i386_do_pop_frame, i386_register_type): Ditto.
6940 * hppa-tdep.c (hppa_frame_chain): Ditto.
6941 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6942 (hppa_pop_frame, hppa_read_fp): Ditto.
6943 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6944 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6945 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6946 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6947 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6948 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6949 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6950 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6951 * blockframe.c: Ditto for comments.
6952 * arch-utils.h: Ditto for comments.
6953 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6954 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6955 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6956 * alpha-tdep.h: Ditto for comments.
6957 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6958 (alpha_cannot_store_register): Ditto.
6959 (alpha_push_dummy_frame): Ditto.
6960 * alpha-nat.c (supply_gregset): Ditto.
6962 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6963 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6964 * config/sparc/tm-sparc.h: Update comment.
6966 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6967 deprecated_read_fp instead of TARGET_READ_FP.
6968 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6969 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6970 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6971 deprecated_read_fp instead of read_fp.
6972 * s390-tdep.c (s390_push_arguments): Ditto.
6973 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6974 * frame.h: Ditto in comments.
6975 * frame.c (legacy_get_prev_frame): Ditto.
6976 * dummy-frame.c (dummy_frame_this_id): Ditto.
6977 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6979 2003-04-28 Andrew Cagney <cagney@redhat.com>
6981 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6982 * gdbarch.h, gdbarch.c: Re-generate.
6983 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6984 * vax-tdep.c (_initialize_vax_tdep): Update.
6985 * v850-tdep.c (_initialize_v850_tdep): Update.
6986 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6987 * s390-tdep.c (_initialize_s390_tdep): Update.
6988 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6989 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6990 * mips-tdep.c (_initialize_mips_tdep): Update.
6991 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6992 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6993 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6994 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6995 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6996 * frv-tdep.c (_initialize_frv_tdep): Update.
6997 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6998 (_initialize_cris_tdep): Update.
6999 * arch-utils.c (legacy_print_insn): Update.
7000 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7002 2003-04-26 Adam Fedor <fedor@gnu.org>
7004 * linespec.c (decode_objc): New function to decode ObjC calls
7005 (decode_line_1): Check for ObjC calls (using decode_objc)
7006 * Makefile (linespec.o): Update dependencies.
7008 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7010 * breakpoint.h (struct breakpoint_ops): New.
7011 (struct breakpoint): Add ops member.
7013 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7014 (mention): Use new breakpoint ops member.
7015 (set_raw_breakpoint): Initialize ops field to NULL.
7016 (print_exception_catchpoint, print_one_exception_catchpoint)
7017 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7018 (gnu_v3_exception_catchpoint_ops): New.
7019 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7021 2003-04-25 Adam Fedor <fedor@gnu.org>
7023 * Makefile.in (COMMON_OBS): Add objc-lang.o
7025 2003-04-25 Andrew Cagney <cagney@redhat.com>
7027 * d10v-tdep.c (print_insn): Delete function.
7028 (display_trace): Use TARGET_PRINT_INSN.
7029 (_initialize_d10v_tdep): Do not set tm_print_insn.
7030 (d10v_gdbarch_init): Set print_insn.
7032 2003-04-25 Andrew Cagney <cagney@redhat.com>
7034 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7035 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7036 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7037 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7038 (nr_dmap_regs, a0_regnum): ... new functions.
7039 (d10v_print_registers_info): Use a0_regnum, use register_size.
7040 (d10v_register_byte): Delete function.
7041 (d10v_register_raw_size): Delete function.
7042 (d10v_register_type): Use a0_regnum.
7043 (d10v_print_registers_info): Use a0_regnum.
7044 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7045 (d10v_gdbarch_init): Do not set register_byte or
7046 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7047 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7049 (trace_command): Use XCALLOC.
7050 (print_insn): Delete reference to tm_print_insn.
7051 (saved_regs_unwinder): Use store_unsigned_integer instead of
7053 * frame.h (FRAME_OBSTACK_CALLOC): Define
7055 2003-04-25 David Carlton <carlton@bactrian.org>
7057 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7059 2003-04-24 Adam Fedor <fedor@gnu.org>
7061 * objc-lang.c: Include "valprint.h"
7062 * Makefile.in (objc-lang.o): Update dependencies.
7064 2003-04-24 Adam Fedor <fedor@gnu.org>
7066 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7067 architecture dependant compilation and mark as unimplemented
7068 (until they get put in the gdbarch vector).
7070 2003-04-23 David Carlton <carlton@bactrian.org>
7072 * cp-support.c (cp_find_first_component): Accept 'operator' in
7075 2003-04-23 Andrew Cagney <cagney@redhat.com>
7077 * infcall.c (call_function_by_hand): Eliminate redundant
7078 indentation. Move "saved_async" and "old_cleanups" to where they
7081 2003-04-23 Andrew Cagney <cagney@redhat.com>
7083 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7084 and "buffer". Move the "name" code to where it is needed.
7086 2003-04-23 Andrew Cagney <cagney@redhat.com>
7088 * infcall.c (call_function_by_hand): Move variables "start_sp",
7089 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7090 code to ON_STACK switch branch.
7092 2003-04-23 Andrew Cagney <cagney@redhat.com>
7094 * infcall.c (call_function_by_hand): Make declaration of "i",
7095 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7098 2003-04-23 Andrew Cagney <cagney@redhat.com>
7100 * infcall.c (call_function_by_hand): Delete variable
7101 "n_method_args". Localize "param_type"'s declaration to the loop
7102 that it is used. Reinstate code assigning to said variable -
7103 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7104 Rationalize code using "param_type".
7106 2003-04-22 Andrew Cagney <cagney@redhat.com>
7108 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7109 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7110 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7111 to DEPRECATED_PUSH_RETURN_ADDRESS.
7113 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7115 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7116 on the DWARF2 register number prior to fetching a register.
7118 2003-04-22 J. Brobecker <brobecker@gnat.com>
7120 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7121 Update all the tests using SOFT_FLOAT considering the fact that
7122 this macro was always set to 0.
7123 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7124 considering the fact that this macro was always set to 0.
7125 * hppa-tdep.h (hppa_store_return_value): Likewise.
7126 (hppa_extract_return_value): Likewise.
7128 2003-04-22 J. Brobecker <brobecker@gnat.com>
7130 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7131 the hppa-pro target only.
7133 2003-04-21 J. Brobecker <brobecker@gnat.com>
7135 Ongoing multi-arch conversion effort for HP/UX:
7136 * config/pa/tm-hppa.h: Move all macro that are no longer
7137 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7138 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7140 2003-04-21 J. Brobecker <brobecker@gnat.com>
7142 * config/pa/tm-hppa.h: Obsolete a section that was only used
7145 2003-04-21 J. Brobecker <brobecker@gnat.com>
7147 Ongoing multi-arch conversion for HP/UX.
7148 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7149 if already defined (allows hppa64 to stay non-multiarched for now).
7150 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7152 2003-04-21 Andrew Cagney <cagney@redhat.com>
7154 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7156 2003-04-21 Andrew Cagney <cagney@redhat.com>
7158 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7159 "i386_num_mmx_regs".
7161 2003-04-21 Andrew Cagney <cagney@redhat.com>
7163 * infcall.c: New file.
7164 * infcall.h: New file.
7165 * valarith.c: Include "infcall.h".
7166 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7167 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7168 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7169 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7170 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7171 (SFILES): Add "infcall.c"
7172 (COMMON_OBS): Add "infcall.o".
7173 (infcall.o): Specify dependencies.
7174 * value.h (call_function_by_hand): Delete declaration.
7175 * inferior.h (run_stack_dummy): Delete declaration.
7176 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7177 (run_stack_dummy): Move to "infcall.c", merged into
7178 call_function_by_hand.
7179 * valops.c (call_function_by_hand): Moved to "infcall.c".
7180 (find_function_addr, value_arg_coerce): Ditto.
7181 (unwindonsignal_p, coerce_float_to_double): Ditto.
7182 (_initialize_valops): Move "set/show coerce-float-to-double", and
7183 "set/show unwindonsignal" commands to "infcall.c".
7184 * v850-tdep.c, target.h: Update comments.
7185 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7186 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7187 (sh64_init_extra_frame_info): Update comments.
7188 * mn10300-tdep.c: Update comments.
7189 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7190 * config/sparc/tm-sparc.h: Update comments.
7191 * breakpoint.h: Update comments.
7192 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7193 * arm-tdep.c: Update comment.
7195 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7197 * i386-tdep.c (i386_num_register_names): New variable.
7198 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7199 (MM0_REGNUM): Remove redundant parentheses in define.
7200 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7201 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7202 i386_mxcsr_regnum_p): Remove redundant parentheses.
7203 (i386_register_name): Use i386_num_register_names.
7205 * i386-tdep.c (i386_extract_return_value,
7206 i386_store_return_value): Correct check for availability of
7207 floating-point registers.
7209 * i386-tdep.c (i386_frame_num_args): Remove function.
7210 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7212 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7213 mmx_regnum_to_fp_regnum. Adjust all callers.
7215 * i386-tdep.c (i386_get_longjmp_target): Use
7216 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7217 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7220 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7222 * core-regset.c: Update comments to reflect reality. Re-order
7224 (fetch_core_registers): Use switch instead of if. Remove
7225 redundant prototype.
7227 2003-04-18 Jim Blandy <jimb@redhat.com>
7229 * s390-tdep.c (s390_frame_align): New function.
7230 (s390_gdbarch_init): Register it with the gdbarch object.
7232 2003-04-17 Richard Henderson <rth@redhat.com>
7234 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7236 2003-04-17 Michael Snyder <msnyder@redhat.com>
7237 Karen Bennet <bennet@redhat.com>
7239 Committed by Elena Zannoni <ezannoni@redhat.com>
7240 * gdb_gcore.sh: New script to create a core dump of a process.
7242 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7244 * values.c (value_being_returned): Don't fetch the return
7245 value if the return type is void.
7247 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7249 * thread-db.c: Reindented.
7251 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7253 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7254 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7281 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7283 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7284 the size of ``long double'' to 16, instead of 8.
7286 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7288 * i386-linux-nat.c: Add some whitespace to make things more
7290 (fetch_register, store_register, fetch_inferior_registers,
7291 store_inferior_registers): Get rid of assignment in if-statement.
7292 (store_register): Fix typo in error message.
7294 2003-04-16 Andrew Cagney <cagney@redhat.com>
7296 * utils.c (xmmalloc): Always allocate something, matches
7297 libiberty/xmalloc's semantics.
7298 (xmrealloc, xmcalloc): Ditto.
7300 2003-04-16 Andrew Cagney <cagney@redhat.com>
7302 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7304 (get_frame_type): Initialize unwind and type when needed.
7305 (get_frame_id, frame_register_unwind): Ditto.
7307 2003-04-16 Andrew Cagney <cagney@redhat.com>
7309 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7311 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7312 * sparcl-stub.c: Obsolete file.
7313 * config/sparc/tm-sparclet.h: Obsolete file.
7314 * sparclet-stub.c: Obsolete file.
7315 * sparclet-rom.c: Obsolete file.
7316 * sparcl-tdep.c: Obsolete file.
7317 * config/sparc/tm-sparclite.h: Obsolete file.
7318 * config/sparc/sparclite.mt: Obsolete file.
7319 * config/sparc/sparclet.mt: Obsolete file.
7320 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7321 sparc86x-*-* obsolete.
7323 2003-04-15 David Carlton <carlton@math.stanford.edu>
7325 * Makefile.in (SFILES): Add cp-namespace.c.
7326 (COMMON_OBS): Add cp-namespace.o.
7327 (block.o): Depend on gdb_obstack_h and cp_support_h.
7328 (buildsym.o): Depend on cp_support_h.
7329 (cp-namespace.o): New.
7330 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7331 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7332 (dwarf2read.o): Depend on cp_support_h.
7333 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7334 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7335 processing_current_namespace.
7336 (read_namespace): Update processing_current_namespace; check for
7337 anonymous namespaces.
7338 (dwarf2_name): New function.
7339 (dwarf2_extension): Ditto.
7340 * cp-support.h: Update copyright, contributors.
7341 Add inclusion guards.
7342 Add opaque declaration for structs obstack, block, symbol.
7343 (struct using_direct): New struct.
7344 Add declarations for cp_find_first_component,
7345 cp_entire_prefix_len, processing_has_namespace_info,
7346 processing_current_namespace, cp_is_anonymous,
7347 cp_add_using_directive, cp_initialize_namespace,
7348 cp_finalize_namespace, cp_set_block_scope,
7349 cp_scan_for_anonymous_namespaces.
7350 * cp-namespace.c: New file.
7351 * cp-support.c: Update copyright.
7352 Include ctype.h, gdb_assert.h, gdbcmd.h.
7353 New variable maint_cplus_cmd_list.
7354 (cp_find_first_component): New function.
7355 (cp_entire_prefix_len, maint_cplus_command)
7356 (first_component_command, _initialize_cp_support): Ditto.
7357 * buildsym.c: Include cp-support.h.
7358 New variable using_list.
7359 (add_symbol_to_list): Check for anonymous namespaces.
7360 (finish_block): Set block's scope.
7361 (start_symtab): Initialize C++ namespace support.
7362 (end_symtab): Finalize C++ namespace support.
7363 * block.h: Add opaque declarations for structs
7364 block_namespace_info, using_direct, and obstack.
7365 Add declarations for block_set_scope and block_set_using.
7366 (struct block): Add 'language_specific' member.
7367 (BLOCK_NAMESPACE): New macro.
7368 * block.c: Include gdb_obstack.h and cp-support.h.
7369 (struct block_namespace_info): New struct.
7370 (block_set_scope): New function.
7371 (block_set_using, block_initialize_namespace): Ditto.
7373 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7375 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7376 (locate_base): Return early if there aren't any link map offsets.
7377 (svr4_solib_create_inferior_hook): Warn if shared library support
7380 2003-04-14 David Carlton <carlton@math.stanford.edu>
7382 * symtab.c (symbol_set_names): Add prefix when storing Java names
7383 in hash table. Fix for PR java/1039.
7385 2003-04-14 David Carlton <carlton@math.stanford.edu>
7387 * symtab.c (symbol_set_names): Rename 'name' arg to
7388 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7389 * symtab.h: Change 'name' argument in declaration of
7390 symbol_set_names to 'linkage_name'.
7391 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7393 2003-04-14 Andrew Cagney <cagney@redhat.com>
7395 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7396 return the fully sign-extended register value.
7397 (get_frame_pointer): Ditto.
7398 (mips_pop_frame): Initialize "proc_desc" after checking for a
7401 2003-04-14 Andrew Cagney <cagney@redhat.com>
7403 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7404 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7405 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7406 (mips_push_register): Delete function.
7407 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7410 2003-04-14 Jim Blandy <jimb@redhat.com>
7412 * symmisc.c: #include "gdb_regex.h".
7413 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7415 * maint.c (maintenance_list_command): New function.
7416 (_initialize_maint_cmds): Register the above as commands.
7417 * symtab.h (maintenance_list_symtabs,
7418 maintenance_list_psymtabs): New declarations.
7419 * cli/cli-cmds.c (maintenancelistlist): New variable.
7420 (init_cmd_lists): Initialize it.
7421 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7422 * gdbcmd.h (maintenancelistlist): New declaration.
7423 * Makefile.in (symmisc.o): Update dependencies.
7425 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7427 * s390-nat.c: Include asm/types.h for addr_t.
7429 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7431 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7432 actually incoming type.
7434 2003-04-13 Andrew Cagney <cagney@redhat.com>
7436 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7437 get_next_frame and get_frame_saved_regs.
7439 2003-04-13 Andrew Cagney <cagney@redhat.com>
7441 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7442 of gdbarch_num_regs.
7444 2003-04-13 Andrew Cagney <cagney@redhat.com>
7446 * frame.h: Mention what replaced what in "struct frame_info".
7447 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7448 deprecated_update_frame_base_hack and
7449 deprecated_update_frame_pc_hack.
7450 * hppa-tdep.c: Ditto.
7452 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7454 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7455 to read_reg and update its comment. Remove regnum member.
7456 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7457 Don't call read_reg when setting in_reg. Call read_reg to get
7458 the frame base if it's in a register. Return the register number
7459 on the stack instead of in the context. Remove extra arguments
7461 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7462 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7463 the register number on the expression stack.
7464 (needs_frame_read_reg): Remove extra arguments.
7466 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7468 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7470 (execute_stack_op): All callers updated.
7471 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7472 * dwarf2loc.c (find_location_expression): New function.
7473 (dwarf_expr_frame_base): Call it.
7474 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7475 (dwarf2_tracepoint_var_ref): New function, broken out from
7476 locexpr_tracepoint_var_ref.
7477 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7479 (loclist_read_variable, loclist_read_needs_frame): New functions.
7480 (loclist_describe_location, loclist_tracepoint_var_ref): New
7482 (dwarf2_loclist_funcs): New struct location_funcs.
7483 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7484 (struct dwarf2_locexpr_baton): Add comments.
7485 (dwarf2_loclist_funcs): New extern.
7486 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7487 base_address and base_known.
7488 (dwarf_loc_buffer): New variable.
7489 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7490 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7491 (dwarf2_has_info): Initialize dwarf_loc_offset.
7492 (dwarf2_build_psymtabs): Read in .debug_loc.
7493 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7495 (psymtab_to_symtab_1): Likewise. Move base address calculation
7497 (dwarf2_get_pc_bounds): ... here. Use the base address from
7499 (dwarf2_symbol_mark_computed): Handle location lists.
7501 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7503 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7504 if the linkage name demangled successfully.
7506 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7508 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7509 disassmbly_flavour): Removed.
7511 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7513 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7515 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7517 2003-04-12 Andrew Cagney <cagney@redhat.com>
7519 * frame.h (struct frame_info): Move definition from here ...
7520 * frame.c (struct frame_info): ... to here.
7522 2003-04-12 Andrew Cagney <cagney@redhat.com>
7524 * gdbthread.h (save_infrun_state): Delete parameter
7526 (struct thread_info): Delete field "prev_func_start".
7527 (load_infrun_state): Ditto.
7528 * thread.c (load_infrun_state, save_infrun_state): Update.
7529 * infrun.c (prev_func_start): Delete variable.
7530 (context_switch, init_wait_for_inferior): Update.
7531 (stop_stepping, keep_going): Update.
7533 2003-04-12 Andrew Cagney <cagney@redhat.com>
7535 * gdbarch.sh: Add missing opaque declarations.
7536 * gdbarch.h: Regnerate.
7537 * symtab.h: Add missing opaque declarations.
7538 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7539 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7540 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7541 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7542 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7543 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7544 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7545 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7546 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7547 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7548 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7549 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7550 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7552 2003-04-11 Andrew Cagney <cagney@redhat.com>
7554 * frame.c (get_frame_id): Return this frame's "id".
7555 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7557 (legacy_saved_regs_this_id): Replace function body with
7559 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7560 FRAME_OBSTACK_ZALLOC.
7561 (create_new_frame): Mark the frame ID as valid.
7563 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7565 * Makefile.in (libbfd_h): Added missing setting.
7566 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7567 according to the selected ABI.
7569 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7571 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7573 2003-04-11 Andrew Cagney <cagney@redhat.com>
7575 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7576 SAVED_PC_AFTER_CALL.
7577 * gdbarch.h, gdbarch.c: Regenerate.
7578 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7579 * x86-64-tdep.c (x86_64_init_abi): Update.
7580 * vax-tdep.c (vax_gdbarch_init): Update.
7581 * v850-tdep.c (v850_gdbarch_init): Update.
7582 * sparc-tdep.c (sparc_gdbarch_init): Update.
7583 * sh-tdep.c (sh_gdbarch_init): Update.
7584 * s390-tdep.c (s390_gdbarch_init): Update.
7585 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7586 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7587 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7588 * mips-tdep.c (mips_gdbarch_init): Update.
7589 * mcore-tdep.c (mcore_gdbarch_init): Update.
7590 * m68k-tdep.c (m68k_gdbarch_init): Update.
7591 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7592 * ia64-tdep.c (ia64_gdbarch_init): Update.
7593 (ia64_saved_pc_after_call): Update declaration.
7594 * i386ly-tdep.c (i386lynx_init_abi): Update.
7595 * i386-tdep.c (i386_gdbarch_init): Update.
7596 * hppa-tdep.c (hppa_gdbarch_init): Update.
7597 * h8300-tdep.c (h8300_gdbarch_init): Update.
7598 * frv-tdep.c (frv_gdbarch_init): Update.
7599 * cris-tdep.c (cris_gdbarch_init): Update.
7600 * avr-tdep.c (avr_gdbarch_init): Update.
7601 * arm-tdep.c (arm_gdbarch_init): Update.
7602 * alpha-tdep.c (alpha_gdbarch_init): Update.
7603 * ns32knbsd-nat.c (frame_num_args): Update.
7604 * ns32k-tdep.c (umax_frame_num_args): Update.
7605 * mips-tdep.c (mips_init_frame_pc_first): Update.
7606 * infrun.c (step_over_function): Update.
7607 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7608 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7609 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7610 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7611 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7612 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7613 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7614 * arch-utils.c (init_frame_pc_default): Update.
7615 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7616 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7619 2003-04-11 Andrew Cagney <cagney@redhat.com>
7621 * i387-tdep.c: Update copyright.
7622 (i387_to_double): Delete function.
7623 (double_to_i387): Delete function.
7625 2003-04-10 Andrew Cagney <cagney@redhat.com>
7627 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7628 frame's function's address. Simplify.
7629 (d10v_frame_unwind_cache): Check that the frame's function is
7632 2003-04-10 Jim Blandy <jimb@redhat.com>
7634 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7635 call to set_gdbarch_deprecated_push_arguments.
7637 2003-04-10 Andrew Cagney <cagney@redhat.com>
7639 * frame.c (fprint_frame_id): New function.
7640 (fprint_frame_type, fprint_frame): New function.
7641 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7642 (create_sentinel_frame, get_frame_id): Ditto.
7643 (frame_id_p, frame_id_eq): Ditto.
7644 (frame_id_inner, create_new_frame): Ditto.
7645 (legacy_get_prev_frame, get_prev_frame): Ditto.
7646 (deprecated_update_frame_pc_hack): Ditto.
7647 (frame_register_unwind): Ditto.
7648 (deprecated_update_frame_base_hack): Ditto.
7650 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7652 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7653 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7654 frame_chain function.
7655 * Makefile.in: Add dependencies due to above change.
7657 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7659 * blockframe.c (legacy_frame_chain_valid): Move call to
7660 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7663 2003-04-09 Andrew Cagney <cagney@redhat.com>
7665 * frame.h (struct frame_id): Replace "pc" and "base" with
7666 "stack_addr" and "code_addr". Update comments.
7667 (frame_id_build): Update parameter names and comment.
7668 (struct frame_info): Replace "id_p" and "id" with "this_id".
7669 * dummy-frame.c (dummy_frame_this_id): Update.
7670 * breakpoint.c (print_one_breakpoint): Update.
7671 * frame.c (get_frame_id): Update.
7672 (get_frame_base, frame_id_build): Update.
7673 (create_sentinel_frame, legacy_get_prev_frame): Update.
7674 (deprecated_update_frame_base_hack): Update.
7675 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7676 (frame_id_inner): Ditto.
7678 2003-04-09 Andrew Cagney <cagney@redhat.com>
7680 * defs.h (gdb_print_host_address): Make "addr" parameter a
7682 * utils.c (gdb_print_host_address): Update.
7684 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7686 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7687 register number for R0 is 0.
7689 2003-04-09 J. Brobecker <brobecker@gnat.com>
7691 * frame.h (struct gdbarch): Add opaque structure definition
7692 to avoid a compilation warning on LynxOS 4.0.
7694 2003-04-09 Andrew Cagney <cagney@redhat.com>
7696 * frame.h (struct frame_info): Delete field "pc". Replace
7697 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7699 * frame.c (frame_pc_unwind): Update.
7700 (create_sentinel_frame): Do not set "pc".
7701 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7702 (get_frame_pc): Call frame_pc_unwind.
7703 (deprecated_update_frame_pc_hack): Update.
7704 (create_new_frame): Use "pc" not "->pc".
7706 2003-04-09 Andrew Cagney <cagney@redhat.com>
7708 * frame.c (get_frame_id): Eliminate code updating "frame".
7709 (legacy_get_prev_frame): Ditto.
7710 (get_frame_base): Return id.base directly.
7711 (deprecated_update_frame_base_hack): Update "id.base".
7712 * frame.h (struct frame_info): Delete field "frame".
7714 2003-04-09 Andrew Cagney <cagney@redhat.com>
7716 * NEWS: Mention that the "Sequent family" is obsolete.
7717 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7718 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7719 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7720 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7721 * config/i386/tm-ptx4.h: Obsolete file.
7722 * config/i386/tm-ptx.h: Obsolete file.
7723 * symm-tdep.c: Obsolete file.
7724 * config/i386/symmetry.mt: Obsolete file.
7725 * config/i386/tm-symmetry.h: Obsolete file.
7726 * symm-nat.c: Obsolete file.
7727 * config/i386/nm-symmetry.h: Obsolete file.
7728 * config/i386/xm-symmetry.h: Obsolete file.
7729 * config/i386/symmetry.mh: Obsolete file.
7730 * config/i386/nm-ptx4.h: Obsolete file.
7731 * config/i386/ptx4.mh: Obsolete file.
7732 * config/i386/ptx.mt: Obsolete file.
7733 * config/i386/ptx.mh: Obsolete file.
7734 * config/i386/xm-ptx4.h: Obsolete file.
7735 * config/i386/xm-ptx.h: Obsolete file.
7737 2003-04-09 Andrew Cagney <cagney@redhat.com>
7739 Obsolete mips*-*-mach3*.
7740 * NEWS: Mention that mips*-*-mach3* is obsolete.
7741 * m3-nat.c: Obsolete file.
7742 * config/nm-m3.h: Obsolete file.
7743 * config/mips/tm-mipsm3.h: Obsolete file.
7744 * config/mips/mipsm3.mt: Obsolete file.
7745 * config/mips/mipsm3.mh: Obsolete file.
7746 * config/mips/xm-mipsm3.h: Obsolete file.
7747 * mipsm3-nat.c: Obsolete file.
7748 * configure.host: Obsolete mips-dec-mach3*.
7749 * configure.tgt: Obsolete mips*-*-mach3*.
7751 2003-04-09 Andrew Cagney <cagney@redhat.com>
7753 * doublest.h: Update copyright.
7754 (deprecated_store_floating, deprecated_extract_floating): Rename
7755 store_floating and extract_floating. Update comments.
7756 * doublest.c: Update copyright.
7757 (extract_floating_by_length): Replace extract_floating.
7758 (store_floating_by_length): Replace store_floating.
7759 (deprecated_extract_floating): New function.
7760 (deprecated_store_floating): New function.
7761 (extract_typed_floating): Call extract_floating_by_length.
7762 (store_typed_floating): Call store_floating_by_length.
7763 * x86-64-tdep.c (x86_64_store_return_value): Update.
7764 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7765 (sh64_extract_return_value): Update.
7766 (sh_sh4_register_convert_to_virtual): Update.
7767 (sh_sh64_register_convert_to_virtual): Update.
7768 (sh_sh4_register_convert_to_raw): Update.
7769 (sh_sh64_register_convert_to_raw): Update.
7770 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7771 (rs6000_register_convert_to_raw): Update.
7772 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7773 (ia64_register_convert_to_raw): Update.
7774 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7775 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7776 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7777 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7778 (alpha_register_convert_to_raw): Update.
7780 2003-04-08 Andrew Cagney <cagney@redhat.com>
7782 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7783 * gdbarch.h, gdbarch.c: Re-generate.
7784 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7785 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7786 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7787 conditionally, use frame_pc_unwind as an alternative. Add
7789 * arch-utils.c (init_frame_pc_default): Only call
7790 SAVED_PC_AFTER_CALL when available.
7792 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7794 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7795 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7796 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7797 (start_remote): Ditto.
7798 (handle_inferior_event): Ditto.
7799 (save_inferior_status): Ditto.
7800 (restore_inferior_status): Ditto.
7801 * infcmd.c (attach_command): Ditto.
7802 * fork-child.c (startup_inferior): Ditto.
7803 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7804 * alpha-tdep.c (heuristic_proc_start): Ditto.
7805 * mips-tdep.c (heuristic_proc_start): Ditto.
7806 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7807 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7808 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7809 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7810 * remote-vx.c (vx_create_inferior): Ditto.
7812 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7814 * infrun.c (stop_soon_quietly): Make it an enum, to better
7815 override the default behavior of handle_inferior_event.
7816 (clear_proceed_status): Update uses of stop_soon_quietly to
7817 reflect that it is now an enum.
7818 (start_remote): Ditto.
7819 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7820 is set to handle the new GNU/Linux kernel behavior for
7821 attach/sigstop. Update uses of stop_soon_quietly.
7822 * inferior.h (enum stop_kind): New enum.
7823 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7824 Reset normal handle_inferior_event behavior, afterwards.
7825 * fork-child.c (startup_inferior): Update.
7826 * alpha-tdep.c (heuristic_proc_start): Update.
7827 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7828 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7829 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7830 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7831 * remote-vx.c (vx_create_inferior): Update.
7832 * mips-tdep.c (heuristic_proc_start): Update.
7834 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7836 * disasm.c (dump_insns): Move variables inside loop, or they will
7837 be freed more than once, causing wild memory corruptions.
7838 (gdb_disassembly): Look for the substring "-thread",
7839 instead of "-threads" in the target name, to make sure to find
7840 the 'multi-thread' target. Also, make sure we do the right thing
7841 with the "core" target.
7843 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7845 * mips-tdep.c (mips_print_fp_register): New function, created from
7846 do_fp_register_row(). Registers are now (also) printed as hex.
7847 Only one register is printed per row.
7848 (mips_print_register, do_fp_register_row): Print floating point
7849 registers with mips_print_fp_register().
7851 2003-04-06 Andrew Cagney <cagney@redhat.com>
7853 * valprint.h (inspect_it): Add extern declaration.
7854 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7855 (selectors_info, classes_info): Ditto.
7856 (find_objc_msgcall): Fix indentation.
7857 (objc_printstr): Delete extern declarations.
7859 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7861 2003-04-06 Andrew Cagney <cagney@redhat.com>
7863 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7865 * frame.c (legacy_saved_regs_this_id): Update.
7866 (legacy_get_prev_frame): Update.
7867 * xstormy16-tdep.c: Update comment.
7868 * sparc-tdep.c (sparc_frame_chain): Update comment.
7869 * blockframe.c (legacy_frame_chain_valid): Update.
7871 2003-04-06 Andrew Cagney <cagney@redhat.com>
7873 * valprint.c (val_print_type_code_int): Delete #ifdef
7874 PRINT_TYPELESS_INTEGER code.
7876 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7877 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7878 multi-arch definition.
7879 * gdbarch.h: Re-generate.
7881 2003-04-05 Andrew Cagney <cagney@redhat.com>
7883 Eliminate FRAME_FIND_SAVED_REGS.
7884 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7885 Change FSR parameter to a pointer.
7886 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7887 Assume FSR parameter is a pointer.
7888 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7890 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7891 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7892 saved_regs a pointer.
7893 (hppa_frame_saved_pc): Ditto.
7894 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7895 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7897 (restore_pc_queue): Make fsr a pointer.
7898 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7899 (hppa_frame_chain): Make saved_regs a pointer, call
7900 hppa_frame_init_saved_regs.
7901 * sparc-tdep.c: Include "gdb_assert.h".
7902 (sparc_frame_find_saved_regs): Replace internal_error with
7904 * remote-vxsparc.c (vx_read_register): Delete reference to
7905 FRAME_FIND_SAVED_REGS.
7906 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7907 * gdbarch.h: Regenerate.
7908 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7909 (deprecated_get_frame_saved_regs): Delete declaration.
7910 (struct frame_saved_regs): Delete definition.
7911 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7912 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7913 (hppa_frame_find_saved_regs): Delete declaration.
7914 (FRAME_FIND_SAVED_REGS): Delete macro.
7915 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7916 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7917 FRAME_FIND_SAVED_REGS in comment.
7919 2003-04-05 Andrew Cagney <cagney@redhat.com>
7921 * frame.c (frame_func_unwind, get_frame_func): New functions.
7922 * frame.h (get_frame_func, frame_func_unwind): Declare.
7923 (struct frame_info): Add field "prev_func" for caching the
7924 previous frame's function address.
7925 * arm-tdep.c (arm_frameless_function_invocation): Combine
7926 get_pc_function_start and get_frame_pc into get_frame_func.
7927 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7928 (sh64_nofp_frame_init_saved_regs): Ditto.
7929 * s390-tdep.c (s390_function_start): Ditto.
7930 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7931 (rs6000_frameless_function_invocation): Ditto.
7932 (rs6000_frame_saved_pc): Ditto.
7933 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7934 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7935 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7936 (i386_frame_init_saved_regs): Ditto.
7937 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7938 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7939 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7940 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7941 * blockframe.c (frameless_look_for_prologue): Ditto.
7943 2003-04-05 Andrew Cagney <cagney@redhat.com>
7945 * frame.c (legacy_get_prev_frame): Link prev to next at the
7946 function start. Update comments.
7948 2003-04-05 Andrew Cagney <cagney@redhat.com>
7950 * frame.c (get_frame_id): Update comment.
7951 (legacy_get_prev_frame): Update comment.
7952 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7953 * gdbarch.h: Regenerate.
7954 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7955 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7957 2003-04-05 Andrew Cagney <cagney@redhat.com>
7959 * stack.c (print_frame_info): Use get_frame_pc.
7961 2003-04-04 Andrew Cagney <cagney@redhat.com>
7963 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7964 the frame's type from the unwinder.
7965 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7966 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7967 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7968 (get_frame_base_address): Use get_frame_type.
7969 (get_frame_locals_address, get_frame_args_address): Ditto.
7970 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7971 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7972 (struct frame_info): Add comment explaining why the frame contains
7974 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7975 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7976 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7978 * frame-unwind.h: Include "frame.h".
7979 (struct frame_unwind): Add "type" field.
7980 * Makefile.in (frame_unwind_h): Add $(frame_h).
7982 2003-04-04 Andrew Cagney <cagney@redhat.com>
7984 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7985 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7986 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7988 (d10v_unwind_dummy_id): Use frame_id_build.
7989 * frame.c (find_frame_sal): Use get_frame_pc.
7990 (create_new_frame): Use deprecated_update_frame_pc_hack and
7991 deprecated_update_frame_base_hack.
7992 (create_sentinel_frame): Add comment about ->pc going away.
7993 (get_prev_frame): Add comment about ->pc going away.
7994 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7995 frame_id_build, deprecated_update_frame_pc_hack and
7996 deprecated_update_frame_base_hack.
7997 (select_frame): Use get_frame_pc.
7998 (legacy_saved_regs_this_id): Use frame_id_build.
8000 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8002 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8003 signed integer case.
8004 (classify_argument): Handle enumerations and references.
8006 2003-04-04 Andrew Cagney <cagney@redhat.com>
8008 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8011 2003-04-01 Adam Fedor <fedor@gnu.org>
8013 * gdb/objc-lang.c (selectors_info): Replace calls to
8014 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8015 SYMBOL_NATURAL_NAME.
8016 (classes_info, find_methods): Likewise.
8018 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8020 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8021 ``mach'' to the value determined by bfd_default_set_arch_mach().
8023 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8025 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8026 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8027 (mi-cmd-file.o): Update dependencies.
8029 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8031 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8032 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8034 2003-04-01 Adam Fedor <fedor@gnu.org>
8036 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8037 * language.h (struct language_defn): Add la_demangle.
8038 (language_demangle): Declare.
8039 * language.c (language_demangle): New function.
8040 (unk_lang_demangle): Likewise.
8041 (unknown_language_defn, auto_language_defn, local_language_defn):
8042 Add ukn_lang_demangle.
8043 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8044 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8045 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8046 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8047 * jv-lang.c (java_demangle): New function
8048 (java_language_defn): Use it for la_demangle element.
8049 * objc-lang.c (objc_demangle): Add options argument
8050 (objc_language_defn): Use objc_demangle for la_demangle element.
8051 * maint.c (maintenance_demangle): Replace switch with
8052 call to language_demangle.
8053 * utils.c (fprintf_symbol_filtered): Likewise.
8055 2003-04-01 Andrew Cagney <cagney@redhat.com>
8057 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8058 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8059 PRINT_TYPELESS_INTEGER.
8060 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8061 PUSH_RETURN_ADDRESS.
8063 2003-04-01 Andrew Cagney <cagney@redhat.com>
8065 * Makefile.in (d10v-tdep.o): Update dependencies.
8066 * d10v-tdep.c: Include "frame-base.h".
8067 (d10v_frame_unwind): Make constant.
8068 (d10v_frame_base_address): New function.
8069 (d10v_frame_base): New variable.
8070 (d10v_gdbarch_init): Set frame_base default.
8071 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8073 (d10v_frame_unwind_cache): Set and use "prev_sp".
8074 (d10v_frame_this_id): Use the previous frame's inner most stack
8075 address and this frame's func address for the frame ID. Use
8076 frame_id_build. Don't analyze beyond the current instruction.
8078 2003-04-01 Andrew Cagney <cagney@redhat.com>
8080 * frame.h (get_frame_locals_address, get_frame_args_address):
8081 Refer to the base address, instead of the address of the first
8084 2003-04-01 Andrew Cagney <cagney@redhat.com>
8086 Add frame debug info addresses:
8087 * frame-base.c: New file.
8088 * frame-base.h: New file.
8089 * frame.h (struct frame_base): Add opaque declaration.
8090 (get_frame_base): Update comment.
8091 (get_frame_base_address): Declare.
8092 (get_frame_locals_address): Declare.
8093 (get_frame_args_address): Declare.
8094 (struct frame_info): Add "base" and "base_cache". Update
8095 comments on the unwinder.
8096 * frame.c: Include "frame-base.h".
8097 (get_frame_locals_address): New function.
8098 (get_frame_base_address): New function.
8099 (get_frame_args_address): New function.
8100 * findvar.c (read_var_value): Use get_frame_locals_address and
8101 get_frame_args_address.
8102 * stack.c (frame_info): Use get_frame_locals_address and
8103 get_frame_args_address.
8104 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8105 moved to "frame-base.c".
8106 * printcmd.c (print_frame_nameless_args): Ditto.
8107 * symtab.h (address_class): Update comments.
8108 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8109 get_frame_base_address.
8110 * dwarf2expr.c (execute_stack_op): Ditto.
8111 * Makefile.in (frame_base_h): Define.
8112 (frame.o): Update dependencies.
8113 (frame-base.o): Add dependencies.
8114 (SFILES): Add frame-base.c.
8115 (COMMON_OBS): Add frame-base.o.
8117 2003-04-01 Andrew Cagney <cagney@redhat.com>
8119 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8120 CALL_DUMMY_LENGTH): Ditto.
8121 * gdbarch.c: Re-generate.
8122 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8123 (CALL_DUMMY_LENGTH): Delete macro.
8124 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8125 * arm-tdep.c (arm_gdbarch_init): Ditto.
8126 * avr-tdep.c (avr_gdbarch_init): Ditto.
8127 * cris-tdep.c (cris_gdbarch_init): Ditto.
8128 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8129 * frv-tdep.c (frv_gdbarch_init): Ditto.
8130 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8131 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8132 * i386-tdep.c (i386_gdbarch_init): Ditto.
8133 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8134 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8135 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8136 * mips-tdep.c (mips_gdbarch_init): Ditto.
8137 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8138 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8139 * s390-tdep.c (s390_gdbarch_init): Ditto.
8140 * sh-tdep.c (sh_gdbarch_init): Ditto.
8141 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8142 * v850-tdep.c (v850_gdbarch_init): Ditto.
8143 * vax-tdep.c (vax_gdbarch_init): Ditto.
8144 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8146 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8148 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8150 2003-04-01 Andrew Cagney <cagney@redhat.com>
8152 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8153 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8154 * gdbarch.h, gdbarch.c: Re-generate.
8155 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8156 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8157 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8158 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8159 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8160 * infcmd.c (run_stack_dummy): Simplify assuming
8161 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8162 * infrun.c (handle_inferior_event): Ditto.
8163 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8164 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8165 * arm-tdep.c (arm_gdbarch_init): Ditto.
8166 * avr-tdep.c (avr_gdbarch_init): Ditto.
8167 * cris-tdep.c (cris_gdbarch_init): Ditto.
8168 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8169 * frv-tdep.c (frv_gdbarch_init): Ditto.
8170 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8171 * i386-tdep.c (i386_gdbarch_init): Ditto.
8172 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8173 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8174 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8175 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8176 * mips-tdep.c (mips_gdbarch_init): Ditto.
8177 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8178 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8179 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8180 * s390-tdep.c (s390_gdbarch_init): Ditto.
8181 * sh-tdep.c (sh_gdbarch_init): Ditto.
8182 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8183 * v850-tdep.c (v850_gdbarch_init): Ditto.
8184 * vax-tdep.c (vax_gdbarch_init): Ditto.
8185 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8187 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8189 * symfile.c (symfile_relocate_debug_section): Update call to
8190 bfd_simple_get_relocated_section_contents.
8192 2003-03-31 Andrew Cagney <cagney@redhat.com>
8194 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8195 * gdbarch.h, gdbarch.c: Regenerate.
8196 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8197 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8199 * frame.h (generic_fix_call_dummy): Delete declaration.
8200 * dummy-frame.h: Update comment.
8201 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8202 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8204 * sh-tdep.c (sh_gdbarch_init): Ditto.
8205 * s390-tdep.c (s390_gdbarch_init): Ditto.
8206 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8207 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8208 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8209 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8210 * i386-tdep.c (i386_gdbarch_init): Ditto.
8211 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8212 * frv-tdep.c (frv_gdbarch_init): Ditto.
8213 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8214 * cris-tdep.c (cris_gdbarch_init): Ditto.
8215 * avr-tdep.c (avr_gdbarch_init): Ditto.
8216 * arm-tdep.c (arm_gdbarch_init): Ditto.
8218 2003-03-31 J. Brobecker <brobecker@gnat.com>
8220 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8221 (INIT_FRAME_AP): Likewise.
8222 (EXTRA_FRAME_INFO): Likewise.
8224 2003-03-31 Andrew Cagney <cagney@redhat.com>
8226 * gdbarch.sh: Include "symfile.h".
8227 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8228 * gdbarch.h, gdbarch.c: Re-generate.
8229 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8230 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8231 call_dummy_address, the default is at entry_point_address.
8232 * v850-tdep.c (v850_gdbarch_init): Ditto.
8233 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8234 * sh-tdep.c (sh_gdbarch_init): Ditto.
8235 * s390-tdep.c (s390_gdbarch_init): Ditto.
8236 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8237 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8238 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8239 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8240 * i386-tdep.c (i386_gdbarch_init): Ditto.
8241 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8242 * frv-tdep.c (frv_gdbarch_init): Ditto.
8243 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8244 * cris-tdep.c (cris_gdbarch_init): Ditto.
8245 * arm-tdep.c (arm_gdbarch_init): Ditto.
8247 2003-03-31 Andrew Cagney <cagney@redhat.com>
8249 * gdbarch.sh (CALL_DUMMY_P): Delete.
8250 * gdbarch.h, gdbarch.c: Re-generate.
8251 * inferior.h (CALL_DUMMY_P): Delete macro.
8252 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8253 * vax-tdep.c (vax_gdbarch_init): Update.
8254 * v850-tdep.c (v850_gdbarch_init): Update.
8255 * sparc-tdep.c (sparc_gdbarch_init): Update.
8256 * sh-tdep.c (sh_gdbarch_init): Update.
8257 * s390-tdep.c (s390_gdbarch_init): Update.
8258 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8259 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8260 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8261 * mips-tdep.c (mips_gdbarch_init): Update.
8262 * mcore-tdep.c (mcore_gdbarch_init): Update.
8263 * m68k-tdep.c (m68k_gdbarch_init): Update.
8264 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8265 * ia64-tdep.c (ia64_gdbarch_init): Update.
8266 * i386-tdep.c (i386_gdbarch_init): Update.
8267 * h8300-tdep.c (h8300_gdbarch_init): Update.
8268 * frv-tdep.c (frv_gdbarch_init): Update.
8269 * d10v-tdep.c (d10v_gdbarch_init): Update.
8270 * cris-tdep.c (cris_gdbarch_init): Update.
8271 * breakpoint.c (deprecated_frame_in_dummy): Update.
8272 * avr-tdep.c (avr_gdbarch_init): Update.
8273 * alpha-tdep.c (alpha_gdbarch_init): Update.
8274 * arm-tdep.c (arm_gdbarch_init): Update.
8275 * dummy-frame.c (dummy_frame_this_id): Update comments.
8276 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8277 * frame.c (legacy_get_prev_frame): Ditto.
8278 * valops.c (call_function_by_hand): Delete function.
8279 (hand_function_call): Rename to call_function_by_hand
8281 2003-03-30 Andrew Cagney <cagney@redhat.com>
8283 2002-11-10 Klee Dienes <kdienes@apple.com>
8284 * value.h (struct value): Update comment.
8286 2003-03-30 Andrew Cagney <cagney@redhat.com>
8288 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8290 (d10v_gdbarch_init): Do not set fp_regnum.
8292 * frame.c (get_frame_base): Force ID initialization.
8293 (get_prev_frame): Move computation of the frame ID from here ...
8294 (get_frame_id): ... to here.
8295 (legacy_get_prev_frame): Mark the frame ID as valid.
8296 * frame.h (struct frame_info): Add field "id_p".
8298 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8300 * i386-tdep.c (i386_store_struct_return): Removed.
8301 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8303 2003-03-30 Andrew Cagney <cagney@redhat.com>
8305 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8306 * gdbarch.h, gdbarch.c: Regenerate.
8307 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8308 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8309 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8310 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8311 * i386-tdep.c (i386_gdbarch_init): Ditto.
8312 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8313 * cris-tdep.c (cris_gdbarch_init): Ditto.
8314 * vax-tdep.c (vax_gdbarch_init): Ditto.
8315 * s390-tdep.c (s390_gdbarch_init): Ditto.
8316 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8317 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8318 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8319 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8320 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8321 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8322 * sparc-tdep.c (sparc_gdbarch_init): Update.
8323 * sh-tdep.c (sh_gdbarch_init): Update.
8324 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8325 * mips-tdep.c (mips_gdbarch_init): Update.
8326 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8327 * ia64-tdep.c (ia64_gdbarch_init): Update.
8328 * frv-tdep.c (frv_gdbarch_init): Update.
8329 * avr-tdep.c (avr_gdbarch_init): Update.
8330 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8331 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8332 instead of when push_dummy_call is not available.
8334 2003-03-30 Andrew Cagney <cagney@redhat.com>
8336 * infttrace.c: Include "gdbthread.h".
8337 (parent_attach_all): Fix function signature.
8338 (call_ptrace): Update call.
8339 * Makefile.in (infttrace.o): Update dependencies.
8341 2003-03-30 Andrew Cagney <cagney@redhat.com>
8343 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8344 PUSH_RETURN_ADDRESS.
8345 * gdbarch.h, gdbarch.c: Regenerate.
8346 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8347 * x86-64-tdep.c (x86_64_init_abi): Update.
8348 * v850-tdep.c (v850_gdbarch_init): Update.
8349 * sparc-tdep.c (sparc_gdbarch_init): Update.
8350 * sh-tdep.c (sh_gdbarch_init): Update.
8351 * s390-tdep.c (s390_gdbarch_init): Update.
8352 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8353 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8354 * mips-tdep.c (mips_gdbarch_init): Update.
8355 * mcore-tdep.c (mcore_gdbarch_init): Update.
8356 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8357 * ia64-tdep.c (ia64_gdbarch_init): Update.
8358 * i386-tdep.c (i386_gdbarch_init): Update.
8359 * h8300-tdep.c (h8300_gdbarch_init): Update.
8360 * frv-tdep.c (frv_gdbarch_init): Update.
8361 * cris-tdep.c (cris_gdbarch_init): Update.
8362 * avr-tdep.c (avr_gdbarch_init): Update.
8363 * arm-tdep.c (arm_gdbarch_init): Update.
8364 * valops.c (hand_function_call): Update.
8366 2003-03-29 Andrew Cagney <cagney@redhat.com>
8368 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8369 sizeof_call_dummy_words.
8370 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8372 * gdbarch.h: Regenerate.
8374 2003-03-29 Andrew Cagney <cagney@redhat.com>
8376 * infttrace.h: New file.
8377 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8378 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8379 (hpread_read_doc_function_type): Detect an initialized type1.
8380 (hpread_quick_traverse): Initialize mod_name_string.
8381 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8382 (som_solib_get_solib_by_pc): Declare.
8383 (so_lib_thread_start_addr): Declare.
8384 (no_shared_libraries): Declare.
8385 * somread.c (init_import_symbols): Make static. Add forward
8387 * config/pa/nm-hppah.h: Include "infttrace.h" for
8389 (hppa_insert_hw_watchpoint): Declare.
8390 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8391 * hppah-nat.c: Include "gdb_string.h".
8392 (parent_attach_all): Delete extern declaration, moved to
8394 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8396 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8397 * Makefile.in (infttrace_h): Define.
8398 (hpread.o): Update dependencies.
8399 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8400 * hppa-hpux-tdep.c: Include "gdb_string.h".
8401 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8402 * infrun.c (handle_inferior_event): Always initialize
8403 stepped_after_stopped_by_watchpoint. Add default and remove
8404 fallthrough in switch statement.
8405 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8407 (hppa_remove_hw_watchpoint): Ditto.
8409 2003-03-29 Andrew Cagney <cagney@redhat.com>
8411 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8414 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8416 * arm-tdep.c (arm_push_arguments): Delete.
8417 (struct stack_item): New type.
8418 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8419 (arm_store_struct_return): Delte.
8420 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8421 arm_push_arguments or arm_store_struct_return.
8423 2003-03-28 Andrew Cagney <cagney@redhat.com>
8425 * Makefile.in (d10v-tdep.o): Update dependencies.
8426 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8427 * d10v-tdep.c: Include "remote.h".
8428 (target_resume_hook): Delete extern declaration.
8429 (target_wait_loop_hook): Ditto.
8430 (tdisassemble_command): Eliminate assignment in "if" conditional.
8431 (d10v_ts2_register_sim_regno): Eliminate call to
8432 legacy_register_sim_regno.
8433 (d10v_ts3_register_sim_regno): Ditto.
8435 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8437 * thread.c: Reindented.
8439 * linux-proc.c: Ditto.
8441 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8443 * MAINTAINERS (write after approval): Add myself.
8445 2003-03-27 Theodore A. Roth <troth@openavr.org>
8447 * objc-exp.y: Add missing semi-colons.
8449 2003-03-27 Andrew Cagney <cagney@redhat.com>
8451 * regcache.c (write_sp): Delete function and references.
8452 * inferior.h (write_sp): Delete declaration.
8453 * valops.c (hand_function_call): Replace write_sp with
8455 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8456 (sparc_pop_frame): Ditto.
8458 2003-03-27 Andrew Cagney <cagney@redhat.com>
8460 * NEWS: Mention removal of support for hppa*-*-bsd* and
8461 hppa*-*-osf* natives, and hppa*-*-pro* target.
8462 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8463 * config/pa/xm-pa.h: Obsolete file.
8464 * config/pa/xm-hppab.h: Obsolete file.
8465 * config/pa/nm-hppab.h: Obsolete file.
8466 * config/pa/tm-hppab.h: Obsolete file.
8467 * config/pa/tm-hppao.h: Obsolete file.
8468 * config/pa/nm-hppao.h: Obsolete file.
8469 * config/pa/tm-pro.h: Obsolete file.
8470 * config/pa/hppaosf.mt: Obsolete file.
8471 * config/pa/hppaosf.mh: Obsolete file.
8472 * config/pa/hppapro.mt: Obsolete file.
8473 * config/pa/hppabsd.mt: Obsolete file.
8474 * config/pa/hppabsd.mh: Obsolete file.
8475 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8476 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8479 2003-03-27 Andrew Cagney <cagney@redhat.com>
8481 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8482 push_arguments. Don't set push_return_address or write_sp.
8483 (d10v_push_dummy_call): Replace d10v_push_arguments.
8484 (d10v_push_return_address, d10v_write_sp): Delete function,
8485 handled by push_dummy_call.
8487 2003-03-26 Andrew Cagney <cagney@redhat.com>
8489 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8490 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8491 regcache and dummy_addr parameters.
8492 * gdbarch.h, gdbarch.c: Re-generate.
8493 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8494 available; assume it will handle stack alignment and return
8495 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8496 legacy_push_arguments.
8497 (legacy_push_arguments): Rename default_push_arguments.
8498 * value.h (legacy_push_arguments): Rename default_push_arguments.
8499 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8500 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8501 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8502 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8503 * config/i386/tm-symmetry.h: Update.
8504 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8505 * x86-64-tdep.c (x86_64_init_abi): Update.
8506 * v850-tdep.c (v850_gdbarch_init): Update.
8507 * sparc-tdep.c (sparc_gdbarch_init): Update.
8508 * sh-tdep.c (sh_gdbarch_init): Update.
8509 * s390-tdep.c (s390_gdbarch_init): Update.
8510 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8511 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8512 * mips-tdep.c (mips_gdbarch_init): Update.
8513 * mcore-tdep.c (mcore_gdbarch_init): Update.
8514 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8515 * ia64-tdep.c (ia64_gdbarch_init): Update.
8516 * i386-tdep.c (i386_gdbarch_init): Update.
8517 * hppa-tdep.c (hppa_gdbarch_init): Update.
8518 * h8300-tdep.c (h8300_gdbarch_init): Update.
8519 * frv-tdep.c (frv_gdbarch_init): Update.
8520 * d10v-tdep.c (d10v_gdbarch_init): Update.
8521 * cris-tdep.c (cris_gdbarch_init): Update.
8522 * avr-tdep.c (avr_gdbarch_init): Update.
8523 * arm-tdep.c (arm_gdbarch_init): Update.
8524 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8525 * alpha-tdep.c (alpha_gdbarch_init): Update.
8527 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8529 * signals/signals.c (do_target_signal_to_host): Correct realtime
8532 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8534 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8535 (struct sal_chain, map_catch_names): Remove.
8536 (catch_exception_command_1): Don't call
8537 handle_gnu_4_16_catch_command.
8539 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8541 From Mark Dettinger <dettinge@de.ibm.com>:
8542 * dwarf2cfi.c (read_2u): Increment pointer by two.
8544 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8546 * signals/signals.c: Fix typos in last change.
8548 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8550 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8551 not already defined. Use __SIGRTMIN if available.
8552 (target_signal_from_host): Remove SIGRTMIN block.
8553 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8554 the signal is within the realtime range.
8556 2003-03-25 Adam Fedor <fedor@gnu.org>
8558 * Makefile.in (infrun.o): Add $(language_h)
8559 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8560 for language specific trampolines.
8561 * language.h (struct language_defn): Add skip_trampoline.
8562 (skip_language_trampoline): Declare.
8563 * language.c (unk_lang_trampoline, skip_language_trampoline):
8565 (unknown_language_defn, auto_language_defn, local_language_defn):
8566 Add ukn_lang_trampoline.
8567 * ada-lang.c (ada_language_defn): Add NULL for language
8568 specific skip_trampoline.
8569 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8570 scm-lang.c: Likewise.
8571 * objc-lang.c (objc_skip_trampoline): New function.
8572 (objc_language_defn): Add objc_skip_trampoline.
8574 2003-03-25 Andrew Cagney <cagney@redhat.com>
8576 * frame.c (get_prev_frame): Delay validating a frame's ID -
8577 non-NULL, didn't go backwards - until an attempt to unwind it to
8580 2003-03-25 Andrew Cagney <cagney@redhat.com>
8582 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8583 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8584 * gdbarch.h, gdbarch.c: Re-generate.
8585 * config/sparc/tm-sparc.h
8586 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8587 * sparc-tdep.c (sparc_gdbarch_init): Set
8588 deprecated_extra_stack_alignment_needed.
8589 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8590 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8591 extra_stack_alignment_needed.
8592 * v850-tdep.c (v850_gdbarch_init): Ditto.
8593 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8594 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8595 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8596 * cris-tdep.c (cris_gdbarch_init): Ditto.
8597 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8598 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8600 2003-03-25 Andrew Cagney <cagney@redhat.com>
8602 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8603 STORE_STRUCT_RETURN.
8604 * gdbarch.h, gdbarch.c: Regenerate.
8605 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8606 (d10v_push_arguments): Set the struct return register.
8607 (d10v_gdbarch_init): Update.
8608 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8609 * x86-64-tdep.c (x86_64_init_abi): Update.
8610 * vax-tdep.c (vax_gdbarch_init): Update.
8611 * v850-tdep.c (v850_gdbarch_init): Update.
8612 * sparc-tdep.c (sparc_gdbarch_init): Update.
8613 * sh-tdep.c (sh_gdbarch_init): Update.
8614 * s390-tdep.c (s390_gdbarch_init): Update.
8615 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8616 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8617 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8618 * mips-tdep.c (mips_gdbarch_init): Update.
8619 * mcore-tdep.c (mcore_gdbarch_init): Update.
8620 * m68k-tdep.c (m68k_gdbarch_init): Update.
8621 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8622 * ia64-tdep.c (ia64_gdbarch_init): Update.
8623 * i386-tdep.c (i386_gdbarch_init): Update.
8624 * hppa-tdep.c (hppa_gdbarch_init): Update.
8625 * h8300-tdep.c (h8300_gdbarch_init): Update.
8626 * frv-tdep.c (frv_gdbarch_init): Update.
8627 * cris-tdep.c (cris_gdbarch_init): Update.
8628 * avr-tdep.c (avr_gdbarch_init): Update.
8629 * arm-tdep.c (arm_gdbarch_init): Update.
8630 * alpha-tdep.c (alpha_gdbarch_init): Update.
8632 2003-03-25 Andrew Cagney <cagney@redhat.com>
8634 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8635 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8636 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8637 * gdbarch.h, gdbarch.c: Regenerate.
8638 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8639 call_dummy_stack_adjust_p.
8640 * vax-tdep.c (vax_gdbarch_init): Ditto.
8641 * v850-tdep.c (v850_gdbarch_init): Ditto.
8642 * sh-tdep.c (sh_gdbarch_init): Ditto.
8643 * s390-tdep.c (s390_gdbarch_init): Ditto.
8644 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8645 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8646 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8647 * mips-tdep.c (mips_gdbarch_init): Ditto.
8648 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8649 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8650 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8651 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8652 * i386-tdep.c (i386_gdbarch_init): Ditto.
8653 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8654 * frv-tdep.c (frv_gdbarch_init): Ditto.
8655 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8656 * cris-tdep.c (cris_gdbarch_init): Ditto.
8657 * avr-tdep.c (avr_gdbarch_init): Ditto.
8658 * arm-tdep.c (arm_gdbarch_init): Ditto.
8659 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8660 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8661 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8662 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8663 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8664 call_dummy_stack_adjust_p.
8665 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8666 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8667 * sparc-tdep.c (sparc32_push_arguments): Update.
8668 * valops.c (hand_function_call): Update.
8670 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8672 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8673 set_gdbarch_char_signed.
8675 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8678 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8680 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8682 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8683 (_initialize_arm_tdep): Don't set tm_print_insn.
8685 2003-03-24 Adam Fedor <fedor@gnu.org>
8687 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8688 * objc-lang.h: Add multiple inclusion protection.
8689 (start_msglist, add_msglist, end_msglist): Additional declarations.
8691 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8693 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8694 value was renamed to ARM_FLOAT_SOFT_FPA.
8696 2003-03-23 Andrew Cagney <cagney@redhat.com>
8698 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8699 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8700 * gdbarch.h, gdbarch.c: Regenerate.
8701 * valops.c (hand_function_call): Update.
8702 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8703 * frame.c (legacy_saved_regs_this_id): Update.
8704 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8705 * dummy-frame.h: Update.
8706 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8707 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8708 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8709 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8710 * config/m68k/tm-sun3.h: Update.
8711 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8712 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8713 * x86-64-tdep.c (x86_64_init_abi): Update.
8714 * vax-tdep.c (vax_gdbarch_init): Update.
8715 * v850-tdep.c (v850_gdbarch_init): Update.
8716 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8717 * sh-tdep.c (sh_gdbarch_init): Update.
8718 * s390-tdep.c (s390_gdbarch_init): Update.
8719 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8720 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8721 (frame_get_saved_regs): Update.
8722 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8723 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8724 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8725 * mips-tdep.c (mips_gdbarch_init): Update.
8726 * mcore-tdep.c (mcore_gdbarch_init): Update.
8727 * m68k-tdep.c (m68k_gdbarch_init): Update.
8728 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8729 * ia64-tdep.c (ia64_gdbarch_init): Update.
8730 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8731 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8732 (i386_interix_back_one_frame): Update.
8733 * hppa-tdep.c (hppa_gdbarch_init): Update.
8734 (hppa_init_extra_frame_info): Update.
8735 * h8300-tdep.c (h8300_gdbarch_init): Update.
8736 * frv-tdep.c (frv_gdbarch_init): Update.
8737 * cris-tdep.c (cris_gdbarch_init): Update.
8738 * avr-tdep.c (avr_gdbarch_init): Update.
8739 * arm-tdep.c (arm_gdbarch_init): Update.
8740 * alpha-tdep.c (alpha_gdbarch_init): Update.
8742 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8744 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8745 (arm_get_fp_model): Declare.
8746 * arm-tdep.c (fp_model_strings): New string array.
8747 (arm_fp_model, current_fp_model): New variables.
8748 (arm_get_fp_model): New function.
8749 (arm_set_fp): New function.
8750 (set_fp_model_sfunc): New function.
8751 (show_fp_model): New function.
8752 (_initialize_arm_tdep): Add new command to set/show the FPU.
8753 (arm_extract_return_value): Use arm_get_fp_model.
8754 (arm_store_return_value): Likewise.
8755 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8756 to initialize the floating-point data types.
8757 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8760 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8762 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8763 the current setting of each value.
8764 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8765 new_set and new_show. Use add_setshow_cmd_full and
8766 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8767 commands and add new version as subcommands of "set/show arm".
8769 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8771 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8772 (set_arm_command, show_arm_command): New functions.
8773 (_initialize_arm_tdep): Add them.
8774 (num_disassembly_options): Renamed from num_flavor_options.
8775 (valid_disassembly_styles): Renamed from valid_flavors.
8776 (disassembly_style): Renamed from disassembly_flavor.
8777 (set_disassembly_style_sfunc): Renamed from
8778 set_disassembly_flavor_sfunc.
8779 (set_disassembly_style): Renamed from set_disassembly_flavor.
8780 (arm_othernames): Updated.
8781 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8782 command. Add "set/show arm disassembly" commands. Deprecate
8783 "othernames" command.
8785 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8787 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8788 (arm-tdep.o): Depend on elf_arm_h.
8790 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8792 * Makefile.in (coff_internal_h): Define.
8793 (arm-tdep.o): Update dependencies.
8795 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8797 * arm-tdep.c (prologue_cache): Delete.
8798 (check_prologue_cache, save_prologue_cache): Delete.
8799 (arm_scan_prologue): Don't check or update the prologue_cache.
8800 (arm_gdb_arch_init): Don't initialize it.
8801 (_initialize_arm_tdep): Likewise.
8803 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8805 * MAINTAINERS (tui): Maintainer of tui code.
8807 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8809 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8810 (i386-cygwin-tdep.o): Add dependencies.
8811 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8812 * i386-cygwin-tdep.c: New file.
8813 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8814 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8816 2003-03-20 Andrew Cagney <cagney@redhat.com>
8818 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8819 (handle_inferior_event): Remove code calling
8820 DYNAMIC_TRAMPOLINE_NEXTPC.
8822 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8823 already has a full path.
8825 * main.c (gdb_main): Return 1.
8826 (captured_main): Call error to report an invalid interpreter.
8828 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8829 * alpha-osf1-tdep.c: Include "gdb_string.h".
8831 2003-03-19 J. Brobecker <brobecker@gnat.com>
8833 Continuing work to convert the hppa targets to multiarch partial.
8835 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8836 method, now that hppa_push_dummy_frame has a conformant prototype.
8837 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8838 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8839 for the switch to multiarch partial.
8841 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8843 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8844 when iss is issNull.
8846 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8848 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8849 NUM_REGS bounds check.
8851 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8853 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8854 * mips-tdep.c (gdb_assert.h): Include.
8855 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8856 (mips_register_name): Handle integer registers explicitly. Add
8858 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8859 (mips_lsi33k_reg_names): Don't list integer registers; they're
8860 handled by mips_register_name() now.
8861 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8862 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8863 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8864 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8865 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8867 2003-03-18 Andrew Cagney <cagney@redhat.com>
8869 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8871 * gdbtypes.h (print_scalar_formatted): Update declaration.
8872 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8874 2003-03-18 J. Brobecker <brobecker@gnat.com>
8876 * infrun.c (observer.h): Add #include.
8877 (normal_stop): Add call to observer_notify_normal_stop.
8878 * Makefile.in (infrun.o): Add dependency on observer.h.
8880 2003-03-18 J. Brobecker <brobecker@gnat.com>
8882 Continuing work to convert the hppa targets to multiarch partial.
8883 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8884 parameter. Reformat comment.
8885 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8886 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8887 to match new profile.
8889 2003-03-18 J. Brobecker <brobecker@gnat.com>
8891 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8892 appear to be working in any case.
8894 2003-03-18 J. Brobecker <brobecker@gnat.com>
8896 * observer.c (observer_test_first_observer): New static variable.
8897 (observer_test_second_observer): Likewise.
8898 (observer_test_third_observer): Likewise.
8899 (observer_test_first_notification_function): New static function.
8900 (observer_test_second_notification_function): Likewise.
8901 (observer_test_third_notification_function): Likewise.
8903 2003-03-17 J. Brobecker <brobecker@gnat.com>
8905 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8906 * somsolib.c (gdb_assert.h): Likewise.
8907 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8908 (somsolib.o): Likewise.
8910 2003-03-17 Andrew Cagney <cagney@redhat.com>
8912 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8913 BFD. Simplify setting of di.endian.
8915 2003-03-17 Andrew Cagney <cagney@redhat.com>
8917 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8918 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8920 From Elena Zannoni <ezannoni@redhat.com>
8921 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8922 vector and floating-point parameters.
8923 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8925 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8927 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8929 * MAINTAINERS: Remove my name from several maintainership roles.
8931 2003-03-17 Andrew Cagney <cagney@redhat.com>
8933 Fix frame off-by-one bug.
8934 * frame-unwind.h (frame_this_id_ftype): Replace
8935 frame_unwind_id_ftype.
8936 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8937 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8938 with "prev_register".
8939 * frame-unwind.c (frame_unwind_find_by_pc): Return
8940 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8942 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8943 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8944 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8945 (dummy_frame_unwind): Update.
8946 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8947 sentinel_frame_register_unwind.
8948 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8949 (sentinel_frame_unwinder): Update.
8950 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8951 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8952 * frame.c (create_sentinel_frame): Update. Initialize
8953 "prologue_cache" instead of "unwind_cache".
8954 (frame_register_unwind): Call this frame's prev_register with the
8955 next frame and this frame's prologue cache.
8956 (get_prev_frame): Simplify. Always call prev frame's this_id with
8957 this frame and prev frame's prologue cache. Document that this
8958 call is shifted one to the left when compared to the
8959 frame_register_unwind call.
8960 (legacy_saved_regs_prev_register): Replace
8961 frame_saved_regs_register_unwind.
8962 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8963 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8964 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8965 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8966 (d10v_frame_unwind): Update.
8967 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8968 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8969 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8970 "saved_regs" with "this_saved_regs".
8972 2003-03-16 Andrew Cagney <cagney@redhat.com>
8974 * frame.c (frame_pop): Don't call target_store_registers. Fix
8975 problem reported by Mark Kettenis.
8977 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8979 * i386-tdep.c (i386_register_type): Renamed from
8980 i386_register_virtual_type. Adjust function signature.
8981 (i386_gdbarch_init): Set register_type instead of
8982 deprecated_max_register_raw_size,
8983 deprecated_max_register_virtual_size and register_virtual_type.
8985 2003-03-14 Andrew Cagney <cagney@redhat.com>
8987 * frame.c (get_prev_frame): When a legacy frame, always call
8988 legacy_get_prev_frame. Simplify unwind code using assumption that
8989 the unwinder is new.
8990 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8991 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8992 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8994 2003-03-14 Andrew Cagney <cagney@redhat.com>
8996 * frame.c (get_saved_register): Delete function.
8997 * frame.h (get_saved_register): Delete declaration.
8998 * xstormy16-tdep.c: Update comment.
8999 * regcache.h: Update comments.
9000 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9001 get_saved_register and extract_address, use
9002 frame_read_unsigned_register.
9003 (sparc_frame_saved_pc): Ditto.
9004 (sparc_get_saved_register): Instead of get_saved_register, use
9006 (sparc_pop_frame): Ditto.
9007 * findvar.c: Update comments.
9008 (value_of_register): Call frame_register instead of
9010 (value_from_register): Ditto.
9011 * config/sparc/tm-sparc.h: Update comment.
9012 * breakpoint.c: Update comment.
9014 2003-03-14 Andrew Cagney <cagney@redhat.com>
9016 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9018 * gdbarch.h, gdbarch.c: Re-generate.
9019 * frame.h: Update comments.
9020 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9021 * x86-64-tdep.c (x86_64_init_abi): Update.
9022 * sparc-tdep.c (sparc_gdbarch_init): Update.
9023 * sh-tdep.c (sh_gdbarch_init): Update.
9024 * mips-tdep.c (mips_gdbarch_init): Update.
9025 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9026 * cris-tdep.c (cris_gdbarch_init): Update.
9027 * ia64-tdep.c (ia64_gdbarch_init): Update.
9028 * frame.c (frame_register): Update.
9029 (get_saved_register): Update.
9030 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9032 2003-03-13 Andrew Cagney <cagney@redhat.com>
9034 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9035 * gdbarch.h, gdbarch.c: Regenerate.
9036 * valops.c (hand_function_call): Update comment.
9037 * stack.c (return_command): Update comment.
9038 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9039 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9040 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9041 * x86-64-tdep.c (x86_64_init_abi): Update.
9042 * vax-tdep.c (vax_gdbarch_init): Update.
9043 * v850-tdep.c (v850_gdbarch_init): Update.
9044 * sparc-tdep.c (sparc_gdbarch_init): Update.
9045 * sh-tdep.c (sh_gdbarch_init): Update.
9046 * s390-tdep.c (s390_gdbarch_init): Update.
9047 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9048 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9049 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9050 * mips-tdep.c (mips_gdbarch_init): Update.
9051 * mcore-tdep.c (mcore_gdbarch_init): Update.
9052 * m68k-tdep.c (m68k_gdbarch_init): Update.
9053 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9054 * ia64-tdep.c (ia64_gdbarch_init): Update.
9055 * i386-tdep.c (i386_gdbarch_init): Update.
9056 * hppa-tdep.c (hppa_gdbarch_init): Update.
9057 * h8300-tdep.c (h8300_gdbarch_init): Update.
9058 * frv-tdep.c (frv_gdbarch_init): Update.
9059 * cris-tdep.c (cris_gdbarch_init): Update.
9060 * avr-tdep.c (avr_gdbarch_init): Update.
9061 * arm-tdep.c (arm_gdbarch_init): Update.
9062 * alpha-tdep.c (alpha_gdbarch_init): Update.
9064 2003-03-13 Andrew Cagney <cagney@redhat.com>
9066 * frame.c (legacy_frame_p): New function.
9067 (get_prev_frame): Use legacy_frame_p.
9068 * frame.h (legacy_frame_p): Declare.
9070 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9072 * MAINTAINERS (write after approval): Alphabetically
9075 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9077 * MAINTAINERS (write after approval): Add myself.
9079 2003-03-12 Andrew Cagney <cagney@redhat.com>
9081 * frame.c (get_prev_frame): Rename the frame parameter to
9083 (get_next_frame, legacy_get_prev_frame): Ditto.
9085 2003-03-12 Andrew Cagney <cagney@redhat.com>
9087 * frame.c (get_current_frame): Check target_has_registers before
9088 checking target_has_stack.
9089 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9090 instead of deprecated_selected_frame.
9091 * findvar.c (value_of_register): Pass "frame", not
9092 deprecated_selected_frame, to value_of_builtin_reg.
9094 2003-03-12 Andrew Cagney <cagney@redhat.com>
9096 * regcache.c (regcache_cooked_write_signed): New function.
9097 (regcache_cooked_write_unsigned): New function.
9098 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9099 (regcache_cooked_read_signed): Fix regnum in range assertion.
9100 * regcache.h (regcache_cooked_write_signed): Declare.
9101 (regcache_cooked_write_unsigned): Declare.
9103 2003-03-12 Andrew Cagney <cagney@redhat.com>
9105 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9106 * gdbarch.h, gdbarch.c: Re-generate.
9107 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9108 * x86-64-tdep.h: Update.
9109 * x86-64-tdep.c (x86_64_init_abi): Update.
9110 * v850-tdep.c (v850_gdbarch_init): Update.
9111 * sparc-tdep.c (sparc_gdbarch_init): Update.
9112 * sh-tdep.c (sh_gdbarch_init): Update.
9113 * s390-tdep.c (s390_gdbarch_init): Update.
9114 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9115 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9116 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9117 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9118 * mips-tdep.c (mips_gdbarch_init): Update.
9119 * mcore-tdep.c (mcore_gdbarch_init): Update.
9120 * m68k-tdep.c (m68k_gdbarch_init): Update.
9121 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9122 * ia64-tdep.c (ia64_gdbarch_init): Update.
9123 * i386-tdep.c (i386_gdbarch_init): Update.
9124 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9125 * hppa-tdep.c (hppa_gdbarch_init): Update.
9126 * h8300-tdep.c (h8300_gdbarch_init): Update.
9127 * frv-tdep.c (frv_gdbarch_init): Update.
9128 * cris-tdep.c (cris_gdbarch_init): Update.
9129 * avr-tdep.c (avr_gdbarch_init): Update.
9130 * arm-tdep.c (arm_gdbarch_init): Update.
9131 * alpha-tdep.c (alpha_gdbarch_init): Update.
9132 * sh-tdep.c (sh_init_extra_frame_info): Update.
9133 (sh64_init_extra_frame_info): Update.
9134 * ns32knbsd-nat.c (frame_num_args): Update.
9135 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9136 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9137 (xstormy16_frame_chain_valid): Update.
9138 * vax-tdep.c (vax_saved_pc_after_call): Update.
9139 * v850-tdep.c (v850_frame_chain): Update.
9140 (v850_pop_frame): Update.
9141 (v850_init_extra_frame_info): Update.
9142 * sparc-tdep.c (setup_arbitrary_frame): Update.
9143 * ns32k-tdep.c (umax_frame_num_args): Update.
9144 * s390-tdep.c (s390_pop_frame_regular): Update.
9145 * mn10300-tdep.c (mn10300_frame_chain): Update.
9146 (mn10300_pop_frame_regular): Update.
9147 (mn10300_init_extra_frame_info): Update.
9148 * mips-tdep.c (mips_init_frame_pc_first): Update.
9149 (mips_frame_chain): Update.
9150 (mips_pop_frame): Update.
9151 * mcore-tdep.c (mcore_frame_chain): Update.
9152 (mcore_pop_frame): Update.
9153 (mcore_init_extra_frame_info): Update.
9154 * arch-utils.c (init_frame_pc_default): Update.
9155 * m68k-tdep.c (isi_frame_num_args): Update.
9156 (delta68_frame_num_args): Update.
9157 (news_frame_num_args): Update.
9158 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9159 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9160 (alpha_frame_chain): Update.
9161 (alpha_pop_frame): Update.
9162 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9163 (hppa_init_extra_frame_info): Update.
9164 (hppa_frame_chain): Update.
9165 (hppa_frame_chain_valid): Update.
9166 * cris-tdep.c (cris_init_extra_frame_info): Update.
9167 * avr-tdep.c (avr_init_extra_frame_info): Update.
9168 * arm-tdep.c (arm_frame_chain_valid): Update.
9169 (arm_init_extra_frame_info): Update.
9170 (arm_pop_frame): Update.
9171 * frame.c (frame_pc_unwind): Update.
9172 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9173 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9174 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9175 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9176 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9177 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9179 2003-03-12 Andrew Cagney <cagney@redhat.com>
9181 Eliminate the need for POP_FRAME.
9182 * frame.c (do_frame_unwind_register): New function.
9183 (frame_pop): When no POP_FRAME, pop the frame using register
9184 unwind and a scratch regcache.
9185 (frame_saved_regs_pop): Delete function.
9186 (trad_frame_unwinder): Update.
9187 * d10v-tdep.c (d10v_frame_pop): Delete function.
9188 (d10v_frame_unwind): Update.
9189 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9190 (sentinel_frame_unwinder): Update.
9191 * dummy-frame.c (dummy_frame_pop): Delete function.
9192 (dummy_frame_unwind): Update.
9193 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9194 (struct frame_unwind): Update.
9196 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9198 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9199 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9200 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9201 Do range checks on register number obtained from debugging info.
9202 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9203 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9204 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9206 (do_fp_register_row): Fix typo which caused double type to be
9207 used when attempting to unpack a float.
9209 2003-03-11 J. Brobecker <brobecker@gnat.com>
9211 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9213 2003-03-11 Andrew Cagney <cagney@redhat.com>
9215 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9216 frame. Problem found by Corinna Vinschen.
9218 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9220 * doublest.c (floatformat_from_length): Accept also
9221 the real size of 'long double' type.
9223 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9225 From Klee Dienes <kdienes@apple.com>:
9226 * breakpoint.c (bpstat_copy): Copy the command lines as well
9227 as the old value, to match what is freed in bpstat_clear.
9229 2003-03-10 David Carlton <carlton@math.stanford.edu>
9231 * minsyms.c (add_minsym_to_hash_table): Replace
9232 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9233 (compare_minimal_symbols, compact_minimal_symbols)
9234 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9235 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9236 of DEPRECATED_SYMBOL_MATCHES_NAME.
9237 (lookup_minimal_symbol_solib_trampoline): Ditto.
9239 2003-03-10 Andrew Cagney <cagney@redhat.com>
9241 * regcache.h (regcache_cooked_read_ftype): Define.
9242 (regcache_save, regcache_restore): Add a cooked_read parameter.
9243 * regcache.c (regcache_save, regcache_restore): Update.
9244 (do_cooked_read): New function.
9245 (regcache_cpy): Pass do_cooked_read to regcache_save and
9248 2003-03-10 Andrew Cagney <cagney@redhat.com>
9250 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9251 * gdbarch.h, gdbarch.c: Re-generate.
9252 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9253 * x86-64-tdep.h: Update.
9254 * x86-64-tdep.c (x86_64_init_abi): Update.
9255 * v850-tdep.c (v850_gdbarch_init): Update.
9256 * sparc-tdep.c (sparc_gdbarch_init): Update.
9257 * sh-tdep.c (sh_gdbarch_init): Update.
9258 * s390-tdep.c (s390_gdbarch_init): Update.
9259 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9260 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9261 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9262 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9263 * mips-tdep.c (mips_gdbarch_init): Update.
9264 * mcore-tdep.c (mcore_gdbarch_init): Update.
9265 * m68k-tdep.c (m68k_gdbarch_init): Update.
9266 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9267 * ia64-tdep.c (ia64_gdbarch_init): Update.
9268 * i386-tdep.c (i386_gdbarch_init): Update.
9269 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9270 * hppa-tdep.c (hppa_gdbarch_init): Update.
9271 * h8300-tdep.c (h8300_gdbarch_init): Update.
9272 * frv-tdep.c (frv_gdbarch_init): Update.
9273 * cris-tdep.c (cris_gdbarch_init): Update.
9274 * avr-tdep.c (avr_gdbarch_init): Update.
9275 * arm-tdep.c (arm_gdbarch_init): Update.
9276 * alpha-tdep.c (alpha_gdbarch_init): Update.
9277 * sh-tdep.c (sh_init_extra_frame_info): Update.
9278 (sh64_init_extra_frame_info): Update.
9279 * ns32knbsd-nat.c (frame_num_args): Update.
9280 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9281 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9282 (xstormy16_frame_chain_valid): Update.
9283 * vax-tdep.c (vax_saved_pc_after_call): Update.
9284 * v850-tdep.c (v850_frame_chain): Update.
9285 (v850_pop_frame): Update.
9286 (v850_init_extra_frame_info): Update.
9287 * sparc-tdep.c (setup_arbitrary_frame): Update.
9288 * ns32k-tdep.c (umax_frame_num_args): Update.
9289 * s390-tdep.c (s390_pop_frame_regular): Update.
9290 * mn10300-tdep.c (mn10300_frame_chain): Update.
9291 (mn10300_pop_frame_regular): Update.
9292 (mn10300_init_extra_frame_info): Update.
9293 * mips-tdep.c (mips_init_frame_pc_first): Update.
9294 (mips_frame_chain): Update.
9295 (mips_pop_frame): Update.
9296 * mcore-tdep.c (mcore_frame_chain): Update.
9297 (mcore_pop_frame): Update.
9298 (mcore_init_extra_frame_info): Update.
9299 * arch-utils.c (init_frame_pc_default): Update.
9300 * m68k-tdep.c (isi_frame_num_args): Update.
9301 (delta68_frame_num_args): Update.
9302 (news_frame_num_args): Update.
9303 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9304 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9305 (alpha_frame_chain): Update.
9306 (alpha_pop_frame): Update.
9307 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9308 (hppa_init_extra_frame_info): Update.
9309 (hppa_frame_chain): Update.
9310 (hppa_frame_chain_valid): Update.
9311 * cris-tdep.c (cris_init_extra_frame_info): Update.
9312 * avr-tdep.c (avr_init_extra_frame_info): Update.
9313 * arm-tdep.c (arm_frame_chain_valid): Update.
9314 (arm_init_extra_frame_info): Update.
9315 (arm_pop_frame): Update.
9316 * frame.c (frame_pc_unwind): Update.
9317 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9318 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9319 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9320 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9321 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9322 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9324 2003-03-10 Andrew Cagney <cagney@redhat.com>
9326 * gdbarch.sh (gdbarch_unwind_pc): New method.
9327 * gdbarch.h, gdbarch.c: Regenerate.
9328 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9329 but use read_pc and FRAME_SAVED_PC as fall backs.
9330 (frame_saved_regs_pc_unwind): Delete function.
9331 (trad_frame_unwinder): Update.
9332 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9333 (struct frame_unwind): Update.
9334 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9335 (dummy_frame_unwind): Update.
9336 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9337 (sentinel_frame_unwinder): Update.
9338 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9339 (d10v_frame_unwind): Update.
9340 (d10v_unwind_pc): New function.
9341 (d10v_gdbarch_init): Set unwind_pc.
9343 2003-03-10 Andrew Cagney <cagney@redhat.com>
9345 * gdbarch.h: Re-generate.
9347 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9349 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9352 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9354 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9356 2003-03-08 Andrew Cagney <cagney@redhat.com>
9358 * cli-out.c: Update copyright.
9359 (cli_out_data): Define typedef. Use instead of ui_out_data.
9361 2003-03-08 Andrew Cagney <cagney@redhat.com>
9363 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9366 2003-03-07 Andrew Cagney <cagney@redhat.com>
9368 * gdbarch.sh: Don't generate two macro definitions when an
9369 undefined macro taking no arguments.
9370 * gdbarch.h: Regenerate.
9372 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9374 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9375 (x86_64_unwind_dummy_id): New functions.
9376 (x86_64_init_abi): Register these two new functions.
9378 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9380 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9381 (x86_64_skip_prologue): Move prologue detection to
9383 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9385 2003-03-05 Andrew Cagney <cagney@redhat.com>
9387 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9388 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9389 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9390 to use unwind_dummy_id when a dummy frame.
9391 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9393 * gdbarch.h, gdbarch.c: Regneerate.
9395 2003-03-05 Andrew Cagney <cagney@redhat.com>
9397 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9398 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9399 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9402 2003-03-05 Andrew Cagney <cagney@redhat.com>
9404 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9405 (struct d10v_unwind_cache): Delete field "frameless". Replace
9406 "next_addr" with "sp_offset". Add "r11_offset".
9407 (d10v_frame_unwind_cache): Update.
9408 (prologue_find_regs): Update. When "mv r11, sp", save the
9409 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9410 RN was saved in r11_offset.
9412 2003-03-05 Andrew Cagney <cagney@redhat.com>
9414 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9415 cached PC value in the next frame.
9417 2003-03-05 Andrew Cagney <cagney@redhat.com>
9419 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9420 "id_unwind_cache" with "id".
9421 (frame_id_unwind): Delete declaration.
9422 * frame.c (frame_id_unwind): Delete function.
9423 (get_prev_frame): Call the frame id unwind method directly. Store
9424 the returned next frame's ID value in NEXT_FRAME. Note that there
9425 is a problem with the wrong unwind ID being called with the wrong
9428 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9430 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9432 2003-03-05 James Ingham <jingham@apple.com>
9433 Daniel Jacobowitz <drow@mvista.com>
9435 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9436 (auto_cp_abi): New variable.
9437 (current_cp_abi, num_cp_abis): Make static.
9438 (CP_ABI_MAX): Define.
9439 (cp_abis): Turn into an array.
9440 (value_virtual_fn_field): Fix formatting.
9441 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9443 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9444 (list_cp_abis, _initialize_cp_abi): New functions.
9445 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9446 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9447 switch_to_cp_abi. Update prototype for register_cp_abi.
9448 * Makefile.in (cp-abi.o): Update dependencies.
9449 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9450 instead of switch_to_cp_abi.
9451 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9453 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9455 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9457 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9459 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9460 * dwarf2loc.c: Include "regcache.h".
9461 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9463 * Makefile.in (dwarf2loc.o): Update dependencies.
9465 2003-03-04 Theodore A. Roth <troth@openavr.org>
9467 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9468 number of io registers reported by remote target is not a multiple of
9471 2003-03-04 David Carlton <carlton@math.stanford.edu>
9473 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9474 (lookup_symbol_aux_psymtabs): Update call to
9475 lookup_partial_symbol.
9476 (lookup_transparent_type, find_main_psymtab)
9477 (make_symbol_overload_list): Ditto.
9479 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9481 * MAINTAINERS (Write after approval): Update my email address.
9483 2003-03-03 Andrew Cagney <cagney@redhat.com>
9485 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9486 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9487 predicate. Replace MAX_REGISTER_RAW_SIZE.
9488 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9489 MAX_REGISTER_VIRTUAL_SIZE.
9490 * regcache.c (legacy_max_register_raw_size): New function.
9491 (legacy_max_register_virtual_size): New function.
9492 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9493 (MAX_REGISTER_RAW_SIZE): Define.
9494 (legacy_max_register_raw_size): Declare.
9495 (legacy_max_register_virtual_size): Declare.
9496 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9497 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9498 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9499 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9500 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9501 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9502 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9503 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9504 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9505 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9506 * vax-tdep.c (vax_gdbarch_init): Update.
9507 * v850-tdep.c (v850_gdbarch_init): Update.
9508 * sparc-tdep.c (sparc_gdbarch_init): Update.
9509 * sh-tdep.c (sh_gdbarch_init): Update.
9510 * s390-tdep.c (s390_gdbarch_init): Update.
9511 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9512 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9513 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9514 * mips-tdep.c (mips_gdbarch_init): Update.
9515 * mcore-tdep.c (mcore_gdbarch_init): Update.
9516 * m68k-tdep.c (m68k_gdbarch_init): Update.
9517 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9518 * ia64-tdep.c (ia64_gdbarch_init): Update.
9519 * i386-tdep.c (i386_gdbarch_init): Update.
9520 * hppa-tdep.c (hppa_gdbarch_init): Update.
9521 * h8300-tdep.c (h8300_gdbarch_init): Update.
9522 * frv-tdep.c (frv_gdbarch_init): Update.
9523 * cris-tdep.c (cris_gdbarch_init): Update.
9524 * avr-tdep.c (avr_gdbarch_init): Update.
9525 * arm-tdep.c (arm_gdbarch_init): Update.
9526 * alpha-tdep.c (alpha_gdbarch_init): Update.
9527 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9528 max_register_raw_size or max_register_virtual_size.
9530 2003-03-03 David Carlton <carlton@math.stanford.edu>
9532 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9533 SYMBOL_MATCHES_NAME, add comment.
9534 (SYMBOL_MATCHES_NATURAL_NAME): New.
9535 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9536 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9537 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9538 * symtab.c (lookup_partial_symbol): Use
9539 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9541 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9542 SYMBOL_MATCHES_NAME.
9545 2003-03-03 David Carlton <carlton@math.stanford.edu>
9547 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9548 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9549 by regexp matching against SYMBOL_NATURAL_NAME.
9551 2003-03-03 David Carlton <carlton@math.stanford.edu>
9553 * linespec.c (find_method): Extract code into collect_methods.
9554 (collect_methods): New.
9556 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9558 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9561 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9562 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9564 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9566 * arch-utils.c (generic_register_byte): Fix to use the loop index
9567 and not regnum when summing the size of all registers up to regnum.
9569 2003-03-01 Andrew Cagney <cagney@redhat.com>
9571 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9572 FRAME_INIT_SAVED_REGS.
9573 * gdbarch.h, gdbarch.c: Regenerate.
9574 * stack.c (frame_info): Update.
9575 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9576 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9577 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9578 * ns32k-tdep.c (ns32k_pop_frame): Update.
9579 * mips-tdep.c (mips_pop_frame): Update.
9580 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9581 * ia64-tdep.c (ia64_frame_chain): Update.
9582 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9583 (ia64_frameless_function_invocation): Update.
9584 (ia64_init_extra_frame_info): Update.
9585 (ia64_pop_frame_regular): Update.
9586 * frame.h (struct frame_info): Update comment.
9587 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9588 * frame.c (frame_saved_regs_register_unwind): Update.
9589 (frame_saved_regs_register_unwind): Update.
9590 (deprecated_generic_get_saved_register): Update.
9591 * cris-tdep.c: Update comment.
9592 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9594 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9595 * x86-64-tdep.c (x86_64_init_abi): Update.
9596 * vax-tdep.c (vax_gdbarch_init): Update.
9597 * v850-tdep.c (v850_gdbarch_init): Update.
9598 * sparc-tdep.c (sparc_gdbarch_init): Update.
9599 * sh-tdep.c (sh_gdbarch_init): Update.
9600 * s390-tdep.c (s390_gdbarch_init): Update.
9601 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9602 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9603 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9604 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9605 * mips-tdep.c (mips_gdbarch_init): Update.
9606 * mcore-tdep.c (mcore_gdbarch_init): Update.
9607 * m68k-tdep.c (m68k_gdbarch_init): Update.
9608 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9609 * ia64-tdep.c (ia64_gdbarch_init): Update.
9610 * i386-tdep.c (i386_gdbarch_init): Update.
9611 * frv-tdep.c (frv_gdbarch_init): Update.
9612 * avr-tdep.c (avr_gdbarch_init): Update.
9613 * arm-tdep.c (arm_gdbarch_init): Update.
9614 * alpha-tdep.c (alpha_gdbarch_init): Update.
9616 2003-03-01 Andrew Cagney <cagney@redhat.com>
9618 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9619 option enum and switch. When no windows, set the interpreter to
9622 2003-03-01 Andrew Cagney <cagney@redhat.com>
9624 * main.c (captured_main): Replace magic option characters with an
9627 2003-03-01 Andrew Cagney <cagney@redhat.com>
9629 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9630 INIT_EXTRA_FRAME_INFO.
9631 * gdbarch.h, gdbarch.c: Regenerate.
9632 * arm-tdep.c: Update comments.
9633 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9634 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9635 * frame.h, avr-tdep.c: Ditto.
9636 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9637 (create_new_frame, legacy_get_prev_frame): Ditto.
9638 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9639 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9640 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9641 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9642 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9643 * v850-tdep.c (v850_gdbarch_init): Ditto.
9644 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9645 * sh-tdep.c (sh_gdbarch_init): Ditto.
9646 * s390-tdep.c (s390_gdbarch_init): Ditto.
9647 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9648 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9649 * mips-tdep.c (mips_gdbarch_init): Ditto.
9650 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9651 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9652 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9653 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9654 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9655 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9656 * frv-tdep.c (frv_gdbarch_init): Ditto.
9657 * cris-tdep.c (cris_gdbarch_init): Ditto.
9658 * avr-tdep.c (avr_gdbarch_init): Ditto.
9659 * arm-tdep.c (arm_gdbarch_init): Ditto.
9660 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9661 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9663 2003-03-01 Andrew Cagney <cagney@redhat.com>
9665 * gdbarch.sh (register_type): New function with predicate.
9666 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9667 * gdbarch.h, gdbarch.c: Re-generate.
9668 * arch-utils.c (generic_register_byte): Use generic_register_size.
9669 (generic_register_size): When available, use
9670 gdbarch_register_type.
9671 * regcache.c (init_regcache_descr): When available, initialize the
9672 register type array using gdbarch_register_type. If the
9673 architecture supplies gdbarch_register_type, do not use the legacy
9675 * d10v-tdep.c (d10v_register_type): Replace
9676 d10v_register_virtual_type.
9677 (d10v_gdbarch_init): Set register_type instead of
9678 register_virtual_type.
9680 2003-03-01 Andrew Cagney <cagney@redhat.com>
9682 * Makefile.in (ax-gdb.o): Update dependencies.
9683 * ax-gdb.c: Include "regcache.h".
9684 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9685 * findvar.c (value_of_register): Ditto.
9686 * infcmd.c (default_print_registers_info): Ditto.
9688 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9690 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9691 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9693 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9695 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9698 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9700 * Makefile.in (dwarf2loc.o): Update dependencies.
9701 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9702 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9703 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9704 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9705 (locexpr_tracepoint_var_ref): New function.
9706 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9708 2003-02-28 Andrew Cagney <cagney@redhat.com>
9710 * regcache.c (register_size): New function.
9711 * regcache.h (register_size): Declare
9712 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9713 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9715 2003-02-28 David Carlton <carlton@math.stanford.edu>
9717 * linespec.c (decode_compound): Extract code into find_method.
9720 2003-02-28 J. Brobecker <brobecker@gnat.com>
9722 * Makefile.in: Add rules to build and link in observer.o.
9724 2003-02-27 J. Brobecker <brobecker@gnat.com>
9726 * observer.c: Minor comments edits.
9728 2003-02-27 J. Brobecker <brobecker@gnat.com>
9730 * observer.h, observer.c: New file.
9732 2003-02-27 Andrew Cagney <cagney@redhat.com>
9734 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9736 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9738 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9739 (M6812_OP_STS_EXT): Likewise.
9740 (m6811_prologue): Use the above to recognize prologue.
9741 (m6812_prologue): Likewise.
9743 2003-02-27 David Carlton <carlton@math.stanford.edu>
9745 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9747 (compare_psymbols): Ditto.
9748 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9750 2003-02-27 Michael Snyder <msnyder@redhat.com>
9752 * f-lang.c (build_fortran_types): New function.
9753 (_initialize_f_language): Gdbarch-register built-in fortran types.
9754 * doublest.c (extract_floating): Fix warning text.
9756 2003-02-27 Andrew Cagney <cagney@redhat.com>
9758 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9759 predicate. Replaces PUSH_DUMMY_FRAME.
9760 * gdbarch.h, gdbarch.c: Regnerate.
9761 * valops.c (hand_function_call): Update. Call
9762 generic_push_dummy_frame directly.
9763 * vax-tdep.c (vax_gdbarch_init): Update.
9764 * sparc-tdep.c (sparc_gdbarch_init): Update.
9765 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9766 * m68k-tdep.c (m68k_gdbarch_init): Update.
9767 * hppa-tdep.c (hppa_gdbarch_init): Update.
9768 * alpha-tdep.c (alpha_gdbarch_init): Update.
9769 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9770 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9771 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9772 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9773 push_dummy_frame to generic_push_dummy_frame.
9774 * v850-tdep.c (v850_gdbarch_init): Ditto.
9775 * sh-tdep.c (sh_gdbarch_init): Ditto.
9776 * s390-tdep.c (s390_gdbarch_init): Ditto.
9777 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9778 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9779 * mips-tdep.c (mips_gdbarch_init): Ditto.
9780 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9781 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9782 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9783 * i386-tdep.c (i386_gdbarch_init): Ditto.
9784 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9785 * frv-tdep.c (frv_gdbarch_init): Ditto.
9786 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9787 * cris-tdep.c (cris_gdbarch_init): Ditto.
9788 * avr-tdep.c (avr_gdbarch_init): Ditto.
9789 * arm-tdep.c (arm_gdbarch_init): Ditto.
9791 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9793 * mips-tdep.c (show_mips_abi): New function.
9794 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9795 command ``show mips abi''.
9797 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9799 From Elena Zannoni <ezannoni@redhat.com>
9800 * dbxread.c (process_one_symbol): Only record line 0 if one or
9801 more sline entries have been seen for the function.
9803 2003-02-26 Michael Chastain <mec@shout.net>
9805 * configure: Regenerate with autoconf 000227.
9807 2003-02-26 Michael Chastain <mec@shout.net>
9810 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9811 for old libc5/glibc.
9812 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9814 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9816 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9817 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9819 2003-02-26 Michael Chastain <mec@shout.net>
9821 * configure.in: New variable HAVE_UINTPTR_T.
9822 * configure, config.in: Regenerated.
9824 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9827 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9829 2003-02-25 Andrew Cagney <cagney@redhat.com>
9831 * frame.c (get_prev_frame): Add comment on check for
9832 inside_entry_func. Only check for inside_entry_file when not a
9833 dummy and not a sentinel. Check that the new frame is not inner
9836 2003-02-25 Andrew Cagney <cagney@redhat.com>
9838 * frame.c (frame_debug): New variable.
9839 (_initialize_frame): Add "set/show debug frame" command.
9840 (get_prev_frame): When frame_debug, print reason why unwind
9843 2003-02-25 Michael Chastain <mec@shout.net>
9845 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9846 to avoid uintptr_t definition problems.
9848 2003-02-25 David Carlton <carlton@math.stanford.edu>
9850 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9851 (SYMBOL_LINKAGE_NAME): Ditto.
9852 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9853 SYMBOL_LINKAGE_NAME.
9854 (struct general_symbol_info): Expand comment.
9855 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9856 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9857 (SYMBOL_MATCHES_REGEXP): Ditto.
9858 * symtab.c (symbol_natural_name): New function.
9859 * objfiles.h: Replace all uses of SYMBOL_NAME by
9860 DEPRECATED_SYMBOL_NAME.
9861 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9862 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9863 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9864 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9865 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9866 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9867 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9868 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9869 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9870 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9872 * ada-exp.y: Update copyright.
9873 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9874 * cp-valprint.c: Ditto.
9876 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9878 * infptrace.c (detach): Do not flag error if ptrace detach fails
9879 and errno is set to ESRCH.
9881 2003-02-24 Andrew Cagney <cagney@redhat.com>
9883 * infptrace.c (udot_info): Change type of udot_off to long. Use
9884 paddr when printing udot_off's value.
9886 2003-02-24 David Carlton <carlton@math.stanford.edu>
9888 * symtab.c (make_symbol_overload_list): Only read in partial
9889 symtabs containing a matching partial symbol.
9891 2003-02-24 David Carlton <carlton@math.stanford.edu>
9893 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9894 do the comparison, not strcmp.
9895 * symfile.c (compare_psymbols): Ditto.
9896 * defs.h: Declare strcmp_iw_ordered.
9897 * utils.c (strcmp_iw_ordered): New function.
9899 2003-02-24 Jim Blandy <jimb@redhat.com>
9901 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9902 support, shared libs): Remove my name from here, to better reflect
9905 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9907 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9908 (target_ops): Add to_have_continuable_watchpoint.
9909 * target.c (update_current_target): Add INHERIT line for
9910 to_have_continuable_watchpoint.
9911 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9912 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9913 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9914 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9916 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9918 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9921 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9923 * solib.c (solib_open): Call target defined search function after
9924 failing with solib-search-path.
9925 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9926 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9928 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9930 * MAINTAINERS: Add myself to Write After section.
9932 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9934 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9936 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9938 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9939 (m68hc11_add_reggroups): New function.
9940 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9941 (m68hc11_gdbarch_init): Install the reggroups.
9942 (_initialize_m68hc11_tdep): Initialize them.
9944 2003-02-21 James E Wilson <wilson@tuliptree.org>
9946 * MAINTAINERS: Update my email address.
9948 2003-02-21 David Carlton <carlton@math.stanford.edu>
9950 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9952 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9954 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9955 * symtab.h: Add opaque declarations of struct axs_value and
9957 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9958 (struct location_funcs): New type.
9959 (struct symbol): Add "loc" to aux_value.
9960 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9961 * dwarf2read.c: Include "dwarf2expr.h".
9962 (dwarf2_symbol_mark_computed): New function.
9963 (read_func_scope): Use it.
9964 (var_decode_location): New function.
9965 (new_symbol): Use it.
9966 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9968 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9969 (dwarf2expr_h, dwarf2loc_h): New variables.
9970 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9971 (dwarf2expr.o, dwarf2loc.o): New rules.
9972 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9973 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9975 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9976 * m2-exp.y (yylex): Likewise.
9977 * printcmd.c (address_info, print_frame_args): Likewise.
9978 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9979 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9980 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9981 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9982 * symtab.c (lookup_block_symbol): Likewise.
9984 2003-02-20 Adam Fedor <fedor@gnu.org>
9986 * symtab.h: Remove objc_specific struct
9987 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9988 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9989 Have language_objc use cplus_specific struct.
9991 2003-02-20 Tom Tromey <tromey@redhat.com>
9993 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9994 TYPE_NAME, when printing a String value. PR java/1075.
9996 2003-02-20 Adam Fedor <fedor@gnu.org>
9998 * objc-lang.h (find_methods): Remove declaration.
9999 * objc-lang.c (find_methods): Make static.
10001 2003-02-20 Christopher Faylor <cgf@redhat.com>
10003 * win32-nat.c (get_image_name): Check return value from
10005 (child_xfer_memory): Ditto.
10007 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10009 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10010 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10011 '${exec_prefix}' (in addition to the expansion thereof) as
10013 * configure: Rebuilt.
10015 2003-02-20 David Carlton <carlton@math.stanford.edu>
10017 * symtab.c (search_symbols): Revert the search_symbols part of my
10018 2002-12-23 patch. Add comment.
10020 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10022 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10023 * dbxread.c (elfstab_build_psymtabs): Don't call
10024 install_minimal_symbols.
10025 (stabsect_build_psymtabs): Likewise.
10026 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10028 * somread.c (som_symfile_read): Call install_minimal_symbols
10029 and do_cleanups earlier.
10030 * nlmread.c (nlm_symfile_read): Likewise.
10031 * mdebugread.c (elfmdebug_build_psymtabs): Call
10032 install_minimal_symbols and make appropriate cleanups.
10034 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10036 * solib.c (reload_shared_libraries): New function.
10037 (_initialize_solib): Add callbacks for ``set solib-search-path''
10038 and ``set solib-absolute-prefix''.
10040 2003-02-20 David Carlton <carlton@math.stanford.edu>
10042 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10044 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10045 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10046 * ada-typeprint.c (ada_typedef_print): Ditto.
10047 * ax-gdb.c (gen_var_ref): Ditto.
10048 * breakpoint.c (print_one_breakpoint): Ditto.
10049 * buildsym.c (finish_block): Ditto.
10050 * c-valprint.c (c_val_print): Ditto.
10051 * expprint.c (print_subexp): Ditto.
10052 * findvar.c (locate_var_value): Ditto.
10053 * infcmd.c (jump_command): Ditto.
10054 * linespec.c (decode_line_2, decode_compound): Ditto.
10055 * maint.c (maintenance_translate_address): Ditto.
10056 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10057 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10059 * p-valprint.c (pascal_val_print): Ditto.
10060 * stabsread.c (define_symbol): Ditto.
10061 * stack.c (print_frame, frame_info, print_block_frame_locals)
10062 (print_frame_arg_vars, return_command): Ditto.
10063 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10064 * symmisc.c (print_symbol): Ditto.
10065 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10066 (compare_search_syms, print_symbol_info, print_msymbol_info)
10067 (rbreak_command): Ditto.
10068 * tracepoint.c (tracepoints_info): Ditto.
10069 * typeprint.c (typedef_print): Ditto.
10070 * valops.c (value_of_variable, hand_function_call): Ditto.
10071 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10072 * ada-typeprint.c: Update Copyright.
10073 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10074 * tracepoint.c, cli/cli-cmds.c: Ditto.
10076 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10078 * frame.c (generic_unwind_get_saved_register): Make non-static.
10079 * frame.h (generic_unwind_get_saved_register): Declare.
10080 * mips-tdep.c (read_next_frame_reg): Fetch register from
10081 current regcache when frame is NULL.
10082 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10084 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10085 instead of frame_register_unwind().
10087 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10089 * remote-sim.c (gdbsim_insert_breakpoint)
10090 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10093 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10095 * remote.c (_initialize_remote): Add commands "set/show remote
10096 hardware-watchpoint-limit" and "set/show remote
10097 hardware-breakpoint-limit".
10098 (remote_hw_watchpoint_limit): Initialize to -1.
10099 (remote_hw_breakpoint_limit): Ditto.
10100 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10102 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10104 * coff-pe-read.c: New file - support reading of minimal symbols from a
10105 portable executable using the export table.
10106 * coff-pe-read.h: New file.
10107 * coffread.c: Include coff-pe-read.h.
10108 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10109 debugging symbols found.
10110 * Makefile.in (SFILES): Add coff-pe-read.o.
10111 (coff_pe_read_h): Define.
10112 (COMMON_OBS): Add coff-pe-read.o.
10113 (coffread.o): Add coff_pe_read_h dependency.
10114 (coff-pe-read.o): New target.
10116 2003-02-19 David Carlton <carlton@math.stanford.edu>
10118 * Makefile.in (SFILES): Add block.c.
10120 (COMMON_OBS): Add block.o.
10122 (x86-64-tdep.o): Add $(block_h).
10123 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10124 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10125 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10126 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10127 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10128 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10129 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10130 * value.h: Add opaque declaration for struct block.
10131 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10132 * ada-lang.h: Ditto.
10133 * x86-64-tdep.c: #include "block.h"
10134 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10135 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10136 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10137 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10138 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10139 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10140 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10141 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10142 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10143 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10144 * symtab.c (block_function): Ditto.
10145 (contained_in): Ditto.
10146 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10147 block.h. Add opaque declaration for struct block.
10148 * symtab.h: Move block_function and contained_in declarations to
10149 block.h. Add opaque declarations for struct block, struct
10151 (struct block): Move to block.h.
10152 (struct blockvector): Ditto.
10153 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10154 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10155 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10156 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10157 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10159 * block.c: New file.
10160 * block.h: New file.
10162 2003-02-19 Theodore A. Roth <troth@openavr.org>
10164 * avr-tdep.c (avr_extract_return_value): Remove function.
10165 (avr_store_return_value): Remove function.
10166 (avr_extract_struct_value_address): Remove function.
10167 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10169 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10171 * rs6000-tdep.c: Include "gdb_assert.h".
10172 (registers_e500): Add "acc" and "spefscr".
10173 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10174 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10175 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10177 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10179 2003-02-18 Keith Seitz <keiths@redhat.com>
10181 * Makefile.in: Add gdbtk-interps.c.
10183 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10185 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10186 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10188 2003-02-18 Andrew Cagney <cagney@redhat.com>
10190 * symtab.h (struct objfile): Add opaque declaration.
10192 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10194 From Jim Ingham <jingham@apple.com>:
10195 * dbxread.c (process_one_symbol): Use last_function_start rather
10196 than function_start_offset to find the real beginning of the
10197 current function. The latter is just the text section offset on
10198 some systems, the former is always the real function start.
10200 2003-02-17 Andrew Cagney <cagney@redhat.com>
10202 * configure.in: Revert ${target} != ${host}.
10204 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10206 * configure.in (Makefile): Use the test ${target} != ${host},
10207 instead of the absence of the "nm.h" file, to determine of the
10208 configuration non-native.
10209 * configure: Regenerate.
10211 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10213 From Brian Ford <ford@vss.fsi.com>
10215 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10216 conditionalize tui_active test.
10217 (lookup_cmd_1): Ditto.
10219 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10221 * configure.in: Add check for _etext.
10222 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10224 * config.in, configure: regenerated.
10226 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10228 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10230 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10232 * main.c (tui_version): Delete variable.
10233 (captured_main): When --tui, set interpreter_p to "tui" instead of
10234 enabling tui_version.
10235 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10237 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10238 * cli/cli-cmds.c (disassemble_command): Ditto.
10239 * defs.h (tui_version): Delete declaration.
10240 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10241 (tui-interp.o): Add rules.
10242 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10244 2003-02-14 Christopher Faylor <cgf@redhat.com>
10246 * win32-nat.c (register_loaded_dll): Correctly set address range for
10249 2003-02-12 Jason Molenda (jmolenda@apple.com)
10251 * symmisc.c (print_objfile_statistics): Include information about
10252 the number of psymtabs and symtabs in each object file.
10254 2003-02-13 Keith R Seitz <keiths@redhat.com>
10256 * main.h (struct captured_main_args): Add interpreter_p.
10257 * main.c (captured_main): Initialize interpreter_p from context.
10258 * gdb.c (main): Set interpreter_p argument.
10259 * Makefile.in (gdb.o): Add dependency for interps.h.
10261 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10263 * event-top.c (cli_command_loop): Delete declaration.
10264 (_initialize_event_loop): Delete function setting event_loop_hook.
10265 * event-top.h (cli_command_loop): Declare. Update copyright.
10266 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10267 * interps.c (current_interp_command_loop): When event_loop_p, call
10270 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10272 * interps.h (interp_command_loop_ftype): Change return type to
10275 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10277 * x86-64-tdep.c (x86_64_extract_return_value)
10278 (x86_64_store_return_value): Use regcache instead of regbuf.
10279 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10280 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10282 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10284 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10285 * aclocal.m4: Regenerate.
10286 * configure: Regenerate.
10288 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10289 TCL_LD_SEARCH_FLAGS.
10291 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10293 * dwarf2cfi.c: Reindented.
10295 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10297 * interps.c (clear_interpreter_hooks): Convert function definition
10300 2003-02-07 David Carlton <carlton@math.stanford.edu>
10302 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10304 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10306 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10307 (struct type): ...to here.
10308 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10310 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10311 (replace_type): Set length on all type variants for a given type.
10313 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10315 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10317 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10319 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10321 * Makefile.in (symm-nat.o): Update dependencies.
10322 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10323 (lynx-nat.o, ia64-linux-nat.): Ditto.
10324 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10325 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10326 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10328 * Makefile.in (inflow_h): Define.
10329 (procfs.o, inflow.o, procfs.o): Update dependencies.
10330 * inftarg.c (child_stop): Delete extern declaration of
10331 inferior_process_group. Include "inflow.h".
10332 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10333 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10334 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10335 (our_process_group, inferior_process_group): Extern declarations.
10337 * procfs.c: Include "gdb_assert.h".
10339 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10340 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10341 * jv-typeprint.c (java_type_print_base): Ditto.
10342 * typeprint.c (typedef_print): Eliminate STREQ.
10343 * cli/cli-script.c (define_command, define_command): Ditto.
10344 * main.c (captured_main): Ditto.
10345 * values.c (lookup_internalvar): Ditto.
10346 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10347 within `if' conditional.
10348 * linespec.c (decode_line_2): Ditto.
10349 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10350 (bfd_openw_with_cleanup): Ditto.
10352 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10354 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10355 legacy_extract_return_value and store_return_value to
10356 legacy_return_value.
10358 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10360 * win32-nat.c (get_relocated_section_addrs): New function. Find
10361 section load addresses for symbol handling in relocated DLLs.
10362 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10364 2003-02-05 Fred Fish <fnf@intrinsity.com>
10366 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10368 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10370 (angel_RDI_info): Ditto.
10371 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10373 (threads_continue_all_with_signals): Ditto.
10375 2003-02-05 Jim Ingham <jingham@apple.com>
10376 Keith Seitz <keiths@redhat.com>
10377 Elena Zannoni <ezannoni@redhat.com>
10378 Andrew Cagney <ac131313@redhat.com>
10380 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10381 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10382 (SUBDIR_MI_OBS): Add "mi-interp.o".
10383 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10384 (SFILES): Add "interps.c".
10385 (COMMON_OBS): Add "interps.o".
10386 (interps_h, mi_main_h): Define.
10387 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10388 (mi-main.o, main.o, event-top.o): Update dependencies.
10389 * cli/cli-interp.c: New file.
10390 * interps.h, interps.c: New files.
10391 * top.c: (gdb_init): Don't install the default interpreter, handed
10393 * main.c: Include "interps.h".
10394 (interpreter_p): Note that it should malloc'ed.
10395 (captured_command_loop): Call current_interp_command_loop.
10396 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10397 xfree and xstrdup when updating interpreter_p. Install the
10398 default interpreter. Add hack to stop mi1's copyright notice
10400 * event-top.h (gdb_setup_readline): Declare.
10401 (gdb_disable_readline): Declare.
10402 * event-top.c: Include "interps.h".
10403 (display_gdb_prompt): Call current_interp_display_prompt_p.
10404 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10405 gdb_stdlog, and gdb_stdtarg.
10406 (_initialize_event_loop): Don't call gdb_setup_readline.
10407 * cli-out.c (cli_out_set_stream): New function.
10408 * cli-out.h (cli_out_set_stream): Declare.
10410 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10412 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10413 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10414 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10415 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10416 config/i386/i386v42mp.mt: Removed.
10418 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10420 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10423 2003-02-05 Michael Chastain <mec@shout.net>
10425 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10426 2.12.1 and earlier versions.
10428 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10430 Remove orphaned hosts, targets and files.
10431 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10432 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10433 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10434 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10435 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10436 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10437 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10438 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10439 * config/sparc/tm-sp64sim.h: Delete.
10440 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10442 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10443 mips*-dec-mach3* targets.
10445 2003-02-04 Michael Chastain <mec@shout.net>
10447 * NEWS: Fix typo: sepcifying -> specifying.
10449 2003-02-04 Michael Chastain <mec@shout.net>
10451 * dwarfread.c: Add documentation on the state of dwarf-1,
10452 looking towards obsoletion.
10454 2003-02-03 Michael Chastain <mec@shout.net>
10456 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10457 gdb/testsuite/gdb.c++/pr-1023.exp.
10459 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10461 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10462 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10464 * utils.c (init_page_info): Delete reference to MPW in comments.
10465 * main.c (captured_main): Delete #ifdef MPW.
10467 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10469 * NEWS: Note that the m32r-*-elf* is obsolete.
10470 * monitor.c (monitor_expect): Obsolete reference to m32r.
10471 * configure.tgt: Mark m32r-*-elf* as obsolete.
10472 * MAINTAINERS: Mark m32k as obsolete.
10473 * m32r-rom.c: Obsolete file.
10474 * config/m32r/m32r.mt: Obsolete file.
10475 * config/m32r/tm-m32r.h: Obsolete file.
10476 * m32r-stub.c: Obsolete file.
10477 * m32r-tdep.c: Obsolete file.
10479 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10481 * NEWS: Mention that the z8k-zilog-none is obsolete.
10482 * MAINTAINERS: Mark z8k as obsolete.
10483 * configure.tgt: Obsolete the z8k-*-coff* target.
10484 * config/z8k/z8k.mt: Obsolete file.
10485 * config/z8k/tm-z8k.h: Obsolete file.
10486 * z8k-tdep.c: Obsolete file.
10488 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10490 * NEWS: Mention that the mn10200-elf is obsolete.
10491 * configure.tgt: Obsolete mn10200-*-* target.
10492 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10493 mention that the mn10200 is obsolete.
10494 * breakpoint.h: Ditto.
10495 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10496 * config/mn10200/mn10200.mt: Obsolete file.
10497 * config/mn10200/tm-mn10200.h: Obsolete file.
10498 * mn10200-tdep.c: Obsolete file.
10500 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10502 * MAINTAINERS: Mark h8500 as obsolete.
10503 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10504 * findvar.c (value_from_register): Ditto.
10505 * h8500-tdep.c: Mark file as obsolete.
10506 * config/h8500/h8500.mt: Ditto.
10507 * config/h8500/tm-h8500.h: Ditto.
10508 * NEWS: Mention that h8500 is obsolete.
10510 2003-02-04 David Carlton <carlton@math.stanford.edu>
10512 * objfiles.c (allocate_objfile): Always set name. Add comment at
10514 * jv-lang.c (get_dynamics_objfile): Add comment.
10516 2003-02-04 David Carlton <carlton@math.stanford.edu>
10518 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10519 * printcmd.c (build_address_symbolic): Replace uses of
10520 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10521 SYMBOL_NAME, and asm_demangle.
10524 2003-02-04 David Carlton <carlton@math.stanford.edu>
10526 * linespec.c (decode_compound): Extract code into
10528 (lookup_prefix_sym): New function.
10530 2003-02-04 David Carlton <carlton@math.stanford.edu>
10532 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10533 FLOAT_COERCION_BADNESS.
10534 * gdbtypes.c (rank_one_type): Replace all uses of
10535 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10537 2003-02-04 Jim Blandy <jimb@redhat.com>
10539 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10540 section, let dwarf_macinfo_section point to it, not
10543 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10545 Pointed out by Anton Blanchard <anton@samba.org>.
10546 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10547 (ppc_linux_at_sigtramp_return_path): Use it.
10549 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10551 * defs.h (streq): Add prototype.
10552 * utils.c (streq): New function.
10554 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10555 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10556 * mdebugread.c (new_symbol): Likewise.
10557 * stabsread.c (define_symbol): Likewise.
10558 * coffread.c (process_coff_symbol): Likewise.
10559 * dwarfread.c (new_symbol): Likewise.
10561 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10562 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10564 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10565 SYMBOL_INIT_DEMANGLED_NAME.
10566 * objfiles.c: Include "hashtab.h".
10567 (allocate_objfile): Call htab_set_functions_ex for the
10568 demangled_names_hash.
10569 (free_objfile): Call htab_delete for the demangled_names_hash.
10570 * objfiles.h (struct htab): Add declaration.
10571 (struct objfile): Add demangled_names_hash.
10572 * symfile.c: Include "hashtab.h".
10573 (reread_symbols): Call htab_delete for the demangled_names_hash.
10574 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10575 SYMBOL_NAME in the bcache.
10576 * symtab.c: Include "hashtab.h". Update comments.
10577 (create_demangled_names_hash, symbol_set_names): New functions.
10578 (symbol_find_demangled_name): New function, broken out from
10579 symbol_init_demangled_names.
10580 (symbol_init_demangled_names): Use it.
10581 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10582 (SYMBOL_SET_NAMES): New macro.
10583 (symbol_set_names): Add prototype.
10585 2003-02-03 Jim Blandy <jimb@redhat.com>
10587 Use a single, consistent representation for an empty minimal
10588 symbol table in an objfile.
10589 * objfiles.c (terminate_minimal_symbol_table): New function.
10590 (allocate_objfile): Call it.
10591 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10592 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10594 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10595 objfile has minimal symbols, compare minimal_symbol_count to zero,
10596 instead of comparing msymbols with NULL.
10597 * objfiles.c (have_minimal_symbols): Same.
10598 * solib-sunos.c (solib_add_common_symbols): Call
10599 terminate_minimal_symbol_table.
10600 * symfile.c (reread_symbols): Same.
10602 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10604 * s390-tdep.c (s390_address_class_type_flags)
10605 (s390_address_class_type_flags_to_name)
10606 (s390_address_class_name_to_type_flags): New functions.
10607 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10608 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10610 2003-02-03 Michael Snyder <msnyder@redhat.com>
10612 * arm-tdep.c: Fix spell-o in comment.
10614 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10616 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10617 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10618 error messages to contain BFD filename.
10620 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10622 Fix PR gdb/742 gdb/743 gdb/877
10623 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10624 (do_mixed_source_and_assembly): Use
10625 make_cleanup_ui_out_tuple_begin_end and
10626 make_cleanup_ui_out_tuple_begin_end.
10627 (do_mixed_source_and_assembly): Ditto.
10628 * thread.c (do_captured_list_thread_ids): Ditto.
10629 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10630 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10631 ui_out_tuple_end): Delete prototypes.
10632 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10633 ui_out_list_end, ui_out_tuple_end): Delete.
10635 From Kevin Buettner <kevinb@redhat.com>:
10636 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10637 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10638 (do_cleanup_table_end): New functions.
10639 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10640 Use cleanups to invoke_ui_out_tuple_end().
10641 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10642 * cli/cli-setshow.c (cmd_show_list): Use
10643 make_cleanup_ui_out_tuple_begin_end.
10645 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10647 * frame.c (frame_unwind_register): New function.
10648 (frame_unwind_unsigned_register): Use.
10649 (frame_unwind_signed_register): Use.
10650 (frame_read_register): New function.
10651 * frame.h (frame_unwind_register): Declare.
10652 (frame_read_register): Declare.
10654 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10655 and frame_unwind_register instead of read_memory, write_register
10656 and deprecated_write_register_bytes.
10658 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10660 * frame.h: Note that namelen can be negative.
10661 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10664 * NEWS: Mention that the d10v's `regs' command is deprecated.
10665 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10666 (d10v_print_registers_info): New function.
10667 (show_regs): Call d10v_print_registers_info.
10668 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10670 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10672 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10673 lost in the previous patch.
10675 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10677 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10678 * stack.c (print_frame_info_base): Output complete FRAME tuple
10679 for synthesized frames.
10681 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10683 * mips-nat.c (zerobuf): Delete.
10684 (fetch_inferior_registers): Alloc local zerobuf.
10685 (fetch_core_registers): Alloc local zerobuf.
10686 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10687 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10688 * thread-db.c (thread_db_store_registers): Ditto.
10689 * sh-tdep.c (sh_do_register): Ditto.
10690 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10691 * remote-sim.c (gdbsim_store_register): Ditto.
10692 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10693 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10694 * monitor.c (monitor_supply_register): Ditto.
10695 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10696 * mips-nat.c (fetch_inferior_registers): Ditto.
10697 * m68klinux-nat.c (fetch_register): Ditto.
10698 * lynx-nat.c (fetch_inferior_registers): Ditto.
10699 (fetch_inferior_registers): Ditto.
10700 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10701 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10702 (hpux_thread_store_registers): Ditto.
10703 * hppah-nat.c (fetch_register): Ditto.
10704 * hppab-nat.c (fetch_register): Ditto.
10705 * hppa-tdep.c (pa_register_look_aside): Ditto.
10706 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10707 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10709 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10711 * gdbarch.sh: Explictly specify all method levels. When a
10712 variable with an empty level, provide a non-multi-arch default.
10713 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10714 * gdbarch.h: Re-generate.
10715 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10716 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10718 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10720 * defs.h (host_pointer_to_address): Delete declaration.
10721 (address_to_host_pointer): Delete declaration.
10722 * utils.c (host_pointer_to_address): Delete function.
10723 (address_to_host_pointer): Delete function.
10724 * procfs.c (procfs_address_to_host_pointer): New function.
10725 * procfs.c (proc_set_watchpoint): Use.
10726 (procfs_can_use_hw_breakpoint): Update comments.
10727 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10728 (som_solib_add): Use.
10729 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10730 * hppa-tdep.c (unwind_command): Use.
10732 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10734 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10737 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10738 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10739 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10740 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10741 (define_symbol): Update.
10742 * symfile.c (generic_load): Remove references to nindy.
10743 * symtab.c: Remove references to nindy.
10745 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10747 * infcmd.c (print_float_info): Delete code conditional on
10749 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10750 * config/m68k/nm-apollo68b.h: Ditto.
10751 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10752 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10753 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10755 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10757 * config/i386/tm-i386os9k.h: Removed.
10759 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10760 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10761 they're identical to i[3456]86-*-sysv* now.
10762 * config/i386/i386v32.mh: Removed.
10763 * config/i386/xm-i386v32.h: Removed.
10764 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10766 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10768 * config/i386/i386dgux.mh: Removed.
10769 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10771 * configure.in: Fix typo.
10772 * configure: Regenerated.
10774 2003-01-31 David Carlton <carlton@math.stanford.edu>
10776 * dwarf2read.c (dwarf2_locate_sections): Set
10777 dwarf_ranges_section.
10779 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10781 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10782 * utils.c: Update comments documenting legitimate uses of PTR.
10784 * utils.c: Re-indent.
10786 * config/djgpp/fnchange.lst: Delete nindy files.
10787 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10788 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10789 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10790 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10791 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10792 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10793 * Makefile.in (init.c): Remove nindy references.
10794 (saber_gdb): Delete rule.
10795 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10796 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10798 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10799 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10800 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10801 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10802 nindy-share/stop.h.
10803 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10804 * saber.suppress: Delete file.
10806 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10808 * dbxread.c (stabs_data): New static variable.
10809 (fill_symbuf): Support an in-memory buffer for stabs data.
10810 (stabs_seek): New function.
10811 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10812 (read_ofile_symtab): Use stabs_seek.
10813 (elfstab_build_psymtabs): Take an asection* instead of
10814 an offset and size. Relocate the stabs data if necessary.
10815 Save the section* for dbx_psymtab_to_symtab.
10816 * dwarf2read.c: Add section variables for each debug section.
10817 (dwarf2_locate_sections): Fill them in.
10818 (dwarf2_read_section): Take an asection* argument.
10819 Relocate the section contents if necessary.
10820 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10821 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10822 it to dwarf2_read_section.
10823 (dwarf2_build_frame_info): Update callers.
10824 * elfread.c (elf_symfile_read): Update call to
10825 elfstab_build_psymtabs.
10826 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10827 (DBX_STAB_SECTION): New macro.
10828 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10829 * symfile.c (symfile_dummy_outputs): New function.
10830 (symfile_relocate_debug_section): New function.
10831 * symfile.h (symfile_relocate_debug_section): Add prototype.
10833 2003-01-31 Richard Henderson <rth@redhat.com>
10835 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10836 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10837 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10838 * alpha-tdep.c (alpha_register_name): Add "unique".
10839 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10840 (ALPHA_UNIQUE_REGNUM): New.
10841 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10843 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10845 * README: Remove reference to Ericsson 1800 monitor.
10846 * Makefile.in (remote-es.o): Delete rule.
10847 (ALLDEPFILES): Delete remote-es.c.
10848 * remote-es.c: Delete file.
10849 * config/m68k/es1800.mt: Delete file.
10850 * config/djgpp/fnchange.lst: Update.
10851 * configure.tgt: Delete m68*-ericsson-* target.
10853 2003-01-31 Adam Fedor <fedor@gnu.org>
10855 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10856 Remove duplicate/shadowing variable of same name.
10858 2003-01-30 Jim Blandy <jimb@redhat.com>
10860 * symfile.c (find_separate_debug_file): Assert that the objfile's
10861 directory name we compute ends with a slash, and then assume that
10862 that's so everywhere we use it.
10864 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10866 * valops.c (value_assign): Flush frame cache after stores to memory
10869 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10871 * Makefile.in (mon960-rom.o): Delete rule.
10872 * mon960-rom.c: Delete file.
10874 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10876 * d10v-tdep.c: Include "frame-unwind.h".
10877 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10879 (next_addr, uses_frame): Delete.
10880 (struct d10v_unwind_cache): Define.
10881 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10882 Use info instead of next_addr and uses_frame globals.
10883 (d10v_frame_init_saved_regs): Delete function.
10884 (d10v_init_extra_frame_info): Delete function.
10885 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10886 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10887 init_frame_pc or frame_saved_pc.
10888 (d10v_pop_frame): Delete function.
10889 (do_d10v_pop_frame): Delete function.
10890 (d10v_frame_chain): Delete function.
10891 (d10v_frame_chain_valid): Delete function.
10892 (d10v_frame_pc_unwind): New function.
10893 (d10v_frame_id_unwind): New function.
10894 (saved_regs_unwinder): New function.
10895 (d10v_frame_register_unwind): New function.
10896 (d10v_frame_pop): New function.
10897 (d10v_frame_unwind): New variable.
10898 (d10v_frame_p): New function.
10899 (d10v_frame_saved_pc): Delete function.
10900 * Makefile.in (d10v-tdep.o): Update dependencies.
10902 2003-01-30 J. Brobecker <brobecker@gnat.com>
10904 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10905 causing some regressions due to a change in the default value
10908 2003-01-29 Richard Henderson <rth@redhat.com>
10909 Elena Zannoni <ezannoni@redhat.com>
10910 Daniel Jacobowitz <drow@mvista.com>
10913 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10915 (RANGES_SECTION): New.
10916 (dwarf_ranges_buffer): New variable.
10917 (struct comp_unit_head): Add member "die".
10918 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10919 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10920 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10921 (dwarf2_locate_sections): Likewise.
10922 (dwarf2_build_psymtabs): Read .debug_ranges.
10923 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10924 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10925 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10926 Look for DW_AT_ranges and return the bounding box.
10928 2003-01-29 Brian Ford <ford@vss.fsi.com>
10930 * win32-nat.c (cygwin_pid): Removed as unused.
10931 (child_attach): Try fall back to Cygwin pid.
10933 2003-01-29 Jim Blandy <jimb@redhat.com>
10935 * objfiles.h (struct objfile): Doc fix.
10937 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10939 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10940 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10941 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10942 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10943 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10944 (FRAME_SAVED_PC): Change to a function with predicate.
10945 * gdbarch.h, gdbarch.c: Re-generate.
10947 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10949 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10951 * complaints.c (complain): Delete function.
10952 * complaints.h (struct deprecated_complaint): Delete definition.
10953 (complain): Delete declaration.
10955 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10957 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10960 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10962 * sentinel-frame.h, sentinel-frame.c: New files.
10963 * Makefile.in (frame.o): Update dependencies.
10964 (SFILES): Add sentinel-frame.c.
10965 (sentinel_frame_h): Define.
10966 (COMMON_OBS): Add sentinel-frame.o.
10967 (sentinel-frame.o): Specify dependencies.
10968 * frame.c: Include "sentinel-frame.h".
10969 (frame_register_unwind): Rewrite assuming that there is always a a
10971 (frame_register, generic_unwind_get_saved_register): Ditto.
10972 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10973 (create_sentinel_frame, unwind_to_current_frame): New functions.
10974 (get_current_frame): Rewrite using create_sentinel_frame and
10975 unwind_to_current_frame. When possible, always create a frame.
10976 (create_new_frame): Set next to the sentinel frame.
10977 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10978 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10979 ID cache when necessary.
10980 (frame_saved_regs_id_unwind): Use frame_relative_level.
10981 (deprecated_generic_get_saved_register): Use frame_relative_level,
10982 get_frame_saved_regs, get_frame_pc, get_frame_base and
10984 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10987 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10989 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10991 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10993 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10994 (maintenance_set_profile_cmd): Use error () instead of warning ().
10996 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10998 * configure.in: Check that -pg works if using --enable-profiling.
10999 Check for monstartup and _mcleanup regardless of --enable-profiling.
11000 * maint.c: Check for monstartup and _mcleanup before using them.
11001 * config.in: Regenerated.
11002 * configure: Regenerated.
11004 2003-01-24 Nick Clifton <nickc@redhat.com>
11006 * Add sh2e support:
11008 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11010 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11011 (sh2e_show_regs): New.
11012 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11013 * config/sh/tm-sh.h: Added sh2e to comments.
11015 2003-01-23 Jim Blandy <jimb@redhat.com>
11017 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11018 symbols found)" message here; we haven't checked for a separate
11019 debug info file yet, so we don't know yet.
11020 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11021 we've looked everywhere. Also, there's no need to print a special
11022 message when we're loading the separate debug info file: the one
11023 symbol_file_add prints is fine.
11025 2003-01-23 Alexander Larsson <alexl@redhat.com>
11026 Jim Blandy <jimb@redhat.com>
11028 Add support for executables whose debug info has been separated
11029 out into a separate file, leaving only a link behind.
11030 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11031 and separate_debug_objfile_backlink.
11032 (put_objfile_before): New declaration.
11033 * symfile.c: #include "filenames.h".
11034 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11035 debug info in a separate file, read that, too. Save the addrs
11036 argument, so we can use it again to read the separated debug info;
11037 syms_from_objfile modifies the table we pass it.
11038 (reread_symbols): After re-reading an objfile, call
11039 reread_separate_symbols to refresh its separate debug info
11040 objfile, if it has one.
11041 (reread_separate_symbols, find_separate_debug_file,
11042 get_debug_link_info, separate_debug_file_exists): New functions.
11043 (debug_file_directory): New global var.
11044 (_initialize_symfile): Initialize debug_file_directory, and
11045 provide the new `set debug-file-directory' command to let the user
11047 * objfiles.c (free_objfile): If this objfile has its debug info in
11048 a separate objfile, free that one too. If this is itself a
11049 separate debug info objfile, clear our parent's backlink.
11050 (put_objfile_before): New function.
11051 * utils.c (gnu_debuglink_crc32): New function.
11052 * defs.h (gnu_debuglink_crc32): New declaration.
11053 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11054 * configure.in: Handle --with-separate-debug-dir config option.
11055 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11056 * acconfig.h (DEBUGDIR): New macro.
11057 * configure, aclocal.m4, config.in: Regenerated.
11059 2003-01-22 Jim Blandy <jimb@redhat.com>
11061 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11062 like the old symbol_file_add, but taking new arguments: you can
11063 now pass in either a `struct section_addr_info' list to say where
11064 each section is loaded, or a `struct section_offsets' table. Pass
11065 these new arguments through to syms_from_objfile as appropriate.
11066 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11067 with the appropriate quiescent values for the new arguments.
11069 * symfile.c: #include "gdb_assert.h".
11070 (syms_from_objfile): Add the ability to pass in a section offset
11071 table directly, as an alternative to the section_addr_info table.
11072 Document arguments better.
11073 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11074 * symfile.h (syms_from_objfile): Update declaration.
11075 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11077 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11079 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11081 Original patch by Tom Tromey <tromey@cygnus.com> and
11082 Jason Molenda <jmolenda@apple.com>.
11083 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11084 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11085 * NEWS: Mention profiling.
11086 * configure.in (--enable-gdbtk): Fix typo.
11087 (--enable-profiling): New. Set PROFILE_CFLAGS.
11088 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11090 (profiling_state): New variable.
11091 (mcleanup_wrapper): New function.
11092 (_initialize_maint): Remove NOTYET, fix call to
11093 add_setshow_boolean_cmd for "maint set profile".
11094 * configure: Regenerated.
11096 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11098 * Makefile.in (install-gdbtk): Install PNG images too.
11100 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11102 * exec.c (text_start): Delete global variable.
11103 (exec_file_attach): Make text_start local to the function.
11104 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11105 * valops.c (hand_function_call): Delete code that handles
11106 BEFORE_TEXT_END and AFTER_TEXT_END.
11107 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11108 of CALL_DUMMY_LOCATION.
11109 * gdbarch.c: Regenerate.
11110 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11111 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11112 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11113 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11114 (text_end): Delete extern declaration.
11116 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11118 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11119 * blockframe.c (backtrace_below_main): Move to "frame.c".
11120 (frame_chain_valid): Delete check for backtrace_below_main.
11121 (_initialize_blockframe): Delete initialization, move ``set
11122 backtrace-below-main'' command to "frame.c".
11123 (do_flush_frames_sfunc): Delete function.
11124 * frame.c: Include "command.h" and "gdbcmd.h".
11125 (frame_type_from_pc): New function.
11126 (create_new_frame): Use frame_type_from_pc.
11127 (legacy_get_prev_frame): New function.
11128 (get_prev_frame): Rewrite. When an old style frame, call
11129 legacy_get_prev_frame. Otherwize, unwind the PC first.
11130 (_initialize_frame): Add ``set backtrace-below-main'' command.
11131 * Makefile.in (frame.o): Update dependencies.
11133 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11135 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11136 DEPRECATED_REGISTERS_INFO.
11138 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11140 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11141 Maintainers'. Update `Various Maintainers'.
11143 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11145 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11146 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11147 Suppress actual parameters when `-'.
11148 * gdbarch.h, gdbarch.c: Regenerate.
11150 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11152 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11153 code handling dummy frames.
11155 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11157 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11158 (struct frame_unwind): Add field pop.
11159 * frame.h (frame_pop): Declare.
11160 * frame.c (frame_saved_regs_pop): New function.
11161 (trad_frame_unwinder): Add frame_saved_regs_pop.
11162 (frame_pop): New function.
11163 * dummy-frame.c (dummy_frame_pop): New function.
11164 (discard_innermost_dummy): New function.
11165 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11166 (dummy_frame_unwind): Add dummy_frame_pop.
11167 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11168 * valops.c (hand_function_call): Ditto.
11169 * stack.c (return_command): Ditto.
11171 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11173 * cris-tdep.c: Fix function declaration indentation.
11174 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11175 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11176 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11177 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11178 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11179 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11181 2003-01-18 Michael Chastain <mec@shout.net>
11183 * README (Unpacking and Installation -- quick overview):
11184 Warn against ".../gdb-5.3/gdb/configure".
11186 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11188 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11189 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11190 (struct frame_unwind): Declare opaque.
11191 (dummy_frame_p): Declare function.
11192 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11193 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11194 * dummy-frame.c: Include "frame-unwind.h".
11195 (dummy_frame_p): New function.
11196 (dummy_frame_unwind): New variable.
11197 * frame.c: Include "frame-unwind.h".
11198 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11199 to use the new unwind field.
11200 (set_unwind_by_pc): Delete function.
11201 (create_new_frame, get_prev_frame): Set unwind field using
11202 frame_unwind_find_by_pc.
11203 (trad_frame_unwind, trad_frame_unwinder): New variables.
11204 * frame.h (trad_frame_unwind): Declare variable.
11205 (frame_id_unwind_ftype): Delete declaration.
11206 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11207 (struct frame_unwind): Declare opaque.
11208 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11209 register_unwind with a single unwind pointer.
11210 * frame-unwind.h, frame-unwind.c: New files.
11211 * Makefile.in (SFILES): Add frame-unwind.c.
11212 (frame_unwind_h): Define.
11213 (COMMON_OBS): Add frame-unwind.o.
11214 (frame-unwind.o): Specify dependencies.
11215 (frame.o, dummy-frame.o): Update dependencies.
11217 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11219 * ada-valprint.c: Eliminate PTR.
11220 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11221 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11222 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11223 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11224 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11225 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11226 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11228 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11230 * main.c (captured_main): Don't use PTR.
11231 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11232 * gdbtypes.c (lookup_primitive_typename): Ditto.
11233 (lookup_struct_elt_type): Ditto.
11234 * f-valprint.c (info_common_command): Ditto.
11235 (list_all_visible_commons): Ditto.
11236 * jv-typeprint.c (java_type_print_base): Ditto.
11238 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11239 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11240 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11241 i386-interix-nat.c and i386-interix-tdep.c. Rename
11242 m68klinux-nat.c and m68klinux-tdep.c. Rename
11243 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11244 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11245 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11246 * main.c (captured_main): Use xfree, not free.
11248 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11250 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11251 ID back using a parameter.
11252 * frame.c (frame_id_unwind): Update call.
11253 (frame_saved_regs_id_unwind): Update.
11254 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11255 * dummy-frame.h (struct frame_id): Add opaque declaration.
11256 (dummy_frame_id_unwind): Update declaration.
11258 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11260 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11262 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11264 * MAINTAINERS (Stephen P. Smith): Updated email address.
11266 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11269 * breakpoint.c (until_break_command): Add new argument. Use it to
11270 decide whether to stop only at the current frame or not.
11271 * breakpoint.h (until_break_command): Update prototype.
11272 * infcmd.c (until_command): Add new argument to until_break_command
11274 (advance_command): New function.
11275 (_initialize_infcmd): Update help string for 'until' command.
11276 Add new 'advance' command.
11278 2003-01-14 David Carlton <carlton@math.stanford.edu>
11280 * linespec.c (decode_line_1): Normalize comments.
11281 (set_flags): Ditto.
11282 (locate_first_half): Ditto.
11283 (decode_compound): Ditto.
11284 (symtab_from_filename): Ditto.
11285 (decode_all_digits): Ditto.
11286 (decode_dollar): Ditto.
11287 (find_methods): Ditto.
11288 (find_toplevel_char): Ditto.
11290 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11292 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11293 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11294 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11295 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11296 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11297 * language.c, language.h, m32r-tdep.c: Update copyright.
11298 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11299 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11300 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11301 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11302 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11303 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11305 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11307 * stabsread.h (process_later, resolve_cfront_continuation):
11309 Update copyright years.
11310 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11311 Update copyright year.
11312 * dbxread.c(struct cont_elem): Obsolete.
11313 (process_later, process_now): Obsolete functions.
11314 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11315 Update copyright year.
11316 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11317 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11318 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11319 (parse_partial_symbols): Obsolete cfront support.
11321 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11323 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11324 read_cfront_baseclasses, read_cfront_member_functions,
11325 resolve_cfront_continuation,read_cfront_static_fields,
11326 copy_cfront_struct_fields): Obsolete functions.
11327 (define_symbol, read_one_struct_field): Obsolete cfront support.
11328 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11329 Update Copyright year.
11331 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11333 * stack.c (print_frame_info, print_stack_frame_base_stub,
11334 print_stack_frame_base, show_and_print_stack_frame_stub,
11335 show_and_print_stack_frame, print_only_stack_frame_stub,
11336 print_only_stack_frame): Delete functions.
11337 (print_stack_frame_stub): Call print_frame_info instead of
11338 print_frame_info_base.
11339 (print_frame_info_base): Rename to print_frame_info.
11340 (backtrace_command_1): Call print_frame_info, instead of
11341 print_frame_info_base.
11342 (current_frame_command): Call print_stack_frame, instead of
11343 print_only_stack_frame.
11344 (frame_command): Call print_stack_frame, instead of
11345 show_and_print_stack_frame.
11346 (up_command): Ditto.
11347 (down_command): Ditto.
11348 * frame.h (print_only_stack_frame): Delete prototype.
11349 * infrun.c (normal_stop): Call print_stack_frame, instead of
11350 show_and_print_stack_frame.
11351 * thread.c (info_threads_command): Call print_stack_frame, instead
11352 of print_only_stack_frame.
11354 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11356 * README (Graphical interface to GDB): Update URL. Point at
11359 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11362 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11364 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11367 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11369 * thread-db.c (attach_thread): Prototype.
11370 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11371 thread information (ti), and valid flags (th_valid, ti_valid).
11372 (attach_thread): Move target_pid_to_str call to after the thread
11373 is added to GDB's list. Initialize the cache.
11374 (thread_get_info_callback, thread_db_map_id2thr)
11375 (thread_db_get_info): New functions.
11376 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11377 (thread_db_store_registers, thread_db_thread_alive)
11378 (thread_db_get_thread_local_address): Use them.
11379 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11380 of calling error() for threads in unknown state.
11382 (clear_lwpid_callback): New function.
11383 (thread_db_resume): Use it to clear the cache.
11385 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11387 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11388 (resume_callback): Remove dead code.
11390 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11392 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11394 * gdbarch.h, gdbarch.c: Regenerate.
11395 * stack.c (frame_info): Only initialize the saved registers when
11396 FRAME_INIT_SAVED_REGS_P.
11397 * frame.c (frame_saved_regs_register_unwind): Assert
11398 FRAME_INIT_SAVED_REGS_P.
11399 (deprecated_generic_get_saved_register): Ditto.
11401 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11403 * source.c (openp): Squelch warning about "filename".
11405 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11407 * source.c (openp): If the file does not exist don't necessarily
11410 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11413 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11414 (integer_types_same_name_p): New function.
11415 (rank_one_type): Use it.
11416 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11418 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11420 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11422 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11423 * configure.in: Add --with-sysroot.
11424 * configure: Regenerated.
11425 * main.c (gdb_sysroot): New variable.
11426 (captured_main): Initialize gdb_sysroot.
11427 * defs.h (gdb_sysroot): New extern declaration.
11428 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11430 2003-01-12 Michael Chastain <mec@shout.net>
11432 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11434 2003-01-12 Michael Chastain <mec@shout.net>
11436 * top.c (print_gdb_version): Bump copyright year to 2003.
11438 2003-01-12 David Carlton <carlton@bactrian.org>
11440 * linespec.c (symtab_from_filename): Rename variable 's' to
11443 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11445 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11447 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11449 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11451 * d10v-tdep.c: Include "gdb_assert.h".
11452 (d10v_store_return_value): Rewrite to match current interface.
11453 (d10v_extract_struct_value_address): Ditto.
11454 (d10v_extract_return_value): Ditto.
11455 (d10v_gdbarch_init): Set store_restore_value,
11456 extract_struct_value_address and extract_return_value.
11458 2003-01-12 J. Brobecker <brobecker@gnat.com>
11460 * hpread.c (set_namestring): New procedure replacing the
11461 SET_NAMESTRING macro.
11462 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11463 by calls to set_namestring.
11465 2003-01-11 J. Brobecker <brobecker@gnat.com>
11467 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11468 a compilation warning.
11469 (hpread_process_one_debug_symbol): Likewise.
11471 2003-01-10 David Carlton <carlton@math.stanford.edu>
11473 * linespec.c (decode_line_1): Rename variable 's' to
11475 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11476 (decode_dollar): Ditto.
11477 (decode_variable): Ditto.
11478 (symbol_found): Ditto.
11480 2003-01-09 Michael Chastain <mec@shout.net>
11482 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11484 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11486 * win32-nat.c (set_process_privilege): New function.
11487 (child_attach): Call set_process_privilege() to enable the
11488 SE_DEBUG_NAME user privilege if available in process token.
11490 2003-01-10 J. Brobecker <brobecker@gnat.com>
11492 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11493 compilation error in the previous revision.
11495 2003-01-09 David Carlton <carlton@math.stanford.edu>
11497 * linespec.c: Update copyright.
11499 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11501 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11502 than inferior_ptid.
11503 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11505 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11507 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11509 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11510 (frame_saved_regs_zalloc): Update.
11511 (frame_saved_regs_register_unwind): Update.
11512 (create_new_frame): Update.
11513 (get_prev_frame): Update.
11514 (frame_extra_info_zalloc): Update.
11515 (deprecated_get_frame_saved_regs): Update.
11516 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11517 * cris-tdep.c: Update comment.
11519 * somsolib.h: Fix function indentation.
11520 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11521 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11522 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11523 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11524 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11526 * infrun.c (follow_fork): Use ISO C definition.
11527 * expprint.c (print_subexp): Use xfree instead of free.
11528 * charset.c: Include "gdb_string.h" instead of <string.h>.
11529 (register_iconv_charsets): Use ISO C definition.
11530 (host_charset, target_charset): Ditto.
11531 * Makefile.in (charset.o): Update dependencies.
11532 (mi-cmd-env.o): Update dependencies.
11534 2003-01-08 Andrew Cagney <cagney@redhat.com>
11536 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11539 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11541 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11542 build directories. Save edited gdb output in Mbuild.log. If a
11543 build fails, remove any final GDB executable.
11545 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11547 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11548 replacing hex constants with function names and stripping leading
11549 file name directory prefixes.
11551 2003-01-08 Andrew Cagney <cagney@redhat.com>
11553 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11556 2003-01-08 David Carlton <carlton@math.stanford.edu>
11558 * linespec.c (decode_line_1): Move code into decode_variable.
11559 (decode_variable): New function.
11561 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11563 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11565 2003-01-08 Andrew Cagney <cagney@redhat.com>
11567 * cris-tdep.c (cris_frame_init_saved_regs): Use
11568 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11570 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11571 (sh64_nofp_frame_init_saved_regs): Ditto.
11572 (sh_fp_frame_init_saved_regs): Ditto.
11573 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11574 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11575 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11576 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11578 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11580 * minsyms.c (lookup_minimal_symbol): Update comment.
11581 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11582 (lookup_minimal_symbol_solib_trampoline): Likewise.
11584 2003-01-08 Andrew Cagney <cagney@redhat.com>
11586 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11587 frame_relative_level.
11589 * alpha-tdep.c: Use get_frame_extra_info.
11590 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11591 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11592 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11593 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11595 * alpha-tdep.c: Use get_next_frame.
11596 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11597 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11598 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11599 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11600 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11601 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11602 * xstormy16-tdep.c: Ditto.
11604 2003-01-07 Andrew Cagney <cagney@redhat.com>
11606 * alpha-tdep.c: Use get_frame_base.
11607 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11608 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11609 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11610 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11611 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11612 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11613 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11614 * config/sparc/tm-sparc.h: Ditto.
11616 2003-01-07 Andrew Cagney <cagney@redhat.com>
11618 * frame.c (deprecated_get_frame_context): New function.
11619 (deprecated_set_frame_context): New function.
11620 * frame.h (deprecated_get_frame_context): Declare.
11621 (deprecated_set_frame_context): Declare.
11622 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11623 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11625 2003-01-07 Andrew Cagney <cagney@redhat.com>
11627 * frame.c (deprecated_set_frame_next_hack): New function.
11628 (deprecated_set_frame_prev_hack): New function.
11629 * frame.h (deprecated_set_frame_next_hack): Declare.
11630 (deprecated_set_frame_prev_hack): Declare.
11631 * mcore-tdep.c (analyze_dummy_frame): Use
11632 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11633 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11635 2003-01-07 David Carlton <carlton@math.stanford.edu>
11637 * linespec.c (decode_line_1): Move code into decode_dollar.
11638 (decode_dollar): New function.
11640 2003-01-07 Andrew Cagney <cagney@redhat.com>
11642 * arm-tdep.c (arm_init_extra_frame_info): Use
11643 deprecated_update_frame_base_hack.
11644 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11645 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11646 (fix_frame_pointer): Ditto.
11647 (mn10300_analyze_prologue): Ditto.
11649 2003-01-07 Andrew Cagney <cagney@redhat.com>
11651 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11652 extra_info using frame_extra_info_zalloc.
11653 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11654 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11655 (sh64_init_extra_frame_info): Ditto.
11656 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11657 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11658 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11659 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11660 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11661 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11662 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11663 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11664 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11665 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11666 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11667 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11669 * mn10300-tdep.c (analyze_dummy_frame): Use
11670 deprecated_set_frame_extra_info_hack.
11671 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11673 2003-01-07 J. Brobecker <brobecker@gnat.com>
11675 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11676 class is not scText. These do not define "real" procedures.
11677 (parse_partial_symbols): Likewise.
11679 2003-01-06 Michael Snyder <msnyder@redhat.com>
11681 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11683 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11685 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11686 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11687 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11688 deprecated_frame_xmalloc_with_cleanup.
11689 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11690 deprecated_frame_xmalloc.
11691 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11692 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11694 2003-01-06 Andrew Cagney <cagney@redhat.com>
11696 * x86-64-linux-tdep.c: Include "osabi.h".
11697 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11699 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11701 2003-01-06 Andrew Cagney <cagney@redhat.com>
11703 * MAINTAINERS (Target Instruction Set Architectures): Update
11704 arm-elf. Can be built with -Werror, has been multiarched.
11706 * value.h (unpack_long): Make buffer parameter constant.
11707 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11708 * scm-lang.h (scm_parse): Ditto.
11709 * defs.h (extract_typed_address, extract_address): Ditto.
11710 (extract_long_unsigned_integer): Ditto.
11711 * inferior.h (unsigned_pointer_to_address): Ditto.
11712 (signed_pointer_to_address): Ditto.
11713 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11714 * gdbarch.h, gdbarch.c: Regenerate.
11715 * findvar.c (extract_long_unsigned_integer): Update.
11716 (extract_address): Update.
11717 (extract_typed_address): Update.
11718 (unsigned_pointer_to_address): Update.
11719 * values.c (unpack_long): Update.
11720 (unpack_double): Update.
11721 (unpack_pointer): Update.
11722 (unpack_field_as_long): Update.
11723 * d10v-tdep.c (d10v_pointer_to_address): Update.
11724 * avr-tdep.c (avr_pointer_to_address): Update.
11725 * scm-lang.c (scm_unpack): Update.
11726 * findvar.c (signed_pointer_to_address): Update.
11728 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11730 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11731 since it is in i386-tdep.c.
11733 2003-01-06 J. Brobecker <brobecker@gnat.com>
11735 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11736 failure introduced in the previous change.
11738 2003-01-05 Michael Chastain <mec@shout.net>
11740 * README: Remove references to deleted remote-*.c files:
11741 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11742 remote-nrom.c, remote-os9k.c, remote-udi.c.
11744 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11746 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11747 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11748 i386_get_longjmp_target.
11750 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11752 * arm-tdep.c (prologue_cache): Change to a pointer.
11753 (_initialize_arm_tdep): Allocate prologue_cache.
11754 (check_prologue_cache): Update.
11755 (save_prologue_cache): Update.
11756 (arm_gdbarch_init): Update.
11758 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11760 * stabsread.c (update_method_name_from_physname): Call complaint()
11763 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11765 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11766 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11767 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11769 * blockframe.c: Include "gdbcmd.h" and "command.h".
11770 (backtrace_below_main): New variable.
11771 (file_frame_chain_valid, func_frame_chain_valid)
11772 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11773 (generic_func_frame_chain_valid): Remove functions.
11774 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11775 (_initialize_blockframe): New function.
11776 * Makefile.in (blockframe.o): Update dependencies.
11777 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11778 comment. Call frame_chain_valid ().
11779 * frame.h: Remove old prototypes. Add prototype for
11780 frame_chain_valid and update comments to match.
11781 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11782 Remove old comment.
11783 * gdbarch.h: Regenerated.
11784 * gdbarch.c: Regenerated.
11786 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11787 set_gdbarch_frame_chain_valid.
11788 * avr-tdep.c (avr_gdbarch_init): Likewise.
11789 * cris-tdep.c (cris_gdbarch_init): Likewise.
11790 * frv-tdep.c (frv_gdbarch_init): Likewise.
11791 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11792 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11793 (i386_nw_init_abi): Likewise.
11794 (i386_gdbarch_init): Likewise.
11795 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11796 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11797 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11798 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11799 * mips-tdep.c (mips_gdbarch_init): Likewise.
11800 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11801 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11802 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11803 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11804 * s390-tdep.c (s390_gdbarch_init): Likewise.
11805 * sh-tdep.c (sh_gdbarch_init): Likewise.
11806 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11807 * v850-tdep.c (v850_gdbarch_init): Likewise.
11808 * vax-tdep.c (vax_gdbarch_init): Likewise.
11809 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11811 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11812 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11813 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11814 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11815 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11816 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11817 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11818 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11820 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11822 * Makefile.in (acconfig_h): Remove incorrect macro.
11823 (config_h): Define.
11824 (osabi.o): Update dependencies.
11825 * configure.tgt: Set gdb_osabi based on target triplet.
11826 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11827 * configure: Regenerated.
11828 * config.in: Regenerated.
11829 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11830 (GDB_OSABI_DEFAULT): Define if not already defined.
11831 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11832 (set_osabi_string): New variables.
11833 (gdbarch_register_osabi): Add new OS ABI to
11834 gdb_osabi_available_names.
11835 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11836 (set_osabi, show_osabi): New functions.
11837 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11839 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11841 * arch-utils.c (gdbarch_info_init): Set osabi to
11842 GDB_OSABI_UNINITIALIZED.
11843 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11844 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11845 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11846 * gdbarch.c: Regenerated.
11847 * gdbarch.h: Regenerated.
11848 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11850 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11851 * osabi.h (enum gdb_osabi): Move to defs.h.
11852 (gdbarch_init_osabi): Update prototype.
11853 * defs.h (enum gdb_osabi): Moved here.
11854 * Makefile.in: Update dependencies.
11856 * alpha-tdep.h: Don't include "osabi.h".
11857 (struct gdbarch_tdep): Remove osabi member.
11858 * alpha-tdep.c: Include "osabi.h".
11859 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11860 iterate over arches. Update call to gdbarch_init_osabi.
11861 (alpha_dump_tdep): Don't dump osabi.
11862 * alpha-linux-tdep.c: Include "osabi.h".
11863 * alpha-osf1-tdep.c: Include "osabi.h".
11864 * alphafbsd-tdep.c: Include "osabi.h".
11865 * alphanbsd-tdep.c: Include "osabi.h".
11867 * arm-tdep.h: Don't include "osabi.h".
11868 (struct gdbarch_tdep): Remove osabi member.
11869 * arm-tdep.c: Include "osabi.h".
11870 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11871 iterate over arches. Update call to gdbarch_init_osabi.
11872 (arm_dump_tdep): Don't dump osabi.
11873 * arm-linux-tdep.c: Include "osabi.h".
11874 * armnbsd-tdep.c: Include "osabi.h".
11876 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11877 Update call to gdbarch_init_osabi.
11879 * i386-tdep.h: Don't include "osabi.h".
11880 (struct gdbarch_tdep): Remove osabi member.
11881 * i386-tdep.c: Include "osabi.h".
11882 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11883 iterate over arches. Update call to gdbarch_init_osabi.
11884 (i386_dump_tdep): Don't dump osabi.
11885 * i386-linux-tdep.c: Include "osabi.h".
11886 * i386-sol2-tdep.c: Include "osabi.h".
11887 * i386bsd-tdep.c: Include "osabi.h".
11888 * i386gnu-tdep.c: Include "osabi.h".
11889 * i386ly-tdep.c: Include "osabi.h".
11890 * i386nbsd-tdep.c: Include "osabi.h".
11891 * i386obsd-tdep.c: Include "osabi.h".
11893 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11894 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11895 check osabi when iterating over arches. Update call to
11896 gdbarch_init_osabi.
11897 (mips_dump_tdep): Don't dump osabi.
11899 * ns32k-tdep.h: Don't include "osabi.h".
11900 (struct gdbarch_tdep): Remove.
11901 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11902 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11903 allocate tdep. Update call to gdbarch_init_osabi.
11904 (ns32k_dump_tdep): Remove.
11905 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11906 * ns32knbsd-tdep.c: Include "osabi.h".
11908 * ppc-tdep.h: Don't include "osabi.h".
11909 (struct gdbarch_tdep): Remove osabi member.
11910 * rs6000-tdep.c: Include "osabi.h".
11911 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11912 osabi when iterating over arches. Update call to
11913 gdbarch_init_osabi.
11914 (rs6000_dump_tdep): Don't dump osabi.
11915 * ppc-linux-tdep.c: Include "osabi.h".
11916 * ppcnbsd-tdep.c: Include "osabi.h".
11918 * sh-tdep.h: Don't include "osabi.h".
11919 (struct gdbarch_tdep): Remove osabi member.
11920 * sh-tdep.c: Include "osabi.h".
11921 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11922 iterate over arches. Update call to gdbarch_init_osabi.
11923 (sh_dump_tdep): Don't dump osabi.
11924 * shnbsd-tdep.c: Include "osabi.h".
11926 * sparc-tdep.c: Include "osabi.h".
11927 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11928 iterate over arches. Update call to gdbarch_init_osabi.
11929 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11932 * vax-tdep.h: Don't include "osabi.h".
11933 (struct gdbarch_tdep): Remove.
11934 * vax-tdep.c: Include "osabi.h".
11935 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11936 iterate over arches. Don't allocate tdep. Update call
11937 to gdbarch_init_osabi.
11938 (vax_dump_tdep): Remove.
11939 (_initialize_vax_tdep): Update call to gdbarch_register.
11941 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11943 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11945 (breakpoint_re_set_one): Don't fetch the value for a disabled
11948 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11950 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11951 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11952 (COERCE_FLOAT_TO_DOUBLE): Remove.
11953 * gdbarch.c: Regenerate.
11954 * gdbarch.h: Regenerate.
11955 * Makefile.in: Remove value_h from gdbarch_h.
11956 * valops.c (coerce_float_to_double): New variable.
11957 (default_coerce_float_to_double): Remove.
11958 (standard_coerce_float_to_double): Remove.
11959 (value_arg_coerce): Use coerce_float_to_double.
11960 (_initialize_valops): Add "set coerce-float-to-double".
11961 * value.h (default_coerce_float_to_double): Remove prototype.
11962 (standard_coerce_float_to_double): Remove prototype.
11964 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11966 * mdebugread.c (parse_symbol): Likewise.
11967 * stabsread.c (define_symbol): Mark all functions as prototyped.
11969 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11970 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11971 set_gdbarch_coerce_float_to_double.
11972 * arm-tdep.c (arm_gdbarch_init): Likewise.
11973 * frv-tdep.c (frv_gdbarch_init): Likewise.
11974 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11975 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11976 * mips-tdep.c (mips_gdbarch_init): Likewise.
11977 (mips_coerce_float_to_double): Remove.
11978 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11979 (rs6000_coerce_float_to_double): Remove.
11980 * s390-tdep.c (s390_gdbarch_init): Likewise.
11981 * sh-tdep.c (sh_gdbarch_init): Likewise.
11982 (sh_coerce_float_to_double): Remove.
11983 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11984 (sparc_coerce_float_to_double): Remove.
11985 * v850-tdep.c (v850_gdbarch_init): Likewise.
11986 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11987 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11988 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11989 (hppa_coerce_float_to_double): Remove prototype.
11990 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11992 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11994 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11996 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11998 Suggested by Stewart Brown <sb24@avaya.com>:
11999 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12000 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12001 (c_type_print_varspec_suffix): Likewise.
12003 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12005 * configure.in: Don't set and AC_SUBST SUBDIRS.
12006 * configure: Regenerated.
12008 * configure.in: Remove code dealing with shared libraries.
12009 * Makefile.in: Remove HLDFLAGS and HLDENV.
12010 * configure: Regenerated.
12012 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12014 * frame.c (deprecated_frame_xmalloc): New function.
12015 (deprecated_set_frame_saved_regs_hack): New function.
12016 (deprecated_set_frame_extra_info_hack): New function.
12017 * frame.h (deprecated_frame_xmalloc): Declare.
12018 (deprecated_set_frame_saved_regs_hack): Declare.
12019 (deprecated_set_frame_extra_info_hack): Declare.
12021 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12023 * configure.in: Move code that provides the --enable-gdbtk option
12024 right after the code that handles the --enable-tui option, and
12025 polish it somewhat.
12026 * configure: Regenerated.
12028 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12029 AC_CHECK_FUNCS and remove the old check for pread64.
12030 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12031 * acconfig.h (_GNU_SOURCE): Add.
12032 (HAVE_PREAD64): Remove.
12033 * configure, aclocal.m4, config.in: Regenerated.
12035 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12037 * alpha-tdep.c: Use get_frame_saved_regs.
12038 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12039 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12040 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12041 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12042 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12044 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12046 * configure.in: Remove all use of the SUBDIRS variable; add
12047 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12048 code providing the --enable-multi-ice option, and move it right in
12049 front of the code that checks whether gdbserver is supported.
12051 * configure: Regenerated.
12052 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12055 2003-01-03 Andrew Cagney <cagney@redhat.com>
12057 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12058 * avr-tdep.c, cris-tdep.c: Ditto.
12059 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12060 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12062 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12064 * configure.in: Remove --enable-netrom option.
12065 * configure: Regenerated.
12067 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12069 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12070 declaration for `struct re_pattern_buffer' instead.
12071 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12073 2003-01-03 J. Brobecker <brobecker@gnat.com>
12075 * mdebugread.c (parse_symbol): Count until the stEnd matching
12076 the structure name.
12078 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12080 * configure.in: Remove --with-cpu option.
12081 subscripts. Remove evil changequotes here.
12082 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12083 * config.in, configure: Regenerated.
12085 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12086 * configure.in: Cleanup section that sources GDB and BFD configure
12087 subscripts. Remove evil changequotes here.
12088 * config.in, configure: Regenerated.
12090 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12092 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12093 frame accessor methods.
12094 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12095 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12096 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12097 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12098 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12099 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12100 * z8k-tdep.c: Ditto.
12102 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12104 * configure.in: Remove UI_OUT configuration code.
12105 * ada-lang.c: Update assuming UI_OUT is always true.
12106 * Makefile.in (UIOUT_CFLAGS): Remove.
12107 * configure: Regenerated.
12108 * TODO: Remove blurb about elimination of -DUI_OUT.
12110 * configure.in: Move code that provides the --enable-gdbcli,
12111 --enable-gdbmi options right before the code that handles the
12112 --enable-tui option. Polish a bit.
12113 * configure: Regenerated.
12115 * configure.in: Rewrite check for GNU regex and the
12116 --without-included regex option, and move it into the "Checks for
12117 library functions" section. This makes us use the system regex
12118 again by default on systems with version 2 of the GNU C library.
12119 This was apparently broken.
12120 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12121 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12122 * config.in, configure: Regenerated.
12124 * configure.in: Move code that provides the --enable-tui option
12125 before the "Checks for libraries" section. Polish the code
12126 somewhat and set need_curses to yes if we build the TUI. Rewrite
12127 code that looks for a library providing termcap functionality to
12128 match more closely what's done in the Readline library, and move
12129 it into to the "Checks for libraries" section.
12130 * configure: Regenerated.
12131 * Makefile.in (TERMCAP): Remove variable.
12132 * config/i386/go32.mh (TERMCAP): Remove variable.
12134 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12136 * MAINTAINERS: Mention gdb_mbuild.sh.
12137 * gdb_mbuild.sh: Rewrite.
12139 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12141 * configure.in: Fix typo in last change.
12142 * config.in, configure: Regenerated.
12144 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12146 * valarith.c (value_binop): Delete obsolete code and comments.
12147 * configure.host: Ditto.
12148 * buildsym.h (make_blockvector): Ditto.
12149 * buildsym.c (make_blockvector): Ditto.
12150 * defs.h (enum language): Ditto.
12151 (chill_demangle): Ditto.
12152 * elfread.c (elf_symtab_read): Ditto.
12153 * dwarfread.c (CHILL_PRODUCER): Ditto.
12154 (set_cu_language): Ditto.
12155 (handle_producer): Ditto.
12156 * expprint.c (print_subexp): Ditto.
12157 * gdbtypes.c (chill_varying_type): Ditto.
12158 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12159 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12160 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12161 (chill_varying_type): Ditto.
12162 * language.h (_LANG_chill): Ditto.
12163 * language.c (binop_result_type, integral_type): Ditto.
12164 (character_type, string_type, structured_type): Ditto.
12165 (lang_bool_type, binop_type_check): Ditto.
12166 * stabsread.h (os9k_stabs): Ditto.
12167 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12168 (define_symbol, read_type, read_struct_fields): Ditto.
12169 (read_array_type, read_enum_type, read_huge_number): Ditto.
12170 (read_range_type, start_stabs): Ditto.
12171 * symfile.c (init_filename_language_table): Ditto.
12172 (add_psymbol_with_dem_name_to_list): Ditto.
12173 * symtab.c (symbol_init_language_specific): Ditto.
12174 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12175 * symtab.h (struct general_symbol_info): Ditto.
12176 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12177 * typeprint.c (typedef_print): Ditto.
12178 * utils.c (fprintf_symbol_filtered): Ditto.
12179 * valops.c (value_cast, search_struct_field, value_slice): Delete
12181 (varying_to_slice): Delete function.
12182 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12183 (varying_to_slice): Delete declaration.
12184 * MAINTAINERS: Update.
12186 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12188 * configure.in: Reorganize "Checks for library functions section"
12189 a bit. Remove check for `btowc' and `isascii' functions.
12190 * configure: Regenerated.
12192 * acconfig.h (_MSE_INT_H): Remove.
12193 * configure.in: Create "Checks for header files" section, and move
12194 appropriate tests there. Don't check for objlist.h, wchar.h,
12195 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12196 misdetection fix. Also add "Checks for types", "Checks for
12197 compiler characteristics" and "Checks for library functions"
12199 * config.in, configure: Regenerated.
12201 * configure.in: Create "Checks for programs" section, and move
12202 appropriate tests there.
12204 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12206 * configure.in: Create "Checks for libraries" section, and move
12207 appropriate tests there. Cleanup check for wctype in libw. Use
12208 AC_SEARCH_LIBS to see whether we need libsocket.
12209 * configure: Regenerated.
12211 For older changes see ChangeLog-2002
12217 version-control: never