1 2003-09-22 Michael Chastain <mec@shout.net>
3 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
5 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
7 * top.c (quit_force): Fix indirect call to quit_target so
8 a struct qt_args pointer is passed.
10 2003-09-22 Andrew Cagney <cagney@redhat.com>
12 * arch-utils.h (init_frame_pc_noop): Delete declaration.
13 * arch-utils.c (init_frame_pc_noop): Delete function.
14 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
16 * mips-tdep.c (mips_gdbarch_init): Ditto.
17 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
18 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
20 (DEPRECATED_INIT_FRAME_PC): Delete macro.
21 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
23 (DEPRECATED_INIT_FRAME_PC): Delete macro.
25 2003-09-22 Anthony Green <green@redhat.com>
27 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
30 2003-09-20 Andrew Cagney <cagney@redhat.com>
32 * breakpoint.c: Eliminate ARGSUSED.
33 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
34 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
35 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
36 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
37 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
38 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
39 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
40 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
41 * wince.c, remote-vx.c: Ditto.
43 * cli/cli-script.c: Remove "register" attributes.
44 * config/pa/tm-hppa.h: Ditto.
45 * cli/cli-decode.c: Ditto.
46 * cli/cli-cmds.c: Ditto.
48 2003-09-19 Andrew Cagney <cagney@redhat.com>
50 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
51 DEPRECATED_NPC_REGNUM.
52 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
54 2003-09-19 Christopher Faylor <cgf@redhat.com>
56 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
58 2003-09-19 Jim Blandy <jimb@redhat.com>
60 * macrotab.c (macro_include): Use the correct comparison to find
61 the appropriate place for this inclusion in the list.
63 2003-09-19 Andrew Cagney <cagney@redhat.com>
65 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
66 (DEPRECATED_HPUX_TEXT_END): Define.
67 (deprecated_hpux_text_end): Declare.
68 (struct target_ops): Declare opaque.
69 * hppah-nat.c (text_end): Make static.
70 (deprecated_hpux_text_end): New function.
71 * exec.c (text_end): Delete global variable.
72 (NEED_TEXT_START_END): Do not define.
73 (exec_file_attach): Replace code computing "text_end" code with
74 call to DEPRECATED_HPUX_TEXT_END.
76 2003-09-19 Andrew Cagney <cagney@redhat.com>
78 * utils.c (align_up, align_down): New functions.
79 * defs.h (align_up, align_down): Declare.
80 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
81 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
83 (round_up, round_down): Delete functions.
84 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
86 (ROUND_DOWN, ROUND_UP): Delete macros.
87 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
88 * h8300-tdep.c: Replace "round_up" and "round_down" with
89 "align_up" and "align_down".
90 (round_up, round_down): Delete macros.
91 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
93 (ROUND_UP, ROUND_DOWN): Delete macros.
95 2003-09-18 J. Brobecker <brobecker@gnat.com>
97 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
98 hard-coded constant. Use the proper machine name instead.
100 2003-09-17 Andrew Cagney <cagney@redhat.com>
102 * sparc-tdep.c (legacy_register_name): Delete function.
103 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
104 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
105 * infcmd.c (gdb_register_name): Delete variable.
106 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
107 REGISTER_NAME and "tm.h".
108 * gdbarch.h, gdbarch.c: Regenerate.
109 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
110 REGISTER_NAMES in comments.
111 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
112 * m68klinux-nat.c (regmap): Ditto.
114 2003-09-17 Jim Blandy <jimb@redhat.com>
116 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
118 2003-09-17 Andrew Cagney <cagney@redhat.com>
120 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
121 (ppcnbsd_init_abi): Set "use_struct_convention" to
122 "ppcnbsd_use_struct_convention".
124 2003-09-17 Mark Kettenis <kettenis@gnu.org>
126 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
127 * gdbarch.h, gdbarch.c: Regenerate.
128 (stabs_argument_has_addr): New architecture method.
129 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
130 * arch-utils.c: Include "buildsym.h".
131 (default_stabs_argument_has_addr): New function.
132 * stabsread.c (define_symbol): Use stabs_argument_has_addr
133 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
135 2003-09-17 Andrew Cagney <cagney@redhat.com>
137 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
138 * gdbarch.h, gdbarch.c: Regenerate.
139 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
140 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
141 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
142 * sparcnbsd-tdep.c: Update.
144 2003-09-17 Andrew Cagney <cagney@redhat.com>
146 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
147 * gdbarch.h, gdbarch.c: Regenerate.
148 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
149 * d10v-tdep.c, frame.c: Update.
150 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
151 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
152 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
153 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
154 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
155 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
156 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
157 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
158 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
159 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
160 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
161 * config/pa/nm-hppah.h: Update.
163 2003-09-16 Andrew Cagney <cagney@redhat.com>
165 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
166 "use_struct_convention" to "ppc_linux_use_struct_convention".
167 (ppc_linux_use_struct_convention): New function.
168 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
169 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
170 "rs6000_use_struct_convention".
171 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
173 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
176 2003-09-16 Andrew Cagney <cagney@redhat.com>
178 * buildsym.c: Remove more occurances of "register".
179 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
180 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
181 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
182 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
183 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
184 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
185 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
186 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
188 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
190 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
191 numbers to enumeration values.
192 * sh-tdep.c: Accomodate above change.
193 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
194 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
195 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
196 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
197 (IS_FPUSH): Rename from IS_FMOV.
198 (sh_extract_struct_value_address): Remove useless comment.
199 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
200 instead of own local values.
201 (sh_dump_tdep): Remove.
202 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
203 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
205 2003-09-15 Andrew Cagney <cagney@redhat.com>
207 * doublest.c (convert_floatformat_to_doublest): No longer need to
208 cast "exp_bias" to an int. Reverts 2002-12-04 change.
210 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
212 * values.c (unpack_double): Call floatformat_is_valid.
214 2003-09-15 Mark Kettenis <kettenis@gnu.org>
216 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
217 ps_strings into a long.
219 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
220 _initialize_am64fbsd_nat.
222 2003-09-15 Kevin Buettner <kevinb@redhat.com>
224 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
225 associated with DW_AT_ranges attribute is out of bounds.
227 2003-09-15 David Lecomber <dsl@sources.redhat.com>
229 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
231 2003-09-14 Michael Chastain <mec@shout.net>
233 * config/m68k/nm-apollo68v.h: Delete.
234 * config/m68k/xm-apollo68v.h: Delete.
236 2003-09-14 Andrew Cagney <cagney@redhat.com>
238 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
239 * dcache.c: Update copyrights and descriptions.
240 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
242 2003-09-14 Andrew Cagney <cagney@redhat.com>
244 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
245 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
247 2003-09-14 Andrew Cagney <cagney@redhat.com>
249 * alpha-nat.c: Remove some occurances of "register".
250 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
251 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
252 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
253 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
254 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
255 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
256 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
257 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
258 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
259 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
260 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
261 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
262 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
263 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
264 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
265 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
266 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
267 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
268 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
269 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
270 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
271 * values.c, vax-tdep.c, xcoffread.c: Ditto.
273 2003-09-13 Andrew Cagney <cagney@redhat.com>
275 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
276 * ppc-tdep.h (struct regcache): Declare opaque.
277 * objfiles.h (struct objfile_data): Declare opaque.
278 * cp-support.h (struct objfile): Declare opaque.
279 * linux-nat.h (target_waitstatus): Declare opaque.
281 2003-09-14 Mark Kettenis <kettenis@gnu.org>
283 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
284 (stabs_argument_has_addr): New architecture method.
285 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
286 * arch-utils.c: Include "buildsym.h".
287 (default_stabs_argument_has_addr): New function.
288 * stabsread.c (define_symbol): Use stabs_argument_has_addr
289 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
291 * cris-tdep.c (cris_gdbarch_init): Set
292 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
293 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
294 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
295 * mips-tdep.c (mips_gdbarch_init): Likewise.
296 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
297 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
299 2003-09-13 Andrew Cagney <cagney@redhat.com>
301 * values.c (using_struct_return): Delete "function" and "funcaddr"
303 * value.h (using_struct_return): Update declaration.
304 * infcmd.c (finish_command_continuation): Update.
305 (finish_command): Update.
306 * infcall.c (call_function_by_hand): Update.
307 * eval.c (evaluate_subexp_standard): Update.
309 2003-09-13 Christopher Faylor <cgf@redhat.com>
311 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
312 SSE registers since gdb will not operate correctly without this.
313 Restore include file ordering munged in previous change.
314 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
316 2003-09-13 Mark Kettenis <kettenis@gnu.org>
318 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
320 * gdbarch.c, gdbarch.h: Updated.
321 * infcall.c (call_function_by_hand): Update.
322 * stabsread.c (define_symbol): Updated.
324 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
326 2003-09-12 Christopher Faylor <cgf@redhat.com>
328 * win32-nat.c: Reorganize so that defines used by target headers are
329 actually defined by the system headers.
330 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
331 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
333 2003-09-12 Jim Blandy <jimb@redhat.com>
335 * dbxread.c (read_dbx_symtab): Don't report an internal error if
336 the file has no .data, .bss, or .rodata sections. Instead wait
337 until we see a variable alleged to live in one of those sections.
339 * dbxread.c (read_dbx_symtab): If we have no .data section and no
340 .bss section, presume that any variables we find live in the
343 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
344 offsets for global and static variables.
346 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
347 symbol types are, by definition, in the .data section, so it is
348 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
349 If there is no .data section, there should be no N_DATA or N_DATA
352 2003-09-12 Mark Kettenis <kettenis@gnu.org>
354 * amd64fbsd-tdep.c: Fix sigtramp recognition.
355 (amd64fbsd_sigcontext_addr): Rewrite.
356 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
358 (amd64fbsd_sc_reg_offset): Initialize with correct values.
359 (amd64fbsd_init_abi): Fix typo.
361 2003-09-12 Andrew Cagney <cagney@redhat.com>
363 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
364 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
366 2003-09-12 Andrew Cagney <cagney@redhat.com>
368 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
369 "entry_file_highpc". Update comments.
370 * defs.h (deprecated_inside_entry_file): Rename
372 * blockframe.c (deprecated_inside_entry_file): Rename
374 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
375 * vax-tdep.c (vax_frame_chain): Update.
376 * sh64-tdep.c (sh64_frame_chain): Update.
377 * sh-tdep.c (sh_frame_chain): Update.
378 * rs6000-tdep.c (rs6000_frame_chain): Update.
379 * ns32k-tdep.c (ns32k_frame_chain): Update.
380 * mips-tdep.c (mips_frame_chain): Update.
381 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
382 * m32r-tdep.c (m32r_frame_this_id): Update.
383 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
384 * frv-tdep.c (frv_frame_this_id): Update.
385 * d10v-tdep.c (d10v_frame_this_id): Update.
386 * cris-tdep.c (cris_frame_chain): Update.
387 * blockframe.c (legacy_frame_chain_valid): Update.
388 * avr-tdep.c (avr_frame_this_id): Update.
389 * arm-tdep.c (arm_prologue_this_id): Update.
390 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
391 * objfiles.c (objfile_relocate): Update.
392 * mipsread.c (mipscoff_symfile_read): Update.
393 (mipscoff_symfile_read): Update.
394 * mdebugread.c (parse_partial_symbols): Update.
395 * dwarfread.c (read_file_scope): Update.
396 * dwarf2read.c (read_file_scope): Update.
397 * dbxread.c (read_dbx_symtab): Update.
398 (read_dbx_symtab): Update.
399 * coffread.c (complete_symtab): Update.
401 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
403 * top.c (quit_target): New static helper function.
404 (quit_force): Moved code to quit_target(). Call quit_target()
405 via catch_errors() to catch errors during quit.
407 2003-09-11 David Carlton <carlton@kealia.com>
409 * buildsym.c (finish_block): Use allocate_block to allocate the
411 * mdebugread.c (new_block): Add FIXME.
413 2003-09-11 David Carlton <carlton@kealia.com>
415 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
416 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
417 (recursive_dump_type): Ditto.
418 * printcmd.c (print_formatted): Ditto.
419 * typeprint.c (print_type_scalar): Ditto.
420 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
421 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
422 * cp-support.h: Declare cp_check_possible_namespace_symbols,
423 maint_cplus_cmd_list.
424 * cp-support.c: Make maint_cplus_cmd_list extern.
425 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
427 (lookup_symbol_file): Look in possible namespace blocks when
429 (initialize_namespace_symtab): New.
430 (get_possible_namespace_block, free_namespace_block)
431 (check_possible_namespace_symbols)
432 (check_possible_namespace_symbols_loop)
433 (check_one_possible_namespace_symbol)
434 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
435 (_initialize_cp_namespace): Ditto.
436 * block.h: Declare allocate_block.
437 * block.c (allocate_block): New.
438 * jv-lang.c (get_java_class_symtab): Allocate blocks via
440 * symfile.h: Update declaration of add_psymbol_to_list.
441 * symfile.c (add_psymbol_to_list): Return the partial symbol in
443 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
444 scan_partial_symbols_call.
445 (scan_partial_symbols): Add NAMESPACE argument; update calls to
447 (add_partial_symbol): If necessary, scan mangled names for names
449 (add_partial_namespace): Add NAMESPACE argument; generate partial
450 symbols associated to namespaces.
451 (add_partial_enumeration): Add NAMESPACE argument.
452 (new_symbol): Allow namespace syms.
453 (read_namespace): Generate namespace syms.
454 * objfiles.h: Add opaque declaration of struct symtab.
455 (struct objfile): Add cp_namespace_symtab member.
456 * objfiles.c (allocate_objfile): Set
457 objfile->cp_namespace_symtab.
458 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
459 dictionary_h, command_h.
461 2003-09-11 Andrew Cagney <cagney@redhat.com>
463 * rs6000-tdep.c (rs6000_push_dummy_call): Use
464 regcache_raw_write_signed to set SP_REGNUM, move the operation to
465 near the function's end.
466 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
467 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
468 regcache_raw_write_signed to set SP_REGNUM.
470 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
472 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
473 orig_addrs is set up properly.
475 2003-09-11 Andrew Cagney <cagney@redhat.com>
477 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
478 * gdbarch.h, gdbarch.c: Re-generate.
479 * infcall.c (call_function_by_hand): Update.
480 * hppa-tdep.c (hppa_push_arguments): Update.
481 * ada-lang.c (place_on_stack): Update.
482 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
483 * sparc-tdep.c (sparc_gdbarch_init): Update.
484 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
485 * hppa-tdep.c (hppa_gdbarch_init): Update.
486 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
489 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
491 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
492 register do need a frame.
494 2003-09-11 Andrew Cagney <cagney@redhat.com>
496 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
497 buildable since GDB 5.0.
498 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
499 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
500 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
501 * irix4-nat.c: Delete file.
502 * config/mips/irix4.mh: Delete file.
503 * config/mips/irix3.mh: Delete file.
504 * config/mips/irix3.mt: Delete file.
505 * config/mips/tm-irix3.h: Delete file.
506 * config/mips/nm-irix3.h: Delete file.
507 * config/mips/xm-irix3.h: Delete file.
508 * config/mips/nm-irix4.h: Delete file.
509 * config/mips/xm-irix4.h: Delete file.
510 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
512 2003-09-10 J. Brobecker <brobecker@gnat.com>
514 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
515 * Makefile.in (hppa-tdep.o): Update dependencies.
517 2003-09-10 James E Wilson <wilson@specifixinc.com>
519 * MAINTAINERS: Change my e-mail address. Move to paper trail
522 2003-09-10 Kevin Buettner <kevinb@redhat.com>
524 * MAINTAINERS (frv): New ISA entry.
526 2003-09-10 Kevin Buettner <kevinb@redhat.com>
528 * frv-tdep.c (dis-asm.h): Include.
529 * Makefile.in (frv-tdep.o): Update dependencies.
531 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
533 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
534 Fix typo for high range of floating registers.
536 2003-09-09 David Carlton <carlton@kealia.com>
538 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
539 highpc initialization here out of scan_partial_symbols.
540 (scan_partial_symbols): Restructure into a recursive version,
541 calling add_partial_namespace and add_partial_enumeration when
543 (add_partial_namespace): New.
544 (add_partial_enumeration, locate_pdi_sibling): Ditto.
546 2003-09-09 Andrew Cagney <cagney@redhat.com>
548 * rs6000-tdep.c (ppc_push_return_address): Delete function.
549 (rs6000_push_dummy_call): Set LR to BP_ADDR.
550 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
551 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
553 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
554 (rs6000_push_dummy_call): Set the "TOC" register.
556 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
557 methods "max_register_raw_size", "max_register_virtual_size" or
558 "register_virtual_size".
560 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
562 * MAINTAINERS: Update my e-mail address.
564 2003-09-09 Andrew Cagney <cagney@redhat.com>
566 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
567 (rs6000_push_dummy_call): Store the struct return address.
568 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
570 2003-09-09 Andrew Cagney <cagney@redhat.com>
572 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
573 "ppc_sysv_abi_push_arguments".
574 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
575 "ppc_sysv_abi_push_arguments".
576 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
577 instead of "push_arguments".
578 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
580 2003-09-09 Andrew Cagney <cagney@redhat.com>
582 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
583 instead of CALL_DUMMY_ADDRESS.
585 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
587 * p-lang.c: Eliminate "register".
596 * objc-lang.c: Ditto.
598 2003-09-09 Nick Clifton <nickc@redhat.com>
600 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
602 2003-09-04 Andrew Cagney <cagney@redhat.com>
604 * avr-tdep.c: Include "dis-asm.h".
605 * cris-tdep.c: Include "dis-asm.h".
606 (cris_delayed_get_disassembler): Use "struct disassemble_info"
607 instead of corresponding typedef.
608 * h8300-tdep.c: Include "dis-asm.h".
609 * ia64-tdep.c: Include "dis-asm.h".
610 * i386-tdep.c: Include "dis-asm.h".
611 (i386_print_insn): Use "struct disassemble_info" instead of
612 corresponding typedef.
613 * m68k-tdep.c: Include "dis-asm.h".
614 * mcore-tdep.c: Include "dis-asm.h".
615 * mips-tdep.c: Include "dis-asm.h".
616 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
617 instead of corresponding typedef.
618 * ns32k-tdep.c: Include "dis-asm.h".
619 * s390-tdep.c: Include "dis-asm.h".
620 * sparc-tdep.c: Include "dis-asm.h".
621 * vax-tdep.c: Include "dis-asm.h".
622 * v850-tdep.c: Include "dis-asm.h".
623 * mn10300-tdep.c: Include "dis-asm.h".
624 * rs6000-tdep.c: Include "dis-asm.h".
625 * xstormy16-tdep.c: Include "dis-asm.h".
626 (_initialize_xstormy16_tdep): Delete "extern" declaration of
627 print_insn_xstormy16.
628 * Makefile.in (v850-tdep.o): Update dependencies.
629 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
630 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
631 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
632 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
633 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
634 (gdbarch_h): Remove $(dis_asm_h).
635 * disasm.c: Include "dis-asm.h".
636 (dis_asm_read_memory): Use "struct disassemble_info" instead of
637 corresponding typedef.
638 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
639 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
640 * gdbarch.sh: Do not include "dis-asm.h".
641 (struct disassemble_info): Declare opaque.
642 (TARGET_PRINT_INSN): Update declaration.
643 * gdbarch.h, gdbarch.c: Re-generate.
645 2003-09-08 Andrew Cagney <cagney@redhat.com>
647 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
648 CALL_DUMMY_ADDRESS, change to a predicate.
649 * gdbarch.h, gdbarch.c: Re-generate.
650 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
651 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
652 * infcall.c (call_function_by_hand): Ditto.
653 * sparc-tdep.c (sparc_push_return_address): Ditto.
654 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
655 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
656 CALL_DUMMY_ADDRESS with entry_point_address.
657 * v850-tdep.c (v850_push_return_address): Ditto.
658 * s390-tdep.c (s390_push_return_address): Ditto.
659 * rs6000-tdep.c (ppc_push_return_address): Ditto.
660 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
661 * mcore-tdep.c (mcore_push_return_address): Ditto.
662 * cris-tdep.c (cris_push_return_address): Ditto.
663 * arm-tdep.c (arm_push_return_address): Ditto.
665 2003-09-08 Andrew Cagney <cagney@redhat.com>
667 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
668 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
669 and REG_UNMODIFIED to REG_SAME_VALUE.
670 (execute_cfa_program): Update.
671 (dwarf2_frame_cache): Update. Initialize table to
672 REG_UNSPECIFIED, complain if CFI fails to specify a register's
674 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
676 2003-09-08 Andrew Cagney <cagney@redhat.com>
678 * gnu-nat.c: Remove "inline" function attribute.
679 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
681 2003-09-08 Kevin Buettner <kevinb@redhat.com>
683 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
686 2003-09-08 Kevin Buettner <kevinb@redhat.com>
688 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
689 (frame_extra_info): Rename this struct to frv_unwind_cache.
690 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
691 Add fields ``prev_sp'' and ``base''.
692 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
693 (frv_saved_pc_after_call, frv_init_extra_frame_info)
694 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
696 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
697 Revise all callers. Fill in the unwind cache argument and make
698 other adjustments to account for new frame mechanisms.
699 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
700 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
701 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
702 (frv_frame_unwind, frv_frame_base): New structs.
703 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
704 additional arguments expected by this method and adjust function
706 (frv_gdbarch_init): Remove calls to the following functions:
707 set_gdbarch_deprecated_init_frame_pc(),
708 set_gdbarch_deprecated_saved_pc_after_call(),
709 set_gdbarch_deprecated_frame_chain(),
710 set_gdbarch_deprecated_frame_saved_pc(),
711 set_gdbarch_deprecated_frame_init_saved_regs(),
712 set_gdbarch_deprecated_push_arguments(),
713 set_gdbarch_deprecated_push_return_address(),
714 set_gdbarch_deprecated_pop_frame(),
715 set_gdbarch_deprecated_call_dummy_words(),
716 set_gdbarch_deprecated_sizeof_call_dummy_words(),
717 set_gdbarch_deprecated_init_extra_frame_info(),
718 set_gdbarch_deprecated_dummy_write_sp(), and
719 set_gdbarch_deprecated_pc_in_call_dummy().
720 Add calls to the following functions:
721 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
722 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
723 frame_base_set_default().
724 * Makefile.in (frv-tdep.o): Update dependencies.
726 2003-09-09 Mark Kettenis <kettenis@gnu.org>
728 * dwarf2-frame.c (read_encoded_value): Add support for
729 DW_EH_PE_aligned encoding.
731 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
733 * infrun.c (normal_stop): Don't print a message if the inferior
736 2003-09-08 Jim Blandy <jimb@redhat.com>
738 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
739 * dbxread.c: #include "gdb_assert.h".
740 (read_dbx_symtab): If the objfile has no .data section, use the
741 section index for the .bss section instead.
743 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
745 * frame.c (deprecated_safe_get_selected_frame): New function.
746 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
747 * findvar.c (read_var_value): Call it.
749 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
751 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
752 (sh64-tdep.o): Add dependencies.
753 * configure.tgt: Add FIXME to sh-*-linux*.
754 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
755 (sh_gdbarch_init): Always set correct sh_show_regs function
756 pointer. Call sh64_gdbarch_init() if machine type is sh5.
757 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
758 * sh64-tdep.c: New file, containing all sh64 related code from
760 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
761 * config/sh/linux.mt (TDEPFILES): Ditto.
762 * config/sh/nbsd.mt (TDEPFILES): Ditto.
763 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
764 * config/sh/wince.mt (TDEPFILES): Ditto.
766 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
768 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
769 (stop_wait_callback): Handle !lp->signalled also.
770 (lin_lwp_has_pending, flush_callback): New functions.
771 (lin_lwp_wait): Call flush_callback.
772 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
773 (linux_proc_pending_signals): New function.
774 * linux-nat.h (linux_proc_pending_signals): Add prototype.
776 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
778 From Nick Kelsey <nickk@ubicom.com>:
779 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
780 when the stop PC is at the beginning of a function also.
782 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
784 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
785 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
787 2003-09-06 Mark Kettenis <kettenis@gnu.org>
789 * sol-thread.c: Include "gdb_string.h".
791 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
793 * gcore.c: Reorder include files in alphabetical order. Include
794 "gdb_assert.h". Various coding style fixes.
795 (derive_stack_segment, derive_heap_segment): Replace check for
796 non-null BOTTOM and TOP with gdb_assert.
797 (derive_heap_segment): Replace check for successful creation of
798 ZERO with gdb_assert.
799 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
801 2003-09-04 Andrew Cagney <cagney@redhat.com>
803 * thread-db.c (verbose_dlsym): New function.
804 (thread_db_load): Use verbose_dlsym
805 (thread_db_new_objfile): Print that libthread_db was loaded, and
806 that thread debugging was enabled.
808 2003-09-04 Andrew Cagney <cagney@redhat.com>
810 * configure.tgt: Add "mips64*-*-*" target. Delete
811 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
812 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
813 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
814 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
815 mips*-sony-*, and mips64*-*-elf* targets.
816 * config/mips/embedl.mt: Delete file.
817 * config/mips/embedl64.mt: Delete file.
818 * config/mips/mips.mt: Delete file.
819 * config/mips/mips64.mt: Delete file.
820 * config/mips/tm-embed.h: Delete file.
821 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
822 * config/mips/embed64.mt: Delete out-of-date comment.
824 2003-09-04 Andrew Cagney <cagney@redhat.com>
826 * hppa-tdep.c (hppa_gdbarch_init): Set
827 "have_nonsteppable_watchpoint".
828 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
829 * mips-tdep.c (mips_dump_tdep): Do not print
830 HAVE_NONSTEPPABLE_WATCHPOINT.
831 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
832 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
833 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
834 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
836 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
838 * breakpoint.c (watchpoint_check): Remove accidentally checked in
839 unused code. Add comment.
841 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
843 * breakpoint.c (watchpoint_check): Check for pc being in an
844 epilogue if watchpoint frame couldn't be found.
846 2003-09-04 Andrew Cagney <cagney@redhat.com>
848 * Makefile.in: Re-generate all dependencies.
850 2003-09-03 Andrew Cagney <cagney@redhat.com>
852 * arch-utils.h (legacy_print_insn): Delete declaration.
853 * arch-utils.c (legacy_print_insn): Delete function.
854 * disasm.c (deprecated_tm_print_insn_info): Delete.
855 (_initialize_disasm): Delete function, contained code initializing
856 deprecated_tm_print_insn_info.
857 * gdbarch.sh (deprecated_tm_print_insn): Delete.
858 (deprecated_tm_print_insn_info): Delete.
859 (TARGET_PRINT_INSN): Do not provide a default.
860 * gdbarch.h, gdbarch.c: Re-generate.
862 2003-09-03 Andrew Cagney <cagney@redhat.com>
864 * disasm.c (fprintf_disasm): New function.
865 (gdb_disassemble_info): Call "init_disassemble_info", instead of
866 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
867 reverts 2003-08-14 change.
868 (_initialize_disasm): Call "init_disassemble_info", instead of
869 INIT_DISASSEMBLE_INFO_NO_ARCH.
871 2003-09-03 Michael Snyder <msnyder@redhat.com>
873 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
875 2003-09-03 Andrew Cagney <cagney@redhat.com>
877 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
878 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
879 * symfile.c (syms_from_objfile): Update.
880 (reread_symbols): `Update
881 * exec.c (exec_file_attach): Update.
882 (exec_file_attach): Update.
883 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
885 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
887 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
889 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
891 (arm_get_cache): Delete macro.
892 (struct arm_prologue_cache): Update comments. Make saved_regs into
893 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
895 (thumb_scan_prologue): Update for cache changes. Don't call
896 DEPRECATED_PC_IN_CALL_DUMMY.
897 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
898 argument and use it in desperation search for our prologue. Do not
899 search past the specified PC.
900 (arm_make_prologue_cache): Simplify.
902 (arm_prologue_this_id, arm_prologue_prev_register)
903 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
904 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
905 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
906 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
907 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
909 (arm_frame_chain_valid, arm_find_callers_reg)
910 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
911 (arm_pop_frame): Delete obsolete methods.
912 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
914 (arm_gdbarch_init): Update for new frame methods. Register prologue
915 and sigtramp unwinders. Set the default frame base method.
917 * Makefile.in (arm-tdep.o): Update dependencies.
918 * varobj.c (find_frame_addr_in_frame_chain): Call
919 get_frame_base_address.
920 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
922 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
924 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
925 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
926 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
927 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
928 Take NEXT_FRAME and CACHE arguments. Call
929 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
930 Set unwound_pc in CACHE instead of modifying the frame argument.
931 Don't bother checking the frame type when looking for sigtramp
933 (arm_make_prologue_cache, arm_frame_chain)
934 (arm_init_extra_frame_info): New functions.
936 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
938 * arm-tdep.c (arm_get_cache): Define.
939 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
940 unwound_sp, unwound_pc, and saved_regs.
941 (thumb_scan_prologue): Take a cache instead of the frame.
942 (arm_scan_prologue): Likewise.
943 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
944 instead of a temporary frame.
945 (arm_init_extra_frame_info): Allocate and use a cache.
946 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
948 2003-09-03 Andrew Cagney <cagney@redhat.com>
950 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
951 * config/mips/wince.mt (TM_CLIBS): Ditto.
952 * config/sh/wince.mt (TM_CLIBS): Ditto.
953 * config/pa/hppa64.mt (TM_CLIBS): Delete.
954 * config/sparc/sp64.mt (CC): Delete.
956 2003-09-03 Andrew Cagney <cagney@redhat.com>
958 * defs.h: Do not include "arch-utils.h".
959 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
961 * configure.in (GDB_MULTI_ARCH): Do not define.
962 * configure, config.in: Regenerate.
963 * configure.tgt: Do not set variable "gdb_multi_arch".
964 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
965 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
966 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
967 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
968 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
969 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
970 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
971 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
972 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
973 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
974 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
975 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
976 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
977 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
978 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
979 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
980 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
981 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
983 2003-08-30 Michael Chastain <mec@shout.net>
985 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
986 * config/m68k/nm-hp300hpux.h: Delete.
987 * config/m68k/tm-hp300hpux.h: Delete.
988 * config/m68k/xm-hp300hpux.h: Delete.
989 * config/m68k/xm-hp300bsd.h: Delete.
990 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
991 tm-hp300hpux.h, xm-hp300hpux.h.
992 * somsolib.c: Remove comment about hp300 shared libraries.
994 2003-08-31 Mark Kettenis <kettenis@gnu.org>
996 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
997 Only define PTRACE_GET_THREAD_AREA is not already defined.
998 Various style fixes in code and comments and some additional
999 spelling fixes in comments. Move after functions dealing with
1001 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1004 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1005 frame_unwind_register_unsigned instead of
1006 frame_unwind_unsigned_register.
1008 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1010 * configure.in: Search for gethostbyname in libnsl.
1011 * configure: Regenerated.
1013 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1015 * configure.in: Remove redundant AC_MSG_RESULT in check for
1016 uintptr_t in stdint.h.
1017 * configure: Regenerated.
1019 * amd64-nat.h (struct regcache): Add opaque declaration.
1021 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1022 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1023 Change "register array" to "register cache" in comments.
1024 (x86_64_linux_gregset64_reg_offset): New variable.
1025 (GETREGS_SUPPLIES): Remove macro.
1026 (supply_gregset): Call amd64_supply_native_gregset instead of
1027 x86_64_linux_supply_gregset.
1028 (fill_gregset): Rename `regno' to `regnum'. Call
1029 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1030 (store_regs): Rename `regno' to `regnum'.
1031 (store_fpregs): Rename `regno' to `regnum'.
1032 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1033 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1034 Reorganize function a bit.
1035 (store_inferior_registers): Rename `regno' to `regnum'. Use
1036 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1037 Reorganize function a bit.
1038 (_initialize_x86_64_linux_nat): New function.
1039 * config/i386/x86-64linux.mh.
1041 2003-08-29 Andrew Cagney <cagney@redhat.com>
1043 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1044 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1045 (target_remove_watchpoint): Delete macro.
1046 (target_insert_watchpoint): Delete macro.
1047 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1048 (remote_mips_stopped_by_watchpoint): Delete declaration.
1049 (remote_mips_remove_watchpoint): Delete declaration.
1050 (remote_mips_set_watchpoint): Delete declaration.
1051 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1052 * remote-mips.c (_initialize_remote_mips): Set
1053 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1054 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1055 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1056 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1057 (mips_stopped_by_watchpoint): Rename
1058 remote_mips_stopped_by_watchpoint.
1059 (mips_can_hardware_watchpoint): Rename
1060 remote_mips_can_use_hardware_watchpoint, update function
1063 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1065 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1066 USER_DS. We haven't given them a register number yet.
1068 * amd64-nat.h: New file.
1069 * amd64-nat.c: New file.
1070 * amd64fbsd-nat.c: Include "amd64-nat.h".
1071 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1072 (amd64fbsd32_r_reg_offset): New variable.
1073 (supply_gregset): Simply call amd64_supply_native_gregset.
1074 (fill_gregset): Rename `regno' to `regnum'. Simply call
1075 amd64_collect_native_gregset.
1076 (fill_fpregset): Rename `regno' to `regnum'.
1077 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1078 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1079 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1080 `fpregset_t'. Call amd64_supply_native_gregset instead of
1081 supply_gregset. Call x86_64_supply_fxsave instead of
1083 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1084 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1085 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1086 `fpregset_t'. Call amd64_collect_native_gregset instead of
1087 fill_gregset. Call x86_64_collect_fxsave instead of
1089 (_initialize_am64fbsd_nat): Initialize
1090 amd64_native_gregset32_reg_offset and
1091 amd64_native_gregset64_reg_offset.
1092 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1094 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1095 null pointer. Fix typo in comment.
1097 * regcache.c (supply_register): Reimplement to call
1098 regcache_raw_supply.
1099 (regcache_collect): Reimplement by calling regcache_raw_collect.
1101 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1103 * regcache.c (register_buffer): Consitify first argument.
1104 (regcache_raw_supply, regcache_raw_collect): New
1107 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1109 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1110 by Nathan J. Williams.
1112 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1114 * lin-lwp.c (wait_lwp): New function, copied from
1115 stop_wait_callback. Clean up.
1116 (stop_wait_callback): Use wait_lwp.
1118 2003-08-28 Andrew Cagney <cagney@redhat.com>
1120 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1121 flavour and disassembler options.
1122 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1123 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1124 deprecated_tm_print_insn_info.
1126 2003-08-27 Andrew Cagney <cagney@redhat.com>
1128 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1129 Use target_read_memory.
1130 (s390_get_frame_info): Update. Do not reference
1131 deprecated_tm_print_insn_info.
1132 (s390_check_function_end, s390_is_sigreturn): Ditto.
1134 2003-08-27 Andrew Cagney <cagney@redhat.com>
1136 * Makefile.in (cris-tdep.o): Update dependencies.
1137 * cris-tdep.c: Include "gdb_assert.h".
1138 (cris_gdbarch_init): Set print_insn.
1139 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1140 (cris_delayed_get_disassembler): Simplify, directly call the
1141 disassembler returned by cris_get_disassembler.
1142 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1143 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1144 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1145 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1146 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1147 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1148 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1149 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1150 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1151 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1152 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1153 (gdb_print_insn_sparc): Delete function.
1154 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1155 deprecated_tm_print_insn_info.
1156 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1157 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1158 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1159 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1160 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1161 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1162 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1163 (s390_gdbarch_init): Set print_insn.
1165 2003-08-27 Andrew Cagney <cagney@redhat.com>
1167 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1168 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1169 * infcall.c (call_function_by_hand): Convert the entry point
1170 address into a code address.
1172 2003-08-27 Andrew Cagney <cagney@redhat.com>
1174 * dsrec.c: Include "gdb_string.h".
1175 * Makefile.in (dsrec.o): Update dependencies.
1177 2003-08-27 Michael Chastain <mec@shout.net>
1179 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1181 2003-08-27 Andrew Cagney <cagney@redhat.com>
1183 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1184 (alpha_osf1_init_abi): Do not set call_dummy_address.
1186 2003-08-27 David Carlton <carlton@kealia.com>
1188 From Randolph Chung <tausq@debian.org>:
1189 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1190 compiles with -Wformat-nonliteral -Werror.
1192 2003-08-26 Jim Blandy <jimb@redhat.com>
1194 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1195 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1196 bfd_lookup_symbol, since we only want symbols in code sections.
1197 (look_for_base): Pass zero as the SECT_FLAGS argument to
1198 bfd_lookup_symbol, since we're not concerned about which section
1201 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1203 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1204 we are frameless or the return address register is already known.
1206 2003-08-26 Andrew Cagney <cagney@redhat.com>
1208 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1209 in size. Add comments.
1211 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1213 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1214 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1216 2003-08-26 Jason Merrill <jason@redhat.com>
1218 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1219 case out of #ifdef MIPS block.
1221 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1224 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1225 available before calling SECT_OFF_TEXT.
1226 * PROBLEMS: Remove description of java/1322.
1228 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1230 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1231 bof, and nat0-nat127 as pseudo-registers.
1232 (ia64_frame_cache): New struct used to cache frame info.
1233 (ia64_register_reggroup_p): New routine used to override default
1234 register grouping so registers without names are still saved and
1236 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1238 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1239 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1240 (ia64_alloc_frame_cache): New routine to create a new
1242 (examine_prologue): Change prototype to add next_frame pointer.
1243 Assume frameless until otherwise proven. Verify that the cfm for
1244 current frame matches the cfm that should occur for the prologues
1245 alloc insn and if equal, mark as not frameless. At end of routine,
1246 if not frameless, calculate registers for the previous frame and store
1247 in the cache, if a cache is provided.
1248 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1249 and pass 0 for next_frame.
1250 (ia64_store_return_value): Change to use convert_typed_floating()
1251 instead of calling ia64_convert_to_raw().
1252 (ia64_extract_return_value): Change to use convert_typed_floating()
1253 instead of calling ia64_convert_to_virtual().
1254 (ia64_frame_cache): New routine to support new frame model.
1255 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1256 (ia64_frame_sniffer): Ditto.
1257 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1258 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1259 (ia64_sigtramp_frame_prev_register): Ditto.
1260 (ia64_sigtramp_frame_sniffer): Ditto.
1261 (ia64_frame_base_address): Ditto.
1262 (ia64_extract_struct_value_address): Change to issue error message.
1263 (ia64_frame_align): New routine to align sp.
1264 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1265 (ia64_push_arguments): Removed. Logic moved to
1266 ia64_push_dummy_call().
1267 (ia64_push_return_address): Ditto.
1268 (ia64_unwind_dummy_id): New function.
1269 (ia64_unwind_pc): Ditto.
1270 (ia64_convert_register_p): Ditto.
1271 (ia64_register_to_value): Ditto.
1272 (ia64_value_to_register): Ditto.
1273 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1274 (ia64_register_byte, ia64_register_raw_size): Ditto.
1275 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1276 (ia64_saved_pc_after_call): Ditto.
1277 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1278 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1279 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1280 (ia64_register_convert_to_raw): Ditto.
1281 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1282 (ia64_init_extra_frame_info): Ditto.
1283 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1284 (ia64_gdbarch_init): Remove registering of deprecated functions that
1285 are no longer used. Add registration of new gdbarch functions.
1286 Remove registering deprecated_write_sp. Replace
1287 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1288 Delete set_gdbarch_deprecated_register_convertible(),
1289 set_gdbarch_deprecated_register_convert_to_virtual(), and
1290 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1291 set_gdbarch_deprecated_register_size(),
1292 set_gdbarch_deprecated_register_bytes(),
1293 set_gdbarch_pcregnum(),
1294 set_gdbarch_deprecated_register_byte(),
1295 set_gdbarch_deprecated_register_raw_size(),
1296 set_gdbarch_deprecated_max_register_raw_size(),
1297 set_gdbarch_deprecated_register_virtual_size(),
1298 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1299 Replace set_gdbarch_deprecated_extract_return_value() with
1300 set_gdbarch_extract_return_value(). Remove calls to:
1301 set_gdbarch_deprecated_saved_pc_after_call();
1302 set_gdbarch_deprecated_frame_chain(),
1303 set_gdbarch_deprecated_frame_saved_pc(),
1304 set_gdbarch_deprecated_frame_init_saved_regs(),
1305 set_gdbarch_deprecated_get_saved_register(),
1306 set_gdbarch_deprecated_call_dummy_words(),
1307 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1308 set_gdbarch_deprecated_init_extra_frame_info(),
1309 set_gdbarch_deprecated_frame_args_address(),
1310 set_gdbarch_deprecated_frame_locals_address(),
1311 and set_gdbarch_deprecated_dummy_write_sp().
1312 Add set_gdbarch_convert_register_p(),
1313 set_gdbarch_register_to_value(),
1314 set_gdbarch_value_to_register(),
1315 set_gdbarch_push_dummy_call(),
1316 set_gdbarch_frame_align(),
1317 set_gdbarch_unwind_dummy_id(),
1318 set_gdbarch_unwind_pc(),
1319 frame_unwind_append_sniffer(),
1320 frame_unwind_append_sniffer(),
1321 and frame_base_set_default().
1323 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1325 * configure.tgt: Document need for special "mipsisa64" handling.
1326 (mipsisa64*-*-linux64): Handle as target linux64.
1327 (mipsisa64*-*-*): Handle as target embed64.
1329 2003-08-18 Michael Chastain <mec@shout.net>
1331 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1334 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1336 * i387-tdep.h: Update copyright date.
1337 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1339 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1340 CFLAGS games to reflect reality.
1342 2003-08-24 Andrew Cagney <cagney@redhat.com>
1344 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1345 GDB_MULTI_ARCH is always non-zero.
1346 * osabi.c (_initialize_gdb_osabi): Ditto.
1347 (gdbarch_init_osabi): Ditto.
1348 * sparc-tdep.c: Ditto for #if code.
1350 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1352 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1354 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1356 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1357 x86_64_supply_fxsave.
1358 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1359 x86_64_supply_fxsave.
1360 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1361 x86_64_supply_fxsave.
1363 2003-08-23 Andreas Jaeger <aj@suse.de>
1365 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1368 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1370 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1371 i387_supply_register.
1372 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1373 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1375 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1377 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1379 * i386bsd-nat.c (supply_fpregset): Adjust call to
1381 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1382 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1384 (store_inferior_registers): Remove extraneous whitespace. Call
1385 i387_fill_fsave instead of fill_fpregset.
1386 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1387 (supply_fpregset): Likewise.
1388 * i386v4-nat.c (supply_fpregset): Adjust call to
1390 * i386-interix-nat.c (supply_fpregset): Adjust call to
1392 * i386-linux-nat.c (supply_fpregset): Adjust call to
1394 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1395 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1396 i387supply_fsave and i387_supply_fxsave.
1397 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1398 Incorporate code from `i387_supply_register.
1399 (i387_supply_register): Remove.
1400 (i387_supply_fxsave): Add `regnum' argument.
1402 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1404 (i387_supply_register): remove prototype.
1407 2003-08-22 Michael Chastain <mec@shout.net>
1409 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1410 Add lines for files in gdb/testsuite/gdb.cp/* that are
1411 still not 8.3 unique.
1413 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1415 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1416 TYPE_VPTR_FIELDNO is valid.
1418 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1420 * utils.c (set_width_command): Remove prototypes.
1421 (set_screen_size): New prototype.
1422 (init_page_info): Simplify by fetching the screen size from
1423 Readline. Call set_screen_size.
1424 (set_screen_size): New function.
1425 (set_width): Add missing whitespace in comment.
1426 (set_width_command): Call set_screen_size.
1427 (set_height_command): New function.
1428 (initialize_utils): Fix formatting. Make "set height" command
1429 call set_height_command. Remove redundant code that turns off
1430 pagination if output isn't a terminal. Remove redundant call to
1433 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1435 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1436 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1437 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1438 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1440 (sparc64_register_info): Give the reister with number
1441 SPARC64_STATE_REGNUM a name.
1442 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1444 (sparc64_push_dummy_call): Take BIAS into account when checking
1446 (sparc_software_single_step): Remove assertions that check whether
1447 NPC and NNPC were zero.
1448 (sparc_supply_rwindow): Make public. Merge functionality with
1449 sparc64_supply_rwindow.
1450 (sparc_fill_rwindow): Make public. Merge functionality with
1451 sparc64_fill_rwindow.
1452 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1453 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1454 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1455 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1456 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1458 * reggroups.c: Add whitespace after declarations of local
1459 variables in functions.
1461 2003-08-21 Michael Chastain <mec@shout.net>
1463 * gdbtypes.h: Change array bound type from an int to enum.
1465 2003-08-21 Andrew Cagney <cagney@redhat.com>
1467 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1468 * config/sparc/tm-sparc.h: Ditto.
1469 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1471 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1473 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1475 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1476 (register_objfile_data, set_objfile_data, objfile_data): New
1478 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1480 (allocate_objfile): Call objfile_alloc_data.
1481 (free_objfile): Call objfile_free_data.
1482 (struct objfile_data): New.
1483 (struct objfile_data_registration): New.
1484 (struct objfile_data_registry): New.
1485 (objfile_data_registry): New variable.
1486 (register_objfile_data): New function.
1487 (objfile_alloc_data, objfile_free_data): New functions.
1488 (set_objfile_data, objfile_data): New functions.
1489 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1490 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1491 (_initialize_dwarf2_frame): New function and prototype.
1493 2003-08-21 Andrew Cagney <cagney@redhat.com>
1495 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1496 a specific architecture.
1497 * arch-utils.h (set_architecture_from_arch_mach): Delete
1499 (target_architecture_hook): Delete declaration.
1500 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1501 (default_float_format): Assume GDB_MULTI_ARCH.
1502 (default_double_format): Assume GDB_MULTI_ARCH.
1503 (set_endian_from_file): Delete function.
1504 (arch_ok): Delete function.
1505 (set_arch): Delete function.
1506 (set_architecture_from_arch_mach): Delete function.
1507 (set_architecture_from_file): Delete function.
1508 (set_architecture): Assume GDB_MULTI_ARCH.
1509 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1511 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1513 Rewrite FreeBSD/sparc64 native configuration.
1514 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1515 * sparc64fbsd-nat.c: New file.
1516 * sparc64fbsd-tdep.c: New file.
1517 * sparc64-tdep.c sparc64-tdep.h: New files.
1518 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1519 sparc64fbsd-tdep.o): New dependencies.
1520 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1521 and sparc64fbsd-tdep.c.
1522 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1523 * config/sparc/fbsd.mh: Remove copyright notice.
1524 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1526 * config/sparc/fbsd.mt: Remove copyright notice.
1527 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1528 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1529 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1530 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1531 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1532 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1533 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1534 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1536 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1537 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1539 2003-08-21 Michael Chastain <mec@shout.net>
1541 * symtab.h: Add doco on the space critical structures and
1542 some measurements of space usage.
1544 2003-08-21 Michael Snyder <msnyder@redhat.com>
1546 * tracepoint.c (trace_dump_command): Trace break address
1547 is subject to DECR_PC_AFTER_BREAK.
1548 (set_traceframe_context): Make "trace_line" an int.
1549 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1551 2003-08-20 Michael Snyder <msnyder@redhat.com>
1553 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1554 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1555 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1557 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1558 functions, replace sh_push_dummy_call.
1559 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1561 2003-08-20 Michael Chastain <mec@shout.net>
1563 * gdbtypes.h (struct main_type): Rearrange to save space.
1565 2003-08-20 Michael Snyder <msnyder@redhat.com>
1567 * trad-frame.c: Comment typo fix.
1569 2003-08-20 Michael Snyder <msnyder@redhat.com>
1570 Kevin Buettner <kevinb@redhat.com>
1572 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1573 (frv_frame_init_saved_regs): Add declaration.
1574 (frame_extra_info): Add new field ``saved_regs''.
1575 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1576 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1577 Update frame related code.
1578 (frv_extract_struct_value_address): Adjust formatting.
1579 * Makefile.in (frv-tdep.o): Update dependencies.
1580 * config/frv/tm-frv.h (target_insert_watchpoint)
1581 (target_remove_watchpoint, target_insert_hw_breakpoint)
1582 (target_remove_hw_breakpoint): Delete these macros.
1583 (remote_insert_watchpoint, remote_remove_watchpoint)
1584 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1587 2003-08-20 Michael Chastain <mec@shout.net>
1589 * defs.h (ENUM_BITFIELD): New macro.
1590 * symtab.h (ENUM_BITFIELD): Use it.
1591 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1593 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1595 * MAINTAINERS (write after approval): Add myself.
1597 2003-08-18 Andrew Cagney <cagney@redhat.com>
1599 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1600 * gdbarch.h, gdbarch.c: Re-generate.
1601 * infcall.c (call_function_by_hand): Adjust the SP by
1602 frame_red_zone_size before allocating any stack space.
1603 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1604 * x86-64-tdep.c (x86_64_frame_align): New function.
1605 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1607 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1608 Remove code adjusting SP so that it skips over the Red Zone.
1610 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1612 * NEWS (New native configurations): Mention FreeBSD/amd64.
1614 2003-08-18 Andrew Cagney <cagney@redhat.com>
1616 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1617 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1619 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1621 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1623 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1625 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1627 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1629 * i386-linux-nat.c: Include "linux-nat.h".
1630 (child_post_startup_inferior): New function.
1632 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1634 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1635 at the start of a frameless function. This probably fixes PR
1638 2003-08-17 Michael Chastain <mec@shout.net>
1640 * symfile.c (find_sym_fns): Remove special case for apollo target.
1642 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1644 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1645 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1646 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1647 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1648 (linux_supports_tracevforkdone): New function.
1649 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1651 (child_follow_fork): Handle vfork.
1652 (linux_handle_extended_wait): Likewise. Also handle exec.
1653 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1654 * NEWS: Mention fork tracing.
1656 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1658 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1660 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1662 * Makefile.in (i386-linux-nat.o): Update dependencies.
1663 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1664 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1665 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1666 * i386-linux-nat.c: Include "linux-nat.h".
1667 (child_post_startup_inferior): New function.
1668 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1669 * infptrace.c (kill_inferior): Wrap in #ifdef.
1670 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1671 attaching to each LWP.
1672 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1673 (init_lin_lwp_ops): Fill in some more operations.
1674 * linux-nat.h (linux_enable_event_reporting)
1675 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1677 * linux-nat.c (linux_enable_event_reporting): New function.
1678 (child_post_attach, linux_child_post_startup_inferior)
1679 (child_post_startup_inferior, child_follow_fork)
1680 (linux_handle_extended_wait, kill_inferior): New functions.
1682 2003-08-16 Andrew Cagney <cagney@redhat.com>
1684 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1685 * gdbarch.h, gdbarch.c: Re-generate.
1687 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1689 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1691 2003-08-16 Andrew Cagney <cagney@redhat.com>
1693 * NEWS: Mention that "set prompt-escape-char" was deleted.
1694 * top.c (get_prompt_1): Delete function.
1695 (gdb_prompt_escape):
1696 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1697 prompt-escape-char" command.
1698 (MAX_PROMPT_SIZE): Delete macro.
1699 (get_prompt): Simplify, do not call get_prompt_1.
1701 2003-08-16 Andrew Cagney <cagney@redhat.com>
1703 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1704 -Werror. -Wformat-nonliteral problems.
1706 2003-08-15 J. Brobecker <brobecker@gnat.com>
1708 Further multiarching work mostly for hppa64-*-hpux11:
1709 * hppa-tdep.h: New file.
1710 * hppa-tdep.c: #include hppa-tdep.c.
1711 (hppa32_num_regs): Renamed from hppa_num_regs.
1712 (hppa64_num_regs): New constant.
1713 (hppa64_call_dummy_breakpoint_offset): New constant.
1714 (hppa32_call_dummy_length): New constant.
1715 (hppa64_call_dummy_length): New constant.
1716 (hppa32_stack_align): Make name 32bit explicit.
1717 (hppa32_register_virtual_type): Likewise.
1718 (hppa32_extract_return_value): Likewise.
1719 (hppa32_use_struct_convention): Likewise.
1720 (hppa32_store_return_value): Likewise.
1721 (hppa64_register_virtual_type): New function.
1722 (hppa64_extract_return_value): New function.
1723 (hppa64_use_struct_convention): New function.
1724 (hppa64_store_return_value): New function.
1725 (hppa_frame_locals_address): Remove declaration, function does
1727 (hppa_register_byte): Add support for PA64 ABI.
1728 (hppa_gdbarch_init): Add support for PA64 ABI.
1729 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1730 Make name 32bit explicit.
1731 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1732 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1733 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1734 (hppa64_hpux_frame_base_before_sigtramp): New function.
1735 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1736 * config/pa/tm-hppa64.h: Remove macros that are no longer
1737 necessary now that the gdbarch vector is properly setup.
1738 Transform some macros into function calls. Some minor cleanup.
1739 * config/pa/tm-hppah.h: Update function calls in macros
1740 following the function renaming in hppa-hpux-tdep.c.
1741 * Makefile.in (hppa_tdep_h): New variable.
1742 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1744 2003-08-14 Michael Snyder <msnyder@redhat.com>
1746 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1748 2003-08-13 J. Brobecker <brobecker@gnat.com>
1750 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1751 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1754 2003-08-13 Michael Snyder <msnyder@redhat.com>
1756 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1757 (frv_saved_pc_after_call): Use deprecated ftype.
1758 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1759 (frv_remote_translate_xfer_address): Remove.
1760 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1762 2003-08-13 J. Brobecker <brobecker@gnat.com>
1764 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1765 initialization after the common gdbarch initialization, not before.
1767 2003-08-13 J. Brobecker <brobecker@gnat.com>
1769 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1770 (ADDR_BITS_REMOVE): Remove, redundant.
1772 2003-08-13 J. Brobecker <brobecker@gnat.com>
1774 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1775 gdbarch method to clear the 2 low bits of text addresses.
1777 2003-08-12 Andrew Cagney <cagney@redhat.com>
1779 * Makefile.in (dsrec.o): Update dependencies.
1780 * dsrec.c: Include "gdb_assert.h".
1781 (make_srec): Use snprintf instead of sprintf, use a literal format
1784 2003-08-12 Andrew Cagney <cagney@redhat.com>
1786 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1787 FRAME_OBSTACK_ZALLOC.
1789 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1791 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1794 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1796 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1797 amd64fbsd_sc_reg_offset): Add extern declarations.
1798 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1801 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1803 * MAINTAINERS (write after approval): Update my mail address.
1805 2003-08-10 Andrew Cagney <cagney@redhat.com>
1807 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1809 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1811 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1812 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1813 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1814 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1815 i386bsd_sc_reg_offset): Add extern declarations.
1816 * i386obsd-nat.c: Include "i386-tdep.h"
1817 (_initialize_i386obsd_nat): Remove extern declarations.
1818 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1820 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1823 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1824 instead of frame_read_register.
1825 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1826 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1828 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1829 instead of frame_unwind_unsigned_register. Use
1830 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1831 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1832 instead of read_register. Use builtin_type_void_data_ptr instead
1833 of builtin_type_void_func_ptr when extracting the address of the
1835 (i386_extract_return_value, i386_store_return_value,
1836 i386_pseudo_register_read, i386_pseudo_register_write): Use
1837 register_size instead REGISTER_RAW_SIZE.
1839 2003-08-10 Andrew Cagney <cagney@redhat.com>
1841 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1842 sprintf. Make "name" constant.
1844 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1846 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1847 instead of frame_read_register.
1848 (i387_print_float_info): Use get_frame_register and
1849 get_frame_register_unsigned instead of frame_register_read.
1851 * i386fbsd-nat.c: Include "i386-tdep.h".
1852 (child_resume): Make `eflags' an ULONGEST. Use
1853 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1854 instead of register_read and register_write.
1856 * i386bsd-nat.c (fetch_inferior_registers,
1857 store_inferior_registers): Don't use && at the end of a line.
1858 (_initialize_i386bsd_nat): Fix typo.
1860 * frame.c (_initialize_frame): Add missing backslash.
1862 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1863 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1864 and supply_register instead of manipulating the register buffer
1867 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1868 * config/i386/nm-i386sol2.h
1869 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1871 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1872 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1873 instructions that GCC likes to mingle into the prologue. Fixes
1874 gdb/1253 and gdb/1255.
1876 2003-08-09 Andrew Cagney <cagney@redhat.com>
1879 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1880 * command.h (add_setshow_uinteger_cmd): Declare.
1881 * frame.c (set_backtrace_cmd): New function.
1882 (show_backtrace_cmd): New function.
1883 * frame.c (_initialize_frame): Replace "set/show
1884 backtrace-below-main" with "set/show backtrace past-main". Add
1885 command "set/show backtrace limit".
1886 (backtrace_past_main): Rename "backtrace_below_main".
1887 (backtrace_limit): New variable.
1888 (get_prev_frame): Update. Check the backtrace_limit.
1890 2003-08-09 Andrew Cagney <cagney@redhat.com>
1892 * defs.h (xstrprintf): Declare.
1893 * utils.c (xstrprintf): New function.
1894 * breakpoint.c (insert_breakpoints): Replace sprintf and
1895 non-literal format strings, with xstrprintf and cleanups.
1896 (delete_breakpoint,breakpoint_re_set): Ditto.
1897 (commands_command, insert_breakpoints): Ditto.
1898 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1899 (break_at_finish_command_1): Ditto.
1901 2003-08-09 Andrew Cagney <cagney@redhat.com>
1903 * MAINTAINERS (language support): List Adam Fedor as Objective C
1906 2003-08-08 J. Brobecker <brobecker@gnat.com>
1908 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1909 are now multiarched.
1911 2003-08-08 J. Brobecker <brobecker@gnat.com>
1913 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1914 longer necessary now that hppa64 is partially multiarch'ed.
1916 2003-08-08 Andrew Cagney <cagney@redhat.com>
1918 * interps.c (interp_set): Check for a NULL "old_interp".
1920 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1922 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1923 (install-only): Support DESTDIR.
1924 (uninstall): Likewise.
1925 (install-gdbtk): Likewise.
1927 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1929 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1930 contains something meaningful at all times.
1932 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1934 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1936 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1938 * MAINTAINERS (write after approval): Added self.
1940 2003-08-07 Andrew Cagney <cagney@redhat.com>
1942 * inferior.h (AT_SYMBOL): Define.
1943 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1944 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1945 * mips-tdep.c (mips_call_dummy_address): Delete function.
1946 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1947 set call_dummy_address.
1949 2003-08-07 Andrew Cagney <cagney@redhat.com>
1951 * language.c (op_error): Delete function.
1952 (binop_type_check): Delete function.
1953 * language.h (type_op_error, range_op_error): Delete macros.
1954 (op_error): Delete declaration.
1956 2003-08-07 Andrew Cagney <cagney@redhat.com>
1958 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1960 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1962 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1963 (x86_64_push_arguments): Skip the red zone.
1965 2003-08-05 Andrew Cagney <cagney@redhat.com>
1967 * reggroups.c (reggroup_next): Check for the final entry.
1969 2003-08-04 Andrew Cagney <cagney@redhat.com>
1971 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1972 * cli/cli-script.c (define_command): Call query directly, instead
1973 of passing it a buffer.
1974 * ocd.c (ocd_error): Pass error a constant format string.
1975 * remote-mips.c (mips_error): Use fputs_filtered.
1977 * solib-svr4.c (_initialize_svr4_solib): Update
1978 register_gdbarch_data call.
1979 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1981 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1982 (register_gdbarch_data): Delete "free" parameter. Update
1984 * gdbarch.h, gdbarch.c: Re-generate.
1985 * reggroups.c (_initialize_reggroup): Update.
1986 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1987 * frame-base.c (_initialize_frame_base): Update.
1988 * frame-unwind.c (_initialize_frame_unwind): Update.
1989 * user-regs.c (_initialize_user_regs): Update.
1990 * remote.c (_initialize_remote): Update.
1991 * regcache.c (_initialize_regcache): Update.
1993 * regcache.c (xfree_regcache_descr): Delete function.
1994 (_initialize_regcache): Update call to register_gdbarch_data.
1995 (init_regcache_descr, init_legacy_regcache_descr): Use
1996 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1998 * remote.c (free_remote_state): Delete function.
1999 (_initialize_remote): Update register_gdbarch_data.
2000 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2001 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2003 2003-08-04 Andrew Cagney <cagney@redhat.com>
2005 * reggroups.c (struct reggroup_el): Define.
2006 (struct reggroups): Delete field "nr_group". Replace array
2007 "group" with a "first" to "last" linked list.
2008 (reggroups_init): Update. Allocate using gdbarch's obstack.
2009 (reggroups_free): Delete function.
2010 (add_group): Update. Add "el" parameter.
2011 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2012 (default_groups): Update.
2013 (reggroup_next): Replace reggroups.
2014 (reggroups_dump): Update.
2015 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2016 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2017 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2019 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2021 * Makefile.in (tui-interp.o): Update dependencies.
2023 2003-08-04 David Carlton <carlton@kealia.com>
2025 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2026 to internal_error call.
2027 * source.c (forward_search_command): Add "%s" format argument.
2028 (reverse_search_command): Ditto.
2029 * top.c (quit_confirm): Ditto.
2030 * cli/cli-setshow.c (do_setshow_command): Ditto.
2031 * cp-valprint.c (cp_print_class_method): Replace
2032 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2033 (cp_print_class_member): Ditto.
2034 * event-top.c (command_line_handler): Ditto.
2035 * linux-proc.c (linux_info_proc_cmd): Ditto.
2036 * p-typeprint.c (pascal_type_print_base): Ditto.
2037 * p-valprint.c (pascal_object_print_class_method): Ditto.
2038 (pascal_object_print_class_member): Ditto.
2039 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2040 * remote.c (remote_cisco_section_offsets): Ditto.
2041 * top.c (command_line_input): Ditto.
2042 * utils.c (vwarning,error_stream,quit): Ditto.
2043 * valprint.c (print_floating,print_binary_chars)
2044 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2046 2003-08-04 Andrew Cagney <cagney@redhat.com>
2048 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2050 2003-08-02 Andrew Cagney <cagney@redhat.com>
2052 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2053 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2056 2003-08-02 Andrew Cagney <cagney@redhat.com>
2058 * Makefile.in: Update all dependencies and definitions.
2060 2003-08-02 Adam Fedor <fedor@gnu.org>
2062 * linespec.c (is_objc_method_format): New function
2063 (decode_line_1, locate_first_half): Use it.
2066 2003-08-01 Andrew Cagney <cagney@redhat.com>
2068 * NEWS: Mention that m32r is multi-arch.
2069 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2070 * configure.tgt: Recognize m32r-*-*.
2071 * config/m32r/tm-m32r.h: Delete file.
2072 * config/m32r/m32r.mt: New file.
2073 * m32r-rom.c (m32r_upload_command): Use hostent only when
2074 gethostname succeeds, in order to avoid a compilation
2076 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2079 2003-08-01 Michael Snyder <msnyder@redhat.com>
2081 * sh-tdep.c (sh_frame_align): New gdbarch method.
2082 (sh_gdbarch_init): Set up frame_align method.
2084 2003-07-31 Michael Snyder <msnyder@redhat.com>
2086 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2087 which is already covered by the new frames infrastructure.
2089 2003-07-31 Andrew Cagney <cagney@redhat.com>
2091 * user-regs.c (struct user_reg): Add "next" link.
2092 (struct user_regs): Replace "user" with "first" and "last" links.
2093 (append_user_reg): Add pre-allocated "reg" parameter.
2094 (builtin_user_regs): Provide initial value for "last".
2095 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2096 (user_regs_init): Allocate memory from the gdbarch obstack.
2097 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2098 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2100 (usernum_to_user_reg): New function.
2101 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2102 (value_of_user_reg): Use usernum_to_user_reg.
2103 (user_regs_free): Delete function.
2104 (_initialize_user_regs): Update register_gdbarch_data call.
2106 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2108 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2110 2003-07-30 Michael Snyder <msnyder@redhat.com>
2112 * value.h (value_being_returned): Add a struct_addr argument.
2113 * infcall.c (call_function_by_hand): Pass struct_addr to
2114 value_being_returned.
2115 * infcmd.c (print_return_value): Pass zero as struct_addr.
2116 * values.c (value_being_returned): If struct_addr is passed,
2117 use it instead of trying to recover it from the inferior.
2119 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2121 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2122 the prologue analyzer won't need to attempt to extract the pc
2123 value from the woefully incomplete dummy frame.
2124 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2125 possible. Disable code which modifies the frame.
2127 2003-07-28 Andrew Cagney <cagney@redhat.com>
2129 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2131 (annotate_breakpoints_table, annotate_record): Ditto.
2132 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2133 (annotate_field_name_end, annotate_field_value): Ditto.
2134 (annotate_field_end, annotate_frame_source_begin): Ditto.
2135 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2136 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2137 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2138 (annotate_frame_address_end, annotate_frame_address): Ditto.
2139 (annotate_frame_args, annotate_frame_end): Ditto.
2140 (annotate_frame_where, annotate_arg_begin): Ditto.
2141 (annotate_arg_name_end, annotate_arg_value): Ditto.
2142 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2143 (annotate_function_call, annotate_signal_name): Ditto.
2144 (annotate_signal_string, annotate_signal_name_end): Ditto.
2145 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2146 (annotate_value_begin, annotate_value_history_value): Ditto.
2147 (annotate_value_history_end, annotate_value_end): Ditto.
2148 (annotate_display_begin, annotate_display_number_end): Ditto.
2149 (annotate_display_format, annotate_display_expression): Ditto.
2150 (annotate_display_expression_end, annotate_display_value): Ditto.
2151 (annotate_display_end, annotate_array_section_begin): Ditto.
2152 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2153 (annotate_elt, annotate_array_section_end): Ditto.
2155 2003-07-28 Andrew Cagney <cagney@redhat.com>
2157 * regcache.c (struct regcache_descr): Update comments on
2159 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2160 sizeof_raw_register_valid_p.
2161 (init_regcache_descr): Set nr_raw_registers and
2162 sizeof_raw_register_valid_p before calling
2163 init_legacy_regcache_descr.
2165 2003-07-28 Andrew Cagney <cagney@redhat.com>
2167 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2170 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2172 * thread.c (info_threads_command): Use get_selected_frame ().
2173 Check that there is at least one non-sentinel frame.
2175 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2177 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2178 (m68hc11_pop_frame): Remove.
2179 (m68hc11_frame_saved_pc): Remove.
2180 (m68hc11_frame_chain): Remove.
2181 (m68hc11_frame_init_saved_regs): Remove.
2182 (m68hc11_init_extra_frame_info): Remove.
2183 (m68hc11_store_struct_return): Remove.
2184 (m68hc11_saved_pc_after_call): Remove.
2186 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2188 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2189 frame unwind information.
2190 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2191 and adapted for frame unwinding.
2192 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2193 (m68hc11_unwind_pc): New function.
2194 (m68hc11_frame_unwind_cache): New function to analyze frames.
2195 (m68hc11_frame_this_id): New function to create new frame struct.
2196 (m68hc11_frame_prev_register): New function to unwind a register from
2198 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2199 (m68hc11_frame_p): New function for the above.
2200 (m68hc11_frame_base_address): New function to return fp of frame.
2201 (m68hc11_frame_args_address): Update for frame.
2202 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2203 (m68hc11_unwind_sp): New function.
2204 (m68hc11_unwind_dummy_id): New function.
2205 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2208 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2210 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2211 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2212 when we are beyond the current pc.
2214 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2216 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2217 from m68hc11_push_arguments.
2218 (m68hc11_push_arguments): Remove.
2219 (m68hc11_push_return_address): Remove.
2220 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2221 handlers; remove deprecated_extra_stack_alignment_needed.
2223 2003-07-27 Andrew Cagney <cagney@redhat.com>
2225 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2226 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2227 REAL_PC and not the pointer.
2228 * hppa-hpux-tdep.c: Include frame.h
2230 2003-07-27 Andrew Cagney <cagney@redhat.com>
2232 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2233 GDB_MULTI_ACH_PARTIAL.
2235 2003-07-27 Andrew Cagney <cagney@redhat.com>
2237 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2238 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2239 operator at start and not end of line.
2240 (decode_prologue): Ditto.
2241 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2242 frame_unwind_register_unsigned instead of
2243 frame_unwind_unsigned_register.
2244 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2246 (m32r_push_dummy_call): Use register_size instead of
2248 (m32r_frame_sniffer): Replace m32r_frame_p.
2249 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2250 * m32r-rom.c (report_transfer_performance): Delete extern
2252 (m32r_load, m32r_upload_command): Use print_transfer_performance
2253 instead of report_transfer_performance.
2254 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2255 / add_show_from_set.
2257 2003-07-26 Andrew Cagney <cagney@redhat.com>
2259 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2260 store_return_value and extract_struct_value_address.
2262 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2265 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2266 NULL, default to the section containing PC.
2268 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2270 * NEWS: Mention "regs" deprecated for m68hc11 too.
2272 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2273 (m68hc11_print_register): New function to print out one register.
2274 (m68hc11_print_registers_info): New function to print registers.
2275 (show_regs): Deprecate and use the above.
2276 (m68hc11_gdbarch_init): Install the print_registers_info.
2278 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2280 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2281 that we have a SIGTRAP before returning non-zero.
2283 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2284 Elena Zannoni <ezannoni@redhat.com>
2286 * linespec.c (decode_line_2): Avoid crash if
2287 find_function_start_sal() returns empty record.
2289 2003-07-23 Andreas Schwab <schwab@suse.de>
2291 * ia64-tdep.c (ia64_print_insn): New function.
2292 (ia64_gdbarch_init): Set print_insn to it.
2293 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2294 deprecated_tm_print_insn_info.
2296 2003-07-22 Michael Snyder <msnyder@redhat.com>
2298 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2299 handle 8-bit returns (long long).
2300 (h8300h_extract_return_value): Ditto.
2301 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2303 2003-07-22 Andrew Cagney <cagney@redhat.com>
2305 * gdbarch.c Include "gdb_obstack.h".
2306 (struct gdbarch): Add an "obstack".
2307 (alloc_gdbarch_data): Allocate the gdbarch data using
2308 GDBARCH_OBSTACK_CALLOC.
2309 (free_gdbarch_data): Delete function.
2310 (gdbarch_obstack_zalloc): New function.
2311 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2312 Assert that the architecture is not initialized.
2313 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2314 vector from the obstack.
2315 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2316 architecture obstack.
2317 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2318 (set_gdbarch_data): Assert that the data is not initialized.
2319 (struct gdbarch_data): Delete member "free".
2320 (register_gdbarch_data): Do not initialize "free".
2321 * gdbarch.h, gdbarch.c: Re-generate.
2323 2003-07-22 Andrew Cagney <cagney@redhat.com>
2325 * configure.in (build_warnings): Add -Wformat-nonliteral.
2326 * configure: Re-generate.
2328 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2330 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2332 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2334 * findvar.c (read_var_value): Remove case for thread local storage
2335 variables. It is now entirely handled by the dwarf2 location
2337 * printcmd.c (address_info): Ditto.
2338 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2340 (struct symbol): Remove objfile field, which was used by
2341 LOC_THREAD_LOCAL_STATIC only.
2342 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2343 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2344 usage of objfile pointer.
2345 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2346 thread local variables.
2347 Add include of objfiles.h.
2348 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2350 * Makefile.in (dwarf2loc.o): Update dependencies.
2352 2003-07-22 Andrew Cagney <cagney@redhat.com>
2354 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2356 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2357 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2358 (struct value): Add opaque declaration.
2359 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2361 2003-07-21 Andrew Cagney <cagney@redhat.com>
2363 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2364 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2366 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2368 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2369 regcache_cooked_read_unsigned instead of read_register.
2370 (m68hc11_saved_pc_after_call): Likewise.
2371 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2372 instead of write_register.
2373 (m68hc11_register_type): New function.
2374 (m68hc11_register_virtual_type): Remove.
2375 (m68hc11_store_return_value): Convert to use the regcache.
2376 (m68hc11_extract_struct_value_address): Likewise.
2377 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2378 m68hc11_register_type; undeprecate store_return_value and
2379 extract_struct_value_address.
2381 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2383 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2384 and translate to use regcache.
2385 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2387 2003-07-18 Andrew Cagney <cagney@redhat.com>
2389 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2390 * gdbarch.h, gdbarch.c: Re-generate.
2391 * i386-tdep.c (i386_gdbarch_init): Do not set
2392 DWARF2_BUILD_FRAME_INFO.
2393 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2395 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2396 DWARF2_BUILD_FRAME_INFO.
2398 2003-07-18 Andrew Cagney <cagney@redhat.com>
2400 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2401 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2403 2003-07-18 Andrew Cagney <cagney@redhat.com>
2405 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2406 frame_unwind_address_in_block, instead of frame_pc_unwind.
2407 (dwarf2_frame_cache): Ditto.
2409 2003-07-18 Andrew Cagney <cagney@redhat.com>
2411 * user-regs.h (struct gdbarch): Declare opaque.
2412 * ui-out.h (struct ui_file): Declare opaque.
2413 * dwarf2-frame.h (struct frame_info): Declare opaque.
2415 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2417 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2419 (procfs_meminfo): Change strerror to safe_strerror.
2420 (procfs_can_run): Remove K&R badness.
2422 2003-07-17 Michael Snyder <msnyder@redhat.com>
2424 * remote-sim.c: Comment typo fix.
2426 2003-07-17 Andrew Cagney <cagney@redhat.com>
2428 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2430 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2431 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2432 GDB_MULTI_ARCH_PARTIAL.
2434 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2436 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2437 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2438 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2440 2003-07-16 Theodore A. Roth <troth@openavr.org>
2442 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2444 (avr_frame_unwind_cache): Don't unwind FP for main.
2446 Save the computed prev_sp.
2447 (avr_saved_regs_unwinder): Remove function.
2448 (avr_frame_prev_register): Use PC unwind logic from
2449 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2451 2003-07-16 Andrew Cagney <cagney@redhat.com>
2453 * frame-base.h (frame_base_p_ftype): Delete definition.
2454 (frame_base_append_predicate): Delete declaration.
2455 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2456 (frame_unwind_append_predicate): Delete declaration.
2457 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2458 (append_predicate): Delete parameter "p".
2459 (frame_unwind_append_predicate): Delete function.
2460 (frame_unwind_append_sniffer): Update call to append_predicate.
2461 (frame_unwind_free): Delete function.
2462 (_initialize_frame_unwind): Pass NULL as "free" to
2463 register_gdbarch_data.
2464 (frame_unwind_init): Append the dummy_frame_sniffer.
2465 (frame_unwind_find_by_frame): Simplify.
2466 * frame-base.c (struct frame_base_table): Delete field "p".
2467 (append_predicate): Delete parameter "p".
2468 (frame_base_append_predicate): Delete function.
2469 (frame_base_append_sniffer): Update call to append_predicate.
2470 (frame_base_free): Delete function.
2471 (frame_base_find_by_frame): Simplify.
2472 (_initialize_frame_base): Pass NULL as "free" to
2473 register_gdbarch_data.
2474 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2475 (x86_64_sigtramp_frame_sniffer): Replace
2476 "x86_64_sigtramp_frame_p".
2477 (x86_64_init_abi): Set the frame unwind sniffers.
2478 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2479 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2480 (m68k_gdbarch_init): Set the frame unwind sniffers.
2481 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2482 "i386_sigtramp_frame_p".
2483 (i386_frame_sniffer): Replace "i386_frame_p".
2484 (i386_gdbarch_init): Set the frame unwind sniffers.
2485 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2486 (avr_gdbarch_init): Set the frame unwind sniffers.
2487 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2488 "alpha_sigtramp_frame_p"
2489 (alpha_heuristic_frame_sniffer): Replace
2490 "alpha_heuristic_frame_p".
2491 (alpha_gdbarch_init): Set the frame unwind sniffers.
2492 (alpha_dwarf2_init_abi): Ditto.
2493 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2494 "alpha_debug_frame_p".
2495 (alpha_mdebug_frame_base_sniffer): Replace
2496 "alpha_mdebug_frame_base_p".
2497 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2498 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2499 (d10v_gdbarch_init): Set the frame unwind sniffer.
2500 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2501 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2502 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2503 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2504 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2505 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2507 2003-07-16 Michael Snyder <msnyder@redhat.com>
2509 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2510 should go thru sh_dsp_register_sim_regno, else the dsp regs
2511 will not get the right values.
2513 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2515 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2516 deprecated_store_floating by call to store_typed_floating.
2517 (sh_sh4_register_convert_to_raw): Substitute call to
2518 deprecated_extract_floating by call to extract_typed_floating.
2520 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2522 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2524 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2526 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2527 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2528 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2530 (do_pseudo_register): Remove.
2531 (sh_push_dummy_code): New function.
2532 (sh64_store_struct_return): Rename from sh_store_struct_return.
2533 Only called for sh64 now.
2534 (sh_extract_struct_value_address): Regcache'ify.
2535 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2536 and accomodate new tasks.
2537 (sh64_push_return_address): Rename from sh_push_return_address.
2538 Only called for sh64 now.
2539 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2541 (sh3e_sh4_extract_return_value): Regcache'ify.
2542 (sh_default_store_return_value): Ditto.
2543 (sh3e_sh4_store_return_value): Ditto.
2544 (sh_default_register_byte): Remove.
2545 (sh_sh4_register_byte): Remove.
2546 (sh_default_register_raw_size): Remove.
2547 (sh_sh4_register_raw_size): Remove.
2548 (sh_register_virtual_size): Remove.
2549 (sh_sh3e_register_virtual_type): Remove.
2550 (sh_sh3e_register_type): New function.
2551 (sh_sh4_register_virtual_type): Remove.
2552 (sh_sh4_register_type): New function.
2553 (sh_default_register_virtual_type): Remove.
2554 (sh_default_register_type): New function.
2555 (do_fv_register_info): Add parameters to accomodate call from
2556 sh_print_registers_info.
2557 (do_dr_register_info): Ditto.
2558 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2559 Add parameters to accomodate call from sh_print_registers_info.
2560 (sh_do_fp_register): Ditto.
2561 (sh64_do_pseudo_register): Call do_dr_register_info,
2562 do_fv_register_info and sh_do_fp_register with default parameters.
2563 (sh_do_register): Add parameters to accomodate call from
2564 sh_print_registers_info.
2565 (sh_print_register): Ditto.
2566 (sh_print_registers_info): Rename from sh_do_registers_info.
2567 Add parameters to be used as gdbarch_print_registers_info
2568 implementation. Accomodate removed do_pseudo_register function
2570 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2571 function pointer. Call sh_print_register with default parameters.
2572 (sh64_do_registers_info): Call sh_print_registers_info instead of
2573 sh_do_registers_info.
2574 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2575 detection of deprecated vs. non-deprecated functionality.
2576 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2577 function pointer assignments by direct function calls.
2579 2003-07-15 Andrew Cagney <cagney@redhat.com>
2581 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2582 (frame_register_unwind, create_new_frame): Ditto.
2583 (legacy_get_prev_frame, get_frame_type): Ditto.
2584 (get_frame_base_address): Use frame_base_find_by_frame.
2585 (get_frame_locals_address): Use frame_base_find_by_frame.
2586 (get_frame_args_address): Use frame_base_find_by_frame.
2587 * frame-base.h (frame_base_sniffer_ftype): Declare.
2588 (frame_base_append_sniffer): Declare.
2589 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2590 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2591 (frame_base_append_sniffer): New function.
2592 (frame_base_append_predicate): Add a NULL sniffer.
2593 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2594 (struct frame_base_table): Add "sniffer".
2595 (frame_base_free): Free the "sniffer" table.
2596 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2597 (frame_unwind_append_sniffer): Declare.
2598 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2599 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2600 (struct frame_unwind_table): Add "sniffer", delete "middle".
2601 (append_predicate): Add "sniffer" parameter, append the sniffer.
2602 (frame_unwind_init): Update append_predicate call.
2603 (frame_unwind_append_sniffer): New function.
2604 (frame_unwind_append_predicate): Update append_predicate call.
2605 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2607 2003-07-15 Andrew Cagney <cagney@redhat.com>
2609 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2610 before code inhibiting repeated unwind attempts. Add to
2611 commentary on that test's problems.
2612 * blockframe.c (inside_main_func): Look for "main" in the minimal
2614 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2617 2003-07-15 Andrew Cagney <cagney@redhat.com>
2619 * complaints.c (struct explanation): Define.
2620 (struct complaints): Change type of "explanation" to "struct
2622 (symfile_explanations): Convert to a "struct explanation" table.
2623 (vcomplaint): Update.
2625 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2627 * x86-64-linux-nat.c (regmap): Removed.
2628 (supply_gregset, fill_gregset): Call
2629 x86_64_linux_(fill,supply)_gregset functions.
2630 * x86-64-linux-tdep.c (USER_*): New defines.
2631 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2632 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2634 (fetch_core_registers): Ditto.
2635 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2636 * x86-64-linux-tdep.h: New file.
2637 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2639 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2641 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2643 * x86-64-tdep.c (x86_64_store_return_value): Use
2644 regcache_cooked_write_part instead of regcache_cooked_write.
2646 * configure.host: Add x86_64-*-freebsd*.
2647 * configure.tgt: Add x86_64-*-freebsd*.
2648 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2649 * amd64fbsd-nat.c: New file.
2650 * amd64fbsd-tdep.c: New file.
2651 * config/i386/nm-fbsd64.h: New file.
2652 * config/i386/fbsd64.mh: New file.
2653 * config/i386/fbsd64.mt: New file.
2655 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2657 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2658 `sc_regs_offset' and `sc_fpregs_offset'.
2659 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2660 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2661 (alpha_sigtramp_register_address): Rewrite to use new members of
2662 `struct gdbarch_tdep'.
2663 (alpha_gdbarch_init): Initialize new members of struct
2665 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2666 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2667 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2668 (alphafbsd_pc_in_sigtramp): Implement.
2669 (alphafbsd_sigtramp_offset): New function.
2670 (alphafbsd_sigcontext_addr): New function.
2671 (alphafbsd_init_abi): Initialize signal trampoline related members
2672 of `struct gdbarch_tdep'.
2673 (_initialize_alphafbsd_tdep): Add prototype.
2675 2003-07-11 Theodore A. Roth <troth@openavr.org>
2677 * Makefile.in (install-only): Quote sed expression when generating
2680 2003-07-11 Richard Henderson <rth@redhat.com>
2682 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2683 * dwarf2-frame.c: Include complaints.h.
2684 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2685 variable initialization; return NULL on error.
2686 (decode_frame_entry): New.
2688 2003-07-11 Andrew Cagney <cagney@redhat.com>
2690 * frame.h (frame_address_in_block): Delete declaration.
2691 * blockframe.c (frame_address_in_block): Delete function.
2692 (get_frame_block): Use get_frame_address_in_block.
2693 (block_innermost_frame): Ditto.
2694 * stack.c (print_frame, backtrace_command_1): Ditto.
2696 * frame.h (get_frame_address_in_block): Declare.
2697 (frame_unwind_address_in_block): Declare.
2698 * frame.c (frame_unwind_address_in_block): New function.
2699 (get_frame_address_in_block): New function.
2701 2003-07-10 Andrew Cagney <cagney@redhat.com>
2703 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2704 pre-default. Note: re-generate has no effect.
2706 2003-07-10 Andrew Cagney <cagney@redhat.com>
2708 * gdbarch.sh: When a variable, but not a function, compare against
2709 0. Fix problem in previous patch.
2710 * gdbarch.c: Re-generate.
2712 2003-07-10 Andrew Cagney <cagney@redhat.com>
2714 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2715 functions against NULL, not 0.
2716 * gdbarch.c: Re-generate.
2718 2003-07-10 Fred Fish <fnf@ninemoons.com>
2720 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2721 null string instead of a null pointer.
2722 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2724 2003-07-09 Michael Snyder <msnyder@redhat.com>
2726 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2728 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2730 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2731 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2732 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2733 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2734 * x86-64-tdep.c: ... from here.
2736 2003-07-09 Andreas Schwab <schwab@suse.de>
2738 * m68k-tdep.h (enum struct_return): Define.
2739 (struct gdbarch_tdep): Add struct_return.
2740 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2741 bytes are padded to the right, not to the left. Pass struct value
2742 address in register %a1, not on stack.
2743 (m68k_use_struct_convention): New function.
2744 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2745 struct_return in tdep to pcc_struct_return.
2746 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2749 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2751 * somread.c (som_symfile_offsets): Fix compilation error.
2753 2003-07-09 Andrew Cagney <cagney@redhat.com>
2755 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2756 Add comments about the checks.
2758 2003-07-08 Andrew Cagney <cagney@redhat.com>
2760 * Makefile.in: Make dependency section headers consistent.
2761 (config_h): Move to $BUILD headers section.
2762 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2763 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2764 (ada-exp.tab.c): Move to YACC/LEX section.
2765 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2766 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2768 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2770 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2771 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2772 of strerror with safe_strerror, use ISO C function definitions,
2773 and replace instances of sprintf with snprintf.
2775 2003-07-07 Andrew Cagney <cagney@redhat.com>
2777 * frame.c (get_prev_frame): Enable check for identical frames.
2778 Update comments. Update error messages.
2780 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2782 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2784 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2786 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2787 sort_symtab_syms, no longer necessary.
2789 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2791 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2793 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2795 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2796 (mips_register_byte): Likewise.
2798 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2800 * Makefile.in (sparc_tdep_h): New.
2801 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2802 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2803 * sparc-linux-nat.c: Include "sparc-tdep.h".
2804 * sparc-nat.c: Likewise.
2805 * sparc-tdep.c: Likewise.
2806 * sparc64nbsd-nat.c: Likewise.
2807 * sparcnbsd-nat.c: Likewise.
2808 * sparcnbsd-tdep.c: Likewise.
2809 * sparc-tdep.h: New file.
2810 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2811 and sparc_npc_regnum.
2813 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2815 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2816 (mips_linux_cannot_store_register): List supported instead of
2817 unsupported registers.
2819 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2821 * disasm.c (dump_insns): Separate instructions from addresses.
2823 2003-07-07 Andreas Schwab <schwab@suse.de>
2825 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2827 * m68k-tdep.c (NUM_FREGS): Delete.
2828 (SIG_PC_FP_OFFSET): Delete.
2829 (TARGET_M68K): Delete.
2830 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2831 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2832 P_MOVEL_SP, P_MOVEML_SP): Define.
2833 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2835 (m68k_register_raw_size): Delete.
2836 (m68k_register_virtual_size): Delete.
2837 (m68k_register_type): Renamed from m68k_register_virtual_type and
2838 add gdbarch argument.
2839 (m68k_store_struct_return): Delete.
2840 (m68k_deprecated_extract_return_value): Delete.
2841 (m68k_deprecated_extract_struct_value_address): Delete.
2842 (m68k_frame_chain): Delete.
2843 (m68k_frame_saved_pc): Delete.
2844 (m68k_fix_call_dummy): Delete.
2845 (m68k_push_dummy_frame): Delete.
2846 (m68k_pop_frame): Delete.
2847 (m68k_extract_return_value): New function.
2848 (m68k_store_return_value): Rewrite using regcache.
2849 (m68k_extract_struct_value_address): Rewrite using regcache.
2850 (m68k_push_dummy_call): New function.
2851 (struct m68k_frame_cache): Define.
2852 (m68k_alloc_frame_cache): New function.
2853 (m68k_analyze_frame_setup): New function.
2854 (m68k_analyze_register_saves): New function.
2855 (m68k_analyze_prologue): New function.
2856 (m68k_skip_prologue): Rewrite using above functions.
2857 (m68k_unwind_pc): New function.
2858 (m68k_frame_cache): New function.
2859 (m68k_frame_this_id): New function.
2860 (m68k_frame_prev_register): New function.
2861 (m68k_frame_unwind): New variable.
2862 (m68k_frame_p): New function.
2863 (m68k_sigtramp_frame_cache): New function.
2864 (m68k_sigtramp_frame_this_id): New function.
2865 (m68k_sigtramp_frame_prev_register): New function.
2866 (m68k_sigtramp_frame_unwind): New variable.
2867 (m68k_sigtramp_frame_p): New function.
2868 (m68k_frame_base_address): New function.
2869 (m68k_frame_base): New function.
2870 (m68k_unwind_dummy_id): New function.
2871 (fill_gregset): Use regcache_collect.
2872 (fill_fpregset): Likewise.
2873 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2875 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2876 deprecated_init_frame_pc, deprecated_store_struct_return,
2877 deprecated_extract_return_value, deprecated_store_return_value,
2878 deprecated_frame_chain, deprecated_frame_saved_pc,
2879 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2880 deprecated_register_virtual_size,
2881 deprecated_max_register_raw_size,
2882 deprecated_max_register_virtual_size,
2883 deprecated_register_virtual_type, deprecated_register_size,
2884 deprecated_register_byte, deprecated_register_bytes,
2885 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2886 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2887 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2888 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2889 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2890 deprecated_push_dummy_frame, deprecated_pop_frame,
2891 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2892 only if SYSCALL_TRAP is defined. Set extract_return_value,
2893 store_return_value, extract_struct_value_address, register_type,
2894 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2896 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2897 M68K_MAX_REGISTER_SIZE): Define.
2898 (struct m68k_sigtramp_info): Define.
2899 (struct gdbarch_tdep): Add get_sigtramp_info.
2900 * m68klinux-nat.c (fetch_register): Use register_size instead of
2901 REGISTER_RAW_SIZE. Don't put assignment in if.
2902 (store_register): Likewise.
2903 (fetch_inferior_registers): Likewise.
2904 (store_inferior_registers): Likewise.
2905 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2906 (m68k_linux_frame_saved_pc): Delete.
2907 (m68k_linux_sigcontext_reg_offset,
2908 m68k_linux_ucontext_reg_offset): Define.
2909 (m68k_linux_get_sigtramp_info): New function.
2910 (m68k_linux_extract_return_value): Rewrite using regcache.
2911 (m68k_linux_store_return_value): Likewise.
2912 (m68k_linux_extract_struct_value_address): Likewise.
2913 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2914 Don't set deprecated_frame_saved_pc,
2915 deprecated_extract_return_value, deprecated_store_return_value,
2916 deprecated_extract_struct_value_address. Set
2917 extract_return_value, store_return_value,
2918 extract_struct_value_address.
2920 2003-07-07 Andrew Cagney <cagney@redhat.com>
2922 * expprint.c: Include "user-regs.h" instead of "frame.h".
2923 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2924 frame_map_regnum_to_name.
2925 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2926 (frame_map_name_to_regnum): Simplify, call
2927 user_reg_map_name_to_regnum.
2928 (frame_map_regnum_to_name): Simplify, call
2929 user_reg_map_regnum_to_name.
2930 (frame_register_unwind): Update.
2931 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2932 (_initialize_frame_reg): Call user_reg_add_builtin.
2933 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2934 (value_of_register): Use value_of_user_reg.
2935 * eval.c (evaluate_subexp_standard): Update.
2936 * parse.c (write_dollar_variable): Update.
2937 * d10v-tdep.c (d10v_print_registers_info): Update.
2938 * infcmd.c (registers_info): Update.
2939 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2940 (builtin_regs_h): Delete macro.
2941 (user_regs_h): Define.
2942 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2943 (builtin-regs.o): Delete target.
2944 (user-regs.o): Specify dependencies.
2945 (expprint.o): Update dependencies.
2946 (findvar.o): Update dependencies.
2947 (frame.o): Update dependencies.
2948 (std-regs.o): Update dependencies.
2950 2003-07-06 Christopher Faylor <cgf@redhat.com>
2952 * win32-nat.c (solib_symbols_add): Use one variable for all section
2953 address stuff. Pass variable rather than address of variable to
2954 safe_symbol_file_add.
2956 2003-07-06 Andreas Schwab <schwab@suse.de>
2958 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2960 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2962 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2964 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2966 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2968 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2970 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2971 * config/i386/nto.mh: New file.
2972 * config/i386/nm-nto.h: New file.
2973 * configure.host: Add i[3456]86-*-nto*.
2975 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2977 * remote-vx.c (vx_add_symbols): Fix compilation error.
2979 2003-07-03 Andrew Cagney <cagney@redhat.com>
2981 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2982 * gdbarch.h, gdbarch.c: Re-generate.
2983 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2984 (legacy_register_name): Declare.
2985 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2986 (REGISTER_NAME): Define.
2987 * sparc-tdep.c (legacy_register_name): New function.
2988 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2989 (REGISTER_NAME): Define.
2990 (hppa64_register_name): Declare.
2991 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2992 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2993 (hppa64_register_name): New function.
2994 (hppa_register_name): New function.
2995 * arch-utils.c (legacy_register_name): Delete.
2996 * arch-utils.h (legacy_register_name): Delete.
2998 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3000 * cli/cli-interp.c (cli_interpreter_resume): Update the
3001 cli_uiout's stream to gdb_stdout.
3003 2003-07-03 Andrew Cagney <cagney@redhat.com>
3005 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3007 * gdbarch.h, gdbarch.c: Re-generate.
3008 * regcache.c (init_regcache_descr): Use legacy code when either
3009 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3011 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3013 * NEWS: Move "set logging" entry into GDB 6.0 section.
3015 2003-07-02 Jim Blandy <jimb@redhat.com>
3017 * s390-tdep.c (struct frame_extra_info): new member:
3018 'stack_bought_valid'.
3019 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3020 initialize fextra_info->stack_bought.
3021 (s390_frameless_function_invocation): Don't trust the value of
3022 fextra_info_ptr->stack_bought unless
3023 fextra_info->stack_bought_valid is set.
3025 New S390 prologue analyzer.
3026 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3027 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3028 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3029 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3030 compute_x_addr, s390_on_stack, s390_store,
3031 s390_get_signal_frame_info): New functions.
3032 (S390_NUM_SPILL_SLOTS): New macro.
3033 (s390_get_frame_info): Rewritten.
3034 (is_arg_reg): Deleted.
3036 Break out the decoding of S/390 instructions into separate
3037 functions, to make it more legible, and easier to check
3039 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3040 is_rx, is_rxe): New functions.
3041 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3042 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3043 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3044 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3045 enums for opcode values. (Is this an improvement?)
3047 2003-07-02 Andrew Cagney <cagney@redhat.com>
3049 * i386-tdep.c: Revert change committed as part of trad-frame code
3052 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3054 * breakpoint.c (insert_catchpoint): Make static.
3056 2003-07-02 Andreas Schwab <schwab@suse.de>
3058 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3059 former ia64_push_arguments and ia64_push_return_address, and use
3060 regcache functions instead of read/write_register.
3061 (ia64_gdbarch_init): Set push_dummy_call instead of
3062 deprecated_push_arguments and deprecated_push_return_address.
3064 2003-07-01 Andreas Jaeger <aj@suse.de>
3066 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3068 Set %rax only to number of SSE registers used.
3070 2003-07-01 Andrew Cagney <cagney@redhat.com>
3072 * trad-frame.h: Update comments, a -1 .addr is reserved.
3073 (trad_frame_value_p, trad_frame_addr_p): Declare.
3074 (trad_frame_reg_p): Declare.
3075 (trad_frame_set_value): Rename trad_frame_register_value.
3076 (trad_frame_set_unknown): Declare.
3077 * trad-frame.c (trad_frame_realreg_p): New function.
3078 (trad_frame_addr_p, trad_frame_value_p): New function.
3079 (trad_frame_set_unknown): New function.
3080 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3081 (trad_frame_prev_register): Use trad_frame_realreg_p,
3082 trad_frame_addr_p and trad_frame_value_p.
3083 (trad_frame_set_value): Rename trad_frame_register_value.
3084 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3085 and trad_frame_set_value.
3087 2003-06-30 Jim Blandy <jimb@redhat.com>
3089 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3090 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3091 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3092 for 16 registers, and then 32 more bytes.
3093 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3095 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3096 Move up in the file, since it's now used by is_simple_arg.
3097 (is_simple_arg): Don't assume registers are four bytes long.
3098 Exclude all double arguments. Extended floats are not simple
3100 (is_power_of_two): New function.
3101 (pass_by_copy_ref): Call is_power_of_two, and check that the
3102 length fits in a register, rather than listing all the acceptable
3103 sizes. Extended floats are not passed by reference.
3104 (s390_push_arguments): Don't assume registers are four bytes long.
3105 Reserve an argument register to point to the buffer for structures
3106 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3107 S390_STACK_FRAME_OVERHEAD.
3109 2003-06-30 Andreas Schwab <schwab@suse.de>
3111 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3112 format error message.
3114 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3116 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3118 2003-06-30 David Carlton <carlton@kealia.com>
3120 Band-aid for PR c++/1245.
3121 * Makefile.in (cp-support.o): Depend on complaints_h.
3122 * cp-support.c: Include complaints.h. Add declaration for
3123 find_last_component.
3124 (cp_find_first_component): Separate code into
3125 cp_find_first_component_aux.
3126 (cp_find_first_component_aux): Call demangled_name_complaint.
3127 (demangled_name_complaint): New.
3129 2003-06-30 Andrew Cagney <cagney@redhat.com>
3131 * remote.c (remote_write_bytes): Explicitly compute and then use
3132 the payload size. Update comments to reflect. Fixes problem of
3133 GDB not sending small packets as found by Fred Fish.
3135 2003-06-30 Andrew Cagney <cagney@redhat.com>
3137 * remote.c (remote_async_wait): Fix -Wformat problem.
3139 2003-06-29 Andrew Cagney <cagney@redhat.com>
3141 * remote.c (remote_wait): Call error, and not warning, when the
3143 (remote_async_wait): Ditto.
3145 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3147 * sparc-tdep.c (sparc_y_regnum): Make external again.
3149 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3151 * cli/cli-logging.c (pop_output_files): Add void to function
3154 2003-06-29 Andrew Cagney <cagney@redhat.com>
3156 * frame.c (frame_register_unwind): Use unsigned char when dumping
3157 the buffer contents.
3159 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3161 * cli/cli-logging.c: New file.
3162 * cli-out.c (struct ui_out_data): Add original_stream.
3163 (cli_redirect): New function.
3164 (cli_ui_out_impl): Add cli_redirect.
3165 (cli_out_new): Initialize original_stream.
3166 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3167 (uo_redirect, ui_out_redirect): New.
3168 * ui-out.h (struct ui_out_impl): Add redirect member.
3169 (redirect_ftype): New.
3170 (ui_out_redirect): Add prototype.
3171 * Makefile.in: Add rules for cli-logging.c.
3172 * NEWS: Mention "set logging".
3174 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3176 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3178 2003-06-27 Andrew Cagney <cagney@redhat.com>
3180 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3181 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3182 * avr-tdep.c (avr_call_dummy_address): Delete function.
3183 (avr_gdbarch_init): Do not set call_dummy_address.
3185 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3187 * symfile.c (syms_from_objfile): Move variables to inner block.
3188 Move the checks for the non-mainline case a bit earlier to avoid
3189 doing some useless computations.
3191 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3193 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3195 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3197 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3200 2003-06-26 Michael Chastain <mec@shout.net>
3202 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3203 gdb/testsuite/gdb.c++/pr-1210.exp.
3205 2003-06-26 Andrew Cagney <cagney@redhat.com>
3207 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3208 altivec_expression.h and altivec_registers.h.
3210 2003-06-26 Andrew Cagney <cagney@redhat.com>
3212 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3213 info->mach when MIPS16. Patch suggested by Fred Fish.
3215 2003-06-26 Andrew Cagney <cagney@redhat.com>
3217 * utils.c (internal_vproblem): Print the problem to a reason
3218 buffer and then pass to query. Make the msg variable more local.
3220 2003-06-26 Andrew Cagney <cagney@redhat.com>
3222 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3223 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3224 * gdbarch.h, gdbarch.c: Re-generate.
3225 * frame-base.c (default_frame_args_address): Update. Use
3226 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3228 (default_frame_locals_address): Ditto for
3229 DEPRECATED_FRAME_LOCALS_ADDRESS.
3230 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3231 (vax_frame_num_args): Update.
3232 (vax_gdbarch_init): Update.
3233 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3234 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3235 * mcore-tdep.c (mcore_gdbarch_init): Update.
3236 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3237 * ia64-tdep.c (ia64_gdbarch_init): Update.
3238 * symtab.h (address_class): Update comments.
3239 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3240 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3241 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3242 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3243 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3244 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3245 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3246 * alpha-mdebug-tdep.c: Update.
3247 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3249 2003-06-26 Andreas Jaeger <aj@suse.de>
3251 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3252 of SSE registers so that varargs functions work. Rework handling
3253 of passing arguments on the stack.
3254 (x86_64_store_return_value): Return double and float values in SSE
3257 2003-06-24 Michael Chastain <mec@shout.net>
3259 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3260 the "constructor breakpoints ignored" bug.
3262 2003-06-25 David Carlton <carlton@kealia.com>
3264 * MAINTAINERS: Update e-mail address.
3266 2003-06-24 Jim Blandy <jimb@redhat.com>
3268 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3270 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3272 (ppc_linux_init_abi): Register it as the
3273 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3275 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3276 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3279 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3280 (ppc64_standard_linkage_target): Use it.
3282 2003-06-23 Andrew Cagney <cagney@redhat.com>
3284 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3285 for 0 "int0" and 4 "int32" sized registers.
3286 * gdbtypes.c (builtin_type_int0): Define.
3287 (build_gdbtypes): Initialize builtin_type_int0.
3288 * gdbtypes.h (builtin_type_int0): Declare.
3290 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3292 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3293 as characters are unsigned.
3295 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3298 * dwarfread.c (struct_type): Skip static fields without crashing.
3300 2003-06-22 Andrew Cagney <cagney@redhat.com>
3302 GDB 6.0 branch created.
3304 * PROBLEMS: Update. Empty.
3307 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3309 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3310 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3312 2003-06-22 Andrew Cagney <cagney@redhat.com>
3314 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3315 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3318 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3320 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3323 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3325 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3326 argument of val_print.
3327 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3328 to the address argument of baseclass_offset or target_read_memory.
3329 Do add it to the argument of cp_print_value_fields.
3331 2003-06-21 Andrew Cagney <cagney@redhat.com>
3333 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3334 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3335 instead of 0..NUM_REGS.
3336 (mips_register_reggroup_p): New function.
3337 (mips_pseudo_register_write): New function.
3338 (mips_pseudo_register_read): New function.
3339 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3340 based on the register's type.
3341 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3343 (mips_get_saved_register): Simplify. Assert that REGNO is a
3345 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3346 (mips_register_type): Replace mips_register_virtual_type. Map
3347 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3349 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3350 that the register is cooked / virtual.
3351 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3352 Only get the extra info when needed.
3353 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3354 (mips32_heuristic_proc_desc): Fetch the cooked register.
3355 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3356 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3357 (mips_print_register): Use gdbarch_register_type, instead of
3358 REGISTER_VIRTUAL_TYPE.
3359 (print_gp_register_row): Use gdbarch_register_type, instead of
3360 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3361 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3362 Print the pseudo / cooked registers.
3363 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3364 Print the pseudo / cooked registers.
3365 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3366 REG_NUM is pseudo / cooked.
3367 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3368 (mips_n32n64_xfer_return_value): Ditto.
3369 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3370 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3371 (mips_register_sim_regno): New function.
3372 (mips_gdbarch_init): Set deprecated_register_byte,
3373 register_group_p, pseudo_register_write, pseudo_register_read,
3374 register_sim_regno, and num_pseudo_regs. Set register_type,
3375 instead of register_virtual_type.
3376 * Makefile.in (mips-tdep.o): Update dependencies.
3377 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3378 REGISTER_VIRTUAL_TYPE.
3379 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3380 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3381 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3382 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3383 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3385 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3387 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3388 * cli/cli-cmds.c: Include "gdb_vfork.h".
3389 (shell_escape): Use vfork.
3391 2003-06-21 Andrew Cagney <cagney@redhat.com>
3393 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3394 32 bit floating-point register saves.
3396 * frame.h (deprecated_unwind_get_saved_register): Delete.
3397 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3398 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3399 and deprecated_get_next_frame_hack instead of
3400 deprecated_unwind_get_saved_register.
3402 * mips-tdep.c (mips_dump_tdep): Do not print
3403 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3405 * frame.c (get_frame_register): New function.
3406 (frame_unwind_register_signed): New function.
3407 (get_frame_register_signed): New function.
3408 (frame_unwind_register_unsigned): New function.
3409 (get_frame_register_unsigned): New function.
3410 * frame.h: Add comments on naming schema.
3411 (get_frame_register, frame_unwind_register_signed): Declare.
3412 (get_frame_register_signed, get_frame_register_signed): Declare.
3413 (frame_unwind_register_unsigned): Declare.
3414 (get_frame_register_unsigned): Declare.
3416 2003-06-20 Theodore A. Roth <troth@openavr.org>
3418 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3420 2003-06-20 Theodore A. Roth <troth@openavr.org>
3422 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3423 (avr_read_sp): Ditto.
3425 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3427 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3428 * config/arm/nm-linux.h: Likewise.
3429 * config/arm/tm-linux.h: Likewise.
3430 * config/ia64/nm-linux.h: Likewise.
3431 * config/ia64/tm-ia64.h: Likewise.
3432 * config/s390/tm-linux.h: Likewise.
3433 * config/s390/tm-s390.h: Likewise.
3434 * s390-nat.c: Likewise.
3435 * s390-tdep.c: Likewise.
3437 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3438 * config/ia64/linux.mt: Likewise.
3439 * config/m68k/linux.mh: Likewise.
3440 * config/mips/linux.mt: Likewise.
3441 * config/powerpc/linux.mh: Likewise.
3442 * config/sh/linux.mt: Likewise.
3444 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3446 * solib.c (solib_open): Change tests for whether to search
3447 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3450 2003-06-19 Theodore A. Roth <troth@openavr.org>
3452 * avr-tdep.c (avr_frame_address): Delete function.
3453 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3454 set_gdbarch_frame_args_address.
3456 2003-06-19 Andrew Cagney <cagney@redhat.com>
3458 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3459 (REGISTER_CONVERT_FROM_TYPE): Delete.
3460 (mips_register_convert_to_type): Delete declaration.
3461 (mips_register_convert_from_type): Delete declaration.
3462 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3465 2003-06-19 Michael Snyder <msnyder@redhat.com>
3467 * linux-nat.h: New file.
3468 * linux-nat.c: Include linux-nat.h.
3469 * lin-lwp.c: Include linux-nat.h.
3470 Move struct lwp_info def to linux-nat.h.
3471 * linux-proc.c: Include linux-nat.h.
3472 (linux_make_note_section): Iterate over lwps instead of threads.
3473 (linux_do_thread_registers): Use lwp instead of merged pid.
3474 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3475 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3476 Add dependency on linux_nat_h.
3478 2003-06-19 Theodore A. Roth <troth@openavr.org>
3480 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3482 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3484 * varobj.c (get_type, get_target_type): Use check_typedef.
3486 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3488 * breakpoint.c (insert_catchpoint): Call internal_error.
3490 2003-06-19 Theodore A. Roth <troth@openavr.org>
3492 * avr-tdep.c (avr_push_dummy_code): Delete function.
3493 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3495 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3497 * arch-utils.c (default_prepare_to_proceed): Remove.
3498 (generic_prepare_to_proceed): Remove.
3499 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3500 (generic_prepare_to_proceed): Remove prototype.
3501 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3502 * gdbarch.c: Regenerate.
3503 * gdbarch.h: Regenerate.
3504 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3505 * hppah-nat.c (hppa_switched_threads): Remove.
3506 * infrun.c (prepare_to_proceed): New static function, copied from
3507 generic_prepare_to_proceed. Remove select_it argument.
3508 (proceed): Call prepare_to_proceed.
3509 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3511 (ptrace_wait): Don't set the removed variables.
3512 (hppa_switched_threads): Remove.
3513 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3514 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3515 (lin_lwp_prepare_to_proceed): Remove prototype.
3516 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3517 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3519 2003-06-18 Theodore A. Roth <troth@openavr.org>
3521 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3523 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3524 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3525 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3526 (AVR_PROLOGUE_*): Enumerate prologue types.
3527 (struct frame_extra_info): Remove.
3528 (struct avr_unwind_cache): Define.
3529 (avr_write_sp): Delete function.
3530 (avr_read_fp): Ditto.
3531 (avr_init_extra_frame_info): Ditto.
3532 (avr_pop_frame): Ditto.
3533 (avr_frame_saved_pc): Ditto.
3534 (avr_saved_pc_after_call): Ditto.
3535 (avr_push_return_address): Ditto.
3536 (avr_frame_chain): Ditto.
3537 (avr_store_struct_return): Ditto.
3538 (avr_push_arguments): Ditto.
3539 (avr_scan_prologue): Update comments. Changed to set up the info for
3540 cache unwinding. Now returns end of prologue PC.
3541 (avr_skip_prologue): Better handling of functions lacking a prologue
3542 by using avr_scan_prologue.
3543 (avr_scan_arg_moves): New function.
3544 (avr_saved_regs_unwinder): Ditto.
3545 (avr_frame_unwind_cache): Ditto.
3546 (avr_unwind_pc): Ditto.
3547 (avr_frame_this_id): Ditto.
3548 (avr_frame_prev_register): Ditto.
3549 (avr_frame_p): Ditto.
3550 (avr_frame_base_address ): Ditto.
3551 (avr_unwind_dummy_id): Ditto.
3552 (avr_push_dummy_code): Ditto.
3553 (push_stack_item): Ditto.
3554 (pop_stack_item): Ditto.
3555 (avr_push_dummy_call): Ditto.
3556 (struct stack_item): Define.
3557 (avr_frame_unwind): Declare structure.
3558 (avr_frame_base): Ditto.
3559 (avr_gdbarch_init): Remove calls to
3560 set_gdbarch_deprecated_init_frame_pc,
3561 set_gdbarch_deprecated_target_read_fp,
3562 set_gdbarch_deprecated_dummy_write_sp,
3563 set_gdbarch_deprecated_fp_regnum,
3564 set_gdbarch_deprecated_push_arguments,
3565 set_gdbarch_deprecated_push_return_address,
3566 set_gdbarch_deprecated_pop_frame,
3567 set_gdbarch_deprecated_store_struct_return,
3568 set_gdbarch_deprecated_frame_init_saved_regs,
3569 set_gdbarch_deprecated_init_extra_frame_info,
3570 set_gdbarch_deprecated_frame_chain,
3571 set_gdbarch_deprecated_frame_saved_pc,
3572 set_gdbarch_deprecated_saved_pc_after_call.
3573 Add calls to set_gdbarch_push_dummy_call,
3574 set_gdbarch_push_dummy_code,
3575 frame_unwind_append_predicate,
3576 frame_base_set_default,
3577 set_gdbarch_unwind_dummy_id,
3578 set_gdbarch_unwind_pc.
3581 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3583 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3584 registers for H8/300S.
3585 (h8300_print_registers_info): Ditto.
3586 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3588 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3590 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3591 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3592 (lin_lwp_wait): Likewise. Update comments.
3593 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3594 (pull_pid_from_list, linux_record_stopped_pid): New.
3596 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3598 * ada-lang.c (scan_discrim_bound): Name first argument.
3599 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3600 declared by ALL_BLOCK_SYMBOLS.
3602 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3604 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3605 ("regcache.h"): Include it.
3606 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3608 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3610 * NEWS: Mention gdbserver detach change and "disconnect" command.
3611 * infcmd.c (disconnect_command): New function.
3612 (_initialize_infcmd): Add ``disconnect'' command.
3613 * remote.c (remote_async_detach): Delete.
3614 (remote_detach): Merge remote_async_detach.
3615 (remote_disconnect): New.
3616 (init_remote_ops): Set to_disconnect.
3617 (init_remote_cisco_ops): Likewise.
3618 (init_remote_async_ops): Likewise. Use remote_detach.
3619 * target.c (cleanup_target): Default to_disconnect.
3620 (update_current_target): Inherit to_disconnect.
3621 (target_disconnect, debug_to_disconnect): New functions.
3622 (setup_target_debug): Set to_disconnect.
3623 * target.h (struct target_ops): Add to_disconnect.
3624 (target_disconnect): Add prototype.
3626 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3628 * breakpoint.c (insert_catchpoint): New function.
3629 (insert_breakpoints): Use catch_exceptions to call
3630 insert_catchpoint. Disable catchpoints if they fail to insert.
3632 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3634 * symfile.c (reread_symbols): Clear sym_private.
3636 2003-06-17 Andrew Cagney <cagney@redhat.com>
3638 * trad-frame.h (struct frame_info): Add opaque declaration.
3639 * remote-fileio.h (struct cmd_list_element): Add opaque
3641 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3644 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3646 * remote.c (remote_prepare_to_store): Replace call to
3647 deprecated_read_register_bytes with multiple regcache_raw_read
3650 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3652 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3653 (nto_find_and_open_solib): Likewise.
3654 (nto_init_solib_absolute_prefix): Likewise.
3655 (_initialize_nto_tdep): Fix indentation.
3657 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3659 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3661 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3663 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3665 2003-06-17 Jim Blandy <jimb@redhat.com>
3667 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3669 2003-06-16 Theodore A. Roth <troth@openavr.org>
3671 * avr-tdep.c (avr_extract_return_value): New function.
3672 (avr_gdbarch_init): Set extract_return_value method.
3674 2003-06-16 Andrew Cagney <cagney@redhat.com>
3676 * frame.h (deprecated_get_next_frame_hack): Declare.
3677 * frame.c (legacy_saved_regs_prev_register): Only require
3678 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3679 there are always saved regs.
3680 (deprecated_generic_get_saved_register): Do not require
3681 DEPRECATED_FRAME_INIT_SAVED_REGS.
3682 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3683 use frame ID unwind instead.
3684 (deprecated_get_next_frame_hack): New function.
3686 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3688 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3689 (h8300_push_dummy_call): ...this function. Some minor optimization.
3690 (h8300_push_return_address): Remove.
3691 (h8300_gdbarch_init): Remove calls to
3692 set_gdbarch_deprecated_dummy_write_sp,
3693 set_gdbarch_deprecated_push_arguments and
3694 set_gdbarch_deprecated_push_return_address.
3695 Add call to set_gdbarch_push_dummy_call.
3697 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3699 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3700 (E_PSEUDO_EXR_REGNUM): Ditto.
3701 (h8300_is_argument_spill): Check for instructions moving argument
3702 registers into safe registers.
3703 (h8300_skip_prologue): Check for stm instruction to push registers
3704 used for register variables onto stack.
3705 (gdb_print_insn_h8300): Remove.
3706 (h8300_examine_prologue): Add a comment.
3707 (h8300_register_name): Take pseudo registers into account.
3708 (h8300s_register_name): Ditto.
3709 (h8300sx_register_name): Ditto.
3710 (h8300_print_register): Ditto.
3711 (h8300_print_registers_info): Define "nice" printing order.
3712 (h8300_saved_pc_after_call): Take pseudo registers into account.
3713 (h8300_register_type): Ditto. Return type used for remote connection
3714 when requesting real CCR or EXR register, return actual type when
3715 requesting pseudo CCR or EXR.
3716 (h8300_pseudo_register_read): New function.
3717 (h8300_pseudo_register_write): Ditto.
3718 (h8300_dbg_reg_to_regnum): Ditto.
3719 (h8300s_dbg_reg_to_regnum): Ditto.
3720 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3721 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3722 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3723 set_gdbarch_print_insn architecture dependent.
3724 Call set_gdbarch_pseudo_register_read and
3725 set_gdbarch_pseudo_register_write.
3726 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3728 2003-06-16 Andrew Cagney <cagney@redhat.com>
3730 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3731 * gdbarch.h, gdbarch.c: Re-generate.
3732 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3733 * s390-tdep.c (s390_gdbarch_init): Update.
3734 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3735 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3736 * mips-tdep.c (mips_gdbarch_init): Update.
3737 * mcore-tdep.c (mcore_gdbarch_init): Update.
3738 * cris-tdep.c (cris_gdbarch_init): Update.
3739 * infcall.c (call_function_by_hand): Update.
3740 * ia64-tdep.c (ia64_push_arguments): Update comment.
3741 * frame.c (legacy_get_prev_frame): Do not assume
3742 SAVE_DUMMY_FRAME_TOS_P.
3743 * dummy-frame.c (find_dummy_frame): Update comment.
3745 2003-06-16 Andrew Cagney <cagney@redhat.com>
3747 * regcache.c (do_cooked_read): Do not use register_valid_p.
3749 2003-06-15 Theodore A. Roth <troth@openavr.org>
3751 * avr-tdep.c (avr_register_type): Remove a blank line.
3752 (avr_scan_prologue): Correct some comments.
3754 2003-06-15 Theodore A. Roth <troth@openavr.org>
3756 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3758 Properly scan prologues generated by gcc with the -mcall-prologues
3760 Add code to scan -mcall-prologues for mega devices.
3762 2003-06-15 Theodore A. Roth <troth@openavr.org>
3764 * avr-tdep.c (avr_register_byte): Delete function.
3765 (avr_register_raw_size): Delete function.
3766 (avr_register_virtual_size): Delete function.
3767 (avr_register_virtual_type): Delete function.
3768 (avr_register_type): New function.
3769 (avr_address_to_pointer): Remove unused code.
3770 (avr_read_fp): Need to read FP as two separate bytes due to change to
3771 avr_register_type() usage.
3772 (avr_gdbarch_init): Don't set deprecated_register_size.
3773 Don't set deprecated_register_bytes.
3774 Don't set deprecated_register_byte.
3775 Don't set deprecated_register_raw_size.
3776 Don't set deprecated_max_register_raw_size.
3777 Don't set deprecated_register_virtual_size.
3778 Don't set deprecated_max_register_virtual_size.
3779 Don't set deprecated_register_virtual_type.
3780 Set register_type method.
3782 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3784 * Makefile.in (linux-nat.o): Add rule.
3785 * linux-nat.c: New file.
3786 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3787 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3788 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3789 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3790 * config/arm/linux.mh (NATDEPFILES): Likewise.
3791 * config/i386/linux.mh (NATDEPFILES): Likewise.
3792 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3793 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3794 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3795 * config/mips/linux.mh (NATDEPFILES): Likewise.
3796 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3797 * config/s390/s390.mh (NATDEPFILES): Likewise.
3798 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3800 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3802 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3803 replace out-of-date comment.
3805 2003-06-15 Andrew Cagney <cagney@redhat.com>
3807 * rdi-share/host.h (Fail): Change to a varargs function.
3808 * remote-rdi.c (Fail): Update.
3810 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3812 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3813 (i386_convert_register_p, i386_register_to_value,
3814 i386_register_from_value): Handle types longer than 8 bytes.
3816 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3818 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3819 Move floating-point code to new function in i387-tdep.c.
3820 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3821 New functions containing code moved here from i386-tdep.c.
3822 * i387-tdep.h: Add opaque declaration for `struct type'.
3823 (i387_register_to_value, i387_value_to_register): New prototypes.
3824 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3825 (x86_64_init_abi): Set convert_register_p, register_to_value and
3826 value_to_register here.
3828 2003-06-14 Andrew Cagney <cagney@redhat.com>
3830 * mips-tdep.c (mips_register_to_value): Make static.
3831 (mips_value_to_register): Make static.
3832 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3833 * ia64-tdep.c (ia64_register_raw_size): Make static.
3834 (ia64_register_virtual_size): Make static.
3835 (ia64_register_byte): Make static.
3836 * i387-tdep.c: Include "i387-tdep.h".
3837 (print_387_control_word): Delete function.
3838 (print_387_status_word): Delete function.
3839 (print_387_status_bits): Delete function.
3840 (print_387_control_bits): Delete function.
3841 * Makefile.in (i387-tdep.o): Update dependencies.
3842 * rdi-share/host.h (Fail): Declare.
3843 * remote-rdi.c (Fail): Update to match declaration.
3845 2003-06-14 Andrew Cagney <cagney@redhat.com>
3847 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3848 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3849 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3850 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3851 * README: Delete reference to remote-array.
3852 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3853 (remote-array.o): Delete target.
3854 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3855 * remote-array.c: Delete file.
3857 2003-06-14 Andrew Cagney <cagney@redhat.com>
3858 Mark Kettenis <kettenis@gnu.org>
3860 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3861 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3862 parameter with "frame".
3863 * gdbarch.h, gdbarch.c: Re-generate.
3864 * frame.h (put_frame_register): Declare.
3865 * frame.c (put_frame_register): New function.
3866 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3867 (legacy_register_to_value): Rewrite, use "frame" to get the
3869 (legacy_value_to_register): Rewrite, use "frame" to find the
3870 register's location before storing.
3871 * arch-utils.h (legacy_convert_register_p): Update.
3872 (legacy_register_to_value, legacy_value_to_register): Update.
3873 * findvar.c (value_from_register): Rewrite, eliminate use of
3874 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3875 "frame" to REGISTER_TO_VALUE.
3876 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3877 lval_reg_frame_relative + lval_register branch of the switch. Do
3878 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3879 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3880 I386_EDI_REGNUM): New defines.
3881 (i386_next_regnum, i386_convert_register_p,
3882 i386_register_to_value, i386_value_to_register): New functions.
3883 (i386_register_convertible, i386_register_convert_to_virtual,
3884 i386_convert_to_raw): Remove functions.
3885 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3886 value_to_register instead of register_convertible,
3887 register_convert_to_virtual and register_convert_to_raw.
3888 * mips-tdep.c (mips_convert_register_p): New function.
3889 (mips_value_to_register): Replace mips_register_convert_from_type.
3890 (mips_register_to_value): Replace mips_register_convert_to_type.
3891 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3893 * alpha-tdep.c (alpha_convert_register_p): Update.
3894 (alpha_value_to_register): Update, store the register.
3895 (alpha_register_to_value): Update, fetch the register.
3897 2003-06-14 Theodore A. Roth <troth@openavr.org>
3899 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3900 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3901 Don't set deprecated_call_dummy_words.
3902 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3903 Don't set remote_translate_xfer_address.
3904 (avr_io_reg_read_command): Remove commented out debug printf.
3907 2003-06-14 Theodore A. Roth <troth@openavr.org>
3909 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3910 causes gdb to seg fault.
3912 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3914 * sparc-nat.c (fetch_inferior_registers): Correct
3915 a reference to "registers".
3917 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3919 * Makefile.in (exc_request_U_h): Define
3920 (exc_request_S_h): Likewise.
3921 (msg_reply_S_h): Likewise.
3922 (msg_U_h): Likewise.
3923 (notify_S_h): Likewise.
3924 (process_reply_S_h): Likewise.
3925 (gnu-nat.o): Depend on gdb_obstack_h
3926 * gnu-nat.c: Include "gdb_obstack.h".
3928 2003-06-13 Andrew Cagney <cagney@redhat.com>
3930 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3931 * gdbarch.h, gdbarch.c: Re-generate.
3933 2003-06-13 Andrew Cagney <cagney@redhat.com>
3935 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3936 when deprecated REGISTER macros can be deleted.
3937 * gdbarch.h, gdbarch.c: Re-generate.
3939 2003-06-13 Jim Blandy <jimb@redhat.com>
3941 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3942 Linux entry point symbols for _dl_debug_state, too.
3944 2003-06-13 Andrew Cagney <cagney@redhat.com>
3946 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3947 available, do not use the FP register, and always save the TOS.
3948 * dummy-frame.c (dummy_frame_this_id): Do not assert
3949 SAVE_DUMMY_FRAME_TOS.
3950 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3951 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3952 (i386_push_dummy_call): Add 8 to the returned SP.
3953 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3954 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3955 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3956 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3957 (x86_64_push_dummy_call): Return "sp + 16".
3958 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3959 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3960 save_dummy_frame_tos.
3962 2003-06-13 Jim Blandy <jimb@redhat.com>
3964 * frv-tdep.c (frv_use_struct_convention): Delete static
3965 declaration for function deleted in my change of 2003-06-12.
3967 2003-06-13 Theodore A. Roth <troth@openavr.org>
3969 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3970 (avr_pointer_to_address): Shift code addrs left 1 bit.
3971 (avr_convert_from_func_ptr_addr): Delete function since operation is
3972 better handled by avr_address_to_pointer and avr_pointer_to_address.
3973 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3975 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3977 From Kelley Cook <kelleycook@wideopenwest.com>:
3978 * configure.host: Accept i[34567]86 variants.
3979 * configure.tgt: Likewise.
3980 * nlm/configure.in: Likewise.
3981 * nlm/configure: Regenerated.
3983 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3985 * arm-tdep.c (solib-svr4.h): Dont' include it.
3986 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3987 * arm-linux-tdep.c: ... here. Make static.
3988 (arm_linux_init_abi): Register it.
3989 (solib-svr4.h): Include it.
3990 * Makefile.in: Update dependencies.
3991 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3992 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3994 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3996 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3997 indicate registers used for return values.
3998 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3999 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4001 (h8300_init_extra_frame_info): Ditto.
4002 (h8300_frame_locals_address): Removed.
4003 (h8300_frame_args_address): Removed.
4004 (h8300_extract_return_value): Use new regcache structure. Only care
4006 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4007 (h8300_store_return_value): Use new regcache structure. Only care
4009 (h8300h_store_return_value): Same function for 32 bit CPUs.
4010 (h8300_store_struct_return): Removed.
4011 (h8300_extract_struct_value_address): Use new regcache structure.
4012 (h8300h_extract_struct_value_address): Removed.
4013 (h8300_push_dummy_code): New function.
4014 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4015 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4016 set_gdbarch_store_return_value architecture dependent.
4017 Call set_gdbarch_push_dummy_code and
4018 set_gdbarch_extract_struct_value_address.
4019 Remove calls to set_gdbarch_frame_args_address,
4020 set_gdbarch_frame_locals_address,
4021 set_gdbarch_deprecated_store_struct_return,
4022 set_gdbarch_deprecated_extract_return_value,
4023 set_gdbarch_deprecated_extract_struct_value_address,
4024 set_gdbarch_deprecated_call_dummy_words and
4025 set_gdbarch_deprecated_sizeof_call_dummy_words.
4027 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4029 * h8300-tdep.c (h8300_register_byte): Remove.
4030 (h8300h_register_byte): Remove.
4031 (h8300_register_virtual_type): Remove. Substitute by...
4032 (h8300_register_type): New function.
4033 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4034 (h8300h_extract_struct_value_address): Ditto.
4035 (h8300_gdbarch_init): Drop calls to
4036 set_gdbarch_deprecated_register_byte and
4037 set_gdbarch_deprecated_register_virtual_type.
4038 Add call to set_gdbarch_register_type.
4040 2003-06-13 Andrew Cagney <cagney@redhat.com>
4042 * gdbarch.sh: Update comments on registers.
4043 (deprecated_register_byte): Rename register_byte.
4044 (deprecated_register_raw_size): Rename register_raw_size.
4045 (deprecated_register_virtual_size): Rename register_virtual_size.
4046 (deprecated_register_virtual_type): Rename register_virtual_type.
4047 * gdbarch.h, gdbarch.c: Re-generate.
4048 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4049 * vax-tdep.c (vax_gdbarch_init): Update.
4050 * v850-tdep.c (v850_gdbarch_init): Update.
4051 * sparc-tdep.c (sparc_gdbarch_init): Update.
4052 * sh-tdep.c (sh_gdbarch_init): Update.
4053 * s390-tdep.c (s390_gdbarch_init): Update.
4054 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4055 * ns32k-tdep.c: Update.
4056 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4057 * mips-tdep.c (mips_gdbarch_init): Update.
4058 * mcore-tdep.c (mcore_gdbarch_init): Update.
4059 * m68k-tdep.c (m68k_gdbarch_init): Update.
4060 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4061 * ia64-tdep.c (ia64_gdbarch_init): Update.
4062 * hppa-tdep.c (hppa_gdbarch_init): Update.
4063 * h8300-tdep.c (h8300_gdbarch_init): Update.
4064 * frv-tdep.c (frv_gdbarch_init): Update.
4065 * cris-tdep.c (cris_gdbarch_init): Update.
4066 * avr-tdep.c (avr_gdbarch_init): Update.
4067 * alpha-tdep.c (alpha_gdbarch_init): Update.
4068 * arm-tdep.c (arm_gdbarch_init): Update.
4070 2003-06-13 Andrew Cagney <cagney@redhat.com>
4072 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4073 mips_o32_use_struct_convention with always_use_struct_convention.
4075 2003-06-12 David Carlton <carlton@kealia.com>
4077 * cp-namespace.c (cp_set_block_scope): Comment out
4078 processing_has_namespace_info branch.
4080 2003-06-12 Jim Blandy <jimb@redhat.com>
4082 Recognize and skip 64-bit PowerPC Linux linkage functions.
4083 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4084 insn_pattern, insns_match_pattern, d_field, ds_field): New
4085 functions, macros, and types for working with PPC instructions.
4086 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4087 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4088 ppc64_skip_trampoline_code): New functions, variables, and macros
4089 for recognizing and skipping linkage functions.
4090 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4091 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4093 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4094 register offsets for both the 32- and 64-bit interfaces.
4096 Actually finish the job started by my change of 2003-05-29.
4097 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4098 other #definition of this.
4099 (ppc_linux_skip_trampoline_code): Remove declaration.
4100 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4102 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4105 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4106 'long' on ppc64-*-linux*.
4108 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4109 isn't #defined, assume the register doesn't exist: act as if
4110 tdep->ppc_mq_regnum were -1.
4112 * configure.host, configure.tgt: Add entries for
4113 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4115 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4118 * arch-utils.c (always_use_struct_convention): New function.
4119 * arch-utils.h (always_use_struct_convention): New prototype.
4120 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4121 (alpha_gdbarch_init): Register always_use_struct_convention,
4122 instead of alpha_use_struct_convention.
4123 * cris-tdep.c (cris_use_struct_convention): Delete.
4124 (cris_gdbarch_init): Register always_use_struct_convention,
4125 instead of cris_use_struct_convention.
4126 * frv-tdep.c (frv_use_struct_convention): Delete.
4127 (frv_gdbarch_init): Register always_use_struct_convention,
4128 instead of frv_use_struct_convention.
4129 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4130 (h8300_gdbarch_init): Register always_use_struct_convention,
4131 instead of h8300_use_struct_convention.
4132 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4133 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4134 instead of mips_o32_use_struct_convention.
4136 2003-06-12 Andrew Cagney <cagney@redhat.com>
4138 * wince.c: Include "mips-tdep.h".
4139 * mips-tdep.h (mips_next_pc): Declare.
4140 * mcore-tdep.c: Make more local functions static.
4141 * Makefile.in (wince.o): Update dependencies.
4143 2003-06-12 David Carlton <carlton@kealia.com>
4145 * symtab.c (lookup_symbol_aux_minsyms): Replace
4146 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4147 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4148 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4149 SYMBOL_NATURAL_NAME.
4151 2003-06-12 Andreas Schwab <schwab@suse.de>
4153 * Makefile.in (tuiDisassem.o): Update dependencies.
4155 2003-06-12 David Carlton <carlton@bactrian.org>
4157 * symtab.h: Delete declaration of make_symbol_overload_list.
4158 Add declaration of lookup_partial_symbol.
4159 * symtab.c (remove_params): Move to cp-support.c.
4160 (overload_list_add_symbol, make_symbol_overload_list)
4161 (sym_return_val_size, sym_return_val_index): Ditto.
4162 (lookup_partial_symbol): Make extern.
4163 * cp-support.h: Add declaration of make_symbol_overload_list.
4164 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4165 symtab.h, and block.h.
4166 (remove_params): Move here from symtab.c.
4167 (overload_list_add_symbol, make_symbol_overload_list)
4168 (sym_return_val_size, sym_return_val_index): Ditto.
4169 * valops.c: Include cp-support.h.
4170 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4171 frame_h, and block_h.
4172 (valops.o): Depend on cp_support_h.
4174 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4176 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4177 substitute by NUM_REGS throughout.
4178 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4179 (h8300s_register_name): New function for H8S registers.
4180 (h8300sx_register_name): Ditto for H8SX registers.
4181 (h8300_print_register): Revise register printing, avoid depending
4183 (h8300_register_byte): Only care for H8/300 registers.
4184 (h8300h_register_byte): New function for any other architecture.
4185 (h8300_register_raw_size): Remove.
4186 (h8300_register_virtual_type): Revise to return actually useful
4188 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4189 (h8300h_extract_struct_value_address): New function for any other
4191 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4192 set_gdbarch_register_name, set_gdbarch_register_byte,
4193 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4194 Remove calls to set_gdbarch_deprecated_register_size,
4195 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4196 set_gdbarch_deprecated_max_register_raw_size,
4197 set_gdbarch_register_virtual_size and
4198 set_gdbarch_deprecated_max_register_virtual_size entirely.
4199 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4200 set_gdbarch_long_double_bit.
4202 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4204 * doublest.c (convert_doublest_to_floatformat): When dealing
4205 with the implied integer bit, only alter mant_bits if we are
4206 processing a full 32 bits of mantissa.
4208 2003-06-11 David Carlton <carlton@bactrian.org>
4210 * dictionary.h: New.
4211 * dictionary.c: New.
4212 * block.h: Add opaque declaration for struct dictionary.
4213 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4215 (BLOCK_DICT): New macro.
4216 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4217 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4219 (ALL_BLOCK_SYMBOLS): Update definition.
4220 * Makefile.in (SFILES): Add dictionary.c.
4221 (dictionary_h): New.
4222 (COMMON_OBS): Add dictionary.o.
4223 (dictionary.o): New.
4224 (ada-lang.o): Depend on dictionary_h.
4225 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4226 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4227 (mi-cmd-stack.o): Ditto.
4228 (gdbtk-cmds.o): Update dependencies.
4229 (gdbtk-stack.o): Ditto.
4230 * ada-lang.c: Include dictionary.h.
4231 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4232 (fill_in_ada_prototype, debug_print_block): Ditto.
4233 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4234 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4236 * mdebugread.c: Include dictionary.h.
4237 (struct parse_stack): Delete 'maxsyms' member.
4238 (parse_symbol): Update calls to new_block. Delete calls to
4239 shrink_block. Use dictionary methods.
4240 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4241 Update calls to new_symtab. Don't maintain maxsyms data.
4242 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4243 (add_symbol): Just call dict_add_symbol.
4244 (new_symtab): Delete 'maxsyms' argument.
4245 (new_symtab): Update calls to new_block.
4246 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4247 (shrink_block): Delete function.
4248 (fixup_sigtramp): Update call to new_block. Add symbol via
4250 * jv-lang.c: Include dictionary.h.
4251 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4252 appropriately. Set class_symtab->free_func. Make sure the
4253 blockvector is big enough to hold two blocks.
4254 (add_class_symtab_symbol): Use dictionary methods.
4255 (free_class_block): New function.
4256 (type_from_class): Replace explicit iteration by
4258 * symtab.h (struct symtab): Replace 'free_ptr' method by
4260 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4262 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4264 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4265 Include dictionary.h.
4266 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4267 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4269 * objfiles.c: Include dictionary.h.
4270 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4271 * buildsym.c: Include dictionary.h.
4272 (finish_block): Use dictionary methods.
4273 (end_symtab): Set free_func to NULL, not free_ptr.
4274 * tracepoint.c: Include dictionary.h.
4275 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4276 (scope_info): Ditto.
4277 * stack.c: Include dictionary.h.
4278 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4279 (print_block_frame_labels, print_frame_arg_vars)
4280 (print_frame_args): Ditto.
4281 * symmisc.c (free_symtab_block): Use dictionary methods.
4282 (dump_symtab): Ditto.
4283 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4284 Include dictionary.h.
4285 * symfile.h: Delete declarations of sort_block_syms,
4287 * symfile.c (sort_block_syms): Delete.
4288 (sort_symtab_syms): Delete.
4289 * symtab.c: Include dictionary.h.
4290 (lookup_block_symbol): Use dictionary iterators.
4291 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4292 (search_symbols, make_symbol_completion_list): Ditto.
4293 (make_symbol_overload_list): Ditto.
4294 * valops.c (value_of_local): Use dict_empty.
4295 Include dictionary.h.
4297 2003-06-11 J. Brobecker <brobecker@gnat.com>
4299 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4301 2003-06-11 David Carlton <carlton@bactrian.org>
4303 * block.h (BLOCK_SHOULD_SORT): Delete.
4304 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4306 * ada-lang.c (ada_add_block_symbols): Ditto.
4307 * symfile.c (sort_block_syms): Delete.
4308 (sort_symtab_syms): Ditto.
4309 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4311 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4312 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4313 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4314 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4315 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4316 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4317 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4319 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4321 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4324 2003-06-11 Andrew Cagney <cagney@redhat.com>
4326 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4327 REGISTER_CONVERTIBLE.
4328 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4329 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4330 * gdbarch.h, gdbarch.c: Re-generate.
4331 * arch-utils.h (deprecated_register_convertible_not): Rename
4332 generic_register_convertible_not.
4333 * arch-utils.c (deprecated_register_convertible_not): Rename
4334 generic_register_convertible.
4335 (legacy_convert_register_p, legacy_register_to_value): Update.
4336 * sh-tdep.c (sh64_push_arguments): Update.
4337 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4338 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4339 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4340 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4341 * arch-utils.c (legacy_value_to_register): Update.
4342 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4343 (rs6000_register_convert_to_raw): Make parameter "from" const.
4344 * mips-tdep.c (mips_gdbarch_init): Update.
4345 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4346 * infcmd.c (default_print_registers_info): Update.
4347 * ia64-tdep.c (ia64_gdbarch_init): Update.
4348 (ia64_register_convert_to_raw): Make parameter "from" const.
4349 * i386-tdep.c (i386_gdbarch_init): Update.
4350 (i386_register_convert_to_raw): Update.
4352 2003-06-11 Andrew Cagney <cagney@redhat.com>
4354 * remote-fileio.c: Include "remote-fileio.h".
4355 * Makefile.in (remote-fileio.o): Update dependencies.
4356 (remote_fileio_h): Fix typo.
4358 2003-06-11 Andrew Cagney <cagney@redhat.com>
4360 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4361 (xstormy16_save_dummy_frame_tos): Make static.
4362 (_initialize_xstormy16_tdep): Add declaration.
4363 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4364 * v850-tdep.c: Make local functions static.
4365 (_initialize_v850_tdep): Add declaration.
4366 * sparc-tdep.c: Make local functions static.
4367 (_initialize_sparc_tdep): Add declaration.
4368 * sh-tdep.c: Make local functions static.
4369 (_initialize_sh_tdep): Add declaration.
4370 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4371 * s390-tdep.c: Make local functions static.
4372 (_initialize_s390_tdep): Add declaration.
4373 * dbxread.c (find_stab_function_addr): Make static.
4374 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4375 * ocd.c (_initialize_remote_ocd): Add declaration.
4376 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4377 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4378 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4379 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4380 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4381 * remote-array.c (_initialize_array): Add declaration.
4382 (_initialize_remote_monitors): Add declaration.
4383 * remote-mips.c: Make local functions static.
4384 (_initialize_remote_mips): Add declaration.
4385 * mcore-tdep.c: Make all local functions static.
4386 (_initialize_mcore_tdep): Add declaration.
4387 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4388 * abug-rom.c (_initialize_abug_rom): Add declaration.
4389 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4390 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4391 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4392 * remote-est.c (_initialize_est): Add declaration.
4393 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4394 (m68hc11_call_dummy_address): Make static.
4395 * ia64-tdep.c: Make local functions static.
4396 (_initialize_ia64_tdep): Add declaration.
4397 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4398 * monitor.c (monitor_wait_filter): Make static.
4399 (_initialize_remote_monitors): Add declaration.
4400 * remote-hms.c (_initialize_remote_hms): Add declaration.
4401 * remote-e7000.c (fetch_regs_from_dump): Make static.
4402 (expect_n): Make static.
4403 (_initialize_remote_e7000): Add declaration.
4404 * ser-e7kpc.c: Always include "defs.h".
4405 (_initialize_ser_e7000pc): Add declaration.
4406 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4407 * cris-tdep.c: Make all but one function static.
4408 (_initialize_cris_tdep): Add declaration.
4409 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4410 * solib.c (update_solib_list): Make static.
4411 (_initialize_solib): Add declaration.
4412 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4413 (_initialize_avr_tdep): Add declaration.
4414 * remote-rdi.c (voiddummy): Make static.
4415 (_initialize_remote_rdi): Add declaration.
4416 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4417 * remote-rdp.c (send_rdp): Make static.
4418 (_initialize_remote_rdp): Add declaration.
4419 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4421 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4423 * remote-fileio.c: Make ari happy.
4425 2003-06-10 J. Brobecker <brobecker@gnat.com>
4427 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4428 fetching the trailing bytes of the buffer we are about to write.
4430 2003-06-10 Andrew Cagney <cagney@redhat.com>
4432 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4433 * Makefile.in (remote-fileio.o): Update dependencies.
4434 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4435 include <setjmp.h>, or <sys/types.h> conditional on USG.
4436 (remote_fio_jmp_buf): Delete global variable.
4438 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4439 Martin M. Hunt <hunt@redhat.com>
4441 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4442 (SFILES): Add remote-fileio.c.
4443 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4444 dependencies for building remote.o.
4445 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4446 * remote-fileio.h: New header file defining remote File-I/O interface.
4447 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4448 static storage class.
4449 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4451 (_initialize_remote): Call initialize_remote_fileio().
4452 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4453 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4454 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4455 (captured_main): Initialize new ui_files.
4456 * ui-file.c: Add read and fgets input functions.
4457 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4458 (null_file_read): New function.
4459 (ui_file_read): New function.
4460 (set_ui_file_read): New function.
4461 (stdio_file_read): New function.
4462 * ui-file.h: New type ui_file_read_ftype.
4463 (set_ui_file_read): Declare.
4464 (ui_file_read): Declare.
4466 2003-06-09 Andrew Cagney <cagney@redhat.com>
4468 * frame.h (deprecated_unwind_get_saved_register): Rename
4469 generic_unwind_get_saved_register, update comments.
4470 * mips-tdep.c (mips_get_saved_register): Update.
4471 * frame.c (deprecated_unwind_get_saved_register): Update.
4473 2003-06-09 Andrew Cagney <cagney@redhat.com>
4475 * vax-tdep.c (vax_frame_locals_address): Delete function.
4476 (vax_gdbarch_init): Do not set frame_locals_address.
4477 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4478 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4479 * s390-tdep.c (s390_frame_args_address): Delete function.
4480 (s390_gdbarch_init): Do not set frame_args_address or
4481 frame_locals_address.
4482 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4483 (ns32k_gdbarch_init): Do not set frame_locals_address.
4484 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4485 (hppa_frame_locals_address): Delete function.
4486 (hppa_gdbarch_init): Do not set frame_args_address, or
4487 frame_locals_address.
4488 * arm-tdep.c (arm_frame_args_address): Delete.
4489 (arm_frame_locals_address): Delete.
4490 (arm_gdbarch_init): Do not set frame_args_address, or
4491 frame_locals_address.
4493 2003-06-09 Andrew Cagney <cagney@redhat.com>
4495 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4496 * gdbarch.h, gdbarch.c: Re-generate.
4497 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4498 * arch-utils.c (frame_num_args_unknown): Delete function.
4499 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4500 (frame_info): Use FRAME_NUM_ARGS_P.
4501 * arm-tdep.c (arm_frame_num_args): Delete function.
4502 (arm_gdbarch_init): Do not set frame_num_args.
4503 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4504 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4505 (hppa_gdbarch_init): Do not set frame_num_args.
4506 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4507 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4508 frame_num_args to default frame_num_args_unknown.
4509 * v850-tdep.c (v850_gdbarch_init): Ditto.
4510 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4511 * sh-tdep.c (sh_gdbarch_init): Ditto.
4512 * s390-tdep.c (s390_gdbarch_init): Ditto.
4513 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4514 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4515 * mips-tdep.c (mips_gdbarch_init): Ditto.
4516 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4517 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4518 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4519 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4520 * i386-tdep.c (i386_gdbarch_init): Ditto.
4521 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4522 * frv-tdep.c (frv_gdbarch_init): Ditto.
4523 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4524 * cris-tdep.c (cris_gdbarch_init): Ditto.
4525 * avr-tdep.c (avr_gdbarch_init): Ditto.
4526 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4528 2003-06-09 Andrew Cagney <cagney@redhat.com>
4530 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4531 (print_frame_args): Moved to "stack.c".
4532 * stack.c: Include "gdb_assert.h".
4533 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4534 (print_frame_args): Moved from "printcmd.c".
4535 * frame.h (print_frame_args): Delete declaration.
4536 * Makefile.in (stack.o): Update dependencies.
4538 2003-06-08 Andrew Cagney <cagney@redhat.com>
4540 * frame.c (get_prev_frame): Remove reference to
4541 frame_args_address_correct in comments.
4542 * frame-base.c (default_frame_args_address): Delete code
4543 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4544 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4545 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4546 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4547 (vax_frame_args_address_correct): Delete declaration.
4549 2003-06-08 Andrew Cagney <cagney@redhat.com>
4551 * gdbarch.sh (UNWIND_SP): Add.
4552 * gdbarch.h, gdbarch.c: Re-generate.
4553 * frame.c (frame_sp_unwind): New function.
4554 (get_frame_sp): New function.
4555 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4556 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4557 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4559 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4560 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4562 2003-06-08 Andrew Cagney <cagney@redhat.com>
4564 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4567 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4568 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4569 * config/m68k/tm-sun3.h: Update.
4570 * config/m68k/tm-m68klynx.h: Update.
4571 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4573 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4574 trad_frame". Update comments.
4575 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4576 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4577 (trad_frame_register_value, trad_frame_prev_register): Update.
4579 2003-06-08 Andrew Cagney <cagney@redhat.com>
4581 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4582 from GCC's acinclude.m4.
4583 * configure.in: Check for getopt's delcaration.
4584 * aclocal.m4, config.in, configure: Re-generate.
4585 * main.c (error_init): Delete declaration.
4586 * defs.h (error_init): Declare.
4587 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4588 (rs6000_convert_from_func_ptr_addr): Make static.
4589 (_initialize_rs6000_tdep): Add declaration.
4590 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4591 (show_commands, set_verbose, show_history): Delete declaration.
4592 * top.h (set_verbose): Add declaration.
4593 (show_history, set_history, show_commands): Add declaration.
4594 (do_restore_instream_cleanup): Add declaration.
4595 * objc-lang.c (specialcmp): Make static.
4596 (print_object_command): Make static.
4597 (find_objc_msgsend): Make static.
4598 (find_objc_msgcall_submethod_helper): Make static.
4599 (find_objc_msgcall_submethod): Make static.
4600 (_initialize_objc_language): Add declaration.
4601 (find_implementation_from_class): Make static.
4602 (find_implementation): Make static.
4603 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4604 * objc-lang.h (lookup_struct_typedef): Add declaration.
4605 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4606 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4607 (do_restore_user_call_depth): Make static.
4608 (do_restore_instream_cleanup): Delete declaration.
4609 (dont_repeat): Delete declaration.
4610 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4611 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4612 * reggroups.c (_initialize_reggroup): Add declaration.
4613 * cp-support.c (_initialize_cp_support): Add declaration.
4614 * cp-abi.c (_initialize_cp_abi): Add declaration.
4615 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4616 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4617 (_initialize_gnu_v3_abi): Add declaration.
4618 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4619 (_initialize_gnu_v2_abi): Add declaration.
4620 * frame-base.c (_initialize_frame_base): Add declaration.
4621 * doublest.c (floatformat_from_length): Make static.
4622 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4623 * frame.c (create_sentinel_frame): Make static.
4624 (_initialize_frame): Add declaration.
4625 * top.c (do_catch_errors): Make static.
4626 (gdb_rl_operate_and_get_next_completion): Make static.
4627 * typeprint.c: Include "typeprint.h".
4628 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4629 (sentinel_frame_this_id): Make static.
4630 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4631 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4632 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4633 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4634 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4635 * maint.c (maintenance_print_architecture): Make static.
4636 * signals/signals.c (_initialize_signals): Add declaration.
4637 * std-regs.c (_initialize_frame_reg): Add declaration.
4638 * jv-exp.y (push_variable): ISO C definition.
4639 (push_qualified_expression_name): Ditto.
4640 * memattr.c (_initialize_mem): Add declaration.
4641 * remote.c (remote_check_watch_resources): Make static.
4642 (remote_stopped_by_watchpoint): Make static.
4643 (remote_stopped_data_address): Make static.
4644 * d10v-tdep.c (nr_dmap_regs): Make static.
4645 (a0_regnum): Make static.
4646 (d10v_frame_unwind_cache): Make static.
4647 (d10v_frame_p): Make static.
4648 * osabi.c (show_osabi): Make static.
4649 (_initialize_gdb_osabi): Add extern declaration.
4650 * gdbtypes.c (make_qualified_type): Make static.
4651 (safe_parse_type): Make static.
4652 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4653 * macrotab.c (macro_bcache_free): Make static.
4654 * interps.c (interp_set_quiet): Make static.
4655 (interpreter_exec_cmd): Make static.
4656 * stack.h (select_frame_command): New file.
4657 * stack.c: Include "stack.h".
4658 (select_frame_command_wrapper): Delete function.
4659 (select_frame_command): Make global.
4660 * infcall.c: Include "infcall.h".
4661 * linespec.c: Include "linespec.h".
4662 * symfile.c (sections_overlap): Make static.
4663 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4664 * charset.c (_initialize_charset): Add missing prototype.
4665 * regcache.c (init_legacy_regcache_descr): Make static.
4666 (do_regcache_xfree): Make static.
4667 (regcache_xfer_part): Make static.
4668 (_initialize_regcache): Add missing prototype.
4669 * breakpoint.c (parse_breakpoint_sals): Make static.
4670 (breakpoint_sals_to_pc): Make static.
4671 * interps.h (clear_interpreter_hooks): ISO C declaration.
4672 * Makefile.in (stack_h): Define.
4673 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4674 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4676 2003-06-08 Andrew Cagney <cagney@redhat.com>
4678 * Makefile.in (d10v-tdep.o): Update dependencies.
4679 (SFILES): Add trad-frame.c.
4680 (trad_frame_h): Define.
4681 (COMMON_OBS): Add trad-frame.o.
4682 (trad-frame.o): Specify dependencies.
4683 * d10v-tdep.c: Include "trad-frame.h".
4684 (saved_regs_unwinder): Delete function.
4685 (d10v_frame_prev_register): Use trad_frame_prev_register.
4686 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4687 trad_frame", delete "regs" and "prev_sp".
4688 (prologue_find_regs): Use trad-frame.
4689 * trad-frame.h, trad-frame.c: New files.
4691 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4693 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4695 2003-06-07 Adam Fedor <fedor@gnu.org>
4697 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4698 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4699 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4700 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4701 resolve_msgsend_super, resolve_msgsend_super_stret):
4704 2003-06-07 Andrew Cagney <cagney@redhat.com>
4706 * symfile.h: Re-indent, clean up comments.
4708 2003-06-07 Andrew Cagney <cagney@redhat.com>
4710 * inferior.h (deprecated_write_sp): Replace
4711 generic_target_write_sp.
4712 * regcache.c (deprecated_write_sp): Replace
4713 generic_target_write_sp.
4714 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4715 * vax-tdep.c (vax_gdbarch_init): Update.
4716 * v850-tdep.c (v850_gdbarch_init): Update.
4717 * sparc-tdep.c (sparc_gdbarch_init): Update.
4718 * sh-tdep.c (sh_gdbarch_init): Update.
4719 * s390-tdep.c (s390_gdbarch_init): Update.
4720 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4721 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4722 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4723 * mcore-tdep.c (mcore_gdbarch_init): Update.
4724 * m68k-tdep.c (m68k_gdbarch_init): Update.
4725 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4726 * ia64-tdep.c (ia64_gdbarch_init): Update.
4727 * h8300-tdep.c (h8300_gdbarch_init): Update.
4728 * frv-tdep.c (frv_gdbarch_init): Update.
4729 * cris-tdep.c (cris_gdbarch_init): Update.
4730 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4732 2003-06-07 Andrew Cagney <cagney@redhat.com>
4734 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4735 Assert that PC_REGNUM is valid.
4736 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4738 2003-06-07 Andrew Cagney <cagney@redhat.com>
4740 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4741 * gdbarch.h, gdbarch.c: Regenerate.
4742 * mn10300-tdep.c: Include "gdb_assert.h".
4743 (mn10300_read_fp): New function.
4744 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4745 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4746 * ia64-tdep.c: Include "gdb_assert.h".
4747 (ia64_read_fp): New function.
4748 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4749 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4750 * regcache.c (generic_target_read_sp): Delete function.
4751 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4752 * inferior.h (generic_target_read_sp): Delete declaration.
4753 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4754 generic_target_read_sp.
4755 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4756 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4757 * sh-tdep.c (sh_gdbarch_init): Ditto.
4758 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4759 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4761 2003-06-07 Andrew Cagney <cagney@redhat.com>
4763 * gdbarch.sh: Comment each field of startup_gdbarch.
4764 * gdbarch.h, gdbarch.c: Re-generate.
4766 2003-06-07 Andrew Cagney <cagney@redhat.com>
4768 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4769 * gdbarch.h, gdbarch.c: Re-generate.
4770 * regcache.c: Update comments on read_pc et.al.
4771 (generic_target_read_pc): Delete function.
4772 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4773 * inferior.h (generic_target_read_pc): Delete declaration.
4774 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4775 generic_target_read_pc.
4776 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4777 * sh-tdep.c (sh_gdbarch_init): Ditto.
4778 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4779 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4781 2003-06-07 Andrew Cagney <cagney@redhat.com>
4783 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4784 "index" with "special_local_sect". Use strcmp instead of STREQ.
4785 Append period to coments.
4787 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4789 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4790 (elfstab_offset_sections): Likewise.
4791 * gdb-stabs.h (stab_section_info): Likewise.
4792 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4793 * objfiles.c (objfile_relocate): Likewise.
4794 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4795 * remote.c (get_offsets): Likewise.
4796 (remote_cisco_objfile_relocate): Likewise.
4797 * somread.c (som_symfile_offsets): Likewise.
4798 * symfile.c (alloc_section_addr_info): New function.
4799 (build_section_addr_info_from_section_tab): Use it.
4800 (free_section_addr_info): Adjust.
4801 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4802 (syms_from_objfile): Allocate local_addr dynamically.
4803 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4805 (add_symbol_file_command): Allocate sect_opts dynamically.
4806 (reread_symbols): Avoid use of SECT_OFF_MAX.
4807 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4808 (alloc_section_addr_info): Declare it.
4809 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4810 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4812 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4814 2003-06-06 Andrew Cagney <cagney@redhat.com>
4816 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4817 (d10v_frame_unwind_cache): Do not set "return_pc".
4819 2003-06-06 Michael Snyder <msnyder@redhat.com>
4821 * h8300-tdep.c: Make tidy (long lines).
4823 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4825 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4826 to regcache_collect().
4828 2003-06-05 J. Brobecker <brobecker@gnat.com>
4830 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4831 pc_in_sigtramp multiarch method.
4832 (hppa_hpux_som_init_abi): Use it.
4833 (hppa_hpux_elf_init_abi): Likewise.
4834 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4835 macro has been multiarched.
4836 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4837 macro here, as hppa64 isn't multiarched yet.
4839 2003-06-05 Andrew Cagney <cagney@redhat.com>
4841 * Makefile.in (value_h): Add $(frame_h).
4842 * value.h: Include "frame.h".
4843 (struct value): Replace "frame_addr" with "frame_id".
4844 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4845 * values.c (allocate_value): Use VALUE_FRAME_ID.
4846 (value_copy): Use VALUE_FRAME_ID.
4847 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4848 * valops.c (value_assign): Update. Use frame_find_by_id.
4850 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4852 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4855 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4857 * thread-db.c (check_event): For create/death event breakpoints,
4858 loop through all messages to ensure that we read the message
4859 corresponding to the breakpoint we are at.
4861 2003-06-04 Michael Snyder <msnyder@redhat.com>
4863 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4865 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4867 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4868 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4869 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4870 when handling .eh_frame sections.
4872 2003-06-04 J. Brobecker <brobecker@gnat.com>
4874 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4875 prepare_to_proceed procedure instead of the hppa-specific one.
4876 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4878 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4880 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4881 * config.in: Regenerated.
4882 * configure.in: Add test for syscall function and check for
4883 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4884 * configure: Regenerated.
4885 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4887 (kill_lwp): New function that uses tkill syscall or
4888 uses kill, depending on whether threading model is nptl or not.
4889 All callers of kill() changed to use kill_lwp().
4890 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4891 see if all threads have already exited in the nptl model.
4892 (stop_and_resume_callback): New callback function used by the
4893 lin_lwp_wait thread exit handling code.
4894 (stop_wait_callback): Check for threads already having exited and
4895 delete such threads fromt the lwp list when discovered.
4896 (stop_callback): Don't assert retcode of kill call.
4898 Roland McGrath <roland@redhat.com>
4899 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4902 2003-06-03 Richard Henderson <rth@redhat.com>
4904 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4905 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4906 (alpha_sigtramp_frame_prev_register): Likewise.
4907 (alpha_heuristic_frame_prev_register): Likewise.
4908 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4910 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4911 alpha-specific register id names.
4912 (alpha_mdebug_frame_unwind_cache): Likewise.
4913 (alpha_mdebug_frame_prev_register): Likewise.
4915 2003-06-03 Richard Henderson <rth@redhat.com>
4917 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4918 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4919 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4920 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4922 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4923 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4924 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4926 * alpha-linux-tdep.c: Remove unnecessary includes.
4927 * Makefile.in (alpha-linux-tdep.o): Update.
4929 2003-06-03 Richard Henderson <rth@redhat.com>
4931 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4932 (alphabsd_fill_fpreg): Likewise.
4934 2003-06-03 J. Brobecker <brobecker@gnat.com>
4936 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4937 references to struct frame_info fields by calls to the equivalent
4938 accessors. Necessary now that frame_info is opaque.
4940 2003-06-03 J. Brobecker <brobecker@gnat.com>
4942 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4943 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4944 structure, field no longer exists.
4946 2003-06-03 J. Brobecker <brobecker@gnat.com>
4948 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4949 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4951 2003-06-03 J. Brobecker <brobecker@gnat.com>
4953 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4954 references to struct frame_info fields by calls to the equivalent
4955 accessors. Necessary now that frame_info is opaque.
4957 2003-06-03 J. Brobecker <brobecker@gnat.com>
4959 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4960 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4961 structure, field no longer exists.
4963 2003-06-03 Theodore A. Roth <troth@openavr.org>
4965 * remote.c (init_remote_state): Compute sizeof_g_packet by
4966 accumulation of the size of all registers instead of blindly using
4967 DEPRECATED_REGISTER_BYTES.
4969 2003-06-03 Michael Snyder <msnyder@redhat.com>
4971 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4972 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4975 2003-06-03 J. Brobecker <brobecker@gnat.com>
4977 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4978 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4980 2003-06-03 Andrew Cagney <cagney@redhat.com>
4982 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4983 (sparc_convert_to_raw): Delete function.
4984 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4985 register_convert_to_virtual.
4987 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4989 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4990 layer if not dealing with a statically-linked threaded program.
4992 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4994 * solib.c (solib_open): Update comment to reflect actual search order.
4996 2003-06-03 Andrew Cagney <cagney@redhat.com>
4998 * frame.c (get_frame_memory_signed): New function.
4999 (get_frame_memory, get_frame_memory_unsigned): New function.
5000 (get_frame_arch): New function.
5001 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5002 (get_frame_memory, get_frame_unsigned_memory): Declare.
5003 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5004 get_frame_memory_unsigned and get_frame_arch.
5005 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5007 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5009 * MAINTAINERS (write after approval): Add myself.
5011 2003-06-03 Jim Blandy <jimb@redhat.com>
5013 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5014 elements of gregset_t are 64 bits each, but access registers
5015 are still 32 bits, so they're packed two per gregset_t
5016 element. Unpack/pack them properly.
5018 2003-06-02 David Carlton <carlton@bactrian.org>
5020 * linespec.c (find_methods): Break out code into
5021 add_matching_methods and add_constructors.
5022 (add_matching_methods): New.
5023 (add_constructors): Ditto.
5025 2003-06-02 Andrew Cagney <cagney@redhat.com>
5027 * sparc-tdep.c (sparc_print_registers): Delete call to
5028 REGISTER_CONVERTIBLE.
5029 (sparc_gdbarch_init): Do not set register_convertible.
5030 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5031 * frv-tdep.c (frv_gdbarch_init): Ditto.
5032 * cris-tdep.c (cris_gdbarch_init): Ditto.
5034 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5036 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5037 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5038 (syms_from_objfile): Ditto.
5040 2003-06-03 Andreas Schwab <schwab@suse.de>
5042 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5043 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5045 2003-06-02 Richard Henderson <rth@redhat.com>
5047 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5048 a member of all_reggroup.
5050 2003-06-02 Richard Henderson <rth@redhat.com>
5052 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5053 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5054 (alpha_lds, alpha_sts): New.
5055 (alpha_convert_register_p): Change from _register_convertible.
5056 (alpha_register_to_value): Change from _convert_to_virtual;
5057 restructure and fail for type sizes other than 4 or 8.
5058 (alpha_value_to_register): Similarly.
5059 (alpha_extract_return_value): Use alpha_sts.
5060 (alpha_store_return_value): Use alpha_lds.
5061 (alpha_gdbarch_init): Update hooks.
5063 2003-06-02 Richard Henderson <rth@redhat.com>
5065 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5067 (alpha_sigtramp_register_address): Likewise.
5069 2003-06-02 Richard Henderson <rth@redhat.com>
5071 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5072 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5073 * alpha-tdep.h: Declare them.
5075 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5076 Remove zerobuf. Don't error on UNIQUE.
5077 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5078 (ALPHA_REGSET_UNIQUE): Provide default.
5079 (supply_gregset): Use alpha_supply_int_regs.
5080 (fill_gregset): Use alpha_fill_int_regs.
5081 (supply_fpregset): Use alpha_supply_fp_regs.
5082 (fill_fpregset): Use alpha_fill_fp_regs.
5083 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5084 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5085 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5086 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5087 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5088 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5090 2003-06-02 Richard Henderson <rth@redhat.com>
5092 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5094 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5095 (alpha_store_return_value): Likewise.
5097 2003-06-02 David Carlton <carlton@math.stanford.edu>
5099 * block.c (contained_in): Add 'const' to arguments.
5100 (block_function): Ditto.
5101 * block.h: Update declarations for block_function and
5104 2003-06-02 David Carlton <carlton@math.stanford.edu>
5106 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5107 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5108 * p-valprint.c (pascal_val_print): Ditto.
5109 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5111 2003-06-02 Richard Henderson <rth@redhat.com>
5113 * alpha-tdep.c (alpha_push_dummy_call): Use
5114 builtin_type_ieee_double_little instead of builtin_type_double.
5116 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5117 sign-extension of 32-bit values.
5118 (alpha_store_return_value): Similarly.
5120 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5121 (alpha_extract_return_value): Likewise.
5122 (alpha_store_return_value): Likewise.
5124 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5125 (alpha_store_return_value): Error on IEEE Quad floats.
5127 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5128 (alpha_extract_struct_value_address): Likewise.
5129 (alpha_store_return_value): Likewise.
5130 (alpha_store_struct_return): Remove.
5131 (alpha_gdbarch_init): Update hook registration to match.
5133 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5134 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5135 macros where appropriate.
5136 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5137 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5139 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5140 for SP, GP; void_func_ptr for PC; non-language-specific types
5142 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5144 2003-06-02 Richard Henderson <rth@redhat.com>
5146 * top.h (lim_at_start): Declare.
5147 * main.c (captured_main): Set it.
5148 * top.c (lim_at_start): Define.
5149 (command_loop): Use it instead of &environ.
5150 * event-top.c (command_handler): Likewise.
5152 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5154 * mipsnbsd-tdep.c: Update copyright years.
5155 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5157 2003-06-01 Richard Henderson <rth@redhat.com>
5159 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5160 (alpha-linux-tdep.o): Update dependencies.
5161 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5162 * alpha-mdebug-tdep.c: Remove unneeded includes.
5164 2003-06-01 Richard Henderson <rth@redhat.com>
5166 * alpha-tdep.c (alpha_register_reggroup_p): New.
5167 (alpha_gdbarch_init): Register it.
5169 2003-06-02 Andrew Cagney <cagney@redhat.com>
5171 * dwarfread.c: Eliminate "register"
5172 (decode_die_type): Eliminate assignment within "if".
5173 (struct_type, decode_array_element_type): Ditto.
5174 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5175 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5176 (decode_modified_type, completedieinfo): Ditto.
5177 * block.c: Eliminate "register".
5178 (blockvector_for_pc_sect): Eliminate assignment within "if".
5179 * cp-support.h (struct symbol): Opaque declaration.
5180 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5182 2003-06-01 Richard Henderson <rth@redhat.com>
5184 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5185 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5187 2003-06-01 Adam Fedor <fedor@gnu.org>
5189 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5190 * gdbarch.[ch]: Regenerate.
5191 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5192 (hppa_gdbarch_init): Set it in the gdbarch vector.
5193 * i386-tdep.c (i386_fetch_pointer_argument): New
5194 (i386_gdbarch_init): Set it into gdbarch.
5195 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5196 (rs6000_gdbarch_init): Set it in gdbarch.
5197 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5198 (sparc_gdbarch_init): Set it in gdbarch.
5200 2003-06-01 Andrew Cagney <cagney@redhat.com>
5202 * defs.h (extract_address): Delete declaration.
5203 * findvar.c (extract_address): Delete function.
5204 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5205 extract_address with the inline equivalent,
5206 extract_unsigned_integer.
5207 (xstormy16_extract_struct_value_address): Ditto.
5208 (xstormy16_pointer_to_address): Ditto.
5209 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5210 * v850-tdep.c (v850_push_arguments): Ditto.
5211 (v850_extract_return_value): Ditto.
5212 (v850_extract_struct_value_address): Ditto.
5213 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5214 (sparcnbsd_get_longjmp_target_64): Ditto.
5215 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5216 (get_longjmp_target): Ditto.
5217 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5218 (sh64_extract_struct_value_address): Ditto.
5219 (sh_push_arguments): Ditto.
5220 (sh64_push_arguments): Ditto.
5221 * remote-vxsparc.c (vx_read_register): Ditto.
5222 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5223 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5224 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5225 * mipsv4-nat.c (get_longjmp_target): Ditto.
5226 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5227 * mips-nat.c (get_longjmp_target): Ditto.
5228 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5229 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5230 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5231 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5232 * irix5-nat.c (get_longjmp_target): Ditto.
5233 * irix4-nat.c (get_longjmp_target): Ditto.
5234 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5235 (ia64_push_arguments): Ditto.
5236 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5237 * h8300-tdep.c (h8300_push_arguments): Ditto.
5238 (h8300_store_return_value): Ditto.
5239 (h8300_extract_struct_value_address): Ditto.
5240 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5241 (frv_push_arguments): Ditto.
5242 * avr-tdep.c (avr_pointer_to_address): Ditto.
5243 (avr_push_arguments): Ditto.
5244 * arm-tdep.c (arm_push_dummy_call): Ditto.
5245 (arm_get_longjmp_target): Ditto.
5246 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5247 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5248 (alpha_get_longjmp_target): Ditto.
5250 * solib-irix.c (extract_mips_address): Inline extract_address,
5251 replacing it with extract_signed_integer.
5252 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5253 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5254 (first_link_map_member, open_symbol_file_object): Ditto.
5255 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5256 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5257 (LM_NEXT, LM_NAME): Ditto.
5259 2003-06-01 Richard Henderson <rth@redhat.com>
5261 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5262 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5263 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5264 (alpha_cannot_store_register): Likewise.
5265 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5266 * alpha-nat.c (supply_gregset): Likewise.
5267 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5269 2003-06-01 Andrew Cagney <cagney@redhat.com>
5271 * infcall.c (call_function_by_hand): Update comment on
5272 DEPRECATED_DUMMY_WRITE_SP.
5274 * mips-tdep.c (mips_gdbarch_init): Do not set
5275 deprecated_dummy_write_sp.
5276 (mips_eabi_push_dummy_call): Set the SP register.
5277 (mips_o64_push_dummy_call): Set the SP register.
5278 (mips_o32_push_dummy_call): Set the SP register.
5279 (mips_n32n64_push_dummy_call): Set the SP register.
5281 2003-06-01 Richard Henderson <rth@redhat.com>
5283 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5284 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5285 (supply_gregset): Likewise.
5286 * alpha-tdep.c (alpha_store_return_value): Likewise.
5287 (alpha_get_longjmp_target): Likewise.
5288 (alpha_register_name): Constify array.
5289 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5290 deprecated_register_size, deprecated_register_bytes,
5291 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5292 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5293 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5295 2003-06-01 Richard Henderson <rth@redhat.com>
5297 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5298 from arg_reg_buffer to regcache to avoid double conversion.
5300 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5302 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5304 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5305 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5307 2003-06-01 Richard Henderson <rth@redhat.com>
5309 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5310 (decode_frame_entry): Set it. Skip FDE augmentation.
5312 2003-06-01 Richard Henderson <rth@redhat.com>
5314 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5315 not overlapping PC_REGNUM.
5317 2003-06-01 Richard Henderson <rth@redhat.com>
5319 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5320 alpha_push_arguments. Don't dump argument register data to
5321 the target stack. Fix float and 128-bit long double semantics.
5322 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5323 (alpha_fix_call_dummy): Remove.
5324 (alpha_call_dummy_words): Remove.
5325 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5327 2003-06-01 Richard Henderson <rth@redhat.com>
5329 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5331 2003-06-01 Andrew Cagney <cagney@redhat.com>
5333 * mips-tdep.c (is_mips16_addr): New function.
5334 (make_mips16_addr, unmake_mips16_addr): New functions.
5335 (pc_is_mips16, mips_fetch_instruction): Use.
5336 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5337 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5338 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5339 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5341 * config/mips/tm-mips.h: Update copyright.
5342 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5343 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5344 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5345 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5346 (TM_PRINT_INSN_MACH): Delete.
5347 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5349 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5350 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5351 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5352 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5353 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5354 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5355 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5356 mips*-*-riscos* and mips*-*-sysv* onto mips.
5357 * config/mips/mips64.mt: New file.
5358 * config/mips/mips.mt: New file.
5359 * config/mips/littlemips.mt: Delete file.
5360 * config/mips/decstation.mt: Delete file.
5361 * config/mips/vr4300el.mt: Delete file.
5362 * config/mips/vr5000el.mt: Delete file.
5363 * config/mips/vr5000.mt: Delete file.
5364 * config/mips/vr4100.mt: Delete file.
5365 * config/mips/vr4xxxel.mt: Delete file.
5366 * config/mips/vr4300.mt: Delete file.
5367 * config/mips/vr4xxx.mt: Delete file.
5368 * config/mips/bigmips.mt: Delete file.
5369 * config/mips/bigmips64.mt: Delete file.
5370 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5371 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5372 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5373 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5374 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5376 * config/mips/tm-irix3.h: Ditto.
5377 * config/mips/tm-mipsv4.h: Ditto.
5378 * config/mips/tm-embed.h: Ditto.
5379 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5381 * config/mips/tm-vr5000el.h: Delete file.
5382 * config/mips/tm-tx39l.h: Delete file.
5383 * config/mips/tm-vr4300el.h: Delete file.
5384 * config/mips/tm-vr4xxxel.h: Delete file.
5385 * config/mips/tm-vr4300.h: Delete file.
5386 * config/mips/tm-vr4100.h: Delete file.
5387 * config/mips/tm-vr4xxx.h: Delete file.
5388 * config/mips/tm-vr5000.h: Delete file.
5389 * config/mips/tm-embedl64.h: Delete file.
5390 * config/mips/tm-embedl.h: Delete file.
5391 * config/mips/tm-embed64.h: Delete file.
5392 * config/mips/tm-bigmips64.h: Delete file.
5393 * config/mips/tm-bigmips.h: Delete file.
5395 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5398 * shnbsd-nat.c: Include "sh-tdep.h".
5400 From Richard Henderson <rth@redhat.com>:
5401 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5403 2003-05-31 Andrew Cagney <cagney@redhat.com>
5405 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5406 forward declaration.
5407 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5408 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5409 (mips_find_saved_regs): Use set_reg_offset.
5410 (mips_frame_init_saved_regs): Delete function.
5411 (mips_pop_frame): Call mips_find_saved_regs instead of
5412 DEPRECATED_FRAME_INIT_SAVED_REGS.
5414 2003-05-31 Andrew Cagney <cagney@redhat.com>
5416 * mips-tdep.c (mips_gdbarch_init): Do not set
5417 deprecated_max_register_raw_size, register_virtual_size, and
5418 deprecated_max_register_virtual_size.
5420 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5422 * i386-tdep.c: Include "dwarf2-frame.h".
5423 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5424 * Makefile.in (i386-tdep.o): Update dependencies.
5426 * dwarf2-frame.c, dwarf2-frame.h: New files.
5427 * Makefile.in (SFILES): Add dwarf2-frame.c.
5428 (dwarf2_frame_h): Define.
5429 (COMMON_OBS): Add dwarf2-frame.o.
5430 (dwarf2-frame.o): Add dependencies.
5432 2003-05-31 Andreas Jaeger <aj@suse.de>
5434 * x86-64-linux-nat.c: Fix comment.
5436 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5438 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5441 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5442 have a sigcontext_addr handler.
5443 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5444 sigcontext_addr handler.
5446 2003-05-31 Andrew Cagney <cagney@redhat.com>
5448 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5449 (print_fp_register_row): Replace do_fp_register_row.
5450 (mips_print_fp_register): Add "file" and "frame" parameters.
5451 (mips_print_register): Add "file" and "frame" parameters.
5452 (mips_print_registers_info): Replace mips_do_registers_info.
5453 (mips_gdbarch_init): Set print_registers_info instead of
5454 deprecated_do_registers_info.
5455 (mips_read_fp_register_single): Add "frame" parameter.
5456 (mips_read_fp_register_double): Add "frame" parameter.
5458 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5460 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5461 Fixes a bug where GDB would print the wrong register names for
5462 targets without SSE.
5464 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5465 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5468 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5469 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5470 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5473 From Michal Ludvig <mludvig@suse.cz>:
5474 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5476 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5477 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5478 I386_ST0_REGNUM): Move here from...
5479 * i386-tdep.c: ... here.
5480 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5481 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5482 registers if possible.
5483 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5484 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5486 (i386bsd_sc_reg_offset): New variable.
5487 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5488 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5490 (i386fbsd_sc_reg_offset): New variable.
5491 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5493 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5495 (i386fbsd4_sc_reg_offset): New variable.
5496 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5497 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5499 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5500 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5501 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5503 (i386nbsd_sc_reg_offset): New variable.
5504 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5505 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5507 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5509 (i386obsd_sc_reg_offset): New variable.
5510 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5511 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5513 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5514 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5515 for frame pointer offset in `struct sigcontext'.
5517 2003-05-31 Andrew Cagney <cagney@redhat.com>
5519 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5520 architecture methods call_dummy_words, sizeof_call_dummy_words,
5521 push_return_address, store_struct_return, and fix_call_dummy. Set
5522 push_dummy_call instead of deprecated_push_arguments.
5523 (mips_store_struct_return): Delete function.
5524 (mips_fix_call_dummy): Delete function.
5525 (mips_push_return_address): Delete function.
5526 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5527 RA_REGNUM and T9_REGNUM.
5528 (mips_n32n64_push_dummy_call): Ditto for
5529 mips_n32n64_push_arguments.
5530 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5531 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5533 2003-05-31 Andrew Cagney <cagney@redhat.com>
5535 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5536 "dummy_addr" to "bp_addr".
5537 * infcall.c (call_function_by_hand): Pass "funaddr" to
5538 gdbarch_push_dummy_call.
5539 * gdbarch.h, gdbarch.c: Re-generate.
5540 * i386-tdep.c (i386_push_dummy_call): Update.
5541 * arm-tdep.c (arm_push_dummy_call): Update.
5542 * d10v-tdep.c (d10v_push_dummy_call): Update.
5544 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5546 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5547 variable declarations.
5548 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5549 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5550 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5551 x86_64_init_frame_pc, x86_64_init_frame_pc,
5552 x86_64_function_has_prologue): Remove prototypes.
5553 (X86_64_NUM_GREGS): New define.
5554 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5555 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5556 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5557 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5558 XMM1_REGNUM): Remove defines.
5559 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5560 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5561 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5562 X86_64_XMM1_REGNUM): New defines.
5563 (struct x86_64_register_info): Renamed from `struct
5564 register_info'. Remove `size' member.
5565 (x86_64_register_info_table): Remove variable.
5566 (x86_64_register_info): New variable.
5567 (X86_64_NUM_REGS): New define.
5568 (X86_64_NUM_GREGS): Remove define.
5569 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5570 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5572 (x86_54_dwarf2_reg_to_regnum): Remove function.
5573 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5574 (x86_64_dwarf_reg_to_regnum): New function.
5575 (x86_64_register_name): Rewrite.
5576 (x86_64_register_raw_size): Remove function.
5577 (x86_64_register_byte_table): Remove variable.
5578 (x86_64_register_byte): Remove function.
5579 (x86_64_register_virtual_type): Remove function.
5580 (x86_64_register_type): New function.
5581 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5582 x86_64_register_convert_to_raw): Remove functions.
5583 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5584 (x86_64_use_struct_convention): Make static. Adjust for renamed
5586 (x86_64_frame_init_saved_regs): Remove function.
5587 (x86_64_push_arguments): Make static. Change to accept a regcache
5589 (x86_64_store_return_value, x86_64_extract_return_value): Make
5590 static. Rewrite based on i386 counterparts.
5591 (x86_64_push_dummy_call): New function.
5592 (X86_64_NUM_SAVED_REGS): New define.
5593 (x86_64_register_number): Remove function.
5594 (x86_64_store_struct_return): Remove function.
5595 (x86_64_frameless_function_invocation,
5596 x86_64_function_has_prologue): Remove functions.
5597 (PROLOG_BUFSIZE): Remove define.
5598 (struct x86_64_frame_cache): New structure.
5599 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5600 x86_64_frame_cache, x86_64_frame_this_id,
5601 x86_64_frame_prev_register, x86_64_frame_p,
5602 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5603 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5605 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5607 (x86_64_skip_prologue): Rewrite in terms of
5608 x86_64_analyze_prologue.
5609 (x86_64_frame_base_address): New function.
5610 (x86_64_frame_base): New variable.
5611 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5612 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5613 set deprecated_fp_regnum, deprecated_register_size,
5614 deprecated_register_bytes, register_raw_size, register_byte,
5615 register_virtual_type, register_convertiable,
5616 register_convert_to_virtual, convert_to_raw,
5617 deprecated_get_saved_register, deprecated_target_read_fp,
5618 deprecated_push_arguments, deprecated_push_return_address,
5619 deprecated_pop_frame, deprecated_store_struct_return,
5620 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5621 frameless_function_invocation, deprecated_frame_saved_pc,
5622 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5623 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5624 deprecated_init_frame_pc and virtual_frame_pointer. Call
5625 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5626 and x86_64_frame_p. Call frame_base_set_default to register
5628 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5629 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5630 (_initialize_x86_64_tdep): Remove function.
5631 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5632 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5633 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5635 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5636 (x86_64_linux_sigcontext_addr): Rewrite.
5637 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5638 x86_64_linux_frame_saved_pc): Remove functions.
5639 (x86_64_linux_pc_in_sigtramp): Renamed from
5640 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5642 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5644 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5645 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5646 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5647 (x86_64_regmap): Rename to regmap.
5648 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5650 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5652 (x86_64_fxsave_offset): Remove function.
5653 (supply_fpregset): Simply call x86_64_supply_fxsave.
5654 (fill_fpregset): Simply call x86_64_fill_fxsave.
5655 (fetch_inferior_registers, store_inferior_registers): Avoid
5656 asignment in if-statement.
5657 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5658 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5659 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5660 (fetch_core_registers): Remove function.
5661 (linux_elf_core_fns): Remove.
5662 (offsetoff): Don't define.
5663 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5664 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5665 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5667 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5668 protection against multiple includes instead of NM_X86_64_h. Add
5669 various comments. Include "config/nm-linux.h". Don't include
5671 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5672 GET_THREAD_SIGNALS): Remove defines.
5673 (x86_64_register_u_addr, kernel_u_size,
5674 lin_thread_get_thread_signals): Remove prototypes.
5675 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5676 [HAVE_LINK_H]: Don't include "solib.h".
5677 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5678 * config/i386/tm-x86-64linux.h: Fix comments.
5679 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5680 x86-64-tdep.o): Update dependencies.
5682 2003-05-30 Andrew Cagney <cagney@redhat.com>
5684 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5685 Change parameter type to a "struct regcache *".
5687 * gdbarch.sh: Regardless of the multi-arch level, always define
5688 the macro when not already defined.
5689 * gdbarch.h, gdbarch.c: Re-generate.
5691 2003-05-30 Richard Henderson <rth@redhat.com>
5693 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5694 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5695 (alpha_mdebug_frame_this_id): Likewise.
5696 (alpha_mdebug_frame_prev_register): Likewise.
5697 (alpha_mdebug_frame_base_address): Likewise.
5698 (alpha_mdebug_frame_locals_address): Likewise.
5699 (alpha_mdebug_frame_args_address): Likewise.
5700 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5701 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5702 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5704 (alpha_heuristic_frame_this_id): Make static.
5705 (alpha_heuristic_frame_prev_register): Likewise.
5706 (alpha_heuristic_frame_base_address): Likewise.
5707 * alpha-tdep.h: Update.
5709 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5711 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5712 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5714 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5715 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5716 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5717 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5718 I386_ST0_REGNUM): New defines.
5719 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5720 codestream_get): Remove define.
5721 (codestream_next_addr, condestream_addr, condestream_buf,
5722 codestream_off, codestream_cnt): Remove variables.
5723 (codestream_fill, codestream_seek, codestream_read): Remove
5725 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5727 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5728 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5729 i386_frame_saved_pc, i386_saved_pc_after_call,
5730 i386_frame_num_args, i386_frame_init_saved_regs,
5731 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5732 i386_push_arguments): Remove functions.
5733 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5734 functionality. Use i386_analyze_prologue instead of
5735 i386_get_frame_setup.
5736 (I386_NUM_SAVED_REGS): New define.
5737 (struct i386_frame_cache): New structure.
5738 (i386_alloc_frame_cache, i386_analyze_struct_return,
5739 i386_skip_probe, i386_analyze_frame_setup,
5740 i386_analyze_register_saves, i386_analyze_prologue,
5741 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5742 i386_frame_prev_register, i386_sigtramp_frame_cache,
5743 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5744 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5745 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5747 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5749 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5750 I386_EAX_REGNUM and I386_EDX_REGNUM.
5751 (i386_extract_return_value, i386_store_return_value): Use
5752 I386_ST0_REGNUM where appropriate.
5753 (i386_extract_struct_value_address): Rewrite to use extract_address.
5754 (i386_svr4_pc_in_sigtramp): Add comment.
5755 (i386_svr4_sigcontext_addr): Rewrite.
5756 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5758 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5759 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5760 of new defines. Set push_dummy_call, don't set
5761 deprecated_push_arguments, deprecated_push_return_address,
5762 deprecated_pop_frame. Don't set parm_boundary. Don't set
5763 deprecated_frame_chain, deprecated_frame_saved_pc,
5764 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5765 save_dummy_frame_tos, unwind_pc. Call
5766 frame_unwind_append_predicate and frame_base_set_default. Don't
5767 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5768 Don't set frameless_function_invocation. Don't set
5769 deprecated_register_bytes, deprecated_register_size,
5770 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5771 * i386-linux-tdep.c: Fix formatting in some comments.
5772 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5773 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5774 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5775 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5776 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5777 redundant parentheses.
5778 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5779 (i386_linux_sigcontext_addr): Use it. Rewrite.
5780 (find_minsym_and_objfile): Change name of second argument.
5781 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5782 changed. Use frame_pc_unwind instead of
5783 DEPRECATED_SAVED_PC_AFTER_CALL.
5784 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5785 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5786 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5788 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5790 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5791 (_initialize_i386_cygwin_tdep): New prototype.
5792 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5793 deprecated_frame_chain_valid.
5794 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5795 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5796 Rely on the SVR4 defaults.
5797 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5798 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5800 2003-05-30 Andrew Cagney <cagney@redhat.com>
5802 * infcall.c (call_function_by_hand): Always call
5803 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5805 2003-05-30 Richard Henderson <rth@redhat.com>
5807 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5810 2003-05-29 Jim Blandy <jimb@redhat.com>
5812 Use gdbarch methods for solib stuff on PowerPC Linux.
5813 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5814 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5816 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5817 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5818 giving the same effect as the #definitions above.
5820 2003-05-29 Adam Fedor <fedor@gnu.org>
5822 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5823 (find_implementation_from_class): Replace it with the standard
5824 case i.e. do nothing.
5826 2003-05-29 Richard Henderson <rth@redhat.com>
5828 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5829 (alpha_linux_sigtramp_offset): Use it. Make static.
5830 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5831 update for new frame model.
5832 * alpha-mdebug-tdep.c: New file.
5833 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5834 (alpha_osf1_init_abi): Install it.
5835 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5836 (linked_proc_desc_table): Remove.
5837 (alpha_frame_past_sigtramp_frame): Remove.
5838 (alpha_dynamic_sigtramp_offset): Remove.
5839 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5840 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5841 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5842 (push_sigtramp_desc): Remove.
5843 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5844 (alpha_cannot_store_register): Likewise.
5845 (alpha_sigcontext_addr): Remove.
5846 (alpha_find_saved_regs): Remove.
5847 (alpha_frame_init_saved_regs): Remove.
5848 (alpha_init_frame_pc_first): Remove.
5849 (read_next_frame_reg): Remove.
5850 (alpha_frame_saved_pc): Remove.
5851 (alpha_saved_pc_after_call): Remove.
5852 (temp_proc_desc, temp_saved_regs): Remove.
5853 (alpha_about_to_return): Remove.
5854 (cached_proc_desc): Remove.
5855 (alpha_frame_chain): Remove.
5856 (alpha_print_extra_frame_info): Remove.
5857 (alpha_init_extra_frame_info): Remove.
5858 (alpha_frame_locals_address): Remove.
5859 (alpha_frame_args_address): Remove.
5860 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5861 (alpha_push_dummy_frame): Remove.
5862 (alpha_pop_frame): Remove.
5863 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5864 (alpha_read_insn): New.
5865 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5866 for different insn encodings.
5867 (alpha_in_lenient_prologue): Remove.
5868 (struct alpha_sigtramp_unwind_cache): New.
5869 (alpha_sigtramp_frame_unwind_cache): New.
5870 (alpha_sigtramp_register_address): New.
5871 (alpha_sigtramp_frame_this_id): New.
5872 (alpha_sigtramp_frame_prev_register): New.
5873 (alpha_sigtramp_frame_unwind): New.
5874 (alpha_sigtramp_frame_p): New.
5875 (struct alpha_heuristic_unwind_cache): New.
5876 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5877 don't count nop insns that occur between functions.
5878 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5879 heuristic_proc_desc, but without the mdebug wrapping.
5880 (alpha_heuristic_frame_this_id): New.
5881 (alpha_heuristic_frame_prev_register): New.
5882 (alpha_heuristic_frame_unwind): New.
5883 (alpha_heuristic_frame_p): New.
5884 (alpha_heuristic_frame_base_address): New.
5885 (alpha_heuristic_frame_base): New.
5886 (alpha_unwind_dummy_id): New.
5887 (alpha_unwind_pc): New.
5888 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5889 frame related deprecated initializations; install replacements.
5890 (alpha_dump_tdep): Remove.
5891 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5892 (alpha_read_insn, alpha_after_prologue,
5893 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5894 alpha_heuristic_frame_prev_register,
5895 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5896 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5897 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5898 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5900 2003-05-29 Andrew Cagney <cagney@redhat.com>
5902 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5903 dependant on the availability of ASSERT_FUNCTION.
5904 (ASSERT_FUNCTION): Do not define when there is no function name.
5906 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5908 From Jimi X <jimix@watson.ibm.com>:
5909 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5911 2003-05-28 Jim Blandy <jimb@redhat.com>
5913 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5914 argument to ptrace to int; the system headers should give it the
5915 right type, and pointers don't fit in ints on powerpc64-*-*.
5917 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5919 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5922 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5924 * stabsread.c (dbx_lookup_type): Make static.
5926 (add_undefined_type): Ditto.
5927 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5930 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5932 * hpread.c (hpread_has_name): Make static.
5933 (hpread_psymtab_to_symtab): Ditto.
5934 (file_exists): Ditto.
5935 (hpread_call_pxdb): Ditto.
5936 (hpread_pxdb_needed): Ditto.
5937 (hpread_quick_traverse): Ditto.
5938 (hpread_get_header): Ditto.
5939 (hpread_get_lntt): Ditto.
5940 (hpread_get_slt): Ditto.
5943 2003-05-25 Andreas Schwab <schwab@suse.de>
5945 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5946 stack_align and deprecated_extra_stack_alignment_needed.
5947 (m68k_stack_align): Delete.
5949 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5950 (m68k_register_virtual_size): Likewise.
5951 (altos_skip_prologue): Remove obsolete function.
5952 (isi_frame_num_args): Likewise.
5953 (news_frame_num_args): Likewise.
5954 (m68k_fix_call_dummy): Make static.
5955 (m68k_push_dummy_frame): Likewise.
5956 (m68k_pop_frame): Likewise.
5957 (m68k_skip_prologue): Likewise.
5958 (m68k_frame_init_saved_regs): Likewise.
5959 (m68k_saved_pc_after_call): Likewise.
5960 (m68k_get_longjmp_target): Make multi-arch.
5961 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5962 structure. Register m68k_get_longjmp_target if enabled.
5963 * m68k-tdep.h (struct gdbarch_tdep): Define.
5964 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5966 * Makefile.in (config.status): Also depend on configure.tgt
5968 (m68klinux-tdep.o): Update dependencies.
5969 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5970 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5971 (M68K_LINUX_JB_PC): Define.
5972 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5973 and take additional parameter.
5974 (m68k_linux_sigtramp_saved_pc): Update.
5975 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5976 m68k_linux_pc_in_sigtramp, in_plt_section,
5977 find_solib_trampoline_target.
5978 * config/m68k/tm-linux.h: Don't include any tm headers.
5979 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5980 (JB_ELEMENT_SIZE): Likewise.
5982 (GET_LONGJMP_TARGET): Likewise.
5983 (IN_SIGTRAMP): Likewise.
5984 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5986 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5988 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5989 (sparc32_push_arguments): Re-implement by calling
5990 sparc32_do_push_arguments.
5992 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5994 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5995 SPARC_O1_REGNUM): New defines.
5996 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5997 (sparc32_store_return_value): New function.
5998 (sparc_extract_struct_value_address): Rewrite to operate on a
6000 (sparc_gdbarch_init): Don't set
6001 deprecated_extract_struct_value_address. Set
6002 extract_struct_value_address instead. Don't set
6003 deprecated_extract_return_value and deprecated_store_return_value
6004 for 32-bit targets. Set extract_return_value and
6005 store_return_value instead.
6006 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6007 DEPRECTAED_EXTRACT_RETURN_VALUE,
6008 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6009 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6010 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6011 (sparc_store_return_value): Remove prototype.
6012 (sparc32_store_return_value): New prototype.
6013 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6016 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6018 * sparcnbsd-tdep.c: Include "gdb_string.h".
6020 2003-05-23 Andrew Cagney <cagney@redhat.com>
6022 * p-valprint.c (pascal_val_print): Replace extract_address with
6023 the inline equivalent extract_unsigned_integer.
6024 * jv-valprint.c (java_value_print): Ditto.
6025 * ada-valprint.c (ada_val_print_1): Ditto.
6026 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6028 2003-05-23 Theodore A. Roth <troth@openavr.org>
6030 * blockframe.c (frameless_look_for_prologue): Remove unused
6031 after_prologue variable.
6033 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6035 * blockframe.c (get_pc_function_start): Rewrite to avoid
6036 asignments in if-statements.
6038 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6040 Committed by Elena Zannoni <ezannoni@redhat.com>.
6041 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6042 files, don't relocate absolute symbols (and do use mst_abs).
6044 2003-05-23 Andrew Cagney <cagney@redhat.com>
6046 * objc-lang.c: Include "gdb_assert.h".
6047 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6048 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6049 (gdb_check, gdb_check_fatal): Delete functions.
6050 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6052 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6053 * Makefile.in (objc-lang.o): Update dependencies.
6055 2003-05-22 Ian Lance Taylor <ian@airs.com>
6057 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6058 with fprintf_filtered, not fprintf_unfiltered.
6060 2003-05-22 Andrew Cagney <cagney@redhat.com>
6062 * stack.c (frame_info): Inline extract_address, replacing it with
6063 extract_unsigned_integer.
6064 * findvar.c (unsigned_pointer_to_address): Ditto.
6065 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6066 * dwarf2expr.c (dwarf2_read_address): Ditto.
6067 * frame.c (frame_pc_unwind): Update comment.
6068 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6070 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6072 * infptrace.c (detach): Call print_sys_errmsg rather than
6073 perror_with_name to issue warning message when errno is non-zero
6074 after calling ptrace detach.
6076 2003-05-21 J. Brobecker <brobecker@gnat.com>
6078 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6079 macro definitions from here...
6080 * hppa-tdep.c: ...to there.
6082 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6084 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6085 register_ptrace_addr(). Fix all callers.
6087 2003-05-21 Andreas Schwab <schwab@suse.de>
6089 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6091 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6093 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6094 (_initialize_m68k_linux_tdep): New function.
6095 (m68k_linux_frame_saved_pc): Make static.
6096 (m68k_linux_extract_return_value): Likewise.
6097 (m68k_linux_store_return_value): Likewise.
6098 (m68k_linux_extract_struct_value_address): Likewise.
6099 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6101 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6102 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6103 (DEPRECATED_FRAME_SAVED_PC): Remove.
6105 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6107 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6108 regset numbering rather than our own.
6110 2003-05-19 David Carlton <carlton@bactrian.org>
6112 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6114 2003-05-19 David Carlton <carlton@bactrian.org>
6116 Partial fix for PR c++/827.
6117 * cp-support.h: Include symtab.h.
6118 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6119 * cp-namespace.c: Update contributors.
6120 (cp_lookup_symbol_nonlocal): New.
6121 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6122 (lookup_symbol_file): Ditto.
6123 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6124 * block.h: Declare block_scope, block_using, block_global_block.
6125 * block.c (block_scope): New.
6126 (block_using, block_global_block): Ditto.
6127 * Makefile.in (cp_support_h): Depend on symtab_h.
6128 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6130 2003-05-19 David Carlton <carlton@bactrian.org>
6132 * language.h (struct language_defn): Add 'la_value_of_this'
6133 and 'la_lookup_symbol_nonlocal' members.
6134 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6135 lookup_symbol_static, lookup_symbol_global,
6136 lookup_symbol_aux_block.
6137 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6138 if we should search fields of this and how to do static/global
6140 (lookup_symbol_aux_block): Make extern.
6141 (basic_lookup_symbol_nonlocal): New.
6142 (lookup_symbol_static, lookup_symbol_global): Ditto.
6143 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6144 'la_lookup_symbol_nonlocal' members.
6145 * c-lang.c (c_language_defn, cplus_language_defn)
6146 (asm_language_defn, minimal_language_defn): Ditto.
6147 * jv-lang.c (java_language_defn): Ditto.
6148 * language.c (unknown_language_defn, auto_language_defn)
6149 (local_language_defn): Ditto.
6150 * m2-lang.c (m2_language_defn): Ditto.
6151 * objc-lang.c (objc_language_defn): Ditto.
6152 * scm-lang.c (scm_language_defn): Ditto.
6153 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6154 * p-lang.c (pascal_language_defn): Ditto for both.
6155 * Makefile.in (f-lang.o): Depend on value_h.
6158 2003-05-19 David Carlton <carlton@bactrian.org>
6160 * block.h: Declare block_static_block.
6161 * block.c (block_static_block): New.
6162 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6163 lookup_symbol_aux_local, calling block_static_block instead.
6164 (lookup_symbol_aux_local): Delete 'static_block' argument.
6166 2003-05-19 David Carlton <carlton@bactrian.org>
6168 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6170 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6172 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6173 register numbers mapping.
6175 2003-05-18 Adam Fedor <fedor@gnu.org>
6177 * symtab.c (completion_list_objc_symbol): New function.
6178 (make_symbol_completion_list): Use it to add ObjC symbols
6179 when looking though the list.
6180 (language_search_unquoted_string): New function.
6181 (make_file_symbol_completion_list): Use it.
6183 2003-05-18 Andreas Schwab <schwab@suse.de>
6185 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6187 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6188 as m68k_linux_extract_return_value.
6189 (DEPRECATED_STORE_RETURN_VALUE): Define as
6190 m68k_linux_store_return_value.
6191 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6192 m68k_linux_extract_struct_value_address.
6193 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6194 get_next_frame, get_frame_base, get_frame_pc.
6195 (m68k_linux_frame_saved_pc): Use get_frame_base.
6196 (m68k_linux_extract_return_value): New function.
6197 (m68k_linux_store_return_value): New function.
6198 (m68k_linux_extract_struct_value_address): New function.
6199 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6201 * c-exp.y (typebase): Remove duplicate occurence of
6202 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6203 of lookup_signed_typename.
6205 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6207 * dwarf2loc.c (find_location_expression): Change type of second
6208 argument to `size_t *'.
6209 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6212 2003-05-18 David Carlton <carlton@bactrian.org>
6214 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6215 'linkage_name'. Add comment.
6216 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6218 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6219 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6220 (lookup_block_symbol): Ditto.
6222 2003-05-16 Andrew Cagney <cagney@redhat.com>
6224 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6225 * gdbarch.h, gdbarch.c: Re-generate.
6226 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6227 * TODO (REGISTER_BYTES): Delete reference.
6228 * alpha-tdep.c (alpha_gdbarch_init): Update.
6229 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6230 * x86-64-tdep.c (x86_64_init_abi): Update.
6231 * vax-tdep.c (vax_gdbarch_init): Update.
6232 * v850-tdep.c (v850_gdbarch_init): Update.
6233 * sparc-tdep.c (sparc_gdbarch_init): Update.
6234 * sh-tdep.c (sh_gdbarch_init): Update.
6235 * s390-tdep.c (s390_gdbarch_init): Update.
6236 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6237 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6238 (ns32k_gdbarch_init_32382): Update.
6239 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6240 * mcore-tdep.c (mcore_gdbarch_init): Update.
6241 * m68k-tdep.c (m68k_gdbarch_init): Update.
6242 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6243 * ia64-tdep.c (ia64_gdbarch_init): Update.
6244 * i386-tdep.c (i386_gdbarch_init): Update.
6245 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6246 * hppa-tdep.c (hppa_gdbarch_init): Update.
6247 * h8300-tdep.c (h8300_gdbarch_init): Update.
6248 * frv-tdep.c (frv_gdbarch_init): Update.
6249 * cris-tdep.c (cris_gdbarch_init): Update.
6250 * avr-tdep.c (avr_gdbarch_init): Update.
6251 * arm-tdep.c (arm_gdbarch_init): Update.
6252 * sparc-tdep.c (sparc_pop_frame): Update.
6253 * rs6000-tdep.c (rs6000_pop_frame): Update.
6254 * remote.c (init_remote_state): Update.
6255 (remote_prepare_to_store): Update.
6256 * remote-vx.c (vx_prepare_to_store): Update.
6257 * remote-sds.c (sds_fetch_registers): Update.
6258 (sds_prepare_to_store): Update.
6259 * remote-array.c: Update.
6260 * regcache.c (init_legacy_regcache_descr): Update.
6261 (init_regcache_descr): Update.
6262 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6263 (mips_o64_extract_return_value): Update.
6264 * irix5-nat.c (fetch_core_registers): Update.
6265 * irix4-nat.c (fetch_core_registers): Update.
6266 * i386-tdep.h: Update.
6267 * hppa-tdep.c (pa_do_registers_info): Update.
6268 (pa_do_strcat_registers_info): Update.
6269 * cris-tdep.c (cris_register_bytes_ok): Update.
6270 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6271 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6272 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6273 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6274 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6275 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6276 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6277 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6278 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6279 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6280 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6281 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6282 (REGISTER_BYTES_OK): Update.
6283 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6284 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6286 2003-05-16 Ian Lance Taylor <ian@airs.com>
6288 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6289 (vax_print_insn, print_insn_arg): Remove static functions.
6290 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6291 print_insn_vax from opcodes library.
6292 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6294 2003-05-15 Andrew Cagney <cagney@redhat.com>
6296 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6297 * target.h (memory_breakpoint_from_pc): Delete declaration.
6298 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6299 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6300 * monitor.c (monitor_insert_breakpoint): Use
6301 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6302 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6303 * gdbarch.h, gdbarch.c: Re-generate.
6304 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6305 (sparc_gdbarch_init): Set breakpoint_from_pc to
6306 sparc_breakpoint_from_pc.
6307 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6308 (BREAKPOINT_FROM_PC): Define.
6309 (sparc_breakpoint_from_pc): Declare.
6310 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6311 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6312 (BREAKPOINT_FROM_PC): Define.
6313 (BREAKPOINT): Delete macro.
6314 * target.h: Update comment.
6315 * s390-tdep.c (s390_gdbarch_init): Update comments.
6316 * remote.c: Update comments.
6317 * remote-mips.c: Update comments.
6318 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6319 * mem-break.c: Update comment.
6320 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6321 (ia64_memory_insert_breakpoint): Update.
6322 * config/sparc/tm-sparc.h: Update comment.
6323 * config/pa/tm-hppa64.h: Update comment.
6324 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6325 (rs6000_breakpoint_from_pc): Update.
6326 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6327 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6328 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6329 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6330 (mips_breakpoint_from_pc): Update.
6331 (mips_dump_tdep): Update.
6333 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6334 * minsyms.c (lookup_minimal_symbol): Inline
6335 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6337 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6338 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6339 * p-lang.c (pascal_printstr): Ditto.
6340 * objc-lang.c (objc_printstr): Ditto.
6341 * m2-lang.c (m2_printstr): Ditto.
6342 * jv-valprint.c (java_print_value_fields): Ditto.
6343 * f-lang.c (f_printstr): Ditto.
6344 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6345 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6346 for repeat_count_threshold.
6347 * Makefile.in (cp-valprint.o): Update dependencies.
6349 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6351 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6352 (examine_prologue): Support looking through leaf functions, knowing
6353 they start with mov r2,r12. Support skipping over indirect stores
6354 of the input registers. Upon hitting a non-nop branch instruction
6355 or predicated instruction, bail out by setting lim_pc to the current
6356 pc value in the loop. At the end, if the lim_pc value is still
6357 beyond our calculated value and we have trust_limit set,
6358 use the lim_pc value.
6360 2003-05-15 Andrew Cagney <cagney@redhat.com>
6362 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6363 generic_find_dummy_frame.
6364 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6365 (deprecated_generic_find_dummy_frame): Update.
6366 (deprecated_read_register_dummy): Update.
6367 * frame.c (deprecated_generic_get_saved_register): Update.
6369 2003-05-15 Theodore A. Roth <troth@openavr.org>
6371 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6372 (avr_gdbarch_init): Set breakpoint_from_pc method.
6374 2003-05-15 Andrew Cagney <cagney@redhat.com>
6376 * regcache.c (build_regcache): Set deprecated_register_valid
6378 (deprecated_grub_regcache_for_register_valid): Delete function.
6379 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6382 2003-05-15 David Carlton <carlton@bactrian.org>
6384 Committed by Elena Zannoni <ezannoni@redhat.com>
6385 * symtab.c (lookup_symbol_aux): Delete calls to
6386 lookup_symbol_aux_minsyms.
6387 (lookup_symbol_aux_minsyms): Comment out function and
6388 prototype. Delete lookup by mangled name.
6390 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6392 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6393 correctly indicate an empty stack and ``stack_allocated'' to the
6394 indicate the number of elements initially allocated.
6395 (dwarf_expr_grow_stack): Simplify method for computing new
6396 stack size. Don't loop infinitely if ``stack_len'' is zero.
6397 (execute_stack_op): Move ``ctx->in_reg'' initialization
6398 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6399 be used in conjuction with DW_OP_piece. Revise error message
6402 2003-05-14 Theodore A. Roth <troth@openavr.org>
6404 * MAINTAINERS: Update my email address.
6405 * avr-tdep.c: Ditto.
6407 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6409 * symtab.h (enum domain_enum): Rename from namespace_enum.
6410 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6411 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6412 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6413 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6414 TYPES_NAMESPACE, METHODS_NAMESPACE.
6415 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6416 (struct symbol, struct partial_symbol): Rename field
6417 'namespace_enum namespace' to 'domain_enum domain'.
6418 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6419 Delete old define kludge for namespace.
6421 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6422 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6423 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6424 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6425 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6426 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6427 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6428 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6429 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6430 occurrences of the above.
6432 2003-05-14 Ian Lance Taylor <ian@airs.com>
6434 * Makefile.in (install-only): Use $(SHELL) when running
6437 2003-05-13 Ian Lance Taylor <ian@airs.com>
6439 * MAINTAINERS (write after approval): Add myself.
6441 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6442 second and third arguments.
6443 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6444 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6446 2003-05-13 Andrew Cagney <cagney@redhat.com>
6448 * defs.h (store_address): Delete declaration.
6449 findvar.c (store_address): Delete function.
6450 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6451 store_unsigned_integer.
6452 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6453 * v850-tdep.c (v850_push_arguments): Ditto.
6454 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6455 * sh-tdep.c (sh64_get_saved_register): Ditto.
6456 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6457 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6458 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6459 (mips_get_saved_register): Ditto.
6460 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6461 (find_func_descr, ia64_push_arguments): Ditto.
6462 * i386-tdep.c (i386_push_arguments): Ditto.
6463 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6464 * frv-tdep.c (frv_push_arguments): Ditto.
6465 * frame.c (legacy_saved_regs_prev_register): Ditto.
6466 (deprecated_generic_get_saved_register): Ditto.
6467 * findvar.c (unsigned_address_to_pointer): Ditto.
6468 * dwarf2read.c (dwarf2_const_value): Ditto.
6469 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6470 * alpha-tdep.c (alpha_push_arguments): Ditto.
6472 2003-05-12 J. Brobecker <brobecker@gnat.com>
6474 * NEWS: Mention that the hppa-hpux port has been partially
6475 multiarched (32bit ABIT only, so far).
6477 2003-05-11 Andrew Cagney <cagney@redhat.com>
6479 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6480 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6481 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6482 sim/testsuite/sim/arm/misaligned2.ms, and
6483 sim/testsuite/sim/arm/misaligned3.ms.
6484 * disasm.h (struct ui_file): Add opaque struct declaration.
6485 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6486 * frame.h (struct ui_file): Ditto.
6488 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6490 * value.h: Pretty print.
6492 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6494 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6496 2003-05-08 Andrew Cagney <cagney@redhat.com>
6498 * regcache.h (max_register_size): Delete declaration.
6499 * regcache.c (max_register_size): Delete function.
6500 (struct regcache_descr): Delete field "max_register_size".
6501 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6502 registers fit in MAX_REGISTER_SIZE.
6503 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6504 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6505 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6506 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6507 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6508 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6509 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6510 * dve3900-rom.c, hppa-tdep.c: Ditto.
6512 2003-05-08 David Carlton <carlton@math.stanford.edu>
6514 * valops.c (push_word): Fix typo.
6516 2003-05-08 Andrew Cagney <cagney@redhat.com>
6518 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6519 * gdbarch.h: Re-generate.
6520 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6521 (legacy_max_register_raw_size): Delete declaration.
6522 * regcache.c (legacy_max_register_raw_size): Delete function.
6523 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6524 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6525 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6526 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6527 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6528 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6529 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6530 * findvar.c, dwarf2cfi.c: Ditto.
6532 2003-05-08 Andrew Cagney <cagney@redhat.com>
6534 * mips-tdep.c (read_signed_register): New function, moved to here
6536 (read_signed_register_pid): Ditto.
6537 * regcache.c (read_signed_register_pid): Delete function, moved to
6539 (read_signed_register): Ditto.
6540 * regcache.h (read_signed_register): Delete declaration.
6541 (read_signed_register_pid): Delete declaration.
6543 2003-05-08 Andrew Cagney <cagney@redhat.com>
6545 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6546 * gdbarch.h: Re-generate.
6547 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6548 (legacy_max_register_virtual_size): Delete declaration.
6549 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6550 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6551 * tracepoint.c (memrange_sortmerge): Ditto.
6552 * sparc-tdep.c (sparc_print_registers): Ditto.
6553 * regcache.c (legacy_max_register_virtual_size): Delete function.
6555 2002-05-08 J. Brobecker <brobecker@gnat.com>
6557 * fork-child.c (escape_bang_in_quoted_argument): New function.
6558 (fork_inferior): Escape '!' characters in quoted arguments
6561 2003-05-08 J. Brobecker <brobecker@gnat.com>
6563 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6564 the language of the CU is not currently supported by GDB.
6566 2003-05-08 J. Brobecker <brobecker@gnat.com>
6568 * defs.h (language): Add language_minimal enum value.
6569 * c-lang.c (minimal_language_defn): New language definition.
6570 (_initialize_c_language): Add the new minimal language to the list
6571 of languages known to GDB.
6573 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6575 * frame.c (get_frame_type): Don't attempt to lazily initialize
6576 frame's unwinder for legacy frames.
6578 2003-05-07 Andrew Cagney <cagney@redhat.com>
6580 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6581 and "regcache" parameters.
6582 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6584 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6586 * dwarf2read.c (dwarf_decode_lines): Only use output of
6587 check_cu_functions() when calling record_line(). Do not update
6588 the current address.
6590 2003-05-07 Andrew Cagney <cagney@redhat.com>
6592 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6595 2003-05-07 Jim Blandy <jimb@redhat.com>
6597 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6598 'maint info symtabs' and 'maint info psymtabs'.
6599 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6600 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6601 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6602 Declarations updated.
6603 * maint.c (maintenance_list_command): Delete.
6604 (_initialize_maint_cmds): Update calls to add_cmd.
6605 * gdbcmd.h (maintenancelistlist): Delete declaration.
6606 * cli/cli-cmds.c (maintenancelistlist): Delete.
6607 (init_cmd_lists): Don't initialize it.
6608 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6610 2003-05-07 Andrew Cagney <cagney@redhat.com>
6612 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6614 (d10v_print_registers_info): Update.
6615 (d10v_dmap_register, d10v_imap_register): Delete functions.
6616 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6617 and "imap_register".
6618 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6619 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6620 * arch-utils.c (generic_remote_translate_xfer_address): Add
6621 "regcache" and "gdbarch" parameters.
6622 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6623 parameter. Change class to multi-arch.
6624 * gdbarch.h, gdbarch.c: Re-generate.
6625 * remote.c (remote_xfer_memory): Use
6626 gdbarch_remote_translate_xfer_address.
6628 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6630 * infrun.c (prev_pc): Move declaration ahead of proceed().
6631 (proceed): Refresh prev_pc value before resuming.
6632 (stop_stepping): Remove code to refresh prev_pc.
6634 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6636 * nto-tdep.c: Removed stray comment.
6638 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6640 * i386-nto-tdep.c: Fix old K&R function definitions.
6641 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6642 Also change add_show_from_set() call to add_setshow_cmd().
6643 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6645 2003-05-05 Andrew Cagney <cagney@redhat.com>
6647 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6648 (fprint_dummy_frames): New function.
6649 (maintenance_print_dummy_frames): New function.
6650 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6651 * frame.c (fprint_frame_id): Make global.
6652 * frame.h (fprint_frame_id): Declare.
6653 * Makefile.in (dummy-frame.o): Update dependencies.
6655 2003-05-05 Andrew Cagney <cagney@redhat.com>
6657 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6658 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6659 SIZEOF_CALL_DUMMY_WORDS.
6660 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6661 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6662 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6663 CALL_DUMMY_BREAKPOINT_OFFSET.
6664 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6665 CALL_DUMMY_START_OFFSET.
6666 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6667 * gdbarch.h, gdbarch.c: Re-generate.
6668 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6669 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6670 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6671 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6672 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6673 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6674 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6675 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6676 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6677 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6678 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6679 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6680 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6681 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6682 * config/sparc/tm-sparc.h: Update.
6684 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6686 * configure.tgt: Add i[3456]86-*-nto*.
6687 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6688 * nto-tdep.c: New file. Neutrino target support routines.
6689 * nto-tdep.h: New file. Neutrino target header.
6690 * config/tm-qnxnto.h: New file.
6691 * config/i386/i386nto.mt: New file.
6692 * config/i386/tm-i386nto.h: New file.
6694 2003-05-04 Andrew Cagney <cagney@redhat.com>
6696 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6697 (load_infrun_state): Ditto.
6698 (struct thread_info): Drop "prev_func_name" field.
6699 * thread.c (load_infrun_state): Update.
6700 (save_infrun_state): Update.
6701 * infrun.c (prev_func_name): Delete variable.
6702 (init_wait_for_inferior): Do not clear prev_func_name.
6703 (stop_stepping, keep_going, context_switch): Do not swap
6705 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6706 instead of PC_IN_SIGTRAMP.
6708 2003-05-04 Andrew Cagney <cagney@redhat.com>
6710 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6711 REGISTER_BYTE with register_offset_hack.
6712 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6713 that REGISTER_BYTE is consistent with the regcache.
6714 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6715 * gdbarch.h, gdbarch.c: Regenerate.
6717 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6719 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6720 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6722 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6724 2003-05-03 J. Brobecker <brobecker@gnat.com>
6726 From Thierry Schneider <tpschneider1@yahoo.com>
6727 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6728 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6729 (mi-cmd-symbol.o): Add rule.
6731 2003-05-03 Andrew Cagney <cagney@redhat.com>
6733 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6734 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6735 * gdbarch.h, gdbarch.c: Re-generate.
6736 * d10v-tdep.c (d10v_push_dummy_code): New function.
6737 (d10v_gdbarch_init): Set push_dummy_code.
6738 * infcall.c (legacy_push_dummy_code): New function.
6739 (generic_push_dummy_code): New function.
6740 (push_dummy_code): New function.
6741 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6742 instead of dummy_addr, to push_dummy_call. Move call to
6743 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6745 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6747 2003-05-03 Andrew Cagney <cagney@redhat.com>
6749 * disasm.h (print_insn): Declare.
6750 * disasm.c (init_gdb_disassemble_info): New function.
6751 (gdb_disassembly): Call init_gdb_disassemble_info.
6752 (gdb_print_insn): New function.
6753 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6754 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6755 * mcore-tdep.c: Include "disasm.h"
6756 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6757 * d10v-tdep.c: Include "disasm.h".
6758 (display_trace): Call gdb_print_insn, instead of print_insn.
6759 (print_insn): Delete function.
6760 * printcmd.c: Include "disasm.h".
6761 (print_insn): Delete function.
6762 (print_formatted): Call gdb_print_insn, instead of print_insn.
6763 * Makefile.in (printcmd.o): Update dependencies.
6764 (mcore-tdep.o, d10v-tdep.o): Ditto.
6766 2003-05-02 Andrew Cagney <cagney@redhat.com>
6768 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6769 PC_REGNUM, re-indent.
6770 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6771 PC_REGNUM isn't set.
6773 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6774 * gdbarch.h, gdbarch.c: Re-generate.
6775 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6776 register_virtual_size, pc_regnum, or register_bytes.
6777 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6778 (d10v_register_type): Use D10V_PC_REGNUM.
6779 (d10v_print_registers_info, d10v_read_pc): Ditto.
6780 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6781 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6783 2003-05-02 David Carlton <carlton@bactrian.org>
6785 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6786 the name with mstrsave.
6788 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6790 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6791 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6792 (host_charset_name, target_charset_name): New vars for use by
6794 (host_charset_enum, target_charset_enum): New enums for set/show
6796 (set_charset_sfunc, set_host_charset_sfunc,
6797 set_target_charset_sfunc): New functions.
6798 (set_host_charset, set_target_charset): Make static.
6799 (list_charsets, set_host_charset_command,
6800 set_target_charset_command): Delete functions.
6801 (show_charset_command): Rewrite as....
6802 (show_charset): Hook this up with the set/show command mechanism.
6803 (_initialize_charset): Change names of charsets to match the
6804 set/show enums. Use host_charset_name and target_charset_name.
6805 Use set/show mechanism for charset, host-charset, target-charset
6806 commands. Do not make 'show host-charset' and 'show
6807 target-charset' be aliases of 'show charset'.
6809 * charset.h (set_host_charset, set_target_charset): Don't export,
6810 they are not used outside the file.
6812 2003-05-01 Andrew Cagney <cagney@redhat.com>
6814 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6815 (gdb_disassembly): Make "di" non static, always initialize and
6816 cleanup. Always use dis_asm_read_memory.
6817 (gdb_dis_asm_read_memory): Delete function.
6819 2003-05-01 Andrew Cagney <cagney@redhat.com>
6821 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6822 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6824 2003-04-30 Andrew Cagney <cagney@redhat.com>
6826 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6827 "tm_print_insn_info".
6828 (TARGET_PRINT_INSN_INFO): Delete macro.
6829 (dis_asm_read_memory): Delete function declaration.
6830 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6831 (tm_print_insn_info): Delete variable definition.
6832 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6833 * gdbarch.h, gdbarch.c: Re-generate.
6834 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6835 "deprecated_tm_print_insn_info".
6836 * mcore-tdep.c (mcore_dump_insn): Ditto.
6837 * mips-tdep.c (mips_gdbarch_init): Ditto.
6838 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6839 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6840 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6841 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6842 instead of TARGET_PRINT_INSN_INFO, add comment.
6843 * s390-tdep.c (s390_get_frame_info): Instead of
6844 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6845 (s390_check_function_end, s390_is_sigreturn): Ditto.
6846 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6847 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6848 * disasm.c: Include "gdbcore.h".
6849 (_initialize_disasm): New function, initialize
6850 "deprecated_tm_print_insn_info".
6851 (deprecated_tm_print_insn_info): New variable.
6852 (dis_asm_read_memory): Moved from "corefile.c", made static.
6853 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6854 * Makefile.in (disasm.o): Update dependencies.
6856 2003-04-30 Andrew Cagney <cagney@redhat.com>
6858 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6860 2003-04-29 Adam Fedor <fedor@gnu.org>
6862 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6863 * infcall.c (find_function_addr): Make non-static.
6864 * infcall.h (find_function_addr): Declare.
6865 * Makefile.in (eval.o): Update dependencies.
6867 2003-04-28 Adam Fedor <fedor@gnu.org>
6869 * symtab.c (symbol_find_demangled_name): Check for and demangle
6871 (symbol_init_demangled_name): Init for language_objc as well.
6873 2003-04-28 Andrew Cagney <cagney@redhat.com>
6875 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6876 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6877 * gdbarch.h, gdbarch.c: Re-generate.
6878 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6879 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6880 * inferior.h (deprecated_read_fp): Rename read_fp.
6881 (generic_target_read_fp): Delete declaration.
6882 * regcache.c (generic_target_read_fp): Delete function.
6883 (deprecated_read_fp): Replace read_fp, use
6884 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6885 * d10v-tdep.c (d10v_read_fp): Delete function.
6886 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6888 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6889 deprecated_target_read_fp to generic_target_read_fp.
6890 * sh-tdep.c (sh_gdbarch_init): Ditto.
6891 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6892 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6893 * frv-tdep.c (frv_gdbarch_init): Ditto.
6895 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6896 deprecated_fp_regnum.
6897 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6898 * vax-tdep.c (vax_gdbarch_init): Ditto.
6899 * v850-tdep.c (v850_gdbarch_init): Ditto.
6900 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6901 * sh-tdep.c (sh_gdbarch_init): Ditto.
6902 * s390-tdep.c (s390_gdbarch_init): Ditto.
6903 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6904 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6905 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6906 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6907 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6908 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6909 * i386-tdep.c (i386_gdbarch_init): Ditto.
6910 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6911 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6912 * frv-tdep.c (frv_gdbarch_init): Ditto.
6913 * cris-tdep.c (cris_gdbarch_init): Ditto.
6914 * avr-tdep.c (avr_gdbarch_init): Ditto.
6915 * arm-tdep.c (arm_gdbarch_init): Ditto.
6916 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6918 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6919 * v850-tdep.c (v850_gdbarch_init): Ditto.
6920 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6921 * sh-tdep.c (sh_gdbarch_init): Ditto.
6922 * s390-tdep.c (s390_gdbarch_init): Ditto.
6923 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6924 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6925 * mips-tdep.c (mips_gdbarch_init): Ditto.
6926 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6927 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6928 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6929 * frv-tdep.c (frv_gdbarch_init): Ditto.
6930 * avr-tdep.c (avr_gdbarch_init): Ditto.
6931 * arm-tdep.c (arm_gdbarch_init): Ditto.
6933 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6934 DEPRECATED_FP_REGNUM.
6935 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6936 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6937 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6938 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6939 (sparc32_register_virtual_type): Ditto.
6940 * sh-tdep.c (sh64_frame_chain): Ditto.
6941 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6942 (sh_nofp_frame_init_saved_regs): Ditto.
6943 (sh64_nofp_frame_init_saved_regs): Ditto.
6944 (sh_fp_frame_init_saved_regs): Ditto.
6945 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6946 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6947 * procfs.c (procfs_fetch_registers): Ditto.
6948 (procfs_store_registers): Ditto.
6949 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6950 (store_inferior_registers, fetch_core_registers): Ditto.
6951 (fetch_kcore_registers, clear_regs): Ditto.
6952 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6953 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6954 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6955 * nlm/i386.c (do_status): Ditto.
6956 * mipsv4-nat.c (supply_gregset): Ditto.
6957 * mips-tdep.c: Ditto for comments.
6958 * mips-nat.c (fetch_inferior_registers): Ditto.
6959 (store_inferior_registers, fetch_core_registers): Ditto.
6960 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6961 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6962 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6963 (i386_do_pop_frame, i386_register_type): Ditto.
6964 * hppa-tdep.c (hppa_frame_chain): Ditto.
6965 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6966 (hppa_pop_frame, hppa_read_fp): Ditto.
6967 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6968 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6969 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6970 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6971 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6972 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6973 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6974 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6975 * blockframe.c: Ditto for comments.
6976 * arch-utils.h: Ditto for comments.
6977 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6978 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6979 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6980 * alpha-tdep.h: Ditto for comments.
6981 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6982 (alpha_cannot_store_register): Ditto.
6983 (alpha_push_dummy_frame): Ditto.
6984 * alpha-nat.c (supply_gregset): Ditto.
6986 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6987 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6988 * config/sparc/tm-sparc.h: Update comment.
6990 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6991 deprecated_read_fp instead of TARGET_READ_FP.
6992 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6993 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6994 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6995 deprecated_read_fp instead of read_fp.
6996 * s390-tdep.c (s390_push_arguments): Ditto.
6997 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6998 * frame.h: Ditto in comments.
6999 * frame.c (legacy_get_prev_frame): Ditto.
7000 * dummy-frame.c (dummy_frame_this_id): Ditto.
7001 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7003 2003-04-28 Andrew Cagney <cagney@redhat.com>
7005 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7006 * gdbarch.h, gdbarch.c: Re-generate.
7007 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7008 * vax-tdep.c (_initialize_vax_tdep): Update.
7009 * v850-tdep.c (_initialize_v850_tdep): Update.
7010 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7011 * s390-tdep.c (_initialize_s390_tdep): Update.
7012 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7013 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7014 * mips-tdep.c (_initialize_mips_tdep): Update.
7015 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7016 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7017 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7018 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7019 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7020 * frv-tdep.c (_initialize_frv_tdep): Update.
7021 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7022 (_initialize_cris_tdep): Update.
7023 * arch-utils.c (legacy_print_insn): Update.
7024 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7026 2003-04-26 Adam Fedor <fedor@gnu.org>
7028 * linespec.c (decode_objc): New function to decode ObjC calls
7029 (decode_line_1): Check for ObjC calls (using decode_objc)
7030 * Makefile (linespec.o): Update dependencies.
7032 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7034 * breakpoint.h (struct breakpoint_ops): New.
7035 (struct breakpoint): Add ops member.
7037 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7038 (mention): Use new breakpoint ops member.
7039 (set_raw_breakpoint): Initialize ops field to NULL.
7040 (print_exception_catchpoint, print_one_exception_catchpoint)
7041 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7042 (gnu_v3_exception_catchpoint_ops): New.
7043 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7045 2003-04-25 Adam Fedor <fedor@gnu.org>
7047 * Makefile.in (COMMON_OBS): Add objc-lang.o
7049 2003-04-25 Andrew Cagney <cagney@redhat.com>
7051 * d10v-tdep.c (print_insn): Delete function.
7052 (display_trace): Use TARGET_PRINT_INSN.
7053 (_initialize_d10v_tdep): Do not set tm_print_insn.
7054 (d10v_gdbarch_init): Set print_insn.
7056 2003-04-25 Andrew Cagney <cagney@redhat.com>
7058 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7059 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7060 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7061 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7062 (nr_dmap_regs, a0_regnum): ... new functions.
7063 (d10v_print_registers_info): Use a0_regnum, use register_size.
7064 (d10v_register_byte): Delete function.
7065 (d10v_register_raw_size): Delete function.
7066 (d10v_register_type): Use a0_regnum.
7067 (d10v_print_registers_info): Use a0_regnum.
7068 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7069 (d10v_gdbarch_init): Do not set register_byte or
7070 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7071 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7073 (trace_command): Use XCALLOC.
7074 (print_insn): Delete reference to tm_print_insn.
7075 (saved_regs_unwinder): Use store_unsigned_integer instead of
7077 * frame.h (FRAME_OBSTACK_CALLOC): Define
7079 2003-04-25 David Carlton <carlton@bactrian.org>
7081 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7083 2003-04-24 Adam Fedor <fedor@gnu.org>
7085 * objc-lang.c: Include "valprint.h"
7086 * Makefile.in (objc-lang.o): Update dependencies.
7088 2003-04-24 Adam Fedor <fedor@gnu.org>
7090 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7091 architecture dependant compilation and mark as unimplemented
7092 (until they get put in the gdbarch vector).
7094 2003-04-23 David Carlton <carlton@bactrian.org>
7096 * cp-support.c (cp_find_first_component): Accept 'operator' in
7099 2003-04-23 Andrew Cagney <cagney@redhat.com>
7101 * infcall.c (call_function_by_hand): Eliminate redundant
7102 indentation. Move "saved_async" and "old_cleanups" to where they
7105 2003-04-23 Andrew Cagney <cagney@redhat.com>
7107 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7108 and "buffer". Move the "name" code to where it is needed.
7110 2003-04-23 Andrew Cagney <cagney@redhat.com>
7112 * infcall.c (call_function_by_hand): Move variables "start_sp",
7113 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7114 code to ON_STACK switch branch.
7116 2003-04-23 Andrew Cagney <cagney@redhat.com>
7118 * infcall.c (call_function_by_hand): Make declaration of "i",
7119 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7122 2003-04-23 Andrew Cagney <cagney@redhat.com>
7124 * infcall.c (call_function_by_hand): Delete variable
7125 "n_method_args". Localize "param_type"'s declaration to the loop
7126 that it is used. Reinstate code assigning to said variable -
7127 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7128 Rationalize code using "param_type".
7130 2003-04-22 Andrew Cagney <cagney@redhat.com>
7132 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7133 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7134 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7135 to DEPRECATED_PUSH_RETURN_ADDRESS.
7137 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7139 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7140 on the DWARF2 register number prior to fetching a register.
7142 2003-04-22 J. Brobecker <brobecker@gnat.com>
7144 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7145 Update all the tests using SOFT_FLOAT considering the fact that
7146 this macro was always set to 0.
7147 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7148 considering the fact that this macro was always set to 0.
7149 * hppa-tdep.h (hppa_store_return_value): Likewise.
7150 (hppa_extract_return_value): Likewise.
7152 2003-04-22 J. Brobecker <brobecker@gnat.com>
7154 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7155 the hppa-pro target only.
7157 2003-04-21 J. Brobecker <brobecker@gnat.com>
7159 Ongoing multi-arch conversion effort for HP/UX:
7160 * config/pa/tm-hppa.h: Move all macro that are no longer
7161 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7162 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7164 2003-04-21 J. Brobecker <brobecker@gnat.com>
7166 * config/pa/tm-hppa.h: Obsolete a section that was only used
7169 2003-04-21 J. Brobecker <brobecker@gnat.com>
7171 Ongoing multi-arch conversion for HP/UX.
7172 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7173 if already defined (allows hppa64 to stay non-multiarched for now).
7174 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7176 2003-04-21 Andrew Cagney <cagney@redhat.com>
7178 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7180 2003-04-21 Andrew Cagney <cagney@redhat.com>
7182 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7183 "i386_num_mmx_regs".
7185 2003-04-21 Andrew Cagney <cagney@redhat.com>
7187 * infcall.c: New file.
7188 * infcall.h: New file.
7189 * valarith.c: Include "infcall.h".
7190 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7191 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7192 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7193 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7194 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7195 (SFILES): Add "infcall.c"
7196 (COMMON_OBS): Add "infcall.o".
7197 (infcall.o): Specify dependencies.
7198 * value.h (call_function_by_hand): Delete declaration.
7199 * inferior.h (run_stack_dummy): Delete declaration.
7200 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7201 (run_stack_dummy): Move to "infcall.c", merged into
7202 call_function_by_hand.
7203 * valops.c (call_function_by_hand): Moved to "infcall.c".
7204 (find_function_addr, value_arg_coerce): Ditto.
7205 (unwindonsignal_p, coerce_float_to_double): Ditto.
7206 (_initialize_valops): Move "set/show coerce-float-to-double", and
7207 "set/show unwindonsignal" commands to "infcall.c".
7208 * v850-tdep.c, target.h: Update comments.
7209 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7210 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7211 (sh64_init_extra_frame_info): Update comments.
7212 * mn10300-tdep.c: Update comments.
7213 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7214 * config/sparc/tm-sparc.h: Update comments.
7215 * breakpoint.h: Update comments.
7216 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7217 * arm-tdep.c: Update comment.
7219 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7221 * i386-tdep.c (i386_num_register_names): New variable.
7222 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7223 (MM0_REGNUM): Remove redundant parentheses in define.
7224 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7225 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7226 i386_mxcsr_regnum_p): Remove redundant parentheses.
7227 (i386_register_name): Use i386_num_register_names.
7229 * i386-tdep.c (i386_extract_return_value,
7230 i386_store_return_value): Correct check for availability of
7231 floating-point registers.
7233 * i386-tdep.c (i386_frame_num_args): Remove function.
7234 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7236 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7237 mmx_regnum_to_fp_regnum. Adjust all callers.
7239 * i386-tdep.c (i386_get_longjmp_target): Use
7240 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7241 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7244 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7246 * core-regset.c: Update comments to reflect reality. Re-order
7248 (fetch_core_registers): Use switch instead of if. Remove
7249 redundant prototype.
7251 2003-04-18 Jim Blandy <jimb@redhat.com>
7253 * s390-tdep.c (s390_frame_align): New function.
7254 (s390_gdbarch_init): Register it with the gdbarch object.
7256 2003-04-17 Richard Henderson <rth@redhat.com>
7258 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7260 2003-04-17 Michael Snyder <msnyder@redhat.com>
7261 Karen Bennet <bennet@redhat.com>
7263 Committed by Elena Zannoni <ezannoni@redhat.com>
7264 * gdb_gcore.sh: New script to create a core dump of a process.
7266 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7268 * values.c (value_being_returned): Don't fetch the return
7269 value if the return type is void.
7271 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7273 * thread-db.c: Reindented.
7275 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7277 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7278 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7305 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7307 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7308 the size of ``long double'' to 16, instead of 8.
7310 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7312 * i386-linux-nat.c: Add some whitespace to make things more
7314 (fetch_register, store_register, fetch_inferior_registers,
7315 store_inferior_registers): Get rid of assignment in if-statement.
7316 (store_register): Fix typo in error message.
7318 2003-04-16 Andrew Cagney <cagney@redhat.com>
7320 * utils.c (xmmalloc): Always allocate something, matches
7321 libiberty/xmalloc's semantics.
7322 (xmrealloc, xmcalloc): Ditto.
7324 2003-04-16 Andrew Cagney <cagney@redhat.com>
7326 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7328 (get_frame_type): Initialize unwind and type when needed.
7329 (get_frame_id, frame_register_unwind): Ditto.
7331 2003-04-16 Andrew Cagney <cagney@redhat.com>
7333 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7335 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7336 * sparcl-stub.c: Obsolete file.
7337 * config/sparc/tm-sparclet.h: Obsolete file.
7338 * sparclet-stub.c: Obsolete file.
7339 * sparclet-rom.c: Obsolete file.
7340 * sparcl-tdep.c: Obsolete file.
7341 * config/sparc/tm-sparclite.h: Obsolete file.
7342 * config/sparc/sparclite.mt: Obsolete file.
7343 * config/sparc/sparclet.mt: Obsolete file.
7344 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7345 sparc86x-*-* obsolete.
7347 2003-04-15 David Carlton <carlton@math.stanford.edu>
7349 * Makefile.in (SFILES): Add cp-namespace.c.
7350 (COMMON_OBS): Add cp-namespace.o.
7351 (block.o): Depend on gdb_obstack_h and cp_support_h.
7352 (buildsym.o): Depend on cp_support_h.
7353 (cp-namespace.o): New.
7354 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7355 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7356 (dwarf2read.o): Depend on cp_support_h.
7357 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7358 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7359 processing_current_namespace.
7360 (read_namespace): Update processing_current_namespace; check for
7361 anonymous namespaces.
7362 (dwarf2_name): New function.
7363 (dwarf2_extension): Ditto.
7364 * cp-support.h: Update copyright, contributors.
7365 Add inclusion guards.
7366 Add opaque declaration for structs obstack, block, symbol.
7367 (struct using_direct): New struct.
7368 Add declarations for cp_find_first_component,
7369 cp_entire_prefix_len, processing_has_namespace_info,
7370 processing_current_namespace, cp_is_anonymous,
7371 cp_add_using_directive, cp_initialize_namespace,
7372 cp_finalize_namespace, cp_set_block_scope,
7373 cp_scan_for_anonymous_namespaces.
7374 * cp-namespace.c: New file.
7375 * cp-support.c: Update copyright.
7376 Include ctype.h, gdb_assert.h, gdbcmd.h.
7377 New variable maint_cplus_cmd_list.
7378 (cp_find_first_component): New function.
7379 (cp_entire_prefix_len, maint_cplus_command)
7380 (first_component_command, _initialize_cp_support): Ditto.
7381 * buildsym.c: Include cp-support.h.
7382 New variable using_list.
7383 (add_symbol_to_list): Check for anonymous namespaces.
7384 (finish_block): Set block's scope.
7385 (start_symtab): Initialize C++ namespace support.
7386 (end_symtab): Finalize C++ namespace support.
7387 * block.h: Add opaque declarations for structs
7388 block_namespace_info, using_direct, and obstack.
7389 Add declarations for block_set_scope and block_set_using.
7390 (struct block): Add 'language_specific' member.
7391 (BLOCK_NAMESPACE): New macro.
7392 * block.c: Include gdb_obstack.h and cp-support.h.
7393 (struct block_namespace_info): New struct.
7394 (block_set_scope): New function.
7395 (block_set_using, block_initialize_namespace): Ditto.
7397 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7399 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7400 (locate_base): Return early if there aren't any link map offsets.
7401 (svr4_solib_create_inferior_hook): Warn if shared library support
7404 2003-04-14 David Carlton <carlton@math.stanford.edu>
7406 * symtab.c (symbol_set_names): Add prefix when storing Java names
7407 in hash table. Fix for PR java/1039.
7409 2003-04-14 David Carlton <carlton@math.stanford.edu>
7411 * symtab.c (symbol_set_names): Rename 'name' arg to
7412 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7413 * symtab.h: Change 'name' argument in declaration of
7414 symbol_set_names to 'linkage_name'.
7415 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7417 2003-04-14 Andrew Cagney <cagney@redhat.com>
7419 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7420 return the fully sign-extended register value.
7421 (get_frame_pointer): Ditto.
7422 (mips_pop_frame): Initialize "proc_desc" after checking for a
7425 2003-04-14 Andrew Cagney <cagney@redhat.com>
7427 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7428 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7429 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7430 (mips_push_register): Delete function.
7431 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7434 2003-04-14 Jim Blandy <jimb@redhat.com>
7436 * symmisc.c: #include "gdb_regex.h".
7437 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7439 * maint.c (maintenance_list_command): New function.
7440 (_initialize_maint_cmds): Register the above as commands.
7441 * symtab.h (maintenance_list_symtabs,
7442 maintenance_list_psymtabs): New declarations.
7443 * cli/cli-cmds.c (maintenancelistlist): New variable.
7444 (init_cmd_lists): Initialize it.
7445 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7446 * gdbcmd.h (maintenancelistlist): New declaration.
7447 * Makefile.in (symmisc.o): Update dependencies.
7449 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7451 * s390-nat.c: Include asm/types.h for addr_t.
7453 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7455 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7456 actually incoming type.
7458 2003-04-13 Andrew Cagney <cagney@redhat.com>
7460 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7461 get_next_frame and get_frame_saved_regs.
7463 2003-04-13 Andrew Cagney <cagney@redhat.com>
7465 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7466 of gdbarch_num_regs.
7468 2003-04-13 Andrew Cagney <cagney@redhat.com>
7470 * frame.h: Mention what replaced what in "struct frame_info".
7471 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7472 deprecated_update_frame_base_hack and
7473 deprecated_update_frame_pc_hack.
7474 * hppa-tdep.c: Ditto.
7476 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7478 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7479 to read_reg and update its comment. Remove regnum member.
7480 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7481 Don't call read_reg when setting in_reg. Call read_reg to get
7482 the frame base if it's in a register. Return the register number
7483 on the stack instead of in the context. Remove extra arguments
7485 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7486 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7487 the register number on the expression stack.
7488 (needs_frame_read_reg): Remove extra arguments.
7490 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7492 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7494 (execute_stack_op): All callers updated.
7495 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7496 * dwarf2loc.c (find_location_expression): New function.
7497 (dwarf_expr_frame_base): Call it.
7498 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7499 (dwarf2_tracepoint_var_ref): New function, broken out from
7500 locexpr_tracepoint_var_ref.
7501 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7503 (loclist_read_variable, loclist_read_needs_frame): New functions.
7504 (loclist_describe_location, loclist_tracepoint_var_ref): New
7506 (dwarf2_loclist_funcs): New struct location_funcs.
7507 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7508 (struct dwarf2_locexpr_baton): Add comments.
7509 (dwarf2_loclist_funcs): New extern.
7510 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7511 base_address and base_known.
7512 (dwarf_loc_buffer): New variable.
7513 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7514 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7515 (dwarf2_has_info): Initialize dwarf_loc_offset.
7516 (dwarf2_build_psymtabs): Read in .debug_loc.
7517 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7519 (psymtab_to_symtab_1): Likewise. Move base address calculation
7521 (dwarf2_get_pc_bounds): ... here. Use the base address from
7523 (dwarf2_symbol_mark_computed): Handle location lists.
7525 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7527 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7528 if the linkage name demangled successfully.
7530 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7532 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7533 disassmbly_flavour): Removed.
7535 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7537 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7539 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7541 2003-04-12 Andrew Cagney <cagney@redhat.com>
7543 * frame.h (struct frame_info): Move definition from here ...
7544 * frame.c (struct frame_info): ... to here.
7546 2003-04-12 Andrew Cagney <cagney@redhat.com>
7548 * gdbthread.h (save_infrun_state): Delete parameter
7550 (struct thread_info): Delete field "prev_func_start".
7551 (load_infrun_state): Ditto.
7552 * thread.c (load_infrun_state, save_infrun_state): Update.
7553 * infrun.c (prev_func_start): Delete variable.
7554 (context_switch, init_wait_for_inferior): Update.
7555 (stop_stepping, keep_going): Update.
7557 2003-04-12 Andrew Cagney <cagney@redhat.com>
7559 * gdbarch.sh: Add missing opaque declarations.
7560 * gdbarch.h: Regnerate.
7561 * symtab.h: Add missing opaque declarations.
7562 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7563 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7564 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7565 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7566 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7567 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7568 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7569 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7570 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7571 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7572 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7573 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7574 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7576 2003-04-11 Andrew Cagney <cagney@redhat.com>
7578 * frame.c (get_frame_id): Return this frame's "id".
7579 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7581 (legacy_saved_regs_this_id): Replace function body with
7583 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7584 FRAME_OBSTACK_ZALLOC.
7585 (create_new_frame): Mark the frame ID as valid.
7587 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7589 * Makefile.in (libbfd_h): Added missing setting.
7590 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7591 according to the selected ABI.
7593 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7595 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7597 2003-04-11 Andrew Cagney <cagney@redhat.com>
7599 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7600 SAVED_PC_AFTER_CALL.
7601 * gdbarch.h, gdbarch.c: Regenerate.
7602 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7603 * x86-64-tdep.c (x86_64_init_abi): Update.
7604 * vax-tdep.c (vax_gdbarch_init): Update.
7605 * v850-tdep.c (v850_gdbarch_init): Update.
7606 * sparc-tdep.c (sparc_gdbarch_init): Update.
7607 * sh-tdep.c (sh_gdbarch_init): Update.
7608 * s390-tdep.c (s390_gdbarch_init): Update.
7609 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7610 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7611 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7612 * mips-tdep.c (mips_gdbarch_init): Update.
7613 * mcore-tdep.c (mcore_gdbarch_init): Update.
7614 * m68k-tdep.c (m68k_gdbarch_init): Update.
7615 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7616 * ia64-tdep.c (ia64_gdbarch_init): Update.
7617 (ia64_saved_pc_after_call): Update declaration.
7618 * i386ly-tdep.c (i386lynx_init_abi): Update.
7619 * i386-tdep.c (i386_gdbarch_init): Update.
7620 * hppa-tdep.c (hppa_gdbarch_init): Update.
7621 * h8300-tdep.c (h8300_gdbarch_init): Update.
7622 * frv-tdep.c (frv_gdbarch_init): Update.
7623 * cris-tdep.c (cris_gdbarch_init): Update.
7624 * avr-tdep.c (avr_gdbarch_init): Update.
7625 * arm-tdep.c (arm_gdbarch_init): Update.
7626 * alpha-tdep.c (alpha_gdbarch_init): Update.
7627 * ns32knbsd-nat.c (frame_num_args): Update.
7628 * ns32k-tdep.c (umax_frame_num_args): Update.
7629 * mips-tdep.c (mips_init_frame_pc_first): Update.
7630 * infrun.c (step_over_function): Update.
7631 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7632 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7633 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7634 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7635 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7636 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7637 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7638 * arch-utils.c (init_frame_pc_default): Update.
7639 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7640 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7643 2003-04-11 Andrew Cagney <cagney@redhat.com>
7645 * i387-tdep.c: Update copyright.
7646 (i387_to_double): Delete function.
7647 (double_to_i387): Delete function.
7649 2003-04-10 Andrew Cagney <cagney@redhat.com>
7651 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7652 frame's function's address. Simplify.
7653 (d10v_frame_unwind_cache): Check that the frame's function is
7656 2003-04-10 Jim Blandy <jimb@redhat.com>
7658 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7659 call to set_gdbarch_deprecated_push_arguments.
7661 2003-04-10 Andrew Cagney <cagney@redhat.com>
7663 * frame.c (fprint_frame_id): New function.
7664 (fprint_frame_type, fprint_frame): New function.
7665 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7666 (create_sentinel_frame, get_frame_id): Ditto.
7667 (frame_id_p, frame_id_eq): Ditto.
7668 (frame_id_inner, create_new_frame): Ditto.
7669 (legacy_get_prev_frame, get_prev_frame): Ditto.
7670 (deprecated_update_frame_pc_hack): Ditto.
7671 (frame_register_unwind): Ditto.
7672 (deprecated_update_frame_base_hack): Ditto.
7674 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7676 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7677 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7678 frame_chain function.
7679 * Makefile.in: Add dependencies due to above change.
7681 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7683 * blockframe.c (legacy_frame_chain_valid): Move call to
7684 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7687 2003-04-09 Andrew Cagney <cagney@redhat.com>
7689 * frame.h (struct frame_id): Replace "pc" and "base" with
7690 "stack_addr" and "code_addr". Update comments.
7691 (frame_id_build): Update parameter names and comment.
7692 (struct frame_info): Replace "id_p" and "id" with "this_id".
7693 * dummy-frame.c (dummy_frame_this_id): Update.
7694 * breakpoint.c (print_one_breakpoint): Update.
7695 * frame.c (get_frame_id): Update.
7696 (get_frame_base, frame_id_build): Update.
7697 (create_sentinel_frame, legacy_get_prev_frame): Update.
7698 (deprecated_update_frame_base_hack): Update.
7699 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7700 (frame_id_inner): Ditto.
7702 2003-04-09 Andrew Cagney <cagney@redhat.com>
7704 * defs.h (gdb_print_host_address): Make "addr" parameter a
7706 * utils.c (gdb_print_host_address): Update.
7708 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7710 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7711 register number for R0 is 0.
7713 2003-04-09 J. Brobecker <brobecker@gnat.com>
7715 * frame.h (struct gdbarch): Add opaque structure definition
7716 to avoid a compilation warning on LynxOS 4.0.
7718 2003-04-09 Andrew Cagney <cagney@redhat.com>
7720 * frame.h (struct frame_info): Delete field "pc". Replace
7721 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7723 * frame.c (frame_pc_unwind): Update.
7724 (create_sentinel_frame): Do not set "pc".
7725 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7726 (get_frame_pc): Call frame_pc_unwind.
7727 (deprecated_update_frame_pc_hack): Update.
7728 (create_new_frame): Use "pc" not "->pc".
7730 2003-04-09 Andrew Cagney <cagney@redhat.com>
7732 * frame.c (get_frame_id): Eliminate code updating "frame".
7733 (legacy_get_prev_frame): Ditto.
7734 (get_frame_base): Return id.base directly.
7735 (deprecated_update_frame_base_hack): Update "id.base".
7736 * frame.h (struct frame_info): Delete field "frame".
7738 2003-04-09 Andrew Cagney <cagney@redhat.com>
7740 * NEWS: Mention that the "Sequent family" is obsolete.
7741 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7742 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7743 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7744 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7745 * config/i386/tm-ptx4.h: Obsolete file.
7746 * config/i386/tm-ptx.h: Obsolete file.
7747 * symm-tdep.c: Obsolete file.
7748 * config/i386/symmetry.mt: Obsolete file.
7749 * config/i386/tm-symmetry.h: Obsolete file.
7750 * symm-nat.c: Obsolete file.
7751 * config/i386/nm-symmetry.h: Obsolete file.
7752 * config/i386/xm-symmetry.h: Obsolete file.
7753 * config/i386/symmetry.mh: Obsolete file.
7754 * config/i386/nm-ptx4.h: Obsolete file.
7755 * config/i386/ptx4.mh: Obsolete file.
7756 * config/i386/ptx.mt: Obsolete file.
7757 * config/i386/ptx.mh: Obsolete file.
7758 * config/i386/xm-ptx4.h: Obsolete file.
7759 * config/i386/xm-ptx.h: Obsolete file.
7761 2003-04-09 Andrew Cagney <cagney@redhat.com>
7763 Obsolete mips*-*-mach3*.
7764 * NEWS: Mention that mips*-*-mach3* is obsolete.
7765 * m3-nat.c: Obsolete file.
7766 * config/nm-m3.h: Obsolete file.
7767 * config/mips/tm-mipsm3.h: Obsolete file.
7768 * config/mips/mipsm3.mt: Obsolete file.
7769 * config/mips/mipsm3.mh: Obsolete file.
7770 * config/mips/xm-mipsm3.h: Obsolete file.
7771 * mipsm3-nat.c: Obsolete file.
7772 * configure.host: Obsolete mips-dec-mach3*.
7773 * configure.tgt: Obsolete mips*-*-mach3*.
7775 2003-04-09 Andrew Cagney <cagney@redhat.com>
7777 * doublest.h: Update copyright.
7778 (deprecated_store_floating, deprecated_extract_floating): Rename
7779 store_floating and extract_floating. Update comments.
7780 * doublest.c: Update copyright.
7781 (extract_floating_by_length): Replace extract_floating.
7782 (store_floating_by_length): Replace store_floating.
7783 (deprecated_extract_floating): New function.
7784 (deprecated_store_floating): New function.
7785 (extract_typed_floating): Call extract_floating_by_length.
7786 (store_typed_floating): Call store_floating_by_length.
7787 * x86-64-tdep.c (x86_64_store_return_value): Update.
7788 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7789 (sh64_extract_return_value): Update.
7790 (sh_sh4_register_convert_to_virtual): Update.
7791 (sh_sh64_register_convert_to_virtual): Update.
7792 (sh_sh4_register_convert_to_raw): Update.
7793 (sh_sh64_register_convert_to_raw): Update.
7794 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7795 (rs6000_register_convert_to_raw): Update.
7796 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7797 (ia64_register_convert_to_raw): Update.
7798 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7799 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7800 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7801 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7802 (alpha_register_convert_to_raw): Update.
7804 2003-04-08 Andrew Cagney <cagney@redhat.com>
7806 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7807 * gdbarch.h, gdbarch.c: Re-generate.
7808 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7809 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7810 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7811 conditionally, use frame_pc_unwind as an alternative. Add
7813 * arch-utils.c (init_frame_pc_default): Only call
7814 SAVED_PC_AFTER_CALL when available.
7816 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7818 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7819 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7820 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7821 (start_remote): Ditto.
7822 (handle_inferior_event): Ditto.
7823 (save_inferior_status): Ditto.
7824 (restore_inferior_status): Ditto.
7825 * infcmd.c (attach_command): Ditto.
7826 * fork-child.c (startup_inferior): Ditto.
7827 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7828 * alpha-tdep.c (heuristic_proc_start): Ditto.
7829 * mips-tdep.c (heuristic_proc_start): Ditto.
7830 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7831 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7832 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7833 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7834 * remote-vx.c (vx_create_inferior): Ditto.
7836 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7838 * infrun.c (stop_soon_quietly): Make it an enum, to better
7839 override the default behavior of handle_inferior_event.
7840 (clear_proceed_status): Update uses of stop_soon_quietly to
7841 reflect that it is now an enum.
7842 (start_remote): Ditto.
7843 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7844 is set to handle the new GNU/Linux kernel behavior for
7845 attach/sigstop. Update uses of stop_soon_quietly.
7846 * inferior.h (enum stop_kind): New enum.
7847 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7848 Reset normal handle_inferior_event behavior, afterwards.
7849 * fork-child.c (startup_inferior): Update.
7850 * alpha-tdep.c (heuristic_proc_start): Update.
7851 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7852 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7853 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7854 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7855 * remote-vx.c (vx_create_inferior): Update.
7856 * mips-tdep.c (heuristic_proc_start): Update.
7858 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7860 * disasm.c (dump_insns): Move variables inside loop, or they will
7861 be freed more than once, causing wild memory corruptions.
7862 (gdb_disassembly): Look for the substring "-thread",
7863 instead of "-threads" in the target name, to make sure to find
7864 the 'multi-thread' target. Also, make sure we do the right thing
7865 with the "core" target.
7867 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7869 * mips-tdep.c (mips_print_fp_register): New function, created from
7870 do_fp_register_row(). Registers are now (also) printed as hex.
7871 Only one register is printed per row.
7872 (mips_print_register, do_fp_register_row): Print floating point
7873 registers with mips_print_fp_register().
7875 2003-04-06 Andrew Cagney <cagney@redhat.com>
7877 * valprint.h (inspect_it): Add extern declaration.
7878 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7879 (selectors_info, classes_info): Ditto.
7880 (find_objc_msgcall): Fix indentation.
7881 (objc_printstr): Delete extern declarations.
7883 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7885 2003-04-06 Andrew Cagney <cagney@redhat.com>
7887 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7889 * frame.c (legacy_saved_regs_this_id): Update.
7890 (legacy_get_prev_frame): Update.
7891 * xstormy16-tdep.c: Update comment.
7892 * sparc-tdep.c (sparc_frame_chain): Update comment.
7893 * blockframe.c (legacy_frame_chain_valid): Update.
7895 2003-04-06 Andrew Cagney <cagney@redhat.com>
7897 * valprint.c (val_print_type_code_int): Delete #ifdef
7898 PRINT_TYPELESS_INTEGER code.
7900 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7901 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7902 multi-arch definition.
7903 * gdbarch.h: Re-generate.
7905 2003-04-05 Andrew Cagney <cagney@redhat.com>
7907 Eliminate FRAME_FIND_SAVED_REGS.
7908 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7909 Change FSR parameter to a pointer.
7910 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7911 Assume FSR parameter is a pointer.
7912 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7914 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7915 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7916 saved_regs a pointer.
7917 (hppa_frame_saved_pc): Ditto.
7918 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7919 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7921 (restore_pc_queue): Make fsr a pointer.
7922 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7923 (hppa_frame_chain): Make saved_regs a pointer, call
7924 hppa_frame_init_saved_regs.
7925 * sparc-tdep.c: Include "gdb_assert.h".
7926 (sparc_frame_find_saved_regs): Replace internal_error with
7928 * remote-vxsparc.c (vx_read_register): Delete reference to
7929 FRAME_FIND_SAVED_REGS.
7930 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7931 * gdbarch.h: Regenerate.
7932 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7933 (deprecated_get_frame_saved_regs): Delete declaration.
7934 (struct frame_saved_regs): Delete definition.
7935 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7936 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7937 (hppa_frame_find_saved_regs): Delete declaration.
7938 (FRAME_FIND_SAVED_REGS): Delete macro.
7939 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7940 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7941 FRAME_FIND_SAVED_REGS in comment.
7943 2003-04-05 Andrew Cagney <cagney@redhat.com>
7945 * frame.c (frame_func_unwind, get_frame_func): New functions.
7946 * frame.h (get_frame_func, frame_func_unwind): Declare.
7947 (struct frame_info): Add field "prev_func" for caching the
7948 previous frame's function address.
7949 * arm-tdep.c (arm_frameless_function_invocation): Combine
7950 get_pc_function_start and get_frame_pc into get_frame_func.
7951 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7952 (sh64_nofp_frame_init_saved_regs): Ditto.
7953 * s390-tdep.c (s390_function_start): Ditto.
7954 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7955 (rs6000_frameless_function_invocation): Ditto.
7956 (rs6000_frame_saved_pc): Ditto.
7957 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7958 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7959 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7960 (i386_frame_init_saved_regs): Ditto.
7961 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7962 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7963 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7964 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7965 * blockframe.c (frameless_look_for_prologue): Ditto.
7967 2003-04-05 Andrew Cagney <cagney@redhat.com>
7969 * frame.c (legacy_get_prev_frame): Link prev to next at the
7970 function start. Update comments.
7972 2003-04-05 Andrew Cagney <cagney@redhat.com>
7974 * frame.c (get_frame_id): Update comment.
7975 (legacy_get_prev_frame): Update comment.
7976 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7977 * gdbarch.h: Regenerate.
7978 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7979 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7981 2003-04-05 Andrew Cagney <cagney@redhat.com>
7983 * stack.c (print_frame_info): Use get_frame_pc.
7985 2003-04-04 Andrew Cagney <cagney@redhat.com>
7987 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7988 the frame's type from the unwinder.
7989 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7990 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7991 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7992 (get_frame_base_address): Use get_frame_type.
7993 (get_frame_locals_address, get_frame_args_address): Ditto.
7994 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7995 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7996 (struct frame_info): Add comment explaining why the frame contains
7998 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7999 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8000 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8002 * frame-unwind.h: Include "frame.h".
8003 (struct frame_unwind): Add "type" field.
8004 * Makefile.in (frame_unwind_h): Add $(frame_h).
8006 2003-04-04 Andrew Cagney <cagney@redhat.com>
8008 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8009 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8010 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8012 (d10v_unwind_dummy_id): Use frame_id_build.
8013 * frame.c (find_frame_sal): Use get_frame_pc.
8014 (create_new_frame): Use deprecated_update_frame_pc_hack and
8015 deprecated_update_frame_base_hack.
8016 (create_sentinel_frame): Add comment about ->pc going away.
8017 (get_prev_frame): Add comment about ->pc going away.
8018 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8019 frame_id_build, deprecated_update_frame_pc_hack and
8020 deprecated_update_frame_base_hack.
8021 (select_frame): Use get_frame_pc.
8022 (legacy_saved_regs_this_id): Use frame_id_build.
8024 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8026 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8027 signed integer case.
8028 (classify_argument): Handle enumerations and references.
8030 2003-04-04 Andrew Cagney <cagney@redhat.com>
8032 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8035 2003-04-01 Adam Fedor <fedor@gnu.org>
8037 * gdb/objc-lang.c (selectors_info): Replace calls to
8038 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8039 SYMBOL_NATURAL_NAME.
8040 (classes_info, find_methods): Likewise.
8042 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8044 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8045 ``mach'' to the value determined by bfd_default_set_arch_mach().
8047 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8049 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8050 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8051 (mi-cmd-file.o): Update dependencies.
8053 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8055 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8056 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8058 2003-04-01 Adam Fedor <fedor@gnu.org>
8060 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8061 * language.h (struct language_defn): Add la_demangle.
8062 (language_demangle): Declare.
8063 * language.c (language_demangle): New function.
8064 (unk_lang_demangle): Likewise.
8065 (unknown_language_defn, auto_language_defn, local_language_defn):
8066 Add ukn_lang_demangle.
8067 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8068 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8069 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8070 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8071 * jv-lang.c (java_demangle): New function
8072 (java_language_defn): Use it for la_demangle element.
8073 * objc-lang.c (objc_demangle): Add options argument
8074 (objc_language_defn): Use objc_demangle for la_demangle element.
8075 * maint.c (maintenance_demangle): Replace switch with
8076 call to language_demangle.
8077 * utils.c (fprintf_symbol_filtered): Likewise.
8079 2003-04-01 Andrew Cagney <cagney@redhat.com>
8081 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8082 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8083 PRINT_TYPELESS_INTEGER.
8084 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8085 PUSH_RETURN_ADDRESS.
8087 2003-04-01 Andrew Cagney <cagney@redhat.com>
8089 * Makefile.in (d10v-tdep.o): Update dependencies.
8090 * d10v-tdep.c: Include "frame-base.h".
8091 (d10v_frame_unwind): Make constant.
8092 (d10v_frame_base_address): New function.
8093 (d10v_frame_base): New variable.
8094 (d10v_gdbarch_init): Set frame_base default.
8095 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8097 (d10v_frame_unwind_cache): Set and use "prev_sp".
8098 (d10v_frame_this_id): Use the previous frame's inner most stack
8099 address and this frame's func address for the frame ID. Use
8100 frame_id_build. Don't analyze beyond the current instruction.
8102 2003-04-01 Andrew Cagney <cagney@redhat.com>
8104 * frame.h (get_frame_locals_address, get_frame_args_address):
8105 Refer to the base address, instead of the address of the first
8108 2003-04-01 Andrew Cagney <cagney@redhat.com>
8110 Add frame debug info addresses:
8111 * frame-base.c: New file.
8112 * frame-base.h: New file.
8113 * frame.h (struct frame_base): Add opaque declaration.
8114 (get_frame_base): Update comment.
8115 (get_frame_base_address): Declare.
8116 (get_frame_locals_address): Declare.
8117 (get_frame_args_address): Declare.
8118 (struct frame_info): Add "base" and "base_cache". Update
8119 comments on the unwinder.
8120 * frame.c: Include "frame-base.h".
8121 (get_frame_locals_address): New function.
8122 (get_frame_base_address): New function.
8123 (get_frame_args_address): New function.
8124 * findvar.c (read_var_value): Use get_frame_locals_address and
8125 get_frame_args_address.
8126 * stack.c (frame_info): Use get_frame_locals_address and
8127 get_frame_args_address.
8128 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8129 moved to "frame-base.c".
8130 * printcmd.c (print_frame_nameless_args): Ditto.
8131 * symtab.h (address_class): Update comments.
8132 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8133 get_frame_base_address.
8134 * dwarf2expr.c (execute_stack_op): Ditto.
8135 * Makefile.in (frame_base_h): Define.
8136 (frame.o): Update dependencies.
8137 (frame-base.o): Add dependencies.
8138 (SFILES): Add frame-base.c.
8139 (COMMON_OBS): Add frame-base.o.
8141 2003-04-01 Andrew Cagney <cagney@redhat.com>
8143 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8144 CALL_DUMMY_LENGTH): Ditto.
8145 * gdbarch.c: Re-generate.
8146 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8147 (CALL_DUMMY_LENGTH): Delete macro.
8148 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8149 * arm-tdep.c (arm_gdbarch_init): Ditto.
8150 * avr-tdep.c (avr_gdbarch_init): Ditto.
8151 * cris-tdep.c (cris_gdbarch_init): Ditto.
8152 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8153 * frv-tdep.c (frv_gdbarch_init): Ditto.
8154 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8155 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8156 * i386-tdep.c (i386_gdbarch_init): Ditto.
8157 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8158 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8159 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8160 * mips-tdep.c (mips_gdbarch_init): Ditto.
8161 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8162 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8163 * s390-tdep.c (s390_gdbarch_init): Ditto.
8164 * sh-tdep.c (sh_gdbarch_init): Ditto.
8165 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8166 * v850-tdep.c (v850_gdbarch_init): Ditto.
8167 * vax-tdep.c (vax_gdbarch_init): Ditto.
8168 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8170 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8172 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8174 2003-04-01 Andrew Cagney <cagney@redhat.com>
8176 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8177 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8178 * gdbarch.h, gdbarch.c: Re-generate.
8179 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8180 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8181 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8182 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8183 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8184 * infcmd.c (run_stack_dummy): Simplify assuming
8185 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8186 * infrun.c (handle_inferior_event): Ditto.
8187 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8188 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8189 * arm-tdep.c (arm_gdbarch_init): Ditto.
8190 * avr-tdep.c (avr_gdbarch_init): Ditto.
8191 * cris-tdep.c (cris_gdbarch_init): Ditto.
8192 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8193 * frv-tdep.c (frv_gdbarch_init): Ditto.
8194 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8195 * i386-tdep.c (i386_gdbarch_init): Ditto.
8196 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8197 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8198 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8199 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8200 * mips-tdep.c (mips_gdbarch_init): Ditto.
8201 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8202 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8203 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8204 * s390-tdep.c (s390_gdbarch_init): Ditto.
8205 * sh-tdep.c (sh_gdbarch_init): Ditto.
8206 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8207 * v850-tdep.c (v850_gdbarch_init): Ditto.
8208 * vax-tdep.c (vax_gdbarch_init): Ditto.
8209 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8211 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8213 * symfile.c (symfile_relocate_debug_section): Update call to
8214 bfd_simple_get_relocated_section_contents.
8216 2003-03-31 Andrew Cagney <cagney@redhat.com>
8218 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8219 * gdbarch.h, gdbarch.c: Regenerate.
8220 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8221 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8223 * frame.h (generic_fix_call_dummy): Delete declaration.
8224 * dummy-frame.h: Update comment.
8225 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8226 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8228 * sh-tdep.c (sh_gdbarch_init): Ditto.
8229 * s390-tdep.c (s390_gdbarch_init): Ditto.
8230 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8231 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8232 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8233 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8234 * i386-tdep.c (i386_gdbarch_init): Ditto.
8235 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8236 * frv-tdep.c (frv_gdbarch_init): Ditto.
8237 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8238 * cris-tdep.c (cris_gdbarch_init): Ditto.
8239 * avr-tdep.c (avr_gdbarch_init): Ditto.
8240 * arm-tdep.c (arm_gdbarch_init): Ditto.
8242 2003-03-31 J. Brobecker <brobecker@gnat.com>
8244 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8245 (INIT_FRAME_AP): Likewise.
8246 (EXTRA_FRAME_INFO): Likewise.
8248 2003-03-31 Andrew Cagney <cagney@redhat.com>
8250 * gdbarch.sh: Include "symfile.h".
8251 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8252 * gdbarch.h, gdbarch.c: Re-generate.
8253 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8254 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8255 call_dummy_address, the default is at entry_point_address.
8256 * v850-tdep.c (v850_gdbarch_init): Ditto.
8257 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8258 * sh-tdep.c (sh_gdbarch_init): Ditto.
8259 * s390-tdep.c (s390_gdbarch_init): Ditto.
8260 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8261 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8262 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8263 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8264 * i386-tdep.c (i386_gdbarch_init): Ditto.
8265 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8266 * frv-tdep.c (frv_gdbarch_init): Ditto.
8267 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8268 * cris-tdep.c (cris_gdbarch_init): Ditto.
8269 * arm-tdep.c (arm_gdbarch_init): Ditto.
8271 2003-03-31 Andrew Cagney <cagney@redhat.com>
8273 * gdbarch.sh (CALL_DUMMY_P): Delete.
8274 * gdbarch.h, gdbarch.c: Re-generate.
8275 * inferior.h (CALL_DUMMY_P): Delete macro.
8276 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8277 * vax-tdep.c (vax_gdbarch_init): Update.
8278 * v850-tdep.c (v850_gdbarch_init): Update.
8279 * sparc-tdep.c (sparc_gdbarch_init): Update.
8280 * sh-tdep.c (sh_gdbarch_init): Update.
8281 * s390-tdep.c (s390_gdbarch_init): Update.
8282 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8283 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8284 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8285 * mips-tdep.c (mips_gdbarch_init): Update.
8286 * mcore-tdep.c (mcore_gdbarch_init): Update.
8287 * m68k-tdep.c (m68k_gdbarch_init): Update.
8288 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8289 * ia64-tdep.c (ia64_gdbarch_init): Update.
8290 * i386-tdep.c (i386_gdbarch_init): Update.
8291 * h8300-tdep.c (h8300_gdbarch_init): Update.
8292 * frv-tdep.c (frv_gdbarch_init): Update.
8293 * d10v-tdep.c (d10v_gdbarch_init): Update.
8294 * cris-tdep.c (cris_gdbarch_init): Update.
8295 * breakpoint.c (deprecated_frame_in_dummy): Update.
8296 * avr-tdep.c (avr_gdbarch_init): Update.
8297 * alpha-tdep.c (alpha_gdbarch_init): Update.
8298 * arm-tdep.c (arm_gdbarch_init): Update.
8299 * dummy-frame.c (dummy_frame_this_id): Update comments.
8300 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8301 * frame.c (legacy_get_prev_frame): Ditto.
8302 * valops.c (call_function_by_hand): Delete function.
8303 (hand_function_call): Rename to call_function_by_hand
8305 2003-03-30 Andrew Cagney <cagney@redhat.com>
8307 2002-11-10 Klee Dienes <kdienes@apple.com>
8308 * value.h (struct value): Update comment.
8310 2003-03-30 Andrew Cagney <cagney@redhat.com>
8312 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8314 (d10v_gdbarch_init): Do not set fp_regnum.
8316 * frame.c (get_frame_base): Force ID initialization.
8317 (get_prev_frame): Move computation of the frame ID from here ...
8318 (get_frame_id): ... to here.
8319 (legacy_get_prev_frame): Mark the frame ID as valid.
8320 * frame.h (struct frame_info): Add field "id_p".
8322 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8324 * i386-tdep.c (i386_store_struct_return): Removed.
8325 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8327 2003-03-30 Andrew Cagney <cagney@redhat.com>
8329 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8330 * gdbarch.h, gdbarch.c: Regenerate.
8331 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8332 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8333 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8334 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8335 * i386-tdep.c (i386_gdbarch_init): Ditto.
8336 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8337 * cris-tdep.c (cris_gdbarch_init): Ditto.
8338 * vax-tdep.c (vax_gdbarch_init): Ditto.
8339 * s390-tdep.c (s390_gdbarch_init): Ditto.
8340 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8341 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8342 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8343 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8344 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8345 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8346 * sparc-tdep.c (sparc_gdbarch_init): Update.
8347 * sh-tdep.c (sh_gdbarch_init): Update.
8348 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8349 * mips-tdep.c (mips_gdbarch_init): Update.
8350 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8351 * ia64-tdep.c (ia64_gdbarch_init): Update.
8352 * frv-tdep.c (frv_gdbarch_init): Update.
8353 * avr-tdep.c (avr_gdbarch_init): Update.
8354 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8355 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8356 instead of when push_dummy_call is not available.
8358 2003-03-30 Andrew Cagney <cagney@redhat.com>
8360 * infttrace.c: Include "gdbthread.h".
8361 (parent_attach_all): Fix function signature.
8362 (call_ptrace): Update call.
8363 * Makefile.in (infttrace.o): Update dependencies.
8365 2003-03-30 Andrew Cagney <cagney@redhat.com>
8367 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8368 PUSH_RETURN_ADDRESS.
8369 * gdbarch.h, gdbarch.c: Regenerate.
8370 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8371 * x86-64-tdep.c (x86_64_init_abi): Update.
8372 * v850-tdep.c (v850_gdbarch_init): Update.
8373 * sparc-tdep.c (sparc_gdbarch_init): Update.
8374 * sh-tdep.c (sh_gdbarch_init): Update.
8375 * s390-tdep.c (s390_gdbarch_init): Update.
8376 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8377 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8378 * mips-tdep.c (mips_gdbarch_init): Update.
8379 * mcore-tdep.c (mcore_gdbarch_init): Update.
8380 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8381 * ia64-tdep.c (ia64_gdbarch_init): Update.
8382 * i386-tdep.c (i386_gdbarch_init): Update.
8383 * h8300-tdep.c (h8300_gdbarch_init): Update.
8384 * frv-tdep.c (frv_gdbarch_init): Update.
8385 * cris-tdep.c (cris_gdbarch_init): Update.
8386 * avr-tdep.c (avr_gdbarch_init): Update.
8387 * arm-tdep.c (arm_gdbarch_init): Update.
8388 * valops.c (hand_function_call): Update.
8390 2003-03-29 Andrew Cagney <cagney@redhat.com>
8392 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8393 sizeof_call_dummy_words.
8394 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8396 * gdbarch.h: Regenerate.
8398 2003-03-29 Andrew Cagney <cagney@redhat.com>
8400 * infttrace.h: New file.
8401 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8402 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8403 (hpread_read_doc_function_type): Detect an initialized type1.
8404 (hpread_quick_traverse): Initialize mod_name_string.
8405 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8406 (som_solib_get_solib_by_pc): Declare.
8407 (so_lib_thread_start_addr): Declare.
8408 (no_shared_libraries): Declare.
8409 * somread.c (init_import_symbols): Make static. Add forward
8411 * config/pa/nm-hppah.h: Include "infttrace.h" for
8413 (hppa_insert_hw_watchpoint): Declare.
8414 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8415 * hppah-nat.c: Include "gdb_string.h".
8416 (parent_attach_all): Delete extern declaration, moved to
8418 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8420 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8421 * Makefile.in (infttrace_h): Define.
8422 (hpread.o): Update dependencies.
8423 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8424 * hppa-hpux-tdep.c: Include "gdb_string.h".
8425 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8426 * infrun.c (handle_inferior_event): Always initialize
8427 stepped_after_stopped_by_watchpoint. Add default and remove
8428 fallthrough in switch statement.
8429 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8431 (hppa_remove_hw_watchpoint): Ditto.
8433 2003-03-29 Andrew Cagney <cagney@redhat.com>
8435 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8438 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8440 * arm-tdep.c (arm_push_arguments): Delete.
8441 (struct stack_item): New type.
8442 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8443 (arm_store_struct_return): Delte.
8444 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8445 arm_push_arguments or arm_store_struct_return.
8447 2003-03-28 Andrew Cagney <cagney@redhat.com>
8449 * Makefile.in (d10v-tdep.o): Update dependencies.
8450 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8451 * d10v-tdep.c: Include "remote.h".
8452 (target_resume_hook): Delete extern declaration.
8453 (target_wait_loop_hook): Ditto.
8454 (tdisassemble_command): Eliminate assignment in "if" conditional.
8455 (d10v_ts2_register_sim_regno): Eliminate call to
8456 legacy_register_sim_regno.
8457 (d10v_ts3_register_sim_regno): Ditto.
8459 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8461 * thread.c: Reindented.
8463 * linux-proc.c: Ditto.
8465 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8467 * MAINTAINERS (write after approval): Add myself.
8469 2003-03-27 Theodore A. Roth <troth@openavr.org>
8471 * objc-exp.y: Add missing semi-colons.
8473 2003-03-27 Andrew Cagney <cagney@redhat.com>
8475 * regcache.c (write_sp): Delete function and references.
8476 * inferior.h (write_sp): Delete declaration.
8477 * valops.c (hand_function_call): Replace write_sp with
8479 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8480 (sparc_pop_frame): Ditto.
8482 2003-03-27 Andrew Cagney <cagney@redhat.com>
8484 * NEWS: Mention removal of support for hppa*-*-bsd* and
8485 hppa*-*-osf* natives, and hppa*-*-pro* target.
8486 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8487 * config/pa/xm-pa.h: Obsolete file.
8488 * config/pa/xm-hppab.h: Obsolete file.
8489 * config/pa/nm-hppab.h: Obsolete file.
8490 * config/pa/tm-hppab.h: Obsolete file.
8491 * config/pa/tm-hppao.h: Obsolete file.
8492 * config/pa/nm-hppao.h: Obsolete file.
8493 * config/pa/tm-pro.h: Obsolete file.
8494 * config/pa/hppaosf.mt: Obsolete file.
8495 * config/pa/hppaosf.mh: Obsolete file.
8496 * config/pa/hppapro.mt: Obsolete file.
8497 * config/pa/hppabsd.mt: Obsolete file.
8498 * config/pa/hppabsd.mh: Obsolete file.
8499 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8500 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8503 2003-03-27 Andrew Cagney <cagney@redhat.com>
8505 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8506 push_arguments. Don't set push_return_address or write_sp.
8507 (d10v_push_dummy_call): Replace d10v_push_arguments.
8508 (d10v_push_return_address, d10v_write_sp): Delete function,
8509 handled by push_dummy_call.
8511 2003-03-26 Andrew Cagney <cagney@redhat.com>
8513 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8514 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8515 regcache and dummy_addr parameters.
8516 * gdbarch.h, gdbarch.c: Re-generate.
8517 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8518 available; assume it will handle stack alignment and return
8519 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8520 legacy_push_arguments.
8521 (legacy_push_arguments): Rename default_push_arguments.
8522 * value.h (legacy_push_arguments): Rename default_push_arguments.
8523 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8524 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8525 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8526 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8527 * config/i386/tm-symmetry.h: Update.
8528 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8529 * x86-64-tdep.c (x86_64_init_abi): Update.
8530 * v850-tdep.c (v850_gdbarch_init): Update.
8531 * sparc-tdep.c (sparc_gdbarch_init): Update.
8532 * sh-tdep.c (sh_gdbarch_init): Update.
8533 * s390-tdep.c (s390_gdbarch_init): Update.
8534 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8535 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8536 * mips-tdep.c (mips_gdbarch_init): Update.
8537 * mcore-tdep.c (mcore_gdbarch_init): Update.
8538 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8539 * ia64-tdep.c (ia64_gdbarch_init): Update.
8540 * i386-tdep.c (i386_gdbarch_init): Update.
8541 * hppa-tdep.c (hppa_gdbarch_init): Update.
8542 * h8300-tdep.c (h8300_gdbarch_init): Update.
8543 * frv-tdep.c (frv_gdbarch_init): Update.
8544 * d10v-tdep.c (d10v_gdbarch_init): Update.
8545 * cris-tdep.c (cris_gdbarch_init): Update.
8546 * avr-tdep.c (avr_gdbarch_init): Update.
8547 * arm-tdep.c (arm_gdbarch_init): Update.
8548 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8549 * alpha-tdep.c (alpha_gdbarch_init): Update.
8551 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8553 * signals/signals.c (do_target_signal_to_host): Correct realtime
8556 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8558 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8559 (struct sal_chain, map_catch_names): Remove.
8560 (catch_exception_command_1): Don't call
8561 handle_gnu_4_16_catch_command.
8563 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8565 From Mark Dettinger <dettinge@de.ibm.com>:
8566 * dwarf2cfi.c (read_2u): Increment pointer by two.
8568 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8570 * signals/signals.c: Fix typos in last change.
8572 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8574 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8575 not already defined. Use __SIGRTMIN if available.
8576 (target_signal_from_host): Remove SIGRTMIN block.
8577 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8578 the signal is within the realtime range.
8580 2003-03-25 Adam Fedor <fedor@gnu.org>
8582 * Makefile.in (infrun.o): Add $(language_h)
8583 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8584 for language specific trampolines.
8585 * language.h (struct language_defn): Add skip_trampoline.
8586 (skip_language_trampoline): Declare.
8587 * language.c (unk_lang_trampoline, skip_language_trampoline):
8589 (unknown_language_defn, auto_language_defn, local_language_defn):
8590 Add ukn_lang_trampoline.
8591 * ada-lang.c (ada_language_defn): Add NULL for language
8592 specific skip_trampoline.
8593 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8594 scm-lang.c: Likewise.
8595 * objc-lang.c (objc_skip_trampoline): New function.
8596 (objc_language_defn): Add objc_skip_trampoline.
8598 2003-03-25 Andrew Cagney <cagney@redhat.com>
8600 * frame.c (get_prev_frame): Delay validating a frame's ID -
8601 non-NULL, didn't go backwards - until an attempt to unwind it to
8604 2003-03-25 Andrew Cagney <cagney@redhat.com>
8606 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8607 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8608 * gdbarch.h, gdbarch.c: Re-generate.
8609 * config/sparc/tm-sparc.h
8610 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8611 * sparc-tdep.c (sparc_gdbarch_init): Set
8612 deprecated_extra_stack_alignment_needed.
8613 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8614 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8615 extra_stack_alignment_needed.
8616 * v850-tdep.c (v850_gdbarch_init): Ditto.
8617 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8618 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8619 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8620 * cris-tdep.c (cris_gdbarch_init): Ditto.
8621 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8622 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8624 2003-03-25 Andrew Cagney <cagney@redhat.com>
8626 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8627 STORE_STRUCT_RETURN.
8628 * gdbarch.h, gdbarch.c: Regenerate.
8629 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8630 (d10v_push_arguments): Set the struct return register.
8631 (d10v_gdbarch_init): Update.
8632 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8633 * x86-64-tdep.c (x86_64_init_abi): Update.
8634 * vax-tdep.c (vax_gdbarch_init): Update.
8635 * v850-tdep.c (v850_gdbarch_init): Update.
8636 * sparc-tdep.c (sparc_gdbarch_init): Update.
8637 * sh-tdep.c (sh_gdbarch_init): Update.
8638 * s390-tdep.c (s390_gdbarch_init): Update.
8639 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8640 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8641 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8642 * mips-tdep.c (mips_gdbarch_init): Update.
8643 * mcore-tdep.c (mcore_gdbarch_init): Update.
8644 * m68k-tdep.c (m68k_gdbarch_init): Update.
8645 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8646 * ia64-tdep.c (ia64_gdbarch_init): Update.
8647 * i386-tdep.c (i386_gdbarch_init): Update.
8648 * hppa-tdep.c (hppa_gdbarch_init): Update.
8649 * h8300-tdep.c (h8300_gdbarch_init): Update.
8650 * frv-tdep.c (frv_gdbarch_init): Update.
8651 * cris-tdep.c (cris_gdbarch_init): Update.
8652 * avr-tdep.c (avr_gdbarch_init): Update.
8653 * arm-tdep.c (arm_gdbarch_init): Update.
8654 * alpha-tdep.c (alpha_gdbarch_init): Update.
8656 2003-03-25 Andrew Cagney <cagney@redhat.com>
8658 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8659 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8660 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8661 * gdbarch.h, gdbarch.c: Regenerate.
8662 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8663 call_dummy_stack_adjust_p.
8664 * vax-tdep.c (vax_gdbarch_init): Ditto.
8665 * v850-tdep.c (v850_gdbarch_init): Ditto.
8666 * sh-tdep.c (sh_gdbarch_init): Ditto.
8667 * s390-tdep.c (s390_gdbarch_init): Ditto.
8668 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8669 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8670 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8671 * mips-tdep.c (mips_gdbarch_init): Ditto.
8672 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8673 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8674 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8675 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8676 * i386-tdep.c (i386_gdbarch_init): Ditto.
8677 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8678 * frv-tdep.c (frv_gdbarch_init): Ditto.
8679 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8680 * cris-tdep.c (cris_gdbarch_init): Ditto.
8681 * avr-tdep.c (avr_gdbarch_init): Ditto.
8682 * arm-tdep.c (arm_gdbarch_init): Ditto.
8683 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8684 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8685 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8686 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8687 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8688 call_dummy_stack_adjust_p.
8689 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8690 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8691 * sparc-tdep.c (sparc32_push_arguments): Update.
8692 * valops.c (hand_function_call): Update.
8694 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8696 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8697 set_gdbarch_char_signed.
8699 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8702 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8704 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8706 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8707 (_initialize_arm_tdep): Don't set tm_print_insn.
8709 2003-03-24 Adam Fedor <fedor@gnu.org>
8711 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8712 * objc-lang.h: Add multiple inclusion protection.
8713 (start_msglist, add_msglist, end_msglist): Additional declarations.
8715 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8717 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8718 value was renamed to ARM_FLOAT_SOFT_FPA.
8720 2003-03-23 Andrew Cagney <cagney@redhat.com>
8722 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8723 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8724 * gdbarch.h, gdbarch.c: Regenerate.
8725 * valops.c (hand_function_call): Update.
8726 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8727 * frame.c (legacy_saved_regs_this_id): Update.
8728 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8729 * dummy-frame.h: Update.
8730 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8731 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8732 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8733 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8734 * config/m68k/tm-sun3.h: Update.
8735 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8736 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8737 * x86-64-tdep.c (x86_64_init_abi): Update.
8738 * vax-tdep.c (vax_gdbarch_init): Update.
8739 * v850-tdep.c (v850_gdbarch_init): Update.
8740 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8741 * sh-tdep.c (sh_gdbarch_init): Update.
8742 * s390-tdep.c (s390_gdbarch_init): Update.
8743 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8744 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8745 (frame_get_saved_regs): Update.
8746 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8747 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8748 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8749 * mips-tdep.c (mips_gdbarch_init): Update.
8750 * mcore-tdep.c (mcore_gdbarch_init): Update.
8751 * m68k-tdep.c (m68k_gdbarch_init): Update.
8752 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8753 * ia64-tdep.c (ia64_gdbarch_init): Update.
8754 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8755 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8756 (i386_interix_back_one_frame): Update.
8757 * hppa-tdep.c (hppa_gdbarch_init): Update.
8758 (hppa_init_extra_frame_info): Update.
8759 * h8300-tdep.c (h8300_gdbarch_init): Update.
8760 * frv-tdep.c (frv_gdbarch_init): Update.
8761 * cris-tdep.c (cris_gdbarch_init): Update.
8762 * avr-tdep.c (avr_gdbarch_init): Update.
8763 * arm-tdep.c (arm_gdbarch_init): Update.
8764 * alpha-tdep.c (alpha_gdbarch_init): Update.
8766 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8768 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8769 (arm_get_fp_model): Declare.
8770 * arm-tdep.c (fp_model_strings): New string array.
8771 (arm_fp_model, current_fp_model): New variables.
8772 (arm_get_fp_model): New function.
8773 (arm_set_fp): New function.
8774 (set_fp_model_sfunc): New function.
8775 (show_fp_model): New function.
8776 (_initialize_arm_tdep): Add new command to set/show the FPU.
8777 (arm_extract_return_value): Use arm_get_fp_model.
8778 (arm_store_return_value): Likewise.
8779 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8780 to initialize the floating-point data types.
8781 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8784 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8786 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8787 the current setting of each value.
8788 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8789 new_set and new_show. Use add_setshow_cmd_full and
8790 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8791 commands and add new version as subcommands of "set/show arm".
8793 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8795 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8796 (set_arm_command, show_arm_command): New functions.
8797 (_initialize_arm_tdep): Add them.
8798 (num_disassembly_options): Renamed from num_flavor_options.
8799 (valid_disassembly_styles): Renamed from valid_flavors.
8800 (disassembly_style): Renamed from disassembly_flavor.
8801 (set_disassembly_style_sfunc): Renamed from
8802 set_disassembly_flavor_sfunc.
8803 (set_disassembly_style): Renamed from set_disassembly_flavor.
8804 (arm_othernames): Updated.
8805 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8806 command. Add "set/show arm disassembly" commands. Deprecate
8807 "othernames" command.
8809 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8811 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8812 (arm-tdep.o): Depend on elf_arm_h.
8814 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8816 * Makefile.in (coff_internal_h): Define.
8817 (arm-tdep.o): Update dependencies.
8819 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8821 * arm-tdep.c (prologue_cache): Delete.
8822 (check_prologue_cache, save_prologue_cache): Delete.
8823 (arm_scan_prologue): Don't check or update the prologue_cache.
8824 (arm_gdb_arch_init): Don't initialize it.
8825 (_initialize_arm_tdep): Likewise.
8827 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8829 * MAINTAINERS (tui): Maintainer of tui code.
8831 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8833 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8834 (i386-cygwin-tdep.o): Add dependencies.
8835 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8836 * i386-cygwin-tdep.c: New file.
8837 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8838 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8840 2003-03-20 Andrew Cagney <cagney@redhat.com>
8842 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8843 (handle_inferior_event): Remove code calling
8844 DYNAMIC_TRAMPOLINE_NEXTPC.
8846 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8847 already has a full path.
8849 * main.c (gdb_main): Return 1.
8850 (captured_main): Call error to report an invalid interpreter.
8852 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8853 * alpha-osf1-tdep.c: Include "gdb_string.h".
8855 2003-03-19 J. Brobecker <brobecker@gnat.com>
8857 Continuing work to convert the hppa targets to multiarch partial.
8859 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8860 method, now that hppa_push_dummy_frame has a conformant prototype.
8861 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8862 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8863 for the switch to multiarch partial.
8865 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8867 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8868 when iss is issNull.
8870 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8872 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8873 NUM_REGS bounds check.
8875 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8877 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8878 * mips-tdep.c (gdb_assert.h): Include.
8879 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8880 (mips_register_name): Handle integer registers explicitly. Add
8882 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8883 (mips_lsi33k_reg_names): Don't list integer registers; they're
8884 handled by mips_register_name() now.
8885 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8886 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8887 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8888 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8889 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8891 2003-03-18 Andrew Cagney <cagney@redhat.com>
8893 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8895 * gdbtypes.h (print_scalar_formatted): Update declaration.
8896 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8898 2003-03-18 J. Brobecker <brobecker@gnat.com>
8900 * infrun.c (observer.h): Add #include.
8901 (normal_stop): Add call to observer_notify_normal_stop.
8902 * Makefile.in (infrun.o): Add dependency on observer.h.
8904 2003-03-18 J. Brobecker <brobecker@gnat.com>
8906 Continuing work to convert the hppa targets to multiarch partial.
8907 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8908 parameter. Reformat comment.
8909 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8910 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8911 to match new profile.
8913 2003-03-18 J. Brobecker <brobecker@gnat.com>
8915 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8916 appear to be working in any case.
8918 2003-03-18 J. Brobecker <brobecker@gnat.com>
8920 * observer.c (observer_test_first_observer): New static variable.
8921 (observer_test_second_observer): Likewise.
8922 (observer_test_third_observer): Likewise.
8923 (observer_test_first_notification_function): New static function.
8924 (observer_test_second_notification_function): Likewise.
8925 (observer_test_third_notification_function): Likewise.
8927 2003-03-17 J. Brobecker <brobecker@gnat.com>
8929 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8930 * somsolib.c (gdb_assert.h): Likewise.
8931 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8932 (somsolib.o): Likewise.
8934 2003-03-17 Andrew Cagney <cagney@redhat.com>
8936 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8937 BFD. Simplify setting of di.endian.
8939 2003-03-17 Andrew Cagney <cagney@redhat.com>
8941 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8942 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8944 From Elena Zannoni <ezannoni@redhat.com>
8945 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8946 vector and floating-point parameters.
8947 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8949 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8951 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8953 * MAINTAINERS: Remove my name from several maintainership roles.
8955 2003-03-17 Andrew Cagney <cagney@redhat.com>
8957 Fix frame off-by-one bug.
8958 * frame-unwind.h (frame_this_id_ftype): Replace
8959 frame_unwind_id_ftype.
8960 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8961 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8962 with "prev_register".
8963 * frame-unwind.c (frame_unwind_find_by_pc): Return
8964 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8966 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8967 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8968 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8969 (dummy_frame_unwind): Update.
8970 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8971 sentinel_frame_register_unwind.
8972 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8973 (sentinel_frame_unwinder): Update.
8974 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8975 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8976 * frame.c (create_sentinel_frame): Update. Initialize
8977 "prologue_cache" instead of "unwind_cache".
8978 (frame_register_unwind): Call this frame's prev_register with the
8979 next frame and this frame's prologue cache.
8980 (get_prev_frame): Simplify. Always call prev frame's this_id with
8981 this frame and prev frame's prologue cache. Document that this
8982 call is shifted one to the left when compared to the
8983 frame_register_unwind call.
8984 (legacy_saved_regs_prev_register): Replace
8985 frame_saved_regs_register_unwind.
8986 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8987 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8988 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8989 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8990 (d10v_frame_unwind): Update.
8991 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8992 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8993 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8994 "saved_regs" with "this_saved_regs".
8996 2003-03-16 Andrew Cagney <cagney@redhat.com>
8998 * frame.c (frame_pop): Don't call target_store_registers. Fix
8999 problem reported by Mark Kettenis.
9001 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9003 * i386-tdep.c (i386_register_type): Renamed from
9004 i386_register_virtual_type. Adjust function signature.
9005 (i386_gdbarch_init): Set register_type instead of
9006 deprecated_max_register_raw_size,
9007 deprecated_max_register_virtual_size and register_virtual_type.
9009 2003-03-14 Andrew Cagney <cagney@redhat.com>
9011 * frame.c (get_prev_frame): When a legacy frame, always call
9012 legacy_get_prev_frame. Simplify unwind code using assumption that
9013 the unwinder is new.
9014 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9015 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9016 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9018 2003-03-14 Andrew Cagney <cagney@redhat.com>
9020 * frame.c (get_saved_register): Delete function.
9021 * frame.h (get_saved_register): Delete declaration.
9022 * xstormy16-tdep.c: Update comment.
9023 * regcache.h: Update comments.
9024 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9025 get_saved_register and extract_address, use
9026 frame_read_unsigned_register.
9027 (sparc_frame_saved_pc): Ditto.
9028 (sparc_get_saved_register): Instead of get_saved_register, use
9030 (sparc_pop_frame): Ditto.
9031 * findvar.c: Update comments.
9032 (value_of_register): Call frame_register instead of
9034 (value_from_register): Ditto.
9035 * config/sparc/tm-sparc.h: Update comment.
9036 * breakpoint.c: Update comment.
9038 2003-03-14 Andrew Cagney <cagney@redhat.com>
9040 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9042 * gdbarch.h, gdbarch.c: Re-generate.
9043 * frame.h: Update comments.
9044 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9045 * x86-64-tdep.c (x86_64_init_abi): Update.
9046 * sparc-tdep.c (sparc_gdbarch_init): Update.
9047 * sh-tdep.c (sh_gdbarch_init): Update.
9048 * mips-tdep.c (mips_gdbarch_init): Update.
9049 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9050 * cris-tdep.c (cris_gdbarch_init): Update.
9051 * ia64-tdep.c (ia64_gdbarch_init): Update.
9052 * frame.c (frame_register): Update.
9053 (get_saved_register): Update.
9054 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9056 2003-03-13 Andrew Cagney <cagney@redhat.com>
9058 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9059 * gdbarch.h, gdbarch.c: Regenerate.
9060 * valops.c (hand_function_call): Update comment.
9061 * stack.c (return_command): Update comment.
9062 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9063 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9064 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9065 * x86-64-tdep.c (x86_64_init_abi): Update.
9066 * vax-tdep.c (vax_gdbarch_init): Update.
9067 * v850-tdep.c (v850_gdbarch_init): Update.
9068 * sparc-tdep.c (sparc_gdbarch_init): Update.
9069 * sh-tdep.c (sh_gdbarch_init): Update.
9070 * s390-tdep.c (s390_gdbarch_init): Update.
9071 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9072 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9073 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9074 * mips-tdep.c (mips_gdbarch_init): Update.
9075 * mcore-tdep.c (mcore_gdbarch_init): Update.
9076 * m68k-tdep.c (m68k_gdbarch_init): Update.
9077 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9078 * ia64-tdep.c (ia64_gdbarch_init): Update.
9079 * i386-tdep.c (i386_gdbarch_init): Update.
9080 * hppa-tdep.c (hppa_gdbarch_init): Update.
9081 * h8300-tdep.c (h8300_gdbarch_init): Update.
9082 * frv-tdep.c (frv_gdbarch_init): Update.
9083 * cris-tdep.c (cris_gdbarch_init): Update.
9084 * avr-tdep.c (avr_gdbarch_init): Update.
9085 * arm-tdep.c (arm_gdbarch_init): Update.
9086 * alpha-tdep.c (alpha_gdbarch_init): Update.
9088 2003-03-13 Andrew Cagney <cagney@redhat.com>
9090 * frame.c (legacy_frame_p): New function.
9091 (get_prev_frame): Use legacy_frame_p.
9092 * frame.h (legacy_frame_p): Declare.
9094 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9096 * MAINTAINERS (write after approval): Alphabetically
9099 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9101 * MAINTAINERS (write after approval): Add myself.
9103 2003-03-12 Andrew Cagney <cagney@redhat.com>
9105 * frame.c (get_prev_frame): Rename the frame parameter to
9107 (get_next_frame, legacy_get_prev_frame): Ditto.
9109 2003-03-12 Andrew Cagney <cagney@redhat.com>
9111 * frame.c (get_current_frame): Check target_has_registers before
9112 checking target_has_stack.
9113 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9114 instead of deprecated_selected_frame.
9115 * findvar.c (value_of_register): Pass "frame", not
9116 deprecated_selected_frame, to value_of_builtin_reg.
9118 2003-03-12 Andrew Cagney <cagney@redhat.com>
9120 * regcache.c (regcache_cooked_write_signed): New function.
9121 (regcache_cooked_write_unsigned): New function.
9122 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9123 (regcache_cooked_read_signed): Fix regnum in range assertion.
9124 * regcache.h (regcache_cooked_write_signed): Declare.
9125 (regcache_cooked_write_unsigned): Declare.
9127 2003-03-12 Andrew Cagney <cagney@redhat.com>
9129 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9130 * gdbarch.h, gdbarch.c: Re-generate.
9131 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9132 * x86-64-tdep.h: Update.
9133 * x86-64-tdep.c (x86_64_init_abi): Update.
9134 * v850-tdep.c (v850_gdbarch_init): Update.
9135 * sparc-tdep.c (sparc_gdbarch_init): Update.
9136 * sh-tdep.c (sh_gdbarch_init): Update.
9137 * s390-tdep.c (s390_gdbarch_init): Update.
9138 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9139 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9140 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9141 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9142 * mips-tdep.c (mips_gdbarch_init): Update.
9143 * mcore-tdep.c (mcore_gdbarch_init): Update.
9144 * m68k-tdep.c (m68k_gdbarch_init): Update.
9145 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9146 * ia64-tdep.c (ia64_gdbarch_init): Update.
9147 * i386-tdep.c (i386_gdbarch_init): Update.
9148 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9149 * hppa-tdep.c (hppa_gdbarch_init): Update.
9150 * h8300-tdep.c (h8300_gdbarch_init): Update.
9151 * frv-tdep.c (frv_gdbarch_init): Update.
9152 * cris-tdep.c (cris_gdbarch_init): Update.
9153 * avr-tdep.c (avr_gdbarch_init): Update.
9154 * arm-tdep.c (arm_gdbarch_init): Update.
9155 * alpha-tdep.c (alpha_gdbarch_init): Update.
9156 * sh-tdep.c (sh_init_extra_frame_info): Update.
9157 (sh64_init_extra_frame_info): Update.
9158 * ns32knbsd-nat.c (frame_num_args): Update.
9159 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9160 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9161 (xstormy16_frame_chain_valid): Update.
9162 * vax-tdep.c (vax_saved_pc_after_call): Update.
9163 * v850-tdep.c (v850_frame_chain): Update.
9164 (v850_pop_frame): Update.
9165 (v850_init_extra_frame_info): Update.
9166 * sparc-tdep.c (setup_arbitrary_frame): Update.
9167 * ns32k-tdep.c (umax_frame_num_args): Update.
9168 * s390-tdep.c (s390_pop_frame_regular): Update.
9169 * mn10300-tdep.c (mn10300_frame_chain): Update.
9170 (mn10300_pop_frame_regular): Update.
9171 (mn10300_init_extra_frame_info): Update.
9172 * mips-tdep.c (mips_init_frame_pc_first): Update.
9173 (mips_frame_chain): Update.
9174 (mips_pop_frame): Update.
9175 * mcore-tdep.c (mcore_frame_chain): Update.
9176 (mcore_pop_frame): Update.
9177 (mcore_init_extra_frame_info): Update.
9178 * arch-utils.c (init_frame_pc_default): Update.
9179 * m68k-tdep.c (isi_frame_num_args): Update.
9180 (delta68_frame_num_args): Update.
9181 (news_frame_num_args): Update.
9182 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9183 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9184 (alpha_frame_chain): Update.
9185 (alpha_pop_frame): Update.
9186 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9187 (hppa_init_extra_frame_info): Update.
9188 (hppa_frame_chain): Update.
9189 (hppa_frame_chain_valid): Update.
9190 * cris-tdep.c (cris_init_extra_frame_info): Update.
9191 * avr-tdep.c (avr_init_extra_frame_info): Update.
9192 * arm-tdep.c (arm_frame_chain_valid): Update.
9193 (arm_init_extra_frame_info): Update.
9194 (arm_pop_frame): Update.
9195 * frame.c (frame_pc_unwind): Update.
9196 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9197 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9198 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9199 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9200 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9201 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9203 2003-03-12 Andrew Cagney <cagney@redhat.com>
9205 Eliminate the need for POP_FRAME.
9206 * frame.c (do_frame_unwind_register): New function.
9207 (frame_pop): When no POP_FRAME, pop the frame using register
9208 unwind and a scratch regcache.
9209 (frame_saved_regs_pop): Delete function.
9210 (trad_frame_unwinder): Update.
9211 * d10v-tdep.c (d10v_frame_pop): Delete function.
9212 (d10v_frame_unwind): Update.
9213 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9214 (sentinel_frame_unwinder): Update.
9215 * dummy-frame.c (dummy_frame_pop): Delete function.
9216 (dummy_frame_unwind): Update.
9217 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9218 (struct frame_unwind): Update.
9220 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9222 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9223 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9224 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9225 Do range checks on register number obtained from debugging info.
9226 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9227 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9228 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9230 (do_fp_register_row): Fix typo which caused double type to be
9231 used when attempting to unpack a float.
9233 2003-03-11 J. Brobecker <brobecker@gnat.com>
9235 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9237 2003-03-11 Andrew Cagney <cagney@redhat.com>
9239 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9240 frame. Problem found by Corinna Vinschen.
9242 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9244 * doublest.c (floatformat_from_length): Accept also
9245 the real size of 'long double' type.
9247 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9249 From Klee Dienes <kdienes@apple.com>:
9250 * breakpoint.c (bpstat_copy): Copy the command lines as well
9251 as the old value, to match what is freed in bpstat_clear.
9253 2003-03-10 David Carlton <carlton@math.stanford.edu>
9255 * minsyms.c (add_minsym_to_hash_table): Replace
9256 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9257 (compare_minimal_symbols, compact_minimal_symbols)
9258 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9259 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9260 of DEPRECATED_SYMBOL_MATCHES_NAME.
9261 (lookup_minimal_symbol_solib_trampoline): Ditto.
9263 2003-03-10 Andrew Cagney <cagney@redhat.com>
9265 * regcache.h (regcache_cooked_read_ftype): Define.
9266 (regcache_save, regcache_restore): Add a cooked_read parameter.
9267 * regcache.c (regcache_save, regcache_restore): Update.
9268 (do_cooked_read): New function.
9269 (regcache_cpy): Pass do_cooked_read to regcache_save and
9272 2003-03-10 Andrew Cagney <cagney@redhat.com>
9274 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9275 * gdbarch.h, gdbarch.c: Re-generate.
9276 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9277 * x86-64-tdep.h: Update.
9278 * x86-64-tdep.c (x86_64_init_abi): Update.
9279 * v850-tdep.c (v850_gdbarch_init): Update.
9280 * sparc-tdep.c (sparc_gdbarch_init): Update.
9281 * sh-tdep.c (sh_gdbarch_init): Update.
9282 * s390-tdep.c (s390_gdbarch_init): Update.
9283 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9284 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9285 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9286 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9287 * mips-tdep.c (mips_gdbarch_init): Update.
9288 * mcore-tdep.c (mcore_gdbarch_init): Update.
9289 * m68k-tdep.c (m68k_gdbarch_init): Update.
9290 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9291 * ia64-tdep.c (ia64_gdbarch_init): Update.
9292 * i386-tdep.c (i386_gdbarch_init): Update.
9293 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9294 * hppa-tdep.c (hppa_gdbarch_init): Update.
9295 * h8300-tdep.c (h8300_gdbarch_init): Update.
9296 * frv-tdep.c (frv_gdbarch_init): Update.
9297 * cris-tdep.c (cris_gdbarch_init): Update.
9298 * avr-tdep.c (avr_gdbarch_init): Update.
9299 * arm-tdep.c (arm_gdbarch_init): Update.
9300 * alpha-tdep.c (alpha_gdbarch_init): Update.
9301 * sh-tdep.c (sh_init_extra_frame_info): Update.
9302 (sh64_init_extra_frame_info): Update.
9303 * ns32knbsd-nat.c (frame_num_args): Update.
9304 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9305 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9306 (xstormy16_frame_chain_valid): Update.
9307 * vax-tdep.c (vax_saved_pc_after_call): Update.
9308 * v850-tdep.c (v850_frame_chain): Update.
9309 (v850_pop_frame): Update.
9310 (v850_init_extra_frame_info): Update.
9311 * sparc-tdep.c (setup_arbitrary_frame): Update.
9312 * ns32k-tdep.c (umax_frame_num_args): Update.
9313 * s390-tdep.c (s390_pop_frame_regular): Update.
9314 * mn10300-tdep.c (mn10300_frame_chain): Update.
9315 (mn10300_pop_frame_regular): Update.
9316 (mn10300_init_extra_frame_info): Update.
9317 * mips-tdep.c (mips_init_frame_pc_first): Update.
9318 (mips_frame_chain): Update.
9319 (mips_pop_frame): Update.
9320 * mcore-tdep.c (mcore_frame_chain): Update.
9321 (mcore_pop_frame): Update.
9322 (mcore_init_extra_frame_info): Update.
9323 * arch-utils.c (init_frame_pc_default): Update.
9324 * m68k-tdep.c (isi_frame_num_args): Update.
9325 (delta68_frame_num_args): Update.
9326 (news_frame_num_args): Update.
9327 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9328 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9329 (alpha_frame_chain): Update.
9330 (alpha_pop_frame): Update.
9331 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9332 (hppa_init_extra_frame_info): Update.
9333 (hppa_frame_chain): Update.
9334 (hppa_frame_chain_valid): Update.
9335 * cris-tdep.c (cris_init_extra_frame_info): Update.
9336 * avr-tdep.c (avr_init_extra_frame_info): Update.
9337 * arm-tdep.c (arm_frame_chain_valid): Update.
9338 (arm_init_extra_frame_info): Update.
9339 (arm_pop_frame): Update.
9340 * frame.c (frame_pc_unwind): Update.
9341 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9342 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9343 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9344 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9345 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9346 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9348 2003-03-10 Andrew Cagney <cagney@redhat.com>
9350 * gdbarch.sh (gdbarch_unwind_pc): New method.
9351 * gdbarch.h, gdbarch.c: Regenerate.
9352 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9353 but use read_pc and FRAME_SAVED_PC as fall backs.
9354 (frame_saved_regs_pc_unwind): Delete function.
9355 (trad_frame_unwinder): Update.
9356 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9357 (struct frame_unwind): Update.
9358 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9359 (dummy_frame_unwind): Update.
9360 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9361 (sentinel_frame_unwinder): Update.
9362 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9363 (d10v_frame_unwind): Update.
9364 (d10v_unwind_pc): New function.
9365 (d10v_gdbarch_init): Set unwind_pc.
9367 2003-03-10 Andrew Cagney <cagney@redhat.com>
9369 * gdbarch.h: Re-generate.
9371 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9373 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9376 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9378 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9380 2003-03-08 Andrew Cagney <cagney@redhat.com>
9382 * cli-out.c: Update copyright.
9383 (cli_out_data): Define typedef. Use instead of ui_out_data.
9385 2003-03-08 Andrew Cagney <cagney@redhat.com>
9387 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9390 2003-03-07 Andrew Cagney <cagney@redhat.com>
9392 * gdbarch.sh: Don't generate two macro definitions when an
9393 undefined macro taking no arguments.
9394 * gdbarch.h: Regenerate.
9396 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9398 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9399 (x86_64_unwind_dummy_id): New functions.
9400 (x86_64_init_abi): Register these two new functions.
9402 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9404 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9405 (x86_64_skip_prologue): Move prologue detection to
9407 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9409 2003-03-05 Andrew Cagney <cagney@redhat.com>
9411 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9412 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9413 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9414 to use unwind_dummy_id when a dummy frame.
9415 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9417 * gdbarch.h, gdbarch.c: Regneerate.
9419 2003-03-05 Andrew Cagney <cagney@redhat.com>
9421 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9422 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9423 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9426 2003-03-05 Andrew Cagney <cagney@redhat.com>
9428 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9429 (struct d10v_unwind_cache): Delete field "frameless". Replace
9430 "next_addr" with "sp_offset". Add "r11_offset".
9431 (d10v_frame_unwind_cache): Update.
9432 (prologue_find_regs): Update. When "mv r11, sp", save the
9433 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9434 RN was saved in r11_offset.
9436 2003-03-05 Andrew Cagney <cagney@redhat.com>
9438 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9439 cached PC value in the next frame.
9441 2003-03-05 Andrew Cagney <cagney@redhat.com>
9443 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9444 "id_unwind_cache" with "id".
9445 (frame_id_unwind): Delete declaration.
9446 * frame.c (frame_id_unwind): Delete function.
9447 (get_prev_frame): Call the frame id unwind method directly. Store
9448 the returned next frame's ID value in NEXT_FRAME. Note that there
9449 is a problem with the wrong unwind ID being called with the wrong
9452 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9454 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9456 2003-03-05 James Ingham <jingham@apple.com>
9457 Daniel Jacobowitz <drow@mvista.com>
9459 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9460 (auto_cp_abi): New variable.
9461 (current_cp_abi, num_cp_abis): Make static.
9462 (CP_ABI_MAX): Define.
9463 (cp_abis): Turn into an array.
9464 (value_virtual_fn_field): Fix formatting.
9465 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9467 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9468 (list_cp_abis, _initialize_cp_abi): New functions.
9469 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9470 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9471 switch_to_cp_abi. Update prototype for register_cp_abi.
9472 * Makefile.in (cp-abi.o): Update dependencies.
9473 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9474 instead of switch_to_cp_abi.
9475 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9477 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9479 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9481 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9483 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9484 * dwarf2loc.c: Include "regcache.h".
9485 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9487 * Makefile.in (dwarf2loc.o): Update dependencies.
9489 2003-03-04 Theodore A. Roth <troth@openavr.org>
9491 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9492 number of io registers reported by remote target is not a multiple of
9495 2003-03-04 David Carlton <carlton@math.stanford.edu>
9497 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9498 (lookup_symbol_aux_psymtabs): Update call to
9499 lookup_partial_symbol.
9500 (lookup_transparent_type, find_main_psymtab)
9501 (make_symbol_overload_list): Ditto.
9503 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9505 * MAINTAINERS (Write after approval): Update my email address.
9507 2003-03-03 Andrew Cagney <cagney@redhat.com>
9509 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9510 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9511 predicate. Replace MAX_REGISTER_RAW_SIZE.
9512 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9513 MAX_REGISTER_VIRTUAL_SIZE.
9514 * regcache.c (legacy_max_register_raw_size): New function.
9515 (legacy_max_register_virtual_size): New function.
9516 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9517 (MAX_REGISTER_RAW_SIZE): Define.
9518 (legacy_max_register_raw_size): Declare.
9519 (legacy_max_register_virtual_size): Declare.
9520 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9521 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9522 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9523 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9524 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9525 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9526 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9527 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9528 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9529 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9530 * vax-tdep.c (vax_gdbarch_init): Update.
9531 * v850-tdep.c (v850_gdbarch_init): Update.
9532 * sparc-tdep.c (sparc_gdbarch_init): Update.
9533 * sh-tdep.c (sh_gdbarch_init): Update.
9534 * s390-tdep.c (s390_gdbarch_init): Update.
9535 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9536 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9537 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9538 * mips-tdep.c (mips_gdbarch_init): Update.
9539 * mcore-tdep.c (mcore_gdbarch_init): Update.
9540 * m68k-tdep.c (m68k_gdbarch_init): Update.
9541 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9542 * ia64-tdep.c (ia64_gdbarch_init): Update.
9543 * i386-tdep.c (i386_gdbarch_init): Update.
9544 * hppa-tdep.c (hppa_gdbarch_init): Update.
9545 * h8300-tdep.c (h8300_gdbarch_init): Update.
9546 * frv-tdep.c (frv_gdbarch_init): Update.
9547 * cris-tdep.c (cris_gdbarch_init): Update.
9548 * avr-tdep.c (avr_gdbarch_init): Update.
9549 * arm-tdep.c (arm_gdbarch_init): Update.
9550 * alpha-tdep.c (alpha_gdbarch_init): Update.
9551 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9552 max_register_raw_size or max_register_virtual_size.
9554 2003-03-03 David Carlton <carlton@math.stanford.edu>
9556 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9557 SYMBOL_MATCHES_NAME, add comment.
9558 (SYMBOL_MATCHES_NATURAL_NAME): New.
9559 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9560 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9561 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9562 * symtab.c (lookup_partial_symbol): Use
9563 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9565 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9566 SYMBOL_MATCHES_NAME.
9569 2003-03-03 David Carlton <carlton@math.stanford.edu>
9571 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9572 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9573 by regexp matching against SYMBOL_NATURAL_NAME.
9575 2003-03-03 David Carlton <carlton@math.stanford.edu>
9577 * linespec.c (find_method): Extract code into collect_methods.
9578 (collect_methods): New.
9580 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9582 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9585 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9586 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9588 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9590 * arch-utils.c (generic_register_byte): Fix to use the loop index
9591 and not regnum when summing the size of all registers up to regnum.
9593 2003-03-01 Andrew Cagney <cagney@redhat.com>
9595 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9596 FRAME_INIT_SAVED_REGS.
9597 * gdbarch.h, gdbarch.c: Regenerate.
9598 * stack.c (frame_info): Update.
9599 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9600 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9601 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9602 * ns32k-tdep.c (ns32k_pop_frame): Update.
9603 * mips-tdep.c (mips_pop_frame): Update.
9604 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9605 * ia64-tdep.c (ia64_frame_chain): Update.
9606 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9607 (ia64_frameless_function_invocation): Update.
9608 (ia64_init_extra_frame_info): Update.
9609 (ia64_pop_frame_regular): Update.
9610 * frame.h (struct frame_info): Update comment.
9611 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9612 * frame.c (frame_saved_regs_register_unwind): Update.
9613 (frame_saved_regs_register_unwind): Update.
9614 (deprecated_generic_get_saved_register): Update.
9615 * cris-tdep.c: Update comment.
9616 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9618 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9619 * x86-64-tdep.c (x86_64_init_abi): Update.
9620 * vax-tdep.c (vax_gdbarch_init): Update.
9621 * v850-tdep.c (v850_gdbarch_init): Update.
9622 * sparc-tdep.c (sparc_gdbarch_init): Update.
9623 * sh-tdep.c (sh_gdbarch_init): Update.
9624 * s390-tdep.c (s390_gdbarch_init): Update.
9625 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9626 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9627 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9628 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9629 * mips-tdep.c (mips_gdbarch_init): Update.
9630 * mcore-tdep.c (mcore_gdbarch_init): Update.
9631 * m68k-tdep.c (m68k_gdbarch_init): Update.
9632 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9633 * ia64-tdep.c (ia64_gdbarch_init): Update.
9634 * i386-tdep.c (i386_gdbarch_init): Update.
9635 * frv-tdep.c (frv_gdbarch_init): Update.
9636 * avr-tdep.c (avr_gdbarch_init): Update.
9637 * arm-tdep.c (arm_gdbarch_init): Update.
9638 * alpha-tdep.c (alpha_gdbarch_init): Update.
9640 2003-03-01 Andrew Cagney <cagney@redhat.com>
9642 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9643 option enum and switch. When no windows, set the interpreter to
9646 2003-03-01 Andrew Cagney <cagney@redhat.com>
9648 * main.c (captured_main): Replace magic option characters with an
9651 2003-03-01 Andrew Cagney <cagney@redhat.com>
9653 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9654 INIT_EXTRA_FRAME_INFO.
9655 * gdbarch.h, gdbarch.c: Regenerate.
9656 * arm-tdep.c: Update comments.
9657 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9658 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9659 * frame.h, avr-tdep.c: Ditto.
9660 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9661 (create_new_frame, legacy_get_prev_frame): Ditto.
9662 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9663 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9664 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9665 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9666 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9667 * v850-tdep.c (v850_gdbarch_init): Ditto.
9668 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9669 * sh-tdep.c (sh_gdbarch_init): Ditto.
9670 * s390-tdep.c (s390_gdbarch_init): Ditto.
9671 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9672 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9673 * mips-tdep.c (mips_gdbarch_init): Ditto.
9674 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9675 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9676 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9677 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9678 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9679 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9680 * frv-tdep.c (frv_gdbarch_init): Ditto.
9681 * cris-tdep.c (cris_gdbarch_init): Ditto.
9682 * avr-tdep.c (avr_gdbarch_init): Ditto.
9683 * arm-tdep.c (arm_gdbarch_init): Ditto.
9684 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9685 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9687 2003-03-01 Andrew Cagney <cagney@redhat.com>
9689 * gdbarch.sh (register_type): New function with predicate.
9690 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9691 * gdbarch.h, gdbarch.c: Re-generate.
9692 * arch-utils.c (generic_register_byte): Use generic_register_size.
9693 (generic_register_size): When available, use
9694 gdbarch_register_type.
9695 * regcache.c (init_regcache_descr): When available, initialize the
9696 register type array using gdbarch_register_type. If the
9697 architecture supplies gdbarch_register_type, do not use the legacy
9699 * d10v-tdep.c (d10v_register_type): Replace
9700 d10v_register_virtual_type.
9701 (d10v_gdbarch_init): Set register_type instead of
9702 register_virtual_type.
9704 2003-03-01 Andrew Cagney <cagney@redhat.com>
9706 * Makefile.in (ax-gdb.o): Update dependencies.
9707 * ax-gdb.c: Include "regcache.h".
9708 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9709 * findvar.c (value_of_register): Ditto.
9710 * infcmd.c (default_print_registers_info): Ditto.
9712 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9714 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9715 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9717 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9719 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9722 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9724 * Makefile.in (dwarf2loc.o): Update dependencies.
9725 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9726 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9727 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9728 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9729 (locexpr_tracepoint_var_ref): New function.
9730 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9732 2003-02-28 Andrew Cagney <cagney@redhat.com>
9734 * regcache.c (register_size): New function.
9735 * regcache.h (register_size): Declare
9736 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9737 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9739 2003-02-28 David Carlton <carlton@math.stanford.edu>
9741 * linespec.c (decode_compound): Extract code into find_method.
9744 2003-02-28 J. Brobecker <brobecker@gnat.com>
9746 * Makefile.in: Add rules to build and link in observer.o.
9748 2003-02-27 J. Brobecker <brobecker@gnat.com>
9750 * observer.c: Minor comments edits.
9752 2003-02-27 J. Brobecker <brobecker@gnat.com>
9754 * observer.h, observer.c: New file.
9756 2003-02-27 Andrew Cagney <cagney@redhat.com>
9758 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9760 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9762 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9763 (M6812_OP_STS_EXT): Likewise.
9764 (m6811_prologue): Use the above to recognize prologue.
9765 (m6812_prologue): Likewise.
9767 2003-02-27 David Carlton <carlton@math.stanford.edu>
9769 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9771 (compare_psymbols): Ditto.
9772 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9774 2003-02-27 Michael Snyder <msnyder@redhat.com>
9776 * f-lang.c (build_fortran_types): New function.
9777 (_initialize_f_language): Gdbarch-register built-in fortran types.
9778 * doublest.c (extract_floating): Fix warning text.
9780 2003-02-27 Andrew Cagney <cagney@redhat.com>
9782 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9783 predicate. Replaces PUSH_DUMMY_FRAME.
9784 * gdbarch.h, gdbarch.c: Regnerate.
9785 * valops.c (hand_function_call): Update. Call
9786 generic_push_dummy_frame directly.
9787 * vax-tdep.c (vax_gdbarch_init): Update.
9788 * sparc-tdep.c (sparc_gdbarch_init): Update.
9789 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9790 * m68k-tdep.c (m68k_gdbarch_init): Update.
9791 * hppa-tdep.c (hppa_gdbarch_init): Update.
9792 * alpha-tdep.c (alpha_gdbarch_init): Update.
9793 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9794 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9795 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9796 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9797 push_dummy_frame to generic_push_dummy_frame.
9798 * v850-tdep.c (v850_gdbarch_init): Ditto.
9799 * sh-tdep.c (sh_gdbarch_init): Ditto.
9800 * s390-tdep.c (s390_gdbarch_init): Ditto.
9801 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9802 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9803 * mips-tdep.c (mips_gdbarch_init): Ditto.
9804 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9805 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9806 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9807 * i386-tdep.c (i386_gdbarch_init): Ditto.
9808 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9809 * frv-tdep.c (frv_gdbarch_init): Ditto.
9810 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9811 * cris-tdep.c (cris_gdbarch_init): Ditto.
9812 * avr-tdep.c (avr_gdbarch_init): Ditto.
9813 * arm-tdep.c (arm_gdbarch_init): Ditto.
9815 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9817 * mips-tdep.c (show_mips_abi): New function.
9818 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9819 command ``show mips abi''.
9821 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9823 From Elena Zannoni <ezannoni@redhat.com>
9824 * dbxread.c (process_one_symbol): Only record line 0 if one or
9825 more sline entries have been seen for the function.
9827 2003-02-26 Michael Chastain <mec@shout.net>
9829 * configure: Regenerate with autoconf 000227.
9831 2003-02-26 Michael Chastain <mec@shout.net>
9834 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9835 for old libc5/glibc.
9836 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9838 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9840 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9841 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9843 2003-02-26 Michael Chastain <mec@shout.net>
9845 * configure.in: New variable HAVE_UINTPTR_T.
9846 * configure, config.in: Regenerated.
9848 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9851 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9853 2003-02-25 Andrew Cagney <cagney@redhat.com>
9855 * frame.c (get_prev_frame): Add comment on check for
9856 inside_entry_func. Only check for inside_entry_file when not a
9857 dummy and not a sentinel. Check that the new frame is not inner
9860 2003-02-25 Andrew Cagney <cagney@redhat.com>
9862 * frame.c (frame_debug): New variable.
9863 (_initialize_frame): Add "set/show debug frame" command.
9864 (get_prev_frame): When frame_debug, print reason why unwind
9867 2003-02-25 Michael Chastain <mec@shout.net>
9869 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9870 to avoid uintptr_t definition problems.
9872 2003-02-25 David Carlton <carlton@math.stanford.edu>
9874 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9875 (SYMBOL_LINKAGE_NAME): Ditto.
9876 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9877 SYMBOL_LINKAGE_NAME.
9878 (struct general_symbol_info): Expand comment.
9879 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9880 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9881 (SYMBOL_MATCHES_REGEXP): Ditto.
9882 * symtab.c (symbol_natural_name): New function.
9883 * objfiles.h: Replace all uses of SYMBOL_NAME by
9884 DEPRECATED_SYMBOL_NAME.
9885 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9886 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9887 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9888 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9889 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9890 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9891 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9892 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9893 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9894 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9896 * ada-exp.y: Update copyright.
9897 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9898 * cp-valprint.c: Ditto.
9900 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9902 * infptrace.c (detach): Do not flag error if ptrace detach fails
9903 and errno is set to ESRCH.
9905 2003-02-24 Andrew Cagney <cagney@redhat.com>
9907 * infptrace.c (udot_info): Change type of udot_off to long. Use
9908 paddr when printing udot_off's value.
9910 2003-02-24 David Carlton <carlton@math.stanford.edu>
9912 * symtab.c (make_symbol_overload_list): Only read in partial
9913 symtabs containing a matching partial symbol.
9915 2003-02-24 David Carlton <carlton@math.stanford.edu>
9917 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9918 do the comparison, not strcmp.
9919 * symfile.c (compare_psymbols): Ditto.
9920 * defs.h: Declare strcmp_iw_ordered.
9921 * utils.c (strcmp_iw_ordered): New function.
9923 2003-02-24 Jim Blandy <jimb@redhat.com>
9925 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9926 support, shared libs): Remove my name from here, to better reflect
9929 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9931 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9932 (target_ops): Add to_have_continuable_watchpoint.
9933 * target.c (update_current_target): Add INHERIT line for
9934 to_have_continuable_watchpoint.
9935 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9936 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9937 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9938 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9940 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9942 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9945 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9947 * solib.c (solib_open): Call target defined search function after
9948 failing with solib-search-path.
9949 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9950 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9952 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9954 * MAINTAINERS: Add myself to Write After section.
9956 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9958 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9960 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9962 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9963 (m68hc11_add_reggroups): New function.
9964 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9965 (m68hc11_gdbarch_init): Install the reggroups.
9966 (_initialize_m68hc11_tdep): Initialize them.
9968 2003-02-21 James E Wilson <wilson@tuliptree.org>
9970 * MAINTAINERS: Update my email address.
9972 2003-02-21 David Carlton <carlton@math.stanford.edu>
9974 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9976 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9978 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9979 * symtab.h: Add opaque declarations of struct axs_value and
9981 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9982 (struct location_funcs): New type.
9983 (struct symbol): Add "loc" to aux_value.
9984 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9985 * dwarf2read.c: Include "dwarf2expr.h".
9986 (dwarf2_symbol_mark_computed): New function.
9987 (read_func_scope): Use it.
9988 (var_decode_location): New function.
9989 (new_symbol): Use it.
9990 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9992 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9993 (dwarf2expr_h, dwarf2loc_h): New variables.
9994 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9995 (dwarf2expr.o, dwarf2loc.o): New rules.
9996 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9997 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9999 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10000 * m2-exp.y (yylex): Likewise.
10001 * printcmd.c (address_info, print_frame_args): Likewise.
10002 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10003 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10004 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10005 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10006 * symtab.c (lookup_block_symbol): Likewise.
10008 2003-02-20 Adam Fedor <fedor@gnu.org>
10010 * symtab.h: Remove objc_specific struct
10011 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10012 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10013 Have language_objc use cplus_specific struct.
10015 2003-02-20 Tom Tromey <tromey@redhat.com>
10017 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10018 TYPE_NAME, when printing a String value. PR java/1075.
10020 2003-02-20 Adam Fedor <fedor@gnu.org>
10022 * objc-lang.h (find_methods): Remove declaration.
10023 * objc-lang.c (find_methods): Make static.
10025 2003-02-20 Christopher Faylor <cgf@redhat.com>
10027 * win32-nat.c (get_image_name): Check return value from
10029 (child_xfer_memory): Ditto.
10031 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10033 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10034 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10035 '${exec_prefix}' (in addition to the expansion thereof) as
10037 * configure: Rebuilt.
10039 2003-02-20 David Carlton <carlton@math.stanford.edu>
10041 * symtab.c (search_symbols): Revert the search_symbols part of my
10042 2002-12-23 patch. Add comment.
10044 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10046 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10047 * dbxread.c (elfstab_build_psymtabs): Don't call
10048 install_minimal_symbols.
10049 (stabsect_build_psymtabs): Likewise.
10050 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10052 * somread.c (som_symfile_read): Call install_minimal_symbols
10053 and do_cleanups earlier.
10054 * nlmread.c (nlm_symfile_read): Likewise.
10055 * mdebugread.c (elfmdebug_build_psymtabs): Call
10056 install_minimal_symbols and make appropriate cleanups.
10058 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10060 * solib.c (reload_shared_libraries): New function.
10061 (_initialize_solib): Add callbacks for ``set solib-search-path''
10062 and ``set solib-absolute-prefix''.
10064 2003-02-20 David Carlton <carlton@math.stanford.edu>
10066 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10068 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10069 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10070 * ada-typeprint.c (ada_typedef_print): Ditto.
10071 * ax-gdb.c (gen_var_ref): Ditto.
10072 * breakpoint.c (print_one_breakpoint): Ditto.
10073 * buildsym.c (finish_block): Ditto.
10074 * c-valprint.c (c_val_print): Ditto.
10075 * expprint.c (print_subexp): Ditto.
10076 * findvar.c (locate_var_value): Ditto.
10077 * infcmd.c (jump_command): Ditto.
10078 * linespec.c (decode_line_2, decode_compound): Ditto.
10079 * maint.c (maintenance_translate_address): Ditto.
10080 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10081 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10083 * p-valprint.c (pascal_val_print): Ditto.
10084 * stabsread.c (define_symbol): Ditto.
10085 * stack.c (print_frame, frame_info, print_block_frame_locals)
10086 (print_frame_arg_vars, return_command): Ditto.
10087 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10088 * symmisc.c (print_symbol): Ditto.
10089 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10090 (compare_search_syms, print_symbol_info, print_msymbol_info)
10091 (rbreak_command): Ditto.
10092 * tracepoint.c (tracepoints_info): Ditto.
10093 * typeprint.c (typedef_print): Ditto.
10094 * valops.c (value_of_variable, hand_function_call): Ditto.
10095 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10096 * ada-typeprint.c: Update Copyright.
10097 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10098 * tracepoint.c, cli/cli-cmds.c: Ditto.
10100 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10102 * frame.c (generic_unwind_get_saved_register): Make non-static.
10103 * frame.h (generic_unwind_get_saved_register): Declare.
10104 * mips-tdep.c (read_next_frame_reg): Fetch register from
10105 current regcache when frame is NULL.
10106 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10108 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10109 instead of frame_register_unwind().
10111 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10113 * remote-sim.c (gdbsim_insert_breakpoint)
10114 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10117 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10119 * remote.c (_initialize_remote): Add commands "set/show remote
10120 hardware-watchpoint-limit" and "set/show remote
10121 hardware-breakpoint-limit".
10122 (remote_hw_watchpoint_limit): Initialize to -1.
10123 (remote_hw_breakpoint_limit): Ditto.
10124 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10126 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10128 * coff-pe-read.c: New file - support reading of minimal symbols from a
10129 portable executable using the export table.
10130 * coff-pe-read.h: New file.
10131 * coffread.c: Include coff-pe-read.h.
10132 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10133 debugging symbols found.
10134 * Makefile.in (SFILES): Add coff-pe-read.o.
10135 (coff_pe_read_h): Define.
10136 (COMMON_OBS): Add coff-pe-read.o.
10137 (coffread.o): Add coff_pe_read_h dependency.
10138 (coff-pe-read.o): New target.
10140 2003-02-19 David Carlton <carlton@math.stanford.edu>
10142 * Makefile.in (SFILES): Add block.c.
10144 (COMMON_OBS): Add block.o.
10146 (x86-64-tdep.o): Add $(block_h).
10147 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10148 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10149 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10150 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10151 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10152 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10153 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10154 * value.h: Add opaque declaration for struct block.
10155 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10156 * ada-lang.h: Ditto.
10157 * x86-64-tdep.c: #include "block.h"
10158 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10159 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10160 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10161 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10162 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10163 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10164 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10165 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10166 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10167 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10168 * symtab.c (block_function): Ditto.
10169 (contained_in): Ditto.
10170 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10171 block.h. Add opaque declaration for struct block.
10172 * symtab.h: Move block_function and contained_in declarations to
10173 block.h. Add opaque declarations for struct block, struct
10175 (struct block): Move to block.h.
10176 (struct blockvector): Ditto.
10177 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10178 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10179 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10180 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10181 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10183 * block.c: New file.
10184 * block.h: New file.
10186 2003-02-19 Theodore A. Roth <troth@openavr.org>
10188 * avr-tdep.c (avr_extract_return_value): Remove function.
10189 (avr_store_return_value): Remove function.
10190 (avr_extract_struct_value_address): Remove function.
10191 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10193 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10195 * rs6000-tdep.c: Include "gdb_assert.h".
10196 (registers_e500): Add "acc" and "spefscr".
10197 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10198 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10199 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10201 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10203 2003-02-18 Keith Seitz <keiths@redhat.com>
10205 * Makefile.in: Add gdbtk-interps.c.
10207 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10209 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10210 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10212 2003-02-18 Andrew Cagney <cagney@redhat.com>
10214 * symtab.h (struct objfile): Add opaque declaration.
10216 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10218 From Jim Ingham <jingham@apple.com>:
10219 * dbxread.c (process_one_symbol): Use last_function_start rather
10220 than function_start_offset to find the real beginning of the
10221 current function. The latter is just the text section offset on
10222 some systems, the former is always the real function start.
10224 2003-02-17 Andrew Cagney <cagney@redhat.com>
10226 * configure.in: Revert ${target} != ${host}.
10228 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10230 * configure.in (Makefile): Use the test ${target} != ${host},
10231 instead of the absence of the "nm.h" file, to determine of the
10232 configuration non-native.
10233 * configure: Regenerate.
10235 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10237 From Brian Ford <ford@vss.fsi.com>
10239 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10240 conditionalize tui_active test.
10241 (lookup_cmd_1): Ditto.
10243 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10245 * configure.in: Add check for _etext.
10246 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10248 * config.in, configure: regenerated.
10250 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10252 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10254 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10256 * main.c (tui_version): Delete variable.
10257 (captured_main): When --tui, set interpreter_p to "tui" instead of
10258 enabling tui_version.
10259 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10261 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10262 * cli/cli-cmds.c (disassemble_command): Ditto.
10263 * defs.h (tui_version): Delete declaration.
10264 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10265 (tui-interp.o): Add rules.
10266 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10268 2003-02-14 Christopher Faylor <cgf@redhat.com>
10270 * win32-nat.c (register_loaded_dll): Correctly set address range for
10273 2003-02-12 Jason Molenda (jmolenda@apple.com)
10275 * symmisc.c (print_objfile_statistics): Include information about
10276 the number of psymtabs and symtabs in each object file.
10278 2003-02-13 Keith R Seitz <keiths@redhat.com>
10280 * main.h (struct captured_main_args): Add interpreter_p.
10281 * main.c (captured_main): Initialize interpreter_p from context.
10282 * gdb.c (main): Set interpreter_p argument.
10283 * Makefile.in (gdb.o): Add dependency for interps.h.
10285 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10287 * event-top.c (cli_command_loop): Delete declaration.
10288 (_initialize_event_loop): Delete function setting event_loop_hook.
10289 * event-top.h (cli_command_loop): Declare. Update copyright.
10290 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10291 * interps.c (current_interp_command_loop): When event_loop_p, call
10294 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10296 * interps.h (interp_command_loop_ftype): Change return type to
10299 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10301 * x86-64-tdep.c (x86_64_extract_return_value)
10302 (x86_64_store_return_value): Use regcache instead of regbuf.
10303 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10304 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10306 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10308 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10309 * aclocal.m4: Regenerate.
10310 * configure: Regenerate.
10312 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10313 TCL_LD_SEARCH_FLAGS.
10315 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10317 * dwarf2cfi.c: Reindented.
10319 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10321 * interps.c (clear_interpreter_hooks): Convert function definition
10324 2003-02-07 David Carlton <carlton@math.stanford.edu>
10326 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10328 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10330 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10331 (struct type): ...to here.
10332 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10334 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10335 (replace_type): Set length on all type variants for a given type.
10337 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10339 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10341 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10343 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10345 * Makefile.in (symm-nat.o): Update dependencies.
10346 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10347 (lynx-nat.o, ia64-linux-nat.): Ditto.
10348 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10349 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10350 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10352 * Makefile.in (inflow_h): Define.
10353 (procfs.o, inflow.o, procfs.o): Update dependencies.
10354 * inftarg.c (child_stop): Delete extern declaration of
10355 inferior_process_group. Include "inflow.h".
10356 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10357 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10358 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10359 (our_process_group, inferior_process_group): Extern declarations.
10361 * procfs.c: Include "gdb_assert.h".
10363 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10364 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10365 * jv-typeprint.c (java_type_print_base): Ditto.
10366 * typeprint.c (typedef_print): Eliminate STREQ.
10367 * cli/cli-script.c (define_command, define_command): Ditto.
10368 * main.c (captured_main): Ditto.
10369 * values.c (lookup_internalvar): Ditto.
10370 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10371 within `if' conditional.
10372 * linespec.c (decode_line_2): Ditto.
10373 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10374 (bfd_openw_with_cleanup): Ditto.
10376 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10378 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10379 legacy_extract_return_value and store_return_value to
10380 legacy_return_value.
10382 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10384 * win32-nat.c (get_relocated_section_addrs): New function. Find
10385 section load addresses for symbol handling in relocated DLLs.
10386 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10388 2003-02-05 Fred Fish <fnf@intrinsity.com>
10390 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10392 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10394 (angel_RDI_info): Ditto.
10395 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10397 (threads_continue_all_with_signals): Ditto.
10399 2003-02-05 Jim Ingham <jingham@apple.com>
10400 Keith Seitz <keiths@redhat.com>
10401 Elena Zannoni <ezannoni@redhat.com>
10402 Andrew Cagney <ac131313@redhat.com>
10404 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10405 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10406 (SUBDIR_MI_OBS): Add "mi-interp.o".
10407 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10408 (SFILES): Add "interps.c".
10409 (COMMON_OBS): Add "interps.o".
10410 (interps_h, mi_main_h): Define.
10411 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10412 (mi-main.o, main.o, event-top.o): Update dependencies.
10413 * cli/cli-interp.c: New file.
10414 * interps.h, interps.c: New files.
10415 * top.c: (gdb_init): Don't install the default interpreter, handed
10417 * main.c: Include "interps.h".
10418 (interpreter_p): Note that it should malloc'ed.
10419 (captured_command_loop): Call current_interp_command_loop.
10420 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10421 xfree and xstrdup when updating interpreter_p. Install the
10422 default interpreter. Add hack to stop mi1's copyright notice
10424 * event-top.h (gdb_setup_readline): Declare.
10425 (gdb_disable_readline): Declare.
10426 * event-top.c: Include "interps.h".
10427 (display_gdb_prompt): Call current_interp_display_prompt_p.
10428 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10429 gdb_stdlog, and gdb_stdtarg.
10430 (_initialize_event_loop): Don't call gdb_setup_readline.
10431 * cli-out.c (cli_out_set_stream): New function.
10432 * cli-out.h (cli_out_set_stream): Declare.
10434 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10436 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10437 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10438 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10439 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10440 config/i386/i386v42mp.mt: Removed.
10442 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10444 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10447 2003-02-05 Michael Chastain <mec@shout.net>
10449 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10450 2.12.1 and earlier versions.
10452 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10454 Remove orphaned hosts, targets and files.
10455 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10456 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10457 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10458 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10459 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10460 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10461 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10462 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10463 * config/sparc/tm-sp64sim.h: Delete.
10464 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10466 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10467 mips*-dec-mach3* targets.
10469 2003-02-04 Michael Chastain <mec@shout.net>
10471 * NEWS: Fix typo: sepcifying -> specifying.
10473 2003-02-04 Michael Chastain <mec@shout.net>
10475 * dwarfread.c: Add documentation on the state of dwarf-1,
10476 looking towards obsoletion.
10478 2003-02-03 Michael Chastain <mec@shout.net>
10480 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10481 gdb/testsuite/gdb.c++/pr-1023.exp.
10483 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10485 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10486 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10488 * utils.c (init_page_info): Delete reference to MPW in comments.
10489 * main.c (captured_main): Delete #ifdef MPW.
10491 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10493 * NEWS: Note that the m32r-*-elf* is obsolete.
10494 * monitor.c (monitor_expect): Obsolete reference to m32r.
10495 * configure.tgt: Mark m32r-*-elf* as obsolete.
10496 * MAINTAINERS: Mark m32k as obsolete.
10497 * m32r-rom.c: Obsolete file.
10498 * config/m32r/m32r.mt: Obsolete file.
10499 * config/m32r/tm-m32r.h: Obsolete file.
10500 * m32r-stub.c: Obsolete file.
10501 * m32r-tdep.c: Obsolete file.
10503 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10505 * NEWS: Mention that the z8k-zilog-none is obsolete.
10506 * MAINTAINERS: Mark z8k as obsolete.
10507 * configure.tgt: Obsolete the z8k-*-coff* target.
10508 * config/z8k/z8k.mt: Obsolete file.
10509 * config/z8k/tm-z8k.h: Obsolete file.
10510 * z8k-tdep.c: Obsolete file.
10512 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10514 * NEWS: Mention that the mn10200-elf is obsolete.
10515 * configure.tgt: Obsolete mn10200-*-* target.
10516 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10517 mention that the mn10200 is obsolete.
10518 * breakpoint.h: Ditto.
10519 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10520 * config/mn10200/mn10200.mt: Obsolete file.
10521 * config/mn10200/tm-mn10200.h: Obsolete file.
10522 * mn10200-tdep.c: Obsolete file.
10524 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10526 * MAINTAINERS: Mark h8500 as obsolete.
10527 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10528 * findvar.c (value_from_register): Ditto.
10529 * h8500-tdep.c: Mark file as obsolete.
10530 * config/h8500/h8500.mt: Ditto.
10531 * config/h8500/tm-h8500.h: Ditto.
10532 * NEWS: Mention that h8500 is obsolete.
10534 2003-02-04 David Carlton <carlton@math.stanford.edu>
10536 * objfiles.c (allocate_objfile): Always set name. Add comment at
10538 * jv-lang.c (get_dynamics_objfile): Add comment.
10540 2003-02-04 David Carlton <carlton@math.stanford.edu>
10542 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10543 * printcmd.c (build_address_symbolic): Replace uses of
10544 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10545 SYMBOL_NAME, and asm_demangle.
10548 2003-02-04 David Carlton <carlton@math.stanford.edu>
10550 * linespec.c (decode_compound): Extract code into
10552 (lookup_prefix_sym): New function.
10554 2003-02-04 David Carlton <carlton@math.stanford.edu>
10556 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10557 FLOAT_COERCION_BADNESS.
10558 * gdbtypes.c (rank_one_type): Replace all uses of
10559 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10561 2003-02-04 Jim Blandy <jimb@redhat.com>
10563 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10564 section, let dwarf_macinfo_section point to it, not
10567 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10569 Pointed out by Anton Blanchard <anton@samba.org>.
10570 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10571 (ppc_linux_at_sigtramp_return_path): Use it.
10573 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10575 * defs.h (streq): Add prototype.
10576 * utils.c (streq): New function.
10578 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10579 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10580 * mdebugread.c (new_symbol): Likewise.
10581 * stabsread.c (define_symbol): Likewise.
10582 * coffread.c (process_coff_symbol): Likewise.
10583 * dwarfread.c (new_symbol): Likewise.
10585 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10586 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10588 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10589 SYMBOL_INIT_DEMANGLED_NAME.
10590 * objfiles.c: Include "hashtab.h".
10591 (allocate_objfile): Call htab_set_functions_ex for the
10592 demangled_names_hash.
10593 (free_objfile): Call htab_delete for the demangled_names_hash.
10594 * objfiles.h (struct htab): Add declaration.
10595 (struct objfile): Add demangled_names_hash.
10596 * symfile.c: Include "hashtab.h".
10597 (reread_symbols): Call htab_delete for the demangled_names_hash.
10598 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10599 SYMBOL_NAME in the bcache.
10600 * symtab.c: Include "hashtab.h". Update comments.
10601 (create_demangled_names_hash, symbol_set_names): New functions.
10602 (symbol_find_demangled_name): New function, broken out from
10603 symbol_init_demangled_names.
10604 (symbol_init_demangled_names): Use it.
10605 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10606 (SYMBOL_SET_NAMES): New macro.
10607 (symbol_set_names): Add prototype.
10609 2003-02-03 Jim Blandy <jimb@redhat.com>
10611 Use a single, consistent representation for an empty minimal
10612 symbol table in an objfile.
10613 * objfiles.c (terminate_minimal_symbol_table): New function.
10614 (allocate_objfile): Call it.
10615 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10616 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10618 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10619 objfile has minimal symbols, compare minimal_symbol_count to zero,
10620 instead of comparing msymbols with NULL.
10621 * objfiles.c (have_minimal_symbols): Same.
10622 * solib-sunos.c (solib_add_common_symbols): Call
10623 terminate_minimal_symbol_table.
10624 * symfile.c (reread_symbols): Same.
10626 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10628 * s390-tdep.c (s390_address_class_type_flags)
10629 (s390_address_class_type_flags_to_name)
10630 (s390_address_class_name_to_type_flags): New functions.
10631 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10632 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10634 2003-02-03 Michael Snyder <msnyder@redhat.com>
10636 * arm-tdep.c: Fix spell-o in comment.
10638 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10640 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10641 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10642 error messages to contain BFD filename.
10644 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10646 Fix PR gdb/742 gdb/743 gdb/877
10647 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10648 (do_mixed_source_and_assembly): Use
10649 make_cleanup_ui_out_tuple_begin_end and
10650 make_cleanup_ui_out_tuple_begin_end.
10651 (do_mixed_source_and_assembly): Ditto.
10652 * thread.c (do_captured_list_thread_ids): Ditto.
10653 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10654 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10655 ui_out_tuple_end): Delete prototypes.
10656 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10657 ui_out_list_end, ui_out_tuple_end): Delete.
10659 From Kevin Buettner <kevinb@redhat.com>:
10660 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10661 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10662 (do_cleanup_table_end): New functions.
10663 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10664 Use cleanups to invoke_ui_out_tuple_end().
10665 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10666 * cli/cli-setshow.c (cmd_show_list): Use
10667 make_cleanup_ui_out_tuple_begin_end.
10669 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10671 * frame.c (frame_unwind_register): New function.
10672 (frame_unwind_unsigned_register): Use.
10673 (frame_unwind_signed_register): Use.
10674 (frame_read_register): New function.
10675 * frame.h (frame_unwind_register): Declare.
10676 (frame_read_register): Declare.
10678 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10679 and frame_unwind_register instead of read_memory, write_register
10680 and deprecated_write_register_bytes.
10682 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10684 * frame.h: Note that namelen can be negative.
10685 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10688 * NEWS: Mention that the d10v's `regs' command is deprecated.
10689 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10690 (d10v_print_registers_info): New function.
10691 (show_regs): Call d10v_print_registers_info.
10692 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10694 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10696 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10697 lost in the previous patch.
10699 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10701 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10702 * stack.c (print_frame_info_base): Output complete FRAME tuple
10703 for synthesized frames.
10705 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10707 * mips-nat.c (zerobuf): Delete.
10708 (fetch_inferior_registers): Alloc local zerobuf.
10709 (fetch_core_registers): Alloc local zerobuf.
10710 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10711 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10712 * thread-db.c (thread_db_store_registers): Ditto.
10713 * sh-tdep.c (sh_do_register): Ditto.
10714 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10715 * remote-sim.c (gdbsim_store_register): Ditto.
10716 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10717 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10718 * monitor.c (monitor_supply_register): Ditto.
10719 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10720 * mips-nat.c (fetch_inferior_registers): Ditto.
10721 * m68klinux-nat.c (fetch_register): Ditto.
10722 * lynx-nat.c (fetch_inferior_registers): Ditto.
10723 (fetch_inferior_registers): Ditto.
10724 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10725 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10726 (hpux_thread_store_registers): Ditto.
10727 * hppah-nat.c (fetch_register): Ditto.
10728 * hppab-nat.c (fetch_register): Ditto.
10729 * hppa-tdep.c (pa_register_look_aside): Ditto.
10730 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10731 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10733 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10735 * gdbarch.sh: Explictly specify all method levels. When a
10736 variable with an empty level, provide a non-multi-arch default.
10737 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10738 * gdbarch.h: Re-generate.
10739 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10740 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10742 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10744 * defs.h (host_pointer_to_address): Delete declaration.
10745 (address_to_host_pointer): Delete declaration.
10746 * utils.c (host_pointer_to_address): Delete function.
10747 (address_to_host_pointer): Delete function.
10748 * procfs.c (procfs_address_to_host_pointer): New function.
10749 * procfs.c (proc_set_watchpoint): Use.
10750 (procfs_can_use_hw_breakpoint): Update comments.
10751 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10752 (som_solib_add): Use.
10753 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10754 * hppa-tdep.c (unwind_command): Use.
10756 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10758 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10761 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10762 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10763 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10764 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10765 (define_symbol): Update.
10766 * symfile.c (generic_load): Remove references to nindy.
10767 * symtab.c: Remove references to nindy.
10769 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10771 * infcmd.c (print_float_info): Delete code conditional on
10773 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10774 * config/m68k/nm-apollo68b.h: Ditto.
10775 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10776 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10777 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10779 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10781 * config/i386/tm-i386os9k.h: Removed.
10783 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10784 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10785 they're identical to i[3456]86-*-sysv* now.
10786 * config/i386/i386v32.mh: Removed.
10787 * config/i386/xm-i386v32.h: Removed.
10788 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10790 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10792 * config/i386/i386dgux.mh: Removed.
10793 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10795 * configure.in: Fix typo.
10796 * configure: Regenerated.
10798 2003-01-31 David Carlton <carlton@math.stanford.edu>
10800 * dwarf2read.c (dwarf2_locate_sections): Set
10801 dwarf_ranges_section.
10803 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10805 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10806 * utils.c: Update comments documenting legitimate uses of PTR.
10808 * utils.c: Re-indent.
10810 * config/djgpp/fnchange.lst: Delete nindy files.
10811 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10812 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10813 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10814 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10815 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10816 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10817 * Makefile.in (init.c): Remove nindy references.
10818 (saber_gdb): Delete rule.
10819 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10820 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10822 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10823 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10824 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10825 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10826 nindy-share/stop.h.
10827 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10828 * saber.suppress: Delete file.
10830 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10832 * dbxread.c (stabs_data): New static variable.
10833 (fill_symbuf): Support an in-memory buffer for stabs data.
10834 (stabs_seek): New function.
10835 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10836 (read_ofile_symtab): Use stabs_seek.
10837 (elfstab_build_psymtabs): Take an asection* instead of
10838 an offset and size. Relocate the stabs data if necessary.
10839 Save the section* for dbx_psymtab_to_symtab.
10840 * dwarf2read.c: Add section variables for each debug section.
10841 (dwarf2_locate_sections): Fill them in.
10842 (dwarf2_read_section): Take an asection* argument.
10843 Relocate the section contents if necessary.
10844 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10845 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10846 it to dwarf2_read_section.
10847 (dwarf2_build_frame_info): Update callers.
10848 * elfread.c (elf_symfile_read): Update call to
10849 elfstab_build_psymtabs.
10850 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10851 (DBX_STAB_SECTION): New macro.
10852 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10853 * symfile.c (symfile_dummy_outputs): New function.
10854 (symfile_relocate_debug_section): New function.
10855 * symfile.h (symfile_relocate_debug_section): Add prototype.
10857 2003-01-31 Richard Henderson <rth@redhat.com>
10859 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10860 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10861 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10862 * alpha-tdep.c (alpha_register_name): Add "unique".
10863 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10864 (ALPHA_UNIQUE_REGNUM): New.
10865 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10867 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10869 * README: Remove reference to Ericsson 1800 monitor.
10870 * Makefile.in (remote-es.o): Delete rule.
10871 (ALLDEPFILES): Delete remote-es.c.
10872 * remote-es.c: Delete file.
10873 * config/m68k/es1800.mt: Delete file.
10874 * config/djgpp/fnchange.lst: Update.
10875 * configure.tgt: Delete m68*-ericsson-* target.
10877 2003-01-31 Adam Fedor <fedor@gnu.org>
10879 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10880 Remove duplicate/shadowing variable of same name.
10882 2003-01-30 Jim Blandy <jimb@redhat.com>
10884 * symfile.c (find_separate_debug_file): Assert that the objfile's
10885 directory name we compute ends with a slash, and then assume that
10886 that's so everywhere we use it.
10888 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10890 * valops.c (value_assign): Flush frame cache after stores to memory
10893 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10895 * Makefile.in (mon960-rom.o): Delete rule.
10896 * mon960-rom.c: Delete file.
10898 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10900 * d10v-tdep.c: Include "frame-unwind.h".
10901 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10903 (next_addr, uses_frame): Delete.
10904 (struct d10v_unwind_cache): Define.
10905 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10906 Use info instead of next_addr and uses_frame globals.
10907 (d10v_frame_init_saved_regs): Delete function.
10908 (d10v_init_extra_frame_info): Delete function.
10909 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10910 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10911 init_frame_pc or frame_saved_pc.
10912 (d10v_pop_frame): Delete function.
10913 (do_d10v_pop_frame): Delete function.
10914 (d10v_frame_chain): Delete function.
10915 (d10v_frame_chain_valid): Delete function.
10916 (d10v_frame_pc_unwind): New function.
10917 (d10v_frame_id_unwind): New function.
10918 (saved_regs_unwinder): New function.
10919 (d10v_frame_register_unwind): New function.
10920 (d10v_frame_pop): New function.
10921 (d10v_frame_unwind): New variable.
10922 (d10v_frame_p): New function.
10923 (d10v_frame_saved_pc): Delete function.
10924 * Makefile.in (d10v-tdep.o): Update dependencies.
10926 2003-01-30 J. Brobecker <brobecker@gnat.com>
10928 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10929 causing some regressions due to a change in the default value
10932 2003-01-29 Richard Henderson <rth@redhat.com>
10933 Elena Zannoni <ezannoni@redhat.com>
10934 Daniel Jacobowitz <drow@mvista.com>
10937 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10939 (RANGES_SECTION): New.
10940 (dwarf_ranges_buffer): New variable.
10941 (struct comp_unit_head): Add member "die".
10942 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10943 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10944 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10945 (dwarf2_locate_sections): Likewise.
10946 (dwarf2_build_psymtabs): Read .debug_ranges.
10947 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10948 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10949 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10950 Look for DW_AT_ranges and return the bounding box.
10952 2003-01-29 Brian Ford <ford@vss.fsi.com>
10954 * win32-nat.c (cygwin_pid): Removed as unused.
10955 (child_attach): Try fall back to Cygwin pid.
10957 2003-01-29 Jim Blandy <jimb@redhat.com>
10959 * objfiles.h (struct objfile): Doc fix.
10961 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10963 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10964 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10965 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10966 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10967 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10968 (FRAME_SAVED_PC): Change to a function with predicate.
10969 * gdbarch.h, gdbarch.c: Re-generate.
10971 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10973 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10975 * complaints.c (complain): Delete function.
10976 * complaints.h (struct deprecated_complaint): Delete definition.
10977 (complain): Delete declaration.
10979 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10981 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10984 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10986 * sentinel-frame.h, sentinel-frame.c: New files.
10987 * Makefile.in (frame.o): Update dependencies.
10988 (SFILES): Add sentinel-frame.c.
10989 (sentinel_frame_h): Define.
10990 (COMMON_OBS): Add sentinel-frame.o.
10991 (sentinel-frame.o): Specify dependencies.
10992 * frame.c: Include "sentinel-frame.h".
10993 (frame_register_unwind): Rewrite assuming that there is always a a
10995 (frame_register, generic_unwind_get_saved_register): Ditto.
10996 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10997 (create_sentinel_frame, unwind_to_current_frame): New functions.
10998 (get_current_frame): Rewrite using create_sentinel_frame and
10999 unwind_to_current_frame. When possible, always create a frame.
11000 (create_new_frame): Set next to the sentinel frame.
11001 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11002 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11003 ID cache when necessary.
11004 (frame_saved_regs_id_unwind): Use frame_relative_level.
11005 (deprecated_generic_get_saved_register): Use frame_relative_level,
11006 get_frame_saved_regs, get_frame_pc, get_frame_base and
11008 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11011 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11013 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11015 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11017 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11018 (maintenance_set_profile_cmd): Use error () instead of warning ().
11020 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11022 * configure.in: Check that -pg works if using --enable-profiling.
11023 Check for monstartup and _mcleanup regardless of --enable-profiling.
11024 * maint.c: Check for monstartup and _mcleanup before using them.
11025 * config.in: Regenerated.
11026 * configure: Regenerated.
11028 2003-01-24 Nick Clifton <nickc@redhat.com>
11030 * Add sh2e support:
11032 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11034 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11035 (sh2e_show_regs): New.
11036 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11037 * config/sh/tm-sh.h: Added sh2e to comments.
11039 2003-01-23 Jim Blandy <jimb@redhat.com>
11041 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11042 symbols found)" message here; we haven't checked for a separate
11043 debug info file yet, so we don't know yet.
11044 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11045 we've looked everywhere. Also, there's no need to print a special
11046 message when we're loading the separate debug info file: the one
11047 symbol_file_add prints is fine.
11049 2003-01-23 Alexander Larsson <alexl@redhat.com>
11050 Jim Blandy <jimb@redhat.com>
11052 Add support for executables whose debug info has been separated
11053 out into a separate file, leaving only a link behind.
11054 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11055 and separate_debug_objfile_backlink.
11056 (put_objfile_before): New declaration.
11057 * symfile.c: #include "filenames.h".
11058 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11059 debug info in a separate file, read that, too. Save the addrs
11060 argument, so we can use it again to read the separated debug info;
11061 syms_from_objfile modifies the table we pass it.
11062 (reread_symbols): After re-reading an objfile, call
11063 reread_separate_symbols to refresh its separate debug info
11064 objfile, if it has one.
11065 (reread_separate_symbols, find_separate_debug_file,
11066 get_debug_link_info, separate_debug_file_exists): New functions.
11067 (debug_file_directory): New global var.
11068 (_initialize_symfile): Initialize debug_file_directory, and
11069 provide the new `set debug-file-directory' command to let the user
11071 * objfiles.c (free_objfile): If this objfile has its debug info in
11072 a separate objfile, free that one too. If this is itself a
11073 separate debug info objfile, clear our parent's backlink.
11074 (put_objfile_before): New function.
11075 * utils.c (gnu_debuglink_crc32): New function.
11076 * defs.h (gnu_debuglink_crc32): New declaration.
11077 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11078 * configure.in: Handle --with-separate-debug-dir config option.
11079 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11080 * acconfig.h (DEBUGDIR): New macro.
11081 * configure, aclocal.m4, config.in: Regenerated.
11083 2003-01-22 Jim Blandy <jimb@redhat.com>
11085 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11086 like the old symbol_file_add, but taking new arguments: you can
11087 now pass in either a `struct section_addr_info' list to say where
11088 each section is loaded, or a `struct section_offsets' table. Pass
11089 these new arguments through to syms_from_objfile as appropriate.
11090 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11091 with the appropriate quiescent values for the new arguments.
11093 * symfile.c: #include "gdb_assert.h".
11094 (syms_from_objfile): Add the ability to pass in a section offset
11095 table directly, as an alternative to the section_addr_info table.
11096 Document arguments better.
11097 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11098 * symfile.h (syms_from_objfile): Update declaration.
11099 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11101 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11103 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11105 Original patch by Tom Tromey <tromey@cygnus.com> and
11106 Jason Molenda <jmolenda@apple.com>.
11107 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11108 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11109 * NEWS: Mention profiling.
11110 * configure.in (--enable-gdbtk): Fix typo.
11111 (--enable-profiling): New. Set PROFILE_CFLAGS.
11112 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11114 (profiling_state): New variable.
11115 (mcleanup_wrapper): New function.
11116 (_initialize_maint): Remove NOTYET, fix call to
11117 add_setshow_boolean_cmd for "maint set profile".
11118 * configure: Regenerated.
11120 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11122 * Makefile.in (install-gdbtk): Install PNG images too.
11124 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11126 * exec.c (text_start): Delete global variable.
11127 (exec_file_attach): Make text_start local to the function.
11128 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11129 * valops.c (hand_function_call): Delete code that handles
11130 BEFORE_TEXT_END and AFTER_TEXT_END.
11131 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11132 of CALL_DUMMY_LOCATION.
11133 * gdbarch.c: Regenerate.
11134 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11135 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11136 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11137 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11138 (text_end): Delete extern declaration.
11140 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11142 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11143 * blockframe.c (backtrace_below_main): Move to "frame.c".
11144 (frame_chain_valid): Delete check for backtrace_below_main.
11145 (_initialize_blockframe): Delete initialization, move ``set
11146 backtrace-below-main'' command to "frame.c".
11147 (do_flush_frames_sfunc): Delete function.
11148 * frame.c: Include "command.h" and "gdbcmd.h".
11149 (frame_type_from_pc): New function.
11150 (create_new_frame): Use frame_type_from_pc.
11151 (legacy_get_prev_frame): New function.
11152 (get_prev_frame): Rewrite. When an old style frame, call
11153 legacy_get_prev_frame. Otherwize, unwind the PC first.
11154 (_initialize_frame): Add ``set backtrace-below-main'' command.
11155 * Makefile.in (frame.o): Update dependencies.
11157 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11159 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11160 DEPRECATED_REGISTERS_INFO.
11162 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11164 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11165 Maintainers'. Update `Various Maintainers'.
11167 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11169 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11170 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11171 Suppress actual parameters when `-'.
11172 * gdbarch.h, gdbarch.c: Regenerate.
11174 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11176 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11177 code handling dummy frames.
11179 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11181 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11182 (struct frame_unwind): Add field pop.
11183 * frame.h (frame_pop): Declare.
11184 * frame.c (frame_saved_regs_pop): New function.
11185 (trad_frame_unwinder): Add frame_saved_regs_pop.
11186 (frame_pop): New function.
11187 * dummy-frame.c (dummy_frame_pop): New function.
11188 (discard_innermost_dummy): New function.
11189 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11190 (dummy_frame_unwind): Add dummy_frame_pop.
11191 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11192 * valops.c (hand_function_call): Ditto.
11193 * stack.c (return_command): Ditto.
11195 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11197 * cris-tdep.c: Fix function declaration indentation.
11198 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11199 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11200 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11201 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11202 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11203 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11205 2003-01-18 Michael Chastain <mec@shout.net>
11207 * README (Unpacking and Installation -- quick overview):
11208 Warn against ".../gdb-5.3/gdb/configure".
11210 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11212 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11213 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11214 (struct frame_unwind): Declare opaque.
11215 (dummy_frame_p): Declare function.
11216 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11217 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11218 * dummy-frame.c: Include "frame-unwind.h".
11219 (dummy_frame_p): New function.
11220 (dummy_frame_unwind): New variable.
11221 * frame.c: Include "frame-unwind.h".
11222 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11223 to use the new unwind field.
11224 (set_unwind_by_pc): Delete function.
11225 (create_new_frame, get_prev_frame): Set unwind field using
11226 frame_unwind_find_by_pc.
11227 (trad_frame_unwind, trad_frame_unwinder): New variables.
11228 * frame.h (trad_frame_unwind): Declare variable.
11229 (frame_id_unwind_ftype): Delete declaration.
11230 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11231 (struct frame_unwind): Declare opaque.
11232 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11233 register_unwind with a single unwind pointer.
11234 * frame-unwind.h, frame-unwind.c: New files.
11235 * Makefile.in (SFILES): Add frame-unwind.c.
11236 (frame_unwind_h): Define.
11237 (COMMON_OBS): Add frame-unwind.o.
11238 (frame-unwind.o): Specify dependencies.
11239 (frame.o, dummy-frame.o): Update dependencies.
11241 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11243 * ada-valprint.c: Eliminate PTR.
11244 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11245 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11246 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11247 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11248 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11249 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11250 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11252 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11254 * main.c (captured_main): Don't use PTR.
11255 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11256 * gdbtypes.c (lookup_primitive_typename): Ditto.
11257 (lookup_struct_elt_type): Ditto.
11258 * f-valprint.c (info_common_command): Ditto.
11259 (list_all_visible_commons): Ditto.
11260 * jv-typeprint.c (java_type_print_base): Ditto.
11262 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11263 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11264 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11265 i386-interix-nat.c and i386-interix-tdep.c. Rename
11266 m68klinux-nat.c and m68klinux-tdep.c. Rename
11267 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11268 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11269 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11270 * main.c (captured_main): Use xfree, not free.
11272 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11274 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11275 ID back using a parameter.
11276 * frame.c (frame_id_unwind): Update call.
11277 (frame_saved_regs_id_unwind): Update.
11278 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11279 * dummy-frame.h (struct frame_id): Add opaque declaration.
11280 (dummy_frame_id_unwind): Update declaration.
11282 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11284 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11286 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11288 * MAINTAINERS (Stephen P. Smith): Updated email address.
11290 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11293 * breakpoint.c (until_break_command): Add new argument. Use it to
11294 decide whether to stop only at the current frame or not.
11295 * breakpoint.h (until_break_command): Update prototype.
11296 * infcmd.c (until_command): Add new argument to until_break_command
11298 (advance_command): New function.
11299 (_initialize_infcmd): Update help string for 'until' command.
11300 Add new 'advance' command.
11302 2003-01-14 David Carlton <carlton@math.stanford.edu>
11304 * linespec.c (decode_line_1): Normalize comments.
11305 (set_flags): Ditto.
11306 (locate_first_half): Ditto.
11307 (decode_compound): Ditto.
11308 (symtab_from_filename): Ditto.
11309 (decode_all_digits): Ditto.
11310 (decode_dollar): Ditto.
11311 (find_methods): Ditto.
11312 (find_toplevel_char): Ditto.
11314 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11316 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11317 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11318 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11319 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11320 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11321 * language.c, language.h, m32r-tdep.c: Update copyright.
11322 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11323 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11324 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11325 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11326 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11327 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11329 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11331 * stabsread.h (process_later, resolve_cfront_continuation):
11333 Update copyright years.
11334 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11335 Update copyright year.
11336 * dbxread.c(struct cont_elem): Obsolete.
11337 (process_later, process_now): Obsolete functions.
11338 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11339 Update copyright year.
11340 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11341 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11342 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11343 (parse_partial_symbols): Obsolete cfront support.
11345 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11347 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11348 read_cfront_baseclasses, read_cfront_member_functions,
11349 resolve_cfront_continuation,read_cfront_static_fields,
11350 copy_cfront_struct_fields): Obsolete functions.
11351 (define_symbol, read_one_struct_field): Obsolete cfront support.
11352 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11353 Update Copyright year.
11355 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11357 * stack.c (print_frame_info, print_stack_frame_base_stub,
11358 print_stack_frame_base, show_and_print_stack_frame_stub,
11359 show_and_print_stack_frame, print_only_stack_frame_stub,
11360 print_only_stack_frame): Delete functions.
11361 (print_stack_frame_stub): Call print_frame_info instead of
11362 print_frame_info_base.
11363 (print_frame_info_base): Rename to print_frame_info.
11364 (backtrace_command_1): Call print_frame_info, instead of
11365 print_frame_info_base.
11366 (current_frame_command): Call print_stack_frame, instead of
11367 print_only_stack_frame.
11368 (frame_command): Call print_stack_frame, instead of
11369 show_and_print_stack_frame.
11370 (up_command): Ditto.
11371 (down_command): Ditto.
11372 * frame.h (print_only_stack_frame): Delete prototype.
11373 * infrun.c (normal_stop): Call print_stack_frame, instead of
11374 show_and_print_stack_frame.
11375 * thread.c (info_threads_command): Call print_stack_frame, instead
11376 of print_only_stack_frame.
11378 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11380 * README (Graphical interface to GDB): Update URL. Point at
11383 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11386 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11388 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11391 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11393 * thread-db.c (attach_thread): Prototype.
11394 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11395 thread information (ti), and valid flags (th_valid, ti_valid).
11396 (attach_thread): Move target_pid_to_str call to after the thread
11397 is added to GDB's list. Initialize the cache.
11398 (thread_get_info_callback, thread_db_map_id2thr)
11399 (thread_db_get_info): New functions.
11400 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11401 (thread_db_store_registers, thread_db_thread_alive)
11402 (thread_db_get_thread_local_address): Use them.
11403 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11404 of calling error() for threads in unknown state.
11406 (clear_lwpid_callback): New function.
11407 (thread_db_resume): Use it to clear the cache.
11409 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11411 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11412 (resume_callback): Remove dead code.
11414 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11416 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11418 * gdbarch.h, gdbarch.c: Regenerate.
11419 * stack.c (frame_info): Only initialize the saved registers when
11420 FRAME_INIT_SAVED_REGS_P.
11421 * frame.c (frame_saved_regs_register_unwind): Assert
11422 FRAME_INIT_SAVED_REGS_P.
11423 (deprecated_generic_get_saved_register): Ditto.
11425 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11427 * source.c (openp): Squelch warning about "filename".
11429 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11431 * source.c (openp): If the file does not exist don't necessarily
11434 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11437 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11438 (integer_types_same_name_p): New function.
11439 (rank_one_type): Use it.
11440 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11442 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11444 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11446 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11447 * configure.in: Add --with-sysroot.
11448 * configure: Regenerated.
11449 * main.c (gdb_sysroot): New variable.
11450 (captured_main): Initialize gdb_sysroot.
11451 * defs.h (gdb_sysroot): New extern declaration.
11452 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11454 2003-01-12 Michael Chastain <mec@shout.net>
11456 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11458 2003-01-12 Michael Chastain <mec@shout.net>
11460 * top.c (print_gdb_version): Bump copyright year to 2003.
11462 2003-01-12 David Carlton <carlton@bactrian.org>
11464 * linespec.c (symtab_from_filename): Rename variable 's' to
11467 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11469 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11471 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11473 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11475 * d10v-tdep.c: Include "gdb_assert.h".
11476 (d10v_store_return_value): Rewrite to match current interface.
11477 (d10v_extract_struct_value_address): Ditto.
11478 (d10v_extract_return_value): Ditto.
11479 (d10v_gdbarch_init): Set store_restore_value,
11480 extract_struct_value_address and extract_return_value.
11482 2003-01-12 J. Brobecker <brobecker@gnat.com>
11484 * hpread.c (set_namestring): New procedure replacing the
11485 SET_NAMESTRING macro.
11486 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11487 by calls to set_namestring.
11489 2003-01-11 J. Brobecker <brobecker@gnat.com>
11491 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11492 a compilation warning.
11493 (hpread_process_one_debug_symbol): Likewise.
11495 2003-01-10 David Carlton <carlton@math.stanford.edu>
11497 * linespec.c (decode_line_1): Rename variable 's' to
11499 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11500 (decode_dollar): Ditto.
11501 (decode_variable): Ditto.
11502 (symbol_found): Ditto.
11504 2003-01-09 Michael Chastain <mec@shout.net>
11506 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11508 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11510 * win32-nat.c (set_process_privilege): New function.
11511 (child_attach): Call set_process_privilege() to enable the
11512 SE_DEBUG_NAME user privilege if available in process token.
11514 2003-01-10 J. Brobecker <brobecker@gnat.com>
11516 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11517 compilation error in the previous revision.
11519 2003-01-09 David Carlton <carlton@math.stanford.edu>
11521 * linespec.c: Update copyright.
11523 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11525 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11526 than inferior_ptid.
11527 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11529 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11531 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11533 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11534 (frame_saved_regs_zalloc): Update.
11535 (frame_saved_regs_register_unwind): Update.
11536 (create_new_frame): Update.
11537 (get_prev_frame): Update.
11538 (frame_extra_info_zalloc): Update.
11539 (deprecated_get_frame_saved_regs): Update.
11540 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11541 * cris-tdep.c: Update comment.
11543 * somsolib.h: Fix function indentation.
11544 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11545 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11546 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11547 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11548 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11550 * infrun.c (follow_fork): Use ISO C definition.
11551 * expprint.c (print_subexp): Use xfree instead of free.
11552 * charset.c: Include "gdb_string.h" instead of <string.h>.
11553 (register_iconv_charsets): Use ISO C definition.
11554 (host_charset, target_charset): Ditto.
11555 * Makefile.in (charset.o): Update dependencies.
11556 (mi-cmd-env.o): Update dependencies.
11558 2003-01-08 Andrew Cagney <cagney@redhat.com>
11560 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11563 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11565 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11566 build directories. Save edited gdb output in Mbuild.log. If a
11567 build fails, remove any final GDB executable.
11569 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11571 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11572 replacing hex constants with function names and stripping leading
11573 file name directory prefixes.
11575 2003-01-08 Andrew Cagney <cagney@redhat.com>
11577 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11580 2003-01-08 David Carlton <carlton@math.stanford.edu>
11582 * linespec.c (decode_line_1): Move code into decode_variable.
11583 (decode_variable): New function.
11585 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11587 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11589 2003-01-08 Andrew Cagney <cagney@redhat.com>
11591 * cris-tdep.c (cris_frame_init_saved_regs): Use
11592 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11594 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11595 (sh64_nofp_frame_init_saved_regs): Ditto.
11596 (sh_fp_frame_init_saved_regs): Ditto.
11597 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11598 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11599 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11600 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11602 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11604 * minsyms.c (lookup_minimal_symbol): Update comment.
11605 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11606 (lookup_minimal_symbol_solib_trampoline): Likewise.
11608 2003-01-08 Andrew Cagney <cagney@redhat.com>
11610 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11611 frame_relative_level.
11613 * alpha-tdep.c: Use get_frame_extra_info.
11614 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11615 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11616 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11617 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11619 * alpha-tdep.c: Use get_next_frame.
11620 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11621 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11622 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11623 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11624 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11625 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11626 * xstormy16-tdep.c: Ditto.
11628 2003-01-07 Andrew Cagney <cagney@redhat.com>
11630 * alpha-tdep.c: Use get_frame_base.
11631 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11632 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11633 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11634 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11635 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11636 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11637 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11638 * config/sparc/tm-sparc.h: Ditto.
11640 2003-01-07 Andrew Cagney <cagney@redhat.com>
11642 * frame.c (deprecated_get_frame_context): New function.
11643 (deprecated_set_frame_context): New function.
11644 * frame.h (deprecated_get_frame_context): Declare.
11645 (deprecated_set_frame_context): Declare.
11646 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11647 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11649 2003-01-07 Andrew Cagney <cagney@redhat.com>
11651 * frame.c (deprecated_set_frame_next_hack): New function.
11652 (deprecated_set_frame_prev_hack): New function.
11653 * frame.h (deprecated_set_frame_next_hack): Declare.
11654 (deprecated_set_frame_prev_hack): Declare.
11655 * mcore-tdep.c (analyze_dummy_frame): Use
11656 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11657 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11659 2003-01-07 David Carlton <carlton@math.stanford.edu>
11661 * linespec.c (decode_line_1): Move code into decode_dollar.
11662 (decode_dollar): New function.
11664 2003-01-07 Andrew Cagney <cagney@redhat.com>
11666 * arm-tdep.c (arm_init_extra_frame_info): Use
11667 deprecated_update_frame_base_hack.
11668 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11669 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11670 (fix_frame_pointer): Ditto.
11671 (mn10300_analyze_prologue): Ditto.
11673 2003-01-07 Andrew Cagney <cagney@redhat.com>
11675 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11676 extra_info using frame_extra_info_zalloc.
11677 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11678 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11679 (sh64_init_extra_frame_info): Ditto.
11680 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11681 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11682 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11683 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11684 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11685 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11686 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11687 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11688 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11689 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11690 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11691 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11693 * mn10300-tdep.c (analyze_dummy_frame): Use
11694 deprecated_set_frame_extra_info_hack.
11695 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11697 2003-01-07 J. Brobecker <brobecker@gnat.com>
11699 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11700 class is not scText. These do not define "real" procedures.
11701 (parse_partial_symbols): Likewise.
11703 2003-01-06 Michael Snyder <msnyder@redhat.com>
11705 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11707 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11709 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11710 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11711 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11712 deprecated_frame_xmalloc_with_cleanup.
11713 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11714 deprecated_frame_xmalloc.
11715 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11716 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11718 2003-01-06 Andrew Cagney <cagney@redhat.com>
11720 * x86-64-linux-tdep.c: Include "osabi.h".
11721 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11723 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11725 2003-01-06 Andrew Cagney <cagney@redhat.com>
11727 * MAINTAINERS (Target Instruction Set Architectures): Update
11728 arm-elf. Can be built with -Werror, has been multiarched.
11730 * value.h (unpack_long): Make buffer parameter constant.
11731 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11732 * scm-lang.h (scm_parse): Ditto.
11733 * defs.h (extract_typed_address, extract_address): Ditto.
11734 (extract_long_unsigned_integer): Ditto.
11735 * inferior.h (unsigned_pointer_to_address): Ditto.
11736 (signed_pointer_to_address): Ditto.
11737 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11738 * gdbarch.h, gdbarch.c: Regenerate.
11739 * findvar.c (extract_long_unsigned_integer): Update.
11740 (extract_address): Update.
11741 (extract_typed_address): Update.
11742 (unsigned_pointer_to_address): Update.
11743 * values.c (unpack_long): Update.
11744 (unpack_double): Update.
11745 (unpack_pointer): Update.
11746 (unpack_field_as_long): Update.
11747 * d10v-tdep.c (d10v_pointer_to_address): Update.
11748 * avr-tdep.c (avr_pointer_to_address): Update.
11749 * scm-lang.c (scm_unpack): Update.
11750 * findvar.c (signed_pointer_to_address): Update.
11752 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11754 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11755 since it is in i386-tdep.c.
11757 2003-01-06 J. Brobecker <brobecker@gnat.com>
11759 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11760 failure introduced in the previous change.
11762 2003-01-05 Michael Chastain <mec@shout.net>
11764 * README: Remove references to deleted remote-*.c files:
11765 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11766 remote-nrom.c, remote-os9k.c, remote-udi.c.
11768 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11770 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11771 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11772 i386_get_longjmp_target.
11774 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11776 * arm-tdep.c (prologue_cache): Change to a pointer.
11777 (_initialize_arm_tdep): Allocate prologue_cache.
11778 (check_prologue_cache): Update.
11779 (save_prologue_cache): Update.
11780 (arm_gdbarch_init): Update.
11782 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11784 * stabsread.c (update_method_name_from_physname): Call complaint()
11787 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11789 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11790 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11791 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11793 * blockframe.c: Include "gdbcmd.h" and "command.h".
11794 (backtrace_below_main): New variable.
11795 (file_frame_chain_valid, func_frame_chain_valid)
11796 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11797 (generic_func_frame_chain_valid): Remove functions.
11798 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11799 (_initialize_blockframe): New function.
11800 * Makefile.in (blockframe.o): Update dependencies.
11801 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11802 comment. Call frame_chain_valid ().
11803 * frame.h: Remove old prototypes. Add prototype for
11804 frame_chain_valid and update comments to match.
11805 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11806 Remove old comment.
11807 * gdbarch.h: Regenerated.
11808 * gdbarch.c: Regenerated.
11810 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11811 set_gdbarch_frame_chain_valid.
11812 * avr-tdep.c (avr_gdbarch_init): Likewise.
11813 * cris-tdep.c (cris_gdbarch_init): Likewise.
11814 * frv-tdep.c (frv_gdbarch_init): Likewise.
11815 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11816 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11817 (i386_nw_init_abi): Likewise.
11818 (i386_gdbarch_init): Likewise.
11819 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11820 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11821 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11822 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11823 * mips-tdep.c (mips_gdbarch_init): Likewise.
11824 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11825 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11826 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11827 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11828 * s390-tdep.c (s390_gdbarch_init): Likewise.
11829 * sh-tdep.c (sh_gdbarch_init): Likewise.
11830 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11831 * v850-tdep.c (v850_gdbarch_init): Likewise.
11832 * vax-tdep.c (vax_gdbarch_init): Likewise.
11833 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11835 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11836 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11837 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11838 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11839 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11840 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11841 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11842 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11844 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11846 * Makefile.in (acconfig_h): Remove incorrect macro.
11847 (config_h): Define.
11848 (osabi.o): Update dependencies.
11849 * configure.tgt: Set gdb_osabi based on target triplet.
11850 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11851 * configure: Regenerated.
11852 * config.in: Regenerated.
11853 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11854 (GDB_OSABI_DEFAULT): Define if not already defined.
11855 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11856 (set_osabi_string): New variables.
11857 (gdbarch_register_osabi): Add new OS ABI to
11858 gdb_osabi_available_names.
11859 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11860 (set_osabi, show_osabi): New functions.
11861 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11863 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11865 * arch-utils.c (gdbarch_info_init): Set osabi to
11866 GDB_OSABI_UNINITIALIZED.
11867 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11868 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11869 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11870 * gdbarch.c: Regenerated.
11871 * gdbarch.h: Regenerated.
11872 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11874 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11875 * osabi.h (enum gdb_osabi): Move to defs.h.
11876 (gdbarch_init_osabi): Update prototype.
11877 * defs.h (enum gdb_osabi): Moved here.
11878 * Makefile.in: Update dependencies.
11880 * alpha-tdep.h: Don't include "osabi.h".
11881 (struct gdbarch_tdep): Remove osabi member.
11882 * alpha-tdep.c: Include "osabi.h".
11883 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11884 iterate over arches. Update call to gdbarch_init_osabi.
11885 (alpha_dump_tdep): Don't dump osabi.
11886 * alpha-linux-tdep.c: Include "osabi.h".
11887 * alpha-osf1-tdep.c: Include "osabi.h".
11888 * alphafbsd-tdep.c: Include "osabi.h".
11889 * alphanbsd-tdep.c: Include "osabi.h".
11891 * arm-tdep.h: Don't include "osabi.h".
11892 (struct gdbarch_tdep): Remove osabi member.
11893 * arm-tdep.c: Include "osabi.h".
11894 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11895 iterate over arches. Update call to gdbarch_init_osabi.
11896 (arm_dump_tdep): Don't dump osabi.
11897 * arm-linux-tdep.c: Include "osabi.h".
11898 * armnbsd-tdep.c: Include "osabi.h".
11900 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11901 Update call to gdbarch_init_osabi.
11903 * i386-tdep.h: Don't include "osabi.h".
11904 (struct gdbarch_tdep): Remove osabi member.
11905 * i386-tdep.c: Include "osabi.h".
11906 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11907 iterate over arches. Update call to gdbarch_init_osabi.
11908 (i386_dump_tdep): Don't dump osabi.
11909 * i386-linux-tdep.c: Include "osabi.h".
11910 * i386-sol2-tdep.c: Include "osabi.h".
11911 * i386bsd-tdep.c: Include "osabi.h".
11912 * i386gnu-tdep.c: Include "osabi.h".
11913 * i386ly-tdep.c: Include "osabi.h".
11914 * i386nbsd-tdep.c: Include "osabi.h".
11915 * i386obsd-tdep.c: Include "osabi.h".
11917 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11918 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11919 check osabi when iterating over arches. Update call to
11920 gdbarch_init_osabi.
11921 (mips_dump_tdep): Don't dump osabi.
11923 * ns32k-tdep.h: Don't include "osabi.h".
11924 (struct gdbarch_tdep): Remove.
11925 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11926 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11927 allocate tdep. Update call to gdbarch_init_osabi.
11928 (ns32k_dump_tdep): Remove.
11929 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11930 * ns32knbsd-tdep.c: Include "osabi.h".
11932 * ppc-tdep.h: Don't include "osabi.h".
11933 (struct gdbarch_tdep): Remove osabi member.
11934 * rs6000-tdep.c: Include "osabi.h".
11935 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11936 osabi when iterating over arches. Update call to
11937 gdbarch_init_osabi.
11938 (rs6000_dump_tdep): Don't dump osabi.
11939 * ppc-linux-tdep.c: Include "osabi.h".
11940 * ppcnbsd-tdep.c: Include "osabi.h".
11942 * sh-tdep.h: Don't include "osabi.h".
11943 (struct gdbarch_tdep): Remove osabi member.
11944 * sh-tdep.c: Include "osabi.h".
11945 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11946 iterate over arches. Update call to gdbarch_init_osabi.
11947 (sh_dump_tdep): Don't dump osabi.
11948 * shnbsd-tdep.c: Include "osabi.h".
11950 * sparc-tdep.c: Include "osabi.h".
11951 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11952 iterate over arches. Update call to gdbarch_init_osabi.
11953 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11956 * vax-tdep.h: Don't include "osabi.h".
11957 (struct gdbarch_tdep): Remove.
11958 * vax-tdep.c: Include "osabi.h".
11959 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11960 iterate over arches. Don't allocate tdep. Update call
11961 to gdbarch_init_osabi.
11962 (vax_dump_tdep): Remove.
11963 (_initialize_vax_tdep): Update call to gdbarch_register.
11965 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11967 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11969 (breakpoint_re_set_one): Don't fetch the value for a disabled
11972 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11974 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11975 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11976 (COERCE_FLOAT_TO_DOUBLE): Remove.
11977 * gdbarch.c: Regenerate.
11978 * gdbarch.h: Regenerate.
11979 * Makefile.in: Remove value_h from gdbarch_h.
11980 * valops.c (coerce_float_to_double): New variable.
11981 (default_coerce_float_to_double): Remove.
11982 (standard_coerce_float_to_double): Remove.
11983 (value_arg_coerce): Use coerce_float_to_double.
11984 (_initialize_valops): Add "set coerce-float-to-double".
11985 * value.h (default_coerce_float_to_double): Remove prototype.
11986 (standard_coerce_float_to_double): Remove prototype.
11988 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11990 * mdebugread.c (parse_symbol): Likewise.
11991 * stabsread.c (define_symbol): Mark all functions as prototyped.
11993 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11994 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11995 set_gdbarch_coerce_float_to_double.
11996 * arm-tdep.c (arm_gdbarch_init): Likewise.
11997 * frv-tdep.c (frv_gdbarch_init): Likewise.
11998 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11999 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12000 * mips-tdep.c (mips_gdbarch_init): Likewise.
12001 (mips_coerce_float_to_double): Remove.
12002 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12003 (rs6000_coerce_float_to_double): Remove.
12004 * s390-tdep.c (s390_gdbarch_init): Likewise.
12005 * sh-tdep.c (sh_gdbarch_init): Likewise.
12006 (sh_coerce_float_to_double): Remove.
12007 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12008 (sparc_coerce_float_to_double): Remove.
12009 * v850-tdep.c (v850_gdbarch_init): Likewise.
12010 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12011 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12012 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12013 (hppa_coerce_float_to_double): Remove prototype.
12014 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12016 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12018 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12020 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12022 Suggested by Stewart Brown <sb24@avaya.com>:
12023 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12024 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12025 (c_type_print_varspec_suffix): Likewise.
12027 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12029 * configure.in: Don't set and AC_SUBST SUBDIRS.
12030 * configure: Regenerated.
12032 * configure.in: Remove code dealing with shared libraries.
12033 * Makefile.in: Remove HLDFLAGS and HLDENV.
12034 * configure: Regenerated.
12036 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12038 * frame.c (deprecated_frame_xmalloc): New function.
12039 (deprecated_set_frame_saved_regs_hack): New function.
12040 (deprecated_set_frame_extra_info_hack): New function.
12041 * frame.h (deprecated_frame_xmalloc): Declare.
12042 (deprecated_set_frame_saved_regs_hack): Declare.
12043 (deprecated_set_frame_extra_info_hack): Declare.
12045 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12047 * configure.in: Move code that provides the --enable-gdbtk option
12048 right after the code that handles the --enable-tui option, and
12049 polish it somewhat.
12050 * configure: Regenerated.
12052 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12053 AC_CHECK_FUNCS and remove the old check for pread64.
12054 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12055 * acconfig.h (_GNU_SOURCE): Add.
12056 (HAVE_PREAD64): Remove.
12057 * configure, aclocal.m4, config.in: Regenerated.
12059 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12061 * alpha-tdep.c: Use get_frame_saved_regs.
12062 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12063 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12064 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12065 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12066 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12068 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12070 * configure.in: Remove all use of the SUBDIRS variable; add
12071 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12072 code providing the --enable-multi-ice option, and move it right in
12073 front of the code that checks whether gdbserver is supported.
12075 * configure: Regenerated.
12076 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12079 2003-01-03 Andrew Cagney <cagney@redhat.com>
12081 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12082 * avr-tdep.c, cris-tdep.c: Ditto.
12083 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12084 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12086 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12088 * configure.in: Remove --enable-netrom option.
12089 * configure: Regenerated.
12091 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12093 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12094 declaration for `struct re_pattern_buffer' instead.
12095 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12097 2003-01-03 J. Brobecker <brobecker@gnat.com>
12099 * mdebugread.c (parse_symbol): Count until the stEnd matching
12100 the structure name.
12102 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12104 * configure.in: Remove --with-cpu option.
12105 subscripts. Remove evil changequotes here.
12106 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12107 * config.in, configure: Regenerated.
12109 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12110 * configure.in: Cleanup section that sources GDB and BFD configure
12111 subscripts. Remove evil changequotes here.
12112 * config.in, configure: Regenerated.
12114 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12116 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12117 frame accessor methods.
12118 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12119 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12120 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12121 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12122 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12123 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12124 * z8k-tdep.c: Ditto.
12126 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12128 * configure.in: Remove UI_OUT configuration code.
12129 * ada-lang.c: Update assuming UI_OUT is always true.
12130 * Makefile.in (UIOUT_CFLAGS): Remove.
12131 * configure: Regenerated.
12132 * TODO: Remove blurb about elimination of -DUI_OUT.
12134 * configure.in: Move code that provides the --enable-gdbcli,
12135 --enable-gdbmi options right before the code that handles the
12136 --enable-tui option. Polish a bit.
12137 * configure: Regenerated.
12139 * configure.in: Rewrite check for GNU regex and the
12140 --without-included regex option, and move it into the "Checks for
12141 library functions" section. This makes us use the system regex
12142 again by default on systems with version 2 of the GNU C library.
12143 This was apparently broken.
12144 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12145 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12146 * config.in, configure: Regenerated.
12148 * configure.in: Move code that provides the --enable-tui option
12149 before the "Checks for libraries" section. Polish the code
12150 somewhat and set need_curses to yes if we build the TUI. Rewrite
12151 code that looks for a library providing termcap functionality to
12152 match more closely what's done in the Readline library, and move
12153 it into to the "Checks for libraries" section.
12154 * configure: Regenerated.
12155 * Makefile.in (TERMCAP): Remove variable.
12156 * config/i386/go32.mh (TERMCAP): Remove variable.
12158 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12160 * MAINTAINERS: Mention gdb_mbuild.sh.
12161 * gdb_mbuild.sh: Rewrite.
12163 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12165 * configure.in: Fix typo in last change.
12166 * config.in, configure: Regenerated.
12168 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12170 * valarith.c (value_binop): Delete obsolete code and comments.
12171 * configure.host: Ditto.
12172 * buildsym.h (make_blockvector): Ditto.
12173 * buildsym.c (make_blockvector): Ditto.
12174 * defs.h (enum language): Ditto.
12175 (chill_demangle): Ditto.
12176 * elfread.c (elf_symtab_read): Ditto.
12177 * dwarfread.c (CHILL_PRODUCER): Ditto.
12178 (set_cu_language): Ditto.
12179 (handle_producer): Ditto.
12180 * expprint.c (print_subexp): Ditto.
12181 * gdbtypes.c (chill_varying_type): Ditto.
12182 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12183 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12184 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12185 (chill_varying_type): Ditto.
12186 * language.h (_LANG_chill): Ditto.
12187 * language.c (binop_result_type, integral_type): Ditto.
12188 (character_type, string_type, structured_type): Ditto.
12189 (lang_bool_type, binop_type_check): Ditto.
12190 * stabsread.h (os9k_stabs): Ditto.
12191 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12192 (define_symbol, read_type, read_struct_fields): Ditto.
12193 (read_array_type, read_enum_type, read_huge_number): Ditto.
12194 (read_range_type, start_stabs): Ditto.
12195 * symfile.c (init_filename_language_table): Ditto.
12196 (add_psymbol_with_dem_name_to_list): Ditto.
12197 * symtab.c (symbol_init_language_specific): Ditto.
12198 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12199 * symtab.h (struct general_symbol_info): Ditto.
12200 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12201 * typeprint.c (typedef_print): Ditto.
12202 * utils.c (fprintf_symbol_filtered): Ditto.
12203 * valops.c (value_cast, search_struct_field, value_slice): Delete
12205 (varying_to_slice): Delete function.
12206 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12207 (varying_to_slice): Delete declaration.
12208 * MAINTAINERS: Update.
12210 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12212 * configure.in: Reorganize "Checks for library functions section"
12213 a bit. Remove check for `btowc' and `isascii' functions.
12214 * configure: Regenerated.
12216 * acconfig.h (_MSE_INT_H): Remove.
12217 * configure.in: Create "Checks for header files" section, and move
12218 appropriate tests there. Don't check for objlist.h, wchar.h,
12219 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12220 misdetection fix. Also add "Checks for types", "Checks for
12221 compiler characteristics" and "Checks for library functions"
12223 * config.in, configure: Regenerated.
12225 * configure.in: Create "Checks for programs" section, and move
12226 appropriate tests there.
12228 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12230 * configure.in: Create "Checks for libraries" section, and move
12231 appropriate tests there. Cleanup check for wctype in libw. Use
12232 AC_SEARCH_LIBS to see whether we need libsocket.
12233 * configure: Regenerated.
12235 For older changes see ChangeLog-2002
12241 version-control: never