1 2003-09-09 Andrew Cagney <cagney@redhat.com>
3 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
4 methods "max_register_raw_size", "max_register_virtual_size" or
5 "register_virtual_size".
7 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
9 * MAINTAINERS: Update my e-mail address.
11 2003-09-09 Andrew Cagney <cagney@redhat.com>
13 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
14 (rs6000_push_dummy_call): Store the struct return address.
15 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
17 2003-09-09 Andrew Cagney <cagney@redhat.com>
19 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
20 "ppc_sysv_abi_push_arguments".
21 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
22 "ppc_sysv_abi_push_arguments".
23 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
24 instead of "push_arguments".
25 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
27 2003-09-09 Andrew Cagney <cagney@redhat.com>
29 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
30 instead of CALL_DUMMY_ADDRESS.
32 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
34 * p-lang.c: Eliminate "register".
45 2003-09-09 Nick Clifton <nickc@redhat.com>
47 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
49 2003-09-04 Andrew Cagney <cagney@redhat.com>
51 * avr-tdep.c: Include "dis-asm.h".
52 * cris-tdep.c: Include "dis-asm.h".
53 (cris_delayed_get_disassembler): Use "struct disassemble_info"
54 instead of corresponding typedef.
55 * h8300-tdep.c: Include "dis-asm.h".
56 * ia64-tdep.c: Include "dis-asm.h".
57 * i386-tdep.c: Include "dis-asm.h".
58 (i386_print_insn): Use "struct disassemble_info" instead of
59 corresponding typedef.
60 * m68k-tdep.c: Include "dis-asm.h".
61 * mcore-tdep.c: Include "dis-asm.h".
62 * mips-tdep.c: Include "dis-asm.h".
63 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
64 instead of corresponding typedef.
65 * ns32k-tdep.c: Include "dis-asm.h".
66 * s390-tdep.c: Include "dis-asm.h".
67 * sparc-tdep.c: Include "dis-asm.h".
68 * vax-tdep.c: Include "dis-asm.h".
69 * v850-tdep.c: Include "dis-asm.h".
70 * mn10300-tdep.c: Include "dis-asm.h".
71 * rs6000-tdep.c: Include "dis-asm.h".
72 * xstormy16-tdep.c: Include "dis-asm.h".
73 (_initialize_xstormy16_tdep): Delete "extern" declaration of
75 * Makefile.in (v850-tdep.o): Update dependencies.
76 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
77 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
78 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
79 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
80 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
81 (gdbarch_h): Remove $(dis_asm_h).
82 * disasm.c: Include "dis-asm.h".
83 (dis_asm_read_memory): Use "struct disassemble_info" instead of
84 corresponding typedef.
85 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
86 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
87 * gdbarch.sh: Do not include "dis-asm.h".
88 (struct disassemble_info): Declare opaque.
89 (TARGET_PRINT_INSN): Update declaration.
90 * gdbarch.h, gdbarch.c: Re-generate.
92 2003-09-08 Andrew Cagney <cagney@redhat.com>
94 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
95 CALL_DUMMY_ADDRESS, change to a predicate.
96 * gdbarch.h, gdbarch.c: Re-generate.
97 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
98 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
99 * infcall.c (call_function_by_hand): Ditto.
100 * sparc-tdep.c (sparc_push_return_address): Ditto.
101 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
102 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
103 CALL_DUMMY_ADDRESS with entry_point_address.
104 * v850-tdep.c (v850_push_return_address): Ditto.
105 * s390-tdep.c (s390_push_return_address): Ditto.
106 * rs6000-tdep.c (ppc_push_return_address): Ditto.
107 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
108 * mcore-tdep.c (mcore_push_return_address): Ditto.
109 * cris-tdep.c (cris_push_return_address): Ditto.
110 * arm-tdep.c (arm_push_return_address): Ditto.
112 2003-09-08 Andrew Cagney <cagney@redhat.com>
114 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
115 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
116 and REG_UNMODIFIED to REG_SAME_VALUE.
117 (execute_cfa_program): Update.
118 (dwarf2_frame_cache): Update. Initialize table to
119 REG_UNSPECIFIED, complain if CFI fails to specify a register's
121 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
123 2003-09-08 Andrew Cagney <cagney@redhat.com>
125 * gnu-nat.c: Remove "inline" function attribute.
126 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
128 2003-09-08 Kevin Buettner <kevinb@redhat.com>
130 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
133 2003-09-08 Kevin Buettner <kevinb@redhat.com>
135 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
136 (frame_extra_info): Rename this struct to frv_unwind_cache.
137 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
138 Add fields ``prev_sp'' and ``base''.
139 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
140 (frv_saved_pc_after_call, frv_init_extra_frame_info)
141 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
143 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
144 Revise all callers. Fill in the unwind cache argument and make
145 other adjustments to account for new frame mechanisms.
146 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
147 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
148 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
149 (frv_frame_unwind, frv_frame_base): New structs.
150 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
151 additional arguments expected by this method and adjust function
153 (frv_gdbarch_init): Remove calls to the following functions:
154 set_gdbarch_deprecated_init_frame_pc(),
155 set_gdbarch_deprecated_saved_pc_after_call(),
156 set_gdbarch_deprecated_frame_chain(),
157 set_gdbarch_deprecated_frame_saved_pc(),
158 set_gdbarch_deprecated_frame_init_saved_regs(),
159 set_gdbarch_deprecated_push_arguments(),
160 set_gdbarch_deprecated_push_return_address(),
161 set_gdbarch_deprecated_pop_frame(),
162 set_gdbarch_deprecated_call_dummy_words(),
163 set_gdbarch_deprecated_sizeof_call_dummy_words(),
164 set_gdbarch_deprecated_init_extra_frame_info(),
165 set_gdbarch_deprecated_dummy_write_sp(), and
166 set_gdbarch_deprecated_pc_in_call_dummy().
167 Add calls to the following functions:
168 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
169 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
170 frame_base_set_default().
171 * Makefile.in (frv-tdep.o): Update dependencies.
173 2003-09-09 Mark Kettenis <kettenis@gnu.org>
175 * dwarf2-frame.c (read_encoded_value): Add support for
176 DW_EH_PE_aligned encoding.
178 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
180 * infrun.c (normal_stop): Don't print a message if the inferior
183 2003-09-08 Jim Blandy <jimb@redhat.com>
185 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
186 * dbxread.c: #include "gdb_assert.h".
187 (read_dbx_symtab): If the objfile has no .data section, use the
188 section index for the .bss section instead.
190 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
192 * frame.c (deprecated_safe_get_selected_frame): New function.
193 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
194 * findvar.c (read_var_value): Call it.
196 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
198 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
199 (sh64-tdep.o): Add dependencies.
200 * configure.tgt: Add FIXME to sh-*-linux*.
201 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
202 (sh_gdbarch_init): Always set correct sh_show_regs function
203 pointer. Call sh64_gdbarch_init() if machine type is sh5.
204 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
205 * sh64-tdep.c: New file, containing all sh64 related code from
207 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
208 * config/sh/linux.mt (TDEPFILES): Ditto.
209 * config/sh/nbsd.mt (TDEPFILES): Ditto.
210 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
211 * config/sh/wince.mt (TDEPFILES): Ditto.
213 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
215 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
216 (stop_wait_callback): Handle !lp->signalled also.
217 (lin_lwp_has_pending, flush_callback): New functions.
218 (lin_lwp_wait): Call flush_callback.
219 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
220 (linux_proc_pending_signals): New function.
221 * linux-nat.h (linux_proc_pending_signals): Add prototype.
223 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
225 From Nick Kelsey <nickk@ubicom.com>:
226 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
227 when the stop PC is at the beginning of a function also.
229 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
231 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
232 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
234 2003-09-06 Mark Kettenis <kettenis@gnu.org>
236 * sol-thread.c: Include "gdb_string.h".
238 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
240 * gcore.c: Reorder include files in alphabetical order. Include
241 "gdb_assert.h". Various coding style fixes.
242 (derive_stack_segment, derive_heap_segment): Replace check for
243 non-null BOTTOM and TOP with gdb_assert.
244 (derive_heap_segment): Replace check for successful creation of
245 ZERO with gdb_assert.
246 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
248 2003-09-04 Andrew Cagney <cagney@redhat.com>
250 * thread-db.c (verbose_dlsym): New function.
251 (thread_db_load): Use verbose_dlsym
252 (thread_db_new_objfile): Print that libthread_db was loaded, and
253 that thread debugging was enabled.
255 2003-09-04 Andrew Cagney <cagney@redhat.com>
257 * configure.tgt: Add "mips64*-*-*" target. Delete
258 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
259 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
260 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
261 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
262 mips*-sony-*, and mips64*-*-elf* targets.
263 * config/mips/embedl.mt: Delete file.
264 * config/mips/embedl64.mt: Delete file.
265 * config/mips/mips.mt: Delete file.
266 * config/mips/mips64.mt: Delete file.
267 * config/mips/tm-embed.h: Delete file.
268 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
269 * config/mips/embed64.mt: Delete out-of-date comment.
271 2003-09-04 Andrew Cagney <cagney@redhat.com>
273 * hppa-tdep.c (hppa_gdbarch_init): Set
274 "have_nonsteppable_watchpoint".
275 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
276 * mips-tdep.c (mips_dump_tdep): Do not print
277 HAVE_NONSTEPPABLE_WATCHPOINT.
278 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
279 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
280 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
281 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
283 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
285 * breakpoint.c (watchpoint_check): Remove accidentally checked in
286 unused code. Add comment.
288 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
290 * breakpoint.c (watchpoint_check): Check for pc being in an
291 epilogue if watchpoint frame couldn't be found.
293 2003-09-04 Andrew Cagney <cagney@redhat.com>
295 * Makefile.in: Re-generate all dependencies.
297 2003-09-03 Andrew Cagney <cagney@redhat.com>
299 * arch-utils.h (legacy_print_insn): Delete declaration.
300 * arch-utils.c (legacy_print_insn): Delete function.
301 * disasm.c (deprecated_tm_print_insn_info): Delete.
302 (_initialize_disasm): Delete function, contained code initializing
303 deprecated_tm_print_insn_info.
304 * gdbarch.sh (deprecated_tm_print_insn): Delete.
305 (deprecated_tm_print_insn_info): Delete.
306 (TARGET_PRINT_INSN): Do not provide a default.
307 * gdbarch.h, gdbarch.c: Re-generate.
309 2003-09-03 Andrew Cagney <cagney@redhat.com>
311 * disasm.c (fprintf_disasm): New function.
312 (gdb_disassemble_info): Call "init_disassemble_info", instead of
313 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
314 reverts 2003-08-14 change.
315 (_initialize_disasm): Call "init_disassemble_info", instead of
316 INIT_DISASSEMBLE_INFO_NO_ARCH.
318 2003-09-03 Michael Snyder <msnyder@redhat.com>
320 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
322 2003-09-03 Andrew Cagney <cagney@redhat.com>
324 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
325 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
326 * symfile.c (syms_from_objfile): Update.
327 (reread_symbols): `Update
328 * exec.c (exec_file_attach): Update.
329 (exec_file_attach): Update.
330 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
332 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
334 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
336 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
338 (arm_get_cache): Delete macro.
339 (struct arm_prologue_cache): Update comments. Make saved_regs into
340 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
342 (thumb_scan_prologue): Update for cache changes. Don't call
343 DEPRECATED_PC_IN_CALL_DUMMY.
344 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
345 argument and use it in desperation search for our prologue. Do not
346 search past the specified PC.
347 (arm_make_prologue_cache): Simplify.
349 (arm_prologue_this_id, arm_prologue_prev_register)
350 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
351 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
352 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
353 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
354 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
356 (arm_frame_chain_valid, arm_find_callers_reg)
357 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
358 (arm_pop_frame): Delete obsolete methods.
359 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
361 (arm_gdbarch_init): Update for new frame methods. Register prologue
362 and sigtramp unwinders. Set the default frame base method.
364 * Makefile.in (arm-tdep.o): Update dependencies.
365 * varobj.c (find_frame_addr_in_frame_chain): Call
366 get_frame_base_address.
367 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
369 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
371 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
372 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
373 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
374 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
375 Take NEXT_FRAME and CACHE arguments. Call
376 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
377 Set unwound_pc in CACHE instead of modifying the frame argument.
378 Don't bother checking the frame type when looking for sigtramp
380 (arm_make_prologue_cache, arm_frame_chain)
381 (arm_init_extra_frame_info): New functions.
383 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
385 * arm-tdep.c (arm_get_cache): Define.
386 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
387 unwound_sp, unwound_pc, and saved_regs.
388 (thumb_scan_prologue): Take a cache instead of the frame.
389 (arm_scan_prologue): Likewise.
390 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
391 instead of a temporary frame.
392 (arm_init_extra_frame_info): Allocate and use a cache.
393 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
395 2003-09-03 Andrew Cagney <cagney@redhat.com>
397 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
398 * config/mips/wince.mt (TM_CLIBS): Ditto.
399 * config/sh/wince.mt (TM_CLIBS): Ditto.
400 * config/pa/hppa64.mt (TM_CLIBS): Delete.
401 * config/sparc/sp64.mt (CC): Delete.
403 2003-09-03 Andrew Cagney <cagney@redhat.com>
405 * defs.h: Do not include "arch-utils.h".
406 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
408 * configure.in (GDB_MULTI_ARCH): Do not define.
409 * configure, config.in: Regenerate.
410 * configure.tgt: Do not set variable "gdb_multi_arch".
411 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
412 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
413 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
414 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
415 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
416 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
417 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
418 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
419 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
420 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
421 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
422 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
423 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
424 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
425 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
426 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
427 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
428 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
430 2003-08-30 Michael Chastain <mec@shout.net>
432 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
433 * config/m68k/nm-hp300hpux.h: Delete.
434 * config/m68k/tm-hp300hpux.h: Delete.
435 * config/m68k/xm-hp300hpux.h: Delete.
436 * config/m68k/xm-hp300bsd.h: Delete.
437 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
438 tm-hp300hpux.h, xm-hp300hpux.h.
439 * somsolib.c: Remove comment about hp300 shared libraries.
441 2003-08-31 Mark Kettenis <kettenis@gnu.org>
443 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
444 Only define PTRACE_GET_THREAD_AREA is not already defined.
445 Various style fixes in code and comments and some additional
446 spelling fixes in comments. Move after functions dealing with
448 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
451 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
452 frame_unwind_register_unsigned instead of
453 frame_unwind_unsigned_register.
455 2003-08-30 Mark Kettenis <kettenis@gnu.org>
457 * configure.in: Search for gethostbyname in libnsl.
458 * configure: Regenerated.
460 2003-08-29 Mark Kettenis <kettenis@gnu.org>
462 * configure.in: Remove redundant AC_MSG_RESULT in check for
463 uintptr_t in stdint.h.
464 * configure: Regenerated.
466 * amd64-nat.h (struct regcache): Add opaque declaration.
468 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
469 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
470 Change "register array" to "register cache" in comments.
471 (x86_64_linux_gregset64_reg_offset): New variable.
472 (GETREGS_SUPPLIES): Remove macro.
473 (supply_gregset): Call amd64_supply_native_gregset instead of
474 x86_64_linux_supply_gregset.
475 (fill_gregset): Rename `regno' to `regnum'. Call
476 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
477 (store_regs): Rename `regno' to `regnum'.
478 (store_fpregs): Rename `regno' to `regnum'.
479 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
480 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
481 Reorganize function a bit.
482 (store_inferior_registers): Rename `regno' to `regnum'. Use
483 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
484 Reorganize function a bit.
485 (_initialize_x86_64_linux_nat): New function.
486 * config/i386/x86-64linux.mh.
488 2003-08-29 Andrew Cagney <cagney@redhat.com>
490 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
491 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
492 (target_remove_watchpoint): Delete macro.
493 (target_insert_watchpoint): Delete macro.
494 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
495 (remote_mips_stopped_by_watchpoint): Delete declaration.
496 (remote_mips_remove_watchpoint): Delete declaration.
497 (remote_mips_set_watchpoint): Delete declaration.
498 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
499 * remote-mips.c (_initialize_remote_mips): Set
500 "to_insert_watchpoint", "to_stopped_by_watchpoint",
501 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
502 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
503 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
504 (mips_stopped_by_watchpoint): Rename
505 remote_mips_stopped_by_watchpoint.
506 (mips_can_hardware_watchpoint): Rename
507 remote_mips_can_use_hardware_watchpoint, update function
510 2003-08-29 Mark Kettenis <kettenis@gnu.org>
512 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
513 USER_DS. We haven't given them a register number yet.
515 * amd64-nat.h: New file.
516 * amd64-nat.c: New file.
517 * amd64fbsd-nat.c: Include "amd64-nat.h".
518 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
519 (amd64fbsd32_r_reg_offset): New variable.
520 (supply_gregset): Simply call amd64_supply_native_gregset.
521 (fill_gregset): Rename `regno' to `regnum'. Simply call
522 amd64_collect_native_gregset.
523 (fill_fpregset): Rename `regno' to `regnum'.
524 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
525 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
526 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
527 `fpregset_t'. Call amd64_supply_native_gregset instead of
528 supply_gregset. Call x86_64_supply_fxsave instead of
530 (store_inferior_registers): Rename `regno' to `regnum'. Replace
531 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
532 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
533 `fpregset_t'. Call amd64_collect_native_gregset instead of
534 fill_gregset. Call x86_64_collect_fxsave instead of
536 (_initialize_am64fbsd_nat): Initialize
537 amd64_native_gregset32_reg_offset and
538 amd64_native_gregset64_reg_offset.
539 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
541 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
542 null pointer. Fix typo in comment.
544 * regcache.c (supply_register): Reimplement to call
546 (regcache_collect): Reimplement by calling regcache_raw_collect.
548 2003-08-28 Mark Kettenis <kettenis@gnu.org>
550 * regcache.c (register_buffer): Consitify first argument.
551 (regcache_raw_supply, regcache_raw_collect): New
554 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
556 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
557 by Nathan J. Williams.
559 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
561 * lin-lwp.c (wait_lwp): New function, copied from
562 stop_wait_callback. Clean up.
563 (stop_wait_callback): Use wait_lwp.
565 2003-08-28 Andrew Cagney <cagney@redhat.com>
567 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
568 flavour and disassembler options.
569 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
570 (mips_gdbarch_init): Set "print_insn". Delete initialization of
571 deprecated_tm_print_insn_info.
573 2003-08-27 Andrew Cagney <cagney@redhat.com>
575 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
576 Use target_read_memory.
577 (s390_get_frame_info): Update. Do not reference
578 deprecated_tm_print_insn_info.
579 (s390_check_function_end, s390_is_sigreturn): Ditto.
581 2003-08-27 Andrew Cagney <cagney@redhat.com>
583 * Makefile.in (cris-tdep.o): Update dependencies.
584 * cris-tdep.c: Include "gdb_assert.h".
585 (cris_gdbarch_init): Set print_insn.
586 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
587 (cris_delayed_get_disassembler): Simplify, directly call the
588 disassembler returned by cris_get_disassembler.
589 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
590 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
591 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
592 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
593 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
594 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
595 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
596 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
597 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
598 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
599 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
600 (gdb_print_insn_sparc): Delete function.
601 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
602 deprecated_tm_print_insn_info.
603 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
604 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
605 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
606 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
607 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
608 * s390-tdep.c (gdb_print_insn_s390): Delete function.
609 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
610 (s390_gdbarch_init): Set print_insn.
612 2003-08-27 Andrew Cagney <cagney@redhat.com>
614 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
615 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
616 * infcall.c (call_function_by_hand): Convert the entry point
617 address into a code address.
619 2003-08-27 Andrew Cagney <cagney@redhat.com>
621 * dsrec.c: Include "gdb_string.h".
622 * Makefile.in (dsrec.o): Update dependencies.
624 2003-08-27 Michael Chastain <mec@shout.net>
626 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
628 2003-08-27 Andrew Cagney <cagney@redhat.com>
630 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
631 (alpha_osf1_init_abi): Do not set call_dummy_address.
633 2003-08-27 David Carlton <carlton@kealia.com>
635 From Randolph Chung <tausq@debian.org>:
636 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
637 compiles with -Wformat-nonliteral -Werror.
639 2003-08-26 Jim Blandy <jimb@redhat.com>
641 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
642 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
643 bfd_lookup_symbol, since we only want symbols in code sections.
644 (look_for_base): Pass zero as the SECT_FLAGS argument to
645 bfd_lookup_symbol, since we're not concerned about which section
648 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
650 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
651 we are frameless or the return address register is already known.
653 2003-08-26 Andrew Cagney <cagney@redhat.com>
655 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
656 in size. Add comments.
658 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
660 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
661 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
663 2003-08-26 Jason Merrill <jason@redhat.com>
665 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
666 case out of #ifdef MIPS block.
668 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
671 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
672 available before calling SECT_OFF_TEXT.
673 * PROBLEMS: Remove description of java/1322.
675 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
677 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
678 bof, and nat0-nat127 as pseudo-registers.
679 (ia64_frame_cache): New struct used to cache frame info.
680 (ia64_register_reggroup_p): New routine used to override default
681 register grouping so registers without names are still saved and
683 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
685 (ia64_pseudo_register_read): New routine to read pseudo-registers.
686 (ia64_pseudo_register_write): New routine to write pseudo-registers.
687 (ia64_alloc_frame_cache): New routine to create a new
689 (examine_prologue): Change prototype to add next_frame pointer.
690 Assume frameless until otherwise proven. Verify that the cfm for
691 current frame matches the cfm that should occur for the prologues
692 alloc insn and if equal, mark as not frameless. At end of routine,
693 if not frameless, calculate registers for the previous frame and store
694 in the cache, if a cache is provided.
695 (ia64_skip_prologue): Use new prototype when calling examine_prologue
696 and pass 0 for next_frame.
697 (ia64_store_return_value): Change to use convert_typed_floating()
698 instead of calling ia64_convert_to_raw().
699 (ia64_extract_return_value): Change to use convert_typed_floating()
700 instead of calling ia64_convert_to_virtual().
701 (ia64_frame_cache): New routine to support new frame model.
702 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
703 (ia64_frame_sniffer): Ditto.
704 (ia64_sigtramp_frame_init_saved_regs): Ditto.
705 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
706 (ia64_sigtramp_frame_prev_register): Ditto.
707 (ia64_sigtramp_frame_sniffer): Ditto.
708 (ia64_frame_base_address): Ditto.
709 (ia64_extract_struct_value_address): Change to issue error message.
710 (ia64_frame_align): New routine to align sp.
711 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
712 (ia64_push_arguments): Removed. Logic moved to
713 ia64_push_dummy_call().
714 (ia64_push_return_address): Ditto.
715 (ia64_unwind_dummy_id): New function.
716 (ia64_unwind_pc): Ditto.
717 (ia64_convert_register_p): Ditto.
718 (ia64_register_to_value): Ditto.
719 (ia64_value_to_register): Ditto.
720 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
721 (ia64_register_byte, ia64_register_raw_size): Ditto.
722 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
723 (ia64_saved_pc_after_call): Ditto.
724 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
725 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
726 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
727 (ia64_register_convert_to_raw): Ditto.
728 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
729 (ia64_init_extra_frame_info): Ditto.
730 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
731 (ia64_gdbarch_init): Remove registering of deprecated functions that
732 are no longer used. Add registration of new gdbarch functions.
733 Remove registering deprecated_write_sp. Replace
734 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
735 Delete set_gdbarch_deprecated_register_convertible(),
736 set_gdbarch_deprecated_register_convert_to_virtual(), and
737 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
738 set_gdbarch_deprecated_register_size(),
739 set_gdbarch_deprecated_register_bytes(),
740 set_gdbarch_pcregnum(),
741 set_gdbarch_deprecated_register_byte(),
742 set_gdbarch_deprecated_register_raw_size(),
743 set_gdbarch_deprecated_max_register_raw_size(),
744 set_gdbarch_deprecated_register_virtual_size(),
745 and set_gdbarch_deprecated_max_register_virtual_size() calls.
746 Replace set_gdbarch_deprecated_extract_return_value() with
747 set_gdbarch_extract_return_value(). Remove calls to:
748 set_gdbarch_deprecated_saved_pc_after_call();
749 set_gdbarch_deprecated_frame_chain(),
750 set_gdbarch_deprecated_frame_saved_pc(),
751 set_gdbarch_deprecated_frame_init_saved_regs(),
752 set_gdbarch_deprecated_get_saved_register(),
753 set_gdbarch_deprecated_call_dummy_words(),
754 set_gdbarch_deprecated_sizeof_call_dummy_words(),
755 set_gdbarch_deprecated_init_extra_frame_info(),
756 set_gdbarch_deprecated_frame_args_address(),
757 set_gdbarch_deprecated_frame_locals_address(),
758 and set_gdbarch_deprecated_dummy_write_sp().
759 Add set_gdbarch_convert_register_p(),
760 set_gdbarch_register_to_value(),
761 set_gdbarch_value_to_register(),
762 set_gdbarch_push_dummy_call(),
763 set_gdbarch_frame_align(),
764 set_gdbarch_unwind_dummy_id(),
765 set_gdbarch_unwind_pc(),
766 frame_unwind_append_sniffer(),
767 frame_unwind_append_sniffer(),
768 and frame_base_set_default().
770 2003-08-25 Chris Demetriou <cgd@broadcom.com>
772 * configure.tgt: Document need for special "mipsisa64" handling.
773 (mipsisa64*-*-linux64): Handle as target linux64.
774 (mipsisa64*-*-*): Handle as target embed64.
776 2003-08-18 Michael Chastain <mec@shout.net>
778 * PROBLEMS: Document pr gdb/1322, the Java anonymous
781 2003-08-24 Mark Kettenis <kettenis@gnu.org>
783 * i387-tdep.h: Update copyright date.
784 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
786 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
787 CFLAGS games to reflect reality.
789 2003-08-24 Andrew Cagney <cagney@redhat.com>
791 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
792 GDB_MULTI_ARCH is always non-zero.
793 * osabi.c (_initialize_gdb_osabi): Ditto.
794 (gdbarch_init_osabi): Ditto.
795 * sparc-tdep.c: Ditto for #if code.
797 2003-08-23 Mark Kettenis <kettenis@gnu.org>
799 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
801 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
803 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
804 x86_64_supply_fxsave.
805 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
806 x86_64_supply_fxsave.
807 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
808 x86_64_supply_fxsave.
810 2003-08-23 Andreas Jaeger <aj@suse.de>
812 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
815 2003-08-23 Mark Kettenis <kettenis@gnu.org>
817 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
818 i387_supply_register.
819 (go32_fetch_registers): Adjust call to i387_supply_fsave.
820 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
822 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
824 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
826 * i386bsd-nat.c (supply_fpregset): Adjust call to
828 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
829 call to i387_supply_fxsave. Call i387_supply_fsave instead of
831 (store_inferior_registers): Remove extraneous whitespace. Call
832 i387_fill_fsave instead of fill_fpregset.
833 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
834 (supply_fpregset): Likewise.
835 * i386v4-nat.c (supply_fpregset): Adjust call to
837 * i386-interix-nat.c (supply_fpregset): Adjust call to
839 * i386-linux-nat.c (supply_fpregset): Adjust call to
841 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
842 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
843 i387supply_fsave and i387_supply_fxsave.
844 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
845 Incorporate code from `i387_supply_register.
846 (i387_supply_register): Remove.
847 (i387_supply_fxsave): Add `regnum' argument.
849 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
851 (i387_supply_register): remove prototype.
854 2003-08-22 Michael Chastain <mec@shout.net>
856 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
857 Add lines for files in gdb/testsuite/gdb.cp/* that are
858 still not 8.3 unique.
860 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
862 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
863 TYPE_VPTR_FIELDNO is valid.
865 2003-08-19 Mark Kettenis <kettenis@gnu.org>
867 * utils.c (set_width_command): Remove prototypes.
868 (set_screen_size): New prototype.
869 (init_page_info): Simplify by fetching the screen size from
870 Readline. Call set_screen_size.
871 (set_screen_size): New function.
872 (set_width): Add missing whitespace in comment.
873 (set_width_command): Call set_screen_size.
874 (set_height_command): New function.
875 (initialize_utils): Fix formatting. Make "set height" command
876 call set_height_command. Remove redundant code that turns off
877 pagination if output isn't a terminal. Remove redundant call to
880 2003-08-22 Mark Kettenis <kettenis@gnu.org>
882 * sparc64-tdep.h (sparc64_regnum): Fix comment.
883 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
884 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
885 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
887 (sparc64_register_info): Give the reister with number
888 SPARC64_STATE_REGNUM a name.
889 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
891 (sparc64_push_dummy_call): Take BIAS into account when checking
893 (sparc_software_single_step): Remove assertions that check whether
894 NPC and NNPC were zero.
895 (sparc_supply_rwindow): Make public. Merge functionality with
896 sparc64_supply_rwindow.
897 (sparc_fill_rwindow): Make public. Merge functionality with
898 sparc64_fill_rwindow.
899 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
900 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
901 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
902 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
903 sparc_supply_rwindow instead of sparc64_supply_rwindow.
905 * reggroups.c: Add whitespace after declarations of local
906 variables in functions.
908 2003-08-21 Michael Chastain <mec@shout.net>
910 * gdbtypes.h: Change array bound type from an int to enum.
912 2003-08-21 Andrew Cagney <cagney@redhat.com>
914 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
915 * config/sparc/tm-sparc.h: Ditto.
916 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
918 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
920 2003-07-13 Mark Kettenis <kettenis@gnu.org>
922 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
923 (register_objfile_data, set_objfile_data, objfile_data): New
925 * objfiles.c (objfile_alloc_data, objfile_free_data): New
927 (allocate_objfile): Call objfile_alloc_data.
928 (free_objfile): Call objfile_free_data.
929 (struct objfile_data): New.
930 (struct objfile_data_registration): New.
931 (struct objfile_data_registry): New.
932 (objfile_data_registry): New variable.
933 (register_objfile_data): New function.
934 (objfile_alloc_data, objfile_free_data): New functions.
935 (set_objfile_data, objfile_data): New functions.
936 * dwarf2-frame.c (dwarf2_frame_data): New variable.
937 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
938 (_initialize_dwarf2_frame): New function and prototype.
940 2003-08-21 Andrew Cagney <cagney@redhat.com>
942 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
943 a specific architecture.
944 * arch-utils.h (set_architecture_from_arch_mach): Delete
946 (target_architecture_hook): Delete declaration.
947 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
948 (default_float_format): Assume GDB_MULTI_ARCH.
949 (default_double_format): Assume GDB_MULTI_ARCH.
950 (set_endian_from_file): Delete function.
951 (arch_ok): Delete function.
952 (set_arch): Delete function.
953 (set_architecture_from_arch_mach): Delete function.
954 (set_architecture_from_file): Delete function.
955 (set_architecture): Assume GDB_MULTI_ARCH.
956 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
958 2003-08-21 Mark Kettenis <kettenis@gnu.org>
960 Rewrite FreeBSD/sparc64 native configuration.
961 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
962 * sparc64fbsd-nat.c: New file.
963 * sparc64fbsd-tdep.c: New file.
964 * sparc64-tdep.c sparc64-tdep.h: New files.
965 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
966 sparc64fbsd-tdep.o): New dependencies.
967 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
968 and sparc64fbsd-tdep.c.
969 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
970 * config/sparc/fbsd.mh: Remove copyright notice.
971 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
973 * config/sparc/fbsd.mt: Remove copyright notice.
974 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
975 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
976 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
977 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
978 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
979 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
980 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
981 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
983 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
984 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
986 2003-08-21 Michael Chastain <mec@shout.net>
988 * symtab.h: Add doco on the space critical structures and
989 some measurements of space usage.
991 2003-08-21 Michael Snyder <msnyder@redhat.com>
993 * tracepoint.c (trace_dump_command): Trace break address
994 is subject to DECR_PC_AFTER_BREAK.
995 (set_traceframe_context): Make "trace_line" an int.
996 Fixes suggested by Mark Newman <mark.newman@lmco.com>
998 2003-08-20 Michael Snyder <msnyder@redhat.com>
1000 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1001 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1002 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1004 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1005 functions, replace sh_push_dummy_call.
1006 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1008 2003-08-20 Michael Chastain <mec@shout.net>
1010 * gdbtypes.h (struct main_type): Rearrange to save space.
1012 2003-08-20 Michael Snyder <msnyder@redhat.com>
1014 * trad-frame.c: Comment typo fix.
1016 2003-08-20 Michael Snyder <msnyder@redhat.com>
1017 Kevin Buettner <kevinb@redhat.com>
1019 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1020 (frv_frame_init_saved_regs): Add declaration.
1021 (frame_extra_info): Add new field ``saved_regs''.
1022 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1023 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1024 Update frame related code.
1025 (frv_extract_struct_value_address): Adjust formatting.
1026 * Makefile.in (frv-tdep.o): Update dependencies.
1027 * config/frv/tm-frv.h (target_insert_watchpoint)
1028 (target_remove_watchpoint, target_insert_hw_breakpoint)
1029 (target_remove_hw_breakpoint): Delete these macros.
1030 (remote_insert_watchpoint, remote_remove_watchpoint)
1031 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1034 2003-08-20 Michael Chastain <mec@shout.net>
1036 * defs.h (ENUM_BITFIELD): New macro.
1037 * symtab.h (ENUM_BITFIELD): Use it.
1038 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1040 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1042 * MAINTAINERS (write after approval): Add myself.
1044 2003-08-18 Andrew Cagney <cagney@redhat.com>
1046 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1047 * gdbarch.h, gdbarch.c: Re-generate.
1048 * infcall.c (call_function_by_hand): Adjust the SP by
1049 frame_red_zone_size before allocating any stack space.
1050 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1051 * x86-64-tdep.c (x86_64_frame_align): New function.
1052 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1054 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1055 Remove code adjusting SP so that it skips over the Red Zone.
1057 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1059 * NEWS (New native configurations): Mention FreeBSD/amd64.
1061 2003-08-18 Andrew Cagney <cagney@redhat.com>
1063 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1064 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1066 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1068 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1070 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1072 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1074 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1076 * i386-linux-nat.c: Include "linux-nat.h".
1077 (child_post_startup_inferior): New function.
1079 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1081 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1082 at the start of a frameless function. This probably fixes PR
1085 2003-08-17 Michael Chastain <mec@shout.net>
1087 * symfile.c (find_sym_fns): Remove special case for apollo target.
1089 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1091 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1092 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1093 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1094 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1095 (linux_supports_tracevforkdone): New function.
1096 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1098 (child_follow_fork): Handle vfork.
1099 (linux_handle_extended_wait): Likewise. Also handle exec.
1100 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1101 * NEWS: Mention fork tracing.
1103 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1105 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1107 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1109 * Makefile.in (i386-linux-nat.o): Update dependencies.
1110 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1111 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1112 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1113 * i386-linux-nat.c: Include "linux-nat.h".
1114 (child_post_startup_inferior): New function.
1115 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1116 * infptrace.c (kill_inferior): Wrap in #ifdef.
1117 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1118 attaching to each LWP.
1119 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1120 (init_lin_lwp_ops): Fill in some more operations.
1121 * linux-nat.h (linux_enable_event_reporting)
1122 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1124 * linux-nat.c (linux_enable_event_reporting): New function.
1125 (child_post_attach, linux_child_post_startup_inferior)
1126 (child_post_startup_inferior, child_follow_fork)
1127 (linux_handle_extended_wait, kill_inferior): New functions.
1129 2003-08-16 Andrew Cagney <cagney@redhat.com>
1131 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1132 * gdbarch.h, gdbarch.c: Re-generate.
1134 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1136 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1138 2003-08-16 Andrew Cagney <cagney@redhat.com>
1140 * NEWS: Mention that "set prompt-escape-char" was deleted.
1141 * top.c (get_prompt_1): Delete function.
1142 (gdb_prompt_escape):
1143 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1144 prompt-escape-char" command.
1145 (MAX_PROMPT_SIZE): Delete macro.
1146 (get_prompt): Simplify, do not call get_prompt_1.
1148 2003-08-16 Andrew Cagney <cagney@redhat.com>
1150 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1151 -Werror. -Wformat-nonliteral problems.
1153 2003-08-15 J. Brobecker <brobecker@gnat.com>
1155 Further multiarching work mostly for hppa64-*-hpux11:
1156 * hppa-tdep.h: New file.
1157 * hppa-tdep.c: #include hppa-tdep.c.
1158 (hppa32_num_regs): Renamed from hppa_num_regs.
1159 (hppa64_num_regs): New constant.
1160 (hppa64_call_dummy_breakpoint_offset): New constant.
1161 (hppa32_call_dummy_length): New constant.
1162 (hppa64_call_dummy_length): New constant.
1163 (hppa32_stack_align): Make name 32bit explicit.
1164 (hppa32_register_virtual_type): Likewise.
1165 (hppa32_extract_return_value): Likewise.
1166 (hppa32_use_struct_convention): Likewise.
1167 (hppa32_store_return_value): Likewise.
1168 (hppa64_register_virtual_type): New function.
1169 (hppa64_extract_return_value): New function.
1170 (hppa64_use_struct_convention): New function.
1171 (hppa64_store_return_value): New function.
1172 (hppa_frame_locals_address): Remove declaration, function does
1174 (hppa_register_byte): Add support for PA64 ABI.
1175 (hppa_gdbarch_init): Add support for PA64 ABI.
1176 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1177 Make name 32bit explicit.
1178 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1179 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1180 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1181 (hppa64_hpux_frame_base_before_sigtramp): New function.
1182 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1183 * config/pa/tm-hppa64.h: Remove macros that are no longer
1184 necessary now that the gdbarch vector is properly setup.
1185 Transform some macros into function calls. Some minor cleanup.
1186 * config/pa/tm-hppah.h: Update function calls in macros
1187 following the function renaming in hppa-hpux-tdep.c.
1188 * Makefile.in (hppa_tdep_h): New variable.
1189 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1191 2003-08-14 Michael Snyder <msnyder@redhat.com>
1193 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1195 2003-08-13 J. Brobecker <brobecker@gnat.com>
1197 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1198 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1201 2003-08-13 Michael Snyder <msnyder@redhat.com>
1203 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1204 (frv_saved_pc_after_call): Use deprecated ftype.
1205 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1206 (frv_remote_translate_xfer_address): Remove.
1207 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1209 2003-08-13 J. Brobecker <brobecker@gnat.com>
1211 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1212 initialization after the common gdbarch initialization, not before.
1214 2003-08-13 J. Brobecker <brobecker@gnat.com>
1216 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1217 (ADDR_BITS_REMOVE): Remove, redundant.
1219 2003-08-13 J. Brobecker <brobecker@gnat.com>
1221 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1222 gdbarch method to clear the 2 low bits of text addresses.
1224 2003-08-12 Andrew Cagney <cagney@redhat.com>
1226 * Makefile.in (dsrec.o): Update dependencies.
1227 * dsrec.c: Include "gdb_assert.h".
1228 (make_srec): Use snprintf instead of sprintf, use a literal format
1231 2003-08-12 Andrew Cagney <cagney@redhat.com>
1233 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1234 FRAME_OBSTACK_ZALLOC.
1236 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1238 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1241 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1243 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1244 amd64fbsd_sc_reg_offset): Add extern declarations.
1245 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1248 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1250 * MAINTAINERS (write after approval): Update my mail address.
1252 2003-08-10 Andrew Cagney <cagney@redhat.com>
1254 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1256 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1258 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1259 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1260 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1261 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1262 i386bsd_sc_reg_offset): Add extern declarations.
1263 * i386obsd-nat.c: Include "i386-tdep.h"
1264 (_initialize_i386obsd_nat): Remove extern declarations.
1265 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1267 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1270 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1271 instead of frame_read_register.
1272 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1273 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1275 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1276 instead of frame_unwind_unsigned_register. Use
1277 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1278 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1279 instead of read_register. Use builtin_type_void_data_ptr instead
1280 of builtin_type_void_func_ptr when extracting the address of the
1282 (i386_extract_return_value, i386_store_return_value,
1283 i386_pseudo_register_read, i386_pseudo_register_write): Use
1284 register_size instead REGISTER_RAW_SIZE.
1286 2003-08-10 Andrew Cagney <cagney@redhat.com>
1288 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1289 sprintf. Make "name" constant.
1291 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1293 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1294 instead of frame_read_register.
1295 (i387_print_float_info): Use get_frame_register and
1296 get_frame_register_unsigned instead of frame_register_read.
1298 * i386fbsd-nat.c: Include "i386-tdep.h".
1299 (child_resume): Make `eflags' an ULONGEST. Use
1300 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1301 instead of register_read and register_write.
1303 * i386bsd-nat.c (fetch_inferior_registers,
1304 store_inferior_registers): Don't use && at the end of a line.
1305 (_initialize_i386bsd_nat): Fix typo.
1307 * frame.c (_initialize_frame): Add missing backslash.
1309 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1310 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1311 and supply_register instead of manipulating the register buffer
1314 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1315 * config/i386/nm-i386sol2.h
1316 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1318 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1319 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1320 instructions that GCC likes to mingle into the prologue. Fixes
1321 gdb/1253 and gdb/1255.
1323 2003-08-09 Andrew Cagney <cagney@redhat.com>
1326 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1327 * command.h (add_setshow_uinteger_cmd): Declare.
1328 * frame.c (set_backtrace_cmd): New function.
1329 (show_backtrace_cmd): New function.
1330 * frame.c (_initialize_frame): Replace "set/show
1331 backtrace-below-main" with "set/show backtrace past-main". Add
1332 command "set/show backtrace limit".
1333 (backtrace_past_main): Rename "backtrace_below_main".
1334 (backtrace_limit): New variable.
1335 (get_prev_frame): Update. Check the backtrace_limit.
1337 2003-08-09 Andrew Cagney <cagney@redhat.com>
1339 * defs.h (xstrprintf): Declare.
1340 * utils.c (xstrprintf): New function.
1341 * breakpoint.c (insert_breakpoints): Replace sprintf and
1342 non-literal format strings, with xstrprintf and cleanups.
1343 (delete_breakpoint,breakpoint_re_set): Ditto.
1344 (commands_command, insert_breakpoints): Ditto.
1345 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1346 (break_at_finish_command_1): Ditto.
1348 2003-08-09 Andrew Cagney <cagney@redhat.com>
1350 * MAINTAINERS (language support): List Adam Fedor as Objective C
1353 2003-08-08 J. Brobecker <brobecker@gnat.com>
1355 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1356 are now multiarched.
1358 2003-08-08 J. Brobecker <brobecker@gnat.com>
1360 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1361 longer necessary now that hppa64 is partially multiarch'ed.
1363 2003-08-08 Andrew Cagney <cagney@redhat.com>
1365 * interps.c (interp_set): Check for a NULL "old_interp".
1367 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1369 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1370 (install-only): Support DESTDIR.
1371 (uninstall): Likewise.
1372 (install-gdbtk): Likewise.
1374 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1376 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1377 contains something meaningful at all times.
1379 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1381 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1383 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1385 * MAINTAINERS (write after approval): Added self.
1387 2003-08-07 Andrew Cagney <cagney@redhat.com>
1389 * inferior.h (AT_SYMBOL): Define.
1390 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1391 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1392 * mips-tdep.c (mips_call_dummy_address): Delete function.
1393 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1394 set call_dummy_address.
1396 2003-08-07 Andrew Cagney <cagney@redhat.com>
1398 * language.c (op_error): Delete function.
1399 (binop_type_check): Delete function.
1400 * language.h (type_op_error, range_op_error): Delete macros.
1401 (op_error): Delete declaration.
1403 2003-08-07 Andrew Cagney <cagney@redhat.com>
1405 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1407 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1409 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1410 (x86_64_push_arguments): Skip the red zone.
1412 2003-08-05 Andrew Cagney <cagney@redhat.com>
1414 * reggroups.c (reggroup_next): Check for the final entry.
1416 2003-08-04 Andrew Cagney <cagney@redhat.com>
1418 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1419 * cli/cli-script.c (define_command): Call query directly, instead
1420 of passing it a buffer.
1421 * ocd.c (ocd_error): Pass error a constant format string.
1422 * remote-mips.c (mips_error): Use fputs_filtered.
1424 * solib-svr4.c (_initialize_svr4_solib): Update
1425 register_gdbarch_data call.
1426 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1428 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1429 (register_gdbarch_data): Delete "free" parameter. Update
1431 * gdbarch.h, gdbarch.c: Re-generate.
1432 * reggroups.c (_initialize_reggroup): Update.
1433 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1434 * frame-base.c (_initialize_frame_base): Update.
1435 * frame-unwind.c (_initialize_frame_unwind): Update.
1436 * user-regs.c (_initialize_user_regs): Update.
1437 * remote.c (_initialize_remote): Update.
1438 * regcache.c (_initialize_regcache): Update.
1440 * regcache.c (xfree_regcache_descr): Delete function.
1441 (_initialize_regcache): Update call to register_gdbarch_data.
1442 (init_regcache_descr, init_legacy_regcache_descr): Use
1443 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1445 * remote.c (free_remote_state): Delete function.
1446 (_initialize_remote): Update register_gdbarch_data.
1447 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1448 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1450 2003-08-04 Andrew Cagney <cagney@redhat.com>
1452 * reggroups.c (struct reggroup_el): Define.
1453 (struct reggroups): Delete field "nr_group". Replace array
1454 "group" with a "first" to "last" linked list.
1455 (reggroups_init): Update. Allocate using gdbarch's obstack.
1456 (reggroups_free): Delete function.
1457 (add_group): Update. Add "el" parameter.
1458 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1459 (default_groups): Update.
1460 (reggroup_next): Replace reggroups.
1461 (reggroups_dump): Update.
1462 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1463 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1464 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1466 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1468 * Makefile.in (tui-interp.o): Update dependencies.
1470 2003-08-04 David Carlton <carlton@kealia.com>
1472 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1473 to internal_error call.
1474 * source.c (forward_search_command): Add "%s" format argument.
1475 (reverse_search_command): Ditto.
1476 * top.c (quit_confirm): Ditto.
1477 * cli/cli-setshow.c (do_setshow_command): Ditto.
1478 * cp-valprint.c (cp_print_class_method): Replace
1479 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1480 (cp_print_class_member): Ditto.
1481 * event-top.c (command_line_handler): Ditto.
1482 * linux-proc.c (linux_info_proc_cmd): Ditto.
1483 * p-typeprint.c (pascal_type_print_base): Ditto.
1484 * p-valprint.c (pascal_object_print_class_method): Ditto.
1485 (pascal_object_print_class_member): Ditto.
1486 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1487 * remote.c (remote_cisco_section_offsets): Ditto.
1488 * top.c (command_line_input): Ditto.
1489 * utils.c (vwarning,error_stream,quit): Ditto.
1490 * valprint.c (print_floating,print_binary_chars)
1491 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1493 2003-08-04 Andrew Cagney <cagney@redhat.com>
1495 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1497 2003-08-02 Andrew Cagney <cagney@redhat.com>
1499 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1500 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1503 2003-08-02 Andrew Cagney <cagney@redhat.com>
1505 * Makefile.in: Update all dependencies and definitions.
1507 2003-08-02 Adam Fedor <fedor@gnu.org>
1509 * linespec.c (is_objc_method_format): New function
1510 (decode_line_1, locate_first_half): Use it.
1513 2003-08-01 Andrew Cagney <cagney@redhat.com>
1515 * NEWS: Mention that m32r is multi-arch.
1516 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1517 * configure.tgt: Recognize m32r-*-*.
1518 * config/m32r/tm-m32r.h: Delete file.
1519 * config/m32r/m32r.mt: New file.
1520 * m32r-rom.c (m32r_upload_command): Use hostent only when
1521 gethostname succeeds, in order to avoid a compilation
1523 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1526 2003-08-01 Michael Snyder <msnyder@redhat.com>
1528 * sh-tdep.c (sh_frame_align): New gdbarch method.
1529 (sh_gdbarch_init): Set up frame_align method.
1531 2003-07-31 Michael Snyder <msnyder@redhat.com>
1533 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1534 which is already covered by the new frames infrastructure.
1536 2003-07-31 Andrew Cagney <cagney@redhat.com>
1538 * user-regs.c (struct user_reg): Add "next" link.
1539 (struct user_regs): Replace "user" with "first" and "last" links.
1540 (append_user_reg): Add pre-allocated "reg" parameter.
1541 (builtin_user_regs): Provide initial value for "last".
1542 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1543 (user_regs_init): Allocate memory from the gdbarch obstack.
1544 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1545 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1547 (usernum_to_user_reg): New function.
1548 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1549 (value_of_user_reg): Use usernum_to_user_reg.
1550 (user_regs_free): Delete function.
1551 (_initialize_user_regs): Update register_gdbarch_data call.
1553 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1555 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1557 2003-07-30 Michael Snyder <msnyder@redhat.com>
1559 * value.h (value_being_returned): Add a struct_addr argument.
1560 * infcall.c (call_function_by_hand): Pass struct_addr to
1561 value_being_returned.
1562 * infcmd.c (print_return_value): Pass zero as struct_addr.
1563 * values.c (value_being_returned): If struct_addr is passed,
1564 use it instead of trying to recover it from the inferior.
1566 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1568 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1569 the prologue analyzer won't need to attempt to extract the pc
1570 value from the woefully incomplete dummy frame.
1571 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1572 possible. Disable code which modifies the frame.
1574 2003-07-28 Andrew Cagney <cagney@redhat.com>
1576 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1578 (annotate_breakpoints_table, annotate_record): Ditto.
1579 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1580 (annotate_field_name_end, annotate_field_value): Ditto.
1581 (annotate_field_end, annotate_frame_source_begin): Ditto.
1582 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1583 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1584 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1585 (annotate_frame_address_end, annotate_frame_address): Ditto.
1586 (annotate_frame_args, annotate_frame_end): Ditto.
1587 (annotate_frame_where, annotate_arg_begin): Ditto.
1588 (annotate_arg_name_end, annotate_arg_value): Ditto.
1589 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1590 (annotate_function_call, annotate_signal_name): Ditto.
1591 (annotate_signal_string, annotate_signal_name_end): Ditto.
1592 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1593 (annotate_value_begin, annotate_value_history_value): Ditto.
1594 (annotate_value_history_end, annotate_value_end): Ditto.
1595 (annotate_display_begin, annotate_display_number_end): Ditto.
1596 (annotate_display_format, annotate_display_expression): Ditto.
1597 (annotate_display_expression_end, annotate_display_value): Ditto.
1598 (annotate_display_end, annotate_array_section_begin): Ditto.
1599 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1600 (annotate_elt, annotate_array_section_end): Ditto.
1602 2003-07-28 Andrew Cagney <cagney@redhat.com>
1604 * regcache.c (struct regcache_descr): Update comments on
1606 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1607 sizeof_raw_register_valid_p.
1608 (init_regcache_descr): Set nr_raw_registers and
1609 sizeof_raw_register_valid_p before calling
1610 init_legacy_regcache_descr.
1612 2003-07-28 Andrew Cagney <cagney@redhat.com>
1614 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1617 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1619 * thread.c (info_threads_command): Use get_selected_frame ().
1620 Check that there is at least one non-sentinel frame.
1622 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1624 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1625 (m68hc11_pop_frame): Remove.
1626 (m68hc11_frame_saved_pc): Remove.
1627 (m68hc11_frame_chain): Remove.
1628 (m68hc11_frame_init_saved_regs): Remove.
1629 (m68hc11_init_extra_frame_info): Remove.
1630 (m68hc11_store_struct_return): Remove.
1631 (m68hc11_saved_pc_after_call): Remove.
1633 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1635 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1636 frame unwind information.
1637 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1638 and adapted for frame unwinding.
1639 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1640 (m68hc11_unwind_pc): New function.
1641 (m68hc11_frame_unwind_cache): New function to analyze frames.
1642 (m68hc11_frame_this_id): New function to create new frame struct.
1643 (m68hc11_frame_prev_register): New function to unwind a register from
1645 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1646 (m68hc11_frame_p): New function for the above.
1647 (m68hc11_frame_base_address): New function to return fp of frame.
1648 (m68hc11_frame_args_address): Update for frame.
1649 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1650 (m68hc11_unwind_sp): New function.
1651 (m68hc11_unwind_dummy_id): New function.
1652 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1655 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1657 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1658 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1659 when we are beyond the current pc.
1661 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1663 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1664 from m68hc11_push_arguments.
1665 (m68hc11_push_arguments): Remove.
1666 (m68hc11_push_return_address): Remove.
1667 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1668 handlers; remove deprecated_extra_stack_alignment_needed.
1670 2003-07-27 Andrew Cagney <cagney@redhat.com>
1672 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1673 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1674 REAL_PC and not the pointer.
1675 * hppa-hpux-tdep.c: Include frame.h
1677 2003-07-27 Andrew Cagney <cagney@redhat.com>
1679 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1680 GDB_MULTI_ACH_PARTIAL.
1682 2003-07-27 Andrew Cagney <cagney@redhat.com>
1684 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1685 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1686 operator at start and not end of line.
1687 (decode_prologue): Ditto.
1688 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1689 frame_unwind_register_unsigned instead of
1690 frame_unwind_unsigned_register.
1691 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1693 (m32r_push_dummy_call): Use register_size instead of
1695 (m32r_frame_sniffer): Replace m32r_frame_p.
1696 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1697 * m32r-rom.c (report_transfer_performance): Delete extern
1699 (m32r_load, m32r_upload_command): Use print_transfer_performance
1700 instead of report_transfer_performance.
1701 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1702 / add_show_from_set.
1704 2003-07-26 Andrew Cagney <cagney@redhat.com>
1706 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1707 store_return_value and extract_struct_value_address.
1709 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1712 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1713 NULL, default to the section containing PC.
1715 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1717 * NEWS: Mention "regs" deprecated for m68hc11 too.
1719 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1720 (m68hc11_print_register): New function to print out one register.
1721 (m68hc11_print_registers_info): New function to print registers.
1722 (show_regs): Deprecate and use the above.
1723 (m68hc11_gdbarch_init): Install the print_registers_info.
1725 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1727 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1728 that we have a SIGTRAP before returning non-zero.
1730 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1731 Elena Zannoni <ezannoni@redhat.com>
1733 * linespec.c (decode_line_2): Avoid crash if
1734 find_function_start_sal() returns empty record.
1736 2003-07-23 Andreas Schwab <schwab@suse.de>
1738 * ia64-tdep.c (ia64_print_insn): New function.
1739 (ia64_gdbarch_init): Set print_insn to it.
1740 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1741 deprecated_tm_print_insn_info.
1743 2003-07-22 Michael Snyder <msnyder@redhat.com>
1745 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1746 handle 8-bit returns (long long).
1747 (h8300h_extract_return_value): Ditto.
1748 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1750 2003-07-22 Andrew Cagney <cagney@redhat.com>
1752 * gdbarch.c Include "gdb_obstack.h".
1753 (struct gdbarch): Add an "obstack".
1754 (alloc_gdbarch_data): Allocate the gdbarch data using
1755 GDBARCH_OBSTACK_CALLOC.
1756 (free_gdbarch_data): Delete function.
1757 (gdbarch_obstack_zalloc): New function.
1758 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1759 Assert that the architecture is not initialized.
1760 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1761 vector from the obstack.
1762 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1763 architecture obstack.
1764 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1765 (set_gdbarch_data): Assert that the data is not initialized.
1766 (struct gdbarch_data): Delete member "free".
1767 (register_gdbarch_data): Do not initialize "free".
1768 * gdbarch.h, gdbarch.c: Re-generate.
1770 2003-07-22 Andrew Cagney <cagney@redhat.com>
1772 * configure.in (build_warnings): Add -Wformat-nonliteral.
1773 * configure: Re-generate.
1775 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1777 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1779 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1781 * findvar.c (read_var_value): Remove case for thread local storage
1782 variables. It is now entirely handled by the dwarf2 location
1784 * printcmd.c (address_info): Ditto.
1785 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1787 (struct symbol): Remove objfile field, which was used by
1788 LOC_THREAD_LOCAL_STATIC only.
1789 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1790 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1791 usage of objfile pointer.
1792 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1793 thread local variables.
1794 Add include of objfiles.h.
1795 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1797 * Makefile.in (dwarf2loc.o): Update dependencies.
1799 2003-07-22 Andrew Cagney <cagney@redhat.com>
1801 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1803 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1804 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1805 (struct value): Add opaque declaration.
1806 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1808 2003-07-21 Andrew Cagney <cagney@redhat.com>
1810 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1811 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1813 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1815 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1816 regcache_cooked_read_unsigned instead of read_register.
1817 (m68hc11_saved_pc_after_call): Likewise.
1818 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1819 instead of write_register.
1820 (m68hc11_register_type): New function.
1821 (m68hc11_register_virtual_type): Remove.
1822 (m68hc11_store_return_value): Convert to use the regcache.
1823 (m68hc11_extract_struct_value_address): Likewise.
1824 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1825 m68hc11_register_type; undeprecate store_return_value and
1826 extract_struct_value_address.
1828 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1830 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1831 and translate to use regcache.
1832 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1834 2003-07-18 Andrew Cagney <cagney@redhat.com>
1836 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1837 * gdbarch.h, gdbarch.c: Re-generate.
1838 * i386-tdep.c (i386_gdbarch_init): Do not set
1839 DWARF2_BUILD_FRAME_INFO.
1840 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1842 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1843 DWARF2_BUILD_FRAME_INFO.
1845 2003-07-18 Andrew Cagney <cagney@redhat.com>
1847 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1848 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1850 2003-07-18 Andrew Cagney <cagney@redhat.com>
1852 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1853 frame_unwind_address_in_block, instead of frame_pc_unwind.
1854 (dwarf2_frame_cache): Ditto.
1856 2003-07-18 Andrew Cagney <cagney@redhat.com>
1858 * user-regs.h (struct gdbarch): Declare opaque.
1859 * ui-out.h (struct ui_file): Declare opaque.
1860 * dwarf2-frame.h (struct frame_info): Declare opaque.
1862 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1864 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1866 (procfs_meminfo): Change strerror to safe_strerror.
1867 (procfs_can_run): Remove K&R badness.
1869 2003-07-17 Michael Snyder <msnyder@redhat.com>
1871 * remote-sim.c: Comment typo fix.
1873 2003-07-17 Andrew Cagney <cagney@redhat.com>
1875 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1877 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1878 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1879 GDB_MULTI_ARCH_PARTIAL.
1881 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1883 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1884 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1885 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1887 2003-07-16 Theodore A. Roth <troth@openavr.org>
1889 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1891 (avr_frame_unwind_cache): Don't unwind FP for main.
1893 Save the computed prev_sp.
1894 (avr_saved_regs_unwinder): Remove function.
1895 (avr_frame_prev_register): Use PC unwind logic from
1896 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1898 2003-07-16 Andrew Cagney <cagney@redhat.com>
1900 * frame-base.h (frame_base_p_ftype): Delete definition.
1901 (frame_base_append_predicate): Delete declaration.
1902 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1903 (frame_unwind_append_predicate): Delete declaration.
1904 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1905 (append_predicate): Delete parameter "p".
1906 (frame_unwind_append_predicate): Delete function.
1907 (frame_unwind_append_sniffer): Update call to append_predicate.
1908 (frame_unwind_free): Delete function.
1909 (_initialize_frame_unwind): Pass NULL as "free" to
1910 register_gdbarch_data.
1911 (frame_unwind_init): Append the dummy_frame_sniffer.
1912 (frame_unwind_find_by_frame): Simplify.
1913 * frame-base.c (struct frame_base_table): Delete field "p".
1914 (append_predicate): Delete parameter "p".
1915 (frame_base_append_predicate): Delete function.
1916 (frame_base_append_sniffer): Update call to append_predicate.
1917 (frame_base_free): Delete function.
1918 (frame_base_find_by_frame): Simplify.
1919 (_initialize_frame_base): Pass NULL as "free" to
1920 register_gdbarch_data.
1921 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1922 (x86_64_sigtramp_frame_sniffer): Replace
1923 "x86_64_sigtramp_frame_p".
1924 (x86_64_init_abi): Set the frame unwind sniffers.
1925 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1926 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1927 (m68k_gdbarch_init): Set the frame unwind sniffers.
1928 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1929 "i386_sigtramp_frame_p".
1930 (i386_frame_sniffer): Replace "i386_frame_p".
1931 (i386_gdbarch_init): Set the frame unwind sniffers.
1932 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1933 (avr_gdbarch_init): Set the frame unwind sniffers.
1934 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1935 "alpha_sigtramp_frame_p"
1936 (alpha_heuristic_frame_sniffer): Replace
1937 "alpha_heuristic_frame_p".
1938 (alpha_gdbarch_init): Set the frame unwind sniffers.
1939 (alpha_dwarf2_init_abi): Ditto.
1940 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1941 "alpha_debug_frame_p".
1942 (alpha_mdebug_frame_base_sniffer): Replace
1943 "alpha_mdebug_frame_base_p".
1944 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1945 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1946 (d10v_gdbarch_init): Set the frame unwind sniffer.
1947 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1948 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1949 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1950 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1951 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1952 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1954 2003-07-16 Michael Snyder <msnyder@redhat.com>
1956 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1957 should go thru sh_dsp_register_sim_regno, else the dsp regs
1958 will not get the right values.
1960 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1962 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1963 deprecated_store_floating by call to store_typed_floating.
1964 (sh_sh4_register_convert_to_raw): Substitute call to
1965 deprecated_extract_floating by call to extract_typed_floating.
1967 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1969 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1971 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1973 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1974 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1975 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1977 (do_pseudo_register): Remove.
1978 (sh_push_dummy_code): New function.
1979 (sh64_store_struct_return): Rename from sh_store_struct_return.
1980 Only called for sh64 now.
1981 (sh_extract_struct_value_address): Regcache'ify.
1982 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1983 and accomodate new tasks.
1984 (sh64_push_return_address): Rename from sh_push_return_address.
1985 Only called for sh64 now.
1986 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1988 (sh3e_sh4_extract_return_value): Regcache'ify.
1989 (sh_default_store_return_value): Ditto.
1990 (sh3e_sh4_store_return_value): Ditto.
1991 (sh_default_register_byte): Remove.
1992 (sh_sh4_register_byte): Remove.
1993 (sh_default_register_raw_size): Remove.
1994 (sh_sh4_register_raw_size): Remove.
1995 (sh_register_virtual_size): Remove.
1996 (sh_sh3e_register_virtual_type): Remove.
1997 (sh_sh3e_register_type): New function.
1998 (sh_sh4_register_virtual_type): Remove.
1999 (sh_sh4_register_type): New function.
2000 (sh_default_register_virtual_type): Remove.
2001 (sh_default_register_type): New function.
2002 (do_fv_register_info): Add parameters to accomodate call from
2003 sh_print_registers_info.
2004 (do_dr_register_info): Ditto.
2005 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2006 Add parameters to accomodate call from sh_print_registers_info.
2007 (sh_do_fp_register): Ditto.
2008 (sh64_do_pseudo_register): Call do_dr_register_info,
2009 do_fv_register_info and sh_do_fp_register with default parameters.
2010 (sh_do_register): Add parameters to accomodate call from
2011 sh_print_registers_info.
2012 (sh_print_register): Ditto.
2013 (sh_print_registers_info): Rename from sh_do_registers_info.
2014 Add parameters to be used as gdbarch_print_registers_info
2015 implementation. Accomodate removed do_pseudo_register function
2017 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2018 function pointer. Call sh_print_register with default parameters.
2019 (sh64_do_registers_info): Call sh_print_registers_info instead of
2020 sh_do_registers_info.
2021 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2022 detection of deprecated vs. non-deprecated functionality.
2023 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2024 function pointer assignments by direct function calls.
2026 2003-07-15 Andrew Cagney <cagney@redhat.com>
2028 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2029 (frame_register_unwind, create_new_frame): Ditto.
2030 (legacy_get_prev_frame, get_frame_type): Ditto.
2031 (get_frame_base_address): Use frame_base_find_by_frame.
2032 (get_frame_locals_address): Use frame_base_find_by_frame.
2033 (get_frame_args_address): Use frame_base_find_by_frame.
2034 * frame-base.h (frame_base_sniffer_ftype): Declare.
2035 (frame_base_append_sniffer): Declare.
2036 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2037 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2038 (frame_base_append_sniffer): New function.
2039 (frame_base_append_predicate): Add a NULL sniffer.
2040 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2041 (struct frame_base_table): Add "sniffer".
2042 (frame_base_free): Free the "sniffer" table.
2043 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2044 (frame_unwind_append_sniffer): Declare.
2045 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2046 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2047 (struct frame_unwind_table): Add "sniffer", delete "middle".
2048 (append_predicate): Add "sniffer" parameter, append the sniffer.
2049 (frame_unwind_init): Update append_predicate call.
2050 (frame_unwind_append_sniffer): New function.
2051 (frame_unwind_append_predicate): Update append_predicate call.
2052 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2054 2003-07-15 Andrew Cagney <cagney@redhat.com>
2056 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2057 before code inhibiting repeated unwind attempts. Add to
2058 commentary on that test's problems.
2059 * blockframe.c (inside_main_func): Look for "main" in the minimal
2061 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2064 2003-07-15 Andrew Cagney <cagney@redhat.com>
2066 * complaints.c (struct explanation): Define.
2067 (struct complaints): Change type of "explanation" to "struct
2069 (symfile_explanations): Convert to a "struct explanation" table.
2070 (vcomplaint): Update.
2072 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2074 * x86-64-linux-nat.c (regmap): Removed.
2075 (supply_gregset, fill_gregset): Call
2076 x86_64_linux_(fill,supply)_gregset functions.
2077 * x86-64-linux-tdep.c (USER_*): New defines.
2078 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2079 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2081 (fetch_core_registers): Ditto.
2082 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2083 * x86-64-linux-tdep.h: New file.
2084 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2086 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2088 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2090 * x86-64-tdep.c (x86_64_store_return_value): Use
2091 regcache_cooked_write_part instead of regcache_cooked_write.
2093 * configure.host: Add x86_64-*-freebsd*.
2094 * configure.tgt: Add x86_64-*-freebsd*.
2095 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2096 * amd64fbsd-nat.c: New file.
2097 * amd64fbsd-tdep.c: New file.
2098 * config/i386/nm-fbsd64.h: New file.
2099 * config/i386/fbsd64.mh: New file.
2100 * config/i386/fbsd64.mt: New file.
2102 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2104 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2105 `sc_regs_offset' and `sc_fpregs_offset'.
2106 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2107 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2108 (alpha_sigtramp_register_address): Rewrite to use new members of
2109 `struct gdbarch_tdep'.
2110 (alpha_gdbarch_init): Initialize new members of struct
2112 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2113 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2114 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2115 (alphafbsd_pc_in_sigtramp): Implement.
2116 (alphafbsd_sigtramp_offset): New function.
2117 (alphafbsd_sigcontext_addr): New function.
2118 (alphafbsd_init_abi): Initialize signal trampoline related members
2119 of `struct gdbarch_tdep'.
2120 (_initialize_alphafbsd_tdep): Add prototype.
2122 2003-07-11 Theodore A. Roth <troth@openavr.org>
2124 * Makefile.in (install-only): Quote sed expression when generating
2127 2003-07-11 Richard Henderson <rth@redhat.com>
2129 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2130 * dwarf2-frame.c: Include complaints.h.
2131 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2132 variable initialization; return NULL on error.
2133 (decode_frame_entry): New.
2135 2003-07-11 Andrew Cagney <cagney@redhat.com>
2137 * frame.h (frame_address_in_block): Delete declaration.
2138 * blockframe.c (frame_address_in_block): Delete function.
2139 (get_frame_block): Use get_frame_address_in_block.
2140 (block_innermost_frame): Ditto.
2141 * stack.c (print_frame, backtrace_command_1): Ditto.
2143 * frame.h (get_frame_address_in_block): Declare.
2144 (frame_unwind_address_in_block): Declare.
2145 * frame.c (frame_unwind_address_in_block): New function.
2146 (get_frame_address_in_block): New function.
2148 2003-07-10 Andrew Cagney <cagney@redhat.com>
2150 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2151 pre-default. Note: re-generate has no effect.
2153 2003-07-10 Andrew Cagney <cagney@redhat.com>
2155 * gdbarch.sh: When a variable, but not a function, compare against
2156 0. Fix problem in previous patch.
2157 * gdbarch.c: Re-generate.
2159 2003-07-10 Andrew Cagney <cagney@redhat.com>
2161 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2162 functions against NULL, not 0.
2163 * gdbarch.c: Re-generate.
2165 2003-07-10 Fred Fish <fnf@ninemoons.com>
2167 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2168 null string instead of a null pointer.
2169 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2171 2003-07-09 Michael Snyder <msnyder@redhat.com>
2173 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2175 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2177 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2178 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2179 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2180 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2181 * x86-64-tdep.c: ... from here.
2183 2003-07-09 Andreas Schwab <schwab@suse.de>
2185 * m68k-tdep.h (enum struct_return): Define.
2186 (struct gdbarch_tdep): Add struct_return.
2187 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2188 bytes are padded to the right, not to the left. Pass struct value
2189 address in register %a1, not on stack.
2190 (m68k_use_struct_convention): New function.
2191 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2192 struct_return in tdep to pcc_struct_return.
2193 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2196 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2198 * somread.c (som_symfile_offsets): Fix compilation error.
2200 2003-07-09 Andrew Cagney <cagney@redhat.com>
2202 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2203 Add comments about the checks.
2205 2003-07-08 Andrew Cagney <cagney@redhat.com>
2207 * Makefile.in: Make dependency section headers consistent.
2208 (config_h): Move to $BUILD headers section.
2209 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2210 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2211 (ada-exp.tab.c): Move to YACC/LEX section.
2212 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2213 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2215 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2217 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2218 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2219 of strerror with safe_strerror, use ISO C function definitions,
2220 and replace instances of sprintf with snprintf.
2222 2003-07-07 Andrew Cagney <cagney@redhat.com>
2224 * frame.c (get_prev_frame): Enable check for identical frames.
2225 Update comments. Update error messages.
2227 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2229 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2231 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2233 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2234 sort_symtab_syms, no longer necessary.
2236 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2238 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2240 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2242 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2243 (mips_register_byte): Likewise.
2245 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2247 * Makefile.in (sparc_tdep_h): New.
2248 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2249 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2250 * sparc-linux-nat.c: Include "sparc-tdep.h".
2251 * sparc-nat.c: Likewise.
2252 * sparc-tdep.c: Likewise.
2253 * sparc64nbsd-nat.c: Likewise.
2254 * sparcnbsd-nat.c: Likewise.
2255 * sparcnbsd-tdep.c: Likewise.
2256 * sparc-tdep.h: New file.
2257 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2258 and sparc_npc_regnum.
2260 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2262 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2263 (mips_linux_cannot_store_register): List supported instead of
2264 unsupported registers.
2266 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2268 * disasm.c (dump_insns): Separate instructions from addresses.
2270 2003-07-07 Andreas Schwab <schwab@suse.de>
2272 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2274 * m68k-tdep.c (NUM_FREGS): Delete.
2275 (SIG_PC_FP_OFFSET): Delete.
2276 (TARGET_M68K): Delete.
2277 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2278 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2279 P_MOVEL_SP, P_MOVEML_SP): Define.
2280 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2282 (m68k_register_raw_size): Delete.
2283 (m68k_register_virtual_size): Delete.
2284 (m68k_register_type): Renamed from m68k_register_virtual_type and
2285 add gdbarch argument.
2286 (m68k_store_struct_return): Delete.
2287 (m68k_deprecated_extract_return_value): Delete.
2288 (m68k_deprecated_extract_struct_value_address): Delete.
2289 (m68k_frame_chain): Delete.
2290 (m68k_frame_saved_pc): Delete.
2291 (m68k_fix_call_dummy): Delete.
2292 (m68k_push_dummy_frame): Delete.
2293 (m68k_pop_frame): Delete.
2294 (m68k_extract_return_value): New function.
2295 (m68k_store_return_value): Rewrite using regcache.
2296 (m68k_extract_struct_value_address): Rewrite using regcache.
2297 (m68k_push_dummy_call): New function.
2298 (struct m68k_frame_cache): Define.
2299 (m68k_alloc_frame_cache): New function.
2300 (m68k_analyze_frame_setup): New function.
2301 (m68k_analyze_register_saves): New function.
2302 (m68k_analyze_prologue): New function.
2303 (m68k_skip_prologue): Rewrite using above functions.
2304 (m68k_unwind_pc): New function.
2305 (m68k_frame_cache): New function.
2306 (m68k_frame_this_id): New function.
2307 (m68k_frame_prev_register): New function.
2308 (m68k_frame_unwind): New variable.
2309 (m68k_frame_p): New function.
2310 (m68k_sigtramp_frame_cache): New function.
2311 (m68k_sigtramp_frame_this_id): New function.
2312 (m68k_sigtramp_frame_prev_register): New function.
2313 (m68k_sigtramp_frame_unwind): New variable.
2314 (m68k_sigtramp_frame_p): New function.
2315 (m68k_frame_base_address): New function.
2316 (m68k_frame_base): New function.
2317 (m68k_unwind_dummy_id): New function.
2318 (fill_gregset): Use regcache_collect.
2319 (fill_fpregset): Likewise.
2320 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2322 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2323 deprecated_init_frame_pc, deprecated_store_struct_return,
2324 deprecated_extract_return_value, deprecated_store_return_value,
2325 deprecated_frame_chain, deprecated_frame_saved_pc,
2326 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2327 deprecated_register_virtual_size,
2328 deprecated_max_register_raw_size,
2329 deprecated_max_register_virtual_size,
2330 deprecated_register_virtual_type, deprecated_register_size,
2331 deprecated_register_byte, deprecated_register_bytes,
2332 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2333 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2334 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2335 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2336 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2337 deprecated_push_dummy_frame, deprecated_pop_frame,
2338 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2339 only if SYSCALL_TRAP is defined. Set extract_return_value,
2340 store_return_value, extract_struct_value_address, register_type,
2341 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2343 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2344 M68K_MAX_REGISTER_SIZE): Define.
2345 (struct m68k_sigtramp_info): Define.
2346 (struct gdbarch_tdep): Add get_sigtramp_info.
2347 * m68klinux-nat.c (fetch_register): Use register_size instead of
2348 REGISTER_RAW_SIZE. Don't put assignment in if.
2349 (store_register): Likewise.
2350 (fetch_inferior_registers): Likewise.
2351 (store_inferior_registers): Likewise.
2352 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2353 (m68k_linux_frame_saved_pc): Delete.
2354 (m68k_linux_sigcontext_reg_offset,
2355 m68k_linux_ucontext_reg_offset): Define.
2356 (m68k_linux_get_sigtramp_info): New function.
2357 (m68k_linux_extract_return_value): Rewrite using regcache.
2358 (m68k_linux_store_return_value): Likewise.
2359 (m68k_linux_extract_struct_value_address): Likewise.
2360 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2361 Don't set deprecated_frame_saved_pc,
2362 deprecated_extract_return_value, deprecated_store_return_value,
2363 deprecated_extract_struct_value_address. Set
2364 extract_return_value, store_return_value,
2365 extract_struct_value_address.
2367 2003-07-07 Andrew Cagney <cagney@redhat.com>
2369 * expprint.c: Include "user-regs.h" instead of "frame.h".
2370 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2371 frame_map_regnum_to_name.
2372 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2373 (frame_map_name_to_regnum): Simplify, call
2374 user_reg_map_name_to_regnum.
2375 (frame_map_regnum_to_name): Simplify, call
2376 user_reg_map_regnum_to_name.
2377 (frame_register_unwind): Update.
2378 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2379 (_initialize_frame_reg): Call user_reg_add_builtin.
2380 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2381 (value_of_register): Use value_of_user_reg.
2382 * eval.c (evaluate_subexp_standard): Update.
2383 * parse.c (write_dollar_variable): Update.
2384 * d10v-tdep.c (d10v_print_registers_info): Update.
2385 * infcmd.c (registers_info): Update.
2386 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2387 (builtin_regs_h): Delete macro.
2388 (user_regs_h): Define.
2389 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2390 (builtin-regs.o): Delete target.
2391 (user-regs.o): Specify dependencies.
2392 (expprint.o): Update dependencies.
2393 (findvar.o): Update dependencies.
2394 (frame.o): Update dependencies.
2395 (std-regs.o): Update dependencies.
2397 2003-07-06 Christopher Faylor <cgf@redhat.com>
2399 * win32-nat.c (solib_symbols_add): Use one variable for all section
2400 address stuff. Pass variable rather than address of variable to
2401 safe_symbol_file_add.
2403 2003-07-06 Andreas Schwab <schwab@suse.de>
2405 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2407 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2409 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2411 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2413 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2415 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2417 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2418 * config/i386/nto.mh: New file.
2419 * config/i386/nm-nto.h: New file.
2420 * configure.host: Add i[3456]86-*-nto*.
2422 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2424 * remote-vx.c (vx_add_symbols): Fix compilation error.
2426 2003-07-03 Andrew Cagney <cagney@redhat.com>
2428 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2429 * gdbarch.h, gdbarch.c: Re-generate.
2430 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2431 (legacy_register_name): Declare.
2432 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2433 (REGISTER_NAME): Define.
2434 * sparc-tdep.c (legacy_register_name): New function.
2435 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2436 (REGISTER_NAME): Define.
2437 (hppa64_register_name): Declare.
2438 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2439 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2440 (hppa64_register_name): New function.
2441 (hppa_register_name): New function.
2442 * arch-utils.c (legacy_register_name): Delete.
2443 * arch-utils.h (legacy_register_name): Delete.
2445 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2447 * cli/cli-interp.c (cli_interpreter_resume): Update the
2448 cli_uiout's stream to gdb_stdout.
2450 2003-07-03 Andrew Cagney <cagney@redhat.com>
2452 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2454 * gdbarch.h, gdbarch.c: Re-generate.
2455 * regcache.c (init_regcache_descr): Use legacy code when either
2456 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2458 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2460 * NEWS: Move "set logging" entry into GDB 6.0 section.
2462 2003-07-02 Jim Blandy <jimb@redhat.com>
2464 * s390-tdep.c (struct frame_extra_info): new member:
2465 'stack_bought_valid'.
2466 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2467 initialize fextra_info->stack_bought.
2468 (s390_frameless_function_invocation): Don't trust the value of
2469 fextra_info_ptr->stack_bought unless
2470 fextra_info->stack_bought_valid is set.
2472 New S390 prologue analyzer.
2473 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2474 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2475 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2476 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2477 compute_x_addr, s390_on_stack, s390_store,
2478 s390_get_signal_frame_info): New functions.
2479 (S390_NUM_SPILL_SLOTS): New macro.
2480 (s390_get_frame_info): Rewritten.
2481 (is_arg_reg): Deleted.
2483 Break out the decoding of S/390 instructions into separate
2484 functions, to make it more legible, and easier to check
2486 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2487 is_rx, is_rxe): New functions.
2488 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2489 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2490 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2491 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2492 enums for opcode values. (Is this an improvement?)
2494 2003-07-02 Andrew Cagney <cagney@redhat.com>
2496 * i386-tdep.c: Revert change committed as part of trad-frame code
2499 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2501 * breakpoint.c (insert_catchpoint): Make static.
2503 2003-07-02 Andreas Schwab <schwab@suse.de>
2505 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2506 former ia64_push_arguments and ia64_push_return_address, and use
2507 regcache functions instead of read/write_register.
2508 (ia64_gdbarch_init): Set push_dummy_call instead of
2509 deprecated_push_arguments and deprecated_push_return_address.
2511 2003-07-01 Andreas Jaeger <aj@suse.de>
2513 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2515 Set %rax only to number of SSE registers used.
2517 2003-07-01 Andrew Cagney <cagney@redhat.com>
2519 * trad-frame.h: Update comments, a -1 .addr is reserved.
2520 (trad_frame_value_p, trad_frame_addr_p): Declare.
2521 (trad_frame_reg_p): Declare.
2522 (trad_frame_set_value): Rename trad_frame_register_value.
2523 (trad_frame_set_unknown): Declare.
2524 * trad-frame.c (trad_frame_realreg_p): New function.
2525 (trad_frame_addr_p, trad_frame_value_p): New function.
2526 (trad_frame_set_unknown): New function.
2527 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2528 (trad_frame_prev_register): Use trad_frame_realreg_p,
2529 trad_frame_addr_p and trad_frame_value_p.
2530 (trad_frame_set_value): Rename trad_frame_register_value.
2531 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2532 and trad_frame_set_value.
2534 2003-06-30 Jim Blandy <jimb@redhat.com>
2536 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2537 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2538 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2539 for 16 registers, and then 32 more bytes.
2540 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2542 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2543 Move up in the file, since it's now used by is_simple_arg.
2544 (is_simple_arg): Don't assume registers are four bytes long.
2545 Exclude all double arguments. Extended floats are not simple
2547 (is_power_of_two): New function.
2548 (pass_by_copy_ref): Call is_power_of_two, and check that the
2549 length fits in a register, rather than listing all the acceptable
2550 sizes. Extended floats are not passed by reference.
2551 (s390_push_arguments): Don't assume registers are four bytes long.
2552 Reserve an argument register to point to the buffer for structures
2553 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2554 S390_STACK_FRAME_OVERHEAD.
2556 2003-06-30 Andreas Schwab <schwab@suse.de>
2558 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2559 format error message.
2561 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2563 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2565 2003-06-30 David Carlton <carlton@kealia.com>
2567 Band-aid for PR c++/1245.
2568 * Makefile.in (cp-support.o): Depend on complaints_h.
2569 * cp-support.c: Include complaints.h. Add declaration for
2570 find_last_component.
2571 (cp_find_first_component): Separate code into
2572 cp_find_first_component_aux.
2573 (cp_find_first_component_aux): Call demangled_name_complaint.
2574 (demangled_name_complaint): New.
2576 2003-06-30 Andrew Cagney <cagney@redhat.com>
2578 * remote.c (remote_write_bytes): Explicitly compute and then use
2579 the payload size. Update comments to reflect. Fixes problem of
2580 GDB not sending small packets as found by Fred Fish.
2582 2003-06-30 Andrew Cagney <cagney@redhat.com>
2584 * remote.c (remote_async_wait): Fix -Wformat problem.
2586 2003-06-29 Andrew Cagney <cagney@redhat.com>
2588 * remote.c (remote_wait): Call error, and not warning, when the
2590 (remote_async_wait): Ditto.
2592 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2594 * sparc-tdep.c (sparc_y_regnum): Make external again.
2596 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2598 * cli/cli-logging.c (pop_output_files): Add void to function
2601 2003-06-29 Andrew Cagney <cagney@redhat.com>
2603 * frame.c (frame_register_unwind): Use unsigned char when dumping
2604 the buffer contents.
2606 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2608 * cli/cli-logging.c: New file.
2609 * cli-out.c (struct ui_out_data): Add original_stream.
2610 (cli_redirect): New function.
2611 (cli_ui_out_impl): Add cli_redirect.
2612 (cli_out_new): Initialize original_stream.
2613 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2614 (uo_redirect, ui_out_redirect): New.
2615 * ui-out.h (struct ui_out_impl): Add redirect member.
2616 (redirect_ftype): New.
2617 (ui_out_redirect): Add prototype.
2618 * Makefile.in: Add rules for cli-logging.c.
2619 * NEWS: Mention "set logging".
2621 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2623 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2625 2003-06-27 Andrew Cagney <cagney@redhat.com>
2627 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2628 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2629 * avr-tdep.c (avr_call_dummy_address): Delete function.
2630 (avr_gdbarch_init): Do not set call_dummy_address.
2632 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2634 * symfile.c (syms_from_objfile): Move variables to inner block.
2635 Move the checks for the non-mainline case a bit earlier to avoid
2636 doing some useless computations.
2638 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2640 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2642 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2644 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2647 2003-06-26 Michael Chastain <mec@shout.net>
2649 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2650 gdb/testsuite/gdb.c++/pr-1210.exp.
2652 2003-06-26 Andrew Cagney <cagney@redhat.com>
2654 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2655 altivec_expression.h and altivec_registers.h.
2657 2003-06-26 Andrew Cagney <cagney@redhat.com>
2659 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2660 info->mach when MIPS16. Patch suggested by Fred Fish.
2662 2003-06-26 Andrew Cagney <cagney@redhat.com>
2664 * utils.c (internal_vproblem): Print the problem to a reason
2665 buffer and then pass to query. Make the msg variable more local.
2667 2003-06-26 Andrew Cagney <cagney@redhat.com>
2669 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2670 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2671 * gdbarch.h, gdbarch.c: Re-generate.
2672 * frame-base.c (default_frame_args_address): Update. Use
2673 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2675 (default_frame_locals_address): Ditto for
2676 DEPRECATED_FRAME_LOCALS_ADDRESS.
2677 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2678 (vax_frame_num_args): Update.
2679 (vax_gdbarch_init): Update.
2680 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2681 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2682 * mcore-tdep.c (mcore_gdbarch_init): Update.
2683 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2684 * ia64-tdep.c (ia64_gdbarch_init): Update.
2685 * symtab.h (address_class): Update comments.
2686 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2687 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2688 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2689 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2690 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2691 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2692 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2693 * alpha-mdebug-tdep.c: Update.
2694 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2696 2003-06-26 Andreas Jaeger <aj@suse.de>
2698 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2699 of SSE registers so that varargs functions work. Rework handling
2700 of passing arguments on the stack.
2701 (x86_64_store_return_value): Return double and float values in SSE
2704 2003-06-24 Michael Chastain <mec@shout.net>
2706 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2707 the "constructor breakpoints ignored" bug.
2709 2003-06-25 David Carlton <carlton@kealia.com>
2711 * MAINTAINERS: Update e-mail address.
2713 2003-06-24 Jim Blandy <jimb@redhat.com>
2715 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2717 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2719 (ppc_linux_init_abi): Register it as the
2720 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2722 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2723 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2726 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2727 (ppc64_standard_linkage_target): Use it.
2729 2003-06-23 Andrew Cagney <cagney@redhat.com>
2731 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2732 for 0 "int0" and 4 "int32" sized registers.
2733 * gdbtypes.c (builtin_type_int0): Define.
2734 (build_gdbtypes): Initialize builtin_type_int0.
2735 * gdbtypes.h (builtin_type_int0): Declare.
2737 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2739 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2740 as characters are unsigned.
2742 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2745 * dwarfread.c (struct_type): Skip static fields without crashing.
2747 2003-06-22 Andrew Cagney <cagney@redhat.com>
2749 GDB 6.0 branch created.
2751 * PROBLEMS: Update. Empty.
2754 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2756 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2757 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2759 2003-06-22 Andrew Cagney <cagney@redhat.com>
2761 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2762 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2765 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2767 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2770 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2772 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2773 argument of val_print.
2774 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2775 to the address argument of baseclass_offset or target_read_memory.
2776 Do add it to the argument of cp_print_value_fields.
2778 2003-06-21 Andrew Cagney <cagney@redhat.com>
2780 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2781 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2782 instead of 0..NUM_REGS.
2783 (mips_register_reggroup_p): New function.
2784 (mips_pseudo_register_write): New function.
2785 (mips_pseudo_register_read): New function.
2786 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2787 based on the register's type.
2788 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2790 (mips_get_saved_register): Simplify. Assert that REGNO is a
2792 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2793 (mips_register_type): Replace mips_register_virtual_type. Map
2794 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2796 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2797 that the register is cooked / virtual.
2798 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2799 Only get the extra info when needed.
2800 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2801 (mips32_heuristic_proc_desc): Fetch the cooked register.
2802 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2803 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2804 (mips_print_register): Use gdbarch_register_type, instead of
2805 REGISTER_VIRTUAL_TYPE.
2806 (print_gp_register_row): Use gdbarch_register_type, instead of
2807 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2808 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2809 Print the pseudo / cooked registers.
2810 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2811 Print the pseudo / cooked registers.
2812 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2813 REG_NUM is pseudo / cooked.
2814 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2815 (mips_n32n64_xfer_return_value): Ditto.
2816 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2817 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2818 (mips_register_sim_regno): New function.
2819 (mips_gdbarch_init): Set deprecated_register_byte,
2820 register_group_p, pseudo_register_write, pseudo_register_read,
2821 register_sim_regno, and num_pseudo_regs. Set register_type,
2822 instead of register_virtual_type.
2823 * Makefile.in (mips-tdep.o): Update dependencies.
2824 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2825 REGISTER_VIRTUAL_TYPE.
2826 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2827 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2828 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2829 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2830 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2832 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2834 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2835 * cli/cli-cmds.c: Include "gdb_vfork.h".
2836 (shell_escape): Use vfork.
2838 2003-06-21 Andrew Cagney <cagney@redhat.com>
2840 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2841 32 bit floating-point register saves.
2843 * frame.h (deprecated_unwind_get_saved_register): Delete.
2844 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2845 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2846 and deprecated_get_next_frame_hack instead of
2847 deprecated_unwind_get_saved_register.
2849 * mips-tdep.c (mips_dump_tdep): Do not print
2850 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2852 * frame.c (get_frame_register): New function.
2853 (frame_unwind_register_signed): New function.
2854 (get_frame_register_signed): New function.
2855 (frame_unwind_register_unsigned): New function.
2856 (get_frame_register_unsigned): New function.
2857 * frame.h: Add comments on naming schema.
2858 (get_frame_register, frame_unwind_register_signed): Declare.
2859 (get_frame_register_signed, get_frame_register_signed): Declare.
2860 (frame_unwind_register_unsigned): Declare.
2861 (get_frame_register_unsigned): Declare.
2863 2003-06-20 Theodore A. Roth <troth@openavr.org>
2865 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2867 2003-06-20 Theodore A. Roth <troth@openavr.org>
2869 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2870 (avr_read_sp): Ditto.
2872 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2874 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2875 * config/arm/nm-linux.h: Likewise.
2876 * config/arm/tm-linux.h: Likewise.
2877 * config/ia64/nm-linux.h: Likewise.
2878 * config/ia64/tm-ia64.h: Likewise.
2879 * config/s390/tm-linux.h: Likewise.
2880 * config/s390/tm-s390.h: Likewise.
2881 * s390-nat.c: Likewise.
2882 * s390-tdep.c: Likewise.
2884 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2885 * config/ia64/linux.mt: Likewise.
2886 * config/m68k/linux.mh: Likewise.
2887 * config/mips/linux.mt: Likewise.
2888 * config/powerpc/linux.mh: Likewise.
2889 * config/sh/linux.mt: Likewise.
2891 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2893 * solib.c (solib_open): Change tests for whether to search
2894 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2897 2003-06-19 Theodore A. Roth <troth@openavr.org>
2899 * avr-tdep.c (avr_frame_address): Delete function.
2900 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2901 set_gdbarch_frame_args_address.
2903 2003-06-19 Andrew Cagney <cagney@redhat.com>
2905 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2906 (REGISTER_CONVERT_FROM_TYPE): Delete.
2907 (mips_register_convert_to_type): Delete declaration.
2908 (mips_register_convert_from_type): Delete declaration.
2909 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2912 2003-06-19 Michael Snyder <msnyder@redhat.com>
2914 * linux-nat.h: New file.
2915 * linux-nat.c: Include linux-nat.h.
2916 * lin-lwp.c: Include linux-nat.h.
2917 Move struct lwp_info def to linux-nat.h.
2918 * linux-proc.c: Include linux-nat.h.
2919 (linux_make_note_section): Iterate over lwps instead of threads.
2920 (linux_do_thread_registers): Use lwp instead of merged pid.
2921 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2922 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2923 Add dependency on linux_nat_h.
2925 2003-06-19 Theodore A. Roth <troth@openavr.org>
2927 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2929 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2931 * varobj.c (get_type, get_target_type): Use check_typedef.
2933 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2935 * breakpoint.c (insert_catchpoint): Call internal_error.
2937 2003-06-19 Theodore A. Roth <troth@openavr.org>
2939 * avr-tdep.c (avr_push_dummy_code): Delete function.
2940 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2942 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2944 * arch-utils.c (default_prepare_to_proceed): Remove.
2945 (generic_prepare_to_proceed): Remove.
2946 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2947 (generic_prepare_to_proceed): Remove prototype.
2948 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2949 * gdbarch.c: Regenerate.
2950 * gdbarch.h: Regenerate.
2951 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2952 * hppah-nat.c (hppa_switched_threads): Remove.
2953 * infrun.c (prepare_to_proceed): New static function, copied from
2954 generic_prepare_to_proceed. Remove select_it argument.
2955 (proceed): Call prepare_to_proceed.
2956 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2958 (ptrace_wait): Don't set the removed variables.
2959 (hppa_switched_threads): Remove.
2960 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2961 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2962 (lin_lwp_prepare_to_proceed): Remove prototype.
2963 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2964 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2966 2003-06-18 Theodore A. Roth <troth@openavr.org>
2968 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2970 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2971 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2972 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2973 (AVR_PROLOGUE_*): Enumerate prologue types.
2974 (struct frame_extra_info): Remove.
2975 (struct avr_unwind_cache): Define.
2976 (avr_write_sp): Delete function.
2977 (avr_read_fp): Ditto.
2978 (avr_init_extra_frame_info): Ditto.
2979 (avr_pop_frame): Ditto.
2980 (avr_frame_saved_pc): Ditto.
2981 (avr_saved_pc_after_call): Ditto.
2982 (avr_push_return_address): Ditto.
2983 (avr_frame_chain): Ditto.
2984 (avr_store_struct_return): Ditto.
2985 (avr_push_arguments): Ditto.
2986 (avr_scan_prologue): Update comments. Changed to set up the info for
2987 cache unwinding. Now returns end of prologue PC.
2988 (avr_skip_prologue): Better handling of functions lacking a prologue
2989 by using avr_scan_prologue.
2990 (avr_scan_arg_moves): New function.
2991 (avr_saved_regs_unwinder): Ditto.
2992 (avr_frame_unwind_cache): Ditto.
2993 (avr_unwind_pc): Ditto.
2994 (avr_frame_this_id): Ditto.
2995 (avr_frame_prev_register): Ditto.
2996 (avr_frame_p): Ditto.
2997 (avr_frame_base_address ): Ditto.
2998 (avr_unwind_dummy_id): Ditto.
2999 (avr_push_dummy_code): Ditto.
3000 (push_stack_item): Ditto.
3001 (pop_stack_item): Ditto.
3002 (avr_push_dummy_call): Ditto.
3003 (struct stack_item): Define.
3004 (avr_frame_unwind): Declare structure.
3005 (avr_frame_base): Ditto.
3006 (avr_gdbarch_init): Remove calls to
3007 set_gdbarch_deprecated_init_frame_pc,
3008 set_gdbarch_deprecated_target_read_fp,
3009 set_gdbarch_deprecated_dummy_write_sp,
3010 set_gdbarch_deprecated_fp_regnum,
3011 set_gdbarch_deprecated_push_arguments,
3012 set_gdbarch_deprecated_push_return_address,
3013 set_gdbarch_deprecated_pop_frame,
3014 set_gdbarch_deprecated_store_struct_return,
3015 set_gdbarch_deprecated_frame_init_saved_regs,
3016 set_gdbarch_deprecated_init_extra_frame_info,
3017 set_gdbarch_deprecated_frame_chain,
3018 set_gdbarch_deprecated_frame_saved_pc,
3019 set_gdbarch_deprecated_saved_pc_after_call.
3020 Add calls to set_gdbarch_push_dummy_call,
3021 set_gdbarch_push_dummy_code,
3022 frame_unwind_append_predicate,
3023 frame_base_set_default,
3024 set_gdbarch_unwind_dummy_id,
3025 set_gdbarch_unwind_pc.
3028 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3030 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3031 registers for H8/300S.
3032 (h8300_print_registers_info): Ditto.
3033 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3035 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3037 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3038 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3039 (lin_lwp_wait): Likewise. Update comments.
3040 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3041 (pull_pid_from_list, linux_record_stopped_pid): New.
3043 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3045 * ada-lang.c (scan_discrim_bound): Name first argument.
3046 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3047 declared by ALL_BLOCK_SYMBOLS.
3049 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3051 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3052 ("regcache.h"): Include it.
3053 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3055 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3057 * NEWS: Mention gdbserver detach change and "disconnect" command.
3058 * infcmd.c (disconnect_command): New function.
3059 (_initialize_infcmd): Add ``disconnect'' command.
3060 * remote.c (remote_async_detach): Delete.
3061 (remote_detach): Merge remote_async_detach.
3062 (remote_disconnect): New.
3063 (init_remote_ops): Set to_disconnect.
3064 (init_remote_cisco_ops): Likewise.
3065 (init_remote_async_ops): Likewise. Use remote_detach.
3066 * target.c (cleanup_target): Default to_disconnect.
3067 (update_current_target): Inherit to_disconnect.
3068 (target_disconnect, debug_to_disconnect): New functions.
3069 (setup_target_debug): Set to_disconnect.
3070 * target.h (struct target_ops): Add to_disconnect.
3071 (target_disconnect): Add prototype.
3073 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3075 * breakpoint.c (insert_catchpoint): New function.
3076 (insert_breakpoints): Use catch_exceptions to call
3077 insert_catchpoint. Disable catchpoints if they fail to insert.
3079 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3081 * symfile.c (reread_symbols): Clear sym_private.
3083 2003-06-17 Andrew Cagney <cagney@redhat.com>
3085 * trad-frame.h (struct frame_info): Add opaque declaration.
3086 * remote-fileio.h (struct cmd_list_element): Add opaque
3088 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3091 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3093 * remote.c (remote_prepare_to_store): Replace call to
3094 deprecated_read_register_bytes with multiple regcache_raw_read
3097 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3099 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3100 (nto_find_and_open_solib): Likewise.
3101 (nto_init_solib_absolute_prefix): Likewise.
3102 (_initialize_nto_tdep): Fix indentation.
3104 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3106 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3108 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3110 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3112 2003-06-17 Jim Blandy <jimb@redhat.com>
3114 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3116 2003-06-16 Theodore A. Roth <troth@openavr.org>
3118 * avr-tdep.c (avr_extract_return_value): New function.
3119 (avr_gdbarch_init): Set extract_return_value method.
3121 2003-06-16 Andrew Cagney <cagney@redhat.com>
3123 * frame.h (deprecated_get_next_frame_hack): Declare.
3124 * frame.c (legacy_saved_regs_prev_register): Only require
3125 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3126 there are always saved regs.
3127 (deprecated_generic_get_saved_register): Do not require
3128 DEPRECATED_FRAME_INIT_SAVED_REGS.
3129 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3130 use frame ID unwind instead.
3131 (deprecated_get_next_frame_hack): New function.
3133 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3135 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3136 (h8300_push_dummy_call): ...this function. Some minor optimization.
3137 (h8300_push_return_address): Remove.
3138 (h8300_gdbarch_init): Remove calls to
3139 set_gdbarch_deprecated_dummy_write_sp,
3140 set_gdbarch_deprecated_push_arguments and
3141 set_gdbarch_deprecated_push_return_address.
3142 Add call to set_gdbarch_push_dummy_call.
3144 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3146 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3147 (E_PSEUDO_EXR_REGNUM): Ditto.
3148 (h8300_is_argument_spill): Check for instructions moving argument
3149 registers into safe registers.
3150 (h8300_skip_prologue): Check for stm instruction to push registers
3151 used for register variables onto stack.
3152 (gdb_print_insn_h8300): Remove.
3153 (h8300_examine_prologue): Add a comment.
3154 (h8300_register_name): Take pseudo registers into account.
3155 (h8300s_register_name): Ditto.
3156 (h8300sx_register_name): Ditto.
3157 (h8300_print_register): Ditto.
3158 (h8300_print_registers_info): Define "nice" printing order.
3159 (h8300_saved_pc_after_call): Take pseudo registers into account.
3160 (h8300_register_type): Ditto. Return type used for remote connection
3161 when requesting real CCR or EXR register, return actual type when
3162 requesting pseudo CCR or EXR.
3163 (h8300_pseudo_register_read): New function.
3164 (h8300_pseudo_register_write): Ditto.
3165 (h8300_dbg_reg_to_regnum): Ditto.
3166 (h8300s_dbg_reg_to_regnum): Ditto.
3167 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3168 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3169 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3170 set_gdbarch_print_insn architecture dependent.
3171 Call set_gdbarch_pseudo_register_read and
3172 set_gdbarch_pseudo_register_write.
3173 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3175 2003-06-16 Andrew Cagney <cagney@redhat.com>
3177 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3178 * gdbarch.h, gdbarch.c: Re-generate.
3179 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3180 * s390-tdep.c (s390_gdbarch_init): Update.
3181 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3182 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3183 * mips-tdep.c (mips_gdbarch_init): Update.
3184 * mcore-tdep.c (mcore_gdbarch_init): Update.
3185 * cris-tdep.c (cris_gdbarch_init): Update.
3186 * infcall.c (call_function_by_hand): Update.
3187 * ia64-tdep.c (ia64_push_arguments): Update comment.
3188 * frame.c (legacy_get_prev_frame): Do not assume
3189 SAVE_DUMMY_FRAME_TOS_P.
3190 * dummy-frame.c (find_dummy_frame): Update comment.
3192 2003-06-16 Andrew Cagney <cagney@redhat.com>
3194 * regcache.c (do_cooked_read): Do not use register_valid_p.
3196 2003-06-15 Theodore A. Roth <troth@openavr.org>
3198 * avr-tdep.c (avr_register_type): Remove a blank line.
3199 (avr_scan_prologue): Correct some comments.
3201 2003-06-15 Theodore A. Roth <troth@openavr.org>
3203 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3205 Properly scan prologues generated by gcc with the -mcall-prologues
3207 Add code to scan -mcall-prologues for mega devices.
3209 2003-06-15 Theodore A. Roth <troth@openavr.org>
3211 * avr-tdep.c (avr_register_byte): Delete function.
3212 (avr_register_raw_size): Delete function.
3213 (avr_register_virtual_size): Delete function.
3214 (avr_register_virtual_type): Delete function.
3215 (avr_register_type): New function.
3216 (avr_address_to_pointer): Remove unused code.
3217 (avr_read_fp): Need to read FP as two separate bytes due to change to
3218 avr_register_type() usage.
3219 (avr_gdbarch_init): Don't set deprecated_register_size.
3220 Don't set deprecated_register_bytes.
3221 Don't set deprecated_register_byte.
3222 Don't set deprecated_register_raw_size.
3223 Don't set deprecated_max_register_raw_size.
3224 Don't set deprecated_register_virtual_size.
3225 Don't set deprecated_max_register_virtual_size.
3226 Don't set deprecated_register_virtual_type.
3227 Set register_type method.
3229 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3231 * Makefile.in (linux-nat.o): Add rule.
3232 * linux-nat.c: New file.
3233 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3234 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3235 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3236 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3237 * config/arm/linux.mh (NATDEPFILES): Likewise.
3238 * config/i386/linux.mh (NATDEPFILES): Likewise.
3239 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3240 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3241 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3242 * config/mips/linux.mh (NATDEPFILES): Likewise.
3243 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3244 * config/s390/s390.mh (NATDEPFILES): Likewise.
3245 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3247 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3249 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3250 replace out-of-date comment.
3252 2003-06-15 Andrew Cagney <cagney@redhat.com>
3254 * rdi-share/host.h (Fail): Change to a varargs function.
3255 * remote-rdi.c (Fail): Update.
3257 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3259 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3260 (i386_convert_register_p, i386_register_to_value,
3261 i386_register_from_value): Handle types longer than 8 bytes.
3263 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3265 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3266 Move floating-point code to new function in i387-tdep.c.
3267 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3268 New functions containing code moved here from i386-tdep.c.
3269 * i387-tdep.h: Add opaque declaration for `struct type'.
3270 (i387_register_to_value, i387_value_to_register): New prototypes.
3271 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3272 (x86_64_init_abi): Set convert_register_p, register_to_value and
3273 value_to_register here.
3275 2003-06-14 Andrew Cagney <cagney@redhat.com>
3277 * mips-tdep.c (mips_register_to_value): Make static.
3278 (mips_value_to_register): Make static.
3279 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3280 * ia64-tdep.c (ia64_register_raw_size): Make static.
3281 (ia64_register_virtual_size): Make static.
3282 (ia64_register_byte): Make static.
3283 * i387-tdep.c: Include "i387-tdep.h".
3284 (print_387_control_word): Delete function.
3285 (print_387_status_word): Delete function.
3286 (print_387_status_bits): Delete function.
3287 (print_387_control_bits): Delete function.
3288 * Makefile.in (i387-tdep.o): Update dependencies.
3289 * rdi-share/host.h (Fail): Declare.
3290 * remote-rdi.c (Fail): Update to match declaration.
3292 2003-06-14 Andrew Cagney <cagney@redhat.com>
3294 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3295 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3296 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3297 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3298 * README: Delete reference to remote-array.
3299 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3300 (remote-array.o): Delete target.
3301 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3302 * remote-array.c: Delete file.
3304 2003-06-14 Andrew Cagney <cagney@redhat.com>
3305 Mark Kettenis <kettenis@gnu.org>
3307 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3308 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3309 parameter with "frame".
3310 * gdbarch.h, gdbarch.c: Re-generate.
3311 * frame.h (put_frame_register): Declare.
3312 * frame.c (put_frame_register): New function.
3313 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3314 (legacy_register_to_value): Rewrite, use "frame" to get the
3316 (legacy_value_to_register): Rewrite, use "frame" to find the
3317 register's location before storing.
3318 * arch-utils.h (legacy_convert_register_p): Update.
3319 (legacy_register_to_value, legacy_value_to_register): Update.
3320 * findvar.c (value_from_register): Rewrite, eliminate use of
3321 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3322 "frame" to REGISTER_TO_VALUE.
3323 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3324 lval_reg_frame_relative + lval_register branch of the switch. Do
3325 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3326 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3327 I386_EDI_REGNUM): New defines.
3328 (i386_next_regnum, i386_convert_register_p,
3329 i386_register_to_value, i386_value_to_register): New functions.
3330 (i386_register_convertible, i386_register_convert_to_virtual,
3331 i386_convert_to_raw): Remove functions.
3332 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3333 value_to_register instead of register_convertible,
3334 register_convert_to_virtual and register_convert_to_raw.
3335 * mips-tdep.c (mips_convert_register_p): New function.
3336 (mips_value_to_register): Replace mips_register_convert_from_type.
3337 (mips_register_to_value): Replace mips_register_convert_to_type.
3338 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3340 * alpha-tdep.c (alpha_convert_register_p): Update.
3341 (alpha_value_to_register): Update, store the register.
3342 (alpha_register_to_value): Update, fetch the register.
3344 2003-06-14 Theodore A. Roth <troth@openavr.org>
3346 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3347 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3348 Don't set deprecated_call_dummy_words.
3349 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3350 Don't set remote_translate_xfer_address.
3351 (avr_io_reg_read_command): Remove commented out debug printf.
3354 2003-06-14 Theodore A. Roth <troth@openavr.org>
3356 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3357 causes gdb to seg fault.
3359 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3361 * sparc-nat.c (fetch_inferior_registers): Correct
3362 a reference to "registers".
3364 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3366 * Makefile.in (exc_request_U_h): Define
3367 (exc_request_S_h): Likewise.
3368 (msg_reply_S_h): Likewise.
3369 (msg_U_h): Likewise.
3370 (notify_S_h): Likewise.
3371 (process_reply_S_h): Likewise.
3372 (gnu-nat.o): Depend on gdb_obstack_h
3373 * gnu-nat.c: Include "gdb_obstack.h".
3375 2003-06-13 Andrew Cagney <cagney@redhat.com>
3377 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3378 * gdbarch.h, gdbarch.c: Re-generate.
3380 2003-06-13 Andrew Cagney <cagney@redhat.com>
3382 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3383 when deprecated REGISTER macros can be deleted.
3384 * gdbarch.h, gdbarch.c: Re-generate.
3386 2003-06-13 Jim Blandy <jimb@redhat.com>
3388 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3389 Linux entry point symbols for _dl_debug_state, too.
3391 2003-06-13 Andrew Cagney <cagney@redhat.com>
3393 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3394 available, do not use the FP register, and always save the TOS.
3395 * dummy-frame.c (dummy_frame_this_id): Do not assert
3396 SAVE_DUMMY_FRAME_TOS.
3397 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3398 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3399 (i386_push_dummy_call): Add 8 to the returned SP.
3400 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3401 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3402 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3403 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3404 (x86_64_push_dummy_call): Return "sp + 16".
3405 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3406 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3407 save_dummy_frame_tos.
3409 2003-06-13 Jim Blandy <jimb@redhat.com>
3411 * frv-tdep.c (frv_use_struct_convention): Delete static
3412 declaration for function deleted in my change of 2003-06-12.
3414 2003-06-13 Theodore A. Roth <troth@openavr.org>
3416 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3417 (avr_pointer_to_address): Shift code addrs left 1 bit.
3418 (avr_convert_from_func_ptr_addr): Delete function since operation is
3419 better handled by avr_address_to_pointer and avr_pointer_to_address.
3420 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3422 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3424 From Kelley Cook <kelleycook@wideopenwest.com>:
3425 * configure.host: Accept i[34567]86 variants.
3426 * configure.tgt: Likewise.
3427 * nlm/configure.in: Likewise.
3428 * nlm/configure: Regenerated.
3430 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3432 * arm-tdep.c (solib-svr4.h): Dont' include it.
3433 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3434 * arm-linux-tdep.c: ... here. Make static.
3435 (arm_linux_init_abi): Register it.
3436 (solib-svr4.h): Include it.
3437 * Makefile.in: Update dependencies.
3438 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3439 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3441 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3443 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3444 indicate registers used for return values.
3445 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3446 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3448 (h8300_init_extra_frame_info): Ditto.
3449 (h8300_frame_locals_address): Removed.
3450 (h8300_frame_args_address): Removed.
3451 (h8300_extract_return_value): Use new regcache structure. Only care
3453 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3454 (h8300_store_return_value): Use new regcache structure. Only care
3456 (h8300h_store_return_value): Same function for 32 bit CPUs.
3457 (h8300_store_struct_return): Removed.
3458 (h8300_extract_struct_value_address): Use new regcache structure.
3459 (h8300h_extract_struct_value_address): Removed.
3460 (h8300_push_dummy_code): New function.
3461 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3462 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3463 set_gdbarch_store_return_value architecture dependent.
3464 Call set_gdbarch_push_dummy_code and
3465 set_gdbarch_extract_struct_value_address.
3466 Remove calls to set_gdbarch_frame_args_address,
3467 set_gdbarch_frame_locals_address,
3468 set_gdbarch_deprecated_store_struct_return,
3469 set_gdbarch_deprecated_extract_return_value,
3470 set_gdbarch_deprecated_extract_struct_value_address,
3471 set_gdbarch_deprecated_call_dummy_words and
3472 set_gdbarch_deprecated_sizeof_call_dummy_words.
3474 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3476 * h8300-tdep.c (h8300_register_byte): Remove.
3477 (h8300h_register_byte): Remove.
3478 (h8300_register_virtual_type): Remove. Substitute by...
3479 (h8300_register_type): New function.
3480 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3481 (h8300h_extract_struct_value_address): Ditto.
3482 (h8300_gdbarch_init): Drop calls to
3483 set_gdbarch_deprecated_register_byte and
3484 set_gdbarch_deprecated_register_virtual_type.
3485 Add call to set_gdbarch_register_type.
3487 2003-06-13 Andrew Cagney <cagney@redhat.com>
3489 * gdbarch.sh: Update comments on registers.
3490 (deprecated_register_byte): Rename register_byte.
3491 (deprecated_register_raw_size): Rename register_raw_size.
3492 (deprecated_register_virtual_size): Rename register_virtual_size.
3493 (deprecated_register_virtual_type): Rename register_virtual_type.
3494 * gdbarch.h, gdbarch.c: Re-generate.
3495 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3496 * vax-tdep.c (vax_gdbarch_init): Update.
3497 * v850-tdep.c (v850_gdbarch_init): Update.
3498 * sparc-tdep.c (sparc_gdbarch_init): Update.
3499 * sh-tdep.c (sh_gdbarch_init): Update.
3500 * s390-tdep.c (s390_gdbarch_init): Update.
3501 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3502 * ns32k-tdep.c: Update.
3503 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3504 * mips-tdep.c (mips_gdbarch_init): Update.
3505 * mcore-tdep.c (mcore_gdbarch_init): Update.
3506 * m68k-tdep.c (m68k_gdbarch_init): Update.
3507 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3508 * ia64-tdep.c (ia64_gdbarch_init): Update.
3509 * hppa-tdep.c (hppa_gdbarch_init): Update.
3510 * h8300-tdep.c (h8300_gdbarch_init): Update.
3511 * frv-tdep.c (frv_gdbarch_init): Update.
3512 * cris-tdep.c (cris_gdbarch_init): Update.
3513 * avr-tdep.c (avr_gdbarch_init): Update.
3514 * alpha-tdep.c (alpha_gdbarch_init): Update.
3515 * arm-tdep.c (arm_gdbarch_init): Update.
3517 2003-06-13 Andrew Cagney <cagney@redhat.com>
3519 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3520 mips_o32_use_struct_convention with always_use_struct_convention.
3522 2003-06-12 David Carlton <carlton@kealia.com>
3524 * cp-namespace.c (cp_set_block_scope): Comment out
3525 processing_has_namespace_info branch.
3527 2003-06-12 Jim Blandy <jimb@redhat.com>
3529 Recognize and skip 64-bit PowerPC Linux linkage functions.
3530 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3531 insn_pattern, insns_match_pattern, d_field, ds_field): New
3532 functions, macros, and types for working with PPC instructions.
3533 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3534 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3535 ppc64_skip_trampoline_code): New functions, variables, and macros
3536 for recognizing and skipping linkage functions.
3537 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3538 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3540 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3541 register offsets for both the 32- and 64-bit interfaces.
3543 Actually finish the job started by my change of 2003-05-29.
3544 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3545 other #definition of this.
3546 (ppc_linux_skip_trampoline_code): Remove declaration.
3547 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3549 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3552 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3553 'long' on ppc64-*-linux*.
3555 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3556 isn't #defined, assume the register doesn't exist: act as if
3557 tdep->ppc_mq_regnum were -1.
3559 * configure.host, configure.tgt: Add entries for
3560 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3562 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3565 * arch-utils.c (always_use_struct_convention): New function.
3566 * arch-utils.h (always_use_struct_convention): New prototype.
3567 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3568 (alpha_gdbarch_init): Register always_use_struct_convention,
3569 instead of alpha_use_struct_convention.
3570 * cris-tdep.c (cris_use_struct_convention): Delete.
3571 (cris_gdbarch_init): Register always_use_struct_convention,
3572 instead of cris_use_struct_convention.
3573 * frv-tdep.c (frv_use_struct_convention): Delete.
3574 (frv_gdbarch_init): Register always_use_struct_convention,
3575 instead of frv_use_struct_convention.
3576 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3577 (h8300_gdbarch_init): Register always_use_struct_convention,
3578 instead of h8300_use_struct_convention.
3579 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3580 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3581 instead of mips_o32_use_struct_convention.
3583 2003-06-12 Andrew Cagney <cagney@redhat.com>
3585 * wince.c: Include "mips-tdep.h".
3586 * mips-tdep.h (mips_next_pc): Declare.
3587 * mcore-tdep.c: Make more local functions static.
3588 * Makefile.in (wince.o): Update dependencies.
3590 2003-06-12 David Carlton <carlton@kealia.com>
3592 * symtab.c (lookup_symbol_aux_minsyms): Replace
3593 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3594 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3595 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3596 SYMBOL_NATURAL_NAME.
3598 2003-06-12 Andreas Schwab <schwab@suse.de>
3600 * Makefile.in (tuiDisassem.o): Update dependencies.
3602 2003-06-12 David Carlton <carlton@bactrian.org>
3604 * symtab.h: Delete declaration of make_symbol_overload_list.
3605 Add declaration of lookup_partial_symbol.
3606 * symtab.c (remove_params): Move to cp-support.c.
3607 (overload_list_add_symbol, make_symbol_overload_list)
3608 (sym_return_val_size, sym_return_val_index): Ditto.
3609 (lookup_partial_symbol): Make extern.
3610 * cp-support.h: Add declaration of make_symbol_overload_list.
3611 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3612 symtab.h, and block.h.
3613 (remove_params): Move here from symtab.c.
3614 (overload_list_add_symbol, make_symbol_overload_list)
3615 (sym_return_val_size, sym_return_val_index): Ditto.
3616 * valops.c: Include cp-support.h.
3617 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3618 frame_h, and block_h.
3619 (valops.o): Depend on cp_support_h.
3621 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3623 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3624 substitute by NUM_REGS throughout.
3625 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3626 (h8300s_register_name): New function for H8S registers.
3627 (h8300sx_register_name): Ditto for H8SX registers.
3628 (h8300_print_register): Revise register printing, avoid depending
3630 (h8300_register_byte): Only care for H8/300 registers.
3631 (h8300h_register_byte): New function for any other architecture.
3632 (h8300_register_raw_size): Remove.
3633 (h8300_register_virtual_type): Revise to return actually useful
3635 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3636 (h8300h_extract_struct_value_address): New function for any other
3638 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3639 set_gdbarch_register_name, set_gdbarch_register_byte,
3640 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3641 Remove calls to set_gdbarch_deprecated_register_size,
3642 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3643 set_gdbarch_deprecated_max_register_raw_size,
3644 set_gdbarch_register_virtual_size and
3645 set_gdbarch_deprecated_max_register_virtual_size entirely.
3646 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3647 set_gdbarch_long_double_bit.
3649 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3651 * doublest.c (convert_doublest_to_floatformat): When dealing
3652 with the implied integer bit, only alter mant_bits if we are
3653 processing a full 32 bits of mantissa.
3655 2003-06-11 David Carlton <carlton@bactrian.org>
3657 * dictionary.h: New.
3658 * dictionary.c: New.
3659 * block.h: Add opaque declaration for struct dictionary.
3660 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3662 (BLOCK_DICT): New macro.
3663 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3664 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3666 (ALL_BLOCK_SYMBOLS): Update definition.
3667 * Makefile.in (SFILES): Add dictionary.c.
3668 (dictionary_h): New.
3669 (COMMON_OBS): Add dictionary.o.
3670 (dictionary.o): New.
3671 (ada-lang.o): Depend on dictionary_h.
3672 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3673 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3674 (mi-cmd-stack.o): Ditto.
3675 (gdbtk-cmds.o): Update dependencies.
3676 (gdbtk-stack.o): Ditto.
3677 * ada-lang.c: Include dictionary.h.
3678 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3679 (fill_in_ada_prototype, debug_print_block): Ditto.
3680 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3681 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3683 * mdebugread.c: Include dictionary.h.
3684 (struct parse_stack): Delete 'maxsyms' member.
3685 (parse_symbol): Update calls to new_block. Delete calls to
3686 shrink_block. Use dictionary methods.
3687 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3688 Update calls to new_symtab. Don't maintain maxsyms data.
3689 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3690 (add_symbol): Just call dict_add_symbol.
3691 (new_symtab): Delete 'maxsyms' argument.
3692 (new_symtab): Update calls to new_block.
3693 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3694 (shrink_block): Delete function.
3695 (fixup_sigtramp): Update call to new_block. Add symbol via
3697 * jv-lang.c: Include dictionary.h.
3698 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3699 appropriately. Set class_symtab->free_func. Make sure the
3700 blockvector is big enough to hold two blocks.
3701 (add_class_symtab_symbol): Use dictionary methods.
3702 (free_class_block): New function.
3703 (type_from_class): Replace explicit iteration by
3705 * symtab.h (struct symtab): Replace 'free_ptr' method by
3707 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3709 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3711 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3712 Include dictionary.h.
3713 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3714 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3716 * objfiles.c: Include dictionary.h.
3717 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3718 * buildsym.c: Include dictionary.h.
3719 (finish_block): Use dictionary methods.
3720 (end_symtab): Set free_func to NULL, not free_ptr.
3721 * tracepoint.c: Include dictionary.h.
3722 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3723 (scope_info): Ditto.
3724 * stack.c: Include dictionary.h.
3725 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3726 (print_block_frame_labels, print_frame_arg_vars)
3727 (print_frame_args): Ditto.
3728 * symmisc.c (free_symtab_block): Use dictionary methods.
3729 (dump_symtab): Ditto.
3730 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3731 Include dictionary.h.
3732 * symfile.h: Delete declarations of sort_block_syms,
3734 * symfile.c (sort_block_syms): Delete.
3735 (sort_symtab_syms): Delete.
3736 * symtab.c: Include dictionary.h.
3737 (lookup_block_symbol): Use dictionary iterators.
3738 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3739 (search_symbols, make_symbol_completion_list): Ditto.
3740 (make_symbol_overload_list): Ditto.
3741 * valops.c (value_of_local): Use dict_empty.
3742 Include dictionary.h.
3744 2003-06-11 J. Brobecker <brobecker@gnat.com>
3746 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3748 2003-06-11 David Carlton <carlton@bactrian.org>
3750 * block.h (BLOCK_SHOULD_SORT): Delete.
3751 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3753 * ada-lang.c (ada_add_block_symbols): Ditto.
3754 * symfile.c (sort_block_syms): Delete.
3755 (sort_symtab_syms): Ditto.
3756 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3758 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3759 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3760 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3761 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3762 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3763 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3764 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3766 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3768 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3771 2003-06-11 Andrew Cagney <cagney@redhat.com>
3773 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3774 REGISTER_CONVERTIBLE.
3775 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3776 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3777 * gdbarch.h, gdbarch.c: Re-generate.
3778 * arch-utils.h (deprecated_register_convertible_not): Rename
3779 generic_register_convertible_not.
3780 * arch-utils.c (deprecated_register_convertible_not): Rename
3781 generic_register_convertible.
3782 (legacy_convert_register_p, legacy_register_to_value): Update.
3783 * sh-tdep.c (sh64_push_arguments): Update.
3784 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3785 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3786 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3787 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3788 * arch-utils.c (legacy_value_to_register): Update.
3789 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3790 (rs6000_register_convert_to_raw): Make parameter "from" const.
3791 * mips-tdep.c (mips_gdbarch_init): Update.
3792 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3793 * infcmd.c (default_print_registers_info): Update.
3794 * ia64-tdep.c (ia64_gdbarch_init): Update.
3795 (ia64_register_convert_to_raw): Make parameter "from" const.
3796 * i386-tdep.c (i386_gdbarch_init): Update.
3797 (i386_register_convert_to_raw): Update.
3799 2003-06-11 Andrew Cagney <cagney@redhat.com>
3801 * remote-fileio.c: Include "remote-fileio.h".
3802 * Makefile.in (remote-fileio.o): Update dependencies.
3803 (remote_fileio_h): Fix typo.
3805 2003-06-11 Andrew Cagney <cagney@redhat.com>
3807 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3808 (xstormy16_save_dummy_frame_tos): Make static.
3809 (_initialize_xstormy16_tdep): Add declaration.
3810 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3811 * v850-tdep.c: Make local functions static.
3812 (_initialize_v850_tdep): Add declaration.
3813 * sparc-tdep.c: Make local functions static.
3814 (_initialize_sparc_tdep): Add declaration.
3815 * sh-tdep.c: Make local functions static.
3816 (_initialize_sh_tdep): Add declaration.
3817 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3818 * s390-tdep.c: Make local functions static.
3819 (_initialize_s390_tdep): Add declaration.
3820 * dbxread.c (find_stab_function_addr): Make static.
3821 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3822 * ocd.c (_initialize_remote_ocd): Add declaration.
3823 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3824 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3825 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3826 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3827 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3828 * remote-array.c (_initialize_array): Add declaration.
3829 (_initialize_remote_monitors): Add declaration.
3830 * remote-mips.c: Make local functions static.
3831 (_initialize_remote_mips): Add declaration.
3832 * mcore-tdep.c: Make all local functions static.
3833 (_initialize_mcore_tdep): Add declaration.
3834 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3835 * abug-rom.c (_initialize_abug_rom): Add declaration.
3836 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3837 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3838 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3839 * remote-est.c (_initialize_est): Add declaration.
3840 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3841 (m68hc11_call_dummy_address): Make static.
3842 * ia64-tdep.c: Make local functions static.
3843 (_initialize_ia64_tdep): Add declaration.
3844 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3845 * monitor.c (monitor_wait_filter): Make static.
3846 (_initialize_remote_monitors): Add declaration.
3847 * remote-hms.c (_initialize_remote_hms): Add declaration.
3848 * remote-e7000.c (fetch_regs_from_dump): Make static.
3849 (expect_n): Make static.
3850 (_initialize_remote_e7000): Add declaration.
3851 * ser-e7kpc.c: Always include "defs.h".
3852 (_initialize_ser_e7000pc): Add declaration.
3853 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3854 * cris-tdep.c: Make all but one function static.
3855 (_initialize_cris_tdep): Add declaration.
3856 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3857 * solib.c (update_solib_list): Make static.
3858 (_initialize_solib): Add declaration.
3859 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3860 (_initialize_avr_tdep): Add declaration.
3861 * remote-rdi.c (voiddummy): Make static.
3862 (_initialize_remote_rdi): Add declaration.
3863 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3864 * remote-rdp.c (send_rdp): Make static.
3865 (_initialize_remote_rdp): Add declaration.
3866 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3868 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3870 * remote-fileio.c: Make ari happy.
3872 2003-06-10 J. Brobecker <brobecker@gnat.com>
3874 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3875 fetching the trailing bytes of the buffer we are about to write.
3877 2003-06-10 Andrew Cagney <cagney@redhat.com>
3879 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3880 * Makefile.in (remote-fileio.o): Update dependencies.
3881 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3882 include <setjmp.h>, or <sys/types.h> conditional on USG.
3883 (remote_fio_jmp_buf): Delete global variable.
3885 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3886 Martin M. Hunt <hunt@redhat.com>
3888 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3889 (SFILES): Add remote-fileio.c.
3890 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3891 dependencies for building remote.o.
3892 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3893 * remote-fileio.h: New header file defining remote File-I/O interface.
3894 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3895 static storage class.
3896 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3898 (_initialize_remote): Call initialize_remote_fileio().
3899 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3900 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3901 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3902 (captured_main): Initialize new ui_files.
3903 * ui-file.c: Add read and fgets input functions.
3904 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3905 (null_file_read): New function.
3906 (ui_file_read): New function.
3907 (set_ui_file_read): New function.
3908 (stdio_file_read): New function.
3909 * ui-file.h: New type ui_file_read_ftype.
3910 (set_ui_file_read): Declare.
3911 (ui_file_read): Declare.
3913 2003-06-09 Andrew Cagney <cagney@redhat.com>
3915 * frame.h (deprecated_unwind_get_saved_register): Rename
3916 generic_unwind_get_saved_register, update comments.
3917 * mips-tdep.c (mips_get_saved_register): Update.
3918 * frame.c (deprecated_unwind_get_saved_register): Update.
3920 2003-06-09 Andrew Cagney <cagney@redhat.com>
3922 * vax-tdep.c (vax_frame_locals_address): Delete function.
3923 (vax_gdbarch_init): Do not set frame_locals_address.
3924 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3925 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3926 * s390-tdep.c (s390_frame_args_address): Delete function.
3927 (s390_gdbarch_init): Do not set frame_args_address or
3928 frame_locals_address.
3929 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3930 (ns32k_gdbarch_init): Do not set frame_locals_address.
3931 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3932 (hppa_frame_locals_address): Delete function.
3933 (hppa_gdbarch_init): Do not set frame_args_address, or
3934 frame_locals_address.
3935 * arm-tdep.c (arm_frame_args_address): Delete.
3936 (arm_frame_locals_address): Delete.
3937 (arm_gdbarch_init): Do not set frame_args_address, or
3938 frame_locals_address.
3940 2003-06-09 Andrew Cagney <cagney@redhat.com>
3942 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3943 * gdbarch.h, gdbarch.c: Re-generate.
3944 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3945 * arch-utils.c (frame_num_args_unknown): Delete function.
3946 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3947 (frame_info): Use FRAME_NUM_ARGS_P.
3948 * arm-tdep.c (arm_frame_num_args): Delete function.
3949 (arm_gdbarch_init): Do not set frame_num_args.
3950 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3951 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3952 (hppa_gdbarch_init): Do not set frame_num_args.
3953 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3954 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3955 frame_num_args to default frame_num_args_unknown.
3956 * v850-tdep.c (v850_gdbarch_init): Ditto.
3957 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3958 * sh-tdep.c (sh_gdbarch_init): Ditto.
3959 * s390-tdep.c (s390_gdbarch_init): Ditto.
3960 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3961 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3962 * mips-tdep.c (mips_gdbarch_init): Ditto.
3963 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3964 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3965 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3966 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3967 * i386-tdep.c (i386_gdbarch_init): Ditto.
3968 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3969 * frv-tdep.c (frv_gdbarch_init): Ditto.
3970 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3971 * cris-tdep.c (cris_gdbarch_init): Ditto.
3972 * avr-tdep.c (avr_gdbarch_init): Ditto.
3973 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3975 2003-06-09 Andrew Cagney <cagney@redhat.com>
3977 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3978 (print_frame_args): Moved to "stack.c".
3979 * stack.c: Include "gdb_assert.h".
3980 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3981 (print_frame_args): Moved from "printcmd.c".
3982 * frame.h (print_frame_args): Delete declaration.
3983 * Makefile.in (stack.o): Update dependencies.
3985 2003-06-08 Andrew Cagney <cagney@redhat.com>
3987 * frame.c (get_prev_frame): Remove reference to
3988 frame_args_address_correct in comments.
3989 * frame-base.c (default_frame_args_address): Delete code
3990 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3991 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3992 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3993 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3994 (vax_frame_args_address_correct): Delete declaration.
3996 2003-06-08 Andrew Cagney <cagney@redhat.com>
3998 * gdbarch.sh (UNWIND_SP): Add.
3999 * gdbarch.h, gdbarch.c: Re-generate.
4000 * frame.c (frame_sp_unwind): New function.
4001 (get_frame_sp): New function.
4002 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4003 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4004 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4006 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4007 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4009 2003-06-08 Andrew Cagney <cagney@redhat.com>
4011 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4014 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4015 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4016 * config/m68k/tm-sun3.h: Update.
4017 * config/m68k/tm-m68klynx.h: Update.
4018 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4020 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4021 trad_frame". Update comments.
4022 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4023 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4024 (trad_frame_register_value, trad_frame_prev_register): Update.
4026 2003-06-08 Andrew Cagney <cagney@redhat.com>
4028 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4029 from GCC's acinclude.m4.
4030 * configure.in: Check for getopt's delcaration.
4031 * aclocal.m4, config.in, configure: Re-generate.
4032 * main.c (error_init): Delete declaration.
4033 * defs.h (error_init): Declare.
4034 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4035 (rs6000_convert_from_func_ptr_addr): Make static.
4036 (_initialize_rs6000_tdep): Add declaration.
4037 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4038 (show_commands, set_verbose, show_history): Delete declaration.
4039 * top.h (set_verbose): Add declaration.
4040 (show_history, set_history, show_commands): Add declaration.
4041 (do_restore_instream_cleanup): Add declaration.
4042 * objc-lang.c (specialcmp): Make static.
4043 (print_object_command): Make static.
4044 (find_objc_msgsend): Make static.
4045 (find_objc_msgcall_submethod_helper): Make static.
4046 (find_objc_msgcall_submethod): Make static.
4047 (_initialize_objc_language): Add declaration.
4048 (find_implementation_from_class): Make static.
4049 (find_implementation): Make static.
4050 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4051 * objc-lang.h (lookup_struct_typedef): Add declaration.
4052 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4053 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4054 (do_restore_user_call_depth): Make static.
4055 (do_restore_instream_cleanup): Delete declaration.
4056 (dont_repeat): Delete declaration.
4057 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4058 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4059 * reggroups.c (_initialize_reggroup): Add declaration.
4060 * cp-support.c (_initialize_cp_support): Add declaration.
4061 * cp-abi.c (_initialize_cp_abi): Add declaration.
4062 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4063 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4064 (_initialize_gnu_v3_abi): Add declaration.
4065 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4066 (_initialize_gnu_v2_abi): Add declaration.
4067 * frame-base.c (_initialize_frame_base): Add declaration.
4068 * doublest.c (floatformat_from_length): Make static.
4069 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4070 * frame.c (create_sentinel_frame): Make static.
4071 (_initialize_frame): Add declaration.
4072 * top.c (do_catch_errors): Make static.
4073 (gdb_rl_operate_and_get_next_completion): Make static.
4074 * typeprint.c: Include "typeprint.h".
4075 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4076 (sentinel_frame_this_id): Make static.
4077 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4078 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4079 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4080 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4081 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4082 * maint.c (maintenance_print_architecture): Make static.
4083 * signals/signals.c (_initialize_signals): Add declaration.
4084 * std-regs.c (_initialize_frame_reg): Add declaration.
4085 * jv-exp.y (push_variable): ISO C definition.
4086 (push_qualified_expression_name): Ditto.
4087 * memattr.c (_initialize_mem): Add declaration.
4088 * remote.c (remote_check_watch_resources): Make static.
4089 (remote_stopped_by_watchpoint): Make static.
4090 (remote_stopped_data_address): Make static.
4091 * d10v-tdep.c (nr_dmap_regs): Make static.
4092 (a0_regnum): Make static.
4093 (d10v_frame_unwind_cache): Make static.
4094 (d10v_frame_p): Make static.
4095 * osabi.c (show_osabi): Make static.
4096 (_initialize_gdb_osabi): Add extern declaration.
4097 * gdbtypes.c (make_qualified_type): Make static.
4098 (safe_parse_type): Make static.
4099 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4100 * macrotab.c (macro_bcache_free): Make static.
4101 * interps.c (interp_set_quiet): Make static.
4102 (interpreter_exec_cmd): Make static.
4103 * stack.h (select_frame_command): New file.
4104 * stack.c: Include "stack.h".
4105 (select_frame_command_wrapper): Delete function.
4106 (select_frame_command): Make global.
4107 * infcall.c: Include "infcall.h".
4108 * linespec.c: Include "linespec.h".
4109 * symfile.c (sections_overlap): Make static.
4110 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4111 * charset.c (_initialize_charset): Add missing prototype.
4112 * regcache.c (init_legacy_regcache_descr): Make static.
4113 (do_regcache_xfree): Make static.
4114 (regcache_xfer_part): Make static.
4115 (_initialize_regcache): Add missing prototype.
4116 * breakpoint.c (parse_breakpoint_sals): Make static.
4117 (breakpoint_sals_to_pc): Make static.
4118 * interps.h (clear_interpreter_hooks): ISO C declaration.
4119 * Makefile.in (stack_h): Define.
4120 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4121 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4123 2003-06-08 Andrew Cagney <cagney@redhat.com>
4125 * Makefile.in (d10v-tdep.o): Update dependencies.
4126 (SFILES): Add trad-frame.c.
4127 (trad_frame_h): Define.
4128 (COMMON_OBS): Add trad-frame.o.
4129 (trad-frame.o): Specify dependencies.
4130 * d10v-tdep.c: Include "trad-frame.h".
4131 (saved_regs_unwinder): Delete function.
4132 (d10v_frame_prev_register): Use trad_frame_prev_register.
4133 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4134 trad_frame", delete "regs" and "prev_sp".
4135 (prologue_find_regs): Use trad-frame.
4136 * trad-frame.h, trad-frame.c: New files.
4138 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4140 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4142 2003-06-07 Adam Fedor <fedor@gnu.org>
4144 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4145 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4146 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4147 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4148 resolve_msgsend_super, resolve_msgsend_super_stret):
4151 2003-06-07 Andrew Cagney <cagney@redhat.com>
4153 * symfile.h: Re-indent, clean up comments.
4155 2003-06-07 Andrew Cagney <cagney@redhat.com>
4157 * inferior.h (deprecated_write_sp): Replace
4158 generic_target_write_sp.
4159 * regcache.c (deprecated_write_sp): Replace
4160 generic_target_write_sp.
4161 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4162 * vax-tdep.c (vax_gdbarch_init): Update.
4163 * v850-tdep.c (v850_gdbarch_init): Update.
4164 * sparc-tdep.c (sparc_gdbarch_init): Update.
4165 * sh-tdep.c (sh_gdbarch_init): Update.
4166 * s390-tdep.c (s390_gdbarch_init): Update.
4167 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4168 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4169 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4170 * mcore-tdep.c (mcore_gdbarch_init): Update.
4171 * m68k-tdep.c (m68k_gdbarch_init): Update.
4172 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4173 * ia64-tdep.c (ia64_gdbarch_init): Update.
4174 * h8300-tdep.c (h8300_gdbarch_init): Update.
4175 * frv-tdep.c (frv_gdbarch_init): Update.
4176 * cris-tdep.c (cris_gdbarch_init): Update.
4177 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4179 2003-06-07 Andrew Cagney <cagney@redhat.com>
4181 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4182 Assert that PC_REGNUM is valid.
4183 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4185 2003-06-07 Andrew Cagney <cagney@redhat.com>
4187 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4188 * gdbarch.h, gdbarch.c: Regenerate.
4189 * mn10300-tdep.c: Include "gdb_assert.h".
4190 (mn10300_read_fp): New function.
4191 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4192 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4193 * ia64-tdep.c: Include "gdb_assert.h".
4194 (ia64_read_fp): New function.
4195 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4196 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4197 * regcache.c (generic_target_read_sp): Delete function.
4198 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4199 * inferior.h (generic_target_read_sp): Delete declaration.
4200 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4201 generic_target_read_sp.
4202 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4203 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4204 * sh-tdep.c (sh_gdbarch_init): Ditto.
4205 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4206 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4208 2003-06-07 Andrew Cagney <cagney@redhat.com>
4210 * gdbarch.sh: Comment each field of startup_gdbarch.
4211 * gdbarch.h, gdbarch.c: Re-generate.
4213 2003-06-07 Andrew Cagney <cagney@redhat.com>
4215 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4216 * gdbarch.h, gdbarch.c: Re-generate.
4217 * regcache.c: Update comments on read_pc et.al.
4218 (generic_target_read_pc): Delete function.
4219 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4220 * inferior.h (generic_target_read_pc): Delete declaration.
4221 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4222 generic_target_read_pc.
4223 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4224 * sh-tdep.c (sh_gdbarch_init): Ditto.
4225 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4226 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4228 2003-06-07 Andrew Cagney <cagney@redhat.com>
4230 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4231 "index" with "special_local_sect". Use strcmp instead of STREQ.
4232 Append period to coments.
4234 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4236 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4237 (elfstab_offset_sections): Likewise.
4238 * gdb-stabs.h (stab_section_info): Likewise.
4239 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4240 * objfiles.c (objfile_relocate): Likewise.
4241 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4242 * remote.c (get_offsets): Likewise.
4243 (remote_cisco_objfile_relocate): Likewise.
4244 * somread.c (som_symfile_offsets): Likewise.
4245 * symfile.c (alloc_section_addr_info): New function.
4246 (build_section_addr_info_from_section_tab): Use it.
4247 (free_section_addr_info): Adjust.
4248 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4249 (syms_from_objfile): Allocate local_addr dynamically.
4250 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4252 (add_symbol_file_command): Allocate sect_opts dynamically.
4253 (reread_symbols): Avoid use of SECT_OFF_MAX.
4254 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4255 (alloc_section_addr_info): Declare it.
4256 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4257 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4259 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4261 2003-06-06 Andrew Cagney <cagney@redhat.com>
4263 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4264 (d10v_frame_unwind_cache): Do not set "return_pc".
4266 2003-06-06 Michael Snyder <msnyder@redhat.com>
4268 * h8300-tdep.c: Make tidy (long lines).
4270 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4272 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4273 to regcache_collect().
4275 2003-06-05 J. Brobecker <brobecker@gnat.com>
4277 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4278 pc_in_sigtramp multiarch method.
4279 (hppa_hpux_som_init_abi): Use it.
4280 (hppa_hpux_elf_init_abi): Likewise.
4281 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4282 macro has been multiarched.
4283 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4284 macro here, as hppa64 isn't multiarched yet.
4286 2003-06-05 Andrew Cagney <cagney@redhat.com>
4288 * Makefile.in (value_h): Add $(frame_h).
4289 * value.h: Include "frame.h".
4290 (struct value): Replace "frame_addr" with "frame_id".
4291 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4292 * values.c (allocate_value): Use VALUE_FRAME_ID.
4293 (value_copy): Use VALUE_FRAME_ID.
4294 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4295 * valops.c (value_assign): Update. Use frame_find_by_id.
4297 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4299 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4302 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4304 * thread-db.c (check_event): For create/death event breakpoints,
4305 loop through all messages to ensure that we read the message
4306 corresponding to the breakpoint we are at.
4308 2003-06-04 Michael Snyder <msnyder@redhat.com>
4310 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4312 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4314 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4315 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4316 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4317 when handling .eh_frame sections.
4319 2003-06-04 J. Brobecker <brobecker@gnat.com>
4321 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4322 prepare_to_proceed procedure instead of the hppa-specific one.
4323 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4325 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4327 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4328 * config.in: Regenerated.
4329 * configure.in: Add test for syscall function and check for
4330 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4331 * configure: Regenerated.
4332 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4334 (kill_lwp): New function that uses tkill syscall or
4335 uses kill, depending on whether threading model is nptl or not.
4336 All callers of kill() changed to use kill_lwp().
4337 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4338 see if all threads have already exited in the nptl model.
4339 (stop_and_resume_callback): New callback function used by the
4340 lin_lwp_wait thread exit handling code.
4341 (stop_wait_callback): Check for threads already having exited and
4342 delete such threads fromt the lwp list when discovered.
4343 (stop_callback): Don't assert retcode of kill call.
4345 Roland McGrath <roland@redhat.com>
4346 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4349 2003-06-03 Richard Henderson <rth@redhat.com>
4351 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4352 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4353 (alpha_sigtramp_frame_prev_register): Likewise.
4354 (alpha_heuristic_frame_prev_register): Likewise.
4355 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4357 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4358 alpha-specific register id names.
4359 (alpha_mdebug_frame_unwind_cache): Likewise.
4360 (alpha_mdebug_frame_prev_register): Likewise.
4362 2003-06-03 Richard Henderson <rth@redhat.com>
4364 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4365 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4366 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4367 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4369 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4370 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4371 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4373 * alpha-linux-tdep.c: Remove unnecessary includes.
4374 * Makefile.in (alpha-linux-tdep.o): Update.
4376 2003-06-03 Richard Henderson <rth@redhat.com>
4378 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4379 (alphabsd_fill_fpreg): Likewise.
4381 2003-06-03 J. Brobecker <brobecker@gnat.com>
4383 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4384 references to struct frame_info fields by calls to the equivalent
4385 accessors. Necessary now that frame_info is opaque.
4387 2003-06-03 J. Brobecker <brobecker@gnat.com>
4389 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4390 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4391 structure, field no longer exists.
4393 2003-06-03 J. Brobecker <brobecker@gnat.com>
4395 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4396 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4398 2003-06-03 J. Brobecker <brobecker@gnat.com>
4400 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4401 references to struct frame_info fields by calls to the equivalent
4402 accessors. Necessary now that frame_info is opaque.
4404 2003-06-03 J. Brobecker <brobecker@gnat.com>
4406 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4407 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4408 structure, field no longer exists.
4410 2003-06-03 Theodore A. Roth <troth@openavr.org>
4412 * remote.c (init_remote_state): Compute sizeof_g_packet by
4413 accumulation of the size of all registers instead of blindly using
4414 DEPRECATED_REGISTER_BYTES.
4416 2003-06-03 Michael Snyder <msnyder@redhat.com>
4418 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4419 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4422 2003-06-03 J. Brobecker <brobecker@gnat.com>
4424 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4425 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4427 2003-06-03 Andrew Cagney <cagney@redhat.com>
4429 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4430 (sparc_convert_to_raw): Delete function.
4431 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4432 register_convert_to_virtual.
4434 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4436 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4437 layer if not dealing with a statically-linked threaded program.
4439 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4441 * solib.c (solib_open): Update comment to reflect actual search order.
4443 2003-06-03 Andrew Cagney <cagney@redhat.com>
4445 * frame.c (get_frame_memory_signed): New function.
4446 (get_frame_memory, get_frame_memory_unsigned): New function.
4447 (get_frame_arch): New function.
4448 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4449 (get_frame_memory, get_frame_unsigned_memory): Declare.
4450 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4451 get_frame_memory_unsigned and get_frame_arch.
4452 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4454 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4456 * MAINTAINERS (write after approval): Add myself.
4458 2003-06-03 Jim Blandy <jimb@redhat.com>
4460 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4461 elements of gregset_t are 64 bits each, but access registers
4462 are still 32 bits, so they're packed two per gregset_t
4463 element. Unpack/pack them properly.
4465 2003-06-02 David Carlton <carlton@bactrian.org>
4467 * linespec.c (find_methods): Break out code into
4468 add_matching_methods and add_constructors.
4469 (add_matching_methods): New.
4470 (add_constructors): Ditto.
4472 2003-06-02 Andrew Cagney <cagney@redhat.com>
4474 * sparc-tdep.c (sparc_print_registers): Delete call to
4475 REGISTER_CONVERTIBLE.
4476 (sparc_gdbarch_init): Do not set register_convertible.
4477 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4478 * frv-tdep.c (frv_gdbarch_init): Ditto.
4479 * cris-tdep.c (cris_gdbarch_init): Ditto.
4481 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4483 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4484 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4485 (syms_from_objfile): Ditto.
4487 2003-06-03 Andreas Schwab <schwab@suse.de>
4489 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4490 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4492 2003-06-02 Richard Henderson <rth@redhat.com>
4494 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4495 a member of all_reggroup.
4497 2003-06-02 Richard Henderson <rth@redhat.com>
4499 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4500 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4501 (alpha_lds, alpha_sts): New.
4502 (alpha_convert_register_p): Change from _register_convertible.
4503 (alpha_register_to_value): Change from _convert_to_virtual;
4504 restructure and fail for type sizes other than 4 or 8.
4505 (alpha_value_to_register): Similarly.
4506 (alpha_extract_return_value): Use alpha_sts.
4507 (alpha_store_return_value): Use alpha_lds.
4508 (alpha_gdbarch_init): Update hooks.
4510 2003-06-02 Richard Henderson <rth@redhat.com>
4512 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4514 (alpha_sigtramp_register_address): Likewise.
4516 2003-06-02 Richard Henderson <rth@redhat.com>
4518 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4519 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4520 * alpha-tdep.h: Declare them.
4522 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4523 Remove zerobuf. Don't error on UNIQUE.
4524 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4525 (ALPHA_REGSET_UNIQUE): Provide default.
4526 (supply_gregset): Use alpha_supply_int_regs.
4527 (fill_gregset): Use alpha_fill_int_regs.
4528 (supply_fpregset): Use alpha_supply_fp_regs.
4529 (fill_fpregset): Use alpha_fill_fp_regs.
4530 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4531 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4532 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4533 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4534 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4535 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4537 2003-06-02 Richard Henderson <rth@redhat.com>
4539 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4541 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4542 (alpha_store_return_value): Likewise.
4544 2003-06-02 David Carlton <carlton@math.stanford.edu>
4546 * block.c (contained_in): Add 'const' to arguments.
4547 (block_function): Ditto.
4548 * block.h: Update declarations for block_function and
4551 2003-06-02 David Carlton <carlton@math.stanford.edu>
4553 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4554 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4555 * p-valprint.c (pascal_val_print): Ditto.
4556 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4558 2003-06-02 Richard Henderson <rth@redhat.com>
4560 * alpha-tdep.c (alpha_push_dummy_call): Use
4561 builtin_type_ieee_double_little instead of builtin_type_double.
4563 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4564 sign-extension of 32-bit values.
4565 (alpha_store_return_value): Similarly.
4567 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4568 (alpha_extract_return_value): Likewise.
4569 (alpha_store_return_value): Likewise.
4571 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4572 (alpha_store_return_value): Error on IEEE Quad floats.
4574 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4575 (alpha_extract_struct_value_address): Likewise.
4576 (alpha_store_return_value): Likewise.
4577 (alpha_store_struct_return): Remove.
4578 (alpha_gdbarch_init): Update hook registration to match.
4580 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4581 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4582 macros where appropriate.
4583 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4584 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4586 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4587 for SP, GP; void_func_ptr for PC; non-language-specific types
4589 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4591 2003-06-02 Richard Henderson <rth@redhat.com>
4593 * top.h (lim_at_start): Declare.
4594 * main.c (captured_main): Set it.
4595 * top.c (lim_at_start): Define.
4596 (command_loop): Use it instead of &environ.
4597 * event-top.c (command_handler): Likewise.
4599 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4601 * mipsnbsd-tdep.c: Update copyright years.
4602 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4604 2003-06-01 Richard Henderson <rth@redhat.com>
4606 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4607 (alpha-linux-tdep.o): Update dependencies.
4608 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4609 * alpha-mdebug-tdep.c: Remove unneeded includes.
4611 2003-06-01 Richard Henderson <rth@redhat.com>
4613 * alpha-tdep.c (alpha_register_reggroup_p): New.
4614 (alpha_gdbarch_init): Register it.
4616 2003-06-02 Andrew Cagney <cagney@redhat.com>
4618 * dwarfread.c: Eliminate "register"
4619 (decode_die_type): Eliminate assignment within "if".
4620 (struct_type, decode_array_element_type): Ditto.
4621 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4622 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4623 (decode_modified_type, completedieinfo): Ditto.
4624 * block.c: Eliminate "register".
4625 (blockvector_for_pc_sect): Eliminate assignment within "if".
4626 * cp-support.h (struct symbol): Opaque declaration.
4627 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4629 2003-06-01 Richard Henderson <rth@redhat.com>
4631 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4632 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4634 2003-06-01 Adam Fedor <fedor@gnu.org>
4636 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4637 * gdbarch.[ch]: Regenerate.
4638 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4639 (hppa_gdbarch_init): Set it in the gdbarch vector.
4640 * i386-tdep.c (i386_fetch_pointer_argument): New
4641 (i386_gdbarch_init): Set it into gdbarch.
4642 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4643 (rs6000_gdbarch_init): Set it in gdbarch.
4644 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4645 (sparc_gdbarch_init): Set it in gdbarch.
4647 2003-06-01 Andrew Cagney <cagney@redhat.com>
4649 * defs.h (extract_address): Delete declaration.
4650 * findvar.c (extract_address): Delete function.
4651 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4652 extract_address with the inline equivalent,
4653 extract_unsigned_integer.
4654 (xstormy16_extract_struct_value_address): Ditto.
4655 (xstormy16_pointer_to_address): Ditto.
4656 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4657 * v850-tdep.c (v850_push_arguments): Ditto.
4658 (v850_extract_return_value): Ditto.
4659 (v850_extract_struct_value_address): Ditto.
4660 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4661 (sparcnbsd_get_longjmp_target_64): Ditto.
4662 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4663 (get_longjmp_target): Ditto.
4664 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4665 (sh64_extract_struct_value_address): Ditto.
4666 (sh_push_arguments): Ditto.
4667 (sh64_push_arguments): Ditto.
4668 * remote-vxsparc.c (vx_read_register): Ditto.
4669 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4670 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4671 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4672 * mipsv4-nat.c (get_longjmp_target): Ditto.
4673 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4674 * mips-nat.c (get_longjmp_target): Ditto.
4675 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4676 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4677 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4678 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4679 * irix5-nat.c (get_longjmp_target): Ditto.
4680 * irix4-nat.c (get_longjmp_target): Ditto.
4681 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4682 (ia64_push_arguments): Ditto.
4683 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4684 * h8300-tdep.c (h8300_push_arguments): Ditto.
4685 (h8300_store_return_value): Ditto.
4686 (h8300_extract_struct_value_address): Ditto.
4687 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4688 (frv_push_arguments): Ditto.
4689 * avr-tdep.c (avr_pointer_to_address): Ditto.
4690 (avr_push_arguments): Ditto.
4691 * arm-tdep.c (arm_push_dummy_call): Ditto.
4692 (arm_get_longjmp_target): Ditto.
4693 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4694 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4695 (alpha_get_longjmp_target): Ditto.
4697 * solib-irix.c (extract_mips_address): Inline extract_address,
4698 replacing it with extract_signed_integer.
4699 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4700 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4701 (first_link_map_member, open_symbol_file_object): Ditto.
4702 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4703 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4704 (LM_NEXT, LM_NAME): Ditto.
4706 2003-06-01 Richard Henderson <rth@redhat.com>
4708 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4709 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4710 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4711 (alpha_cannot_store_register): Likewise.
4712 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4713 * alpha-nat.c (supply_gregset): Likewise.
4714 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4716 2003-06-01 Andrew Cagney <cagney@redhat.com>
4718 * infcall.c (call_function_by_hand): Update comment on
4719 DEPRECATED_DUMMY_WRITE_SP.
4721 * mips-tdep.c (mips_gdbarch_init): Do not set
4722 deprecated_dummy_write_sp.
4723 (mips_eabi_push_dummy_call): Set the SP register.
4724 (mips_o64_push_dummy_call): Set the SP register.
4725 (mips_o32_push_dummy_call): Set the SP register.
4726 (mips_n32n64_push_dummy_call): Set the SP register.
4728 2003-06-01 Richard Henderson <rth@redhat.com>
4730 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4731 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4732 (supply_gregset): Likewise.
4733 * alpha-tdep.c (alpha_store_return_value): Likewise.
4734 (alpha_get_longjmp_target): Likewise.
4735 (alpha_register_name): Constify array.
4736 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4737 deprecated_register_size, deprecated_register_bytes,
4738 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4739 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4740 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4742 2003-06-01 Richard Henderson <rth@redhat.com>
4744 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4745 from arg_reg_buffer to regcache to avoid double conversion.
4747 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4749 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4751 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4752 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4754 2003-06-01 Richard Henderson <rth@redhat.com>
4756 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4757 (decode_frame_entry): Set it. Skip FDE augmentation.
4759 2003-06-01 Richard Henderson <rth@redhat.com>
4761 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4762 not overlapping PC_REGNUM.
4764 2003-06-01 Richard Henderson <rth@redhat.com>
4766 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4767 alpha_push_arguments. Don't dump argument register data to
4768 the target stack. Fix float and 128-bit long double semantics.
4769 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4770 (alpha_fix_call_dummy): Remove.
4771 (alpha_call_dummy_words): Remove.
4772 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4774 2003-06-01 Richard Henderson <rth@redhat.com>
4776 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4778 2003-06-01 Andrew Cagney <cagney@redhat.com>
4780 * mips-tdep.c (is_mips16_addr): New function.
4781 (make_mips16_addr, unmake_mips16_addr): New functions.
4782 (pc_is_mips16, mips_fetch_instruction): Use.
4783 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4784 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4785 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4786 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4788 * config/mips/tm-mips.h: Update copyright.
4789 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4790 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4791 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4792 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4793 (TM_PRINT_INSN_MACH): Delete.
4794 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4796 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4797 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4798 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4799 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4800 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4801 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4802 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4803 mips*-*-riscos* and mips*-*-sysv* onto mips.
4804 * config/mips/mips64.mt: New file.
4805 * config/mips/mips.mt: New file.
4806 * config/mips/littlemips.mt: Delete file.
4807 * config/mips/decstation.mt: Delete file.
4808 * config/mips/vr4300el.mt: Delete file.
4809 * config/mips/vr5000el.mt: Delete file.
4810 * config/mips/vr5000.mt: Delete file.
4811 * config/mips/vr4100.mt: Delete file.
4812 * config/mips/vr4xxxel.mt: Delete file.
4813 * config/mips/vr4300.mt: Delete file.
4814 * config/mips/vr4xxx.mt: Delete file.
4815 * config/mips/bigmips.mt: Delete file.
4816 * config/mips/bigmips64.mt: Delete file.
4817 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4818 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4819 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4820 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4821 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4823 * config/mips/tm-irix3.h: Ditto.
4824 * config/mips/tm-mipsv4.h: Ditto.
4825 * config/mips/tm-embed.h: Ditto.
4826 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4828 * config/mips/tm-vr5000el.h: Delete file.
4829 * config/mips/tm-tx39l.h: Delete file.
4830 * config/mips/tm-vr4300el.h: Delete file.
4831 * config/mips/tm-vr4xxxel.h: Delete file.
4832 * config/mips/tm-vr4300.h: Delete file.
4833 * config/mips/tm-vr4100.h: Delete file.
4834 * config/mips/tm-vr4xxx.h: Delete file.
4835 * config/mips/tm-vr5000.h: Delete file.
4836 * config/mips/tm-embedl64.h: Delete file.
4837 * config/mips/tm-embedl.h: Delete file.
4838 * config/mips/tm-embed64.h: Delete file.
4839 * config/mips/tm-bigmips64.h: Delete file.
4840 * config/mips/tm-bigmips.h: Delete file.
4842 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4845 * shnbsd-nat.c: Include "sh-tdep.h".
4847 From Richard Henderson <rth@redhat.com>:
4848 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4850 2003-05-31 Andrew Cagney <cagney@redhat.com>
4852 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4853 forward declaration.
4854 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4855 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4856 (mips_find_saved_regs): Use set_reg_offset.
4857 (mips_frame_init_saved_regs): Delete function.
4858 (mips_pop_frame): Call mips_find_saved_regs instead of
4859 DEPRECATED_FRAME_INIT_SAVED_REGS.
4861 2003-05-31 Andrew Cagney <cagney@redhat.com>
4863 * mips-tdep.c (mips_gdbarch_init): Do not set
4864 deprecated_max_register_raw_size, register_virtual_size, and
4865 deprecated_max_register_virtual_size.
4867 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4869 * i386-tdep.c: Include "dwarf2-frame.h".
4870 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4871 * Makefile.in (i386-tdep.o): Update dependencies.
4873 * dwarf2-frame.c, dwarf2-frame.h: New files.
4874 * Makefile.in (SFILES): Add dwarf2-frame.c.
4875 (dwarf2_frame_h): Define.
4876 (COMMON_OBS): Add dwarf2-frame.o.
4877 (dwarf2-frame.o): Add dependencies.
4879 2003-05-31 Andreas Jaeger <aj@suse.de>
4881 * x86-64-linux-nat.c: Fix comment.
4883 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4885 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4888 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4889 have a sigcontext_addr handler.
4890 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4891 sigcontext_addr handler.
4893 2003-05-31 Andrew Cagney <cagney@redhat.com>
4895 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4896 (print_fp_register_row): Replace do_fp_register_row.
4897 (mips_print_fp_register): Add "file" and "frame" parameters.
4898 (mips_print_register): Add "file" and "frame" parameters.
4899 (mips_print_registers_info): Replace mips_do_registers_info.
4900 (mips_gdbarch_init): Set print_registers_info instead of
4901 deprecated_do_registers_info.
4902 (mips_read_fp_register_single): Add "frame" parameter.
4903 (mips_read_fp_register_double): Add "frame" parameter.
4905 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4907 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4908 Fixes a bug where GDB would print the wrong register names for
4909 targets without SSE.
4911 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4912 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4915 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4916 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4917 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4920 From Michal Ludvig <mludvig@suse.cz>:
4921 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4923 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4924 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4925 I386_ST0_REGNUM): Move here from...
4926 * i386-tdep.c: ... here.
4927 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4928 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4929 registers if possible.
4930 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4931 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4933 (i386bsd_sc_reg_offset): New variable.
4934 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4935 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4937 (i386fbsd_sc_reg_offset): New variable.
4938 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4940 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4942 (i386fbsd4_sc_reg_offset): New variable.
4943 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4944 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4946 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4947 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4948 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4950 (i386nbsd_sc_reg_offset): New variable.
4951 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4952 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4954 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4956 (i386obsd_sc_reg_offset): New variable.
4957 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4958 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4960 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4961 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4962 for frame pointer offset in `struct sigcontext'.
4964 2003-05-31 Andrew Cagney <cagney@redhat.com>
4966 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4967 architecture methods call_dummy_words, sizeof_call_dummy_words,
4968 push_return_address, store_struct_return, and fix_call_dummy. Set
4969 push_dummy_call instead of deprecated_push_arguments.
4970 (mips_store_struct_return): Delete function.
4971 (mips_fix_call_dummy): Delete function.
4972 (mips_push_return_address): Delete function.
4973 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4974 RA_REGNUM and T9_REGNUM.
4975 (mips_n32n64_push_dummy_call): Ditto for
4976 mips_n32n64_push_arguments.
4977 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4978 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4980 2003-05-31 Andrew Cagney <cagney@redhat.com>
4982 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4983 "dummy_addr" to "bp_addr".
4984 * infcall.c (call_function_by_hand): Pass "funaddr" to
4985 gdbarch_push_dummy_call.
4986 * gdbarch.h, gdbarch.c: Re-generate.
4987 * i386-tdep.c (i386_push_dummy_call): Update.
4988 * arm-tdep.c (arm_push_dummy_call): Update.
4989 * d10v-tdep.c (d10v_push_dummy_call): Update.
4991 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4993 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4994 variable declarations.
4995 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4996 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4997 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4998 x86_64_init_frame_pc, x86_64_init_frame_pc,
4999 x86_64_function_has_prologue): Remove prototypes.
5000 (X86_64_NUM_GREGS): New define.
5001 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5002 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5003 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5004 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5005 XMM1_REGNUM): Remove defines.
5006 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5007 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5008 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5009 X86_64_XMM1_REGNUM): New defines.
5010 (struct x86_64_register_info): Renamed from `struct
5011 register_info'. Remove `size' member.
5012 (x86_64_register_info_table): Remove variable.
5013 (x86_64_register_info): New variable.
5014 (X86_64_NUM_REGS): New define.
5015 (X86_64_NUM_GREGS): Remove define.
5016 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5017 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5019 (x86_54_dwarf2_reg_to_regnum): Remove function.
5020 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5021 (x86_64_dwarf_reg_to_regnum): New function.
5022 (x86_64_register_name): Rewrite.
5023 (x86_64_register_raw_size): Remove function.
5024 (x86_64_register_byte_table): Remove variable.
5025 (x86_64_register_byte): Remove function.
5026 (x86_64_register_virtual_type): Remove function.
5027 (x86_64_register_type): New function.
5028 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5029 x86_64_register_convert_to_raw): Remove functions.
5030 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5031 (x86_64_use_struct_convention): Make static. Adjust for renamed
5033 (x86_64_frame_init_saved_regs): Remove function.
5034 (x86_64_push_arguments): Make static. Change to accept a regcache
5036 (x86_64_store_return_value, x86_64_extract_return_value): Make
5037 static. Rewrite based on i386 counterparts.
5038 (x86_64_push_dummy_call): New function.
5039 (X86_64_NUM_SAVED_REGS): New define.
5040 (x86_64_register_number): Remove function.
5041 (x86_64_store_struct_return): Remove function.
5042 (x86_64_frameless_function_invocation,
5043 x86_64_function_has_prologue): Remove functions.
5044 (PROLOG_BUFSIZE): Remove define.
5045 (struct x86_64_frame_cache): New structure.
5046 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5047 x86_64_frame_cache, x86_64_frame_this_id,
5048 x86_64_frame_prev_register, x86_64_frame_p,
5049 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5050 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5052 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5054 (x86_64_skip_prologue): Rewrite in terms of
5055 x86_64_analyze_prologue.
5056 (x86_64_frame_base_address): New function.
5057 (x86_64_frame_base): New variable.
5058 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5059 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5060 set deprecated_fp_regnum, deprecated_register_size,
5061 deprecated_register_bytes, register_raw_size, register_byte,
5062 register_virtual_type, register_convertiable,
5063 register_convert_to_virtual, convert_to_raw,
5064 deprecated_get_saved_register, deprecated_target_read_fp,
5065 deprecated_push_arguments, deprecated_push_return_address,
5066 deprecated_pop_frame, deprecated_store_struct_return,
5067 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5068 frameless_function_invocation, deprecated_frame_saved_pc,
5069 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5070 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5071 deprecated_init_frame_pc and virtual_frame_pointer. Call
5072 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5073 and x86_64_frame_p. Call frame_base_set_default to register
5075 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5076 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5077 (_initialize_x86_64_tdep): Remove function.
5078 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5079 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5080 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5082 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5083 (x86_64_linux_sigcontext_addr): Rewrite.
5084 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5085 x86_64_linux_frame_saved_pc): Remove functions.
5086 (x86_64_linux_pc_in_sigtramp): Renamed from
5087 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5089 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5091 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5092 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5093 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5094 (x86_64_regmap): Rename to regmap.
5095 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5097 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5099 (x86_64_fxsave_offset): Remove function.
5100 (supply_fpregset): Simply call x86_64_supply_fxsave.
5101 (fill_fpregset): Simply call x86_64_fill_fxsave.
5102 (fetch_inferior_registers, store_inferior_registers): Avoid
5103 asignment in if-statement.
5104 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5105 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5106 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5107 (fetch_core_registers): Remove function.
5108 (linux_elf_core_fns): Remove.
5109 (offsetoff): Don't define.
5110 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5111 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5112 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5114 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5115 protection against multiple includes instead of NM_X86_64_h. Add
5116 various comments. Include "config/nm-linux.h". Don't include
5118 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5119 GET_THREAD_SIGNALS): Remove defines.
5120 (x86_64_register_u_addr, kernel_u_size,
5121 lin_thread_get_thread_signals): Remove prototypes.
5122 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5123 [HAVE_LINK_H]: Don't include "solib.h".
5124 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5125 * config/i386/tm-x86-64linux.h: Fix comments.
5126 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5127 x86-64-tdep.o): Update dependencies.
5129 2003-05-30 Andrew Cagney <cagney@redhat.com>
5131 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5132 Change parameter type to a "struct regcache *".
5134 * gdbarch.sh: Regardless of the multi-arch level, always define
5135 the macro when not already defined.
5136 * gdbarch.h, gdbarch.c: Re-generate.
5138 2003-05-30 Richard Henderson <rth@redhat.com>
5140 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5141 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5142 (alpha_mdebug_frame_this_id): Likewise.
5143 (alpha_mdebug_frame_prev_register): Likewise.
5144 (alpha_mdebug_frame_base_address): Likewise.
5145 (alpha_mdebug_frame_locals_address): Likewise.
5146 (alpha_mdebug_frame_args_address): Likewise.
5147 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5148 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5149 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5151 (alpha_heuristic_frame_this_id): Make static.
5152 (alpha_heuristic_frame_prev_register): Likewise.
5153 (alpha_heuristic_frame_base_address): Likewise.
5154 * alpha-tdep.h: Update.
5156 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5158 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5159 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5161 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5162 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5163 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5164 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5165 I386_ST0_REGNUM): New defines.
5166 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5167 codestream_get): Remove define.
5168 (codestream_next_addr, condestream_addr, condestream_buf,
5169 codestream_off, codestream_cnt): Remove variables.
5170 (codestream_fill, codestream_seek, codestream_read): Remove
5172 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5174 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5175 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5176 i386_frame_saved_pc, i386_saved_pc_after_call,
5177 i386_frame_num_args, i386_frame_init_saved_regs,
5178 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5179 i386_push_arguments): Remove functions.
5180 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5181 functionality. Use i386_analyze_prologue instead of
5182 i386_get_frame_setup.
5183 (I386_NUM_SAVED_REGS): New define.
5184 (struct i386_frame_cache): New structure.
5185 (i386_alloc_frame_cache, i386_analyze_struct_return,
5186 i386_skip_probe, i386_analyze_frame_setup,
5187 i386_analyze_register_saves, i386_analyze_prologue,
5188 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5189 i386_frame_prev_register, i386_sigtramp_frame_cache,
5190 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5191 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5192 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5194 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5196 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5197 I386_EAX_REGNUM and I386_EDX_REGNUM.
5198 (i386_extract_return_value, i386_store_return_value): Use
5199 I386_ST0_REGNUM where appropriate.
5200 (i386_extract_struct_value_address): Rewrite to use extract_address.
5201 (i386_svr4_pc_in_sigtramp): Add comment.
5202 (i386_svr4_sigcontext_addr): Rewrite.
5203 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5205 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5206 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5207 of new defines. Set push_dummy_call, don't set
5208 deprecated_push_arguments, deprecated_push_return_address,
5209 deprecated_pop_frame. Don't set parm_boundary. Don't set
5210 deprecated_frame_chain, deprecated_frame_saved_pc,
5211 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5212 save_dummy_frame_tos, unwind_pc. Call
5213 frame_unwind_append_predicate and frame_base_set_default. Don't
5214 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5215 Don't set frameless_function_invocation. Don't set
5216 deprecated_register_bytes, deprecated_register_size,
5217 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5218 * i386-linux-tdep.c: Fix formatting in some comments.
5219 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5220 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5221 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5222 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5223 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5224 redundant parentheses.
5225 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5226 (i386_linux_sigcontext_addr): Use it. Rewrite.
5227 (find_minsym_and_objfile): Change name of second argument.
5228 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5229 changed. Use frame_pc_unwind instead of
5230 DEPRECATED_SAVED_PC_AFTER_CALL.
5231 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5232 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5233 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5235 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5237 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5238 (_initialize_i386_cygwin_tdep): New prototype.
5239 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5240 deprecated_frame_chain_valid.
5241 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5242 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5243 Rely on the SVR4 defaults.
5244 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5245 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5247 2003-05-30 Andrew Cagney <cagney@redhat.com>
5249 * infcall.c (call_function_by_hand): Always call
5250 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5252 2003-05-30 Richard Henderson <rth@redhat.com>
5254 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5257 2003-05-29 Jim Blandy <jimb@redhat.com>
5259 Use gdbarch methods for solib stuff on PowerPC Linux.
5260 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5261 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5263 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5264 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5265 giving the same effect as the #definitions above.
5267 2003-05-29 Adam Fedor <fedor@gnu.org>
5269 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5270 (find_implementation_from_class): Replace it with the standard
5271 case i.e. do nothing.
5273 2003-05-29 Richard Henderson <rth@redhat.com>
5275 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5276 (alpha_linux_sigtramp_offset): Use it. Make static.
5277 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5278 update for new frame model.
5279 * alpha-mdebug-tdep.c: New file.
5280 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5281 (alpha_osf1_init_abi): Install it.
5282 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5283 (linked_proc_desc_table): Remove.
5284 (alpha_frame_past_sigtramp_frame): Remove.
5285 (alpha_dynamic_sigtramp_offset): Remove.
5286 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5287 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5288 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5289 (push_sigtramp_desc): Remove.
5290 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5291 (alpha_cannot_store_register): Likewise.
5292 (alpha_sigcontext_addr): Remove.
5293 (alpha_find_saved_regs): Remove.
5294 (alpha_frame_init_saved_regs): Remove.
5295 (alpha_init_frame_pc_first): Remove.
5296 (read_next_frame_reg): Remove.
5297 (alpha_frame_saved_pc): Remove.
5298 (alpha_saved_pc_after_call): Remove.
5299 (temp_proc_desc, temp_saved_regs): Remove.
5300 (alpha_about_to_return): Remove.
5301 (cached_proc_desc): Remove.
5302 (alpha_frame_chain): Remove.
5303 (alpha_print_extra_frame_info): Remove.
5304 (alpha_init_extra_frame_info): Remove.
5305 (alpha_frame_locals_address): Remove.
5306 (alpha_frame_args_address): Remove.
5307 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5308 (alpha_push_dummy_frame): Remove.
5309 (alpha_pop_frame): Remove.
5310 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5311 (alpha_read_insn): New.
5312 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5313 for different insn encodings.
5314 (alpha_in_lenient_prologue): Remove.
5315 (struct alpha_sigtramp_unwind_cache): New.
5316 (alpha_sigtramp_frame_unwind_cache): New.
5317 (alpha_sigtramp_register_address): New.
5318 (alpha_sigtramp_frame_this_id): New.
5319 (alpha_sigtramp_frame_prev_register): New.
5320 (alpha_sigtramp_frame_unwind): New.
5321 (alpha_sigtramp_frame_p): New.
5322 (struct alpha_heuristic_unwind_cache): New.
5323 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5324 don't count nop insns that occur between functions.
5325 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5326 heuristic_proc_desc, but without the mdebug wrapping.
5327 (alpha_heuristic_frame_this_id): New.
5328 (alpha_heuristic_frame_prev_register): New.
5329 (alpha_heuristic_frame_unwind): New.
5330 (alpha_heuristic_frame_p): New.
5331 (alpha_heuristic_frame_base_address): New.
5332 (alpha_heuristic_frame_base): New.
5333 (alpha_unwind_dummy_id): New.
5334 (alpha_unwind_pc): New.
5335 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5336 frame related deprecated initializations; install replacements.
5337 (alpha_dump_tdep): Remove.
5338 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5339 (alpha_read_insn, alpha_after_prologue,
5340 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5341 alpha_heuristic_frame_prev_register,
5342 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5343 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5344 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5345 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5347 2003-05-29 Andrew Cagney <cagney@redhat.com>
5349 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5350 dependant on the availability of ASSERT_FUNCTION.
5351 (ASSERT_FUNCTION): Do not define when there is no function name.
5353 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5355 From Jimi X <jimix@watson.ibm.com>:
5356 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5358 2003-05-28 Jim Blandy <jimb@redhat.com>
5360 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5361 argument to ptrace to int; the system headers should give it the
5362 right type, and pointers don't fit in ints on powerpc64-*-*.
5364 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5366 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5369 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5371 * stabsread.c (dbx_lookup_type): Make static.
5373 (add_undefined_type): Ditto.
5374 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5377 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5379 * hpread.c (hpread_has_name): Make static.
5380 (hpread_psymtab_to_symtab): Ditto.
5381 (file_exists): Ditto.
5382 (hpread_call_pxdb): Ditto.
5383 (hpread_pxdb_needed): Ditto.
5384 (hpread_quick_traverse): Ditto.
5385 (hpread_get_header): Ditto.
5386 (hpread_get_lntt): Ditto.
5387 (hpread_get_slt): Ditto.
5390 2003-05-25 Andreas Schwab <schwab@suse.de>
5392 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5393 stack_align and deprecated_extra_stack_alignment_needed.
5394 (m68k_stack_align): Delete.
5396 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5397 (m68k_register_virtual_size): Likewise.
5398 (altos_skip_prologue): Remove obsolete function.
5399 (isi_frame_num_args): Likewise.
5400 (news_frame_num_args): Likewise.
5401 (m68k_fix_call_dummy): Make static.
5402 (m68k_push_dummy_frame): Likewise.
5403 (m68k_pop_frame): Likewise.
5404 (m68k_skip_prologue): Likewise.
5405 (m68k_frame_init_saved_regs): Likewise.
5406 (m68k_saved_pc_after_call): Likewise.
5407 (m68k_get_longjmp_target): Make multi-arch.
5408 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5409 structure. Register m68k_get_longjmp_target if enabled.
5410 * m68k-tdep.h (struct gdbarch_tdep): Define.
5411 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5413 * Makefile.in (config.status): Also depend on configure.tgt
5415 (m68klinux-tdep.o): Update dependencies.
5416 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5417 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5418 (M68K_LINUX_JB_PC): Define.
5419 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5420 and take additional parameter.
5421 (m68k_linux_sigtramp_saved_pc): Update.
5422 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5423 m68k_linux_pc_in_sigtramp, in_plt_section,
5424 find_solib_trampoline_target.
5425 * config/m68k/tm-linux.h: Don't include any tm headers.
5426 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5427 (JB_ELEMENT_SIZE): Likewise.
5429 (GET_LONGJMP_TARGET): Likewise.
5430 (IN_SIGTRAMP): Likewise.
5431 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5433 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5435 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5436 (sparc32_push_arguments): Re-implement by calling
5437 sparc32_do_push_arguments.
5439 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5441 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5442 SPARC_O1_REGNUM): New defines.
5443 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5444 (sparc32_store_return_value): New function.
5445 (sparc_extract_struct_value_address): Rewrite to operate on a
5447 (sparc_gdbarch_init): Don't set
5448 deprecated_extract_struct_value_address. Set
5449 extract_struct_value_address instead. Don't set
5450 deprecated_extract_return_value and deprecated_store_return_value
5451 for 32-bit targets. Set extract_return_value and
5452 store_return_value instead.
5453 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5454 DEPRECTAED_EXTRACT_RETURN_VALUE,
5455 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5456 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5457 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5458 (sparc_store_return_value): Remove prototype.
5459 (sparc32_store_return_value): New prototype.
5460 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5463 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5465 * sparcnbsd-tdep.c: Include "gdb_string.h".
5467 2003-05-23 Andrew Cagney <cagney@redhat.com>
5469 * p-valprint.c (pascal_val_print): Replace extract_address with
5470 the inline equivalent extract_unsigned_integer.
5471 * jv-valprint.c (java_value_print): Ditto.
5472 * ada-valprint.c (ada_val_print_1): Ditto.
5473 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5475 2003-05-23 Theodore A. Roth <troth@openavr.org>
5477 * blockframe.c (frameless_look_for_prologue): Remove unused
5478 after_prologue variable.
5480 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5482 * blockframe.c (get_pc_function_start): Rewrite to avoid
5483 asignments in if-statements.
5485 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5487 Committed by Elena Zannoni <ezannoni@redhat.com>.
5488 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5489 files, don't relocate absolute symbols (and do use mst_abs).
5491 2003-05-23 Andrew Cagney <cagney@redhat.com>
5493 * objc-lang.c: Include "gdb_assert.h".
5494 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5495 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5496 (gdb_check, gdb_check_fatal): Delete functions.
5497 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5499 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5500 * Makefile.in (objc-lang.o): Update dependencies.
5502 2003-05-22 Ian Lance Taylor <ian@airs.com>
5504 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5505 with fprintf_filtered, not fprintf_unfiltered.
5507 2003-05-22 Andrew Cagney <cagney@redhat.com>
5509 * stack.c (frame_info): Inline extract_address, replacing it with
5510 extract_unsigned_integer.
5511 * findvar.c (unsigned_pointer_to_address): Ditto.
5512 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5513 * dwarf2expr.c (dwarf2_read_address): Ditto.
5514 * frame.c (frame_pc_unwind): Update comment.
5515 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5517 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5519 * infptrace.c (detach): Call print_sys_errmsg rather than
5520 perror_with_name to issue warning message when errno is non-zero
5521 after calling ptrace detach.
5523 2003-05-21 J. Brobecker <brobecker@gnat.com>
5525 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5526 macro definitions from here...
5527 * hppa-tdep.c: ...to there.
5529 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5531 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5532 register_ptrace_addr(). Fix all callers.
5534 2003-05-21 Andreas Schwab <schwab@suse.de>
5536 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5538 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5540 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5541 (_initialize_m68k_linux_tdep): New function.
5542 (m68k_linux_frame_saved_pc): Make static.
5543 (m68k_linux_extract_return_value): Likewise.
5544 (m68k_linux_store_return_value): Likewise.
5545 (m68k_linux_extract_struct_value_address): Likewise.
5546 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5548 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5549 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5550 (DEPRECATED_FRAME_SAVED_PC): Remove.
5552 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5554 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5555 regset numbering rather than our own.
5557 2003-05-19 David Carlton <carlton@bactrian.org>
5559 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5561 2003-05-19 David Carlton <carlton@bactrian.org>
5563 Partial fix for PR c++/827.
5564 * cp-support.h: Include symtab.h.
5565 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5566 * cp-namespace.c: Update contributors.
5567 (cp_lookup_symbol_nonlocal): New.
5568 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5569 (lookup_symbol_file): Ditto.
5570 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5571 * block.h: Declare block_scope, block_using, block_global_block.
5572 * block.c (block_scope): New.
5573 (block_using, block_global_block): Ditto.
5574 * Makefile.in (cp_support_h): Depend on symtab_h.
5575 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5577 2003-05-19 David Carlton <carlton@bactrian.org>
5579 * language.h (struct language_defn): Add 'la_value_of_this'
5580 and 'la_lookup_symbol_nonlocal' members.
5581 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5582 lookup_symbol_static, lookup_symbol_global,
5583 lookup_symbol_aux_block.
5584 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5585 if we should search fields of this and how to do static/global
5587 (lookup_symbol_aux_block): Make extern.
5588 (basic_lookup_symbol_nonlocal): New.
5589 (lookup_symbol_static, lookup_symbol_global): Ditto.
5590 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5591 'la_lookup_symbol_nonlocal' members.
5592 * c-lang.c (c_language_defn, cplus_language_defn)
5593 (asm_language_defn, minimal_language_defn): Ditto.
5594 * jv-lang.c (java_language_defn): Ditto.
5595 * language.c (unknown_language_defn, auto_language_defn)
5596 (local_language_defn): Ditto.
5597 * m2-lang.c (m2_language_defn): Ditto.
5598 * objc-lang.c (objc_language_defn): Ditto.
5599 * scm-lang.c (scm_language_defn): Ditto.
5600 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5601 * p-lang.c (pascal_language_defn): Ditto for both.
5602 * Makefile.in (f-lang.o): Depend on value_h.
5605 2003-05-19 David Carlton <carlton@bactrian.org>
5607 * block.h: Declare block_static_block.
5608 * block.c (block_static_block): New.
5609 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5610 lookup_symbol_aux_local, calling block_static_block instead.
5611 (lookup_symbol_aux_local): Delete 'static_block' argument.
5613 2003-05-19 David Carlton <carlton@bactrian.org>
5615 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5617 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5619 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5620 register numbers mapping.
5622 2003-05-18 Adam Fedor <fedor@gnu.org>
5624 * symtab.c (completion_list_objc_symbol): New function.
5625 (make_symbol_completion_list): Use it to add ObjC symbols
5626 when looking though the list.
5627 (language_search_unquoted_string): New function.
5628 (make_file_symbol_completion_list): Use it.
5630 2003-05-18 Andreas Schwab <schwab@suse.de>
5632 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5634 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5635 as m68k_linux_extract_return_value.
5636 (DEPRECATED_STORE_RETURN_VALUE): Define as
5637 m68k_linux_store_return_value.
5638 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5639 m68k_linux_extract_struct_value_address.
5640 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5641 get_next_frame, get_frame_base, get_frame_pc.
5642 (m68k_linux_frame_saved_pc): Use get_frame_base.
5643 (m68k_linux_extract_return_value): New function.
5644 (m68k_linux_store_return_value): New function.
5645 (m68k_linux_extract_struct_value_address): New function.
5646 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5648 * c-exp.y (typebase): Remove duplicate occurence of
5649 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5650 of lookup_signed_typename.
5652 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5654 * dwarf2loc.c (find_location_expression): Change type of second
5655 argument to `size_t *'.
5656 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5659 2003-05-18 David Carlton <carlton@bactrian.org>
5661 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5662 'linkage_name'. Add comment.
5663 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5665 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5666 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5667 (lookup_block_symbol): Ditto.
5669 2003-05-16 Andrew Cagney <cagney@redhat.com>
5671 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5672 * gdbarch.h, gdbarch.c: Re-generate.
5673 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5674 * TODO (REGISTER_BYTES): Delete reference.
5675 * alpha-tdep.c (alpha_gdbarch_init): Update.
5676 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5677 * x86-64-tdep.c (x86_64_init_abi): Update.
5678 * vax-tdep.c (vax_gdbarch_init): Update.
5679 * v850-tdep.c (v850_gdbarch_init): Update.
5680 * sparc-tdep.c (sparc_gdbarch_init): Update.
5681 * sh-tdep.c (sh_gdbarch_init): Update.
5682 * s390-tdep.c (s390_gdbarch_init): Update.
5683 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5684 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5685 (ns32k_gdbarch_init_32382): Update.
5686 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5687 * mcore-tdep.c (mcore_gdbarch_init): Update.
5688 * m68k-tdep.c (m68k_gdbarch_init): Update.
5689 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5690 * ia64-tdep.c (ia64_gdbarch_init): Update.
5691 * i386-tdep.c (i386_gdbarch_init): Update.
5692 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5693 * hppa-tdep.c (hppa_gdbarch_init): Update.
5694 * h8300-tdep.c (h8300_gdbarch_init): Update.
5695 * frv-tdep.c (frv_gdbarch_init): Update.
5696 * cris-tdep.c (cris_gdbarch_init): Update.
5697 * avr-tdep.c (avr_gdbarch_init): Update.
5698 * arm-tdep.c (arm_gdbarch_init): Update.
5699 * sparc-tdep.c (sparc_pop_frame): Update.
5700 * rs6000-tdep.c (rs6000_pop_frame): Update.
5701 * remote.c (init_remote_state): Update.
5702 (remote_prepare_to_store): Update.
5703 * remote-vx.c (vx_prepare_to_store): Update.
5704 * remote-sds.c (sds_fetch_registers): Update.
5705 (sds_prepare_to_store): Update.
5706 * remote-array.c: Update.
5707 * regcache.c (init_legacy_regcache_descr): Update.
5708 (init_regcache_descr): Update.
5709 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5710 (mips_o64_extract_return_value): Update.
5711 * irix5-nat.c (fetch_core_registers): Update.
5712 * irix4-nat.c (fetch_core_registers): Update.
5713 * i386-tdep.h: Update.
5714 * hppa-tdep.c (pa_do_registers_info): Update.
5715 (pa_do_strcat_registers_info): Update.
5716 * cris-tdep.c (cris_register_bytes_ok): Update.
5717 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5718 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5719 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5720 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5721 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5722 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5723 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5724 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5725 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5726 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5727 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5728 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5729 (REGISTER_BYTES_OK): Update.
5730 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5731 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5733 2003-05-16 Ian Lance Taylor <ian@airs.com>
5735 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5736 (vax_print_insn, print_insn_arg): Remove static functions.
5737 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5738 print_insn_vax from opcodes library.
5739 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5741 2003-05-15 Andrew Cagney <cagney@redhat.com>
5743 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5744 * target.h (memory_breakpoint_from_pc): Delete declaration.
5745 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5746 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5747 * monitor.c (monitor_insert_breakpoint): Use
5748 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5749 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5750 * gdbarch.h, gdbarch.c: Re-generate.
5751 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5752 (sparc_gdbarch_init): Set breakpoint_from_pc to
5753 sparc_breakpoint_from_pc.
5754 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5755 (BREAKPOINT_FROM_PC): Define.
5756 (sparc_breakpoint_from_pc): Declare.
5757 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5758 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5759 (BREAKPOINT_FROM_PC): Define.
5760 (BREAKPOINT): Delete macro.
5761 * target.h: Update comment.
5762 * s390-tdep.c (s390_gdbarch_init): Update comments.
5763 * remote.c: Update comments.
5764 * remote-mips.c: Update comments.
5765 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5766 * mem-break.c: Update comment.
5767 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5768 (ia64_memory_insert_breakpoint): Update.
5769 * config/sparc/tm-sparc.h: Update comment.
5770 * config/pa/tm-hppa64.h: Update comment.
5771 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5772 (rs6000_breakpoint_from_pc): Update.
5773 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5774 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5775 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5776 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5777 (mips_breakpoint_from_pc): Update.
5778 (mips_dump_tdep): Update.
5780 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5781 * minsyms.c (lookup_minimal_symbol): Inline
5782 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5784 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5785 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5786 * p-lang.c (pascal_printstr): Ditto.
5787 * objc-lang.c (objc_printstr): Ditto.
5788 * m2-lang.c (m2_printstr): Ditto.
5789 * jv-valprint.c (java_print_value_fields): Ditto.
5790 * f-lang.c (f_printstr): Ditto.
5791 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5792 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5793 for repeat_count_threshold.
5794 * Makefile.in (cp-valprint.o): Update dependencies.
5796 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5798 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5799 (examine_prologue): Support looking through leaf functions, knowing
5800 they start with mov r2,r12. Support skipping over indirect stores
5801 of the input registers. Upon hitting a non-nop branch instruction
5802 or predicated instruction, bail out by setting lim_pc to the current
5803 pc value in the loop. At the end, if the lim_pc value is still
5804 beyond our calculated value and we have trust_limit set,
5805 use the lim_pc value.
5807 2003-05-15 Andrew Cagney <cagney@redhat.com>
5809 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5810 generic_find_dummy_frame.
5811 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5812 (deprecated_generic_find_dummy_frame): Update.
5813 (deprecated_read_register_dummy): Update.
5814 * frame.c (deprecated_generic_get_saved_register): Update.
5816 2003-05-15 Theodore A. Roth <troth@openavr.org>
5818 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5819 (avr_gdbarch_init): Set breakpoint_from_pc method.
5821 2003-05-15 Andrew Cagney <cagney@redhat.com>
5823 * regcache.c (build_regcache): Set deprecated_register_valid
5825 (deprecated_grub_regcache_for_register_valid): Delete function.
5826 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5829 2003-05-15 David Carlton <carlton@bactrian.org>
5831 Committed by Elena Zannoni <ezannoni@redhat.com>
5832 * symtab.c (lookup_symbol_aux): Delete calls to
5833 lookup_symbol_aux_minsyms.
5834 (lookup_symbol_aux_minsyms): Comment out function and
5835 prototype. Delete lookup by mangled name.
5837 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5839 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5840 correctly indicate an empty stack and ``stack_allocated'' to the
5841 indicate the number of elements initially allocated.
5842 (dwarf_expr_grow_stack): Simplify method for computing new
5843 stack size. Don't loop infinitely if ``stack_len'' is zero.
5844 (execute_stack_op): Move ``ctx->in_reg'' initialization
5845 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5846 be used in conjuction with DW_OP_piece. Revise error message
5849 2003-05-14 Theodore A. Roth <troth@openavr.org>
5851 * MAINTAINERS: Update my email address.
5852 * avr-tdep.c: Ditto.
5854 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5856 * symtab.h (enum domain_enum): Rename from namespace_enum.
5857 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5858 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5859 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5860 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5861 TYPES_NAMESPACE, METHODS_NAMESPACE.
5862 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5863 (struct symbol, struct partial_symbol): Rename field
5864 'namespace_enum namespace' to 'domain_enum domain'.
5865 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5866 Delete old define kludge for namespace.
5868 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5869 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5870 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5871 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5872 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5873 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5874 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5875 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5876 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5877 occurrences of the above.
5879 2003-05-14 Ian Lance Taylor <ian@airs.com>
5881 * Makefile.in (install-only): Use $(SHELL) when running
5884 2003-05-13 Ian Lance Taylor <ian@airs.com>
5886 * MAINTAINERS (write after approval): Add myself.
5888 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5889 second and third arguments.
5890 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5891 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5893 2003-05-13 Andrew Cagney <cagney@redhat.com>
5895 * defs.h (store_address): Delete declaration.
5896 findvar.c (store_address): Delete function.
5897 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5898 store_unsigned_integer.
5899 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5900 * v850-tdep.c (v850_push_arguments): Ditto.
5901 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5902 * sh-tdep.c (sh64_get_saved_register): Ditto.
5903 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5904 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5905 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5906 (mips_get_saved_register): Ditto.
5907 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5908 (find_func_descr, ia64_push_arguments): Ditto.
5909 * i386-tdep.c (i386_push_arguments): Ditto.
5910 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5911 * frv-tdep.c (frv_push_arguments): Ditto.
5912 * frame.c (legacy_saved_regs_prev_register): Ditto.
5913 (deprecated_generic_get_saved_register): Ditto.
5914 * findvar.c (unsigned_address_to_pointer): Ditto.
5915 * dwarf2read.c (dwarf2_const_value): Ditto.
5916 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5917 * alpha-tdep.c (alpha_push_arguments): Ditto.
5919 2003-05-12 J. Brobecker <brobecker@gnat.com>
5921 * NEWS: Mention that the hppa-hpux port has been partially
5922 multiarched (32bit ABIT only, so far).
5924 2003-05-11 Andrew Cagney <cagney@redhat.com>
5926 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5927 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5928 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5929 sim/testsuite/sim/arm/misaligned2.ms, and
5930 sim/testsuite/sim/arm/misaligned3.ms.
5931 * disasm.h (struct ui_file): Add opaque struct declaration.
5932 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5933 * frame.h (struct ui_file): Ditto.
5935 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5937 * value.h: Pretty print.
5939 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5941 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5943 2003-05-08 Andrew Cagney <cagney@redhat.com>
5945 * regcache.h (max_register_size): Delete declaration.
5946 * regcache.c (max_register_size): Delete function.
5947 (struct regcache_descr): Delete field "max_register_size".
5948 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5949 registers fit in MAX_REGISTER_SIZE.
5950 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5951 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5952 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5953 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5954 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5955 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5956 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5957 * dve3900-rom.c, hppa-tdep.c: Ditto.
5959 2003-05-08 David Carlton <carlton@math.stanford.edu>
5961 * valops.c (push_word): Fix typo.
5963 2003-05-08 Andrew Cagney <cagney@redhat.com>
5965 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5966 * gdbarch.h: Re-generate.
5967 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5968 (legacy_max_register_raw_size): Delete declaration.
5969 * regcache.c (legacy_max_register_raw_size): Delete function.
5970 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5971 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5972 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5973 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5974 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5975 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5976 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5977 * findvar.c, dwarf2cfi.c: Ditto.
5979 2003-05-08 Andrew Cagney <cagney@redhat.com>
5981 * mips-tdep.c (read_signed_register): New function, moved to here
5983 (read_signed_register_pid): Ditto.
5984 * regcache.c (read_signed_register_pid): Delete function, moved to
5986 (read_signed_register): Ditto.
5987 * regcache.h (read_signed_register): Delete declaration.
5988 (read_signed_register_pid): Delete declaration.
5990 2003-05-08 Andrew Cagney <cagney@redhat.com>
5992 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5993 * gdbarch.h: Re-generate.
5994 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5995 (legacy_max_register_virtual_size): Delete declaration.
5996 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5997 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5998 * tracepoint.c (memrange_sortmerge): Ditto.
5999 * sparc-tdep.c (sparc_print_registers): Ditto.
6000 * regcache.c (legacy_max_register_virtual_size): Delete function.
6002 2002-05-08 J. Brobecker <brobecker@gnat.com>
6004 * fork-child.c (escape_bang_in_quoted_argument): New function.
6005 (fork_inferior): Escape '!' characters in quoted arguments
6008 2003-05-08 J. Brobecker <brobecker@gnat.com>
6010 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6011 the language of the CU is not currently supported by GDB.
6013 2003-05-08 J. Brobecker <brobecker@gnat.com>
6015 * defs.h (language): Add language_minimal enum value.
6016 * c-lang.c (minimal_language_defn): New language definition.
6017 (_initialize_c_language): Add the new minimal language to the list
6018 of languages known to GDB.
6020 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6022 * frame.c (get_frame_type): Don't attempt to lazily initialize
6023 frame's unwinder for legacy frames.
6025 2003-05-07 Andrew Cagney <cagney@redhat.com>
6027 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6028 and "regcache" parameters.
6029 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6031 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6033 * dwarf2read.c (dwarf_decode_lines): Only use output of
6034 check_cu_functions() when calling record_line(). Do not update
6035 the current address.
6037 2003-05-07 Andrew Cagney <cagney@redhat.com>
6039 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6042 2003-05-07 Jim Blandy <jimb@redhat.com>
6044 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6045 'maint info symtabs' and 'maint info psymtabs'.
6046 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6047 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6048 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6049 Declarations updated.
6050 * maint.c (maintenance_list_command): Delete.
6051 (_initialize_maint_cmds): Update calls to add_cmd.
6052 * gdbcmd.h (maintenancelistlist): Delete declaration.
6053 * cli/cli-cmds.c (maintenancelistlist): Delete.
6054 (init_cmd_lists): Don't initialize it.
6055 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6057 2003-05-07 Andrew Cagney <cagney@redhat.com>
6059 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6061 (d10v_print_registers_info): Update.
6062 (d10v_dmap_register, d10v_imap_register): Delete functions.
6063 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6064 and "imap_register".
6065 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6066 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6067 * arch-utils.c (generic_remote_translate_xfer_address): Add
6068 "regcache" and "gdbarch" parameters.
6069 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6070 parameter. Change class to multi-arch.
6071 * gdbarch.h, gdbarch.c: Re-generate.
6072 * remote.c (remote_xfer_memory): Use
6073 gdbarch_remote_translate_xfer_address.
6075 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6077 * infrun.c (prev_pc): Move declaration ahead of proceed().
6078 (proceed): Refresh prev_pc value before resuming.
6079 (stop_stepping): Remove code to refresh prev_pc.
6081 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6083 * nto-tdep.c: Removed stray comment.
6085 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6087 * i386-nto-tdep.c: Fix old K&R function definitions.
6088 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6089 Also change add_show_from_set() call to add_setshow_cmd().
6090 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6092 2003-05-05 Andrew Cagney <cagney@redhat.com>
6094 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6095 (fprint_dummy_frames): New function.
6096 (maintenance_print_dummy_frames): New function.
6097 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6098 * frame.c (fprint_frame_id): Make global.
6099 * frame.h (fprint_frame_id): Declare.
6100 * Makefile.in (dummy-frame.o): Update dependencies.
6102 2003-05-05 Andrew Cagney <cagney@redhat.com>
6104 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6105 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6106 SIZEOF_CALL_DUMMY_WORDS.
6107 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6108 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6109 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6110 CALL_DUMMY_BREAKPOINT_OFFSET.
6111 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6112 CALL_DUMMY_START_OFFSET.
6113 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6114 * gdbarch.h, gdbarch.c: Re-generate.
6115 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6116 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6117 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6118 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6119 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6120 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6121 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6122 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6123 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6124 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6125 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6126 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6127 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6128 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6129 * config/sparc/tm-sparc.h: Update.
6131 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6133 * configure.tgt: Add i[3456]86-*-nto*.
6134 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6135 * nto-tdep.c: New file. Neutrino target support routines.
6136 * nto-tdep.h: New file. Neutrino target header.
6137 * config/tm-qnxnto.h: New file.
6138 * config/i386/i386nto.mt: New file.
6139 * config/i386/tm-i386nto.h: New file.
6141 2003-05-04 Andrew Cagney <cagney@redhat.com>
6143 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6144 (load_infrun_state): Ditto.
6145 (struct thread_info): Drop "prev_func_name" field.
6146 * thread.c (load_infrun_state): Update.
6147 (save_infrun_state): Update.
6148 * infrun.c (prev_func_name): Delete variable.
6149 (init_wait_for_inferior): Do not clear prev_func_name.
6150 (stop_stepping, keep_going, context_switch): Do not swap
6152 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6153 instead of PC_IN_SIGTRAMP.
6155 2003-05-04 Andrew Cagney <cagney@redhat.com>
6157 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6158 REGISTER_BYTE with register_offset_hack.
6159 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6160 that REGISTER_BYTE is consistent with the regcache.
6161 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6162 * gdbarch.h, gdbarch.c: Regenerate.
6164 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6166 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6167 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6169 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6171 2003-05-03 J. Brobecker <brobecker@gnat.com>
6173 From Thierry Schneider <tpschneider1@yahoo.com>
6174 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6175 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6176 (mi-cmd-symbol.o): Add rule.
6178 2003-05-03 Andrew Cagney <cagney@redhat.com>
6180 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6181 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6182 * gdbarch.h, gdbarch.c: Re-generate.
6183 * d10v-tdep.c (d10v_push_dummy_code): New function.
6184 (d10v_gdbarch_init): Set push_dummy_code.
6185 * infcall.c (legacy_push_dummy_code): New function.
6186 (generic_push_dummy_code): New function.
6187 (push_dummy_code): New function.
6188 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6189 instead of dummy_addr, to push_dummy_call. Move call to
6190 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6192 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6194 2003-05-03 Andrew Cagney <cagney@redhat.com>
6196 * disasm.h (print_insn): Declare.
6197 * disasm.c (init_gdb_disassemble_info): New function.
6198 (gdb_disassembly): Call init_gdb_disassemble_info.
6199 (gdb_print_insn): New function.
6200 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6201 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6202 * mcore-tdep.c: Include "disasm.h"
6203 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6204 * d10v-tdep.c: Include "disasm.h".
6205 (display_trace): Call gdb_print_insn, instead of print_insn.
6206 (print_insn): Delete function.
6207 * printcmd.c: Include "disasm.h".
6208 (print_insn): Delete function.
6209 (print_formatted): Call gdb_print_insn, instead of print_insn.
6210 * Makefile.in (printcmd.o): Update dependencies.
6211 (mcore-tdep.o, d10v-tdep.o): Ditto.
6213 2003-05-02 Andrew Cagney <cagney@redhat.com>
6215 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6216 PC_REGNUM, re-indent.
6217 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6218 PC_REGNUM isn't set.
6220 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6221 * gdbarch.h, gdbarch.c: Re-generate.
6222 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6223 register_virtual_size, pc_regnum, or register_bytes.
6224 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6225 (d10v_register_type): Use D10V_PC_REGNUM.
6226 (d10v_print_registers_info, d10v_read_pc): Ditto.
6227 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6228 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6230 2003-05-02 David Carlton <carlton@bactrian.org>
6232 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6233 the name with mstrsave.
6235 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6237 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6238 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6239 (host_charset_name, target_charset_name): New vars for use by
6241 (host_charset_enum, target_charset_enum): New enums for set/show
6243 (set_charset_sfunc, set_host_charset_sfunc,
6244 set_target_charset_sfunc): New functions.
6245 (set_host_charset, set_target_charset): Make static.
6246 (list_charsets, set_host_charset_command,
6247 set_target_charset_command): Delete functions.
6248 (show_charset_command): Rewrite as....
6249 (show_charset): Hook this up with the set/show command mechanism.
6250 (_initialize_charset): Change names of charsets to match the
6251 set/show enums. Use host_charset_name and target_charset_name.
6252 Use set/show mechanism for charset, host-charset, target-charset
6253 commands. Do not make 'show host-charset' and 'show
6254 target-charset' be aliases of 'show charset'.
6256 * charset.h (set_host_charset, set_target_charset): Don't export,
6257 they are not used outside the file.
6259 2003-05-01 Andrew Cagney <cagney@redhat.com>
6261 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6262 (gdb_disassembly): Make "di" non static, always initialize and
6263 cleanup. Always use dis_asm_read_memory.
6264 (gdb_dis_asm_read_memory): Delete function.
6266 2003-05-01 Andrew Cagney <cagney@redhat.com>
6268 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6269 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6271 2003-04-30 Andrew Cagney <cagney@redhat.com>
6273 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6274 "tm_print_insn_info".
6275 (TARGET_PRINT_INSN_INFO): Delete macro.
6276 (dis_asm_read_memory): Delete function declaration.
6277 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6278 (tm_print_insn_info): Delete variable definition.
6279 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6280 * gdbarch.h, gdbarch.c: Re-generate.
6281 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6282 "deprecated_tm_print_insn_info".
6283 * mcore-tdep.c (mcore_dump_insn): Ditto.
6284 * mips-tdep.c (mips_gdbarch_init): Ditto.
6285 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6286 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6287 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6288 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6289 instead of TARGET_PRINT_INSN_INFO, add comment.
6290 * s390-tdep.c (s390_get_frame_info): Instead of
6291 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6292 (s390_check_function_end, s390_is_sigreturn): Ditto.
6293 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6294 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6295 * disasm.c: Include "gdbcore.h".
6296 (_initialize_disasm): New function, initialize
6297 "deprecated_tm_print_insn_info".
6298 (deprecated_tm_print_insn_info): New variable.
6299 (dis_asm_read_memory): Moved from "corefile.c", made static.
6300 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6301 * Makefile.in (disasm.o): Update dependencies.
6303 2003-04-30 Andrew Cagney <cagney@redhat.com>
6305 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6307 2003-04-29 Adam Fedor <fedor@gnu.org>
6309 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6310 * infcall.c (find_function_addr): Make non-static.
6311 * infcall.h (find_function_addr): Declare.
6312 * Makefile.in (eval.o): Update dependencies.
6314 2003-04-28 Adam Fedor <fedor@gnu.org>
6316 * symtab.c (symbol_find_demangled_name): Check for and demangle
6318 (symbol_init_demangled_name): Init for language_objc as well.
6320 2003-04-28 Andrew Cagney <cagney@redhat.com>
6322 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6323 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6324 * gdbarch.h, gdbarch.c: Re-generate.
6325 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6326 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6327 * inferior.h (deprecated_read_fp): Rename read_fp.
6328 (generic_target_read_fp): Delete declaration.
6329 * regcache.c (generic_target_read_fp): Delete function.
6330 (deprecated_read_fp): Replace read_fp, use
6331 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6332 * d10v-tdep.c (d10v_read_fp): Delete function.
6333 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6335 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6336 deprecated_target_read_fp to generic_target_read_fp.
6337 * sh-tdep.c (sh_gdbarch_init): Ditto.
6338 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6339 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6340 * frv-tdep.c (frv_gdbarch_init): Ditto.
6342 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6343 deprecated_fp_regnum.
6344 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6345 * vax-tdep.c (vax_gdbarch_init): Ditto.
6346 * v850-tdep.c (v850_gdbarch_init): Ditto.
6347 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6348 * sh-tdep.c (sh_gdbarch_init): Ditto.
6349 * s390-tdep.c (s390_gdbarch_init): Ditto.
6350 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6351 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6352 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6353 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6354 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6355 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6356 * i386-tdep.c (i386_gdbarch_init): Ditto.
6357 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6358 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6359 * frv-tdep.c (frv_gdbarch_init): Ditto.
6360 * cris-tdep.c (cris_gdbarch_init): Ditto.
6361 * avr-tdep.c (avr_gdbarch_init): Ditto.
6362 * arm-tdep.c (arm_gdbarch_init): Ditto.
6363 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6365 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6366 * v850-tdep.c (v850_gdbarch_init): Ditto.
6367 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6368 * sh-tdep.c (sh_gdbarch_init): Ditto.
6369 * s390-tdep.c (s390_gdbarch_init): Ditto.
6370 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6371 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6372 * mips-tdep.c (mips_gdbarch_init): Ditto.
6373 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6374 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6375 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6376 * frv-tdep.c (frv_gdbarch_init): Ditto.
6377 * avr-tdep.c (avr_gdbarch_init): Ditto.
6378 * arm-tdep.c (arm_gdbarch_init): Ditto.
6380 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6381 DEPRECATED_FP_REGNUM.
6382 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6383 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6384 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6385 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6386 (sparc32_register_virtual_type): Ditto.
6387 * sh-tdep.c (sh64_frame_chain): Ditto.
6388 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6389 (sh_nofp_frame_init_saved_regs): Ditto.
6390 (sh64_nofp_frame_init_saved_regs): Ditto.
6391 (sh_fp_frame_init_saved_regs): Ditto.
6392 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6393 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6394 * procfs.c (procfs_fetch_registers): Ditto.
6395 (procfs_store_registers): Ditto.
6396 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6397 (store_inferior_registers, fetch_core_registers): Ditto.
6398 (fetch_kcore_registers, clear_regs): Ditto.
6399 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6400 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6401 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6402 * nlm/i386.c (do_status): Ditto.
6403 * mipsv4-nat.c (supply_gregset): Ditto.
6404 * mips-tdep.c: Ditto for comments.
6405 * mips-nat.c (fetch_inferior_registers): Ditto.
6406 (store_inferior_registers, fetch_core_registers): Ditto.
6407 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6408 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6409 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6410 (i386_do_pop_frame, i386_register_type): Ditto.
6411 * hppa-tdep.c (hppa_frame_chain): Ditto.
6412 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6413 (hppa_pop_frame, hppa_read_fp): Ditto.
6414 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6415 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6416 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6417 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6418 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6419 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6420 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6421 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6422 * blockframe.c: Ditto for comments.
6423 * arch-utils.h: Ditto for comments.
6424 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6425 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6426 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6427 * alpha-tdep.h: Ditto for comments.
6428 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6429 (alpha_cannot_store_register): Ditto.
6430 (alpha_push_dummy_frame): Ditto.
6431 * alpha-nat.c (supply_gregset): Ditto.
6433 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6434 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6435 * config/sparc/tm-sparc.h: Update comment.
6437 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6438 deprecated_read_fp instead of TARGET_READ_FP.
6439 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6440 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6441 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6442 deprecated_read_fp instead of read_fp.
6443 * s390-tdep.c (s390_push_arguments): Ditto.
6444 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6445 * frame.h: Ditto in comments.
6446 * frame.c (legacy_get_prev_frame): Ditto.
6447 * dummy-frame.c (dummy_frame_this_id): Ditto.
6448 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6450 2003-04-28 Andrew Cagney <cagney@redhat.com>
6452 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6453 * gdbarch.h, gdbarch.c: Re-generate.
6454 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6455 * vax-tdep.c (_initialize_vax_tdep): Update.
6456 * v850-tdep.c (_initialize_v850_tdep): Update.
6457 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6458 * s390-tdep.c (_initialize_s390_tdep): Update.
6459 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6460 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6461 * mips-tdep.c (_initialize_mips_tdep): Update.
6462 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6463 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6464 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6465 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6466 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6467 * frv-tdep.c (_initialize_frv_tdep): Update.
6468 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6469 (_initialize_cris_tdep): Update.
6470 * arch-utils.c (legacy_print_insn): Update.
6471 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6473 2003-04-26 Adam Fedor <fedor@gnu.org>
6475 * linespec.c (decode_objc): New function to decode ObjC calls
6476 (decode_line_1): Check for ObjC calls (using decode_objc)
6477 * Makefile (linespec.o): Update dependencies.
6479 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6481 * breakpoint.h (struct breakpoint_ops): New.
6482 (struct breakpoint): Add ops member.
6484 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6485 (mention): Use new breakpoint ops member.
6486 (set_raw_breakpoint): Initialize ops field to NULL.
6487 (print_exception_catchpoint, print_one_exception_catchpoint)
6488 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6489 (gnu_v3_exception_catchpoint_ops): New.
6490 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6492 2003-04-25 Adam Fedor <fedor@gnu.org>
6494 * Makefile.in (COMMON_OBS): Add objc-lang.o
6496 2003-04-25 Andrew Cagney <cagney@redhat.com>
6498 * d10v-tdep.c (print_insn): Delete function.
6499 (display_trace): Use TARGET_PRINT_INSN.
6500 (_initialize_d10v_tdep): Do not set tm_print_insn.
6501 (d10v_gdbarch_init): Set print_insn.
6503 2003-04-25 Andrew Cagney <cagney@redhat.com>
6505 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6506 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6507 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6508 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6509 (nr_dmap_regs, a0_regnum): ... new functions.
6510 (d10v_print_registers_info): Use a0_regnum, use register_size.
6511 (d10v_register_byte): Delete function.
6512 (d10v_register_raw_size): Delete function.
6513 (d10v_register_type): Use a0_regnum.
6514 (d10v_print_registers_info): Use a0_regnum.
6515 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6516 (d10v_gdbarch_init): Do not set register_byte or
6517 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6518 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6520 (trace_command): Use XCALLOC.
6521 (print_insn): Delete reference to tm_print_insn.
6522 (saved_regs_unwinder): Use store_unsigned_integer instead of
6524 * frame.h (FRAME_OBSTACK_CALLOC): Define
6526 2003-04-25 David Carlton <carlton@bactrian.org>
6528 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6530 2003-04-24 Adam Fedor <fedor@gnu.org>
6532 * objc-lang.c: Include "valprint.h"
6533 * Makefile.in (objc-lang.o): Update dependencies.
6535 2003-04-24 Adam Fedor <fedor@gnu.org>
6537 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6538 architecture dependant compilation and mark as unimplemented
6539 (until they get put in the gdbarch vector).
6541 2003-04-23 David Carlton <carlton@bactrian.org>
6543 * cp-support.c (cp_find_first_component): Accept 'operator' in
6546 2003-04-23 Andrew Cagney <cagney@redhat.com>
6548 * infcall.c (call_function_by_hand): Eliminate redundant
6549 indentation. Move "saved_async" and "old_cleanups" to where they
6552 2003-04-23 Andrew Cagney <cagney@redhat.com>
6554 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6555 and "buffer". Move the "name" code to where it is needed.
6557 2003-04-23 Andrew Cagney <cagney@redhat.com>
6559 * infcall.c (call_function_by_hand): Move variables "start_sp",
6560 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6561 code to ON_STACK switch branch.
6563 2003-04-23 Andrew Cagney <cagney@redhat.com>
6565 * infcall.c (call_function_by_hand): Make declaration of "i",
6566 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6569 2003-04-23 Andrew Cagney <cagney@redhat.com>
6571 * infcall.c (call_function_by_hand): Delete variable
6572 "n_method_args". Localize "param_type"'s declaration to the loop
6573 that it is used. Reinstate code assigning to said variable -
6574 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6575 Rationalize code using "param_type".
6577 2003-04-22 Andrew Cagney <cagney@redhat.com>
6579 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6580 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6581 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6582 to DEPRECATED_PUSH_RETURN_ADDRESS.
6584 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6586 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6587 on the DWARF2 register number prior to fetching a register.
6589 2003-04-22 J. Brobecker <brobecker@gnat.com>
6591 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6592 Update all the tests using SOFT_FLOAT considering the fact that
6593 this macro was always set to 0.
6594 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6595 considering the fact that this macro was always set to 0.
6596 * hppa-tdep.h (hppa_store_return_value): Likewise.
6597 (hppa_extract_return_value): Likewise.
6599 2003-04-22 J. Brobecker <brobecker@gnat.com>
6601 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6602 the hppa-pro target only.
6604 2003-04-21 J. Brobecker <brobecker@gnat.com>
6606 Ongoing multi-arch conversion effort for HP/UX:
6607 * config/pa/tm-hppa.h: Move all macro that are no longer
6608 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6609 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6611 2003-04-21 J. Brobecker <brobecker@gnat.com>
6613 * config/pa/tm-hppa.h: Obsolete a section that was only used
6616 2003-04-21 J. Brobecker <brobecker@gnat.com>
6618 Ongoing multi-arch conversion for HP/UX.
6619 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6620 if already defined (allows hppa64 to stay non-multiarched for now).
6621 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6623 2003-04-21 Andrew Cagney <cagney@redhat.com>
6625 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6627 2003-04-21 Andrew Cagney <cagney@redhat.com>
6629 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6630 "i386_num_mmx_regs".
6632 2003-04-21 Andrew Cagney <cagney@redhat.com>
6634 * infcall.c: New file.
6635 * infcall.h: New file.
6636 * valarith.c: Include "infcall.h".
6637 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6638 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6639 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6640 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6641 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6642 (SFILES): Add "infcall.c"
6643 (COMMON_OBS): Add "infcall.o".
6644 (infcall.o): Specify dependencies.
6645 * value.h (call_function_by_hand): Delete declaration.
6646 * inferior.h (run_stack_dummy): Delete declaration.
6647 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6648 (run_stack_dummy): Move to "infcall.c", merged into
6649 call_function_by_hand.
6650 * valops.c (call_function_by_hand): Moved to "infcall.c".
6651 (find_function_addr, value_arg_coerce): Ditto.
6652 (unwindonsignal_p, coerce_float_to_double): Ditto.
6653 (_initialize_valops): Move "set/show coerce-float-to-double", and
6654 "set/show unwindonsignal" commands to "infcall.c".
6655 * v850-tdep.c, target.h: Update comments.
6656 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6657 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6658 (sh64_init_extra_frame_info): Update comments.
6659 * mn10300-tdep.c: Update comments.
6660 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6661 * config/sparc/tm-sparc.h: Update comments.
6662 * breakpoint.h: Update comments.
6663 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6664 * arm-tdep.c: Update comment.
6666 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6668 * i386-tdep.c (i386_num_register_names): New variable.
6669 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6670 (MM0_REGNUM): Remove redundant parentheses in define.
6671 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6672 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6673 i386_mxcsr_regnum_p): Remove redundant parentheses.
6674 (i386_register_name): Use i386_num_register_names.
6676 * i386-tdep.c (i386_extract_return_value,
6677 i386_store_return_value): Correct check for availability of
6678 floating-point registers.
6680 * i386-tdep.c (i386_frame_num_args): Remove function.
6681 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6683 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6684 mmx_regnum_to_fp_regnum. Adjust all callers.
6686 * i386-tdep.c (i386_get_longjmp_target): Use
6687 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6688 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6691 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6693 * core-regset.c: Update comments to reflect reality. Re-order
6695 (fetch_core_registers): Use switch instead of if. Remove
6696 redundant prototype.
6698 2003-04-18 Jim Blandy <jimb@redhat.com>
6700 * s390-tdep.c (s390_frame_align): New function.
6701 (s390_gdbarch_init): Register it with the gdbarch object.
6703 2003-04-17 Richard Henderson <rth@redhat.com>
6705 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6707 2003-04-17 Michael Snyder <msnyder@redhat.com>
6708 Karen Bennet <bennet@redhat.com>
6710 Committed by Elena Zannoni <ezannoni@redhat.com>
6711 * gdb_gcore.sh: New script to create a core dump of a process.
6713 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6715 * values.c (value_being_returned): Don't fetch the return
6716 value if the return type is void.
6718 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6720 * thread-db.c: Reindented.
6722 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6724 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6725 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6752 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6754 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6755 the size of ``long double'' to 16, instead of 8.
6757 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6759 * i386-linux-nat.c: Add some whitespace to make things more
6761 (fetch_register, store_register, fetch_inferior_registers,
6762 store_inferior_registers): Get rid of assignment in if-statement.
6763 (store_register): Fix typo in error message.
6765 2003-04-16 Andrew Cagney <cagney@redhat.com>
6767 * utils.c (xmmalloc): Always allocate something, matches
6768 libiberty/xmalloc's semantics.
6769 (xmrealloc, xmcalloc): Ditto.
6771 2003-04-16 Andrew Cagney <cagney@redhat.com>
6773 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6775 (get_frame_type): Initialize unwind and type when needed.
6776 (get_frame_id, frame_register_unwind): Ditto.
6778 2003-04-16 Andrew Cagney <cagney@redhat.com>
6780 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6782 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6783 * sparcl-stub.c: Obsolete file.
6784 * config/sparc/tm-sparclet.h: Obsolete file.
6785 * sparclet-stub.c: Obsolete file.
6786 * sparclet-rom.c: Obsolete file.
6787 * sparcl-tdep.c: Obsolete file.
6788 * config/sparc/tm-sparclite.h: Obsolete file.
6789 * config/sparc/sparclite.mt: Obsolete file.
6790 * config/sparc/sparclet.mt: Obsolete file.
6791 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6792 sparc86x-*-* obsolete.
6794 2003-04-15 David Carlton <carlton@math.stanford.edu>
6796 * Makefile.in (SFILES): Add cp-namespace.c.
6797 (COMMON_OBS): Add cp-namespace.o.
6798 (block.o): Depend on gdb_obstack_h and cp_support_h.
6799 (buildsym.o): Depend on cp_support_h.
6800 (cp-namespace.o): New.
6801 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6802 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6803 (dwarf2read.o): Depend on cp_support_h.
6804 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6805 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6806 processing_current_namespace.
6807 (read_namespace): Update processing_current_namespace; check for
6808 anonymous namespaces.
6809 (dwarf2_name): New function.
6810 (dwarf2_extension): Ditto.
6811 * cp-support.h: Update copyright, contributors.
6812 Add inclusion guards.
6813 Add opaque declaration for structs obstack, block, symbol.
6814 (struct using_direct): New struct.
6815 Add declarations for cp_find_first_component,
6816 cp_entire_prefix_len, processing_has_namespace_info,
6817 processing_current_namespace, cp_is_anonymous,
6818 cp_add_using_directive, cp_initialize_namespace,
6819 cp_finalize_namespace, cp_set_block_scope,
6820 cp_scan_for_anonymous_namespaces.
6821 * cp-namespace.c: New file.
6822 * cp-support.c: Update copyright.
6823 Include ctype.h, gdb_assert.h, gdbcmd.h.
6824 New variable maint_cplus_cmd_list.
6825 (cp_find_first_component): New function.
6826 (cp_entire_prefix_len, maint_cplus_command)
6827 (first_component_command, _initialize_cp_support): Ditto.
6828 * buildsym.c: Include cp-support.h.
6829 New variable using_list.
6830 (add_symbol_to_list): Check for anonymous namespaces.
6831 (finish_block): Set block's scope.
6832 (start_symtab): Initialize C++ namespace support.
6833 (end_symtab): Finalize C++ namespace support.
6834 * block.h: Add opaque declarations for structs
6835 block_namespace_info, using_direct, and obstack.
6836 Add declarations for block_set_scope and block_set_using.
6837 (struct block): Add 'language_specific' member.
6838 (BLOCK_NAMESPACE): New macro.
6839 * block.c: Include gdb_obstack.h and cp-support.h.
6840 (struct block_namespace_info): New struct.
6841 (block_set_scope): New function.
6842 (block_set_using, block_initialize_namespace): Ditto.
6844 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6846 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6847 (locate_base): Return early if there aren't any link map offsets.
6848 (svr4_solib_create_inferior_hook): Warn if shared library support
6851 2003-04-14 David Carlton <carlton@math.stanford.edu>
6853 * symtab.c (symbol_set_names): Add prefix when storing Java names
6854 in hash table. Fix for PR java/1039.
6856 2003-04-14 David Carlton <carlton@math.stanford.edu>
6858 * symtab.c (symbol_set_names): Rename 'name' arg to
6859 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6860 * symtab.h: Change 'name' argument in declaration of
6861 symbol_set_names to 'linkage_name'.
6862 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6864 2003-04-14 Andrew Cagney <cagney@redhat.com>
6866 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6867 return the fully sign-extended register value.
6868 (get_frame_pointer): Ditto.
6869 (mips_pop_frame): Initialize "proc_desc" after checking for a
6872 2003-04-14 Andrew Cagney <cagney@redhat.com>
6874 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6875 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6876 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6877 (mips_push_register): Delete function.
6878 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6881 2003-04-14 Jim Blandy <jimb@redhat.com>
6883 * symmisc.c: #include "gdb_regex.h".
6884 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6886 * maint.c (maintenance_list_command): New function.
6887 (_initialize_maint_cmds): Register the above as commands.
6888 * symtab.h (maintenance_list_symtabs,
6889 maintenance_list_psymtabs): New declarations.
6890 * cli/cli-cmds.c (maintenancelistlist): New variable.
6891 (init_cmd_lists): Initialize it.
6892 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6893 * gdbcmd.h (maintenancelistlist): New declaration.
6894 * Makefile.in (symmisc.o): Update dependencies.
6896 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6898 * s390-nat.c: Include asm/types.h for addr_t.
6900 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6902 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6903 actually incoming type.
6905 2003-04-13 Andrew Cagney <cagney@redhat.com>
6907 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6908 get_next_frame and get_frame_saved_regs.
6910 2003-04-13 Andrew Cagney <cagney@redhat.com>
6912 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6913 of gdbarch_num_regs.
6915 2003-04-13 Andrew Cagney <cagney@redhat.com>
6917 * frame.h: Mention what replaced what in "struct frame_info".
6918 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6919 deprecated_update_frame_base_hack and
6920 deprecated_update_frame_pc_hack.
6921 * hppa-tdep.c: Ditto.
6923 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6925 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6926 to read_reg and update its comment. Remove regnum member.
6927 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6928 Don't call read_reg when setting in_reg. Call read_reg to get
6929 the frame base if it's in a register. Return the register number
6930 on the stack instead of in the context. Remove extra arguments
6932 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6933 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6934 the register number on the expression stack.
6935 (needs_frame_read_reg): Remove extra arguments.
6937 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6939 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6941 (execute_stack_op): All callers updated.
6942 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6943 * dwarf2loc.c (find_location_expression): New function.
6944 (dwarf_expr_frame_base): Call it.
6945 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6946 (dwarf2_tracepoint_var_ref): New function, broken out from
6947 locexpr_tracepoint_var_ref.
6948 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6950 (loclist_read_variable, loclist_read_needs_frame): New functions.
6951 (loclist_describe_location, loclist_tracepoint_var_ref): New
6953 (dwarf2_loclist_funcs): New struct location_funcs.
6954 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6955 (struct dwarf2_locexpr_baton): Add comments.
6956 (dwarf2_loclist_funcs): New extern.
6957 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6958 base_address and base_known.
6959 (dwarf_loc_buffer): New variable.
6960 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6961 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6962 (dwarf2_has_info): Initialize dwarf_loc_offset.
6963 (dwarf2_build_psymtabs): Read in .debug_loc.
6964 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6966 (psymtab_to_symtab_1): Likewise. Move base address calculation
6968 (dwarf2_get_pc_bounds): ... here. Use the base address from
6970 (dwarf2_symbol_mark_computed): Handle location lists.
6972 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6974 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6975 if the linkage name demangled successfully.
6977 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6979 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6980 disassmbly_flavour): Removed.
6982 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6984 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6986 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6988 2003-04-12 Andrew Cagney <cagney@redhat.com>
6990 * frame.h (struct frame_info): Move definition from here ...
6991 * frame.c (struct frame_info): ... to here.
6993 2003-04-12 Andrew Cagney <cagney@redhat.com>
6995 * gdbthread.h (save_infrun_state): Delete parameter
6997 (struct thread_info): Delete field "prev_func_start".
6998 (load_infrun_state): Ditto.
6999 * thread.c (load_infrun_state, save_infrun_state): Update.
7000 * infrun.c (prev_func_start): Delete variable.
7001 (context_switch, init_wait_for_inferior): Update.
7002 (stop_stepping, keep_going): Update.
7004 2003-04-12 Andrew Cagney <cagney@redhat.com>
7006 * gdbarch.sh: Add missing opaque declarations.
7007 * gdbarch.h: Regnerate.
7008 * symtab.h: Add missing opaque declarations.
7009 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7010 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7011 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7012 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7013 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7014 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7015 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7016 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7017 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7018 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7019 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7020 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7021 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7023 2003-04-11 Andrew Cagney <cagney@redhat.com>
7025 * frame.c (get_frame_id): Return this frame's "id".
7026 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7028 (legacy_saved_regs_this_id): Replace function body with
7030 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7031 FRAME_OBSTACK_ZALLOC.
7032 (create_new_frame): Mark the frame ID as valid.
7034 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7036 * Makefile.in (libbfd_h): Added missing setting.
7037 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7038 according to the selected ABI.
7040 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7042 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7044 2003-04-11 Andrew Cagney <cagney@redhat.com>
7046 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7047 SAVED_PC_AFTER_CALL.
7048 * gdbarch.h, gdbarch.c: Regenerate.
7049 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7050 * x86-64-tdep.c (x86_64_init_abi): Update.
7051 * vax-tdep.c (vax_gdbarch_init): Update.
7052 * v850-tdep.c (v850_gdbarch_init): Update.
7053 * sparc-tdep.c (sparc_gdbarch_init): Update.
7054 * sh-tdep.c (sh_gdbarch_init): Update.
7055 * s390-tdep.c (s390_gdbarch_init): Update.
7056 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7057 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7058 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7059 * mips-tdep.c (mips_gdbarch_init): Update.
7060 * mcore-tdep.c (mcore_gdbarch_init): Update.
7061 * m68k-tdep.c (m68k_gdbarch_init): Update.
7062 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7063 * ia64-tdep.c (ia64_gdbarch_init): Update.
7064 (ia64_saved_pc_after_call): Update declaration.
7065 * i386ly-tdep.c (i386lynx_init_abi): Update.
7066 * i386-tdep.c (i386_gdbarch_init): Update.
7067 * hppa-tdep.c (hppa_gdbarch_init): Update.
7068 * h8300-tdep.c (h8300_gdbarch_init): Update.
7069 * frv-tdep.c (frv_gdbarch_init): Update.
7070 * cris-tdep.c (cris_gdbarch_init): Update.
7071 * avr-tdep.c (avr_gdbarch_init): Update.
7072 * arm-tdep.c (arm_gdbarch_init): Update.
7073 * alpha-tdep.c (alpha_gdbarch_init): Update.
7074 * ns32knbsd-nat.c (frame_num_args): Update.
7075 * ns32k-tdep.c (umax_frame_num_args): Update.
7076 * mips-tdep.c (mips_init_frame_pc_first): Update.
7077 * infrun.c (step_over_function): Update.
7078 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7079 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7080 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7081 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7082 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7083 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7084 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7085 * arch-utils.c (init_frame_pc_default): Update.
7086 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7087 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7090 2003-04-11 Andrew Cagney <cagney@redhat.com>
7092 * i387-tdep.c: Update copyright.
7093 (i387_to_double): Delete function.
7094 (double_to_i387): Delete function.
7096 2003-04-10 Andrew Cagney <cagney@redhat.com>
7098 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7099 frame's function's address. Simplify.
7100 (d10v_frame_unwind_cache): Check that the frame's function is
7103 2003-04-10 Jim Blandy <jimb@redhat.com>
7105 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7106 call to set_gdbarch_deprecated_push_arguments.
7108 2003-04-10 Andrew Cagney <cagney@redhat.com>
7110 * frame.c (fprint_frame_id): New function.
7111 (fprint_frame_type, fprint_frame): New function.
7112 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7113 (create_sentinel_frame, get_frame_id): Ditto.
7114 (frame_id_p, frame_id_eq): Ditto.
7115 (frame_id_inner, create_new_frame): Ditto.
7116 (legacy_get_prev_frame, get_prev_frame): Ditto.
7117 (deprecated_update_frame_pc_hack): Ditto.
7118 (frame_register_unwind): Ditto.
7119 (deprecated_update_frame_base_hack): Ditto.
7121 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7123 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7124 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7125 frame_chain function.
7126 * Makefile.in: Add dependencies due to above change.
7128 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7130 * blockframe.c (legacy_frame_chain_valid): Move call to
7131 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7134 2003-04-09 Andrew Cagney <cagney@redhat.com>
7136 * frame.h (struct frame_id): Replace "pc" and "base" with
7137 "stack_addr" and "code_addr". Update comments.
7138 (frame_id_build): Update parameter names and comment.
7139 (struct frame_info): Replace "id_p" and "id" with "this_id".
7140 * dummy-frame.c (dummy_frame_this_id): Update.
7141 * breakpoint.c (print_one_breakpoint): Update.
7142 * frame.c (get_frame_id): Update.
7143 (get_frame_base, frame_id_build): Update.
7144 (create_sentinel_frame, legacy_get_prev_frame): Update.
7145 (deprecated_update_frame_base_hack): Update.
7146 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7147 (frame_id_inner): Ditto.
7149 2003-04-09 Andrew Cagney <cagney@redhat.com>
7151 * defs.h (gdb_print_host_address): Make "addr" parameter a
7153 * utils.c (gdb_print_host_address): Update.
7155 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7157 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7158 register number for R0 is 0.
7160 2003-04-09 J. Brobecker <brobecker@gnat.com>
7162 * frame.h (struct gdbarch): Add opaque structure definition
7163 to avoid a compilation warning on LynxOS 4.0.
7165 2003-04-09 Andrew Cagney <cagney@redhat.com>
7167 * frame.h (struct frame_info): Delete field "pc". Replace
7168 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7170 * frame.c (frame_pc_unwind): Update.
7171 (create_sentinel_frame): Do not set "pc".
7172 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7173 (get_frame_pc): Call frame_pc_unwind.
7174 (deprecated_update_frame_pc_hack): Update.
7175 (create_new_frame): Use "pc" not "->pc".
7177 2003-04-09 Andrew Cagney <cagney@redhat.com>
7179 * frame.c (get_frame_id): Eliminate code updating "frame".
7180 (legacy_get_prev_frame): Ditto.
7181 (get_frame_base): Return id.base directly.
7182 (deprecated_update_frame_base_hack): Update "id.base".
7183 * frame.h (struct frame_info): Delete field "frame".
7185 2003-04-09 Andrew Cagney <cagney@redhat.com>
7187 * NEWS: Mention that the "Sequent family" is obsolete.
7188 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7189 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7190 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7191 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7192 * config/i386/tm-ptx4.h: Obsolete file.
7193 * config/i386/tm-ptx.h: Obsolete file.
7194 * symm-tdep.c: Obsolete file.
7195 * config/i386/symmetry.mt: Obsolete file.
7196 * config/i386/tm-symmetry.h: Obsolete file.
7197 * symm-nat.c: Obsolete file.
7198 * config/i386/nm-symmetry.h: Obsolete file.
7199 * config/i386/xm-symmetry.h: Obsolete file.
7200 * config/i386/symmetry.mh: Obsolete file.
7201 * config/i386/nm-ptx4.h: Obsolete file.
7202 * config/i386/ptx4.mh: Obsolete file.
7203 * config/i386/ptx.mt: Obsolete file.
7204 * config/i386/ptx.mh: Obsolete file.
7205 * config/i386/xm-ptx4.h: Obsolete file.
7206 * config/i386/xm-ptx.h: Obsolete file.
7208 2003-04-09 Andrew Cagney <cagney@redhat.com>
7210 Obsolete mips*-*-mach3*.
7211 * NEWS: Mention that mips*-*-mach3* is obsolete.
7212 * m3-nat.c: Obsolete file.
7213 * config/nm-m3.h: Obsolete file.
7214 * config/mips/tm-mipsm3.h: Obsolete file.
7215 * config/mips/mipsm3.mt: Obsolete file.
7216 * config/mips/mipsm3.mh: Obsolete file.
7217 * config/mips/xm-mipsm3.h: Obsolete file.
7218 * mipsm3-nat.c: Obsolete file.
7219 * configure.host: Obsolete mips-dec-mach3*.
7220 * configure.tgt: Obsolete mips*-*-mach3*.
7222 2003-04-09 Andrew Cagney <cagney@redhat.com>
7224 * doublest.h: Update copyright.
7225 (deprecated_store_floating, deprecated_extract_floating): Rename
7226 store_floating and extract_floating. Update comments.
7227 * doublest.c: Update copyright.
7228 (extract_floating_by_length): Replace extract_floating.
7229 (store_floating_by_length): Replace store_floating.
7230 (deprecated_extract_floating): New function.
7231 (deprecated_store_floating): New function.
7232 (extract_typed_floating): Call extract_floating_by_length.
7233 (store_typed_floating): Call store_floating_by_length.
7234 * x86-64-tdep.c (x86_64_store_return_value): Update.
7235 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7236 (sh64_extract_return_value): Update.
7237 (sh_sh4_register_convert_to_virtual): Update.
7238 (sh_sh64_register_convert_to_virtual): Update.
7239 (sh_sh4_register_convert_to_raw): Update.
7240 (sh_sh64_register_convert_to_raw): Update.
7241 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7242 (rs6000_register_convert_to_raw): Update.
7243 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7244 (ia64_register_convert_to_raw): Update.
7245 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7246 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7247 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7248 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7249 (alpha_register_convert_to_raw): Update.
7251 2003-04-08 Andrew Cagney <cagney@redhat.com>
7253 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7254 * gdbarch.h, gdbarch.c: Re-generate.
7255 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7256 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7257 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7258 conditionally, use frame_pc_unwind as an alternative. Add
7260 * arch-utils.c (init_frame_pc_default): Only call
7261 SAVED_PC_AFTER_CALL when available.
7263 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7265 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7266 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7267 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7268 (start_remote): Ditto.
7269 (handle_inferior_event): Ditto.
7270 (save_inferior_status): Ditto.
7271 (restore_inferior_status): Ditto.
7272 * infcmd.c (attach_command): Ditto.
7273 * fork-child.c (startup_inferior): Ditto.
7274 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7275 * alpha-tdep.c (heuristic_proc_start): Ditto.
7276 * mips-tdep.c (heuristic_proc_start): Ditto.
7277 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7278 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7279 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7280 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7281 * remote-vx.c (vx_create_inferior): Ditto.
7283 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7285 * infrun.c (stop_soon_quietly): Make it an enum, to better
7286 override the default behavior of handle_inferior_event.
7287 (clear_proceed_status): Update uses of stop_soon_quietly to
7288 reflect that it is now an enum.
7289 (start_remote): Ditto.
7290 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7291 is set to handle the new GNU/Linux kernel behavior for
7292 attach/sigstop. Update uses of stop_soon_quietly.
7293 * inferior.h (enum stop_kind): New enum.
7294 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7295 Reset normal handle_inferior_event behavior, afterwards.
7296 * fork-child.c (startup_inferior): Update.
7297 * alpha-tdep.c (heuristic_proc_start): Update.
7298 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7299 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7300 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7301 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7302 * remote-vx.c (vx_create_inferior): Update.
7303 * mips-tdep.c (heuristic_proc_start): Update.
7305 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7307 * disasm.c (dump_insns): Move variables inside loop, or they will
7308 be freed more than once, causing wild memory corruptions.
7309 (gdb_disassembly): Look for the substring "-thread",
7310 instead of "-threads" in the target name, to make sure to find
7311 the 'multi-thread' target. Also, make sure we do the right thing
7312 with the "core" target.
7314 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7316 * mips-tdep.c (mips_print_fp_register): New function, created from
7317 do_fp_register_row(). Registers are now (also) printed as hex.
7318 Only one register is printed per row.
7319 (mips_print_register, do_fp_register_row): Print floating point
7320 registers with mips_print_fp_register().
7322 2003-04-06 Andrew Cagney <cagney@redhat.com>
7324 * valprint.h (inspect_it): Add extern declaration.
7325 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7326 (selectors_info, classes_info): Ditto.
7327 (find_objc_msgcall): Fix indentation.
7328 (objc_printstr): Delete extern declarations.
7330 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7332 2003-04-06 Andrew Cagney <cagney@redhat.com>
7334 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7336 * frame.c (legacy_saved_regs_this_id): Update.
7337 (legacy_get_prev_frame): Update.
7338 * xstormy16-tdep.c: Update comment.
7339 * sparc-tdep.c (sparc_frame_chain): Update comment.
7340 * blockframe.c (legacy_frame_chain_valid): Update.
7342 2003-04-06 Andrew Cagney <cagney@redhat.com>
7344 * valprint.c (val_print_type_code_int): Delete #ifdef
7345 PRINT_TYPELESS_INTEGER code.
7347 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7348 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7349 multi-arch definition.
7350 * gdbarch.h: Re-generate.
7352 2003-04-05 Andrew Cagney <cagney@redhat.com>
7354 Eliminate FRAME_FIND_SAVED_REGS.
7355 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7356 Change FSR parameter to a pointer.
7357 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7358 Assume FSR parameter is a pointer.
7359 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7361 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7362 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7363 saved_regs a pointer.
7364 (hppa_frame_saved_pc): Ditto.
7365 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7366 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7368 (restore_pc_queue): Make fsr a pointer.
7369 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7370 (hppa_frame_chain): Make saved_regs a pointer, call
7371 hppa_frame_init_saved_regs.
7372 * sparc-tdep.c: Include "gdb_assert.h".
7373 (sparc_frame_find_saved_regs): Replace internal_error with
7375 * remote-vxsparc.c (vx_read_register): Delete reference to
7376 FRAME_FIND_SAVED_REGS.
7377 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7378 * gdbarch.h: Regenerate.
7379 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7380 (deprecated_get_frame_saved_regs): Delete declaration.
7381 (struct frame_saved_regs): Delete definition.
7382 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7383 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7384 (hppa_frame_find_saved_regs): Delete declaration.
7385 (FRAME_FIND_SAVED_REGS): Delete macro.
7386 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7387 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7388 FRAME_FIND_SAVED_REGS in comment.
7390 2003-04-05 Andrew Cagney <cagney@redhat.com>
7392 * frame.c (frame_func_unwind, get_frame_func): New functions.
7393 * frame.h (get_frame_func, frame_func_unwind): Declare.
7394 (struct frame_info): Add field "prev_func" for caching the
7395 previous frame's function address.
7396 * arm-tdep.c (arm_frameless_function_invocation): Combine
7397 get_pc_function_start and get_frame_pc into get_frame_func.
7398 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7399 (sh64_nofp_frame_init_saved_regs): Ditto.
7400 * s390-tdep.c (s390_function_start): Ditto.
7401 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7402 (rs6000_frameless_function_invocation): Ditto.
7403 (rs6000_frame_saved_pc): Ditto.
7404 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7405 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7406 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7407 (i386_frame_init_saved_regs): Ditto.
7408 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7409 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7410 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7411 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7412 * blockframe.c (frameless_look_for_prologue): Ditto.
7414 2003-04-05 Andrew Cagney <cagney@redhat.com>
7416 * frame.c (legacy_get_prev_frame): Link prev to next at the
7417 function start. Update comments.
7419 2003-04-05 Andrew Cagney <cagney@redhat.com>
7421 * frame.c (get_frame_id): Update comment.
7422 (legacy_get_prev_frame): Update comment.
7423 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7424 * gdbarch.h: Regenerate.
7425 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7426 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7428 2003-04-05 Andrew Cagney <cagney@redhat.com>
7430 * stack.c (print_frame_info): Use get_frame_pc.
7432 2003-04-04 Andrew Cagney <cagney@redhat.com>
7434 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7435 the frame's type from the unwinder.
7436 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7437 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7438 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7439 (get_frame_base_address): Use get_frame_type.
7440 (get_frame_locals_address, get_frame_args_address): Ditto.
7441 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7442 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7443 (struct frame_info): Add comment explaining why the frame contains
7445 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7446 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7447 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7449 * frame-unwind.h: Include "frame.h".
7450 (struct frame_unwind): Add "type" field.
7451 * Makefile.in (frame_unwind_h): Add $(frame_h).
7453 2003-04-04 Andrew Cagney <cagney@redhat.com>
7455 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7456 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7457 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7459 (d10v_unwind_dummy_id): Use frame_id_build.
7460 * frame.c (find_frame_sal): Use get_frame_pc.
7461 (create_new_frame): Use deprecated_update_frame_pc_hack and
7462 deprecated_update_frame_base_hack.
7463 (create_sentinel_frame): Add comment about ->pc going away.
7464 (get_prev_frame): Add comment about ->pc going away.
7465 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7466 frame_id_build, deprecated_update_frame_pc_hack and
7467 deprecated_update_frame_base_hack.
7468 (select_frame): Use get_frame_pc.
7469 (legacy_saved_regs_this_id): Use frame_id_build.
7471 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7473 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7474 signed integer case.
7475 (classify_argument): Handle enumerations and references.
7477 2003-04-04 Andrew Cagney <cagney@redhat.com>
7479 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7482 2003-04-01 Adam Fedor <fedor@gnu.org>
7484 * gdb/objc-lang.c (selectors_info): Replace calls to
7485 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7486 SYMBOL_NATURAL_NAME.
7487 (classes_info, find_methods): Likewise.
7489 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7491 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7492 ``mach'' to the value determined by bfd_default_set_arch_mach().
7494 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7496 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7497 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7498 (mi-cmd-file.o): Update dependencies.
7500 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7502 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7503 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7505 2003-04-01 Adam Fedor <fedor@gnu.org>
7507 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7508 * language.h (struct language_defn): Add la_demangle.
7509 (language_demangle): Declare.
7510 * language.c (language_demangle): New function.
7511 (unk_lang_demangle): Likewise.
7512 (unknown_language_defn, auto_language_defn, local_language_defn):
7513 Add ukn_lang_demangle.
7514 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7515 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7516 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7517 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7518 * jv-lang.c (java_demangle): New function
7519 (java_language_defn): Use it for la_demangle element.
7520 * objc-lang.c (objc_demangle): Add options argument
7521 (objc_language_defn): Use objc_demangle for la_demangle element.
7522 * maint.c (maintenance_demangle): Replace switch with
7523 call to language_demangle.
7524 * utils.c (fprintf_symbol_filtered): Likewise.
7526 2003-04-01 Andrew Cagney <cagney@redhat.com>
7528 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7529 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7530 PRINT_TYPELESS_INTEGER.
7531 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7532 PUSH_RETURN_ADDRESS.
7534 2003-04-01 Andrew Cagney <cagney@redhat.com>
7536 * Makefile.in (d10v-tdep.o): Update dependencies.
7537 * d10v-tdep.c: Include "frame-base.h".
7538 (d10v_frame_unwind): Make constant.
7539 (d10v_frame_base_address): New function.
7540 (d10v_frame_base): New variable.
7541 (d10v_gdbarch_init): Set frame_base default.
7542 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7544 (d10v_frame_unwind_cache): Set and use "prev_sp".
7545 (d10v_frame_this_id): Use the previous frame's inner most stack
7546 address and this frame's func address for the frame ID. Use
7547 frame_id_build. Don't analyze beyond the current instruction.
7549 2003-04-01 Andrew Cagney <cagney@redhat.com>
7551 * frame.h (get_frame_locals_address, get_frame_args_address):
7552 Refer to the base address, instead of the address of the first
7555 2003-04-01 Andrew Cagney <cagney@redhat.com>
7557 Add frame debug info addresses:
7558 * frame-base.c: New file.
7559 * frame-base.h: New file.
7560 * frame.h (struct frame_base): Add opaque declaration.
7561 (get_frame_base): Update comment.
7562 (get_frame_base_address): Declare.
7563 (get_frame_locals_address): Declare.
7564 (get_frame_args_address): Declare.
7565 (struct frame_info): Add "base" and "base_cache". Update
7566 comments on the unwinder.
7567 * frame.c: Include "frame-base.h".
7568 (get_frame_locals_address): New function.
7569 (get_frame_base_address): New function.
7570 (get_frame_args_address): New function.
7571 * findvar.c (read_var_value): Use get_frame_locals_address and
7572 get_frame_args_address.
7573 * stack.c (frame_info): Use get_frame_locals_address and
7574 get_frame_args_address.
7575 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7576 moved to "frame-base.c".
7577 * printcmd.c (print_frame_nameless_args): Ditto.
7578 * symtab.h (address_class): Update comments.
7579 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7580 get_frame_base_address.
7581 * dwarf2expr.c (execute_stack_op): Ditto.
7582 * Makefile.in (frame_base_h): Define.
7583 (frame.o): Update dependencies.
7584 (frame-base.o): Add dependencies.
7585 (SFILES): Add frame-base.c.
7586 (COMMON_OBS): Add frame-base.o.
7588 2003-04-01 Andrew Cagney <cagney@redhat.com>
7590 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7591 CALL_DUMMY_LENGTH): Ditto.
7592 * gdbarch.c: Re-generate.
7593 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7594 (CALL_DUMMY_LENGTH): Delete macro.
7595 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7596 * arm-tdep.c (arm_gdbarch_init): Ditto.
7597 * avr-tdep.c (avr_gdbarch_init): Ditto.
7598 * cris-tdep.c (cris_gdbarch_init): Ditto.
7599 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7600 * frv-tdep.c (frv_gdbarch_init): Ditto.
7601 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7602 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7603 * i386-tdep.c (i386_gdbarch_init): Ditto.
7604 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7605 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7606 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7607 * mips-tdep.c (mips_gdbarch_init): Ditto.
7608 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7609 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7610 * s390-tdep.c (s390_gdbarch_init): Ditto.
7611 * sh-tdep.c (sh_gdbarch_init): Ditto.
7612 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7613 * v850-tdep.c (v850_gdbarch_init): Ditto.
7614 * vax-tdep.c (vax_gdbarch_init): Ditto.
7615 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7617 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7619 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7621 2003-04-01 Andrew Cagney <cagney@redhat.com>
7623 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7624 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7625 * gdbarch.h, gdbarch.c: Re-generate.
7626 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7627 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7628 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7629 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7630 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7631 * infcmd.c (run_stack_dummy): Simplify assuming
7632 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7633 * infrun.c (handle_inferior_event): Ditto.
7634 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7635 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7636 * arm-tdep.c (arm_gdbarch_init): Ditto.
7637 * avr-tdep.c (avr_gdbarch_init): Ditto.
7638 * cris-tdep.c (cris_gdbarch_init): Ditto.
7639 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7640 * frv-tdep.c (frv_gdbarch_init): Ditto.
7641 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7642 * i386-tdep.c (i386_gdbarch_init): Ditto.
7643 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7644 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7645 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7646 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7647 * mips-tdep.c (mips_gdbarch_init): Ditto.
7648 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7649 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7650 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7651 * s390-tdep.c (s390_gdbarch_init): Ditto.
7652 * sh-tdep.c (sh_gdbarch_init): Ditto.
7653 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7654 * v850-tdep.c (v850_gdbarch_init): Ditto.
7655 * vax-tdep.c (vax_gdbarch_init): Ditto.
7656 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7658 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7660 * symfile.c (symfile_relocate_debug_section): Update call to
7661 bfd_simple_get_relocated_section_contents.
7663 2003-03-31 Andrew Cagney <cagney@redhat.com>
7665 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7666 * gdbarch.h, gdbarch.c: Regenerate.
7667 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7668 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7670 * frame.h (generic_fix_call_dummy): Delete declaration.
7671 * dummy-frame.h: Update comment.
7672 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7673 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7675 * sh-tdep.c (sh_gdbarch_init): Ditto.
7676 * s390-tdep.c (s390_gdbarch_init): Ditto.
7677 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7678 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7679 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7680 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7681 * i386-tdep.c (i386_gdbarch_init): Ditto.
7682 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7683 * frv-tdep.c (frv_gdbarch_init): Ditto.
7684 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7685 * cris-tdep.c (cris_gdbarch_init): Ditto.
7686 * avr-tdep.c (avr_gdbarch_init): Ditto.
7687 * arm-tdep.c (arm_gdbarch_init): Ditto.
7689 2003-03-31 J. Brobecker <brobecker@gnat.com>
7691 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7692 (INIT_FRAME_AP): Likewise.
7693 (EXTRA_FRAME_INFO): Likewise.
7695 2003-03-31 Andrew Cagney <cagney@redhat.com>
7697 * gdbarch.sh: Include "symfile.h".
7698 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7699 * gdbarch.h, gdbarch.c: Re-generate.
7700 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7701 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7702 call_dummy_address, the default is at entry_point_address.
7703 * v850-tdep.c (v850_gdbarch_init): Ditto.
7704 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7705 * sh-tdep.c (sh_gdbarch_init): Ditto.
7706 * s390-tdep.c (s390_gdbarch_init): Ditto.
7707 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7708 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7709 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7710 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7711 * i386-tdep.c (i386_gdbarch_init): Ditto.
7712 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7713 * frv-tdep.c (frv_gdbarch_init): Ditto.
7714 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7715 * cris-tdep.c (cris_gdbarch_init): Ditto.
7716 * arm-tdep.c (arm_gdbarch_init): Ditto.
7718 2003-03-31 Andrew Cagney <cagney@redhat.com>
7720 * gdbarch.sh (CALL_DUMMY_P): Delete.
7721 * gdbarch.h, gdbarch.c: Re-generate.
7722 * inferior.h (CALL_DUMMY_P): Delete macro.
7723 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7724 * vax-tdep.c (vax_gdbarch_init): Update.
7725 * v850-tdep.c (v850_gdbarch_init): Update.
7726 * sparc-tdep.c (sparc_gdbarch_init): Update.
7727 * sh-tdep.c (sh_gdbarch_init): Update.
7728 * s390-tdep.c (s390_gdbarch_init): Update.
7729 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7730 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7731 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7732 * mips-tdep.c (mips_gdbarch_init): Update.
7733 * mcore-tdep.c (mcore_gdbarch_init): Update.
7734 * m68k-tdep.c (m68k_gdbarch_init): Update.
7735 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7736 * ia64-tdep.c (ia64_gdbarch_init): Update.
7737 * i386-tdep.c (i386_gdbarch_init): Update.
7738 * h8300-tdep.c (h8300_gdbarch_init): Update.
7739 * frv-tdep.c (frv_gdbarch_init): Update.
7740 * d10v-tdep.c (d10v_gdbarch_init): Update.
7741 * cris-tdep.c (cris_gdbarch_init): Update.
7742 * breakpoint.c (deprecated_frame_in_dummy): Update.
7743 * avr-tdep.c (avr_gdbarch_init): Update.
7744 * alpha-tdep.c (alpha_gdbarch_init): Update.
7745 * arm-tdep.c (arm_gdbarch_init): Update.
7746 * dummy-frame.c (dummy_frame_this_id): Update comments.
7747 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7748 * frame.c (legacy_get_prev_frame): Ditto.
7749 * valops.c (call_function_by_hand): Delete function.
7750 (hand_function_call): Rename to call_function_by_hand
7752 2003-03-30 Andrew Cagney <cagney@redhat.com>
7754 2002-11-10 Klee Dienes <kdienes@apple.com>
7755 * value.h (struct value): Update comment.
7757 2003-03-30 Andrew Cagney <cagney@redhat.com>
7759 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7761 (d10v_gdbarch_init): Do not set fp_regnum.
7763 * frame.c (get_frame_base): Force ID initialization.
7764 (get_prev_frame): Move computation of the frame ID from here ...
7765 (get_frame_id): ... to here.
7766 (legacy_get_prev_frame): Mark the frame ID as valid.
7767 * frame.h (struct frame_info): Add field "id_p".
7769 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7771 * i386-tdep.c (i386_store_struct_return): Removed.
7772 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7774 2003-03-30 Andrew Cagney <cagney@redhat.com>
7776 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7777 * gdbarch.h, gdbarch.c: Regenerate.
7778 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7779 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7780 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7781 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7782 * i386-tdep.c (i386_gdbarch_init): Ditto.
7783 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7784 * cris-tdep.c (cris_gdbarch_init): Ditto.
7785 * vax-tdep.c (vax_gdbarch_init): Ditto.
7786 * s390-tdep.c (s390_gdbarch_init): Ditto.
7787 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7788 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7789 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7790 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7791 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7792 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7793 * sparc-tdep.c (sparc_gdbarch_init): Update.
7794 * sh-tdep.c (sh_gdbarch_init): Update.
7795 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7796 * mips-tdep.c (mips_gdbarch_init): Update.
7797 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7798 * ia64-tdep.c (ia64_gdbarch_init): Update.
7799 * frv-tdep.c (frv_gdbarch_init): Update.
7800 * avr-tdep.c (avr_gdbarch_init): Update.
7801 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7802 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7803 instead of when push_dummy_call is not available.
7805 2003-03-30 Andrew Cagney <cagney@redhat.com>
7807 * infttrace.c: Include "gdbthread.h".
7808 (parent_attach_all): Fix function signature.
7809 (call_ptrace): Update call.
7810 * Makefile.in (infttrace.o): Update dependencies.
7812 2003-03-30 Andrew Cagney <cagney@redhat.com>
7814 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7815 PUSH_RETURN_ADDRESS.
7816 * gdbarch.h, gdbarch.c: Regenerate.
7817 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7818 * x86-64-tdep.c (x86_64_init_abi): Update.
7819 * v850-tdep.c (v850_gdbarch_init): Update.
7820 * sparc-tdep.c (sparc_gdbarch_init): Update.
7821 * sh-tdep.c (sh_gdbarch_init): Update.
7822 * s390-tdep.c (s390_gdbarch_init): Update.
7823 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7824 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7825 * mips-tdep.c (mips_gdbarch_init): Update.
7826 * mcore-tdep.c (mcore_gdbarch_init): Update.
7827 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7828 * ia64-tdep.c (ia64_gdbarch_init): Update.
7829 * i386-tdep.c (i386_gdbarch_init): Update.
7830 * h8300-tdep.c (h8300_gdbarch_init): Update.
7831 * frv-tdep.c (frv_gdbarch_init): Update.
7832 * cris-tdep.c (cris_gdbarch_init): Update.
7833 * avr-tdep.c (avr_gdbarch_init): Update.
7834 * arm-tdep.c (arm_gdbarch_init): Update.
7835 * valops.c (hand_function_call): Update.
7837 2003-03-29 Andrew Cagney <cagney@redhat.com>
7839 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7840 sizeof_call_dummy_words.
7841 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7843 * gdbarch.h: Regenerate.
7845 2003-03-29 Andrew Cagney <cagney@redhat.com>
7847 * infttrace.h: New file.
7848 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7849 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7850 (hpread_read_doc_function_type): Detect an initialized type1.
7851 (hpread_quick_traverse): Initialize mod_name_string.
7852 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7853 (som_solib_get_solib_by_pc): Declare.
7854 (so_lib_thread_start_addr): Declare.
7855 (no_shared_libraries): Declare.
7856 * somread.c (init_import_symbols): Make static. Add forward
7858 * config/pa/nm-hppah.h: Include "infttrace.h" for
7860 (hppa_insert_hw_watchpoint): Declare.
7861 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7862 * hppah-nat.c: Include "gdb_string.h".
7863 (parent_attach_all): Delete extern declaration, moved to
7865 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7867 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7868 * Makefile.in (infttrace_h): Define.
7869 (hpread.o): Update dependencies.
7870 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7871 * hppa-hpux-tdep.c: Include "gdb_string.h".
7872 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7873 * infrun.c (handle_inferior_event): Always initialize
7874 stepped_after_stopped_by_watchpoint. Add default and remove
7875 fallthrough in switch statement.
7876 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7878 (hppa_remove_hw_watchpoint): Ditto.
7880 2003-03-29 Andrew Cagney <cagney@redhat.com>
7882 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7885 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7887 * arm-tdep.c (arm_push_arguments): Delete.
7888 (struct stack_item): New type.
7889 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7890 (arm_store_struct_return): Delte.
7891 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7892 arm_push_arguments or arm_store_struct_return.
7894 2003-03-28 Andrew Cagney <cagney@redhat.com>
7896 * Makefile.in (d10v-tdep.o): Update dependencies.
7897 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7898 * d10v-tdep.c: Include "remote.h".
7899 (target_resume_hook): Delete extern declaration.
7900 (target_wait_loop_hook): Ditto.
7901 (tdisassemble_command): Eliminate assignment in "if" conditional.
7902 (d10v_ts2_register_sim_regno): Eliminate call to
7903 legacy_register_sim_regno.
7904 (d10v_ts3_register_sim_regno): Ditto.
7906 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7908 * thread.c: Reindented.
7910 * linux-proc.c: Ditto.
7912 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7914 * MAINTAINERS (write after approval): Add myself.
7916 2003-03-27 Theodore A. Roth <troth@openavr.org>
7918 * objc-exp.y: Add missing semi-colons.
7920 2003-03-27 Andrew Cagney <cagney@redhat.com>
7922 * regcache.c (write_sp): Delete function and references.
7923 * inferior.h (write_sp): Delete declaration.
7924 * valops.c (hand_function_call): Replace write_sp with
7926 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7927 (sparc_pop_frame): Ditto.
7929 2003-03-27 Andrew Cagney <cagney@redhat.com>
7931 * NEWS: Mention removal of support for hppa*-*-bsd* and
7932 hppa*-*-osf* natives, and hppa*-*-pro* target.
7933 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7934 * config/pa/xm-pa.h: Obsolete file.
7935 * config/pa/xm-hppab.h: Obsolete file.
7936 * config/pa/nm-hppab.h: Obsolete file.
7937 * config/pa/tm-hppab.h: Obsolete file.
7938 * config/pa/tm-hppao.h: Obsolete file.
7939 * config/pa/nm-hppao.h: Obsolete file.
7940 * config/pa/tm-pro.h: Obsolete file.
7941 * config/pa/hppaosf.mt: Obsolete file.
7942 * config/pa/hppaosf.mh: Obsolete file.
7943 * config/pa/hppapro.mt: Obsolete file.
7944 * config/pa/hppabsd.mt: Obsolete file.
7945 * config/pa/hppabsd.mh: Obsolete file.
7946 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7947 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7950 2003-03-27 Andrew Cagney <cagney@redhat.com>
7952 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7953 push_arguments. Don't set push_return_address or write_sp.
7954 (d10v_push_dummy_call): Replace d10v_push_arguments.
7955 (d10v_push_return_address, d10v_write_sp): Delete function,
7956 handled by push_dummy_call.
7958 2003-03-26 Andrew Cagney <cagney@redhat.com>
7960 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7961 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7962 regcache and dummy_addr parameters.
7963 * gdbarch.h, gdbarch.c: Re-generate.
7964 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7965 available; assume it will handle stack alignment and return
7966 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7967 legacy_push_arguments.
7968 (legacy_push_arguments): Rename default_push_arguments.
7969 * value.h (legacy_push_arguments): Rename default_push_arguments.
7970 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7971 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7972 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7973 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7974 * config/i386/tm-symmetry.h: Update.
7975 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7976 * x86-64-tdep.c (x86_64_init_abi): Update.
7977 * v850-tdep.c (v850_gdbarch_init): Update.
7978 * sparc-tdep.c (sparc_gdbarch_init): Update.
7979 * sh-tdep.c (sh_gdbarch_init): Update.
7980 * s390-tdep.c (s390_gdbarch_init): Update.
7981 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7982 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7983 * mips-tdep.c (mips_gdbarch_init): Update.
7984 * mcore-tdep.c (mcore_gdbarch_init): Update.
7985 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7986 * ia64-tdep.c (ia64_gdbarch_init): Update.
7987 * i386-tdep.c (i386_gdbarch_init): Update.
7988 * hppa-tdep.c (hppa_gdbarch_init): Update.
7989 * h8300-tdep.c (h8300_gdbarch_init): Update.
7990 * frv-tdep.c (frv_gdbarch_init): Update.
7991 * d10v-tdep.c (d10v_gdbarch_init): Update.
7992 * cris-tdep.c (cris_gdbarch_init): Update.
7993 * avr-tdep.c (avr_gdbarch_init): Update.
7994 * arm-tdep.c (arm_gdbarch_init): Update.
7995 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7996 * alpha-tdep.c (alpha_gdbarch_init): Update.
7998 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8000 * signals/signals.c (do_target_signal_to_host): Correct realtime
8003 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8005 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8006 (struct sal_chain, map_catch_names): Remove.
8007 (catch_exception_command_1): Don't call
8008 handle_gnu_4_16_catch_command.
8010 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8012 From Mark Dettinger <dettinge@de.ibm.com>:
8013 * dwarf2cfi.c (read_2u): Increment pointer by two.
8015 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8017 * signals/signals.c: Fix typos in last change.
8019 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8021 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8022 not already defined. Use __SIGRTMIN if available.
8023 (target_signal_from_host): Remove SIGRTMIN block.
8024 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8025 the signal is within the realtime range.
8027 2003-03-25 Adam Fedor <fedor@gnu.org>
8029 * Makefile.in (infrun.o): Add $(language_h)
8030 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8031 for language specific trampolines.
8032 * language.h (struct language_defn): Add skip_trampoline.
8033 (skip_language_trampoline): Declare.
8034 * language.c (unk_lang_trampoline, skip_language_trampoline):
8036 (unknown_language_defn, auto_language_defn, local_language_defn):
8037 Add ukn_lang_trampoline.
8038 * ada-lang.c (ada_language_defn): Add NULL for language
8039 specific skip_trampoline.
8040 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8041 scm-lang.c: Likewise.
8042 * objc-lang.c (objc_skip_trampoline): New function.
8043 (objc_language_defn): Add objc_skip_trampoline.
8045 2003-03-25 Andrew Cagney <cagney@redhat.com>
8047 * frame.c (get_prev_frame): Delay validating a frame's ID -
8048 non-NULL, didn't go backwards - until an attempt to unwind it to
8051 2003-03-25 Andrew Cagney <cagney@redhat.com>
8053 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8054 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8055 * gdbarch.h, gdbarch.c: Re-generate.
8056 * config/sparc/tm-sparc.h
8057 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8058 * sparc-tdep.c (sparc_gdbarch_init): Set
8059 deprecated_extra_stack_alignment_needed.
8060 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8061 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8062 extra_stack_alignment_needed.
8063 * v850-tdep.c (v850_gdbarch_init): Ditto.
8064 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8065 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8066 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8067 * cris-tdep.c (cris_gdbarch_init): Ditto.
8068 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8069 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8071 2003-03-25 Andrew Cagney <cagney@redhat.com>
8073 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8074 STORE_STRUCT_RETURN.
8075 * gdbarch.h, gdbarch.c: Regenerate.
8076 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8077 (d10v_push_arguments): Set the struct return register.
8078 (d10v_gdbarch_init): Update.
8079 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8080 * x86-64-tdep.c (x86_64_init_abi): Update.
8081 * vax-tdep.c (vax_gdbarch_init): Update.
8082 * v850-tdep.c (v850_gdbarch_init): Update.
8083 * sparc-tdep.c (sparc_gdbarch_init): Update.
8084 * sh-tdep.c (sh_gdbarch_init): Update.
8085 * s390-tdep.c (s390_gdbarch_init): Update.
8086 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8087 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8088 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8089 * mips-tdep.c (mips_gdbarch_init): Update.
8090 * mcore-tdep.c (mcore_gdbarch_init): Update.
8091 * m68k-tdep.c (m68k_gdbarch_init): Update.
8092 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8093 * ia64-tdep.c (ia64_gdbarch_init): Update.
8094 * i386-tdep.c (i386_gdbarch_init): Update.
8095 * hppa-tdep.c (hppa_gdbarch_init): Update.
8096 * h8300-tdep.c (h8300_gdbarch_init): Update.
8097 * frv-tdep.c (frv_gdbarch_init): Update.
8098 * cris-tdep.c (cris_gdbarch_init): Update.
8099 * avr-tdep.c (avr_gdbarch_init): Update.
8100 * arm-tdep.c (arm_gdbarch_init): Update.
8101 * alpha-tdep.c (alpha_gdbarch_init): Update.
8103 2003-03-25 Andrew Cagney <cagney@redhat.com>
8105 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8106 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8107 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8108 * gdbarch.h, gdbarch.c: Regenerate.
8109 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8110 call_dummy_stack_adjust_p.
8111 * vax-tdep.c (vax_gdbarch_init): Ditto.
8112 * v850-tdep.c (v850_gdbarch_init): Ditto.
8113 * sh-tdep.c (sh_gdbarch_init): Ditto.
8114 * s390-tdep.c (s390_gdbarch_init): Ditto.
8115 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8116 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8117 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8118 * mips-tdep.c (mips_gdbarch_init): Ditto.
8119 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8120 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8121 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8122 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8123 * i386-tdep.c (i386_gdbarch_init): Ditto.
8124 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8125 * frv-tdep.c (frv_gdbarch_init): Ditto.
8126 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8127 * cris-tdep.c (cris_gdbarch_init): Ditto.
8128 * avr-tdep.c (avr_gdbarch_init): Ditto.
8129 * arm-tdep.c (arm_gdbarch_init): Ditto.
8130 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8131 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8132 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8133 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8134 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8135 call_dummy_stack_adjust_p.
8136 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8137 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8138 * sparc-tdep.c (sparc32_push_arguments): Update.
8139 * valops.c (hand_function_call): Update.
8141 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8143 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8144 set_gdbarch_char_signed.
8146 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8149 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8151 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8153 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8154 (_initialize_arm_tdep): Don't set tm_print_insn.
8156 2003-03-24 Adam Fedor <fedor@gnu.org>
8158 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8159 * objc-lang.h: Add multiple inclusion protection.
8160 (start_msglist, add_msglist, end_msglist): Additional declarations.
8162 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8164 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8165 value was renamed to ARM_FLOAT_SOFT_FPA.
8167 2003-03-23 Andrew Cagney <cagney@redhat.com>
8169 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8170 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8171 * gdbarch.h, gdbarch.c: Regenerate.
8172 * valops.c (hand_function_call): Update.
8173 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8174 * frame.c (legacy_saved_regs_this_id): Update.
8175 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8176 * dummy-frame.h: Update.
8177 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8178 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8179 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8180 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8181 * config/m68k/tm-sun3.h: Update.
8182 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8183 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8184 * x86-64-tdep.c (x86_64_init_abi): Update.
8185 * vax-tdep.c (vax_gdbarch_init): Update.
8186 * v850-tdep.c (v850_gdbarch_init): Update.
8187 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8188 * sh-tdep.c (sh_gdbarch_init): Update.
8189 * s390-tdep.c (s390_gdbarch_init): Update.
8190 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8191 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8192 (frame_get_saved_regs): Update.
8193 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8194 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8195 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8196 * mips-tdep.c (mips_gdbarch_init): Update.
8197 * mcore-tdep.c (mcore_gdbarch_init): Update.
8198 * m68k-tdep.c (m68k_gdbarch_init): Update.
8199 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8200 * ia64-tdep.c (ia64_gdbarch_init): Update.
8201 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8202 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8203 (i386_interix_back_one_frame): Update.
8204 * hppa-tdep.c (hppa_gdbarch_init): Update.
8205 (hppa_init_extra_frame_info): Update.
8206 * h8300-tdep.c (h8300_gdbarch_init): Update.
8207 * frv-tdep.c (frv_gdbarch_init): Update.
8208 * cris-tdep.c (cris_gdbarch_init): Update.
8209 * avr-tdep.c (avr_gdbarch_init): Update.
8210 * arm-tdep.c (arm_gdbarch_init): Update.
8211 * alpha-tdep.c (alpha_gdbarch_init): Update.
8213 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8215 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8216 (arm_get_fp_model): Declare.
8217 * arm-tdep.c (fp_model_strings): New string array.
8218 (arm_fp_model, current_fp_model): New variables.
8219 (arm_get_fp_model): New function.
8220 (arm_set_fp): New function.
8221 (set_fp_model_sfunc): New function.
8222 (show_fp_model): New function.
8223 (_initialize_arm_tdep): Add new command to set/show the FPU.
8224 (arm_extract_return_value): Use arm_get_fp_model.
8225 (arm_store_return_value): Likewise.
8226 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8227 to initialize the floating-point data types.
8228 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8231 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8233 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8234 the current setting of each value.
8235 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8236 new_set and new_show. Use add_setshow_cmd_full and
8237 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8238 commands and add new version as subcommands of "set/show arm".
8240 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8242 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8243 (set_arm_command, show_arm_command): New functions.
8244 (_initialize_arm_tdep): Add them.
8245 (num_disassembly_options): Renamed from num_flavor_options.
8246 (valid_disassembly_styles): Renamed from valid_flavors.
8247 (disassembly_style): Renamed from disassembly_flavor.
8248 (set_disassembly_style_sfunc): Renamed from
8249 set_disassembly_flavor_sfunc.
8250 (set_disassembly_style): Renamed from set_disassembly_flavor.
8251 (arm_othernames): Updated.
8252 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8253 command. Add "set/show arm disassembly" commands. Deprecate
8254 "othernames" command.
8256 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8258 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8259 (arm-tdep.o): Depend on elf_arm_h.
8261 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8263 * Makefile.in (coff_internal_h): Define.
8264 (arm-tdep.o): Update dependencies.
8266 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8268 * arm-tdep.c (prologue_cache): Delete.
8269 (check_prologue_cache, save_prologue_cache): Delete.
8270 (arm_scan_prologue): Don't check or update the prologue_cache.
8271 (arm_gdb_arch_init): Don't initialize it.
8272 (_initialize_arm_tdep): Likewise.
8274 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8276 * MAINTAINERS (tui): Maintainer of tui code.
8278 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8280 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8281 (i386-cygwin-tdep.o): Add dependencies.
8282 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8283 * i386-cygwin-tdep.c: New file.
8284 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8285 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8287 2003-03-20 Andrew Cagney <cagney@redhat.com>
8289 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8290 (handle_inferior_event): Remove code calling
8291 DYNAMIC_TRAMPOLINE_NEXTPC.
8293 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8294 already has a full path.
8296 * main.c (gdb_main): Return 1.
8297 (captured_main): Call error to report an invalid interpreter.
8299 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8300 * alpha-osf1-tdep.c: Include "gdb_string.h".
8302 2003-03-19 J. Brobecker <brobecker@gnat.com>
8304 Continuing work to convert the hppa targets to multiarch partial.
8306 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8307 method, now that hppa_push_dummy_frame has a conformant prototype.
8308 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8309 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8310 for the switch to multiarch partial.
8312 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8314 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8315 when iss is issNull.
8317 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8319 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8320 NUM_REGS bounds check.
8322 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8324 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8325 * mips-tdep.c (gdb_assert.h): Include.
8326 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8327 (mips_register_name): Handle integer registers explicitly. Add
8329 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8330 (mips_lsi33k_reg_names): Don't list integer registers; they're
8331 handled by mips_register_name() now.
8332 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8333 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8334 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8335 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8336 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8338 2003-03-18 Andrew Cagney <cagney@redhat.com>
8340 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8342 * gdbtypes.h (print_scalar_formatted): Update declaration.
8343 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8345 2003-03-18 J. Brobecker <brobecker@gnat.com>
8347 * infrun.c (observer.h): Add #include.
8348 (normal_stop): Add call to observer_notify_normal_stop.
8349 * Makefile.in (infrun.o): Add dependency on observer.h.
8351 2003-03-18 J. Brobecker <brobecker@gnat.com>
8353 Continuing work to convert the hppa targets to multiarch partial.
8354 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8355 parameter. Reformat comment.
8356 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8357 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8358 to match new profile.
8360 2003-03-18 J. Brobecker <brobecker@gnat.com>
8362 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8363 appear to be working in any case.
8365 2003-03-18 J. Brobecker <brobecker@gnat.com>
8367 * observer.c (observer_test_first_observer): New static variable.
8368 (observer_test_second_observer): Likewise.
8369 (observer_test_third_observer): Likewise.
8370 (observer_test_first_notification_function): New static function.
8371 (observer_test_second_notification_function): Likewise.
8372 (observer_test_third_notification_function): Likewise.
8374 2003-03-17 J. Brobecker <brobecker@gnat.com>
8376 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8377 * somsolib.c (gdb_assert.h): Likewise.
8378 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8379 (somsolib.o): Likewise.
8381 2003-03-17 Andrew Cagney <cagney@redhat.com>
8383 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8384 BFD. Simplify setting of di.endian.
8386 2003-03-17 Andrew Cagney <cagney@redhat.com>
8388 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8389 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8391 From Elena Zannoni <ezannoni@redhat.com>
8392 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8393 vector and floating-point parameters.
8394 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8396 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8398 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8400 * MAINTAINERS: Remove my name from several maintainership roles.
8402 2003-03-17 Andrew Cagney <cagney@redhat.com>
8404 Fix frame off-by-one bug.
8405 * frame-unwind.h (frame_this_id_ftype): Replace
8406 frame_unwind_id_ftype.
8407 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8408 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8409 with "prev_register".
8410 * frame-unwind.c (frame_unwind_find_by_pc): Return
8411 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8413 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8414 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8415 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8416 (dummy_frame_unwind): Update.
8417 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8418 sentinel_frame_register_unwind.
8419 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8420 (sentinel_frame_unwinder): Update.
8421 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8422 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8423 * frame.c (create_sentinel_frame): Update. Initialize
8424 "prologue_cache" instead of "unwind_cache".
8425 (frame_register_unwind): Call this frame's prev_register with the
8426 next frame and this frame's prologue cache.
8427 (get_prev_frame): Simplify. Always call prev frame's this_id with
8428 this frame and prev frame's prologue cache. Document that this
8429 call is shifted one to the left when compared to the
8430 frame_register_unwind call.
8431 (legacy_saved_regs_prev_register): Replace
8432 frame_saved_regs_register_unwind.
8433 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8434 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8435 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8436 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8437 (d10v_frame_unwind): Update.
8438 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8439 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8440 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8441 "saved_regs" with "this_saved_regs".
8443 2003-03-16 Andrew Cagney <cagney@redhat.com>
8445 * frame.c (frame_pop): Don't call target_store_registers. Fix
8446 problem reported by Mark Kettenis.
8448 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8450 * i386-tdep.c (i386_register_type): Renamed from
8451 i386_register_virtual_type. Adjust function signature.
8452 (i386_gdbarch_init): Set register_type instead of
8453 deprecated_max_register_raw_size,
8454 deprecated_max_register_virtual_size and register_virtual_type.
8456 2003-03-14 Andrew Cagney <cagney@redhat.com>
8458 * frame.c (get_prev_frame): When a legacy frame, always call
8459 legacy_get_prev_frame. Simplify unwind code using assumption that
8460 the unwinder is new.
8461 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8462 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8463 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8465 2003-03-14 Andrew Cagney <cagney@redhat.com>
8467 * frame.c (get_saved_register): Delete function.
8468 * frame.h (get_saved_register): Delete declaration.
8469 * xstormy16-tdep.c: Update comment.
8470 * regcache.h: Update comments.
8471 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8472 get_saved_register and extract_address, use
8473 frame_read_unsigned_register.
8474 (sparc_frame_saved_pc): Ditto.
8475 (sparc_get_saved_register): Instead of get_saved_register, use
8477 (sparc_pop_frame): Ditto.
8478 * findvar.c: Update comments.
8479 (value_of_register): Call frame_register instead of
8481 (value_from_register): Ditto.
8482 * config/sparc/tm-sparc.h: Update comment.
8483 * breakpoint.c: Update comment.
8485 2003-03-14 Andrew Cagney <cagney@redhat.com>
8487 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8489 * gdbarch.h, gdbarch.c: Re-generate.
8490 * frame.h: Update comments.
8491 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8492 * x86-64-tdep.c (x86_64_init_abi): Update.
8493 * sparc-tdep.c (sparc_gdbarch_init): Update.
8494 * sh-tdep.c (sh_gdbarch_init): Update.
8495 * mips-tdep.c (mips_gdbarch_init): Update.
8496 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8497 * cris-tdep.c (cris_gdbarch_init): Update.
8498 * ia64-tdep.c (ia64_gdbarch_init): Update.
8499 * frame.c (frame_register): Update.
8500 (get_saved_register): Update.
8501 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8503 2003-03-13 Andrew Cagney <cagney@redhat.com>
8505 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8506 * gdbarch.h, gdbarch.c: Regenerate.
8507 * valops.c (hand_function_call): Update comment.
8508 * stack.c (return_command): Update comment.
8509 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8510 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8511 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8512 * x86-64-tdep.c (x86_64_init_abi): Update.
8513 * vax-tdep.c (vax_gdbarch_init): Update.
8514 * v850-tdep.c (v850_gdbarch_init): Update.
8515 * sparc-tdep.c (sparc_gdbarch_init): Update.
8516 * sh-tdep.c (sh_gdbarch_init): Update.
8517 * s390-tdep.c (s390_gdbarch_init): Update.
8518 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8519 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8520 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8521 * mips-tdep.c (mips_gdbarch_init): Update.
8522 * mcore-tdep.c (mcore_gdbarch_init): Update.
8523 * m68k-tdep.c (m68k_gdbarch_init): Update.
8524 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8525 * ia64-tdep.c (ia64_gdbarch_init): Update.
8526 * i386-tdep.c (i386_gdbarch_init): Update.
8527 * hppa-tdep.c (hppa_gdbarch_init): Update.
8528 * h8300-tdep.c (h8300_gdbarch_init): Update.
8529 * frv-tdep.c (frv_gdbarch_init): Update.
8530 * cris-tdep.c (cris_gdbarch_init): Update.
8531 * avr-tdep.c (avr_gdbarch_init): Update.
8532 * arm-tdep.c (arm_gdbarch_init): Update.
8533 * alpha-tdep.c (alpha_gdbarch_init): Update.
8535 2003-03-13 Andrew Cagney <cagney@redhat.com>
8537 * frame.c (legacy_frame_p): New function.
8538 (get_prev_frame): Use legacy_frame_p.
8539 * frame.h (legacy_frame_p): Declare.
8541 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8543 * MAINTAINERS (write after approval): Alphabetically
8546 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8548 * MAINTAINERS (write after approval): Add myself.
8550 2003-03-12 Andrew Cagney <cagney@redhat.com>
8552 * frame.c (get_prev_frame): Rename the frame parameter to
8554 (get_next_frame, legacy_get_prev_frame): Ditto.
8556 2003-03-12 Andrew Cagney <cagney@redhat.com>
8558 * frame.c (get_current_frame): Check target_has_registers before
8559 checking target_has_stack.
8560 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8561 instead of deprecated_selected_frame.
8562 * findvar.c (value_of_register): Pass "frame", not
8563 deprecated_selected_frame, to value_of_builtin_reg.
8565 2003-03-12 Andrew Cagney <cagney@redhat.com>
8567 * regcache.c (regcache_cooked_write_signed): New function.
8568 (regcache_cooked_write_unsigned): New function.
8569 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8570 (regcache_cooked_read_signed): Fix regnum in range assertion.
8571 * regcache.h (regcache_cooked_write_signed): Declare.
8572 (regcache_cooked_write_unsigned): Declare.
8574 2003-03-12 Andrew Cagney <cagney@redhat.com>
8576 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8577 * gdbarch.h, gdbarch.c: Re-generate.
8578 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8579 * x86-64-tdep.h: Update.
8580 * x86-64-tdep.c (x86_64_init_abi): Update.
8581 * v850-tdep.c (v850_gdbarch_init): Update.
8582 * sparc-tdep.c (sparc_gdbarch_init): Update.
8583 * sh-tdep.c (sh_gdbarch_init): Update.
8584 * s390-tdep.c (s390_gdbarch_init): Update.
8585 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8586 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8587 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8588 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8589 * mips-tdep.c (mips_gdbarch_init): Update.
8590 * mcore-tdep.c (mcore_gdbarch_init): Update.
8591 * m68k-tdep.c (m68k_gdbarch_init): Update.
8592 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8593 * ia64-tdep.c (ia64_gdbarch_init): Update.
8594 * i386-tdep.c (i386_gdbarch_init): Update.
8595 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8596 * hppa-tdep.c (hppa_gdbarch_init): Update.
8597 * h8300-tdep.c (h8300_gdbarch_init): Update.
8598 * frv-tdep.c (frv_gdbarch_init): Update.
8599 * cris-tdep.c (cris_gdbarch_init): Update.
8600 * avr-tdep.c (avr_gdbarch_init): Update.
8601 * arm-tdep.c (arm_gdbarch_init): Update.
8602 * alpha-tdep.c (alpha_gdbarch_init): Update.
8603 * sh-tdep.c (sh_init_extra_frame_info): Update.
8604 (sh64_init_extra_frame_info): Update.
8605 * ns32knbsd-nat.c (frame_num_args): Update.
8606 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8607 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8608 (xstormy16_frame_chain_valid): Update.
8609 * vax-tdep.c (vax_saved_pc_after_call): Update.
8610 * v850-tdep.c (v850_frame_chain): Update.
8611 (v850_pop_frame): Update.
8612 (v850_init_extra_frame_info): Update.
8613 * sparc-tdep.c (setup_arbitrary_frame): Update.
8614 * ns32k-tdep.c (umax_frame_num_args): Update.
8615 * s390-tdep.c (s390_pop_frame_regular): Update.
8616 * mn10300-tdep.c (mn10300_frame_chain): Update.
8617 (mn10300_pop_frame_regular): Update.
8618 (mn10300_init_extra_frame_info): Update.
8619 * mips-tdep.c (mips_init_frame_pc_first): Update.
8620 (mips_frame_chain): Update.
8621 (mips_pop_frame): Update.
8622 * mcore-tdep.c (mcore_frame_chain): Update.
8623 (mcore_pop_frame): Update.
8624 (mcore_init_extra_frame_info): Update.
8625 * arch-utils.c (init_frame_pc_default): Update.
8626 * m68k-tdep.c (isi_frame_num_args): Update.
8627 (delta68_frame_num_args): Update.
8628 (news_frame_num_args): Update.
8629 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8630 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8631 (alpha_frame_chain): Update.
8632 (alpha_pop_frame): Update.
8633 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8634 (hppa_init_extra_frame_info): Update.
8635 (hppa_frame_chain): Update.
8636 (hppa_frame_chain_valid): Update.
8637 * cris-tdep.c (cris_init_extra_frame_info): Update.
8638 * avr-tdep.c (avr_init_extra_frame_info): Update.
8639 * arm-tdep.c (arm_frame_chain_valid): Update.
8640 (arm_init_extra_frame_info): Update.
8641 (arm_pop_frame): Update.
8642 * frame.c (frame_pc_unwind): Update.
8643 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8644 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8645 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8646 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8647 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8648 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8650 2003-03-12 Andrew Cagney <cagney@redhat.com>
8652 Eliminate the need for POP_FRAME.
8653 * frame.c (do_frame_unwind_register): New function.
8654 (frame_pop): When no POP_FRAME, pop the frame using register
8655 unwind and a scratch regcache.
8656 (frame_saved_regs_pop): Delete function.
8657 (trad_frame_unwinder): Update.
8658 * d10v-tdep.c (d10v_frame_pop): Delete function.
8659 (d10v_frame_unwind): Update.
8660 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8661 (sentinel_frame_unwinder): Update.
8662 * dummy-frame.c (dummy_frame_pop): Delete function.
8663 (dummy_frame_unwind): Update.
8664 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8665 (struct frame_unwind): Update.
8667 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8669 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8670 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8671 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8672 Do range checks on register number obtained from debugging info.
8673 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8674 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8675 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8677 (do_fp_register_row): Fix typo which caused double type to be
8678 used when attempting to unpack a float.
8680 2003-03-11 J. Brobecker <brobecker@gnat.com>
8682 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8684 2003-03-11 Andrew Cagney <cagney@redhat.com>
8686 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8687 frame. Problem found by Corinna Vinschen.
8689 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8691 * doublest.c (floatformat_from_length): Accept also
8692 the real size of 'long double' type.
8694 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8696 From Klee Dienes <kdienes@apple.com>:
8697 * breakpoint.c (bpstat_copy): Copy the command lines as well
8698 as the old value, to match what is freed in bpstat_clear.
8700 2003-03-10 David Carlton <carlton@math.stanford.edu>
8702 * minsyms.c (add_minsym_to_hash_table): Replace
8703 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8704 (compare_minimal_symbols, compact_minimal_symbols)
8705 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8706 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8707 of DEPRECATED_SYMBOL_MATCHES_NAME.
8708 (lookup_minimal_symbol_solib_trampoline): Ditto.
8710 2003-03-10 Andrew Cagney <cagney@redhat.com>
8712 * regcache.h (regcache_cooked_read_ftype): Define.
8713 (regcache_save, regcache_restore): Add a cooked_read parameter.
8714 * regcache.c (regcache_save, regcache_restore): Update.
8715 (do_cooked_read): New function.
8716 (regcache_cpy): Pass do_cooked_read to regcache_save and
8719 2003-03-10 Andrew Cagney <cagney@redhat.com>
8721 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8722 * gdbarch.h, gdbarch.c: Re-generate.
8723 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8724 * x86-64-tdep.h: Update.
8725 * x86-64-tdep.c (x86_64_init_abi): Update.
8726 * v850-tdep.c (v850_gdbarch_init): Update.
8727 * sparc-tdep.c (sparc_gdbarch_init): Update.
8728 * sh-tdep.c (sh_gdbarch_init): Update.
8729 * s390-tdep.c (s390_gdbarch_init): Update.
8730 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8731 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8732 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8733 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8734 * mips-tdep.c (mips_gdbarch_init): Update.
8735 * mcore-tdep.c (mcore_gdbarch_init): Update.
8736 * m68k-tdep.c (m68k_gdbarch_init): Update.
8737 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8738 * ia64-tdep.c (ia64_gdbarch_init): Update.
8739 * i386-tdep.c (i386_gdbarch_init): Update.
8740 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8741 * hppa-tdep.c (hppa_gdbarch_init): Update.
8742 * h8300-tdep.c (h8300_gdbarch_init): Update.
8743 * frv-tdep.c (frv_gdbarch_init): Update.
8744 * cris-tdep.c (cris_gdbarch_init): Update.
8745 * avr-tdep.c (avr_gdbarch_init): Update.
8746 * arm-tdep.c (arm_gdbarch_init): Update.
8747 * alpha-tdep.c (alpha_gdbarch_init): Update.
8748 * sh-tdep.c (sh_init_extra_frame_info): Update.
8749 (sh64_init_extra_frame_info): Update.
8750 * ns32knbsd-nat.c (frame_num_args): Update.
8751 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8752 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8753 (xstormy16_frame_chain_valid): Update.
8754 * vax-tdep.c (vax_saved_pc_after_call): Update.
8755 * v850-tdep.c (v850_frame_chain): Update.
8756 (v850_pop_frame): Update.
8757 (v850_init_extra_frame_info): Update.
8758 * sparc-tdep.c (setup_arbitrary_frame): Update.
8759 * ns32k-tdep.c (umax_frame_num_args): Update.
8760 * s390-tdep.c (s390_pop_frame_regular): Update.
8761 * mn10300-tdep.c (mn10300_frame_chain): Update.
8762 (mn10300_pop_frame_regular): Update.
8763 (mn10300_init_extra_frame_info): Update.
8764 * mips-tdep.c (mips_init_frame_pc_first): Update.
8765 (mips_frame_chain): Update.
8766 (mips_pop_frame): Update.
8767 * mcore-tdep.c (mcore_frame_chain): Update.
8768 (mcore_pop_frame): Update.
8769 (mcore_init_extra_frame_info): Update.
8770 * arch-utils.c (init_frame_pc_default): Update.
8771 * m68k-tdep.c (isi_frame_num_args): Update.
8772 (delta68_frame_num_args): Update.
8773 (news_frame_num_args): Update.
8774 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8775 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8776 (alpha_frame_chain): Update.
8777 (alpha_pop_frame): Update.
8778 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8779 (hppa_init_extra_frame_info): Update.
8780 (hppa_frame_chain): Update.
8781 (hppa_frame_chain_valid): Update.
8782 * cris-tdep.c (cris_init_extra_frame_info): Update.
8783 * avr-tdep.c (avr_init_extra_frame_info): Update.
8784 * arm-tdep.c (arm_frame_chain_valid): Update.
8785 (arm_init_extra_frame_info): Update.
8786 (arm_pop_frame): Update.
8787 * frame.c (frame_pc_unwind): Update.
8788 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8789 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8790 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8791 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8792 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8793 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8795 2003-03-10 Andrew Cagney <cagney@redhat.com>
8797 * gdbarch.sh (gdbarch_unwind_pc): New method.
8798 * gdbarch.h, gdbarch.c: Regenerate.
8799 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8800 but use read_pc and FRAME_SAVED_PC as fall backs.
8801 (frame_saved_regs_pc_unwind): Delete function.
8802 (trad_frame_unwinder): Update.
8803 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8804 (struct frame_unwind): Update.
8805 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8806 (dummy_frame_unwind): Update.
8807 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8808 (sentinel_frame_unwinder): Update.
8809 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8810 (d10v_frame_unwind): Update.
8811 (d10v_unwind_pc): New function.
8812 (d10v_gdbarch_init): Set unwind_pc.
8814 2003-03-10 Andrew Cagney <cagney@redhat.com>
8816 * gdbarch.h: Re-generate.
8818 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8820 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8823 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8825 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8827 2003-03-08 Andrew Cagney <cagney@redhat.com>
8829 * cli-out.c: Update copyright.
8830 (cli_out_data): Define typedef. Use instead of ui_out_data.
8832 2003-03-08 Andrew Cagney <cagney@redhat.com>
8834 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8837 2003-03-07 Andrew Cagney <cagney@redhat.com>
8839 * gdbarch.sh: Don't generate two macro definitions when an
8840 undefined macro taking no arguments.
8841 * gdbarch.h: Regenerate.
8843 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8845 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8846 (x86_64_unwind_dummy_id): New functions.
8847 (x86_64_init_abi): Register these two new functions.
8849 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8851 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8852 (x86_64_skip_prologue): Move prologue detection to
8854 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8856 2003-03-05 Andrew Cagney <cagney@redhat.com>
8858 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8859 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8860 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8861 to use unwind_dummy_id when a dummy frame.
8862 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8864 * gdbarch.h, gdbarch.c: Regneerate.
8866 2003-03-05 Andrew Cagney <cagney@redhat.com>
8868 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8869 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8870 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8873 2003-03-05 Andrew Cagney <cagney@redhat.com>
8875 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8876 (struct d10v_unwind_cache): Delete field "frameless". Replace
8877 "next_addr" with "sp_offset". Add "r11_offset".
8878 (d10v_frame_unwind_cache): Update.
8879 (prologue_find_regs): Update. When "mv r11, sp", save the
8880 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8881 RN was saved in r11_offset.
8883 2003-03-05 Andrew Cagney <cagney@redhat.com>
8885 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8886 cached PC value in the next frame.
8888 2003-03-05 Andrew Cagney <cagney@redhat.com>
8890 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8891 "id_unwind_cache" with "id".
8892 (frame_id_unwind): Delete declaration.
8893 * frame.c (frame_id_unwind): Delete function.
8894 (get_prev_frame): Call the frame id unwind method directly. Store
8895 the returned next frame's ID value in NEXT_FRAME. Note that there
8896 is a problem with the wrong unwind ID being called with the wrong
8899 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8901 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8903 2003-03-05 James Ingham <jingham@apple.com>
8904 Daniel Jacobowitz <drow@mvista.com>
8906 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8907 (auto_cp_abi): New variable.
8908 (current_cp_abi, num_cp_abis): Make static.
8909 (CP_ABI_MAX): Define.
8910 (cp_abis): Turn into an array.
8911 (value_virtual_fn_field): Fix formatting.
8912 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8914 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8915 (list_cp_abis, _initialize_cp_abi): New functions.
8916 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8917 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8918 switch_to_cp_abi. Update prototype for register_cp_abi.
8919 * Makefile.in (cp-abi.o): Update dependencies.
8920 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8921 instead of switch_to_cp_abi.
8922 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8924 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8926 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8928 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8930 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8931 * dwarf2loc.c: Include "regcache.h".
8932 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8934 * Makefile.in (dwarf2loc.o): Update dependencies.
8936 2003-03-04 Theodore A. Roth <troth@openavr.org>
8938 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8939 number of io registers reported by remote target is not a multiple of
8942 2003-03-04 David Carlton <carlton@math.stanford.edu>
8944 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8945 (lookup_symbol_aux_psymtabs): Update call to
8946 lookup_partial_symbol.
8947 (lookup_transparent_type, find_main_psymtab)
8948 (make_symbol_overload_list): Ditto.
8950 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8952 * MAINTAINERS (Write after approval): Update my email address.
8954 2003-03-03 Andrew Cagney <cagney@redhat.com>
8956 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8957 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8958 predicate. Replace MAX_REGISTER_RAW_SIZE.
8959 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8960 MAX_REGISTER_VIRTUAL_SIZE.
8961 * regcache.c (legacy_max_register_raw_size): New function.
8962 (legacy_max_register_virtual_size): New function.
8963 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8964 (MAX_REGISTER_RAW_SIZE): Define.
8965 (legacy_max_register_raw_size): Declare.
8966 (legacy_max_register_virtual_size): Declare.
8967 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8968 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8969 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8970 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8971 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8972 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8973 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8974 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8975 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8976 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8977 * vax-tdep.c (vax_gdbarch_init): Update.
8978 * v850-tdep.c (v850_gdbarch_init): Update.
8979 * sparc-tdep.c (sparc_gdbarch_init): Update.
8980 * sh-tdep.c (sh_gdbarch_init): Update.
8981 * s390-tdep.c (s390_gdbarch_init): Update.
8982 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8983 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8984 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8985 * mips-tdep.c (mips_gdbarch_init): Update.
8986 * mcore-tdep.c (mcore_gdbarch_init): Update.
8987 * m68k-tdep.c (m68k_gdbarch_init): Update.
8988 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8989 * ia64-tdep.c (ia64_gdbarch_init): Update.
8990 * i386-tdep.c (i386_gdbarch_init): Update.
8991 * hppa-tdep.c (hppa_gdbarch_init): Update.
8992 * h8300-tdep.c (h8300_gdbarch_init): Update.
8993 * frv-tdep.c (frv_gdbarch_init): Update.
8994 * cris-tdep.c (cris_gdbarch_init): Update.
8995 * avr-tdep.c (avr_gdbarch_init): Update.
8996 * arm-tdep.c (arm_gdbarch_init): Update.
8997 * alpha-tdep.c (alpha_gdbarch_init): Update.
8998 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8999 max_register_raw_size or max_register_virtual_size.
9001 2003-03-03 David Carlton <carlton@math.stanford.edu>
9003 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9004 SYMBOL_MATCHES_NAME, add comment.
9005 (SYMBOL_MATCHES_NATURAL_NAME): New.
9006 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9007 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9008 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9009 * symtab.c (lookup_partial_symbol): Use
9010 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9012 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9013 SYMBOL_MATCHES_NAME.
9016 2003-03-03 David Carlton <carlton@math.stanford.edu>
9018 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9019 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9020 by regexp matching against SYMBOL_NATURAL_NAME.
9022 2003-03-03 David Carlton <carlton@math.stanford.edu>
9024 * linespec.c (find_method): Extract code into collect_methods.
9025 (collect_methods): New.
9027 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9029 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9032 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9033 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9035 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9037 * arch-utils.c (generic_register_byte): Fix to use the loop index
9038 and not regnum when summing the size of all registers up to regnum.
9040 2003-03-01 Andrew Cagney <cagney@redhat.com>
9042 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9043 FRAME_INIT_SAVED_REGS.
9044 * gdbarch.h, gdbarch.c: Regenerate.
9045 * stack.c (frame_info): Update.
9046 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9047 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9048 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9049 * ns32k-tdep.c (ns32k_pop_frame): Update.
9050 * mips-tdep.c (mips_pop_frame): Update.
9051 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9052 * ia64-tdep.c (ia64_frame_chain): Update.
9053 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9054 (ia64_frameless_function_invocation): Update.
9055 (ia64_init_extra_frame_info): Update.
9056 (ia64_pop_frame_regular): Update.
9057 * frame.h (struct frame_info): Update comment.
9058 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9059 * frame.c (frame_saved_regs_register_unwind): Update.
9060 (frame_saved_regs_register_unwind): Update.
9061 (deprecated_generic_get_saved_register): Update.
9062 * cris-tdep.c: Update comment.
9063 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9065 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9066 * x86-64-tdep.c (x86_64_init_abi): Update.
9067 * vax-tdep.c (vax_gdbarch_init): Update.
9068 * v850-tdep.c (v850_gdbarch_init): Update.
9069 * sparc-tdep.c (sparc_gdbarch_init): Update.
9070 * sh-tdep.c (sh_gdbarch_init): Update.
9071 * s390-tdep.c (s390_gdbarch_init): Update.
9072 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9073 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9074 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9075 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9076 * mips-tdep.c (mips_gdbarch_init): Update.
9077 * mcore-tdep.c (mcore_gdbarch_init): Update.
9078 * m68k-tdep.c (m68k_gdbarch_init): Update.
9079 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9080 * ia64-tdep.c (ia64_gdbarch_init): Update.
9081 * i386-tdep.c (i386_gdbarch_init): Update.
9082 * frv-tdep.c (frv_gdbarch_init): Update.
9083 * avr-tdep.c (avr_gdbarch_init): Update.
9084 * arm-tdep.c (arm_gdbarch_init): Update.
9085 * alpha-tdep.c (alpha_gdbarch_init): Update.
9087 2003-03-01 Andrew Cagney <cagney@redhat.com>
9089 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9090 option enum and switch. When no windows, set the interpreter to
9093 2003-03-01 Andrew Cagney <cagney@redhat.com>
9095 * main.c (captured_main): Replace magic option characters with an
9098 2003-03-01 Andrew Cagney <cagney@redhat.com>
9100 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9101 INIT_EXTRA_FRAME_INFO.
9102 * gdbarch.h, gdbarch.c: Regenerate.
9103 * arm-tdep.c: Update comments.
9104 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9105 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9106 * frame.h, avr-tdep.c: Ditto.
9107 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9108 (create_new_frame, legacy_get_prev_frame): Ditto.
9109 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9110 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9111 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9112 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9113 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9114 * v850-tdep.c (v850_gdbarch_init): Ditto.
9115 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9116 * sh-tdep.c (sh_gdbarch_init): Ditto.
9117 * s390-tdep.c (s390_gdbarch_init): Ditto.
9118 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9119 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9120 * mips-tdep.c (mips_gdbarch_init): Ditto.
9121 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9122 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9123 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9124 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9125 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9126 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9127 * frv-tdep.c (frv_gdbarch_init): Ditto.
9128 * cris-tdep.c (cris_gdbarch_init): Ditto.
9129 * avr-tdep.c (avr_gdbarch_init): Ditto.
9130 * arm-tdep.c (arm_gdbarch_init): Ditto.
9131 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9132 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9134 2003-03-01 Andrew Cagney <cagney@redhat.com>
9136 * gdbarch.sh (register_type): New function with predicate.
9137 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9138 * gdbarch.h, gdbarch.c: Re-generate.
9139 * arch-utils.c (generic_register_byte): Use generic_register_size.
9140 (generic_register_size): When available, use
9141 gdbarch_register_type.
9142 * regcache.c (init_regcache_descr): When available, initialize the
9143 register type array using gdbarch_register_type. If the
9144 architecture supplies gdbarch_register_type, do not use the legacy
9146 * d10v-tdep.c (d10v_register_type): Replace
9147 d10v_register_virtual_type.
9148 (d10v_gdbarch_init): Set register_type instead of
9149 register_virtual_type.
9151 2003-03-01 Andrew Cagney <cagney@redhat.com>
9153 * Makefile.in (ax-gdb.o): Update dependencies.
9154 * ax-gdb.c: Include "regcache.h".
9155 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9156 * findvar.c (value_of_register): Ditto.
9157 * infcmd.c (default_print_registers_info): Ditto.
9159 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9161 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9162 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9164 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9166 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9169 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9171 * Makefile.in (dwarf2loc.o): Update dependencies.
9172 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9173 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9174 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9175 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9176 (locexpr_tracepoint_var_ref): New function.
9177 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9179 2003-02-28 Andrew Cagney <cagney@redhat.com>
9181 * regcache.c (register_size): New function.
9182 * regcache.h (register_size): Declare
9183 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9184 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9186 2003-02-28 David Carlton <carlton@math.stanford.edu>
9188 * linespec.c (decode_compound): Extract code into find_method.
9191 2003-02-28 J. Brobecker <brobecker@gnat.com>
9193 * Makefile.in: Add rules to build and link in observer.o.
9195 2003-02-27 J. Brobecker <brobecker@gnat.com>
9197 * observer.c: Minor comments edits.
9199 2003-02-27 J. Brobecker <brobecker@gnat.com>
9201 * observer.h, observer.c: New file.
9203 2003-02-27 Andrew Cagney <cagney@redhat.com>
9205 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9207 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9209 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9210 (M6812_OP_STS_EXT): Likewise.
9211 (m6811_prologue): Use the above to recognize prologue.
9212 (m6812_prologue): Likewise.
9214 2003-02-27 David Carlton <carlton@math.stanford.edu>
9216 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9218 (compare_psymbols): Ditto.
9219 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9221 2003-02-27 Michael Snyder <msnyder@redhat.com>
9223 * f-lang.c (build_fortran_types): New function.
9224 (_initialize_f_language): Gdbarch-register built-in fortran types.
9225 * doublest.c (extract_floating): Fix warning text.
9227 2003-02-27 Andrew Cagney <cagney@redhat.com>
9229 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9230 predicate. Replaces PUSH_DUMMY_FRAME.
9231 * gdbarch.h, gdbarch.c: Regnerate.
9232 * valops.c (hand_function_call): Update. Call
9233 generic_push_dummy_frame directly.
9234 * vax-tdep.c (vax_gdbarch_init): Update.
9235 * sparc-tdep.c (sparc_gdbarch_init): Update.
9236 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9237 * m68k-tdep.c (m68k_gdbarch_init): Update.
9238 * hppa-tdep.c (hppa_gdbarch_init): Update.
9239 * alpha-tdep.c (alpha_gdbarch_init): Update.
9240 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9241 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9242 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9243 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9244 push_dummy_frame to generic_push_dummy_frame.
9245 * v850-tdep.c (v850_gdbarch_init): Ditto.
9246 * sh-tdep.c (sh_gdbarch_init): Ditto.
9247 * s390-tdep.c (s390_gdbarch_init): Ditto.
9248 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9249 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9250 * mips-tdep.c (mips_gdbarch_init): Ditto.
9251 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9252 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9253 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9254 * i386-tdep.c (i386_gdbarch_init): Ditto.
9255 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9256 * frv-tdep.c (frv_gdbarch_init): Ditto.
9257 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9258 * cris-tdep.c (cris_gdbarch_init): Ditto.
9259 * avr-tdep.c (avr_gdbarch_init): Ditto.
9260 * arm-tdep.c (arm_gdbarch_init): Ditto.
9262 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9264 * mips-tdep.c (show_mips_abi): New function.
9265 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9266 command ``show mips abi''.
9268 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9270 From Elena Zannoni <ezannoni@redhat.com>
9271 * dbxread.c (process_one_symbol): Only record line 0 if one or
9272 more sline entries have been seen for the function.
9274 2003-02-26 Michael Chastain <mec@shout.net>
9276 * configure: Regenerate with autoconf 000227.
9278 2003-02-26 Michael Chastain <mec@shout.net>
9281 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9282 for old libc5/glibc.
9283 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9285 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9287 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9288 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9290 2003-02-26 Michael Chastain <mec@shout.net>
9292 * configure.in: New variable HAVE_UINTPTR_T.
9293 * configure, config.in: Regenerated.
9295 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9298 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9300 2003-02-25 Andrew Cagney <cagney@redhat.com>
9302 * frame.c (get_prev_frame): Add comment on check for
9303 inside_entry_func. Only check for inside_entry_file when not a
9304 dummy and not a sentinel. Check that the new frame is not inner
9307 2003-02-25 Andrew Cagney <cagney@redhat.com>
9309 * frame.c (frame_debug): New variable.
9310 (_initialize_frame): Add "set/show debug frame" command.
9311 (get_prev_frame): When frame_debug, print reason why unwind
9314 2003-02-25 Michael Chastain <mec@shout.net>
9316 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9317 to avoid uintptr_t definition problems.
9319 2003-02-25 David Carlton <carlton@math.stanford.edu>
9321 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9322 (SYMBOL_LINKAGE_NAME): Ditto.
9323 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9324 SYMBOL_LINKAGE_NAME.
9325 (struct general_symbol_info): Expand comment.
9326 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9327 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9328 (SYMBOL_MATCHES_REGEXP): Ditto.
9329 * symtab.c (symbol_natural_name): New function.
9330 * objfiles.h: Replace all uses of SYMBOL_NAME by
9331 DEPRECATED_SYMBOL_NAME.
9332 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9333 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9334 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9335 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9336 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9337 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9338 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9339 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9340 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9341 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9343 * ada-exp.y: Update copyright.
9344 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9345 * cp-valprint.c: Ditto.
9347 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9349 * infptrace.c (detach): Do not flag error if ptrace detach fails
9350 and errno is set to ESRCH.
9352 2003-02-24 Andrew Cagney <cagney@redhat.com>
9354 * infptrace.c (udot_info): Change type of udot_off to long. Use
9355 paddr when printing udot_off's value.
9357 2003-02-24 David Carlton <carlton@math.stanford.edu>
9359 * symtab.c (make_symbol_overload_list): Only read in partial
9360 symtabs containing a matching partial symbol.
9362 2003-02-24 David Carlton <carlton@math.stanford.edu>
9364 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9365 do the comparison, not strcmp.
9366 * symfile.c (compare_psymbols): Ditto.
9367 * defs.h: Declare strcmp_iw_ordered.
9368 * utils.c (strcmp_iw_ordered): New function.
9370 2003-02-24 Jim Blandy <jimb@redhat.com>
9372 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9373 support, shared libs): Remove my name from here, to better reflect
9376 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9378 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9379 (target_ops): Add to_have_continuable_watchpoint.
9380 * target.c (update_current_target): Add INHERIT line for
9381 to_have_continuable_watchpoint.
9382 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9383 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9384 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9385 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9387 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9389 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9392 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9394 * solib.c (solib_open): Call target defined search function after
9395 failing with solib-search-path.
9396 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9397 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9399 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9401 * MAINTAINERS: Add myself to Write After section.
9403 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9405 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9407 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9409 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9410 (m68hc11_add_reggroups): New function.
9411 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9412 (m68hc11_gdbarch_init): Install the reggroups.
9413 (_initialize_m68hc11_tdep): Initialize them.
9415 2003-02-21 James E Wilson <wilson@tuliptree.org>
9417 * MAINTAINERS: Update my email address.
9419 2003-02-21 David Carlton <carlton@math.stanford.edu>
9421 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9423 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9425 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9426 * symtab.h: Add opaque declarations of struct axs_value and
9428 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9429 (struct location_funcs): New type.
9430 (struct symbol): Add "loc" to aux_value.
9431 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9432 * dwarf2read.c: Include "dwarf2expr.h".
9433 (dwarf2_symbol_mark_computed): New function.
9434 (read_func_scope): Use it.
9435 (var_decode_location): New function.
9436 (new_symbol): Use it.
9437 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9439 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9440 (dwarf2expr_h, dwarf2loc_h): New variables.
9441 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9442 (dwarf2expr.o, dwarf2loc.o): New rules.
9443 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9444 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9446 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9447 * m2-exp.y (yylex): Likewise.
9448 * printcmd.c (address_info, print_frame_args): Likewise.
9449 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9450 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9451 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9452 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9453 * symtab.c (lookup_block_symbol): Likewise.
9455 2003-02-20 Adam Fedor <fedor@gnu.org>
9457 * symtab.h: Remove objc_specific struct
9458 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9459 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9460 Have language_objc use cplus_specific struct.
9462 2003-02-20 Tom Tromey <tromey@redhat.com>
9464 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9465 TYPE_NAME, when printing a String value. PR java/1075.
9467 2003-02-20 Adam Fedor <fedor@gnu.org>
9469 * objc-lang.h (find_methods): Remove declaration.
9470 * objc-lang.c (find_methods): Make static.
9472 2003-02-20 Christopher Faylor <cgf@redhat.com>
9474 * win32-nat.c (get_image_name): Check return value from
9476 (child_xfer_memory): Ditto.
9478 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9480 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9481 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9482 '${exec_prefix}' (in addition to the expansion thereof) as
9484 * configure: Rebuilt.
9486 2003-02-20 David Carlton <carlton@math.stanford.edu>
9488 * symtab.c (search_symbols): Revert the search_symbols part of my
9489 2002-12-23 patch. Add comment.
9491 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9493 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9494 * dbxread.c (elfstab_build_psymtabs): Don't call
9495 install_minimal_symbols.
9496 (stabsect_build_psymtabs): Likewise.
9497 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9499 * somread.c (som_symfile_read): Call install_minimal_symbols
9500 and do_cleanups earlier.
9501 * nlmread.c (nlm_symfile_read): Likewise.
9502 * mdebugread.c (elfmdebug_build_psymtabs): Call
9503 install_minimal_symbols and make appropriate cleanups.
9505 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9507 * solib.c (reload_shared_libraries): New function.
9508 (_initialize_solib): Add callbacks for ``set solib-search-path''
9509 and ``set solib-absolute-prefix''.
9511 2003-02-20 David Carlton <carlton@math.stanford.edu>
9513 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9515 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9516 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9517 * ada-typeprint.c (ada_typedef_print): Ditto.
9518 * ax-gdb.c (gen_var_ref): Ditto.
9519 * breakpoint.c (print_one_breakpoint): Ditto.
9520 * buildsym.c (finish_block): Ditto.
9521 * c-valprint.c (c_val_print): Ditto.
9522 * expprint.c (print_subexp): Ditto.
9523 * findvar.c (locate_var_value): Ditto.
9524 * infcmd.c (jump_command): Ditto.
9525 * linespec.c (decode_line_2, decode_compound): Ditto.
9526 * maint.c (maintenance_translate_address): Ditto.
9527 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9528 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9530 * p-valprint.c (pascal_val_print): Ditto.
9531 * stabsread.c (define_symbol): Ditto.
9532 * stack.c (print_frame, frame_info, print_block_frame_locals)
9533 (print_frame_arg_vars, return_command): Ditto.
9534 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9535 * symmisc.c (print_symbol): Ditto.
9536 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9537 (compare_search_syms, print_symbol_info, print_msymbol_info)
9538 (rbreak_command): Ditto.
9539 * tracepoint.c (tracepoints_info): Ditto.
9540 * typeprint.c (typedef_print): Ditto.
9541 * valops.c (value_of_variable, hand_function_call): Ditto.
9542 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9543 * ada-typeprint.c: Update Copyright.
9544 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9545 * tracepoint.c, cli/cli-cmds.c: Ditto.
9547 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9549 * frame.c (generic_unwind_get_saved_register): Make non-static.
9550 * frame.h (generic_unwind_get_saved_register): Declare.
9551 * mips-tdep.c (read_next_frame_reg): Fetch register from
9552 current regcache when frame is NULL.
9553 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9555 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9556 instead of frame_register_unwind().
9558 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9560 * remote-sim.c (gdbsim_insert_breakpoint)
9561 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9564 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9566 * remote.c (_initialize_remote): Add commands "set/show remote
9567 hardware-watchpoint-limit" and "set/show remote
9568 hardware-breakpoint-limit".
9569 (remote_hw_watchpoint_limit): Initialize to -1.
9570 (remote_hw_breakpoint_limit): Ditto.
9571 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9573 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9575 * coff-pe-read.c: New file - support reading of minimal symbols from a
9576 portable executable using the export table.
9577 * coff-pe-read.h: New file.
9578 * coffread.c: Include coff-pe-read.h.
9579 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9580 debugging symbols found.
9581 * Makefile.in (SFILES): Add coff-pe-read.o.
9582 (coff_pe_read_h): Define.
9583 (COMMON_OBS): Add coff-pe-read.o.
9584 (coffread.o): Add coff_pe_read_h dependency.
9585 (coff-pe-read.o): New target.
9587 2003-02-19 David Carlton <carlton@math.stanford.edu>
9589 * Makefile.in (SFILES): Add block.c.
9591 (COMMON_OBS): Add block.o.
9593 (x86-64-tdep.o): Add $(block_h).
9594 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9595 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9596 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9597 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9598 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9599 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9600 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9601 * value.h: Add opaque declaration for struct block.
9602 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9603 * ada-lang.h: Ditto.
9604 * x86-64-tdep.c: #include "block.h"
9605 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9606 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9607 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9608 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9609 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9610 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9611 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9612 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9613 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9614 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9615 * symtab.c (block_function): Ditto.
9616 (contained_in): Ditto.
9617 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9618 block.h. Add opaque declaration for struct block.
9619 * symtab.h: Move block_function and contained_in declarations to
9620 block.h. Add opaque declarations for struct block, struct
9622 (struct block): Move to block.h.
9623 (struct blockvector): Ditto.
9624 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9625 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9626 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9627 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9628 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9630 * block.c: New file.
9631 * block.h: New file.
9633 2003-02-19 Theodore A. Roth <troth@openavr.org>
9635 * avr-tdep.c (avr_extract_return_value): Remove function.
9636 (avr_store_return_value): Remove function.
9637 (avr_extract_struct_value_address): Remove function.
9638 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9640 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9642 * rs6000-tdep.c: Include "gdb_assert.h".
9643 (registers_e500): Add "acc" and "spefscr".
9644 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9645 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9646 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9648 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9650 2003-02-18 Keith Seitz <keiths@redhat.com>
9652 * Makefile.in: Add gdbtk-interps.c.
9654 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9656 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9657 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9659 2003-02-18 Andrew Cagney <cagney@redhat.com>
9661 * symtab.h (struct objfile): Add opaque declaration.
9663 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9665 From Jim Ingham <jingham@apple.com>:
9666 * dbxread.c (process_one_symbol): Use last_function_start rather
9667 than function_start_offset to find the real beginning of the
9668 current function. The latter is just the text section offset on
9669 some systems, the former is always the real function start.
9671 2003-02-17 Andrew Cagney <cagney@redhat.com>
9673 * configure.in: Revert ${target} != ${host}.
9675 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9677 * configure.in (Makefile): Use the test ${target} != ${host},
9678 instead of the absence of the "nm.h" file, to determine of the
9679 configuration non-native.
9680 * configure: Regenerate.
9682 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9684 From Brian Ford <ford@vss.fsi.com>
9686 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9687 conditionalize tui_active test.
9688 (lookup_cmd_1): Ditto.
9690 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9692 * configure.in: Add check for _etext.
9693 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9695 * config.in, configure: regenerated.
9697 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9699 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9701 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9703 * main.c (tui_version): Delete variable.
9704 (captured_main): When --tui, set interpreter_p to "tui" instead of
9705 enabling tui_version.
9706 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9708 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9709 * cli/cli-cmds.c (disassemble_command): Ditto.
9710 * defs.h (tui_version): Delete declaration.
9711 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9712 (tui-interp.o): Add rules.
9713 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9715 2003-02-14 Christopher Faylor <cgf@redhat.com>
9717 * win32-nat.c (register_loaded_dll): Correctly set address range for
9720 2003-02-12 Jason Molenda (jmolenda@apple.com)
9722 * symmisc.c (print_objfile_statistics): Include information about
9723 the number of psymtabs and symtabs in each object file.
9725 2003-02-13 Keith R Seitz <keiths@redhat.com>
9727 * main.h (struct captured_main_args): Add interpreter_p.
9728 * main.c (captured_main): Initialize interpreter_p from context.
9729 * gdb.c (main): Set interpreter_p argument.
9730 * Makefile.in (gdb.o): Add dependency for interps.h.
9732 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9734 * event-top.c (cli_command_loop): Delete declaration.
9735 (_initialize_event_loop): Delete function setting event_loop_hook.
9736 * event-top.h (cli_command_loop): Declare. Update copyright.
9737 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9738 * interps.c (current_interp_command_loop): When event_loop_p, call
9741 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9743 * interps.h (interp_command_loop_ftype): Change return type to
9746 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9748 * x86-64-tdep.c (x86_64_extract_return_value)
9749 (x86_64_store_return_value): Use regcache instead of regbuf.
9750 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9751 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9753 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9755 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9756 * aclocal.m4: Regenerate.
9757 * configure: Regenerate.
9759 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9760 TCL_LD_SEARCH_FLAGS.
9762 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9764 * dwarf2cfi.c: Reindented.
9766 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9768 * interps.c (clear_interpreter_hooks): Convert function definition
9771 2003-02-07 David Carlton <carlton@math.stanford.edu>
9773 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9775 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9777 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9778 (struct type): ...to here.
9779 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9781 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9782 (replace_type): Set length on all type variants for a given type.
9784 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9786 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9788 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9790 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9792 * Makefile.in (symm-nat.o): Update dependencies.
9793 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9794 (lynx-nat.o, ia64-linux-nat.): Ditto.
9795 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9796 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9797 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9799 * Makefile.in (inflow_h): Define.
9800 (procfs.o, inflow.o, procfs.o): Update dependencies.
9801 * inftarg.c (child_stop): Delete extern declaration of
9802 inferior_process_group. Include "inflow.h".
9803 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9804 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9805 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9806 (our_process_group, inferior_process_group): Extern declarations.
9808 * procfs.c: Include "gdb_assert.h".
9810 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9811 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9812 * jv-typeprint.c (java_type_print_base): Ditto.
9813 * typeprint.c (typedef_print): Eliminate STREQ.
9814 * cli/cli-script.c (define_command, define_command): Ditto.
9815 * main.c (captured_main): Ditto.
9816 * values.c (lookup_internalvar): Ditto.
9817 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9818 within `if' conditional.
9819 * linespec.c (decode_line_2): Ditto.
9820 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9821 (bfd_openw_with_cleanup): Ditto.
9823 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9825 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9826 legacy_extract_return_value and store_return_value to
9827 legacy_return_value.
9829 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9831 * win32-nat.c (get_relocated_section_addrs): New function. Find
9832 section load addresses for symbol handling in relocated DLLs.
9833 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9835 2003-02-05 Fred Fish <fnf@intrinsity.com>
9837 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9839 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9841 (angel_RDI_info): Ditto.
9842 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9844 (threads_continue_all_with_signals): Ditto.
9846 2003-02-05 Jim Ingham <jingham@apple.com>
9847 Keith Seitz <keiths@redhat.com>
9848 Elena Zannoni <ezannoni@redhat.com>
9849 Andrew Cagney <ac131313@redhat.com>
9851 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9852 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9853 (SUBDIR_MI_OBS): Add "mi-interp.o".
9854 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9855 (SFILES): Add "interps.c".
9856 (COMMON_OBS): Add "interps.o".
9857 (interps_h, mi_main_h): Define.
9858 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9859 (mi-main.o, main.o, event-top.o): Update dependencies.
9860 * cli/cli-interp.c: New file.
9861 * interps.h, interps.c: New files.
9862 * top.c: (gdb_init): Don't install the default interpreter, handed
9864 * main.c: Include "interps.h".
9865 (interpreter_p): Note that it should malloc'ed.
9866 (captured_command_loop): Call current_interp_command_loop.
9867 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9868 xfree and xstrdup when updating interpreter_p. Install the
9869 default interpreter. Add hack to stop mi1's copyright notice
9871 * event-top.h (gdb_setup_readline): Declare.
9872 (gdb_disable_readline): Declare.
9873 * event-top.c: Include "interps.h".
9874 (display_gdb_prompt): Call current_interp_display_prompt_p.
9875 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9876 gdb_stdlog, and gdb_stdtarg.
9877 (_initialize_event_loop): Don't call gdb_setup_readline.
9878 * cli-out.c (cli_out_set_stream): New function.
9879 * cli-out.h (cli_out_set_stream): Declare.
9881 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9883 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9884 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9885 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9886 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9887 config/i386/i386v42mp.mt: Removed.
9889 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9891 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9894 2003-02-05 Michael Chastain <mec@shout.net>
9896 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9897 2.12.1 and earlier versions.
9899 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9901 Remove orphaned hosts, targets and files.
9902 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9903 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9904 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9905 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9906 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9907 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9908 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9909 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9910 * config/sparc/tm-sp64sim.h: Delete.
9911 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9913 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9914 mips*-dec-mach3* targets.
9916 2003-02-04 Michael Chastain <mec@shout.net>
9918 * NEWS: Fix typo: sepcifying -> specifying.
9920 2003-02-04 Michael Chastain <mec@shout.net>
9922 * dwarfread.c: Add documentation on the state of dwarf-1,
9923 looking towards obsoletion.
9925 2003-02-03 Michael Chastain <mec@shout.net>
9927 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9928 gdb/testsuite/gdb.c++/pr-1023.exp.
9930 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9932 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9933 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9935 * utils.c (init_page_info): Delete reference to MPW in comments.
9936 * main.c (captured_main): Delete #ifdef MPW.
9938 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9940 * NEWS: Note that the m32r-*-elf* is obsolete.
9941 * monitor.c (monitor_expect): Obsolete reference to m32r.
9942 * configure.tgt: Mark m32r-*-elf* as obsolete.
9943 * MAINTAINERS: Mark m32k as obsolete.
9944 * m32r-rom.c: Obsolete file.
9945 * config/m32r/m32r.mt: Obsolete file.
9946 * config/m32r/tm-m32r.h: Obsolete file.
9947 * m32r-stub.c: Obsolete file.
9948 * m32r-tdep.c: Obsolete file.
9950 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9952 * NEWS: Mention that the z8k-zilog-none is obsolete.
9953 * MAINTAINERS: Mark z8k as obsolete.
9954 * configure.tgt: Obsolete the z8k-*-coff* target.
9955 * config/z8k/z8k.mt: Obsolete file.
9956 * config/z8k/tm-z8k.h: Obsolete file.
9957 * z8k-tdep.c: Obsolete file.
9959 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9961 * NEWS: Mention that the mn10200-elf is obsolete.
9962 * configure.tgt: Obsolete mn10200-*-* target.
9963 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9964 mention that the mn10200 is obsolete.
9965 * breakpoint.h: Ditto.
9966 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9967 * config/mn10200/mn10200.mt: Obsolete file.
9968 * config/mn10200/tm-mn10200.h: Obsolete file.
9969 * mn10200-tdep.c: Obsolete file.
9971 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9973 * MAINTAINERS: Mark h8500 as obsolete.
9974 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9975 * findvar.c (value_from_register): Ditto.
9976 * h8500-tdep.c: Mark file as obsolete.
9977 * config/h8500/h8500.mt: Ditto.
9978 * config/h8500/tm-h8500.h: Ditto.
9979 * NEWS: Mention that h8500 is obsolete.
9981 2003-02-04 David Carlton <carlton@math.stanford.edu>
9983 * objfiles.c (allocate_objfile): Always set name. Add comment at
9985 * jv-lang.c (get_dynamics_objfile): Add comment.
9987 2003-02-04 David Carlton <carlton@math.stanford.edu>
9989 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9990 * printcmd.c (build_address_symbolic): Replace uses of
9991 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9992 SYMBOL_NAME, and asm_demangle.
9995 2003-02-04 David Carlton <carlton@math.stanford.edu>
9997 * linespec.c (decode_compound): Extract code into
9999 (lookup_prefix_sym): New function.
10001 2003-02-04 David Carlton <carlton@math.stanford.edu>
10003 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10004 FLOAT_COERCION_BADNESS.
10005 * gdbtypes.c (rank_one_type): Replace all uses of
10006 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10008 2003-02-04 Jim Blandy <jimb@redhat.com>
10010 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10011 section, let dwarf_macinfo_section point to it, not
10014 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10016 Pointed out by Anton Blanchard <anton@samba.org>.
10017 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10018 (ppc_linux_at_sigtramp_return_path): Use it.
10020 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10022 * defs.h (streq): Add prototype.
10023 * utils.c (streq): New function.
10025 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10026 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10027 * mdebugread.c (new_symbol): Likewise.
10028 * stabsread.c (define_symbol): Likewise.
10029 * coffread.c (process_coff_symbol): Likewise.
10030 * dwarfread.c (new_symbol): Likewise.
10032 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10033 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10035 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10036 SYMBOL_INIT_DEMANGLED_NAME.
10037 * objfiles.c: Include "hashtab.h".
10038 (allocate_objfile): Call htab_set_functions_ex for the
10039 demangled_names_hash.
10040 (free_objfile): Call htab_delete for the demangled_names_hash.
10041 * objfiles.h (struct htab): Add declaration.
10042 (struct objfile): Add demangled_names_hash.
10043 * symfile.c: Include "hashtab.h".
10044 (reread_symbols): Call htab_delete for the demangled_names_hash.
10045 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10046 SYMBOL_NAME in the bcache.
10047 * symtab.c: Include "hashtab.h". Update comments.
10048 (create_demangled_names_hash, symbol_set_names): New functions.
10049 (symbol_find_demangled_name): New function, broken out from
10050 symbol_init_demangled_names.
10051 (symbol_init_demangled_names): Use it.
10052 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10053 (SYMBOL_SET_NAMES): New macro.
10054 (symbol_set_names): Add prototype.
10056 2003-02-03 Jim Blandy <jimb@redhat.com>
10058 Use a single, consistent representation for an empty minimal
10059 symbol table in an objfile.
10060 * objfiles.c (terminate_minimal_symbol_table): New function.
10061 (allocate_objfile): Call it.
10062 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10063 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10065 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10066 objfile has minimal symbols, compare minimal_symbol_count to zero,
10067 instead of comparing msymbols with NULL.
10068 * objfiles.c (have_minimal_symbols): Same.
10069 * solib-sunos.c (solib_add_common_symbols): Call
10070 terminate_minimal_symbol_table.
10071 * symfile.c (reread_symbols): Same.
10073 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10075 * s390-tdep.c (s390_address_class_type_flags)
10076 (s390_address_class_type_flags_to_name)
10077 (s390_address_class_name_to_type_flags): New functions.
10078 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10079 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10081 2003-02-03 Michael Snyder <msnyder@redhat.com>
10083 * arm-tdep.c: Fix spell-o in comment.
10085 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10087 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10088 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10089 error messages to contain BFD filename.
10091 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10093 Fix PR gdb/742 gdb/743 gdb/877
10094 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10095 (do_mixed_source_and_assembly): Use
10096 make_cleanup_ui_out_tuple_begin_end and
10097 make_cleanup_ui_out_tuple_begin_end.
10098 (do_mixed_source_and_assembly): Ditto.
10099 * thread.c (do_captured_list_thread_ids): Ditto.
10100 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10101 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10102 ui_out_tuple_end): Delete prototypes.
10103 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10104 ui_out_list_end, ui_out_tuple_end): Delete.
10106 From Kevin Buettner <kevinb@redhat.com>:
10107 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10108 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10109 (do_cleanup_table_end): New functions.
10110 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10111 Use cleanups to invoke_ui_out_tuple_end().
10112 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10113 * cli/cli-setshow.c (cmd_show_list): Use
10114 make_cleanup_ui_out_tuple_begin_end.
10116 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10118 * frame.c (frame_unwind_register): New function.
10119 (frame_unwind_unsigned_register): Use.
10120 (frame_unwind_signed_register): Use.
10121 (frame_read_register): New function.
10122 * frame.h (frame_unwind_register): Declare.
10123 (frame_read_register): Declare.
10125 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10126 and frame_unwind_register instead of read_memory, write_register
10127 and deprecated_write_register_bytes.
10129 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10131 * frame.h: Note that namelen can be negative.
10132 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10135 * NEWS: Mention that the d10v's `regs' command is deprecated.
10136 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10137 (d10v_print_registers_info): New function.
10138 (show_regs): Call d10v_print_registers_info.
10139 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10141 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10143 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10144 lost in the previous patch.
10146 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10148 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10149 * stack.c (print_frame_info_base): Output complete FRAME tuple
10150 for synthesized frames.
10152 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10154 * mips-nat.c (zerobuf): Delete.
10155 (fetch_inferior_registers): Alloc local zerobuf.
10156 (fetch_core_registers): Alloc local zerobuf.
10157 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10158 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10159 * thread-db.c (thread_db_store_registers): Ditto.
10160 * sh-tdep.c (sh_do_register): Ditto.
10161 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10162 * remote-sim.c (gdbsim_store_register): Ditto.
10163 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10164 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10165 * monitor.c (monitor_supply_register): Ditto.
10166 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10167 * mips-nat.c (fetch_inferior_registers): Ditto.
10168 * m68klinux-nat.c (fetch_register): Ditto.
10169 * lynx-nat.c (fetch_inferior_registers): Ditto.
10170 (fetch_inferior_registers): Ditto.
10171 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10172 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10173 (hpux_thread_store_registers): Ditto.
10174 * hppah-nat.c (fetch_register): Ditto.
10175 * hppab-nat.c (fetch_register): Ditto.
10176 * hppa-tdep.c (pa_register_look_aside): Ditto.
10177 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10178 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10180 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10182 * gdbarch.sh: Explictly specify all method levels. When a
10183 variable with an empty level, provide a non-multi-arch default.
10184 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10185 * gdbarch.h: Re-generate.
10186 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10187 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10189 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10191 * defs.h (host_pointer_to_address): Delete declaration.
10192 (address_to_host_pointer): Delete declaration.
10193 * utils.c (host_pointer_to_address): Delete function.
10194 (address_to_host_pointer): Delete function.
10195 * procfs.c (procfs_address_to_host_pointer): New function.
10196 * procfs.c (proc_set_watchpoint): Use.
10197 (procfs_can_use_hw_breakpoint): Update comments.
10198 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10199 (som_solib_add): Use.
10200 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10201 * hppa-tdep.c (unwind_command): Use.
10203 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10205 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10208 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10209 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10210 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10211 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10212 (define_symbol): Update.
10213 * symfile.c (generic_load): Remove references to nindy.
10214 * symtab.c: Remove references to nindy.
10216 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10218 * infcmd.c (print_float_info): Delete code conditional on
10220 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10221 * config/m68k/nm-apollo68b.h: Ditto.
10222 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10223 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10224 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10226 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10228 * config/i386/tm-i386os9k.h: Removed.
10230 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10231 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10232 they're identical to i[3456]86-*-sysv* now.
10233 * config/i386/i386v32.mh: Removed.
10234 * config/i386/xm-i386v32.h: Removed.
10235 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10237 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10239 * config/i386/i386dgux.mh: Removed.
10240 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10242 * configure.in: Fix typo.
10243 * configure: Regenerated.
10245 2003-01-31 David Carlton <carlton@math.stanford.edu>
10247 * dwarf2read.c (dwarf2_locate_sections): Set
10248 dwarf_ranges_section.
10250 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10252 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10253 * utils.c: Update comments documenting legitimate uses of PTR.
10255 * utils.c: Re-indent.
10257 * config/djgpp/fnchange.lst: Delete nindy files.
10258 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10259 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10260 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10261 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10262 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10263 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10264 * Makefile.in (init.c): Remove nindy references.
10265 (saber_gdb): Delete rule.
10266 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10267 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10269 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10270 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10271 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10272 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10273 nindy-share/stop.h.
10274 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10275 * saber.suppress: Delete file.
10277 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10279 * dbxread.c (stabs_data): New static variable.
10280 (fill_symbuf): Support an in-memory buffer for stabs data.
10281 (stabs_seek): New function.
10282 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10283 (read_ofile_symtab): Use stabs_seek.
10284 (elfstab_build_psymtabs): Take an asection* instead of
10285 an offset and size. Relocate the stabs data if necessary.
10286 Save the section* for dbx_psymtab_to_symtab.
10287 * dwarf2read.c: Add section variables for each debug section.
10288 (dwarf2_locate_sections): Fill them in.
10289 (dwarf2_read_section): Take an asection* argument.
10290 Relocate the section contents if necessary.
10291 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10292 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10293 it to dwarf2_read_section.
10294 (dwarf2_build_frame_info): Update callers.
10295 * elfread.c (elf_symfile_read): Update call to
10296 elfstab_build_psymtabs.
10297 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10298 (DBX_STAB_SECTION): New macro.
10299 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10300 * symfile.c (symfile_dummy_outputs): New function.
10301 (symfile_relocate_debug_section): New function.
10302 * symfile.h (symfile_relocate_debug_section): Add prototype.
10304 2003-01-31 Richard Henderson <rth@redhat.com>
10306 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10307 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10308 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10309 * alpha-tdep.c (alpha_register_name): Add "unique".
10310 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10311 (ALPHA_UNIQUE_REGNUM): New.
10312 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10314 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10316 * README: Remove reference to Ericsson 1800 monitor.
10317 * Makefile.in (remote-es.o): Delete rule.
10318 (ALLDEPFILES): Delete remote-es.c.
10319 * remote-es.c: Delete file.
10320 * config/m68k/es1800.mt: Delete file.
10321 * config/djgpp/fnchange.lst: Update.
10322 * configure.tgt: Delete m68*-ericsson-* target.
10324 2003-01-31 Adam Fedor <fedor@gnu.org>
10326 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10327 Remove duplicate/shadowing variable of same name.
10329 2003-01-30 Jim Blandy <jimb@redhat.com>
10331 * symfile.c (find_separate_debug_file): Assert that the objfile's
10332 directory name we compute ends with a slash, and then assume that
10333 that's so everywhere we use it.
10335 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10337 * valops.c (value_assign): Flush frame cache after stores to memory
10340 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10342 * Makefile.in (mon960-rom.o): Delete rule.
10343 * mon960-rom.c: Delete file.
10345 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10347 * d10v-tdep.c: Include "frame-unwind.h".
10348 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10350 (next_addr, uses_frame): Delete.
10351 (struct d10v_unwind_cache): Define.
10352 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10353 Use info instead of next_addr and uses_frame globals.
10354 (d10v_frame_init_saved_regs): Delete function.
10355 (d10v_init_extra_frame_info): Delete function.
10356 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10357 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10358 init_frame_pc or frame_saved_pc.
10359 (d10v_pop_frame): Delete function.
10360 (do_d10v_pop_frame): Delete function.
10361 (d10v_frame_chain): Delete function.
10362 (d10v_frame_chain_valid): Delete function.
10363 (d10v_frame_pc_unwind): New function.
10364 (d10v_frame_id_unwind): New function.
10365 (saved_regs_unwinder): New function.
10366 (d10v_frame_register_unwind): New function.
10367 (d10v_frame_pop): New function.
10368 (d10v_frame_unwind): New variable.
10369 (d10v_frame_p): New function.
10370 (d10v_frame_saved_pc): Delete function.
10371 * Makefile.in (d10v-tdep.o): Update dependencies.
10373 2003-01-30 J. Brobecker <brobecker@gnat.com>
10375 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10376 causing some regressions due to a change in the default value
10379 2003-01-29 Richard Henderson <rth@redhat.com>
10380 Elena Zannoni <ezannoni@redhat.com>
10381 Daniel Jacobowitz <drow@mvista.com>
10384 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10386 (RANGES_SECTION): New.
10387 (dwarf_ranges_buffer): New variable.
10388 (struct comp_unit_head): Add member "die".
10389 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10390 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10391 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10392 (dwarf2_locate_sections): Likewise.
10393 (dwarf2_build_psymtabs): Read .debug_ranges.
10394 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10395 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10396 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10397 Look for DW_AT_ranges and return the bounding box.
10399 2003-01-29 Brian Ford <ford@vss.fsi.com>
10401 * win32-nat.c (cygwin_pid): Removed as unused.
10402 (child_attach): Try fall back to Cygwin pid.
10404 2003-01-29 Jim Blandy <jimb@redhat.com>
10406 * objfiles.h (struct objfile): Doc fix.
10408 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10410 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10411 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10412 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10413 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10414 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10415 (FRAME_SAVED_PC): Change to a function with predicate.
10416 * gdbarch.h, gdbarch.c: Re-generate.
10418 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10420 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10422 * complaints.c (complain): Delete function.
10423 * complaints.h (struct deprecated_complaint): Delete definition.
10424 (complain): Delete declaration.
10426 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10428 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10431 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10433 * sentinel-frame.h, sentinel-frame.c: New files.
10434 * Makefile.in (frame.o): Update dependencies.
10435 (SFILES): Add sentinel-frame.c.
10436 (sentinel_frame_h): Define.
10437 (COMMON_OBS): Add sentinel-frame.o.
10438 (sentinel-frame.o): Specify dependencies.
10439 * frame.c: Include "sentinel-frame.h".
10440 (frame_register_unwind): Rewrite assuming that there is always a a
10442 (frame_register, generic_unwind_get_saved_register): Ditto.
10443 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10444 (create_sentinel_frame, unwind_to_current_frame): New functions.
10445 (get_current_frame): Rewrite using create_sentinel_frame and
10446 unwind_to_current_frame. When possible, always create a frame.
10447 (create_new_frame): Set next to the sentinel frame.
10448 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10449 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10450 ID cache when necessary.
10451 (frame_saved_regs_id_unwind): Use frame_relative_level.
10452 (deprecated_generic_get_saved_register): Use frame_relative_level,
10453 get_frame_saved_regs, get_frame_pc, get_frame_base and
10455 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10458 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10460 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10462 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10464 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10465 (maintenance_set_profile_cmd): Use error () instead of warning ().
10467 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10469 * configure.in: Check that -pg works if using --enable-profiling.
10470 Check for monstartup and _mcleanup regardless of --enable-profiling.
10471 * maint.c: Check for monstartup and _mcleanup before using them.
10472 * config.in: Regenerated.
10473 * configure: Regenerated.
10475 2003-01-24 Nick Clifton <nickc@redhat.com>
10477 * Add sh2e support:
10479 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10481 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10482 (sh2e_show_regs): New.
10483 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10484 * config/sh/tm-sh.h: Added sh2e to comments.
10486 2003-01-23 Jim Blandy <jimb@redhat.com>
10488 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10489 symbols found)" message here; we haven't checked for a separate
10490 debug info file yet, so we don't know yet.
10491 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10492 we've looked everywhere. Also, there's no need to print a special
10493 message when we're loading the separate debug info file: the one
10494 symbol_file_add prints is fine.
10496 2003-01-23 Alexander Larsson <alexl@redhat.com>
10497 Jim Blandy <jimb@redhat.com>
10499 Add support for executables whose debug info has been separated
10500 out into a separate file, leaving only a link behind.
10501 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10502 and separate_debug_objfile_backlink.
10503 (put_objfile_before): New declaration.
10504 * symfile.c: #include "filenames.h".
10505 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10506 debug info in a separate file, read that, too. Save the addrs
10507 argument, so we can use it again to read the separated debug info;
10508 syms_from_objfile modifies the table we pass it.
10509 (reread_symbols): After re-reading an objfile, call
10510 reread_separate_symbols to refresh its separate debug info
10511 objfile, if it has one.
10512 (reread_separate_symbols, find_separate_debug_file,
10513 get_debug_link_info, separate_debug_file_exists): New functions.
10514 (debug_file_directory): New global var.
10515 (_initialize_symfile): Initialize debug_file_directory, and
10516 provide the new `set debug-file-directory' command to let the user
10518 * objfiles.c (free_objfile): If this objfile has its debug info in
10519 a separate objfile, free that one too. If this is itself a
10520 separate debug info objfile, clear our parent's backlink.
10521 (put_objfile_before): New function.
10522 * utils.c (gnu_debuglink_crc32): New function.
10523 * defs.h (gnu_debuglink_crc32): New declaration.
10524 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10525 * configure.in: Handle --with-separate-debug-dir config option.
10526 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10527 * acconfig.h (DEBUGDIR): New macro.
10528 * configure, aclocal.m4, config.in: Regenerated.
10530 2003-01-22 Jim Blandy <jimb@redhat.com>
10532 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10533 like the old symbol_file_add, but taking new arguments: you can
10534 now pass in either a `struct section_addr_info' list to say where
10535 each section is loaded, or a `struct section_offsets' table. Pass
10536 these new arguments through to syms_from_objfile as appropriate.
10537 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10538 with the appropriate quiescent values for the new arguments.
10540 * symfile.c: #include "gdb_assert.h".
10541 (syms_from_objfile): Add the ability to pass in a section offset
10542 table directly, as an alternative to the section_addr_info table.
10543 Document arguments better.
10544 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10545 * symfile.h (syms_from_objfile): Update declaration.
10546 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10548 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10550 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10552 Original patch by Tom Tromey <tromey@cygnus.com> and
10553 Jason Molenda <jmolenda@apple.com>.
10554 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10555 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10556 * NEWS: Mention profiling.
10557 * configure.in (--enable-gdbtk): Fix typo.
10558 (--enable-profiling): New. Set PROFILE_CFLAGS.
10559 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10561 (profiling_state): New variable.
10562 (mcleanup_wrapper): New function.
10563 (_initialize_maint): Remove NOTYET, fix call to
10564 add_setshow_boolean_cmd for "maint set profile".
10565 * configure: Regenerated.
10567 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10569 * Makefile.in (install-gdbtk): Install PNG images too.
10571 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10573 * exec.c (text_start): Delete global variable.
10574 (exec_file_attach): Make text_start local to the function.
10575 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10576 * valops.c (hand_function_call): Delete code that handles
10577 BEFORE_TEXT_END and AFTER_TEXT_END.
10578 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10579 of CALL_DUMMY_LOCATION.
10580 * gdbarch.c: Regenerate.
10581 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10582 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10583 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10584 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10585 (text_end): Delete extern declaration.
10587 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10589 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10590 * blockframe.c (backtrace_below_main): Move to "frame.c".
10591 (frame_chain_valid): Delete check for backtrace_below_main.
10592 (_initialize_blockframe): Delete initialization, move ``set
10593 backtrace-below-main'' command to "frame.c".
10594 (do_flush_frames_sfunc): Delete function.
10595 * frame.c: Include "command.h" and "gdbcmd.h".
10596 (frame_type_from_pc): New function.
10597 (create_new_frame): Use frame_type_from_pc.
10598 (legacy_get_prev_frame): New function.
10599 (get_prev_frame): Rewrite. When an old style frame, call
10600 legacy_get_prev_frame. Otherwize, unwind the PC first.
10601 (_initialize_frame): Add ``set backtrace-below-main'' command.
10602 * Makefile.in (frame.o): Update dependencies.
10604 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10606 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10607 DEPRECATED_REGISTERS_INFO.
10609 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10611 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10612 Maintainers'. Update `Various Maintainers'.
10614 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10616 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10617 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10618 Suppress actual parameters when `-'.
10619 * gdbarch.h, gdbarch.c: Regenerate.
10621 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10623 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10624 code handling dummy frames.
10626 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10628 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10629 (struct frame_unwind): Add field pop.
10630 * frame.h (frame_pop): Declare.
10631 * frame.c (frame_saved_regs_pop): New function.
10632 (trad_frame_unwinder): Add frame_saved_regs_pop.
10633 (frame_pop): New function.
10634 * dummy-frame.c (dummy_frame_pop): New function.
10635 (discard_innermost_dummy): New function.
10636 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10637 (dummy_frame_unwind): Add dummy_frame_pop.
10638 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10639 * valops.c (hand_function_call): Ditto.
10640 * stack.c (return_command): Ditto.
10642 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10644 * cris-tdep.c: Fix function declaration indentation.
10645 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10646 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10647 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10648 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10649 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10650 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10652 2003-01-18 Michael Chastain <mec@shout.net>
10654 * README (Unpacking and Installation -- quick overview):
10655 Warn against ".../gdb-5.3/gdb/configure".
10657 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10659 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10660 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10661 (struct frame_unwind): Declare opaque.
10662 (dummy_frame_p): Declare function.
10663 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10664 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10665 * dummy-frame.c: Include "frame-unwind.h".
10666 (dummy_frame_p): New function.
10667 (dummy_frame_unwind): New variable.
10668 * frame.c: Include "frame-unwind.h".
10669 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10670 to use the new unwind field.
10671 (set_unwind_by_pc): Delete function.
10672 (create_new_frame, get_prev_frame): Set unwind field using
10673 frame_unwind_find_by_pc.
10674 (trad_frame_unwind, trad_frame_unwinder): New variables.
10675 * frame.h (trad_frame_unwind): Declare variable.
10676 (frame_id_unwind_ftype): Delete declaration.
10677 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10678 (struct frame_unwind): Declare opaque.
10679 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10680 register_unwind with a single unwind pointer.
10681 * frame-unwind.h, frame-unwind.c: New files.
10682 * Makefile.in (SFILES): Add frame-unwind.c.
10683 (frame_unwind_h): Define.
10684 (COMMON_OBS): Add frame-unwind.o.
10685 (frame-unwind.o): Specify dependencies.
10686 (frame.o, dummy-frame.o): Update dependencies.
10688 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10690 * ada-valprint.c: Eliminate PTR.
10691 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10692 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10693 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10694 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10695 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10696 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10697 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10699 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10701 * main.c (captured_main): Don't use PTR.
10702 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10703 * gdbtypes.c (lookup_primitive_typename): Ditto.
10704 (lookup_struct_elt_type): Ditto.
10705 * f-valprint.c (info_common_command): Ditto.
10706 (list_all_visible_commons): Ditto.
10707 * jv-typeprint.c (java_type_print_base): Ditto.
10709 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10710 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10711 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10712 i386-interix-nat.c and i386-interix-tdep.c. Rename
10713 m68klinux-nat.c and m68klinux-tdep.c. Rename
10714 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10715 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10716 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10717 * main.c (captured_main): Use xfree, not free.
10719 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10721 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10722 ID back using a parameter.
10723 * frame.c (frame_id_unwind): Update call.
10724 (frame_saved_regs_id_unwind): Update.
10725 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10726 * dummy-frame.h (struct frame_id): Add opaque declaration.
10727 (dummy_frame_id_unwind): Update declaration.
10729 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10731 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10733 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10735 * MAINTAINERS (Stephen P. Smith): Updated email address.
10737 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10740 * breakpoint.c (until_break_command): Add new argument. Use it to
10741 decide whether to stop only at the current frame or not.
10742 * breakpoint.h (until_break_command): Update prototype.
10743 * infcmd.c (until_command): Add new argument to until_break_command
10745 (advance_command): New function.
10746 (_initialize_infcmd): Update help string for 'until' command.
10747 Add new 'advance' command.
10749 2003-01-14 David Carlton <carlton@math.stanford.edu>
10751 * linespec.c (decode_line_1): Normalize comments.
10752 (set_flags): Ditto.
10753 (locate_first_half): Ditto.
10754 (decode_compound): Ditto.
10755 (symtab_from_filename): Ditto.
10756 (decode_all_digits): Ditto.
10757 (decode_dollar): Ditto.
10758 (find_methods): Ditto.
10759 (find_toplevel_char): Ditto.
10761 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10763 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10764 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10765 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10766 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10767 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10768 * language.c, language.h, m32r-tdep.c: Update copyright.
10769 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10770 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10771 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10772 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10773 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10774 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10776 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10778 * stabsread.h (process_later, resolve_cfront_continuation):
10780 Update copyright years.
10781 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10782 Update copyright year.
10783 * dbxread.c(struct cont_elem): Obsolete.
10784 (process_later, process_now): Obsolete functions.
10785 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10786 Update copyright year.
10787 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10788 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10789 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10790 (parse_partial_symbols): Obsolete cfront support.
10792 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10794 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10795 read_cfront_baseclasses, read_cfront_member_functions,
10796 resolve_cfront_continuation,read_cfront_static_fields,
10797 copy_cfront_struct_fields): Obsolete functions.
10798 (define_symbol, read_one_struct_field): Obsolete cfront support.
10799 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10800 Update Copyright year.
10802 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10804 * stack.c (print_frame_info, print_stack_frame_base_stub,
10805 print_stack_frame_base, show_and_print_stack_frame_stub,
10806 show_and_print_stack_frame, print_only_stack_frame_stub,
10807 print_only_stack_frame): Delete functions.
10808 (print_stack_frame_stub): Call print_frame_info instead of
10809 print_frame_info_base.
10810 (print_frame_info_base): Rename to print_frame_info.
10811 (backtrace_command_1): Call print_frame_info, instead of
10812 print_frame_info_base.
10813 (current_frame_command): Call print_stack_frame, instead of
10814 print_only_stack_frame.
10815 (frame_command): Call print_stack_frame, instead of
10816 show_and_print_stack_frame.
10817 (up_command): Ditto.
10818 (down_command): Ditto.
10819 * frame.h (print_only_stack_frame): Delete prototype.
10820 * infrun.c (normal_stop): Call print_stack_frame, instead of
10821 show_and_print_stack_frame.
10822 * thread.c (info_threads_command): Call print_stack_frame, instead
10823 of print_only_stack_frame.
10825 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10827 * README (Graphical interface to GDB): Update URL. Point at
10830 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10833 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10835 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10838 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10840 * thread-db.c (attach_thread): Prototype.
10841 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10842 thread information (ti), and valid flags (th_valid, ti_valid).
10843 (attach_thread): Move target_pid_to_str call to after the thread
10844 is added to GDB's list. Initialize the cache.
10845 (thread_get_info_callback, thread_db_map_id2thr)
10846 (thread_db_get_info): New functions.
10847 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10848 (thread_db_store_registers, thread_db_thread_alive)
10849 (thread_db_get_thread_local_address): Use them.
10850 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10851 of calling error() for threads in unknown state.
10853 (clear_lwpid_callback): New function.
10854 (thread_db_resume): Use it to clear the cache.
10856 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10858 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10859 (resume_callback): Remove dead code.
10861 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10863 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10865 * gdbarch.h, gdbarch.c: Regenerate.
10866 * stack.c (frame_info): Only initialize the saved registers when
10867 FRAME_INIT_SAVED_REGS_P.
10868 * frame.c (frame_saved_regs_register_unwind): Assert
10869 FRAME_INIT_SAVED_REGS_P.
10870 (deprecated_generic_get_saved_register): Ditto.
10872 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10874 * source.c (openp): Squelch warning about "filename".
10876 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10878 * source.c (openp): If the file does not exist don't necessarily
10881 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10884 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10885 (integer_types_same_name_p): New function.
10886 (rank_one_type): Use it.
10887 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10889 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10891 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10893 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10894 * configure.in: Add --with-sysroot.
10895 * configure: Regenerated.
10896 * main.c (gdb_sysroot): New variable.
10897 (captured_main): Initialize gdb_sysroot.
10898 * defs.h (gdb_sysroot): New extern declaration.
10899 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10901 2003-01-12 Michael Chastain <mec@shout.net>
10903 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10905 2003-01-12 Michael Chastain <mec@shout.net>
10907 * top.c (print_gdb_version): Bump copyright year to 2003.
10909 2003-01-12 David Carlton <carlton@bactrian.org>
10911 * linespec.c (symtab_from_filename): Rename variable 's' to
10914 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10916 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10918 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10920 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10922 * d10v-tdep.c: Include "gdb_assert.h".
10923 (d10v_store_return_value): Rewrite to match current interface.
10924 (d10v_extract_struct_value_address): Ditto.
10925 (d10v_extract_return_value): Ditto.
10926 (d10v_gdbarch_init): Set store_restore_value,
10927 extract_struct_value_address and extract_return_value.
10929 2003-01-12 J. Brobecker <brobecker@gnat.com>
10931 * hpread.c (set_namestring): New procedure replacing the
10932 SET_NAMESTRING macro.
10933 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10934 by calls to set_namestring.
10936 2003-01-11 J. Brobecker <brobecker@gnat.com>
10938 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10939 a compilation warning.
10940 (hpread_process_one_debug_symbol): Likewise.
10942 2003-01-10 David Carlton <carlton@math.stanford.edu>
10944 * linespec.c (decode_line_1): Rename variable 's' to
10946 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10947 (decode_dollar): Ditto.
10948 (decode_variable): Ditto.
10949 (symbol_found): Ditto.
10951 2003-01-09 Michael Chastain <mec@shout.net>
10953 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10955 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10957 * win32-nat.c (set_process_privilege): New function.
10958 (child_attach): Call set_process_privilege() to enable the
10959 SE_DEBUG_NAME user privilege if available in process token.
10961 2003-01-10 J. Brobecker <brobecker@gnat.com>
10963 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10964 compilation error in the previous revision.
10966 2003-01-09 David Carlton <carlton@math.stanford.edu>
10968 * linespec.c: Update copyright.
10970 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10972 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10973 than inferior_ptid.
10974 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10976 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10978 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10980 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10981 (frame_saved_regs_zalloc): Update.
10982 (frame_saved_regs_register_unwind): Update.
10983 (create_new_frame): Update.
10984 (get_prev_frame): Update.
10985 (frame_extra_info_zalloc): Update.
10986 (deprecated_get_frame_saved_regs): Update.
10987 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10988 * cris-tdep.c: Update comment.
10990 * somsolib.h: Fix function indentation.
10991 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10992 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10993 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10994 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10995 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10997 * infrun.c (follow_fork): Use ISO C definition.
10998 * expprint.c (print_subexp): Use xfree instead of free.
10999 * charset.c: Include "gdb_string.h" instead of <string.h>.
11000 (register_iconv_charsets): Use ISO C definition.
11001 (host_charset, target_charset): Ditto.
11002 * Makefile.in (charset.o): Update dependencies.
11003 (mi-cmd-env.o): Update dependencies.
11005 2003-01-08 Andrew Cagney <cagney@redhat.com>
11007 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11010 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11012 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11013 build directories. Save edited gdb output in Mbuild.log. If a
11014 build fails, remove any final GDB executable.
11016 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11018 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11019 replacing hex constants with function names and stripping leading
11020 file name directory prefixes.
11022 2003-01-08 Andrew Cagney <cagney@redhat.com>
11024 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11027 2003-01-08 David Carlton <carlton@math.stanford.edu>
11029 * linespec.c (decode_line_1): Move code into decode_variable.
11030 (decode_variable): New function.
11032 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11034 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11036 2003-01-08 Andrew Cagney <cagney@redhat.com>
11038 * cris-tdep.c (cris_frame_init_saved_regs): Use
11039 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11041 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11042 (sh64_nofp_frame_init_saved_regs): Ditto.
11043 (sh_fp_frame_init_saved_regs): Ditto.
11044 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11045 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11046 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11047 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11049 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11051 * minsyms.c (lookup_minimal_symbol): Update comment.
11052 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11053 (lookup_minimal_symbol_solib_trampoline): Likewise.
11055 2003-01-08 Andrew Cagney <cagney@redhat.com>
11057 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11058 frame_relative_level.
11060 * alpha-tdep.c: Use get_frame_extra_info.
11061 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11062 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11063 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11064 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11066 * alpha-tdep.c: Use get_next_frame.
11067 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11068 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11069 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11070 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11071 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11072 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11073 * xstormy16-tdep.c: Ditto.
11075 2003-01-07 Andrew Cagney <cagney@redhat.com>
11077 * alpha-tdep.c: Use get_frame_base.
11078 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11079 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11080 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11081 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11082 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11083 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11084 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11085 * config/sparc/tm-sparc.h: Ditto.
11087 2003-01-07 Andrew Cagney <cagney@redhat.com>
11089 * frame.c (deprecated_get_frame_context): New function.
11090 (deprecated_set_frame_context): New function.
11091 * frame.h (deprecated_get_frame_context): Declare.
11092 (deprecated_set_frame_context): Declare.
11093 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11094 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11096 2003-01-07 Andrew Cagney <cagney@redhat.com>
11098 * frame.c (deprecated_set_frame_next_hack): New function.
11099 (deprecated_set_frame_prev_hack): New function.
11100 * frame.h (deprecated_set_frame_next_hack): Declare.
11101 (deprecated_set_frame_prev_hack): Declare.
11102 * mcore-tdep.c (analyze_dummy_frame): Use
11103 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11104 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11106 2003-01-07 David Carlton <carlton@math.stanford.edu>
11108 * linespec.c (decode_line_1): Move code into decode_dollar.
11109 (decode_dollar): New function.
11111 2003-01-07 Andrew Cagney <cagney@redhat.com>
11113 * arm-tdep.c (arm_init_extra_frame_info): Use
11114 deprecated_update_frame_base_hack.
11115 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11116 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11117 (fix_frame_pointer): Ditto.
11118 (mn10300_analyze_prologue): Ditto.
11120 2003-01-07 Andrew Cagney <cagney@redhat.com>
11122 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11123 extra_info using frame_extra_info_zalloc.
11124 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11125 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11126 (sh64_init_extra_frame_info): Ditto.
11127 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11128 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11129 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11130 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11131 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11132 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11133 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11134 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11135 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11136 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11137 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11138 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11140 * mn10300-tdep.c (analyze_dummy_frame): Use
11141 deprecated_set_frame_extra_info_hack.
11142 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11144 2003-01-07 J. Brobecker <brobecker@gnat.com>
11146 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11147 class is not scText. These do not define "real" procedures.
11148 (parse_partial_symbols): Likewise.
11150 2003-01-06 Michael Snyder <msnyder@redhat.com>
11152 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11154 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11156 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11157 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11158 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11159 deprecated_frame_xmalloc_with_cleanup.
11160 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11161 deprecated_frame_xmalloc.
11162 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11163 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11165 2003-01-06 Andrew Cagney <cagney@redhat.com>
11167 * x86-64-linux-tdep.c: Include "osabi.h".
11168 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11170 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11172 2003-01-06 Andrew Cagney <cagney@redhat.com>
11174 * MAINTAINERS (Target Instruction Set Architectures): Update
11175 arm-elf. Can be built with -Werror, has been multiarched.
11177 * value.h (unpack_long): Make buffer parameter constant.
11178 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11179 * scm-lang.h (scm_parse): Ditto.
11180 * defs.h (extract_typed_address, extract_address): Ditto.
11181 (extract_long_unsigned_integer): Ditto.
11182 * inferior.h (unsigned_pointer_to_address): Ditto.
11183 (signed_pointer_to_address): Ditto.
11184 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11185 * gdbarch.h, gdbarch.c: Regenerate.
11186 * findvar.c (extract_long_unsigned_integer): Update.
11187 (extract_address): Update.
11188 (extract_typed_address): Update.
11189 (unsigned_pointer_to_address): Update.
11190 * values.c (unpack_long): Update.
11191 (unpack_double): Update.
11192 (unpack_pointer): Update.
11193 (unpack_field_as_long): Update.
11194 * d10v-tdep.c (d10v_pointer_to_address): Update.
11195 * avr-tdep.c (avr_pointer_to_address): Update.
11196 * scm-lang.c (scm_unpack): Update.
11197 * findvar.c (signed_pointer_to_address): Update.
11199 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11201 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11202 since it is in i386-tdep.c.
11204 2003-01-06 J. Brobecker <brobecker@gnat.com>
11206 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11207 failure introduced in the previous change.
11209 2003-01-05 Michael Chastain <mec@shout.net>
11211 * README: Remove references to deleted remote-*.c files:
11212 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11213 remote-nrom.c, remote-os9k.c, remote-udi.c.
11215 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11217 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11218 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11219 i386_get_longjmp_target.
11221 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11223 * arm-tdep.c (prologue_cache): Change to a pointer.
11224 (_initialize_arm_tdep): Allocate prologue_cache.
11225 (check_prologue_cache): Update.
11226 (save_prologue_cache): Update.
11227 (arm_gdbarch_init): Update.
11229 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11231 * stabsread.c (update_method_name_from_physname): Call complaint()
11234 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11236 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11237 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11238 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11240 * blockframe.c: Include "gdbcmd.h" and "command.h".
11241 (backtrace_below_main): New variable.
11242 (file_frame_chain_valid, func_frame_chain_valid)
11243 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11244 (generic_func_frame_chain_valid): Remove functions.
11245 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11246 (_initialize_blockframe): New function.
11247 * Makefile.in (blockframe.o): Update dependencies.
11248 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11249 comment. Call frame_chain_valid ().
11250 * frame.h: Remove old prototypes. Add prototype for
11251 frame_chain_valid and update comments to match.
11252 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11253 Remove old comment.
11254 * gdbarch.h: Regenerated.
11255 * gdbarch.c: Regenerated.
11257 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11258 set_gdbarch_frame_chain_valid.
11259 * avr-tdep.c (avr_gdbarch_init): Likewise.
11260 * cris-tdep.c (cris_gdbarch_init): Likewise.
11261 * frv-tdep.c (frv_gdbarch_init): Likewise.
11262 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11263 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11264 (i386_nw_init_abi): Likewise.
11265 (i386_gdbarch_init): Likewise.
11266 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11267 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11268 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11269 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11270 * mips-tdep.c (mips_gdbarch_init): Likewise.
11271 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11272 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11273 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11274 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11275 * s390-tdep.c (s390_gdbarch_init): Likewise.
11276 * sh-tdep.c (sh_gdbarch_init): Likewise.
11277 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11278 * v850-tdep.c (v850_gdbarch_init): Likewise.
11279 * vax-tdep.c (vax_gdbarch_init): Likewise.
11280 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11282 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11283 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11284 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11285 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11286 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11287 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11288 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11289 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11291 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11293 * Makefile.in (acconfig_h): Remove incorrect macro.
11294 (config_h): Define.
11295 (osabi.o): Update dependencies.
11296 * configure.tgt: Set gdb_osabi based on target triplet.
11297 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11298 * configure: Regenerated.
11299 * config.in: Regenerated.
11300 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11301 (GDB_OSABI_DEFAULT): Define if not already defined.
11302 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11303 (set_osabi_string): New variables.
11304 (gdbarch_register_osabi): Add new OS ABI to
11305 gdb_osabi_available_names.
11306 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11307 (set_osabi, show_osabi): New functions.
11308 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11310 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11312 * arch-utils.c (gdbarch_info_init): Set osabi to
11313 GDB_OSABI_UNINITIALIZED.
11314 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11315 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11316 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11317 * gdbarch.c: Regenerated.
11318 * gdbarch.h: Regenerated.
11319 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11321 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11322 * osabi.h (enum gdb_osabi): Move to defs.h.
11323 (gdbarch_init_osabi): Update prototype.
11324 * defs.h (enum gdb_osabi): Moved here.
11325 * Makefile.in: Update dependencies.
11327 * alpha-tdep.h: Don't include "osabi.h".
11328 (struct gdbarch_tdep): Remove osabi member.
11329 * alpha-tdep.c: Include "osabi.h".
11330 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11331 iterate over arches. Update call to gdbarch_init_osabi.
11332 (alpha_dump_tdep): Don't dump osabi.
11333 * alpha-linux-tdep.c: Include "osabi.h".
11334 * alpha-osf1-tdep.c: Include "osabi.h".
11335 * alphafbsd-tdep.c: Include "osabi.h".
11336 * alphanbsd-tdep.c: Include "osabi.h".
11338 * arm-tdep.h: Don't include "osabi.h".
11339 (struct gdbarch_tdep): Remove osabi member.
11340 * arm-tdep.c: Include "osabi.h".
11341 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11342 iterate over arches. Update call to gdbarch_init_osabi.
11343 (arm_dump_tdep): Don't dump osabi.
11344 * arm-linux-tdep.c: Include "osabi.h".
11345 * armnbsd-tdep.c: Include "osabi.h".
11347 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11348 Update call to gdbarch_init_osabi.
11350 * i386-tdep.h: Don't include "osabi.h".
11351 (struct gdbarch_tdep): Remove osabi member.
11352 * i386-tdep.c: Include "osabi.h".
11353 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11354 iterate over arches. Update call to gdbarch_init_osabi.
11355 (i386_dump_tdep): Don't dump osabi.
11356 * i386-linux-tdep.c: Include "osabi.h".
11357 * i386-sol2-tdep.c: Include "osabi.h".
11358 * i386bsd-tdep.c: Include "osabi.h".
11359 * i386gnu-tdep.c: Include "osabi.h".
11360 * i386ly-tdep.c: Include "osabi.h".
11361 * i386nbsd-tdep.c: Include "osabi.h".
11362 * i386obsd-tdep.c: Include "osabi.h".
11364 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11365 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11366 check osabi when iterating over arches. Update call to
11367 gdbarch_init_osabi.
11368 (mips_dump_tdep): Don't dump osabi.
11370 * ns32k-tdep.h: Don't include "osabi.h".
11371 (struct gdbarch_tdep): Remove.
11372 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11373 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11374 allocate tdep. Update call to gdbarch_init_osabi.
11375 (ns32k_dump_tdep): Remove.
11376 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11377 * ns32knbsd-tdep.c: Include "osabi.h".
11379 * ppc-tdep.h: Don't include "osabi.h".
11380 (struct gdbarch_tdep): Remove osabi member.
11381 * rs6000-tdep.c: Include "osabi.h".
11382 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11383 osabi when iterating over arches. Update call to
11384 gdbarch_init_osabi.
11385 (rs6000_dump_tdep): Don't dump osabi.
11386 * ppc-linux-tdep.c: Include "osabi.h".
11387 * ppcnbsd-tdep.c: Include "osabi.h".
11389 * sh-tdep.h: Don't include "osabi.h".
11390 (struct gdbarch_tdep): Remove osabi member.
11391 * sh-tdep.c: Include "osabi.h".
11392 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11393 iterate over arches. Update call to gdbarch_init_osabi.
11394 (sh_dump_tdep): Don't dump osabi.
11395 * shnbsd-tdep.c: Include "osabi.h".
11397 * sparc-tdep.c: Include "osabi.h".
11398 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11399 iterate over arches. Update call to gdbarch_init_osabi.
11400 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11403 * vax-tdep.h: Don't include "osabi.h".
11404 (struct gdbarch_tdep): Remove.
11405 * vax-tdep.c: Include "osabi.h".
11406 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11407 iterate over arches. Don't allocate tdep. Update call
11408 to gdbarch_init_osabi.
11409 (vax_dump_tdep): Remove.
11410 (_initialize_vax_tdep): Update call to gdbarch_register.
11412 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11414 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11416 (breakpoint_re_set_one): Don't fetch the value for a disabled
11419 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11421 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11422 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11423 (COERCE_FLOAT_TO_DOUBLE): Remove.
11424 * gdbarch.c: Regenerate.
11425 * gdbarch.h: Regenerate.
11426 * Makefile.in: Remove value_h from gdbarch_h.
11427 * valops.c (coerce_float_to_double): New variable.
11428 (default_coerce_float_to_double): Remove.
11429 (standard_coerce_float_to_double): Remove.
11430 (value_arg_coerce): Use coerce_float_to_double.
11431 (_initialize_valops): Add "set coerce-float-to-double".
11432 * value.h (default_coerce_float_to_double): Remove prototype.
11433 (standard_coerce_float_to_double): Remove prototype.
11435 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11437 * mdebugread.c (parse_symbol): Likewise.
11438 * stabsread.c (define_symbol): Mark all functions as prototyped.
11440 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11441 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11442 set_gdbarch_coerce_float_to_double.
11443 * arm-tdep.c (arm_gdbarch_init): Likewise.
11444 * frv-tdep.c (frv_gdbarch_init): Likewise.
11445 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11446 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11447 * mips-tdep.c (mips_gdbarch_init): Likewise.
11448 (mips_coerce_float_to_double): Remove.
11449 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11450 (rs6000_coerce_float_to_double): Remove.
11451 * s390-tdep.c (s390_gdbarch_init): Likewise.
11452 * sh-tdep.c (sh_gdbarch_init): Likewise.
11453 (sh_coerce_float_to_double): Remove.
11454 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11455 (sparc_coerce_float_to_double): Remove.
11456 * v850-tdep.c (v850_gdbarch_init): Likewise.
11457 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11458 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11459 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11460 (hppa_coerce_float_to_double): Remove prototype.
11461 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11463 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11465 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11467 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11469 Suggested by Stewart Brown <sb24@avaya.com>:
11470 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11471 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11472 (c_type_print_varspec_suffix): Likewise.
11474 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11476 * configure.in: Don't set and AC_SUBST SUBDIRS.
11477 * configure: Regenerated.
11479 * configure.in: Remove code dealing with shared libraries.
11480 * Makefile.in: Remove HLDFLAGS and HLDENV.
11481 * configure: Regenerated.
11483 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11485 * frame.c (deprecated_frame_xmalloc): New function.
11486 (deprecated_set_frame_saved_regs_hack): New function.
11487 (deprecated_set_frame_extra_info_hack): New function.
11488 * frame.h (deprecated_frame_xmalloc): Declare.
11489 (deprecated_set_frame_saved_regs_hack): Declare.
11490 (deprecated_set_frame_extra_info_hack): Declare.
11492 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11494 * configure.in: Move code that provides the --enable-gdbtk option
11495 right after the code that handles the --enable-tui option, and
11496 polish it somewhat.
11497 * configure: Regenerated.
11499 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11500 AC_CHECK_FUNCS and remove the old check for pread64.
11501 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11502 * acconfig.h (_GNU_SOURCE): Add.
11503 (HAVE_PREAD64): Remove.
11504 * configure, aclocal.m4, config.in: Regenerated.
11506 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11508 * alpha-tdep.c: Use get_frame_saved_regs.
11509 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11510 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11511 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11512 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11513 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11515 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11517 * configure.in: Remove all use of the SUBDIRS variable; add
11518 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11519 code providing the --enable-multi-ice option, and move it right in
11520 front of the code that checks whether gdbserver is supported.
11522 * configure: Regenerated.
11523 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11526 2003-01-03 Andrew Cagney <cagney@redhat.com>
11528 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11529 * avr-tdep.c, cris-tdep.c: Ditto.
11530 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11531 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11533 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11535 * configure.in: Remove --enable-netrom option.
11536 * configure: Regenerated.
11538 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11540 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11541 declaration for `struct re_pattern_buffer' instead.
11542 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11544 2003-01-03 J. Brobecker <brobecker@gnat.com>
11546 * mdebugread.c (parse_symbol): Count until the stEnd matching
11547 the structure name.
11549 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11551 * configure.in: Remove --with-cpu option.
11552 subscripts. Remove evil changequotes here.
11553 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11554 * config.in, configure: Regenerated.
11556 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11557 * configure.in: Cleanup section that sources GDB and BFD configure
11558 subscripts. Remove evil changequotes here.
11559 * config.in, configure: Regenerated.
11561 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11563 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11564 frame accessor methods.
11565 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11566 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11567 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11568 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11569 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11570 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11571 * z8k-tdep.c: Ditto.
11573 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11575 * configure.in: Remove UI_OUT configuration code.
11576 * ada-lang.c: Update assuming UI_OUT is always true.
11577 * Makefile.in (UIOUT_CFLAGS): Remove.
11578 * configure: Regenerated.
11579 * TODO: Remove blurb about elimination of -DUI_OUT.
11581 * configure.in: Move code that provides the --enable-gdbcli,
11582 --enable-gdbmi options right before the code that handles the
11583 --enable-tui option. Polish a bit.
11584 * configure: Regenerated.
11586 * configure.in: Rewrite check for GNU regex and the
11587 --without-included regex option, and move it into the "Checks for
11588 library functions" section. This makes us use the system regex
11589 again by default on systems with version 2 of the GNU C library.
11590 This was apparently broken.
11591 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11592 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11593 * config.in, configure: Regenerated.
11595 * configure.in: Move code that provides the --enable-tui option
11596 before the "Checks for libraries" section. Polish the code
11597 somewhat and set need_curses to yes if we build the TUI. Rewrite
11598 code that looks for a library providing termcap functionality to
11599 match more closely what's done in the Readline library, and move
11600 it into to the "Checks for libraries" section.
11601 * configure: Regenerated.
11602 * Makefile.in (TERMCAP): Remove variable.
11603 * config/i386/go32.mh (TERMCAP): Remove variable.
11605 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11607 * MAINTAINERS: Mention gdb_mbuild.sh.
11608 * gdb_mbuild.sh: Rewrite.
11610 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11612 * configure.in: Fix typo in last change.
11613 * config.in, configure: Regenerated.
11615 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11617 * valarith.c (value_binop): Delete obsolete code and comments.
11618 * configure.host: Ditto.
11619 * buildsym.h (make_blockvector): Ditto.
11620 * buildsym.c (make_blockvector): Ditto.
11621 * defs.h (enum language): Ditto.
11622 (chill_demangle): Ditto.
11623 * elfread.c (elf_symtab_read): Ditto.
11624 * dwarfread.c (CHILL_PRODUCER): Ditto.
11625 (set_cu_language): Ditto.
11626 (handle_producer): Ditto.
11627 * expprint.c (print_subexp): Ditto.
11628 * gdbtypes.c (chill_varying_type): Ditto.
11629 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11630 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11631 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11632 (chill_varying_type): Ditto.
11633 * language.h (_LANG_chill): Ditto.
11634 * language.c (binop_result_type, integral_type): Ditto.
11635 (character_type, string_type, structured_type): Ditto.
11636 (lang_bool_type, binop_type_check): Ditto.
11637 * stabsread.h (os9k_stabs): Ditto.
11638 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11639 (define_symbol, read_type, read_struct_fields): Ditto.
11640 (read_array_type, read_enum_type, read_huge_number): Ditto.
11641 (read_range_type, start_stabs): Ditto.
11642 * symfile.c (init_filename_language_table): Ditto.
11643 (add_psymbol_with_dem_name_to_list): Ditto.
11644 * symtab.c (symbol_init_language_specific): Ditto.
11645 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11646 * symtab.h (struct general_symbol_info): Ditto.
11647 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11648 * typeprint.c (typedef_print): Ditto.
11649 * utils.c (fprintf_symbol_filtered): Ditto.
11650 * valops.c (value_cast, search_struct_field, value_slice): Delete
11652 (varying_to_slice): Delete function.
11653 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11654 (varying_to_slice): Delete declaration.
11655 * MAINTAINERS: Update.
11657 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11659 * configure.in: Reorganize "Checks for library functions section"
11660 a bit. Remove check for `btowc' and `isascii' functions.
11661 * configure: Regenerated.
11663 * acconfig.h (_MSE_INT_H): Remove.
11664 * configure.in: Create "Checks for header files" section, and move
11665 appropriate tests there. Don't check for objlist.h, wchar.h,
11666 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11667 misdetection fix. Also add "Checks for types", "Checks for
11668 compiler characteristics" and "Checks for library functions"
11670 * config.in, configure: Regenerated.
11672 * configure.in: Create "Checks for programs" section, and move
11673 appropriate tests there.
11675 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11677 * configure.in: Create "Checks for libraries" section, and move
11678 appropriate tests there. Cleanup check for wctype in libw. Use
11679 AC_SEARCH_LIBS to see whether we need libsocket.
11680 * configure: Regenerated.
11682 For older changes see ChangeLog-2002
11688 version-control: never