1 2003-09-09 Andrew Cagney <cagney@redhat.com>
3 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
4 "ppc_sysv_abi_push_arguments".
5 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
6 "ppc_sysv_abi_push_arguments".
7 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
8 instead of "push_arguments".
9 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
11 2003-09-09 Andrew Cagney <cagney@redhat.com>
13 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
14 instead of CALL_DUMMY_ADDRESS.
16 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
18 * p-lang.c: Eliminate "register".
29 2003-09-09 Nick Clifton <nickc@redhat.com>
31 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
33 2003-09-04 Andrew Cagney <cagney@redhat.com>
35 * avr-tdep.c: Include "dis-asm.h".
36 * cris-tdep.c: Include "dis-asm.h".
37 (cris_delayed_get_disassembler): Use "struct disassemble_info"
38 instead of corresponding typedef.
39 * h8300-tdep.c: Include "dis-asm.h".
40 * ia64-tdep.c: Include "dis-asm.h".
41 * i386-tdep.c: Include "dis-asm.h".
42 (i386_print_insn): Use "struct disassemble_info" instead of
43 corresponding typedef.
44 * m68k-tdep.c: Include "dis-asm.h".
45 * mcore-tdep.c: Include "dis-asm.h".
46 * mips-tdep.c: Include "dis-asm.h".
47 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
48 instead of corresponding typedef.
49 * ns32k-tdep.c: Include "dis-asm.h".
50 * s390-tdep.c: Include "dis-asm.h".
51 * sparc-tdep.c: Include "dis-asm.h".
52 * vax-tdep.c: Include "dis-asm.h".
53 * v850-tdep.c: Include "dis-asm.h".
54 * mn10300-tdep.c: Include "dis-asm.h".
55 * rs6000-tdep.c: Include "dis-asm.h".
56 * xstormy16-tdep.c: Include "dis-asm.h".
57 (_initialize_xstormy16_tdep): Delete "extern" declaration of
59 * Makefile.in (v850-tdep.o): Update dependencies.
60 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
61 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
62 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
63 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
64 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
65 (gdbarch_h): Remove $(dis_asm_h).
66 * disasm.c: Include "dis-asm.h".
67 (dis_asm_read_memory): Use "struct disassemble_info" instead of
68 corresponding typedef.
69 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
70 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
71 * gdbarch.sh: Do not include "dis-asm.h".
72 (struct disassemble_info): Declare opaque.
73 (TARGET_PRINT_INSN): Update declaration.
74 * gdbarch.h, gdbarch.c: Re-generate.
76 2003-09-08 Andrew Cagney <cagney@redhat.com>
78 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
79 CALL_DUMMY_ADDRESS, change to a predicate.
80 * gdbarch.h, gdbarch.c: Re-generate.
81 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
82 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
83 * infcall.c (call_function_by_hand): Ditto.
84 * sparc-tdep.c (sparc_push_return_address): Ditto.
85 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
86 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
87 CALL_DUMMY_ADDRESS with entry_point_address.
88 * v850-tdep.c (v850_push_return_address): Ditto.
89 * s390-tdep.c (s390_push_return_address): Ditto.
90 * rs6000-tdep.c (ppc_push_return_address): Ditto.
91 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
92 * mcore-tdep.c (mcore_push_return_address): Ditto.
93 * cris-tdep.c (cris_push_return_address): Ditto.
94 * arm-tdep.c (arm_push_return_address): Ditto.
96 2003-09-08 Andrew Cagney <cagney@redhat.com>
98 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
99 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
100 and REG_UNMODIFIED to REG_SAME_VALUE.
101 (execute_cfa_program): Update.
102 (dwarf2_frame_cache): Update. Initialize table to
103 REG_UNSPECIFIED, complain if CFI fails to specify a register's
105 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
107 2003-09-08 Andrew Cagney <cagney@redhat.com>
109 * gnu-nat.c: Remove "inline" function attribute.
110 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
112 2003-09-08 Kevin Buettner <kevinb@redhat.com>
114 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
117 2003-09-08 Kevin Buettner <kevinb@redhat.com>
119 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
120 (frame_extra_info): Rename this struct to frv_unwind_cache.
121 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
122 Add fields ``prev_sp'' and ``base''.
123 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
124 (frv_saved_pc_after_call, frv_init_extra_frame_info)
125 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
127 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
128 Revise all callers. Fill in the unwind cache argument and make
129 other adjustments to account for new frame mechanisms.
130 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
131 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
132 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
133 (frv_frame_unwind, frv_frame_base): New structs.
134 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
135 additional arguments expected by this method and adjust function
137 (frv_gdbarch_init): Remove calls to the following functions:
138 set_gdbarch_deprecated_init_frame_pc(),
139 set_gdbarch_deprecated_saved_pc_after_call(),
140 set_gdbarch_deprecated_frame_chain(),
141 set_gdbarch_deprecated_frame_saved_pc(),
142 set_gdbarch_deprecated_frame_init_saved_regs(),
143 set_gdbarch_deprecated_push_arguments(),
144 set_gdbarch_deprecated_push_return_address(),
145 set_gdbarch_deprecated_pop_frame(),
146 set_gdbarch_deprecated_call_dummy_words(),
147 set_gdbarch_deprecated_sizeof_call_dummy_words(),
148 set_gdbarch_deprecated_init_extra_frame_info(),
149 set_gdbarch_deprecated_dummy_write_sp(), and
150 set_gdbarch_deprecated_pc_in_call_dummy().
151 Add calls to the following functions:
152 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
153 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
154 frame_base_set_default().
155 * Makefile.in (frv-tdep.o): Update dependencies.
157 2003-09-09 Mark Kettenis <kettenis@gnu.org>
159 * dwarf2-frame.c (read_encoded_value): Add support for
160 DW_EH_PE_aligned encoding.
162 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
164 * infrun.c (normal_stop): Don't print a message if the inferior
167 2003-09-08 Jim Blandy <jimb@redhat.com>
169 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
170 * dbxread.c: #include "gdb_assert.h".
171 (read_dbx_symtab): If the objfile has no .data section, use the
172 section index for the .bss section instead.
174 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
176 * frame.c (deprecated_safe_get_selected_frame): New function.
177 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
178 * findvar.c (read_var_value): Call it.
180 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
182 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
183 (sh64-tdep.o): Add dependencies.
184 * configure.tgt: Add FIXME to sh-*-linux*.
185 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
186 (sh_gdbarch_init): Always set correct sh_show_regs function
187 pointer. Call sh64_gdbarch_init() if machine type is sh5.
188 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
189 * sh64-tdep.c: New file, containing all sh64 related code from
191 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
192 * config/sh/linux.mt (TDEPFILES): Ditto.
193 * config/sh/nbsd.mt (TDEPFILES): Ditto.
194 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
195 * config/sh/wince.mt (TDEPFILES): Ditto.
197 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
199 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
200 (stop_wait_callback): Handle !lp->signalled also.
201 (lin_lwp_has_pending, flush_callback): New functions.
202 (lin_lwp_wait): Call flush_callback.
203 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
204 (linux_proc_pending_signals): New function.
205 * linux-nat.h (linux_proc_pending_signals): Add prototype.
207 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
209 From Nick Kelsey <nickk@ubicom.com>:
210 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
211 when the stop PC is at the beginning of a function also.
213 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
215 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
216 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
218 2003-09-06 Mark Kettenis <kettenis@gnu.org>
220 * sol-thread.c: Include "gdb_string.h".
222 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
224 * gcore.c: Reorder include files in alphabetical order. Include
225 "gdb_assert.h". Various coding style fixes.
226 (derive_stack_segment, derive_heap_segment): Replace check for
227 non-null BOTTOM and TOP with gdb_assert.
228 (derive_heap_segment): Replace check for successful creation of
229 ZERO with gdb_assert.
230 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
232 2003-09-04 Andrew Cagney <cagney@redhat.com>
234 * thread-db.c (verbose_dlsym): New function.
235 (thread_db_load): Use verbose_dlsym
236 (thread_db_new_objfile): Print that libthread_db was loaded, and
237 that thread debugging was enabled.
239 2003-09-04 Andrew Cagney <cagney@redhat.com>
241 * configure.tgt: Add "mips64*-*-*" target. Delete
242 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
243 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
244 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
245 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
246 mips*-sony-*, and mips64*-*-elf* targets.
247 * config/mips/embedl.mt: Delete file.
248 * config/mips/embedl64.mt: Delete file.
249 * config/mips/mips.mt: Delete file.
250 * config/mips/mips64.mt: Delete file.
251 * config/mips/tm-embed.h: Delete file.
252 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
253 * config/mips/embed64.mt: Delete out-of-date comment.
255 2003-09-04 Andrew Cagney <cagney@redhat.com>
257 * hppa-tdep.c (hppa_gdbarch_init): Set
258 "have_nonsteppable_watchpoint".
259 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
260 * mips-tdep.c (mips_dump_tdep): Do not print
261 HAVE_NONSTEPPABLE_WATCHPOINT.
262 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
263 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
264 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
265 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
267 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
269 * breakpoint.c (watchpoint_check): Remove accidentally checked in
270 unused code. Add comment.
272 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
274 * breakpoint.c (watchpoint_check): Check for pc being in an
275 epilogue if watchpoint frame couldn't be found.
277 2003-09-04 Andrew Cagney <cagney@redhat.com>
279 * Makefile.in: Re-generate all dependencies.
281 2003-09-03 Andrew Cagney <cagney@redhat.com>
283 * arch-utils.h (legacy_print_insn): Delete declaration.
284 * arch-utils.c (legacy_print_insn): Delete function.
285 * disasm.c (deprecated_tm_print_insn_info): Delete.
286 (_initialize_disasm): Delete function, contained code initializing
287 deprecated_tm_print_insn_info.
288 * gdbarch.sh (deprecated_tm_print_insn): Delete.
289 (deprecated_tm_print_insn_info): Delete.
290 (TARGET_PRINT_INSN): Do not provide a default.
291 * gdbarch.h, gdbarch.c: Re-generate.
293 2003-09-03 Andrew Cagney <cagney@redhat.com>
295 * disasm.c (fprintf_disasm): New function.
296 (gdb_disassemble_info): Call "init_disassemble_info", instead of
297 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
298 reverts 2003-08-14 change.
299 (_initialize_disasm): Call "init_disassemble_info", instead of
300 INIT_DISASSEMBLE_INFO_NO_ARCH.
302 2003-09-03 Michael Snyder <msnyder@redhat.com>
304 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
306 2003-09-03 Andrew Cagney <cagney@redhat.com>
308 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
309 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
310 * symfile.c (syms_from_objfile): Update.
311 (reread_symbols): `Update
312 * exec.c (exec_file_attach): Update.
313 (exec_file_attach): Update.
314 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
316 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
318 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
320 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
322 (arm_get_cache): Delete macro.
323 (struct arm_prologue_cache): Update comments. Make saved_regs into
324 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
326 (thumb_scan_prologue): Update for cache changes. Don't call
327 DEPRECATED_PC_IN_CALL_DUMMY.
328 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
329 argument and use it in desperation search for our prologue. Do not
330 search past the specified PC.
331 (arm_make_prologue_cache): Simplify.
333 (arm_prologue_this_id, arm_prologue_prev_register)
334 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
335 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
336 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
337 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
338 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
340 (arm_frame_chain_valid, arm_find_callers_reg)
341 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
342 (arm_pop_frame): Delete obsolete methods.
343 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
345 (arm_gdbarch_init): Update for new frame methods. Register prologue
346 and sigtramp unwinders. Set the default frame base method.
348 * Makefile.in (arm-tdep.o): Update dependencies.
349 * varobj.c (find_frame_addr_in_frame_chain): Call
350 get_frame_base_address.
351 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
353 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
355 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
356 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
357 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
358 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
359 Take NEXT_FRAME and CACHE arguments. Call
360 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
361 Set unwound_pc in CACHE instead of modifying the frame argument.
362 Don't bother checking the frame type when looking for sigtramp
364 (arm_make_prologue_cache, arm_frame_chain)
365 (arm_init_extra_frame_info): New functions.
367 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
369 * arm-tdep.c (arm_get_cache): Define.
370 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
371 unwound_sp, unwound_pc, and saved_regs.
372 (thumb_scan_prologue): Take a cache instead of the frame.
373 (arm_scan_prologue): Likewise.
374 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
375 instead of a temporary frame.
376 (arm_init_extra_frame_info): Allocate and use a cache.
377 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
379 2003-09-03 Andrew Cagney <cagney@redhat.com>
381 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
382 * config/mips/wince.mt (TM_CLIBS): Ditto.
383 * config/sh/wince.mt (TM_CLIBS): Ditto.
384 * config/pa/hppa64.mt (TM_CLIBS): Delete.
385 * config/sparc/sp64.mt (CC): Delete.
387 2003-09-03 Andrew Cagney <cagney@redhat.com>
389 * defs.h: Do not include "arch-utils.h".
390 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
392 * configure.in (GDB_MULTI_ARCH): Do not define.
393 * configure, config.in: Regenerate.
394 * configure.tgt: Do not set variable "gdb_multi_arch".
395 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
396 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
397 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
398 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
399 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
400 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
401 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
402 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
403 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
404 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
405 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
406 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
407 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
408 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
409 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
410 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
411 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
412 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
414 2003-08-30 Michael Chastain <mec@shout.net>
416 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
417 * config/m68k/nm-hp300hpux.h: Delete.
418 * config/m68k/tm-hp300hpux.h: Delete.
419 * config/m68k/xm-hp300hpux.h: Delete.
420 * config/m68k/xm-hp300bsd.h: Delete.
421 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
422 tm-hp300hpux.h, xm-hp300hpux.h.
423 * somsolib.c: Remove comment about hp300 shared libraries.
425 2003-08-31 Mark Kettenis <kettenis@gnu.org>
427 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
428 Only define PTRACE_GET_THREAD_AREA is not already defined.
429 Various style fixes in code and comments and some additional
430 spelling fixes in comments. Move after functions dealing with
432 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
435 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
436 frame_unwind_register_unsigned instead of
437 frame_unwind_unsigned_register.
439 2003-08-30 Mark Kettenis <kettenis@gnu.org>
441 * configure.in: Search for gethostbyname in libnsl.
442 * configure: Regenerated.
444 2003-08-29 Mark Kettenis <kettenis@gnu.org>
446 * configure.in: Remove redundant AC_MSG_RESULT in check for
447 uintptr_t in stdint.h.
448 * configure: Regenerated.
450 * amd64-nat.h (struct regcache): Add opaque declaration.
452 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
453 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
454 Change "register array" to "register cache" in comments.
455 (x86_64_linux_gregset64_reg_offset): New variable.
456 (GETREGS_SUPPLIES): Remove macro.
457 (supply_gregset): Call amd64_supply_native_gregset instead of
458 x86_64_linux_supply_gregset.
459 (fill_gregset): Rename `regno' to `regnum'. Call
460 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
461 (store_regs): Rename `regno' to `regnum'.
462 (store_fpregs): Rename `regno' to `regnum'.
463 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
464 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
465 Reorganize function a bit.
466 (store_inferior_registers): Rename `regno' to `regnum'. Use
467 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
468 Reorganize function a bit.
469 (_initialize_x86_64_linux_nat): New function.
470 * config/i386/x86-64linux.mh.
472 2003-08-29 Andrew Cagney <cagney@redhat.com>
474 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
475 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
476 (target_remove_watchpoint): Delete macro.
477 (target_insert_watchpoint): Delete macro.
478 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
479 (remote_mips_stopped_by_watchpoint): Delete declaration.
480 (remote_mips_remove_watchpoint): Delete declaration.
481 (remote_mips_set_watchpoint): Delete declaration.
482 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
483 * remote-mips.c (_initialize_remote_mips): Set
484 "to_insert_watchpoint", "to_stopped_by_watchpoint",
485 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
486 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
487 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
488 (mips_stopped_by_watchpoint): Rename
489 remote_mips_stopped_by_watchpoint.
490 (mips_can_hardware_watchpoint): Rename
491 remote_mips_can_use_hardware_watchpoint, update function
494 2003-08-29 Mark Kettenis <kettenis@gnu.org>
496 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
497 USER_DS. We haven't given them a register number yet.
499 * amd64-nat.h: New file.
500 * amd64-nat.c: New file.
501 * amd64fbsd-nat.c: Include "amd64-nat.h".
502 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
503 (amd64fbsd32_r_reg_offset): New variable.
504 (supply_gregset): Simply call amd64_supply_native_gregset.
505 (fill_gregset): Rename `regno' to `regnum'. Simply call
506 amd64_collect_native_gregset.
507 (fill_fpregset): Rename `regno' to `regnum'.
508 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
509 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
510 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
511 `fpregset_t'. Call amd64_supply_native_gregset instead of
512 supply_gregset. Call x86_64_supply_fxsave instead of
514 (store_inferior_registers): Rename `regno' to `regnum'. Replace
515 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
516 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
517 `fpregset_t'. Call amd64_collect_native_gregset instead of
518 fill_gregset. Call x86_64_collect_fxsave instead of
520 (_initialize_am64fbsd_nat): Initialize
521 amd64_native_gregset32_reg_offset and
522 amd64_native_gregset64_reg_offset.
523 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
525 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
526 null pointer. Fix typo in comment.
528 * regcache.c (supply_register): Reimplement to call
530 (regcache_collect): Reimplement by calling regcache_raw_collect.
532 2003-08-28 Mark Kettenis <kettenis@gnu.org>
534 * regcache.c (register_buffer): Consitify first argument.
535 (regcache_raw_supply, regcache_raw_collect): New
538 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
540 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
541 by Nathan J. Williams.
543 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
545 * lin-lwp.c (wait_lwp): New function, copied from
546 stop_wait_callback. Clean up.
547 (stop_wait_callback): Use wait_lwp.
549 2003-08-28 Andrew Cagney <cagney@redhat.com>
551 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
552 flavour and disassembler options.
553 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
554 (mips_gdbarch_init): Set "print_insn". Delete initialization of
555 deprecated_tm_print_insn_info.
557 2003-08-27 Andrew Cagney <cagney@redhat.com>
559 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
560 Use target_read_memory.
561 (s390_get_frame_info): Update. Do not reference
562 deprecated_tm_print_insn_info.
563 (s390_check_function_end, s390_is_sigreturn): Ditto.
565 2003-08-27 Andrew Cagney <cagney@redhat.com>
567 * Makefile.in (cris-tdep.o): Update dependencies.
568 * cris-tdep.c: Include "gdb_assert.h".
569 (cris_gdbarch_init): Set print_insn.
570 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
571 (cris_delayed_get_disassembler): Simplify, directly call the
572 disassembler returned by cris_get_disassembler.
573 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
574 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
575 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
576 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
577 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
578 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
579 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
580 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
581 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
582 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
583 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
584 (gdb_print_insn_sparc): Delete function.
585 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
586 deprecated_tm_print_insn_info.
587 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
588 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
589 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
590 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
591 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
592 * s390-tdep.c (gdb_print_insn_s390): Delete function.
593 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
594 (s390_gdbarch_init): Set print_insn.
596 2003-08-27 Andrew Cagney <cagney@redhat.com>
598 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
599 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
600 * infcall.c (call_function_by_hand): Convert the entry point
601 address into a code address.
603 2003-08-27 Andrew Cagney <cagney@redhat.com>
605 * dsrec.c: Include "gdb_string.h".
606 * Makefile.in (dsrec.o): Update dependencies.
608 2003-08-27 Michael Chastain <mec@shout.net>
610 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
612 2003-08-27 Andrew Cagney <cagney@redhat.com>
614 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
615 (alpha_osf1_init_abi): Do not set call_dummy_address.
617 2003-08-27 David Carlton <carlton@kealia.com>
619 From Randolph Chung <tausq@debian.org>:
620 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
621 compiles with -Wformat-nonliteral -Werror.
623 2003-08-26 Jim Blandy <jimb@redhat.com>
625 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
626 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
627 bfd_lookup_symbol, since we only want symbols in code sections.
628 (look_for_base): Pass zero as the SECT_FLAGS argument to
629 bfd_lookup_symbol, since we're not concerned about which section
632 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
634 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
635 we are frameless or the return address register is already known.
637 2003-08-26 Andrew Cagney <cagney@redhat.com>
639 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
640 in size. Add comments.
642 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
644 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
645 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
647 2003-08-26 Jason Merrill <jason@redhat.com>
649 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
650 case out of #ifdef MIPS block.
652 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
655 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
656 available before calling SECT_OFF_TEXT.
657 * PROBLEMS: Remove description of java/1322.
659 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
661 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
662 bof, and nat0-nat127 as pseudo-registers.
663 (ia64_frame_cache): New struct used to cache frame info.
664 (ia64_register_reggroup_p): New routine used to override default
665 register grouping so registers without names are still saved and
667 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
669 (ia64_pseudo_register_read): New routine to read pseudo-registers.
670 (ia64_pseudo_register_write): New routine to write pseudo-registers.
671 (ia64_alloc_frame_cache): New routine to create a new
673 (examine_prologue): Change prototype to add next_frame pointer.
674 Assume frameless until otherwise proven. Verify that the cfm for
675 current frame matches the cfm that should occur for the prologues
676 alloc insn and if equal, mark as not frameless. At end of routine,
677 if not frameless, calculate registers for the previous frame and store
678 in the cache, if a cache is provided.
679 (ia64_skip_prologue): Use new prototype when calling examine_prologue
680 and pass 0 for next_frame.
681 (ia64_store_return_value): Change to use convert_typed_floating()
682 instead of calling ia64_convert_to_raw().
683 (ia64_extract_return_value): Change to use convert_typed_floating()
684 instead of calling ia64_convert_to_virtual().
685 (ia64_frame_cache): New routine to support new frame model.
686 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
687 (ia64_frame_sniffer): Ditto.
688 (ia64_sigtramp_frame_init_saved_regs): Ditto.
689 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
690 (ia64_sigtramp_frame_prev_register): Ditto.
691 (ia64_sigtramp_frame_sniffer): Ditto.
692 (ia64_frame_base_address): Ditto.
693 (ia64_extract_struct_value_address): Change to issue error message.
694 (ia64_frame_align): New routine to align sp.
695 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
696 (ia64_push_arguments): Removed. Logic moved to
697 ia64_push_dummy_call().
698 (ia64_push_return_address): Ditto.
699 (ia64_unwind_dummy_id): New function.
700 (ia64_unwind_pc): Ditto.
701 (ia64_convert_register_p): Ditto.
702 (ia64_register_to_value): Ditto.
703 (ia64_value_to_register): Ditto.
704 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
705 (ia64_register_byte, ia64_register_raw_size): Ditto.
706 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
707 (ia64_saved_pc_after_call): Ditto.
708 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
709 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
710 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
711 (ia64_register_convert_to_raw): Ditto.
712 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
713 (ia64_init_extra_frame_info): Ditto.
714 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
715 (ia64_gdbarch_init): Remove registering of deprecated functions that
716 are no longer used. Add registration of new gdbarch functions.
717 Remove registering deprecated_write_sp. Replace
718 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
719 Delete set_gdbarch_deprecated_register_convertible(),
720 set_gdbarch_deprecated_register_convert_to_virtual(), and
721 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
722 set_gdbarch_deprecated_register_size(),
723 set_gdbarch_deprecated_register_bytes(),
724 set_gdbarch_pcregnum(),
725 set_gdbarch_deprecated_register_byte(),
726 set_gdbarch_deprecated_register_raw_size(),
727 set_gdbarch_deprecated_max_register_raw_size(),
728 set_gdbarch_deprecated_register_virtual_size(),
729 and set_gdbarch_deprecated_max_register_virtual_size() calls.
730 Replace set_gdbarch_deprecated_extract_return_value() with
731 set_gdbarch_extract_return_value(). Remove calls to:
732 set_gdbarch_deprecated_saved_pc_after_call();
733 set_gdbarch_deprecated_frame_chain(),
734 set_gdbarch_deprecated_frame_saved_pc(),
735 set_gdbarch_deprecated_frame_init_saved_regs(),
736 set_gdbarch_deprecated_get_saved_register(),
737 set_gdbarch_deprecated_call_dummy_words(),
738 set_gdbarch_deprecated_sizeof_call_dummy_words(),
739 set_gdbarch_deprecated_init_extra_frame_info(),
740 set_gdbarch_deprecated_frame_args_address(),
741 set_gdbarch_deprecated_frame_locals_address(),
742 and set_gdbarch_deprecated_dummy_write_sp().
743 Add set_gdbarch_convert_register_p(),
744 set_gdbarch_register_to_value(),
745 set_gdbarch_value_to_register(),
746 set_gdbarch_push_dummy_call(),
747 set_gdbarch_frame_align(),
748 set_gdbarch_unwind_dummy_id(),
749 set_gdbarch_unwind_pc(),
750 frame_unwind_append_sniffer(),
751 frame_unwind_append_sniffer(),
752 and frame_base_set_default().
754 2003-08-25 Chris Demetriou <cgd@broadcom.com>
756 * configure.tgt: Document need for special "mipsisa64" handling.
757 (mipsisa64*-*-linux64): Handle as target linux64.
758 (mipsisa64*-*-*): Handle as target embed64.
760 2003-08-18 Michael Chastain <mec@shout.net>
762 * PROBLEMS: Document pr gdb/1322, the Java anonymous
765 2003-08-24 Mark Kettenis <kettenis@gnu.org>
767 * i387-tdep.h: Update copyright date.
768 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
770 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
771 CFLAGS games to reflect reality.
773 2003-08-24 Andrew Cagney <cagney@redhat.com>
775 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
776 GDB_MULTI_ARCH is always non-zero.
777 * osabi.c (_initialize_gdb_osabi): Ditto.
778 (gdbarch_init_osabi): Ditto.
779 * sparc-tdep.c: Ditto for #if code.
781 2003-08-23 Mark Kettenis <kettenis@gnu.org>
783 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
785 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
787 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
788 x86_64_supply_fxsave.
789 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
790 x86_64_supply_fxsave.
791 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
792 x86_64_supply_fxsave.
794 2003-08-23 Andreas Jaeger <aj@suse.de>
796 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
799 2003-08-23 Mark Kettenis <kettenis@gnu.org>
801 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
802 i387_supply_register.
803 (go32_fetch_registers): Adjust call to i387_supply_fsave.
804 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
806 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
808 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
810 * i386bsd-nat.c (supply_fpregset): Adjust call to
812 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
813 call to i387_supply_fxsave. Call i387_supply_fsave instead of
815 (store_inferior_registers): Remove extraneous whitespace. Call
816 i387_fill_fsave instead of fill_fpregset.
817 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
818 (supply_fpregset): Likewise.
819 * i386v4-nat.c (supply_fpregset): Adjust call to
821 * i386-interix-nat.c (supply_fpregset): Adjust call to
823 * i386-linux-nat.c (supply_fpregset): Adjust call to
825 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
826 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
827 i387supply_fsave and i387_supply_fxsave.
828 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
829 Incorporate code from `i387_supply_register.
830 (i387_supply_register): Remove.
831 (i387_supply_fxsave): Add `regnum' argument.
833 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
835 (i387_supply_register): remove prototype.
838 2003-08-22 Michael Chastain <mec@shout.net>
840 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
841 Add lines for files in gdb/testsuite/gdb.cp/* that are
842 still not 8.3 unique.
844 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
846 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
847 TYPE_VPTR_FIELDNO is valid.
849 2003-08-19 Mark Kettenis <kettenis@gnu.org>
851 * utils.c (set_width_command): Remove prototypes.
852 (set_screen_size): New prototype.
853 (init_page_info): Simplify by fetching the screen size from
854 Readline. Call set_screen_size.
855 (set_screen_size): New function.
856 (set_width): Add missing whitespace in comment.
857 (set_width_command): Call set_screen_size.
858 (set_height_command): New function.
859 (initialize_utils): Fix formatting. Make "set height" command
860 call set_height_command. Remove redundant code that turns off
861 pagination if output isn't a terminal. Remove redundant call to
864 2003-08-22 Mark Kettenis <kettenis@gnu.org>
866 * sparc64-tdep.h (sparc64_regnum): Fix comment.
867 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
868 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
869 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
871 (sparc64_register_info): Give the reister with number
872 SPARC64_STATE_REGNUM a name.
873 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
875 (sparc64_push_dummy_call): Take BIAS into account when checking
877 (sparc_software_single_step): Remove assertions that check whether
878 NPC and NNPC were zero.
879 (sparc_supply_rwindow): Make public. Merge functionality with
880 sparc64_supply_rwindow.
881 (sparc_fill_rwindow): Make public. Merge functionality with
882 sparc64_fill_rwindow.
883 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
884 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
885 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
886 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
887 sparc_supply_rwindow instead of sparc64_supply_rwindow.
889 * reggroups.c: Add whitespace after declarations of local
890 variables in functions.
892 2003-08-21 Michael Chastain <mec@shout.net>
894 * gdbtypes.h: Change array bound type from an int to enum.
896 2003-08-21 Andrew Cagney <cagney@redhat.com>
898 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
899 * config/sparc/tm-sparc.h: Ditto.
900 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
902 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
904 2003-07-13 Mark Kettenis <kettenis@gnu.org>
906 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
907 (register_objfile_data, set_objfile_data, objfile_data): New
909 * objfiles.c (objfile_alloc_data, objfile_free_data): New
911 (allocate_objfile): Call objfile_alloc_data.
912 (free_objfile): Call objfile_free_data.
913 (struct objfile_data): New.
914 (struct objfile_data_registration): New.
915 (struct objfile_data_registry): New.
916 (objfile_data_registry): New variable.
917 (register_objfile_data): New function.
918 (objfile_alloc_data, objfile_free_data): New functions.
919 (set_objfile_data, objfile_data): New functions.
920 * dwarf2-frame.c (dwarf2_frame_data): New variable.
921 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
922 (_initialize_dwarf2_frame): New function and prototype.
924 2003-08-21 Andrew Cagney <cagney@redhat.com>
926 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
927 a specific architecture.
928 * arch-utils.h (set_architecture_from_arch_mach): Delete
930 (target_architecture_hook): Delete declaration.
931 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
932 (default_float_format): Assume GDB_MULTI_ARCH.
933 (default_double_format): Assume GDB_MULTI_ARCH.
934 (set_endian_from_file): Delete function.
935 (arch_ok): Delete function.
936 (set_arch): Delete function.
937 (set_architecture_from_arch_mach): Delete function.
938 (set_architecture_from_file): Delete function.
939 (set_architecture): Assume GDB_MULTI_ARCH.
940 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
942 2003-08-21 Mark Kettenis <kettenis@gnu.org>
944 Rewrite FreeBSD/sparc64 native configuration.
945 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
946 * sparc64fbsd-nat.c: New file.
947 * sparc64fbsd-tdep.c: New file.
948 * sparc64-tdep.c sparc64-tdep.h: New files.
949 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
950 sparc64fbsd-tdep.o): New dependencies.
951 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
952 and sparc64fbsd-tdep.c.
953 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
954 * config/sparc/fbsd.mh: Remove copyright notice.
955 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
957 * config/sparc/fbsd.mt: Remove copyright notice.
958 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
959 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
960 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
961 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
962 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
963 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
964 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
965 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
967 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
968 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
970 2003-08-21 Michael Chastain <mec@shout.net>
972 * symtab.h: Add doco on the space critical structures and
973 some measurements of space usage.
975 2003-08-21 Michael Snyder <msnyder@redhat.com>
977 * tracepoint.c (trace_dump_command): Trace break address
978 is subject to DECR_PC_AFTER_BREAK.
979 (set_traceframe_context): Make "trace_line" an int.
980 Fixes suggested by Mark Newman <mark.newman@lmco.com>
982 2003-08-20 Michael Snyder <msnyder@redhat.com>
984 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
985 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
986 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
988 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
989 functions, replace sh_push_dummy_call.
990 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
992 2003-08-20 Michael Chastain <mec@shout.net>
994 * gdbtypes.h (struct main_type): Rearrange to save space.
996 2003-08-20 Michael Snyder <msnyder@redhat.com>
998 * trad-frame.c: Comment typo fix.
1000 2003-08-20 Michael Snyder <msnyder@redhat.com>
1001 Kevin Buettner <kevinb@redhat.com>
1003 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1004 (frv_frame_init_saved_regs): Add declaration.
1005 (frame_extra_info): Add new field ``saved_regs''.
1006 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1007 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1008 Update frame related code.
1009 (frv_extract_struct_value_address): Adjust formatting.
1010 * Makefile.in (frv-tdep.o): Update dependencies.
1011 * config/frv/tm-frv.h (target_insert_watchpoint)
1012 (target_remove_watchpoint, target_insert_hw_breakpoint)
1013 (target_remove_hw_breakpoint): Delete these macros.
1014 (remote_insert_watchpoint, remote_remove_watchpoint)
1015 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1018 2003-08-20 Michael Chastain <mec@shout.net>
1020 * defs.h (ENUM_BITFIELD): New macro.
1021 * symtab.h (ENUM_BITFIELD): Use it.
1022 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1024 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1026 * MAINTAINERS (write after approval): Add myself.
1028 2003-08-18 Andrew Cagney <cagney@redhat.com>
1030 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1031 * gdbarch.h, gdbarch.c: Re-generate.
1032 * infcall.c (call_function_by_hand): Adjust the SP by
1033 frame_red_zone_size before allocating any stack space.
1034 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1035 * x86-64-tdep.c (x86_64_frame_align): New function.
1036 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1038 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1039 Remove code adjusting SP so that it skips over the Red Zone.
1041 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1043 * NEWS (New native configurations): Mention FreeBSD/amd64.
1045 2003-08-18 Andrew Cagney <cagney@redhat.com>
1047 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1048 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1050 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1052 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1054 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1056 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1058 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1060 * i386-linux-nat.c: Include "linux-nat.h".
1061 (child_post_startup_inferior): New function.
1063 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1065 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1066 at the start of a frameless function. This probably fixes PR
1069 2003-08-17 Michael Chastain <mec@shout.net>
1071 * symfile.c (find_sym_fns): Remove special case for apollo target.
1073 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1075 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1076 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1077 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1078 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1079 (linux_supports_tracevforkdone): New function.
1080 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1082 (child_follow_fork): Handle vfork.
1083 (linux_handle_extended_wait): Likewise. Also handle exec.
1084 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1085 * NEWS: Mention fork tracing.
1087 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1089 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1091 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1093 * Makefile.in (i386-linux-nat.o): Update dependencies.
1094 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1095 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1096 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1097 * i386-linux-nat.c: Include "linux-nat.h".
1098 (child_post_startup_inferior): New function.
1099 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1100 * infptrace.c (kill_inferior): Wrap in #ifdef.
1101 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1102 attaching to each LWP.
1103 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1104 (init_lin_lwp_ops): Fill in some more operations.
1105 * linux-nat.h (linux_enable_event_reporting)
1106 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1108 * linux-nat.c (linux_enable_event_reporting): New function.
1109 (child_post_attach, linux_child_post_startup_inferior)
1110 (child_post_startup_inferior, child_follow_fork)
1111 (linux_handle_extended_wait, kill_inferior): New functions.
1113 2003-08-16 Andrew Cagney <cagney@redhat.com>
1115 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1116 * gdbarch.h, gdbarch.c: Re-generate.
1118 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1120 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1122 2003-08-16 Andrew Cagney <cagney@redhat.com>
1124 * NEWS: Mention that "set prompt-escape-char" was deleted.
1125 * top.c (get_prompt_1): Delete function.
1126 (gdb_prompt_escape):
1127 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1128 prompt-escape-char" command.
1129 (MAX_PROMPT_SIZE): Delete macro.
1130 (get_prompt): Simplify, do not call get_prompt_1.
1132 2003-08-16 Andrew Cagney <cagney@redhat.com>
1134 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1135 -Werror. -Wformat-nonliteral problems.
1137 2003-08-15 J. Brobecker <brobecker@gnat.com>
1139 Further multiarching work mostly for hppa64-*-hpux11:
1140 * hppa-tdep.h: New file.
1141 * hppa-tdep.c: #include hppa-tdep.c.
1142 (hppa32_num_regs): Renamed from hppa_num_regs.
1143 (hppa64_num_regs): New constant.
1144 (hppa64_call_dummy_breakpoint_offset): New constant.
1145 (hppa32_call_dummy_length): New constant.
1146 (hppa64_call_dummy_length): New constant.
1147 (hppa32_stack_align): Make name 32bit explicit.
1148 (hppa32_register_virtual_type): Likewise.
1149 (hppa32_extract_return_value): Likewise.
1150 (hppa32_use_struct_convention): Likewise.
1151 (hppa32_store_return_value): Likewise.
1152 (hppa64_register_virtual_type): New function.
1153 (hppa64_extract_return_value): New function.
1154 (hppa64_use_struct_convention): New function.
1155 (hppa64_store_return_value): New function.
1156 (hppa_frame_locals_address): Remove declaration, function does
1158 (hppa_register_byte): Add support for PA64 ABI.
1159 (hppa_gdbarch_init): Add support for PA64 ABI.
1160 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1161 Make name 32bit explicit.
1162 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1163 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1164 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1165 (hppa64_hpux_frame_base_before_sigtramp): New function.
1166 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1167 * config/pa/tm-hppa64.h: Remove macros that are no longer
1168 necessary now that the gdbarch vector is properly setup.
1169 Transform some macros into function calls. Some minor cleanup.
1170 * config/pa/tm-hppah.h: Update function calls in macros
1171 following the function renaming in hppa-hpux-tdep.c.
1172 * Makefile.in (hppa_tdep_h): New variable.
1173 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1175 2003-08-14 Michael Snyder <msnyder@redhat.com>
1177 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1179 2003-08-13 J. Brobecker <brobecker@gnat.com>
1181 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1182 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1185 2003-08-13 Michael Snyder <msnyder@redhat.com>
1187 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1188 (frv_saved_pc_after_call): Use deprecated ftype.
1189 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1190 (frv_remote_translate_xfer_address): Remove.
1191 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1193 2003-08-13 J. Brobecker <brobecker@gnat.com>
1195 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1196 initialization after the common gdbarch initialization, not before.
1198 2003-08-13 J. Brobecker <brobecker@gnat.com>
1200 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1201 (ADDR_BITS_REMOVE): Remove, redundant.
1203 2003-08-13 J. Brobecker <brobecker@gnat.com>
1205 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1206 gdbarch method to clear the 2 low bits of text addresses.
1208 2003-08-12 Andrew Cagney <cagney@redhat.com>
1210 * Makefile.in (dsrec.o): Update dependencies.
1211 * dsrec.c: Include "gdb_assert.h".
1212 (make_srec): Use snprintf instead of sprintf, use a literal format
1215 2003-08-12 Andrew Cagney <cagney@redhat.com>
1217 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1218 FRAME_OBSTACK_ZALLOC.
1220 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1222 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1225 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1227 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1228 amd64fbsd_sc_reg_offset): Add extern declarations.
1229 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1232 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1234 * MAINTAINERS (write after approval): Update my mail address.
1236 2003-08-10 Andrew Cagney <cagney@redhat.com>
1238 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1240 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1242 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1243 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1244 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1245 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1246 i386bsd_sc_reg_offset): Add extern declarations.
1247 * i386obsd-nat.c: Include "i386-tdep.h"
1248 (_initialize_i386obsd_nat): Remove extern declarations.
1249 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1251 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1254 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1255 instead of frame_read_register.
1256 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1257 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1259 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1260 instead of frame_unwind_unsigned_register. Use
1261 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1262 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1263 instead of read_register. Use builtin_type_void_data_ptr instead
1264 of builtin_type_void_func_ptr when extracting the address of the
1266 (i386_extract_return_value, i386_store_return_value,
1267 i386_pseudo_register_read, i386_pseudo_register_write): Use
1268 register_size instead REGISTER_RAW_SIZE.
1270 2003-08-10 Andrew Cagney <cagney@redhat.com>
1272 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1273 sprintf. Make "name" constant.
1275 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1277 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1278 instead of frame_read_register.
1279 (i387_print_float_info): Use get_frame_register and
1280 get_frame_register_unsigned instead of frame_register_read.
1282 * i386fbsd-nat.c: Include "i386-tdep.h".
1283 (child_resume): Make `eflags' an ULONGEST. Use
1284 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1285 instead of register_read and register_write.
1287 * i386bsd-nat.c (fetch_inferior_registers,
1288 store_inferior_registers): Don't use && at the end of a line.
1289 (_initialize_i386bsd_nat): Fix typo.
1291 * frame.c (_initialize_frame): Add missing backslash.
1293 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1294 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1295 and supply_register instead of manipulating the register buffer
1298 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1299 * config/i386/nm-i386sol2.h
1300 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1302 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1303 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1304 instructions that GCC likes to mingle into the prologue. Fixes
1305 gdb/1253 and gdb/1255.
1307 2003-08-09 Andrew Cagney <cagney@redhat.com>
1310 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1311 * command.h (add_setshow_uinteger_cmd): Declare.
1312 * frame.c (set_backtrace_cmd): New function.
1313 (show_backtrace_cmd): New function.
1314 * frame.c (_initialize_frame): Replace "set/show
1315 backtrace-below-main" with "set/show backtrace past-main". Add
1316 command "set/show backtrace limit".
1317 (backtrace_past_main): Rename "backtrace_below_main".
1318 (backtrace_limit): New variable.
1319 (get_prev_frame): Update. Check the backtrace_limit.
1321 2003-08-09 Andrew Cagney <cagney@redhat.com>
1323 * defs.h (xstrprintf): Declare.
1324 * utils.c (xstrprintf): New function.
1325 * breakpoint.c (insert_breakpoints): Replace sprintf and
1326 non-literal format strings, with xstrprintf and cleanups.
1327 (delete_breakpoint,breakpoint_re_set): Ditto.
1328 (commands_command, insert_breakpoints): Ditto.
1329 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1330 (break_at_finish_command_1): Ditto.
1332 2003-08-09 Andrew Cagney <cagney@redhat.com>
1334 * MAINTAINERS (language support): List Adam Fedor as Objective C
1337 2003-08-08 J. Brobecker <brobecker@gnat.com>
1339 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1340 are now multiarched.
1342 2003-08-08 J. Brobecker <brobecker@gnat.com>
1344 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1345 longer necessary now that hppa64 is partially multiarch'ed.
1347 2003-08-08 Andrew Cagney <cagney@redhat.com>
1349 * interps.c (interp_set): Check for a NULL "old_interp".
1351 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1353 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1354 (install-only): Support DESTDIR.
1355 (uninstall): Likewise.
1356 (install-gdbtk): Likewise.
1358 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1360 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1361 contains something meaningful at all times.
1363 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1365 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1367 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1369 * MAINTAINERS (write after approval): Added self.
1371 2003-08-07 Andrew Cagney <cagney@redhat.com>
1373 * inferior.h (AT_SYMBOL): Define.
1374 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1375 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1376 * mips-tdep.c (mips_call_dummy_address): Delete function.
1377 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1378 set call_dummy_address.
1380 2003-08-07 Andrew Cagney <cagney@redhat.com>
1382 * language.c (op_error): Delete function.
1383 (binop_type_check): Delete function.
1384 * language.h (type_op_error, range_op_error): Delete macros.
1385 (op_error): Delete declaration.
1387 2003-08-07 Andrew Cagney <cagney@redhat.com>
1389 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1391 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1393 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1394 (x86_64_push_arguments): Skip the red zone.
1396 2003-08-05 Andrew Cagney <cagney@redhat.com>
1398 * reggroups.c (reggroup_next): Check for the final entry.
1400 2003-08-04 Andrew Cagney <cagney@redhat.com>
1402 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1403 * cli/cli-script.c (define_command): Call query directly, instead
1404 of passing it a buffer.
1405 * ocd.c (ocd_error): Pass error a constant format string.
1406 * remote-mips.c (mips_error): Use fputs_filtered.
1408 * solib-svr4.c (_initialize_svr4_solib): Update
1409 register_gdbarch_data call.
1410 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1412 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1413 (register_gdbarch_data): Delete "free" parameter. Update
1415 * gdbarch.h, gdbarch.c: Re-generate.
1416 * reggroups.c (_initialize_reggroup): Update.
1417 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1418 * frame-base.c (_initialize_frame_base): Update.
1419 * frame-unwind.c (_initialize_frame_unwind): Update.
1420 * user-regs.c (_initialize_user_regs): Update.
1421 * remote.c (_initialize_remote): Update.
1422 * regcache.c (_initialize_regcache): Update.
1424 * regcache.c (xfree_regcache_descr): Delete function.
1425 (_initialize_regcache): Update call to register_gdbarch_data.
1426 (init_regcache_descr, init_legacy_regcache_descr): Use
1427 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1429 * remote.c (free_remote_state): Delete function.
1430 (_initialize_remote): Update register_gdbarch_data.
1431 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1432 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1434 2003-08-04 Andrew Cagney <cagney@redhat.com>
1436 * reggroups.c (struct reggroup_el): Define.
1437 (struct reggroups): Delete field "nr_group". Replace array
1438 "group" with a "first" to "last" linked list.
1439 (reggroups_init): Update. Allocate using gdbarch's obstack.
1440 (reggroups_free): Delete function.
1441 (add_group): Update. Add "el" parameter.
1442 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1443 (default_groups): Update.
1444 (reggroup_next): Replace reggroups.
1445 (reggroups_dump): Update.
1446 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1447 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1448 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1450 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1452 * Makefile.in (tui-interp.o): Update dependencies.
1454 2003-08-04 David Carlton <carlton@kealia.com>
1456 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1457 to internal_error call.
1458 * source.c (forward_search_command): Add "%s" format argument.
1459 (reverse_search_command): Ditto.
1460 * top.c (quit_confirm): Ditto.
1461 * cli/cli-setshow.c (do_setshow_command): Ditto.
1462 * cp-valprint.c (cp_print_class_method): Replace
1463 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1464 (cp_print_class_member): Ditto.
1465 * event-top.c (command_line_handler): Ditto.
1466 * linux-proc.c (linux_info_proc_cmd): Ditto.
1467 * p-typeprint.c (pascal_type_print_base): Ditto.
1468 * p-valprint.c (pascal_object_print_class_method): Ditto.
1469 (pascal_object_print_class_member): Ditto.
1470 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1471 * remote.c (remote_cisco_section_offsets): Ditto.
1472 * top.c (command_line_input): Ditto.
1473 * utils.c (vwarning,error_stream,quit): Ditto.
1474 * valprint.c (print_floating,print_binary_chars)
1475 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1477 2003-08-04 Andrew Cagney <cagney@redhat.com>
1479 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1481 2003-08-02 Andrew Cagney <cagney@redhat.com>
1483 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1484 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1487 2003-08-02 Andrew Cagney <cagney@redhat.com>
1489 * Makefile.in: Update all dependencies and definitions.
1491 2003-08-02 Adam Fedor <fedor@gnu.org>
1493 * linespec.c (is_objc_method_format): New function
1494 (decode_line_1, locate_first_half): Use it.
1497 2003-08-01 Andrew Cagney <cagney@redhat.com>
1499 * NEWS: Mention that m32r is multi-arch.
1500 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1501 * configure.tgt: Recognize m32r-*-*.
1502 * config/m32r/tm-m32r.h: Delete file.
1503 * config/m32r/m32r.mt: New file.
1504 * m32r-rom.c (m32r_upload_command): Use hostent only when
1505 gethostname succeeds, in order to avoid a compilation
1507 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1510 2003-08-01 Michael Snyder <msnyder@redhat.com>
1512 * sh-tdep.c (sh_frame_align): New gdbarch method.
1513 (sh_gdbarch_init): Set up frame_align method.
1515 2003-07-31 Michael Snyder <msnyder@redhat.com>
1517 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1518 which is already covered by the new frames infrastructure.
1520 2003-07-31 Andrew Cagney <cagney@redhat.com>
1522 * user-regs.c (struct user_reg): Add "next" link.
1523 (struct user_regs): Replace "user" with "first" and "last" links.
1524 (append_user_reg): Add pre-allocated "reg" parameter.
1525 (builtin_user_regs): Provide initial value for "last".
1526 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1527 (user_regs_init): Allocate memory from the gdbarch obstack.
1528 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1529 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1531 (usernum_to_user_reg): New function.
1532 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1533 (value_of_user_reg): Use usernum_to_user_reg.
1534 (user_regs_free): Delete function.
1535 (_initialize_user_regs): Update register_gdbarch_data call.
1537 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1539 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1541 2003-07-30 Michael Snyder <msnyder@redhat.com>
1543 * value.h (value_being_returned): Add a struct_addr argument.
1544 * infcall.c (call_function_by_hand): Pass struct_addr to
1545 value_being_returned.
1546 * infcmd.c (print_return_value): Pass zero as struct_addr.
1547 * values.c (value_being_returned): If struct_addr is passed,
1548 use it instead of trying to recover it from the inferior.
1550 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1552 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1553 the prologue analyzer won't need to attempt to extract the pc
1554 value from the woefully incomplete dummy frame.
1555 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1556 possible. Disable code which modifies the frame.
1558 2003-07-28 Andrew Cagney <cagney@redhat.com>
1560 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1562 (annotate_breakpoints_table, annotate_record): Ditto.
1563 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1564 (annotate_field_name_end, annotate_field_value): Ditto.
1565 (annotate_field_end, annotate_frame_source_begin): Ditto.
1566 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1567 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1568 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1569 (annotate_frame_address_end, annotate_frame_address): Ditto.
1570 (annotate_frame_args, annotate_frame_end): Ditto.
1571 (annotate_frame_where, annotate_arg_begin): Ditto.
1572 (annotate_arg_name_end, annotate_arg_value): Ditto.
1573 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1574 (annotate_function_call, annotate_signal_name): Ditto.
1575 (annotate_signal_string, annotate_signal_name_end): Ditto.
1576 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1577 (annotate_value_begin, annotate_value_history_value): Ditto.
1578 (annotate_value_history_end, annotate_value_end): Ditto.
1579 (annotate_display_begin, annotate_display_number_end): Ditto.
1580 (annotate_display_format, annotate_display_expression): Ditto.
1581 (annotate_display_expression_end, annotate_display_value): Ditto.
1582 (annotate_display_end, annotate_array_section_begin): Ditto.
1583 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1584 (annotate_elt, annotate_array_section_end): Ditto.
1586 2003-07-28 Andrew Cagney <cagney@redhat.com>
1588 * regcache.c (struct regcache_descr): Update comments on
1590 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1591 sizeof_raw_register_valid_p.
1592 (init_regcache_descr): Set nr_raw_registers and
1593 sizeof_raw_register_valid_p before calling
1594 init_legacy_regcache_descr.
1596 2003-07-28 Andrew Cagney <cagney@redhat.com>
1598 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1601 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1603 * thread.c (info_threads_command): Use get_selected_frame ().
1604 Check that there is at least one non-sentinel frame.
1606 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1608 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1609 (m68hc11_pop_frame): Remove.
1610 (m68hc11_frame_saved_pc): Remove.
1611 (m68hc11_frame_chain): Remove.
1612 (m68hc11_frame_init_saved_regs): Remove.
1613 (m68hc11_init_extra_frame_info): Remove.
1614 (m68hc11_store_struct_return): Remove.
1615 (m68hc11_saved_pc_after_call): Remove.
1617 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1619 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1620 frame unwind information.
1621 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1622 and adapted for frame unwinding.
1623 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1624 (m68hc11_unwind_pc): New function.
1625 (m68hc11_frame_unwind_cache): New function to analyze frames.
1626 (m68hc11_frame_this_id): New function to create new frame struct.
1627 (m68hc11_frame_prev_register): New function to unwind a register from
1629 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1630 (m68hc11_frame_p): New function for the above.
1631 (m68hc11_frame_base_address): New function to return fp of frame.
1632 (m68hc11_frame_args_address): Update for frame.
1633 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1634 (m68hc11_unwind_sp): New function.
1635 (m68hc11_unwind_dummy_id): New function.
1636 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1639 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1641 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1642 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1643 when we are beyond the current pc.
1645 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1647 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1648 from m68hc11_push_arguments.
1649 (m68hc11_push_arguments): Remove.
1650 (m68hc11_push_return_address): Remove.
1651 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1652 handlers; remove deprecated_extra_stack_alignment_needed.
1654 2003-07-27 Andrew Cagney <cagney@redhat.com>
1656 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1657 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1658 REAL_PC and not the pointer.
1659 * hppa-hpux-tdep.c: Include frame.h
1661 2003-07-27 Andrew Cagney <cagney@redhat.com>
1663 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1664 GDB_MULTI_ACH_PARTIAL.
1666 2003-07-27 Andrew Cagney <cagney@redhat.com>
1668 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1669 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1670 operator at start and not end of line.
1671 (decode_prologue): Ditto.
1672 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1673 frame_unwind_register_unsigned instead of
1674 frame_unwind_unsigned_register.
1675 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1677 (m32r_push_dummy_call): Use register_size instead of
1679 (m32r_frame_sniffer): Replace m32r_frame_p.
1680 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1681 * m32r-rom.c (report_transfer_performance): Delete extern
1683 (m32r_load, m32r_upload_command): Use print_transfer_performance
1684 instead of report_transfer_performance.
1685 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1686 / add_show_from_set.
1688 2003-07-26 Andrew Cagney <cagney@redhat.com>
1690 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1691 store_return_value and extract_struct_value_address.
1693 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1696 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1697 NULL, default to the section containing PC.
1699 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1701 * NEWS: Mention "regs" deprecated for m68hc11 too.
1703 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1704 (m68hc11_print_register): New function to print out one register.
1705 (m68hc11_print_registers_info): New function to print registers.
1706 (show_regs): Deprecate and use the above.
1707 (m68hc11_gdbarch_init): Install the print_registers_info.
1709 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1711 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1712 that we have a SIGTRAP before returning non-zero.
1714 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1715 Elena Zannoni <ezannoni@redhat.com>
1717 * linespec.c (decode_line_2): Avoid crash if
1718 find_function_start_sal() returns empty record.
1720 2003-07-23 Andreas Schwab <schwab@suse.de>
1722 * ia64-tdep.c (ia64_print_insn): New function.
1723 (ia64_gdbarch_init): Set print_insn to it.
1724 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1725 deprecated_tm_print_insn_info.
1727 2003-07-22 Michael Snyder <msnyder@redhat.com>
1729 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1730 handle 8-bit returns (long long).
1731 (h8300h_extract_return_value): Ditto.
1732 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1734 2003-07-22 Andrew Cagney <cagney@redhat.com>
1736 * gdbarch.c Include "gdb_obstack.h".
1737 (struct gdbarch): Add an "obstack".
1738 (alloc_gdbarch_data): Allocate the gdbarch data using
1739 GDBARCH_OBSTACK_CALLOC.
1740 (free_gdbarch_data): Delete function.
1741 (gdbarch_obstack_zalloc): New function.
1742 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1743 Assert that the architecture is not initialized.
1744 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1745 vector from the obstack.
1746 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1747 architecture obstack.
1748 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1749 (set_gdbarch_data): Assert that the data is not initialized.
1750 (struct gdbarch_data): Delete member "free".
1751 (register_gdbarch_data): Do not initialize "free".
1752 * gdbarch.h, gdbarch.c: Re-generate.
1754 2003-07-22 Andrew Cagney <cagney@redhat.com>
1756 * configure.in (build_warnings): Add -Wformat-nonliteral.
1757 * configure: Re-generate.
1759 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1761 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1763 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1765 * findvar.c (read_var_value): Remove case for thread local storage
1766 variables. It is now entirely handled by the dwarf2 location
1768 * printcmd.c (address_info): Ditto.
1769 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1771 (struct symbol): Remove objfile field, which was used by
1772 LOC_THREAD_LOCAL_STATIC only.
1773 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1774 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1775 usage of objfile pointer.
1776 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1777 thread local variables.
1778 Add include of objfiles.h.
1779 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1781 * Makefile.in (dwarf2loc.o): Update dependencies.
1783 2003-07-22 Andrew Cagney <cagney@redhat.com>
1785 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1787 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1788 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1789 (struct value): Add opaque declaration.
1790 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1792 2003-07-21 Andrew Cagney <cagney@redhat.com>
1794 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1795 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1797 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1799 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1800 regcache_cooked_read_unsigned instead of read_register.
1801 (m68hc11_saved_pc_after_call): Likewise.
1802 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1803 instead of write_register.
1804 (m68hc11_register_type): New function.
1805 (m68hc11_register_virtual_type): Remove.
1806 (m68hc11_store_return_value): Convert to use the regcache.
1807 (m68hc11_extract_struct_value_address): Likewise.
1808 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1809 m68hc11_register_type; undeprecate store_return_value and
1810 extract_struct_value_address.
1812 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1814 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1815 and translate to use regcache.
1816 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1818 2003-07-18 Andrew Cagney <cagney@redhat.com>
1820 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1821 * gdbarch.h, gdbarch.c: Re-generate.
1822 * i386-tdep.c (i386_gdbarch_init): Do not set
1823 DWARF2_BUILD_FRAME_INFO.
1824 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1826 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1827 DWARF2_BUILD_FRAME_INFO.
1829 2003-07-18 Andrew Cagney <cagney@redhat.com>
1831 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1832 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1834 2003-07-18 Andrew Cagney <cagney@redhat.com>
1836 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1837 frame_unwind_address_in_block, instead of frame_pc_unwind.
1838 (dwarf2_frame_cache): Ditto.
1840 2003-07-18 Andrew Cagney <cagney@redhat.com>
1842 * user-regs.h (struct gdbarch): Declare opaque.
1843 * ui-out.h (struct ui_file): Declare opaque.
1844 * dwarf2-frame.h (struct frame_info): Declare opaque.
1846 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1848 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1850 (procfs_meminfo): Change strerror to safe_strerror.
1851 (procfs_can_run): Remove K&R badness.
1853 2003-07-17 Michael Snyder <msnyder@redhat.com>
1855 * remote-sim.c: Comment typo fix.
1857 2003-07-17 Andrew Cagney <cagney@redhat.com>
1859 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1861 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1862 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1863 GDB_MULTI_ARCH_PARTIAL.
1865 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1867 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1868 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1869 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1871 2003-07-16 Theodore A. Roth <troth@openavr.org>
1873 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1875 (avr_frame_unwind_cache): Don't unwind FP for main.
1877 Save the computed prev_sp.
1878 (avr_saved_regs_unwinder): Remove function.
1879 (avr_frame_prev_register): Use PC unwind logic from
1880 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1882 2003-07-16 Andrew Cagney <cagney@redhat.com>
1884 * frame-base.h (frame_base_p_ftype): Delete definition.
1885 (frame_base_append_predicate): Delete declaration.
1886 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1887 (frame_unwind_append_predicate): Delete declaration.
1888 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1889 (append_predicate): Delete parameter "p".
1890 (frame_unwind_append_predicate): Delete function.
1891 (frame_unwind_append_sniffer): Update call to append_predicate.
1892 (frame_unwind_free): Delete function.
1893 (_initialize_frame_unwind): Pass NULL as "free" to
1894 register_gdbarch_data.
1895 (frame_unwind_init): Append the dummy_frame_sniffer.
1896 (frame_unwind_find_by_frame): Simplify.
1897 * frame-base.c (struct frame_base_table): Delete field "p".
1898 (append_predicate): Delete parameter "p".
1899 (frame_base_append_predicate): Delete function.
1900 (frame_base_append_sniffer): Update call to append_predicate.
1901 (frame_base_free): Delete function.
1902 (frame_base_find_by_frame): Simplify.
1903 (_initialize_frame_base): Pass NULL as "free" to
1904 register_gdbarch_data.
1905 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1906 (x86_64_sigtramp_frame_sniffer): Replace
1907 "x86_64_sigtramp_frame_p".
1908 (x86_64_init_abi): Set the frame unwind sniffers.
1909 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1910 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1911 (m68k_gdbarch_init): Set the frame unwind sniffers.
1912 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1913 "i386_sigtramp_frame_p".
1914 (i386_frame_sniffer): Replace "i386_frame_p".
1915 (i386_gdbarch_init): Set the frame unwind sniffers.
1916 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1917 (avr_gdbarch_init): Set the frame unwind sniffers.
1918 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1919 "alpha_sigtramp_frame_p"
1920 (alpha_heuristic_frame_sniffer): Replace
1921 "alpha_heuristic_frame_p".
1922 (alpha_gdbarch_init): Set the frame unwind sniffers.
1923 (alpha_dwarf2_init_abi): Ditto.
1924 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1925 "alpha_debug_frame_p".
1926 (alpha_mdebug_frame_base_sniffer): Replace
1927 "alpha_mdebug_frame_base_p".
1928 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1929 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1930 (d10v_gdbarch_init): Set the frame unwind sniffer.
1931 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1932 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1933 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1934 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1935 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1936 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1938 2003-07-16 Michael Snyder <msnyder@redhat.com>
1940 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1941 should go thru sh_dsp_register_sim_regno, else the dsp regs
1942 will not get the right values.
1944 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1946 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1947 deprecated_store_floating by call to store_typed_floating.
1948 (sh_sh4_register_convert_to_raw): Substitute call to
1949 deprecated_extract_floating by call to extract_typed_floating.
1951 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1953 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1955 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1957 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1958 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1959 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1961 (do_pseudo_register): Remove.
1962 (sh_push_dummy_code): New function.
1963 (sh64_store_struct_return): Rename from sh_store_struct_return.
1964 Only called for sh64 now.
1965 (sh_extract_struct_value_address): Regcache'ify.
1966 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1967 and accomodate new tasks.
1968 (sh64_push_return_address): Rename from sh_push_return_address.
1969 Only called for sh64 now.
1970 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1972 (sh3e_sh4_extract_return_value): Regcache'ify.
1973 (sh_default_store_return_value): Ditto.
1974 (sh3e_sh4_store_return_value): Ditto.
1975 (sh_default_register_byte): Remove.
1976 (sh_sh4_register_byte): Remove.
1977 (sh_default_register_raw_size): Remove.
1978 (sh_sh4_register_raw_size): Remove.
1979 (sh_register_virtual_size): Remove.
1980 (sh_sh3e_register_virtual_type): Remove.
1981 (sh_sh3e_register_type): New function.
1982 (sh_sh4_register_virtual_type): Remove.
1983 (sh_sh4_register_type): New function.
1984 (sh_default_register_virtual_type): Remove.
1985 (sh_default_register_type): New function.
1986 (do_fv_register_info): Add parameters to accomodate call from
1987 sh_print_registers_info.
1988 (do_dr_register_info): Ditto.
1989 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1990 Add parameters to accomodate call from sh_print_registers_info.
1991 (sh_do_fp_register): Ditto.
1992 (sh64_do_pseudo_register): Call do_dr_register_info,
1993 do_fv_register_info and sh_do_fp_register with default parameters.
1994 (sh_do_register): Add parameters to accomodate call from
1995 sh_print_registers_info.
1996 (sh_print_register): Ditto.
1997 (sh_print_registers_info): Rename from sh_do_registers_info.
1998 Add parameters to be used as gdbarch_print_registers_info
1999 implementation. Accomodate removed do_pseudo_register function
2001 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2002 function pointer. Call sh_print_register with default parameters.
2003 (sh64_do_registers_info): Call sh_print_registers_info instead of
2004 sh_do_registers_info.
2005 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2006 detection of deprecated vs. non-deprecated functionality.
2007 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2008 function pointer assignments by direct function calls.
2010 2003-07-15 Andrew Cagney <cagney@redhat.com>
2012 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2013 (frame_register_unwind, create_new_frame): Ditto.
2014 (legacy_get_prev_frame, get_frame_type): Ditto.
2015 (get_frame_base_address): Use frame_base_find_by_frame.
2016 (get_frame_locals_address): Use frame_base_find_by_frame.
2017 (get_frame_args_address): Use frame_base_find_by_frame.
2018 * frame-base.h (frame_base_sniffer_ftype): Declare.
2019 (frame_base_append_sniffer): Declare.
2020 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2021 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2022 (frame_base_append_sniffer): New function.
2023 (frame_base_append_predicate): Add a NULL sniffer.
2024 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2025 (struct frame_base_table): Add "sniffer".
2026 (frame_base_free): Free the "sniffer" table.
2027 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2028 (frame_unwind_append_sniffer): Declare.
2029 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2030 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2031 (struct frame_unwind_table): Add "sniffer", delete "middle".
2032 (append_predicate): Add "sniffer" parameter, append the sniffer.
2033 (frame_unwind_init): Update append_predicate call.
2034 (frame_unwind_append_sniffer): New function.
2035 (frame_unwind_append_predicate): Update append_predicate call.
2036 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2038 2003-07-15 Andrew Cagney <cagney@redhat.com>
2040 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2041 before code inhibiting repeated unwind attempts. Add to
2042 commentary on that test's problems.
2043 * blockframe.c (inside_main_func): Look for "main" in the minimal
2045 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2048 2003-07-15 Andrew Cagney <cagney@redhat.com>
2050 * complaints.c (struct explanation): Define.
2051 (struct complaints): Change type of "explanation" to "struct
2053 (symfile_explanations): Convert to a "struct explanation" table.
2054 (vcomplaint): Update.
2056 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2058 * x86-64-linux-nat.c (regmap): Removed.
2059 (supply_gregset, fill_gregset): Call
2060 x86_64_linux_(fill,supply)_gregset functions.
2061 * x86-64-linux-tdep.c (USER_*): New defines.
2062 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2063 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2065 (fetch_core_registers): Ditto.
2066 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2067 * x86-64-linux-tdep.h: New file.
2068 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2070 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2072 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2074 * x86-64-tdep.c (x86_64_store_return_value): Use
2075 regcache_cooked_write_part instead of regcache_cooked_write.
2077 * configure.host: Add x86_64-*-freebsd*.
2078 * configure.tgt: Add x86_64-*-freebsd*.
2079 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2080 * amd64fbsd-nat.c: New file.
2081 * amd64fbsd-tdep.c: New file.
2082 * config/i386/nm-fbsd64.h: New file.
2083 * config/i386/fbsd64.mh: New file.
2084 * config/i386/fbsd64.mt: New file.
2086 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2088 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2089 `sc_regs_offset' and `sc_fpregs_offset'.
2090 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2091 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2092 (alpha_sigtramp_register_address): Rewrite to use new members of
2093 `struct gdbarch_tdep'.
2094 (alpha_gdbarch_init): Initialize new members of struct
2096 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2097 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2098 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2099 (alphafbsd_pc_in_sigtramp): Implement.
2100 (alphafbsd_sigtramp_offset): New function.
2101 (alphafbsd_sigcontext_addr): New function.
2102 (alphafbsd_init_abi): Initialize signal trampoline related members
2103 of `struct gdbarch_tdep'.
2104 (_initialize_alphafbsd_tdep): Add prototype.
2106 2003-07-11 Theodore A. Roth <troth@openavr.org>
2108 * Makefile.in (install-only): Quote sed expression when generating
2111 2003-07-11 Richard Henderson <rth@redhat.com>
2113 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2114 * dwarf2-frame.c: Include complaints.h.
2115 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2116 variable initialization; return NULL on error.
2117 (decode_frame_entry): New.
2119 2003-07-11 Andrew Cagney <cagney@redhat.com>
2121 * frame.h (frame_address_in_block): Delete declaration.
2122 * blockframe.c (frame_address_in_block): Delete function.
2123 (get_frame_block): Use get_frame_address_in_block.
2124 (block_innermost_frame): Ditto.
2125 * stack.c (print_frame, backtrace_command_1): Ditto.
2127 * frame.h (get_frame_address_in_block): Declare.
2128 (frame_unwind_address_in_block): Declare.
2129 * frame.c (frame_unwind_address_in_block): New function.
2130 (get_frame_address_in_block): New function.
2132 2003-07-10 Andrew Cagney <cagney@redhat.com>
2134 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2135 pre-default. Note: re-generate has no effect.
2137 2003-07-10 Andrew Cagney <cagney@redhat.com>
2139 * gdbarch.sh: When a variable, but not a function, compare against
2140 0. Fix problem in previous patch.
2141 * gdbarch.c: Re-generate.
2143 2003-07-10 Andrew Cagney <cagney@redhat.com>
2145 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2146 functions against NULL, not 0.
2147 * gdbarch.c: Re-generate.
2149 2003-07-10 Fred Fish <fnf@ninemoons.com>
2151 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2152 null string instead of a null pointer.
2153 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2155 2003-07-09 Michael Snyder <msnyder@redhat.com>
2157 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2159 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2161 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2162 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2163 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2164 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2165 * x86-64-tdep.c: ... from here.
2167 2003-07-09 Andreas Schwab <schwab@suse.de>
2169 * m68k-tdep.h (enum struct_return): Define.
2170 (struct gdbarch_tdep): Add struct_return.
2171 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2172 bytes are padded to the right, not to the left. Pass struct value
2173 address in register %a1, not on stack.
2174 (m68k_use_struct_convention): New function.
2175 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2176 struct_return in tdep to pcc_struct_return.
2177 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2180 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2182 * somread.c (som_symfile_offsets): Fix compilation error.
2184 2003-07-09 Andrew Cagney <cagney@redhat.com>
2186 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2187 Add comments about the checks.
2189 2003-07-08 Andrew Cagney <cagney@redhat.com>
2191 * Makefile.in: Make dependency section headers consistent.
2192 (config_h): Move to $BUILD headers section.
2193 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2194 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2195 (ada-exp.tab.c): Move to YACC/LEX section.
2196 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2197 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2199 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2201 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2202 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2203 of strerror with safe_strerror, use ISO C function definitions,
2204 and replace instances of sprintf with snprintf.
2206 2003-07-07 Andrew Cagney <cagney@redhat.com>
2208 * frame.c (get_prev_frame): Enable check for identical frames.
2209 Update comments. Update error messages.
2211 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2213 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2215 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2217 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2218 sort_symtab_syms, no longer necessary.
2220 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2222 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2224 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2226 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2227 (mips_register_byte): Likewise.
2229 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2231 * Makefile.in (sparc_tdep_h): New.
2232 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2233 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2234 * sparc-linux-nat.c: Include "sparc-tdep.h".
2235 * sparc-nat.c: Likewise.
2236 * sparc-tdep.c: Likewise.
2237 * sparc64nbsd-nat.c: Likewise.
2238 * sparcnbsd-nat.c: Likewise.
2239 * sparcnbsd-tdep.c: Likewise.
2240 * sparc-tdep.h: New file.
2241 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2242 and sparc_npc_regnum.
2244 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2246 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2247 (mips_linux_cannot_store_register): List supported instead of
2248 unsupported registers.
2250 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2252 * disasm.c (dump_insns): Separate instructions from addresses.
2254 2003-07-07 Andreas Schwab <schwab@suse.de>
2256 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2258 * m68k-tdep.c (NUM_FREGS): Delete.
2259 (SIG_PC_FP_OFFSET): Delete.
2260 (TARGET_M68K): Delete.
2261 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2262 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2263 P_MOVEL_SP, P_MOVEML_SP): Define.
2264 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2266 (m68k_register_raw_size): Delete.
2267 (m68k_register_virtual_size): Delete.
2268 (m68k_register_type): Renamed from m68k_register_virtual_type and
2269 add gdbarch argument.
2270 (m68k_store_struct_return): Delete.
2271 (m68k_deprecated_extract_return_value): Delete.
2272 (m68k_deprecated_extract_struct_value_address): Delete.
2273 (m68k_frame_chain): Delete.
2274 (m68k_frame_saved_pc): Delete.
2275 (m68k_fix_call_dummy): Delete.
2276 (m68k_push_dummy_frame): Delete.
2277 (m68k_pop_frame): Delete.
2278 (m68k_extract_return_value): New function.
2279 (m68k_store_return_value): Rewrite using regcache.
2280 (m68k_extract_struct_value_address): Rewrite using regcache.
2281 (m68k_push_dummy_call): New function.
2282 (struct m68k_frame_cache): Define.
2283 (m68k_alloc_frame_cache): New function.
2284 (m68k_analyze_frame_setup): New function.
2285 (m68k_analyze_register_saves): New function.
2286 (m68k_analyze_prologue): New function.
2287 (m68k_skip_prologue): Rewrite using above functions.
2288 (m68k_unwind_pc): New function.
2289 (m68k_frame_cache): New function.
2290 (m68k_frame_this_id): New function.
2291 (m68k_frame_prev_register): New function.
2292 (m68k_frame_unwind): New variable.
2293 (m68k_frame_p): New function.
2294 (m68k_sigtramp_frame_cache): New function.
2295 (m68k_sigtramp_frame_this_id): New function.
2296 (m68k_sigtramp_frame_prev_register): New function.
2297 (m68k_sigtramp_frame_unwind): New variable.
2298 (m68k_sigtramp_frame_p): New function.
2299 (m68k_frame_base_address): New function.
2300 (m68k_frame_base): New function.
2301 (m68k_unwind_dummy_id): New function.
2302 (fill_gregset): Use regcache_collect.
2303 (fill_fpregset): Likewise.
2304 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2306 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2307 deprecated_init_frame_pc, deprecated_store_struct_return,
2308 deprecated_extract_return_value, deprecated_store_return_value,
2309 deprecated_frame_chain, deprecated_frame_saved_pc,
2310 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2311 deprecated_register_virtual_size,
2312 deprecated_max_register_raw_size,
2313 deprecated_max_register_virtual_size,
2314 deprecated_register_virtual_type, deprecated_register_size,
2315 deprecated_register_byte, deprecated_register_bytes,
2316 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2317 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2318 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2319 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2320 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2321 deprecated_push_dummy_frame, deprecated_pop_frame,
2322 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2323 only if SYSCALL_TRAP is defined. Set extract_return_value,
2324 store_return_value, extract_struct_value_address, register_type,
2325 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2327 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2328 M68K_MAX_REGISTER_SIZE): Define.
2329 (struct m68k_sigtramp_info): Define.
2330 (struct gdbarch_tdep): Add get_sigtramp_info.
2331 * m68klinux-nat.c (fetch_register): Use register_size instead of
2332 REGISTER_RAW_SIZE. Don't put assignment in if.
2333 (store_register): Likewise.
2334 (fetch_inferior_registers): Likewise.
2335 (store_inferior_registers): Likewise.
2336 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2337 (m68k_linux_frame_saved_pc): Delete.
2338 (m68k_linux_sigcontext_reg_offset,
2339 m68k_linux_ucontext_reg_offset): Define.
2340 (m68k_linux_get_sigtramp_info): New function.
2341 (m68k_linux_extract_return_value): Rewrite using regcache.
2342 (m68k_linux_store_return_value): Likewise.
2343 (m68k_linux_extract_struct_value_address): Likewise.
2344 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2345 Don't set deprecated_frame_saved_pc,
2346 deprecated_extract_return_value, deprecated_store_return_value,
2347 deprecated_extract_struct_value_address. Set
2348 extract_return_value, store_return_value,
2349 extract_struct_value_address.
2351 2003-07-07 Andrew Cagney <cagney@redhat.com>
2353 * expprint.c: Include "user-regs.h" instead of "frame.h".
2354 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2355 frame_map_regnum_to_name.
2356 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2357 (frame_map_name_to_regnum): Simplify, call
2358 user_reg_map_name_to_regnum.
2359 (frame_map_regnum_to_name): Simplify, call
2360 user_reg_map_regnum_to_name.
2361 (frame_register_unwind): Update.
2362 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2363 (_initialize_frame_reg): Call user_reg_add_builtin.
2364 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2365 (value_of_register): Use value_of_user_reg.
2366 * eval.c (evaluate_subexp_standard): Update.
2367 * parse.c (write_dollar_variable): Update.
2368 * d10v-tdep.c (d10v_print_registers_info): Update.
2369 * infcmd.c (registers_info): Update.
2370 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2371 (builtin_regs_h): Delete macro.
2372 (user_regs_h): Define.
2373 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2374 (builtin-regs.o): Delete target.
2375 (user-regs.o): Specify dependencies.
2376 (expprint.o): Update dependencies.
2377 (findvar.o): Update dependencies.
2378 (frame.o): Update dependencies.
2379 (std-regs.o): Update dependencies.
2381 2003-07-06 Christopher Faylor <cgf@redhat.com>
2383 * win32-nat.c (solib_symbols_add): Use one variable for all section
2384 address stuff. Pass variable rather than address of variable to
2385 safe_symbol_file_add.
2387 2003-07-06 Andreas Schwab <schwab@suse.de>
2389 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2391 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2393 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2395 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2397 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2399 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2401 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2402 * config/i386/nto.mh: New file.
2403 * config/i386/nm-nto.h: New file.
2404 * configure.host: Add i[3456]86-*-nto*.
2406 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2408 * remote-vx.c (vx_add_symbols): Fix compilation error.
2410 2003-07-03 Andrew Cagney <cagney@redhat.com>
2412 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2413 * gdbarch.h, gdbarch.c: Re-generate.
2414 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2415 (legacy_register_name): Declare.
2416 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2417 (REGISTER_NAME): Define.
2418 * sparc-tdep.c (legacy_register_name): New function.
2419 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2420 (REGISTER_NAME): Define.
2421 (hppa64_register_name): Declare.
2422 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2423 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2424 (hppa64_register_name): New function.
2425 (hppa_register_name): New function.
2426 * arch-utils.c (legacy_register_name): Delete.
2427 * arch-utils.h (legacy_register_name): Delete.
2429 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2431 * cli/cli-interp.c (cli_interpreter_resume): Update the
2432 cli_uiout's stream to gdb_stdout.
2434 2003-07-03 Andrew Cagney <cagney@redhat.com>
2436 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2438 * gdbarch.h, gdbarch.c: Re-generate.
2439 * regcache.c (init_regcache_descr): Use legacy code when either
2440 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2442 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2444 * NEWS: Move "set logging" entry into GDB 6.0 section.
2446 2003-07-02 Jim Blandy <jimb@redhat.com>
2448 * s390-tdep.c (struct frame_extra_info): new member:
2449 'stack_bought_valid'.
2450 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2451 initialize fextra_info->stack_bought.
2452 (s390_frameless_function_invocation): Don't trust the value of
2453 fextra_info_ptr->stack_bought unless
2454 fextra_info->stack_bought_valid is set.
2456 New S390 prologue analyzer.
2457 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2458 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2459 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2460 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2461 compute_x_addr, s390_on_stack, s390_store,
2462 s390_get_signal_frame_info): New functions.
2463 (S390_NUM_SPILL_SLOTS): New macro.
2464 (s390_get_frame_info): Rewritten.
2465 (is_arg_reg): Deleted.
2467 Break out the decoding of S/390 instructions into separate
2468 functions, to make it more legible, and easier to check
2470 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2471 is_rx, is_rxe): New functions.
2472 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2473 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2474 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2475 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2476 enums for opcode values. (Is this an improvement?)
2478 2003-07-02 Andrew Cagney <cagney@redhat.com>
2480 * i386-tdep.c: Revert change committed as part of trad-frame code
2483 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2485 * breakpoint.c (insert_catchpoint): Make static.
2487 2003-07-02 Andreas Schwab <schwab@suse.de>
2489 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2490 former ia64_push_arguments and ia64_push_return_address, and use
2491 regcache functions instead of read/write_register.
2492 (ia64_gdbarch_init): Set push_dummy_call instead of
2493 deprecated_push_arguments and deprecated_push_return_address.
2495 2003-07-01 Andreas Jaeger <aj@suse.de>
2497 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2499 Set %rax only to number of SSE registers used.
2501 2003-07-01 Andrew Cagney <cagney@redhat.com>
2503 * trad-frame.h: Update comments, a -1 .addr is reserved.
2504 (trad_frame_value_p, trad_frame_addr_p): Declare.
2505 (trad_frame_reg_p): Declare.
2506 (trad_frame_set_value): Rename trad_frame_register_value.
2507 (trad_frame_set_unknown): Declare.
2508 * trad-frame.c (trad_frame_realreg_p): New function.
2509 (trad_frame_addr_p, trad_frame_value_p): New function.
2510 (trad_frame_set_unknown): New function.
2511 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2512 (trad_frame_prev_register): Use trad_frame_realreg_p,
2513 trad_frame_addr_p and trad_frame_value_p.
2514 (trad_frame_set_value): Rename trad_frame_register_value.
2515 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2516 and trad_frame_set_value.
2518 2003-06-30 Jim Blandy <jimb@redhat.com>
2520 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2521 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2522 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2523 for 16 registers, and then 32 more bytes.
2524 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2526 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2527 Move up in the file, since it's now used by is_simple_arg.
2528 (is_simple_arg): Don't assume registers are four bytes long.
2529 Exclude all double arguments. Extended floats are not simple
2531 (is_power_of_two): New function.
2532 (pass_by_copy_ref): Call is_power_of_two, and check that the
2533 length fits in a register, rather than listing all the acceptable
2534 sizes. Extended floats are not passed by reference.
2535 (s390_push_arguments): Don't assume registers are four bytes long.
2536 Reserve an argument register to point to the buffer for structures
2537 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2538 S390_STACK_FRAME_OVERHEAD.
2540 2003-06-30 Andreas Schwab <schwab@suse.de>
2542 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2543 format error message.
2545 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2547 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2549 2003-06-30 David Carlton <carlton@kealia.com>
2551 Band-aid for PR c++/1245.
2552 * Makefile.in (cp-support.o): Depend on complaints_h.
2553 * cp-support.c: Include complaints.h. Add declaration for
2554 find_last_component.
2555 (cp_find_first_component): Separate code into
2556 cp_find_first_component_aux.
2557 (cp_find_first_component_aux): Call demangled_name_complaint.
2558 (demangled_name_complaint): New.
2560 2003-06-30 Andrew Cagney <cagney@redhat.com>
2562 * remote.c (remote_write_bytes): Explicitly compute and then use
2563 the payload size. Update comments to reflect. Fixes problem of
2564 GDB not sending small packets as found by Fred Fish.
2566 2003-06-30 Andrew Cagney <cagney@redhat.com>
2568 * remote.c (remote_async_wait): Fix -Wformat problem.
2570 2003-06-29 Andrew Cagney <cagney@redhat.com>
2572 * remote.c (remote_wait): Call error, and not warning, when the
2574 (remote_async_wait): Ditto.
2576 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2578 * sparc-tdep.c (sparc_y_regnum): Make external again.
2580 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2582 * cli/cli-logging.c (pop_output_files): Add void to function
2585 2003-06-29 Andrew Cagney <cagney@redhat.com>
2587 * frame.c (frame_register_unwind): Use unsigned char when dumping
2588 the buffer contents.
2590 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2592 * cli/cli-logging.c: New file.
2593 * cli-out.c (struct ui_out_data): Add original_stream.
2594 (cli_redirect): New function.
2595 (cli_ui_out_impl): Add cli_redirect.
2596 (cli_out_new): Initialize original_stream.
2597 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2598 (uo_redirect, ui_out_redirect): New.
2599 * ui-out.h (struct ui_out_impl): Add redirect member.
2600 (redirect_ftype): New.
2601 (ui_out_redirect): Add prototype.
2602 * Makefile.in: Add rules for cli-logging.c.
2603 * NEWS: Mention "set logging".
2605 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2607 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2609 2003-06-27 Andrew Cagney <cagney@redhat.com>
2611 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2612 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2613 * avr-tdep.c (avr_call_dummy_address): Delete function.
2614 (avr_gdbarch_init): Do not set call_dummy_address.
2616 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2618 * symfile.c (syms_from_objfile): Move variables to inner block.
2619 Move the checks for the non-mainline case a bit earlier to avoid
2620 doing some useless computations.
2622 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2624 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2626 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2628 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2631 2003-06-26 Michael Chastain <mec@shout.net>
2633 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2634 gdb/testsuite/gdb.c++/pr-1210.exp.
2636 2003-06-26 Andrew Cagney <cagney@redhat.com>
2638 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2639 altivec_expression.h and altivec_registers.h.
2641 2003-06-26 Andrew Cagney <cagney@redhat.com>
2643 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2644 info->mach when MIPS16. Patch suggested by Fred Fish.
2646 2003-06-26 Andrew Cagney <cagney@redhat.com>
2648 * utils.c (internal_vproblem): Print the problem to a reason
2649 buffer and then pass to query. Make the msg variable more local.
2651 2003-06-26 Andrew Cagney <cagney@redhat.com>
2653 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2654 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2655 * gdbarch.h, gdbarch.c: Re-generate.
2656 * frame-base.c (default_frame_args_address): Update. Use
2657 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2659 (default_frame_locals_address): Ditto for
2660 DEPRECATED_FRAME_LOCALS_ADDRESS.
2661 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2662 (vax_frame_num_args): Update.
2663 (vax_gdbarch_init): Update.
2664 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2665 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2666 * mcore-tdep.c (mcore_gdbarch_init): Update.
2667 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2668 * ia64-tdep.c (ia64_gdbarch_init): Update.
2669 * symtab.h (address_class): Update comments.
2670 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2671 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2672 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2673 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2674 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2675 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2676 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2677 * alpha-mdebug-tdep.c: Update.
2678 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2680 2003-06-26 Andreas Jaeger <aj@suse.de>
2682 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2683 of SSE registers so that varargs functions work. Rework handling
2684 of passing arguments on the stack.
2685 (x86_64_store_return_value): Return double and float values in SSE
2688 2003-06-24 Michael Chastain <mec@shout.net>
2690 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2691 the "constructor breakpoints ignored" bug.
2693 2003-06-25 David Carlton <carlton@kealia.com>
2695 * MAINTAINERS: Update e-mail address.
2697 2003-06-24 Jim Blandy <jimb@redhat.com>
2699 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2701 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2703 (ppc_linux_init_abi): Register it as the
2704 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2706 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2707 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2710 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2711 (ppc64_standard_linkage_target): Use it.
2713 2003-06-23 Andrew Cagney <cagney@redhat.com>
2715 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2716 for 0 "int0" and 4 "int32" sized registers.
2717 * gdbtypes.c (builtin_type_int0): Define.
2718 (build_gdbtypes): Initialize builtin_type_int0.
2719 * gdbtypes.h (builtin_type_int0): Declare.
2721 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2723 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2724 as characters are unsigned.
2726 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2729 * dwarfread.c (struct_type): Skip static fields without crashing.
2731 2003-06-22 Andrew Cagney <cagney@redhat.com>
2733 GDB 6.0 branch created.
2735 * PROBLEMS: Update. Empty.
2738 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2740 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2741 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2743 2003-06-22 Andrew Cagney <cagney@redhat.com>
2745 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2746 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2749 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2751 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2754 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2756 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2757 argument of val_print.
2758 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2759 to the address argument of baseclass_offset or target_read_memory.
2760 Do add it to the argument of cp_print_value_fields.
2762 2003-06-21 Andrew Cagney <cagney@redhat.com>
2764 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2765 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2766 instead of 0..NUM_REGS.
2767 (mips_register_reggroup_p): New function.
2768 (mips_pseudo_register_write): New function.
2769 (mips_pseudo_register_read): New function.
2770 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2771 based on the register's type.
2772 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2774 (mips_get_saved_register): Simplify. Assert that REGNO is a
2776 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2777 (mips_register_type): Replace mips_register_virtual_type. Map
2778 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2780 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2781 that the register is cooked / virtual.
2782 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2783 Only get the extra info when needed.
2784 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2785 (mips32_heuristic_proc_desc): Fetch the cooked register.
2786 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2787 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2788 (mips_print_register): Use gdbarch_register_type, instead of
2789 REGISTER_VIRTUAL_TYPE.
2790 (print_gp_register_row): Use gdbarch_register_type, instead of
2791 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2792 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2793 Print the pseudo / cooked registers.
2794 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2795 Print the pseudo / cooked registers.
2796 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2797 REG_NUM is pseudo / cooked.
2798 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2799 (mips_n32n64_xfer_return_value): Ditto.
2800 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2801 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2802 (mips_register_sim_regno): New function.
2803 (mips_gdbarch_init): Set deprecated_register_byte,
2804 register_group_p, pseudo_register_write, pseudo_register_read,
2805 register_sim_regno, and num_pseudo_regs. Set register_type,
2806 instead of register_virtual_type.
2807 * Makefile.in (mips-tdep.o): Update dependencies.
2808 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2809 REGISTER_VIRTUAL_TYPE.
2810 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2811 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2812 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2813 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2814 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2816 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2818 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2819 * cli/cli-cmds.c: Include "gdb_vfork.h".
2820 (shell_escape): Use vfork.
2822 2003-06-21 Andrew Cagney <cagney@redhat.com>
2824 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2825 32 bit floating-point register saves.
2827 * frame.h (deprecated_unwind_get_saved_register): Delete.
2828 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2829 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2830 and deprecated_get_next_frame_hack instead of
2831 deprecated_unwind_get_saved_register.
2833 * mips-tdep.c (mips_dump_tdep): Do not print
2834 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2836 * frame.c (get_frame_register): New function.
2837 (frame_unwind_register_signed): New function.
2838 (get_frame_register_signed): New function.
2839 (frame_unwind_register_unsigned): New function.
2840 (get_frame_register_unsigned): New function.
2841 * frame.h: Add comments on naming schema.
2842 (get_frame_register, frame_unwind_register_signed): Declare.
2843 (get_frame_register_signed, get_frame_register_signed): Declare.
2844 (frame_unwind_register_unsigned): Declare.
2845 (get_frame_register_unsigned): Declare.
2847 2003-06-20 Theodore A. Roth <troth@openavr.org>
2849 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2851 2003-06-20 Theodore A. Roth <troth@openavr.org>
2853 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2854 (avr_read_sp): Ditto.
2856 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2858 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2859 * config/arm/nm-linux.h: Likewise.
2860 * config/arm/tm-linux.h: Likewise.
2861 * config/ia64/nm-linux.h: Likewise.
2862 * config/ia64/tm-ia64.h: Likewise.
2863 * config/s390/tm-linux.h: Likewise.
2864 * config/s390/tm-s390.h: Likewise.
2865 * s390-nat.c: Likewise.
2866 * s390-tdep.c: Likewise.
2868 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2869 * config/ia64/linux.mt: Likewise.
2870 * config/m68k/linux.mh: Likewise.
2871 * config/mips/linux.mt: Likewise.
2872 * config/powerpc/linux.mh: Likewise.
2873 * config/sh/linux.mt: Likewise.
2875 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2877 * solib.c (solib_open): Change tests for whether to search
2878 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2881 2003-06-19 Theodore A. Roth <troth@openavr.org>
2883 * avr-tdep.c (avr_frame_address): Delete function.
2884 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2885 set_gdbarch_frame_args_address.
2887 2003-06-19 Andrew Cagney <cagney@redhat.com>
2889 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2890 (REGISTER_CONVERT_FROM_TYPE): Delete.
2891 (mips_register_convert_to_type): Delete declaration.
2892 (mips_register_convert_from_type): Delete declaration.
2893 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2896 2003-06-19 Michael Snyder <msnyder@redhat.com>
2898 * linux-nat.h: New file.
2899 * linux-nat.c: Include linux-nat.h.
2900 * lin-lwp.c: Include linux-nat.h.
2901 Move struct lwp_info def to linux-nat.h.
2902 * linux-proc.c: Include linux-nat.h.
2903 (linux_make_note_section): Iterate over lwps instead of threads.
2904 (linux_do_thread_registers): Use lwp instead of merged pid.
2905 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2906 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2907 Add dependency on linux_nat_h.
2909 2003-06-19 Theodore A. Roth <troth@openavr.org>
2911 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2913 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2915 * varobj.c (get_type, get_target_type): Use check_typedef.
2917 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2919 * breakpoint.c (insert_catchpoint): Call internal_error.
2921 2003-06-19 Theodore A. Roth <troth@openavr.org>
2923 * avr-tdep.c (avr_push_dummy_code): Delete function.
2924 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2926 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2928 * arch-utils.c (default_prepare_to_proceed): Remove.
2929 (generic_prepare_to_proceed): Remove.
2930 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2931 (generic_prepare_to_proceed): Remove prototype.
2932 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2933 * gdbarch.c: Regenerate.
2934 * gdbarch.h: Regenerate.
2935 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2936 * hppah-nat.c (hppa_switched_threads): Remove.
2937 * infrun.c (prepare_to_proceed): New static function, copied from
2938 generic_prepare_to_proceed. Remove select_it argument.
2939 (proceed): Call prepare_to_proceed.
2940 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2942 (ptrace_wait): Don't set the removed variables.
2943 (hppa_switched_threads): Remove.
2944 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2945 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2946 (lin_lwp_prepare_to_proceed): Remove prototype.
2947 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2948 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2950 2003-06-18 Theodore A. Roth <troth@openavr.org>
2952 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2954 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2955 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2956 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2957 (AVR_PROLOGUE_*): Enumerate prologue types.
2958 (struct frame_extra_info): Remove.
2959 (struct avr_unwind_cache): Define.
2960 (avr_write_sp): Delete function.
2961 (avr_read_fp): Ditto.
2962 (avr_init_extra_frame_info): Ditto.
2963 (avr_pop_frame): Ditto.
2964 (avr_frame_saved_pc): Ditto.
2965 (avr_saved_pc_after_call): Ditto.
2966 (avr_push_return_address): Ditto.
2967 (avr_frame_chain): Ditto.
2968 (avr_store_struct_return): Ditto.
2969 (avr_push_arguments): Ditto.
2970 (avr_scan_prologue): Update comments. Changed to set up the info for
2971 cache unwinding. Now returns end of prologue PC.
2972 (avr_skip_prologue): Better handling of functions lacking a prologue
2973 by using avr_scan_prologue.
2974 (avr_scan_arg_moves): New function.
2975 (avr_saved_regs_unwinder): Ditto.
2976 (avr_frame_unwind_cache): Ditto.
2977 (avr_unwind_pc): Ditto.
2978 (avr_frame_this_id): Ditto.
2979 (avr_frame_prev_register): Ditto.
2980 (avr_frame_p): Ditto.
2981 (avr_frame_base_address ): Ditto.
2982 (avr_unwind_dummy_id): Ditto.
2983 (avr_push_dummy_code): Ditto.
2984 (push_stack_item): Ditto.
2985 (pop_stack_item): Ditto.
2986 (avr_push_dummy_call): Ditto.
2987 (struct stack_item): Define.
2988 (avr_frame_unwind): Declare structure.
2989 (avr_frame_base): Ditto.
2990 (avr_gdbarch_init): Remove calls to
2991 set_gdbarch_deprecated_init_frame_pc,
2992 set_gdbarch_deprecated_target_read_fp,
2993 set_gdbarch_deprecated_dummy_write_sp,
2994 set_gdbarch_deprecated_fp_regnum,
2995 set_gdbarch_deprecated_push_arguments,
2996 set_gdbarch_deprecated_push_return_address,
2997 set_gdbarch_deprecated_pop_frame,
2998 set_gdbarch_deprecated_store_struct_return,
2999 set_gdbarch_deprecated_frame_init_saved_regs,
3000 set_gdbarch_deprecated_init_extra_frame_info,
3001 set_gdbarch_deprecated_frame_chain,
3002 set_gdbarch_deprecated_frame_saved_pc,
3003 set_gdbarch_deprecated_saved_pc_after_call.
3004 Add calls to set_gdbarch_push_dummy_call,
3005 set_gdbarch_push_dummy_code,
3006 frame_unwind_append_predicate,
3007 frame_base_set_default,
3008 set_gdbarch_unwind_dummy_id,
3009 set_gdbarch_unwind_pc.
3012 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3014 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3015 registers for H8/300S.
3016 (h8300_print_registers_info): Ditto.
3017 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3019 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3021 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3022 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3023 (lin_lwp_wait): Likewise. Update comments.
3024 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3025 (pull_pid_from_list, linux_record_stopped_pid): New.
3027 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3029 * ada-lang.c (scan_discrim_bound): Name first argument.
3030 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3031 declared by ALL_BLOCK_SYMBOLS.
3033 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3035 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3036 ("regcache.h"): Include it.
3037 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3039 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3041 * NEWS: Mention gdbserver detach change and "disconnect" command.
3042 * infcmd.c (disconnect_command): New function.
3043 (_initialize_infcmd): Add ``disconnect'' command.
3044 * remote.c (remote_async_detach): Delete.
3045 (remote_detach): Merge remote_async_detach.
3046 (remote_disconnect): New.
3047 (init_remote_ops): Set to_disconnect.
3048 (init_remote_cisco_ops): Likewise.
3049 (init_remote_async_ops): Likewise. Use remote_detach.
3050 * target.c (cleanup_target): Default to_disconnect.
3051 (update_current_target): Inherit to_disconnect.
3052 (target_disconnect, debug_to_disconnect): New functions.
3053 (setup_target_debug): Set to_disconnect.
3054 * target.h (struct target_ops): Add to_disconnect.
3055 (target_disconnect): Add prototype.
3057 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3059 * breakpoint.c (insert_catchpoint): New function.
3060 (insert_breakpoints): Use catch_exceptions to call
3061 insert_catchpoint. Disable catchpoints if they fail to insert.
3063 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3065 * symfile.c (reread_symbols): Clear sym_private.
3067 2003-06-17 Andrew Cagney <cagney@redhat.com>
3069 * trad-frame.h (struct frame_info): Add opaque declaration.
3070 * remote-fileio.h (struct cmd_list_element): Add opaque
3072 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3075 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3077 * remote.c (remote_prepare_to_store): Replace call to
3078 deprecated_read_register_bytes with multiple regcache_raw_read
3081 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3083 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3084 (nto_find_and_open_solib): Likewise.
3085 (nto_init_solib_absolute_prefix): Likewise.
3086 (_initialize_nto_tdep): Fix indentation.
3088 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3090 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3092 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3094 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3096 2003-06-17 Jim Blandy <jimb@redhat.com>
3098 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3100 2003-06-16 Theodore A. Roth <troth@openavr.org>
3102 * avr-tdep.c (avr_extract_return_value): New function.
3103 (avr_gdbarch_init): Set extract_return_value method.
3105 2003-06-16 Andrew Cagney <cagney@redhat.com>
3107 * frame.h (deprecated_get_next_frame_hack): Declare.
3108 * frame.c (legacy_saved_regs_prev_register): Only require
3109 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3110 there are always saved regs.
3111 (deprecated_generic_get_saved_register): Do not require
3112 DEPRECATED_FRAME_INIT_SAVED_REGS.
3113 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3114 use frame ID unwind instead.
3115 (deprecated_get_next_frame_hack): New function.
3117 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3119 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3120 (h8300_push_dummy_call): ...this function. Some minor optimization.
3121 (h8300_push_return_address): Remove.
3122 (h8300_gdbarch_init): Remove calls to
3123 set_gdbarch_deprecated_dummy_write_sp,
3124 set_gdbarch_deprecated_push_arguments and
3125 set_gdbarch_deprecated_push_return_address.
3126 Add call to set_gdbarch_push_dummy_call.
3128 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3130 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3131 (E_PSEUDO_EXR_REGNUM): Ditto.
3132 (h8300_is_argument_spill): Check for instructions moving argument
3133 registers into safe registers.
3134 (h8300_skip_prologue): Check for stm instruction to push registers
3135 used for register variables onto stack.
3136 (gdb_print_insn_h8300): Remove.
3137 (h8300_examine_prologue): Add a comment.
3138 (h8300_register_name): Take pseudo registers into account.
3139 (h8300s_register_name): Ditto.
3140 (h8300sx_register_name): Ditto.
3141 (h8300_print_register): Ditto.
3142 (h8300_print_registers_info): Define "nice" printing order.
3143 (h8300_saved_pc_after_call): Take pseudo registers into account.
3144 (h8300_register_type): Ditto. Return type used for remote connection
3145 when requesting real CCR or EXR register, return actual type when
3146 requesting pseudo CCR or EXR.
3147 (h8300_pseudo_register_read): New function.
3148 (h8300_pseudo_register_write): Ditto.
3149 (h8300_dbg_reg_to_regnum): Ditto.
3150 (h8300s_dbg_reg_to_regnum): Ditto.
3151 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3152 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3153 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3154 set_gdbarch_print_insn architecture dependent.
3155 Call set_gdbarch_pseudo_register_read and
3156 set_gdbarch_pseudo_register_write.
3157 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3159 2003-06-16 Andrew Cagney <cagney@redhat.com>
3161 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3162 * gdbarch.h, gdbarch.c: Re-generate.
3163 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3164 * s390-tdep.c (s390_gdbarch_init): Update.
3165 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3166 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3167 * mips-tdep.c (mips_gdbarch_init): Update.
3168 * mcore-tdep.c (mcore_gdbarch_init): Update.
3169 * cris-tdep.c (cris_gdbarch_init): Update.
3170 * infcall.c (call_function_by_hand): Update.
3171 * ia64-tdep.c (ia64_push_arguments): Update comment.
3172 * frame.c (legacy_get_prev_frame): Do not assume
3173 SAVE_DUMMY_FRAME_TOS_P.
3174 * dummy-frame.c (find_dummy_frame): Update comment.
3176 2003-06-16 Andrew Cagney <cagney@redhat.com>
3178 * regcache.c (do_cooked_read): Do not use register_valid_p.
3180 2003-06-15 Theodore A. Roth <troth@openavr.org>
3182 * avr-tdep.c (avr_register_type): Remove a blank line.
3183 (avr_scan_prologue): Correct some comments.
3185 2003-06-15 Theodore A. Roth <troth@openavr.org>
3187 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3189 Properly scan prologues generated by gcc with the -mcall-prologues
3191 Add code to scan -mcall-prologues for mega devices.
3193 2003-06-15 Theodore A. Roth <troth@openavr.org>
3195 * avr-tdep.c (avr_register_byte): Delete function.
3196 (avr_register_raw_size): Delete function.
3197 (avr_register_virtual_size): Delete function.
3198 (avr_register_virtual_type): Delete function.
3199 (avr_register_type): New function.
3200 (avr_address_to_pointer): Remove unused code.
3201 (avr_read_fp): Need to read FP as two separate bytes due to change to
3202 avr_register_type() usage.
3203 (avr_gdbarch_init): Don't set deprecated_register_size.
3204 Don't set deprecated_register_bytes.
3205 Don't set deprecated_register_byte.
3206 Don't set deprecated_register_raw_size.
3207 Don't set deprecated_max_register_raw_size.
3208 Don't set deprecated_register_virtual_size.
3209 Don't set deprecated_max_register_virtual_size.
3210 Don't set deprecated_register_virtual_type.
3211 Set register_type method.
3213 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3215 * Makefile.in (linux-nat.o): Add rule.
3216 * linux-nat.c: New file.
3217 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3218 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3219 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3220 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3221 * config/arm/linux.mh (NATDEPFILES): Likewise.
3222 * config/i386/linux.mh (NATDEPFILES): Likewise.
3223 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3224 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3225 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3226 * config/mips/linux.mh (NATDEPFILES): Likewise.
3227 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3228 * config/s390/s390.mh (NATDEPFILES): Likewise.
3229 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3231 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3233 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3234 replace out-of-date comment.
3236 2003-06-15 Andrew Cagney <cagney@redhat.com>
3238 * rdi-share/host.h (Fail): Change to a varargs function.
3239 * remote-rdi.c (Fail): Update.
3241 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3243 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3244 (i386_convert_register_p, i386_register_to_value,
3245 i386_register_from_value): Handle types longer than 8 bytes.
3247 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3249 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3250 Move floating-point code to new function in i387-tdep.c.
3251 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3252 New functions containing code moved here from i386-tdep.c.
3253 * i387-tdep.h: Add opaque declaration for `struct type'.
3254 (i387_register_to_value, i387_value_to_register): New prototypes.
3255 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3256 (x86_64_init_abi): Set convert_register_p, register_to_value and
3257 value_to_register here.
3259 2003-06-14 Andrew Cagney <cagney@redhat.com>
3261 * mips-tdep.c (mips_register_to_value): Make static.
3262 (mips_value_to_register): Make static.
3263 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3264 * ia64-tdep.c (ia64_register_raw_size): Make static.
3265 (ia64_register_virtual_size): Make static.
3266 (ia64_register_byte): Make static.
3267 * i387-tdep.c: Include "i387-tdep.h".
3268 (print_387_control_word): Delete function.
3269 (print_387_status_word): Delete function.
3270 (print_387_status_bits): Delete function.
3271 (print_387_control_bits): Delete function.
3272 * Makefile.in (i387-tdep.o): Update dependencies.
3273 * rdi-share/host.h (Fail): Declare.
3274 * remote-rdi.c (Fail): Update to match declaration.
3276 2003-06-14 Andrew Cagney <cagney@redhat.com>
3278 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3279 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3280 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3281 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3282 * README: Delete reference to remote-array.
3283 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3284 (remote-array.o): Delete target.
3285 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3286 * remote-array.c: Delete file.
3288 2003-06-14 Andrew Cagney <cagney@redhat.com>
3289 Mark Kettenis <kettenis@gnu.org>
3291 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3292 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3293 parameter with "frame".
3294 * gdbarch.h, gdbarch.c: Re-generate.
3295 * frame.h (put_frame_register): Declare.
3296 * frame.c (put_frame_register): New function.
3297 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3298 (legacy_register_to_value): Rewrite, use "frame" to get the
3300 (legacy_value_to_register): Rewrite, use "frame" to find the
3301 register's location before storing.
3302 * arch-utils.h (legacy_convert_register_p): Update.
3303 (legacy_register_to_value, legacy_value_to_register): Update.
3304 * findvar.c (value_from_register): Rewrite, eliminate use of
3305 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3306 "frame" to REGISTER_TO_VALUE.
3307 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3308 lval_reg_frame_relative + lval_register branch of the switch. Do
3309 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3310 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3311 I386_EDI_REGNUM): New defines.
3312 (i386_next_regnum, i386_convert_register_p,
3313 i386_register_to_value, i386_value_to_register): New functions.
3314 (i386_register_convertible, i386_register_convert_to_virtual,
3315 i386_convert_to_raw): Remove functions.
3316 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3317 value_to_register instead of register_convertible,
3318 register_convert_to_virtual and register_convert_to_raw.
3319 * mips-tdep.c (mips_convert_register_p): New function.
3320 (mips_value_to_register): Replace mips_register_convert_from_type.
3321 (mips_register_to_value): Replace mips_register_convert_to_type.
3322 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3324 * alpha-tdep.c (alpha_convert_register_p): Update.
3325 (alpha_value_to_register): Update, store the register.
3326 (alpha_register_to_value): Update, fetch the register.
3328 2003-06-14 Theodore A. Roth <troth@openavr.org>
3330 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3331 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3332 Don't set deprecated_call_dummy_words.
3333 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3334 Don't set remote_translate_xfer_address.
3335 (avr_io_reg_read_command): Remove commented out debug printf.
3338 2003-06-14 Theodore A. Roth <troth@openavr.org>
3340 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3341 causes gdb to seg fault.
3343 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3345 * sparc-nat.c (fetch_inferior_registers): Correct
3346 a reference to "registers".
3348 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3350 * Makefile.in (exc_request_U_h): Define
3351 (exc_request_S_h): Likewise.
3352 (msg_reply_S_h): Likewise.
3353 (msg_U_h): Likewise.
3354 (notify_S_h): Likewise.
3355 (process_reply_S_h): Likewise.
3356 (gnu-nat.o): Depend on gdb_obstack_h
3357 * gnu-nat.c: Include "gdb_obstack.h".
3359 2003-06-13 Andrew Cagney <cagney@redhat.com>
3361 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3362 * gdbarch.h, gdbarch.c: Re-generate.
3364 2003-06-13 Andrew Cagney <cagney@redhat.com>
3366 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3367 when deprecated REGISTER macros can be deleted.
3368 * gdbarch.h, gdbarch.c: Re-generate.
3370 2003-06-13 Jim Blandy <jimb@redhat.com>
3372 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3373 Linux entry point symbols for _dl_debug_state, too.
3375 2003-06-13 Andrew Cagney <cagney@redhat.com>
3377 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3378 available, do not use the FP register, and always save the TOS.
3379 * dummy-frame.c (dummy_frame_this_id): Do not assert
3380 SAVE_DUMMY_FRAME_TOS.
3381 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3382 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3383 (i386_push_dummy_call): Add 8 to the returned SP.
3384 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3385 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3386 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3387 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3388 (x86_64_push_dummy_call): Return "sp + 16".
3389 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3390 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3391 save_dummy_frame_tos.
3393 2003-06-13 Jim Blandy <jimb@redhat.com>
3395 * frv-tdep.c (frv_use_struct_convention): Delete static
3396 declaration for function deleted in my change of 2003-06-12.
3398 2003-06-13 Theodore A. Roth <troth@openavr.org>
3400 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3401 (avr_pointer_to_address): Shift code addrs left 1 bit.
3402 (avr_convert_from_func_ptr_addr): Delete function since operation is
3403 better handled by avr_address_to_pointer and avr_pointer_to_address.
3404 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3406 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3408 From Kelley Cook <kelleycook@wideopenwest.com>:
3409 * configure.host: Accept i[34567]86 variants.
3410 * configure.tgt: Likewise.
3411 * nlm/configure.in: Likewise.
3412 * nlm/configure: Regenerated.
3414 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3416 * arm-tdep.c (solib-svr4.h): Dont' include it.
3417 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3418 * arm-linux-tdep.c: ... here. Make static.
3419 (arm_linux_init_abi): Register it.
3420 (solib-svr4.h): Include it.
3421 * Makefile.in: Update dependencies.
3422 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3423 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3425 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3427 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3428 indicate registers used for return values.
3429 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3430 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3432 (h8300_init_extra_frame_info): Ditto.
3433 (h8300_frame_locals_address): Removed.
3434 (h8300_frame_args_address): Removed.
3435 (h8300_extract_return_value): Use new regcache structure. Only care
3437 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3438 (h8300_store_return_value): Use new regcache structure. Only care
3440 (h8300h_store_return_value): Same function for 32 bit CPUs.
3441 (h8300_store_struct_return): Removed.
3442 (h8300_extract_struct_value_address): Use new regcache structure.
3443 (h8300h_extract_struct_value_address): Removed.
3444 (h8300_push_dummy_code): New function.
3445 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3446 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3447 set_gdbarch_store_return_value architecture dependent.
3448 Call set_gdbarch_push_dummy_code and
3449 set_gdbarch_extract_struct_value_address.
3450 Remove calls to set_gdbarch_frame_args_address,
3451 set_gdbarch_frame_locals_address,
3452 set_gdbarch_deprecated_store_struct_return,
3453 set_gdbarch_deprecated_extract_return_value,
3454 set_gdbarch_deprecated_extract_struct_value_address,
3455 set_gdbarch_deprecated_call_dummy_words and
3456 set_gdbarch_deprecated_sizeof_call_dummy_words.
3458 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3460 * h8300-tdep.c (h8300_register_byte): Remove.
3461 (h8300h_register_byte): Remove.
3462 (h8300_register_virtual_type): Remove. Substitute by...
3463 (h8300_register_type): New function.
3464 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3465 (h8300h_extract_struct_value_address): Ditto.
3466 (h8300_gdbarch_init): Drop calls to
3467 set_gdbarch_deprecated_register_byte and
3468 set_gdbarch_deprecated_register_virtual_type.
3469 Add call to set_gdbarch_register_type.
3471 2003-06-13 Andrew Cagney <cagney@redhat.com>
3473 * gdbarch.sh: Update comments on registers.
3474 (deprecated_register_byte): Rename register_byte.
3475 (deprecated_register_raw_size): Rename register_raw_size.
3476 (deprecated_register_virtual_size): Rename register_virtual_size.
3477 (deprecated_register_virtual_type): Rename register_virtual_type.
3478 * gdbarch.h, gdbarch.c: Re-generate.
3479 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3480 * vax-tdep.c (vax_gdbarch_init): Update.
3481 * v850-tdep.c (v850_gdbarch_init): Update.
3482 * sparc-tdep.c (sparc_gdbarch_init): Update.
3483 * sh-tdep.c (sh_gdbarch_init): Update.
3484 * s390-tdep.c (s390_gdbarch_init): Update.
3485 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3486 * ns32k-tdep.c: Update.
3487 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3488 * mips-tdep.c (mips_gdbarch_init): Update.
3489 * mcore-tdep.c (mcore_gdbarch_init): Update.
3490 * m68k-tdep.c (m68k_gdbarch_init): Update.
3491 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3492 * ia64-tdep.c (ia64_gdbarch_init): Update.
3493 * hppa-tdep.c (hppa_gdbarch_init): Update.
3494 * h8300-tdep.c (h8300_gdbarch_init): Update.
3495 * frv-tdep.c (frv_gdbarch_init): Update.
3496 * cris-tdep.c (cris_gdbarch_init): Update.
3497 * avr-tdep.c (avr_gdbarch_init): Update.
3498 * alpha-tdep.c (alpha_gdbarch_init): Update.
3499 * arm-tdep.c (arm_gdbarch_init): Update.
3501 2003-06-13 Andrew Cagney <cagney@redhat.com>
3503 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3504 mips_o32_use_struct_convention with always_use_struct_convention.
3506 2003-06-12 David Carlton <carlton@kealia.com>
3508 * cp-namespace.c (cp_set_block_scope): Comment out
3509 processing_has_namespace_info branch.
3511 2003-06-12 Jim Blandy <jimb@redhat.com>
3513 Recognize and skip 64-bit PowerPC Linux linkage functions.
3514 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3515 insn_pattern, insns_match_pattern, d_field, ds_field): New
3516 functions, macros, and types for working with PPC instructions.
3517 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3518 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3519 ppc64_skip_trampoline_code): New functions, variables, and macros
3520 for recognizing and skipping linkage functions.
3521 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3522 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3524 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3525 register offsets for both the 32- and 64-bit interfaces.
3527 Actually finish the job started by my change of 2003-05-29.
3528 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3529 other #definition of this.
3530 (ppc_linux_skip_trampoline_code): Remove declaration.
3531 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3533 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3536 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3537 'long' on ppc64-*-linux*.
3539 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3540 isn't #defined, assume the register doesn't exist: act as if
3541 tdep->ppc_mq_regnum were -1.
3543 * configure.host, configure.tgt: Add entries for
3544 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3546 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3549 * arch-utils.c (always_use_struct_convention): New function.
3550 * arch-utils.h (always_use_struct_convention): New prototype.
3551 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3552 (alpha_gdbarch_init): Register always_use_struct_convention,
3553 instead of alpha_use_struct_convention.
3554 * cris-tdep.c (cris_use_struct_convention): Delete.
3555 (cris_gdbarch_init): Register always_use_struct_convention,
3556 instead of cris_use_struct_convention.
3557 * frv-tdep.c (frv_use_struct_convention): Delete.
3558 (frv_gdbarch_init): Register always_use_struct_convention,
3559 instead of frv_use_struct_convention.
3560 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3561 (h8300_gdbarch_init): Register always_use_struct_convention,
3562 instead of h8300_use_struct_convention.
3563 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3564 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3565 instead of mips_o32_use_struct_convention.
3567 2003-06-12 Andrew Cagney <cagney@redhat.com>
3569 * wince.c: Include "mips-tdep.h".
3570 * mips-tdep.h (mips_next_pc): Declare.
3571 * mcore-tdep.c: Make more local functions static.
3572 * Makefile.in (wince.o): Update dependencies.
3574 2003-06-12 David Carlton <carlton@kealia.com>
3576 * symtab.c (lookup_symbol_aux_minsyms): Replace
3577 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3578 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3579 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3580 SYMBOL_NATURAL_NAME.
3582 2003-06-12 Andreas Schwab <schwab@suse.de>
3584 * Makefile.in (tuiDisassem.o): Update dependencies.
3586 2003-06-12 David Carlton <carlton@bactrian.org>
3588 * symtab.h: Delete declaration of make_symbol_overload_list.
3589 Add declaration of lookup_partial_symbol.
3590 * symtab.c (remove_params): Move to cp-support.c.
3591 (overload_list_add_symbol, make_symbol_overload_list)
3592 (sym_return_val_size, sym_return_val_index): Ditto.
3593 (lookup_partial_symbol): Make extern.
3594 * cp-support.h: Add declaration of make_symbol_overload_list.
3595 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3596 symtab.h, and block.h.
3597 (remove_params): Move here from symtab.c.
3598 (overload_list_add_symbol, make_symbol_overload_list)
3599 (sym_return_val_size, sym_return_val_index): Ditto.
3600 * valops.c: Include cp-support.h.
3601 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3602 frame_h, and block_h.
3603 (valops.o): Depend on cp_support_h.
3605 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3607 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3608 substitute by NUM_REGS throughout.
3609 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3610 (h8300s_register_name): New function for H8S registers.
3611 (h8300sx_register_name): Ditto for H8SX registers.
3612 (h8300_print_register): Revise register printing, avoid depending
3614 (h8300_register_byte): Only care for H8/300 registers.
3615 (h8300h_register_byte): New function for any other architecture.
3616 (h8300_register_raw_size): Remove.
3617 (h8300_register_virtual_type): Revise to return actually useful
3619 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3620 (h8300h_extract_struct_value_address): New function for any other
3622 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3623 set_gdbarch_register_name, set_gdbarch_register_byte,
3624 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3625 Remove calls to set_gdbarch_deprecated_register_size,
3626 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3627 set_gdbarch_deprecated_max_register_raw_size,
3628 set_gdbarch_register_virtual_size and
3629 set_gdbarch_deprecated_max_register_virtual_size entirely.
3630 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3631 set_gdbarch_long_double_bit.
3633 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3635 * doublest.c (convert_doublest_to_floatformat): When dealing
3636 with the implied integer bit, only alter mant_bits if we are
3637 processing a full 32 bits of mantissa.
3639 2003-06-11 David Carlton <carlton@bactrian.org>
3641 * dictionary.h: New.
3642 * dictionary.c: New.
3643 * block.h: Add opaque declaration for struct dictionary.
3644 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3646 (BLOCK_DICT): New macro.
3647 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3648 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3650 (ALL_BLOCK_SYMBOLS): Update definition.
3651 * Makefile.in (SFILES): Add dictionary.c.
3652 (dictionary_h): New.
3653 (COMMON_OBS): Add dictionary.o.
3654 (dictionary.o): New.
3655 (ada-lang.o): Depend on dictionary_h.
3656 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3657 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3658 (mi-cmd-stack.o): Ditto.
3659 (gdbtk-cmds.o): Update dependencies.
3660 (gdbtk-stack.o): Ditto.
3661 * ada-lang.c: Include dictionary.h.
3662 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3663 (fill_in_ada_prototype, debug_print_block): Ditto.
3664 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3665 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3667 * mdebugread.c: Include dictionary.h.
3668 (struct parse_stack): Delete 'maxsyms' member.
3669 (parse_symbol): Update calls to new_block. Delete calls to
3670 shrink_block. Use dictionary methods.
3671 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3672 Update calls to new_symtab. Don't maintain maxsyms data.
3673 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3674 (add_symbol): Just call dict_add_symbol.
3675 (new_symtab): Delete 'maxsyms' argument.
3676 (new_symtab): Update calls to new_block.
3677 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3678 (shrink_block): Delete function.
3679 (fixup_sigtramp): Update call to new_block. Add symbol via
3681 * jv-lang.c: Include dictionary.h.
3682 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3683 appropriately. Set class_symtab->free_func. Make sure the
3684 blockvector is big enough to hold two blocks.
3685 (add_class_symtab_symbol): Use dictionary methods.
3686 (free_class_block): New function.
3687 (type_from_class): Replace explicit iteration by
3689 * symtab.h (struct symtab): Replace 'free_ptr' method by
3691 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3693 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3695 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3696 Include dictionary.h.
3697 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3698 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3700 * objfiles.c: Include dictionary.h.
3701 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3702 * buildsym.c: Include dictionary.h.
3703 (finish_block): Use dictionary methods.
3704 (end_symtab): Set free_func to NULL, not free_ptr.
3705 * tracepoint.c: Include dictionary.h.
3706 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3707 (scope_info): Ditto.
3708 * stack.c: Include dictionary.h.
3709 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3710 (print_block_frame_labels, print_frame_arg_vars)
3711 (print_frame_args): Ditto.
3712 * symmisc.c (free_symtab_block): Use dictionary methods.
3713 (dump_symtab): Ditto.
3714 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3715 Include dictionary.h.
3716 * symfile.h: Delete declarations of sort_block_syms,
3718 * symfile.c (sort_block_syms): Delete.
3719 (sort_symtab_syms): Delete.
3720 * symtab.c: Include dictionary.h.
3721 (lookup_block_symbol): Use dictionary iterators.
3722 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3723 (search_symbols, make_symbol_completion_list): Ditto.
3724 (make_symbol_overload_list): Ditto.
3725 * valops.c (value_of_local): Use dict_empty.
3726 Include dictionary.h.
3728 2003-06-11 J. Brobecker <brobecker@gnat.com>
3730 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3732 2003-06-11 David Carlton <carlton@bactrian.org>
3734 * block.h (BLOCK_SHOULD_SORT): Delete.
3735 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3737 * ada-lang.c (ada_add_block_symbols): Ditto.
3738 * symfile.c (sort_block_syms): Delete.
3739 (sort_symtab_syms): Ditto.
3740 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3742 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3743 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3744 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3745 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3746 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3747 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3748 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3750 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3752 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3755 2003-06-11 Andrew Cagney <cagney@redhat.com>
3757 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3758 REGISTER_CONVERTIBLE.
3759 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3760 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3761 * gdbarch.h, gdbarch.c: Re-generate.
3762 * arch-utils.h (deprecated_register_convertible_not): Rename
3763 generic_register_convertible_not.
3764 * arch-utils.c (deprecated_register_convertible_not): Rename
3765 generic_register_convertible.
3766 (legacy_convert_register_p, legacy_register_to_value): Update.
3767 * sh-tdep.c (sh64_push_arguments): Update.
3768 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3769 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3770 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3771 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3772 * arch-utils.c (legacy_value_to_register): Update.
3773 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3774 (rs6000_register_convert_to_raw): Make parameter "from" const.
3775 * mips-tdep.c (mips_gdbarch_init): Update.
3776 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3777 * infcmd.c (default_print_registers_info): Update.
3778 * ia64-tdep.c (ia64_gdbarch_init): Update.
3779 (ia64_register_convert_to_raw): Make parameter "from" const.
3780 * i386-tdep.c (i386_gdbarch_init): Update.
3781 (i386_register_convert_to_raw): Update.
3783 2003-06-11 Andrew Cagney <cagney@redhat.com>
3785 * remote-fileio.c: Include "remote-fileio.h".
3786 * Makefile.in (remote-fileio.o): Update dependencies.
3787 (remote_fileio_h): Fix typo.
3789 2003-06-11 Andrew Cagney <cagney@redhat.com>
3791 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3792 (xstormy16_save_dummy_frame_tos): Make static.
3793 (_initialize_xstormy16_tdep): Add declaration.
3794 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3795 * v850-tdep.c: Make local functions static.
3796 (_initialize_v850_tdep): Add declaration.
3797 * sparc-tdep.c: Make local functions static.
3798 (_initialize_sparc_tdep): Add declaration.
3799 * sh-tdep.c: Make local functions static.
3800 (_initialize_sh_tdep): Add declaration.
3801 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3802 * s390-tdep.c: Make local functions static.
3803 (_initialize_s390_tdep): Add declaration.
3804 * dbxread.c (find_stab_function_addr): Make static.
3805 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3806 * ocd.c (_initialize_remote_ocd): Add declaration.
3807 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3808 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3809 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3810 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3811 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3812 * remote-array.c (_initialize_array): Add declaration.
3813 (_initialize_remote_monitors): Add declaration.
3814 * remote-mips.c: Make local functions static.
3815 (_initialize_remote_mips): Add declaration.
3816 * mcore-tdep.c: Make all local functions static.
3817 (_initialize_mcore_tdep): Add declaration.
3818 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3819 * abug-rom.c (_initialize_abug_rom): Add declaration.
3820 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3821 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3822 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3823 * remote-est.c (_initialize_est): Add declaration.
3824 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3825 (m68hc11_call_dummy_address): Make static.
3826 * ia64-tdep.c: Make local functions static.
3827 (_initialize_ia64_tdep): Add declaration.
3828 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3829 * monitor.c (monitor_wait_filter): Make static.
3830 (_initialize_remote_monitors): Add declaration.
3831 * remote-hms.c (_initialize_remote_hms): Add declaration.
3832 * remote-e7000.c (fetch_regs_from_dump): Make static.
3833 (expect_n): Make static.
3834 (_initialize_remote_e7000): Add declaration.
3835 * ser-e7kpc.c: Always include "defs.h".
3836 (_initialize_ser_e7000pc): Add declaration.
3837 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3838 * cris-tdep.c: Make all but one function static.
3839 (_initialize_cris_tdep): Add declaration.
3840 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3841 * solib.c (update_solib_list): Make static.
3842 (_initialize_solib): Add declaration.
3843 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3844 (_initialize_avr_tdep): Add declaration.
3845 * remote-rdi.c (voiddummy): Make static.
3846 (_initialize_remote_rdi): Add declaration.
3847 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3848 * remote-rdp.c (send_rdp): Make static.
3849 (_initialize_remote_rdp): Add declaration.
3850 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3852 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3854 * remote-fileio.c: Make ari happy.
3856 2003-06-10 J. Brobecker <brobecker@gnat.com>
3858 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3859 fetching the trailing bytes of the buffer we are about to write.
3861 2003-06-10 Andrew Cagney <cagney@redhat.com>
3863 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3864 * Makefile.in (remote-fileio.o): Update dependencies.
3865 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3866 include <setjmp.h>, or <sys/types.h> conditional on USG.
3867 (remote_fio_jmp_buf): Delete global variable.
3869 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3870 Martin M. Hunt <hunt@redhat.com>
3872 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3873 (SFILES): Add remote-fileio.c.
3874 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3875 dependencies for building remote.o.
3876 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3877 * remote-fileio.h: New header file defining remote File-I/O interface.
3878 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3879 static storage class.
3880 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3882 (_initialize_remote): Call initialize_remote_fileio().
3883 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3884 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3885 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3886 (captured_main): Initialize new ui_files.
3887 * ui-file.c: Add read and fgets input functions.
3888 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3889 (null_file_read): New function.
3890 (ui_file_read): New function.
3891 (set_ui_file_read): New function.
3892 (stdio_file_read): New function.
3893 * ui-file.h: New type ui_file_read_ftype.
3894 (set_ui_file_read): Declare.
3895 (ui_file_read): Declare.
3897 2003-06-09 Andrew Cagney <cagney@redhat.com>
3899 * frame.h (deprecated_unwind_get_saved_register): Rename
3900 generic_unwind_get_saved_register, update comments.
3901 * mips-tdep.c (mips_get_saved_register): Update.
3902 * frame.c (deprecated_unwind_get_saved_register): Update.
3904 2003-06-09 Andrew Cagney <cagney@redhat.com>
3906 * vax-tdep.c (vax_frame_locals_address): Delete function.
3907 (vax_gdbarch_init): Do not set frame_locals_address.
3908 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3909 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3910 * s390-tdep.c (s390_frame_args_address): Delete function.
3911 (s390_gdbarch_init): Do not set frame_args_address or
3912 frame_locals_address.
3913 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3914 (ns32k_gdbarch_init): Do not set frame_locals_address.
3915 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3916 (hppa_frame_locals_address): Delete function.
3917 (hppa_gdbarch_init): Do not set frame_args_address, or
3918 frame_locals_address.
3919 * arm-tdep.c (arm_frame_args_address): Delete.
3920 (arm_frame_locals_address): Delete.
3921 (arm_gdbarch_init): Do not set frame_args_address, or
3922 frame_locals_address.
3924 2003-06-09 Andrew Cagney <cagney@redhat.com>
3926 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3927 * gdbarch.h, gdbarch.c: Re-generate.
3928 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3929 * arch-utils.c (frame_num_args_unknown): Delete function.
3930 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3931 (frame_info): Use FRAME_NUM_ARGS_P.
3932 * arm-tdep.c (arm_frame_num_args): Delete function.
3933 (arm_gdbarch_init): Do not set frame_num_args.
3934 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3935 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3936 (hppa_gdbarch_init): Do not set frame_num_args.
3937 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3938 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3939 frame_num_args to default frame_num_args_unknown.
3940 * v850-tdep.c (v850_gdbarch_init): Ditto.
3941 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3942 * sh-tdep.c (sh_gdbarch_init): Ditto.
3943 * s390-tdep.c (s390_gdbarch_init): Ditto.
3944 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3945 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3946 * mips-tdep.c (mips_gdbarch_init): Ditto.
3947 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3948 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3949 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3950 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3951 * i386-tdep.c (i386_gdbarch_init): Ditto.
3952 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3953 * frv-tdep.c (frv_gdbarch_init): Ditto.
3954 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3955 * cris-tdep.c (cris_gdbarch_init): Ditto.
3956 * avr-tdep.c (avr_gdbarch_init): Ditto.
3957 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3959 2003-06-09 Andrew Cagney <cagney@redhat.com>
3961 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3962 (print_frame_args): Moved to "stack.c".
3963 * stack.c: Include "gdb_assert.h".
3964 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3965 (print_frame_args): Moved from "printcmd.c".
3966 * frame.h (print_frame_args): Delete declaration.
3967 * Makefile.in (stack.o): Update dependencies.
3969 2003-06-08 Andrew Cagney <cagney@redhat.com>
3971 * frame.c (get_prev_frame): Remove reference to
3972 frame_args_address_correct in comments.
3973 * frame-base.c (default_frame_args_address): Delete code
3974 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3975 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3976 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3977 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3978 (vax_frame_args_address_correct): Delete declaration.
3980 2003-06-08 Andrew Cagney <cagney@redhat.com>
3982 * gdbarch.sh (UNWIND_SP): Add.
3983 * gdbarch.h, gdbarch.c: Re-generate.
3984 * frame.c (frame_sp_unwind): New function.
3985 (get_frame_sp): New function.
3986 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3987 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3988 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3990 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3991 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3993 2003-06-08 Andrew Cagney <cagney@redhat.com>
3995 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3998 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3999 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4000 * config/m68k/tm-sun3.h: Update.
4001 * config/m68k/tm-m68klynx.h: Update.
4002 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4004 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4005 trad_frame". Update comments.
4006 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4007 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4008 (trad_frame_register_value, trad_frame_prev_register): Update.
4010 2003-06-08 Andrew Cagney <cagney@redhat.com>
4012 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4013 from GCC's acinclude.m4.
4014 * configure.in: Check for getopt's delcaration.
4015 * aclocal.m4, config.in, configure: Re-generate.
4016 * main.c (error_init): Delete declaration.
4017 * defs.h (error_init): Declare.
4018 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4019 (rs6000_convert_from_func_ptr_addr): Make static.
4020 (_initialize_rs6000_tdep): Add declaration.
4021 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4022 (show_commands, set_verbose, show_history): Delete declaration.
4023 * top.h (set_verbose): Add declaration.
4024 (show_history, set_history, show_commands): Add declaration.
4025 (do_restore_instream_cleanup): Add declaration.
4026 * objc-lang.c (specialcmp): Make static.
4027 (print_object_command): Make static.
4028 (find_objc_msgsend): Make static.
4029 (find_objc_msgcall_submethod_helper): Make static.
4030 (find_objc_msgcall_submethod): Make static.
4031 (_initialize_objc_language): Add declaration.
4032 (find_implementation_from_class): Make static.
4033 (find_implementation): Make static.
4034 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4035 * objc-lang.h (lookup_struct_typedef): Add declaration.
4036 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4037 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4038 (do_restore_user_call_depth): Make static.
4039 (do_restore_instream_cleanup): Delete declaration.
4040 (dont_repeat): Delete declaration.
4041 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4042 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4043 * reggroups.c (_initialize_reggroup): Add declaration.
4044 * cp-support.c (_initialize_cp_support): Add declaration.
4045 * cp-abi.c (_initialize_cp_abi): Add declaration.
4046 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4047 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4048 (_initialize_gnu_v3_abi): Add declaration.
4049 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4050 (_initialize_gnu_v2_abi): Add declaration.
4051 * frame-base.c (_initialize_frame_base): Add declaration.
4052 * doublest.c (floatformat_from_length): Make static.
4053 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4054 * frame.c (create_sentinel_frame): Make static.
4055 (_initialize_frame): Add declaration.
4056 * top.c (do_catch_errors): Make static.
4057 (gdb_rl_operate_and_get_next_completion): Make static.
4058 * typeprint.c: Include "typeprint.h".
4059 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4060 (sentinel_frame_this_id): Make static.
4061 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4062 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4063 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4064 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4065 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4066 * maint.c (maintenance_print_architecture): Make static.
4067 * signals/signals.c (_initialize_signals): Add declaration.
4068 * std-regs.c (_initialize_frame_reg): Add declaration.
4069 * jv-exp.y (push_variable): ISO C definition.
4070 (push_qualified_expression_name): Ditto.
4071 * memattr.c (_initialize_mem): Add declaration.
4072 * remote.c (remote_check_watch_resources): Make static.
4073 (remote_stopped_by_watchpoint): Make static.
4074 (remote_stopped_data_address): Make static.
4075 * d10v-tdep.c (nr_dmap_regs): Make static.
4076 (a0_regnum): Make static.
4077 (d10v_frame_unwind_cache): Make static.
4078 (d10v_frame_p): Make static.
4079 * osabi.c (show_osabi): Make static.
4080 (_initialize_gdb_osabi): Add extern declaration.
4081 * gdbtypes.c (make_qualified_type): Make static.
4082 (safe_parse_type): Make static.
4083 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4084 * macrotab.c (macro_bcache_free): Make static.
4085 * interps.c (interp_set_quiet): Make static.
4086 (interpreter_exec_cmd): Make static.
4087 * stack.h (select_frame_command): New file.
4088 * stack.c: Include "stack.h".
4089 (select_frame_command_wrapper): Delete function.
4090 (select_frame_command): Make global.
4091 * infcall.c: Include "infcall.h".
4092 * linespec.c: Include "linespec.h".
4093 * symfile.c (sections_overlap): Make static.
4094 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4095 * charset.c (_initialize_charset): Add missing prototype.
4096 * regcache.c (init_legacy_regcache_descr): Make static.
4097 (do_regcache_xfree): Make static.
4098 (regcache_xfer_part): Make static.
4099 (_initialize_regcache): Add missing prototype.
4100 * breakpoint.c (parse_breakpoint_sals): Make static.
4101 (breakpoint_sals_to_pc): Make static.
4102 * interps.h (clear_interpreter_hooks): ISO C declaration.
4103 * Makefile.in (stack_h): Define.
4104 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4105 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4107 2003-06-08 Andrew Cagney <cagney@redhat.com>
4109 * Makefile.in (d10v-tdep.o): Update dependencies.
4110 (SFILES): Add trad-frame.c.
4111 (trad_frame_h): Define.
4112 (COMMON_OBS): Add trad-frame.o.
4113 (trad-frame.o): Specify dependencies.
4114 * d10v-tdep.c: Include "trad-frame.h".
4115 (saved_regs_unwinder): Delete function.
4116 (d10v_frame_prev_register): Use trad_frame_prev_register.
4117 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4118 trad_frame", delete "regs" and "prev_sp".
4119 (prologue_find_regs): Use trad-frame.
4120 * trad-frame.h, trad-frame.c: New files.
4122 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4124 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4126 2003-06-07 Adam Fedor <fedor@gnu.org>
4128 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4129 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4130 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4131 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4132 resolve_msgsend_super, resolve_msgsend_super_stret):
4135 2003-06-07 Andrew Cagney <cagney@redhat.com>
4137 * symfile.h: Re-indent, clean up comments.
4139 2003-06-07 Andrew Cagney <cagney@redhat.com>
4141 * inferior.h (deprecated_write_sp): Replace
4142 generic_target_write_sp.
4143 * regcache.c (deprecated_write_sp): Replace
4144 generic_target_write_sp.
4145 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4146 * vax-tdep.c (vax_gdbarch_init): Update.
4147 * v850-tdep.c (v850_gdbarch_init): Update.
4148 * sparc-tdep.c (sparc_gdbarch_init): Update.
4149 * sh-tdep.c (sh_gdbarch_init): Update.
4150 * s390-tdep.c (s390_gdbarch_init): Update.
4151 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4152 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4153 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4154 * mcore-tdep.c (mcore_gdbarch_init): Update.
4155 * m68k-tdep.c (m68k_gdbarch_init): Update.
4156 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4157 * ia64-tdep.c (ia64_gdbarch_init): Update.
4158 * h8300-tdep.c (h8300_gdbarch_init): Update.
4159 * frv-tdep.c (frv_gdbarch_init): Update.
4160 * cris-tdep.c (cris_gdbarch_init): Update.
4161 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4163 2003-06-07 Andrew Cagney <cagney@redhat.com>
4165 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4166 Assert that PC_REGNUM is valid.
4167 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4169 2003-06-07 Andrew Cagney <cagney@redhat.com>
4171 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4172 * gdbarch.h, gdbarch.c: Regenerate.
4173 * mn10300-tdep.c: Include "gdb_assert.h".
4174 (mn10300_read_fp): New function.
4175 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4176 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4177 * ia64-tdep.c: Include "gdb_assert.h".
4178 (ia64_read_fp): New function.
4179 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4180 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4181 * regcache.c (generic_target_read_sp): Delete function.
4182 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4183 * inferior.h (generic_target_read_sp): Delete declaration.
4184 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4185 generic_target_read_sp.
4186 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4187 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4188 * sh-tdep.c (sh_gdbarch_init): Ditto.
4189 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4190 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4192 2003-06-07 Andrew Cagney <cagney@redhat.com>
4194 * gdbarch.sh: Comment each field of startup_gdbarch.
4195 * gdbarch.h, gdbarch.c: Re-generate.
4197 2003-06-07 Andrew Cagney <cagney@redhat.com>
4199 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4200 * gdbarch.h, gdbarch.c: Re-generate.
4201 * regcache.c: Update comments on read_pc et.al.
4202 (generic_target_read_pc): Delete function.
4203 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4204 * inferior.h (generic_target_read_pc): Delete declaration.
4205 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4206 generic_target_read_pc.
4207 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4208 * sh-tdep.c (sh_gdbarch_init): Ditto.
4209 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4210 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4212 2003-06-07 Andrew Cagney <cagney@redhat.com>
4214 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4215 "index" with "special_local_sect". Use strcmp instead of STREQ.
4216 Append period to coments.
4218 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4220 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4221 (elfstab_offset_sections): Likewise.
4222 * gdb-stabs.h (stab_section_info): Likewise.
4223 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4224 * objfiles.c (objfile_relocate): Likewise.
4225 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4226 * remote.c (get_offsets): Likewise.
4227 (remote_cisco_objfile_relocate): Likewise.
4228 * somread.c (som_symfile_offsets): Likewise.
4229 * symfile.c (alloc_section_addr_info): New function.
4230 (build_section_addr_info_from_section_tab): Use it.
4231 (free_section_addr_info): Adjust.
4232 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4233 (syms_from_objfile): Allocate local_addr dynamically.
4234 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4236 (add_symbol_file_command): Allocate sect_opts dynamically.
4237 (reread_symbols): Avoid use of SECT_OFF_MAX.
4238 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4239 (alloc_section_addr_info): Declare it.
4240 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4241 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4243 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4245 2003-06-06 Andrew Cagney <cagney@redhat.com>
4247 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4248 (d10v_frame_unwind_cache): Do not set "return_pc".
4250 2003-06-06 Michael Snyder <msnyder@redhat.com>
4252 * h8300-tdep.c: Make tidy (long lines).
4254 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4256 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4257 to regcache_collect().
4259 2003-06-05 J. Brobecker <brobecker@gnat.com>
4261 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4262 pc_in_sigtramp multiarch method.
4263 (hppa_hpux_som_init_abi): Use it.
4264 (hppa_hpux_elf_init_abi): Likewise.
4265 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4266 macro has been multiarched.
4267 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4268 macro here, as hppa64 isn't multiarched yet.
4270 2003-06-05 Andrew Cagney <cagney@redhat.com>
4272 * Makefile.in (value_h): Add $(frame_h).
4273 * value.h: Include "frame.h".
4274 (struct value): Replace "frame_addr" with "frame_id".
4275 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4276 * values.c (allocate_value): Use VALUE_FRAME_ID.
4277 (value_copy): Use VALUE_FRAME_ID.
4278 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4279 * valops.c (value_assign): Update. Use frame_find_by_id.
4281 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4283 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4286 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4288 * thread-db.c (check_event): For create/death event breakpoints,
4289 loop through all messages to ensure that we read the message
4290 corresponding to the breakpoint we are at.
4292 2003-06-04 Michael Snyder <msnyder@redhat.com>
4294 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4296 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4298 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4299 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4300 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4301 when handling .eh_frame sections.
4303 2003-06-04 J. Brobecker <brobecker@gnat.com>
4305 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4306 prepare_to_proceed procedure instead of the hppa-specific one.
4307 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4309 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4311 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4312 * config.in: Regenerated.
4313 * configure.in: Add test for syscall function and check for
4314 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4315 * configure: Regenerated.
4316 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4318 (kill_lwp): New function that uses tkill syscall or
4319 uses kill, depending on whether threading model is nptl or not.
4320 All callers of kill() changed to use kill_lwp().
4321 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4322 see if all threads have already exited in the nptl model.
4323 (stop_and_resume_callback): New callback function used by the
4324 lin_lwp_wait thread exit handling code.
4325 (stop_wait_callback): Check for threads already having exited and
4326 delete such threads fromt the lwp list when discovered.
4327 (stop_callback): Don't assert retcode of kill call.
4329 Roland McGrath <roland@redhat.com>
4330 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4333 2003-06-03 Richard Henderson <rth@redhat.com>
4335 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4336 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4337 (alpha_sigtramp_frame_prev_register): Likewise.
4338 (alpha_heuristic_frame_prev_register): Likewise.
4339 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4341 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4342 alpha-specific register id names.
4343 (alpha_mdebug_frame_unwind_cache): Likewise.
4344 (alpha_mdebug_frame_prev_register): Likewise.
4346 2003-06-03 Richard Henderson <rth@redhat.com>
4348 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4349 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4350 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4351 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4353 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4354 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4355 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4357 * alpha-linux-tdep.c: Remove unnecessary includes.
4358 * Makefile.in (alpha-linux-tdep.o): Update.
4360 2003-06-03 Richard Henderson <rth@redhat.com>
4362 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4363 (alphabsd_fill_fpreg): Likewise.
4365 2003-06-03 J. Brobecker <brobecker@gnat.com>
4367 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4368 references to struct frame_info fields by calls to the equivalent
4369 accessors. Necessary now that frame_info is opaque.
4371 2003-06-03 J. Brobecker <brobecker@gnat.com>
4373 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4374 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4375 structure, field no longer exists.
4377 2003-06-03 J. Brobecker <brobecker@gnat.com>
4379 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4380 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4382 2003-06-03 J. Brobecker <brobecker@gnat.com>
4384 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4385 references to struct frame_info fields by calls to the equivalent
4386 accessors. Necessary now that frame_info is opaque.
4388 2003-06-03 J. Brobecker <brobecker@gnat.com>
4390 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4391 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4392 structure, field no longer exists.
4394 2003-06-03 Theodore A. Roth <troth@openavr.org>
4396 * remote.c (init_remote_state): Compute sizeof_g_packet by
4397 accumulation of the size of all registers instead of blindly using
4398 DEPRECATED_REGISTER_BYTES.
4400 2003-06-03 Michael Snyder <msnyder@redhat.com>
4402 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4403 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4406 2003-06-03 J. Brobecker <brobecker@gnat.com>
4408 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4409 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4411 2003-06-03 Andrew Cagney <cagney@redhat.com>
4413 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4414 (sparc_convert_to_raw): Delete function.
4415 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4416 register_convert_to_virtual.
4418 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4420 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4421 layer if not dealing with a statically-linked threaded program.
4423 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4425 * solib.c (solib_open): Update comment to reflect actual search order.
4427 2003-06-03 Andrew Cagney <cagney@redhat.com>
4429 * frame.c (get_frame_memory_signed): New function.
4430 (get_frame_memory, get_frame_memory_unsigned): New function.
4431 (get_frame_arch): New function.
4432 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4433 (get_frame_memory, get_frame_unsigned_memory): Declare.
4434 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4435 get_frame_memory_unsigned and get_frame_arch.
4436 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4438 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4440 * MAINTAINERS (write after approval): Add myself.
4442 2003-06-03 Jim Blandy <jimb@redhat.com>
4444 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4445 elements of gregset_t are 64 bits each, but access registers
4446 are still 32 bits, so they're packed two per gregset_t
4447 element. Unpack/pack them properly.
4449 2003-06-02 David Carlton <carlton@bactrian.org>
4451 * linespec.c (find_methods): Break out code into
4452 add_matching_methods and add_constructors.
4453 (add_matching_methods): New.
4454 (add_constructors): Ditto.
4456 2003-06-02 Andrew Cagney <cagney@redhat.com>
4458 * sparc-tdep.c (sparc_print_registers): Delete call to
4459 REGISTER_CONVERTIBLE.
4460 (sparc_gdbarch_init): Do not set register_convertible.
4461 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4462 * frv-tdep.c (frv_gdbarch_init): Ditto.
4463 * cris-tdep.c (cris_gdbarch_init): Ditto.
4465 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4467 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4468 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4469 (syms_from_objfile): Ditto.
4471 2003-06-03 Andreas Schwab <schwab@suse.de>
4473 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4474 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4476 2003-06-02 Richard Henderson <rth@redhat.com>
4478 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4479 a member of all_reggroup.
4481 2003-06-02 Richard Henderson <rth@redhat.com>
4483 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4484 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4485 (alpha_lds, alpha_sts): New.
4486 (alpha_convert_register_p): Change from _register_convertible.
4487 (alpha_register_to_value): Change from _convert_to_virtual;
4488 restructure and fail for type sizes other than 4 or 8.
4489 (alpha_value_to_register): Similarly.
4490 (alpha_extract_return_value): Use alpha_sts.
4491 (alpha_store_return_value): Use alpha_lds.
4492 (alpha_gdbarch_init): Update hooks.
4494 2003-06-02 Richard Henderson <rth@redhat.com>
4496 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4498 (alpha_sigtramp_register_address): Likewise.
4500 2003-06-02 Richard Henderson <rth@redhat.com>
4502 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4503 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4504 * alpha-tdep.h: Declare them.
4506 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4507 Remove zerobuf. Don't error on UNIQUE.
4508 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4509 (ALPHA_REGSET_UNIQUE): Provide default.
4510 (supply_gregset): Use alpha_supply_int_regs.
4511 (fill_gregset): Use alpha_fill_int_regs.
4512 (supply_fpregset): Use alpha_supply_fp_regs.
4513 (fill_fpregset): Use alpha_fill_fp_regs.
4514 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4515 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4516 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4517 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4518 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4519 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4521 2003-06-02 Richard Henderson <rth@redhat.com>
4523 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4525 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4526 (alpha_store_return_value): Likewise.
4528 2003-06-02 David Carlton <carlton@math.stanford.edu>
4530 * block.c (contained_in): Add 'const' to arguments.
4531 (block_function): Ditto.
4532 * block.h: Update declarations for block_function and
4535 2003-06-02 David Carlton <carlton@math.stanford.edu>
4537 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4538 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4539 * p-valprint.c (pascal_val_print): Ditto.
4540 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4542 2003-06-02 Richard Henderson <rth@redhat.com>
4544 * alpha-tdep.c (alpha_push_dummy_call): Use
4545 builtin_type_ieee_double_little instead of builtin_type_double.
4547 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4548 sign-extension of 32-bit values.
4549 (alpha_store_return_value): Similarly.
4551 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4552 (alpha_extract_return_value): Likewise.
4553 (alpha_store_return_value): Likewise.
4555 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4556 (alpha_store_return_value): Error on IEEE Quad floats.
4558 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4559 (alpha_extract_struct_value_address): Likewise.
4560 (alpha_store_return_value): Likewise.
4561 (alpha_store_struct_return): Remove.
4562 (alpha_gdbarch_init): Update hook registration to match.
4564 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4565 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4566 macros where appropriate.
4567 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4568 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4570 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4571 for SP, GP; void_func_ptr for PC; non-language-specific types
4573 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4575 2003-06-02 Richard Henderson <rth@redhat.com>
4577 * top.h (lim_at_start): Declare.
4578 * main.c (captured_main): Set it.
4579 * top.c (lim_at_start): Define.
4580 (command_loop): Use it instead of &environ.
4581 * event-top.c (command_handler): Likewise.
4583 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4585 * mipsnbsd-tdep.c: Update copyright years.
4586 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4588 2003-06-01 Richard Henderson <rth@redhat.com>
4590 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4591 (alpha-linux-tdep.o): Update dependencies.
4592 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4593 * alpha-mdebug-tdep.c: Remove unneeded includes.
4595 2003-06-01 Richard Henderson <rth@redhat.com>
4597 * alpha-tdep.c (alpha_register_reggroup_p): New.
4598 (alpha_gdbarch_init): Register it.
4600 2003-06-02 Andrew Cagney <cagney@redhat.com>
4602 * dwarfread.c: Eliminate "register"
4603 (decode_die_type): Eliminate assignment within "if".
4604 (struct_type, decode_array_element_type): Ditto.
4605 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4606 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4607 (decode_modified_type, completedieinfo): Ditto.
4608 * block.c: Eliminate "register".
4609 (blockvector_for_pc_sect): Eliminate assignment within "if".
4610 * cp-support.h (struct symbol): Opaque declaration.
4611 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4613 2003-06-01 Richard Henderson <rth@redhat.com>
4615 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4616 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4618 2003-06-01 Adam Fedor <fedor@gnu.org>
4620 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4621 * gdbarch.[ch]: Regenerate.
4622 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4623 (hppa_gdbarch_init): Set it in the gdbarch vector.
4624 * i386-tdep.c (i386_fetch_pointer_argument): New
4625 (i386_gdbarch_init): Set it into gdbarch.
4626 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4627 (rs6000_gdbarch_init): Set it in gdbarch.
4628 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4629 (sparc_gdbarch_init): Set it in gdbarch.
4631 2003-06-01 Andrew Cagney <cagney@redhat.com>
4633 * defs.h (extract_address): Delete declaration.
4634 * findvar.c (extract_address): Delete function.
4635 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4636 extract_address with the inline equivalent,
4637 extract_unsigned_integer.
4638 (xstormy16_extract_struct_value_address): Ditto.
4639 (xstormy16_pointer_to_address): Ditto.
4640 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4641 * v850-tdep.c (v850_push_arguments): Ditto.
4642 (v850_extract_return_value): Ditto.
4643 (v850_extract_struct_value_address): Ditto.
4644 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4645 (sparcnbsd_get_longjmp_target_64): Ditto.
4646 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4647 (get_longjmp_target): Ditto.
4648 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4649 (sh64_extract_struct_value_address): Ditto.
4650 (sh_push_arguments): Ditto.
4651 (sh64_push_arguments): Ditto.
4652 * remote-vxsparc.c (vx_read_register): Ditto.
4653 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4654 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4655 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4656 * mipsv4-nat.c (get_longjmp_target): Ditto.
4657 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4658 * mips-nat.c (get_longjmp_target): Ditto.
4659 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4660 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4661 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4662 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4663 * irix5-nat.c (get_longjmp_target): Ditto.
4664 * irix4-nat.c (get_longjmp_target): Ditto.
4665 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4666 (ia64_push_arguments): Ditto.
4667 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4668 * h8300-tdep.c (h8300_push_arguments): Ditto.
4669 (h8300_store_return_value): Ditto.
4670 (h8300_extract_struct_value_address): Ditto.
4671 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4672 (frv_push_arguments): Ditto.
4673 * avr-tdep.c (avr_pointer_to_address): Ditto.
4674 (avr_push_arguments): Ditto.
4675 * arm-tdep.c (arm_push_dummy_call): Ditto.
4676 (arm_get_longjmp_target): Ditto.
4677 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4678 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4679 (alpha_get_longjmp_target): Ditto.
4681 * solib-irix.c (extract_mips_address): Inline extract_address,
4682 replacing it with extract_signed_integer.
4683 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4684 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4685 (first_link_map_member, open_symbol_file_object): Ditto.
4686 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4687 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4688 (LM_NEXT, LM_NAME): Ditto.
4690 2003-06-01 Richard Henderson <rth@redhat.com>
4692 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4693 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4694 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4695 (alpha_cannot_store_register): Likewise.
4696 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4697 * alpha-nat.c (supply_gregset): Likewise.
4698 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4700 2003-06-01 Andrew Cagney <cagney@redhat.com>
4702 * infcall.c (call_function_by_hand): Update comment on
4703 DEPRECATED_DUMMY_WRITE_SP.
4705 * mips-tdep.c (mips_gdbarch_init): Do not set
4706 deprecated_dummy_write_sp.
4707 (mips_eabi_push_dummy_call): Set the SP register.
4708 (mips_o64_push_dummy_call): Set the SP register.
4709 (mips_o32_push_dummy_call): Set the SP register.
4710 (mips_n32n64_push_dummy_call): Set the SP register.
4712 2003-06-01 Richard Henderson <rth@redhat.com>
4714 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4715 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4716 (supply_gregset): Likewise.
4717 * alpha-tdep.c (alpha_store_return_value): Likewise.
4718 (alpha_get_longjmp_target): Likewise.
4719 (alpha_register_name): Constify array.
4720 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4721 deprecated_register_size, deprecated_register_bytes,
4722 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4723 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4724 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4726 2003-06-01 Richard Henderson <rth@redhat.com>
4728 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4729 from arg_reg_buffer to regcache to avoid double conversion.
4731 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4733 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4735 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4736 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4738 2003-06-01 Richard Henderson <rth@redhat.com>
4740 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4741 (decode_frame_entry): Set it. Skip FDE augmentation.
4743 2003-06-01 Richard Henderson <rth@redhat.com>
4745 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4746 not overlapping PC_REGNUM.
4748 2003-06-01 Richard Henderson <rth@redhat.com>
4750 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4751 alpha_push_arguments. Don't dump argument register data to
4752 the target stack. Fix float and 128-bit long double semantics.
4753 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4754 (alpha_fix_call_dummy): Remove.
4755 (alpha_call_dummy_words): Remove.
4756 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4758 2003-06-01 Richard Henderson <rth@redhat.com>
4760 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4762 2003-06-01 Andrew Cagney <cagney@redhat.com>
4764 * mips-tdep.c (is_mips16_addr): New function.
4765 (make_mips16_addr, unmake_mips16_addr): New functions.
4766 (pc_is_mips16, mips_fetch_instruction): Use.
4767 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4768 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4769 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4770 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4772 * config/mips/tm-mips.h: Update copyright.
4773 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4774 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4775 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4776 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4777 (TM_PRINT_INSN_MACH): Delete.
4778 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4780 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4781 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4782 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4783 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4784 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4785 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4786 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4787 mips*-*-riscos* and mips*-*-sysv* onto mips.
4788 * config/mips/mips64.mt: New file.
4789 * config/mips/mips.mt: New file.
4790 * config/mips/littlemips.mt: Delete file.
4791 * config/mips/decstation.mt: Delete file.
4792 * config/mips/vr4300el.mt: Delete file.
4793 * config/mips/vr5000el.mt: Delete file.
4794 * config/mips/vr5000.mt: Delete file.
4795 * config/mips/vr4100.mt: Delete file.
4796 * config/mips/vr4xxxel.mt: Delete file.
4797 * config/mips/vr4300.mt: Delete file.
4798 * config/mips/vr4xxx.mt: Delete file.
4799 * config/mips/bigmips.mt: Delete file.
4800 * config/mips/bigmips64.mt: Delete file.
4801 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4802 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4803 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4804 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4805 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4807 * config/mips/tm-irix3.h: Ditto.
4808 * config/mips/tm-mipsv4.h: Ditto.
4809 * config/mips/tm-embed.h: Ditto.
4810 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4812 * config/mips/tm-vr5000el.h: Delete file.
4813 * config/mips/tm-tx39l.h: Delete file.
4814 * config/mips/tm-vr4300el.h: Delete file.
4815 * config/mips/tm-vr4xxxel.h: Delete file.
4816 * config/mips/tm-vr4300.h: Delete file.
4817 * config/mips/tm-vr4100.h: Delete file.
4818 * config/mips/tm-vr4xxx.h: Delete file.
4819 * config/mips/tm-vr5000.h: Delete file.
4820 * config/mips/tm-embedl64.h: Delete file.
4821 * config/mips/tm-embedl.h: Delete file.
4822 * config/mips/tm-embed64.h: Delete file.
4823 * config/mips/tm-bigmips64.h: Delete file.
4824 * config/mips/tm-bigmips.h: Delete file.
4826 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4829 * shnbsd-nat.c: Include "sh-tdep.h".
4831 From Richard Henderson <rth@redhat.com>:
4832 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4834 2003-05-31 Andrew Cagney <cagney@redhat.com>
4836 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4837 forward declaration.
4838 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4839 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4840 (mips_find_saved_regs): Use set_reg_offset.
4841 (mips_frame_init_saved_regs): Delete function.
4842 (mips_pop_frame): Call mips_find_saved_regs instead of
4843 DEPRECATED_FRAME_INIT_SAVED_REGS.
4845 2003-05-31 Andrew Cagney <cagney@redhat.com>
4847 * mips-tdep.c (mips_gdbarch_init): Do not set
4848 deprecated_max_register_raw_size, register_virtual_size, and
4849 deprecated_max_register_virtual_size.
4851 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4853 * i386-tdep.c: Include "dwarf2-frame.h".
4854 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4855 * Makefile.in (i386-tdep.o): Update dependencies.
4857 * dwarf2-frame.c, dwarf2-frame.h: New files.
4858 * Makefile.in (SFILES): Add dwarf2-frame.c.
4859 (dwarf2_frame_h): Define.
4860 (COMMON_OBS): Add dwarf2-frame.o.
4861 (dwarf2-frame.o): Add dependencies.
4863 2003-05-31 Andreas Jaeger <aj@suse.de>
4865 * x86-64-linux-nat.c: Fix comment.
4867 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4869 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4872 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4873 have a sigcontext_addr handler.
4874 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4875 sigcontext_addr handler.
4877 2003-05-31 Andrew Cagney <cagney@redhat.com>
4879 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4880 (print_fp_register_row): Replace do_fp_register_row.
4881 (mips_print_fp_register): Add "file" and "frame" parameters.
4882 (mips_print_register): Add "file" and "frame" parameters.
4883 (mips_print_registers_info): Replace mips_do_registers_info.
4884 (mips_gdbarch_init): Set print_registers_info instead of
4885 deprecated_do_registers_info.
4886 (mips_read_fp_register_single): Add "frame" parameter.
4887 (mips_read_fp_register_double): Add "frame" parameter.
4889 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4891 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4892 Fixes a bug where GDB would print the wrong register names for
4893 targets without SSE.
4895 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4896 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4899 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4900 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4901 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4904 From Michal Ludvig <mludvig@suse.cz>:
4905 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4907 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4908 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4909 I386_ST0_REGNUM): Move here from...
4910 * i386-tdep.c: ... here.
4911 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4912 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4913 registers if possible.
4914 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4915 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4917 (i386bsd_sc_reg_offset): New variable.
4918 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4919 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4921 (i386fbsd_sc_reg_offset): New variable.
4922 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4924 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4926 (i386fbsd4_sc_reg_offset): New variable.
4927 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4928 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4930 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4931 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4932 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4934 (i386nbsd_sc_reg_offset): New variable.
4935 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4936 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4938 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4940 (i386obsd_sc_reg_offset): New variable.
4941 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4942 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4944 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4945 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4946 for frame pointer offset in `struct sigcontext'.
4948 2003-05-31 Andrew Cagney <cagney@redhat.com>
4950 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4951 architecture methods call_dummy_words, sizeof_call_dummy_words,
4952 push_return_address, store_struct_return, and fix_call_dummy. Set
4953 push_dummy_call instead of deprecated_push_arguments.
4954 (mips_store_struct_return): Delete function.
4955 (mips_fix_call_dummy): Delete function.
4956 (mips_push_return_address): Delete function.
4957 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4958 RA_REGNUM and T9_REGNUM.
4959 (mips_n32n64_push_dummy_call): Ditto for
4960 mips_n32n64_push_arguments.
4961 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4962 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4964 2003-05-31 Andrew Cagney <cagney@redhat.com>
4966 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4967 "dummy_addr" to "bp_addr".
4968 * infcall.c (call_function_by_hand): Pass "funaddr" to
4969 gdbarch_push_dummy_call.
4970 * gdbarch.h, gdbarch.c: Re-generate.
4971 * i386-tdep.c (i386_push_dummy_call): Update.
4972 * arm-tdep.c (arm_push_dummy_call): Update.
4973 * d10v-tdep.c (d10v_push_dummy_call): Update.
4975 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4977 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4978 variable declarations.
4979 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4980 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4981 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4982 x86_64_init_frame_pc, x86_64_init_frame_pc,
4983 x86_64_function_has_prologue): Remove prototypes.
4984 (X86_64_NUM_GREGS): New define.
4985 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4986 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4987 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4988 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4989 XMM1_REGNUM): Remove defines.
4990 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4991 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4992 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4993 X86_64_XMM1_REGNUM): New defines.
4994 (struct x86_64_register_info): Renamed from `struct
4995 register_info'. Remove `size' member.
4996 (x86_64_register_info_table): Remove variable.
4997 (x86_64_register_info): New variable.
4998 (X86_64_NUM_REGS): New define.
4999 (X86_64_NUM_GREGS): Remove define.
5000 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5001 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5003 (x86_54_dwarf2_reg_to_regnum): Remove function.
5004 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5005 (x86_64_dwarf_reg_to_regnum): New function.
5006 (x86_64_register_name): Rewrite.
5007 (x86_64_register_raw_size): Remove function.
5008 (x86_64_register_byte_table): Remove variable.
5009 (x86_64_register_byte): Remove function.
5010 (x86_64_register_virtual_type): Remove function.
5011 (x86_64_register_type): New function.
5012 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5013 x86_64_register_convert_to_raw): Remove functions.
5014 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5015 (x86_64_use_struct_convention): Make static. Adjust for renamed
5017 (x86_64_frame_init_saved_regs): Remove function.
5018 (x86_64_push_arguments): Make static. Change to accept a regcache
5020 (x86_64_store_return_value, x86_64_extract_return_value): Make
5021 static. Rewrite based on i386 counterparts.
5022 (x86_64_push_dummy_call): New function.
5023 (X86_64_NUM_SAVED_REGS): New define.
5024 (x86_64_register_number): Remove function.
5025 (x86_64_store_struct_return): Remove function.
5026 (x86_64_frameless_function_invocation,
5027 x86_64_function_has_prologue): Remove functions.
5028 (PROLOG_BUFSIZE): Remove define.
5029 (struct x86_64_frame_cache): New structure.
5030 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5031 x86_64_frame_cache, x86_64_frame_this_id,
5032 x86_64_frame_prev_register, x86_64_frame_p,
5033 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5034 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5036 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5038 (x86_64_skip_prologue): Rewrite in terms of
5039 x86_64_analyze_prologue.
5040 (x86_64_frame_base_address): New function.
5041 (x86_64_frame_base): New variable.
5042 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5043 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5044 set deprecated_fp_regnum, deprecated_register_size,
5045 deprecated_register_bytes, register_raw_size, register_byte,
5046 register_virtual_type, register_convertiable,
5047 register_convert_to_virtual, convert_to_raw,
5048 deprecated_get_saved_register, deprecated_target_read_fp,
5049 deprecated_push_arguments, deprecated_push_return_address,
5050 deprecated_pop_frame, deprecated_store_struct_return,
5051 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5052 frameless_function_invocation, deprecated_frame_saved_pc,
5053 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5054 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5055 deprecated_init_frame_pc and virtual_frame_pointer. Call
5056 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5057 and x86_64_frame_p. Call frame_base_set_default to register
5059 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5060 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5061 (_initialize_x86_64_tdep): Remove function.
5062 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5063 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5064 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5066 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5067 (x86_64_linux_sigcontext_addr): Rewrite.
5068 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5069 x86_64_linux_frame_saved_pc): Remove functions.
5070 (x86_64_linux_pc_in_sigtramp): Renamed from
5071 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5073 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5075 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5076 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5077 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5078 (x86_64_regmap): Rename to regmap.
5079 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5081 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5083 (x86_64_fxsave_offset): Remove function.
5084 (supply_fpregset): Simply call x86_64_supply_fxsave.
5085 (fill_fpregset): Simply call x86_64_fill_fxsave.
5086 (fetch_inferior_registers, store_inferior_registers): Avoid
5087 asignment in if-statement.
5088 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5089 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5090 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5091 (fetch_core_registers): Remove function.
5092 (linux_elf_core_fns): Remove.
5093 (offsetoff): Don't define.
5094 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5095 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5096 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5098 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5099 protection against multiple includes instead of NM_X86_64_h. Add
5100 various comments. Include "config/nm-linux.h". Don't include
5102 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5103 GET_THREAD_SIGNALS): Remove defines.
5104 (x86_64_register_u_addr, kernel_u_size,
5105 lin_thread_get_thread_signals): Remove prototypes.
5106 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5107 [HAVE_LINK_H]: Don't include "solib.h".
5108 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5109 * config/i386/tm-x86-64linux.h: Fix comments.
5110 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5111 x86-64-tdep.o): Update dependencies.
5113 2003-05-30 Andrew Cagney <cagney@redhat.com>
5115 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5116 Change parameter type to a "struct regcache *".
5118 * gdbarch.sh: Regardless of the multi-arch level, always define
5119 the macro when not already defined.
5120 * gdbarch.h, gdbarch.c: Re-generate.
5122 2003-05-30 Richard Henderson <rth@redhat.com>
5124 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5125 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5126 (alpha_mdebug_frame_this_id): Likewise.
5127 (alpha_mdebug_frame_prev_register): Likewise.
5128 (alpha_mdebug_frame_base_address): Likewise.
5129 (alpha_mdebug_frame_locals_address): Likewise.
5130 (alpha_mdebug_frame_args_address): Likewise.
5131 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5132 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5133 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5135 (alpha_heuristic_frame_this_id): Make static.
5136 (alpha_heuristic_frame_prev_register): Likewise.
5137 (alpha_heuristic_frame_base_address): Likewise.
5138 * alpha-tdep.h: Update.
5140 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5142 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5143 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5145 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5146 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5147 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5148 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5149 I386_ST0_REGNUM): New defines.
5150 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5151 codestream_get): Remove define.
5152 (codestream_next_addr, condestream_addr, condestream_buf,
5153 codestream_off, codestream_cnt): Remove variables.
5154 (codestream_fill, codestream_seek, codestream_read): Remove
5156 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5158 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5159 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5160 i386_frame_saved_pc, i386_saved_pc_after_call,
5161 i386_frame_num_args, i386_frame_init_saved_regs,
5162 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5163 i386_push_arguments): Remove functions.
5164 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5165 functionality. Use i386_analyze_prologue instead of
5166 i386_get_frame_setup.
5167 (I386_NUM_SAVED_REGS): New define.
5168 (struct i386_frame_cache): New structure.
5169 (i386_alloc_frame_cache, i386_analyze_struct_return,
5170 i386_skip_probe, i386_analyze_frame_setup,
5171 i386_analyze_register_saves, i386_analyze_prologue,
5172 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5173 i386_frame_prev_register, i386_sigtramp_frame_cache,
5174 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5175 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5176 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5178 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5180 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5181 I386_EAX_REGNUM and I386_EDX_REGNUM.
5182 (i386_extract_return_value, i386_store_return_value): Use
5183 I386_ST0_REGNUM where appropriate.
5184 (i386_extract_struct_value_address): Rewrite to use extract_address.
5185 (i386_svr4_pc_in_sigtramp): Add comment.
5186 (i386_svr4_sigcontext_addr): Rewrite.
5187 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5189 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5190 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5191 of new defines. Set push_dummy_call, don't set
5192 deprecated_push_arguments, deprecated_push_return_address,
5193 deprecated_pop_frame. Don't set parm_boundary. Don't set
5194 deprecated_frame_chain, deprecated_frame_saved_pc,
5195 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5196 save_dummy_frame_tos, unwind_pc. Call
5197 frame_unwind_append_predicate and frame_base_set_default. Don't
5198 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5199 Don't set frameless_function_invocation. Don't set
5200 deprecated_register_bytes, deprecated_register_size,
5201 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5202 * i386-linux-tdep.c: Fix formatting in some comments.
5203 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5204 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5205 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5206 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5207 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5208 redundant parentheses.
5209 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5210 (i386_linux_sigcontext_addr): Use it. Rewrite.
5211 (find_minsym_and_objfile): Change name of second argument.
5212 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5213 changed. Use frame_pc_unwind instead of
5214 DEPRECATED_SAVED_PC_AFTER_CALL.
5215 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5216 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5217 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5219 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5221 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5222 (_initialize_i386_cygwin_tdep): New prototype.
5223 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5224 deprecated_frame_chain_valid.
5225 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5226 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5227 Rely on the SVR4 defaults.
5228 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5229 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5231 2003-05-30 Andrew Cagney <cagney@redhat.com>
5233 * infcall.c (call_function_by_hand): Always call
5234 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5236 2003-05-30 Richard Henderson <rth@redhat.com>
5238 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5241 2003-05-29 Jim Blandy <jimb@redhat.com>
5243 Use gdbarch methods for solib stuff on PowerPC Linux.
5244 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5245 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5247 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5248 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5249 giving the same effect as the #definitions above.
5251 2003-05-29 Adam Fedor <fedor@gnu.org>
5253 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5254 (find_implementation_from_class): Replace it with the standard
5255 case i.e. do nothing.
5257 2003-05-29 Richard Henderson <rth@redhat.com>
5259 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5260 (alpha_linux_sigtramp_offset): Use it. Make static.
5261 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5262 update for new frame model.
5263 * alpha-mdebug-tdep.c: New file.
5264 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5265 (alpha_osf1_init_abi): Install it.
5266 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5267 (linked_proc_desc_table): Remove.
5268 (alpha_frame_past_sigtramp_frame): Remove.
5269 (alpha_dynamic_sigtramp_offset): Remove.
5270 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5271 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5272 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5273 (push_sigtramp_desc): Remove.
5274 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5275 (alpha_cannot_store_register): Likewise.
5276 (alpha_sigcontext_addr): Remove.
5277 (alpha_find_saved_regs): Remove.
5278 (alpha_frame_init_saved_regs): Remove.
5279 (alpha_init_frame_pc_first): Remove.
5280 (read_next_frame_reg): Remove.
5281 (alpha_frame_saved_pc): Remove.
5282 (alpha_saved_pc_after_call): Remove.
5283 (temp_proc_desc, temp_saved_regs): Remove.
5284 (alpha_about_to_return): Remove.
5285 (cached_proc_desc): Remove.
5286 (alpha_frame_chain): Remove.
5287 (alpha_print_extra_frame_info): Remove.
5288 (alpha_init_extra_frame_info): Remove.
5289 (alpha_frame_locals_address): Remove.
5290 (alpha_frame_args_address): Remove.
5291 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5292 (alpha_push_dummy_frame): Remove.
5293 (alpha_pop_frame): Remove.
5294 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5295 (alpha_read_insn): New.
5296 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5297 for different insn encodings.
5298 (alpha_in_lenient_prologue): Remove.
5299 (struct alpha_sigtramp_unwind_cache): New.
5300 (alpha_sigtramp_frame_unwind_cache): New.
5301 (alpha_sigtramp_register_address): New.
5302 (alpha_sigtramp_frame_this_id): New.
5303 (alpha_sigtramp_frame_prev_register): New.
5304 (alpha_sigtramp_frame_unwind): New.
5305 (alpha_sigtramp_frame_p): New.
5306 (struct alpha_heuristic_unwind_cache): New.
5307 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5308 don't count nop insns that occur between functions.
5309 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5310 heuristic_proc_desc, but without the mdebug wrapping.
5311 (alpha_heuristic_frame_this_id): New.
5312 (alpha_heuristic_frame_prev_register): New.
5313 (alpha_heuristic_frame_unwind): New.
5314 (alpha_heuristic_frame_p): New.
5315 (alpha_heuristic_frame_base_address): New.
5316 (alpha_heuristic_frame_base): New.
5317 (alpha_unwind_dummy_id): New.
5318 (alpha_unwind_pc): New.
5319 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5320 frame related deprecated initializations; install replacements.
5321 (alpha_dump_tdep): Remove.
5322 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5323 (alpha_read_insn, alpha_after_prologue,
5324 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5325 alpha_heuristic_frame_prev_register,
5326 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5327 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5328 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5329 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5331 2003-05-29 Andrew Cagney <cagney@redhat.com>
5333 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5334 dependant on the availability of ASSERT_FUNCTION.
5335 (ASSERT_FUNCTION): Do not define when there is no function name.
5337 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5339 From Jimi X <jimix@watson.ibm.com>:
5340 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5342 2003-05-28 Jim Blandy <jimb@redhat.com>
5344 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5345 argument to ptrace to int; the system headers should give it the
5346 right type, and pointers don't fit in ints on powerpc64-*-*.
5348 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5350 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5353 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5355 * stabsread.c (dbx_lookup_type): Make static.
5357 (add_undefined_type): Ditto.
5358 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5361 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5363 * hpread.c (hpread_has_name): Make static.
5364 (hpread_psymtab_to_symtab): Ditto.
5365 (file_exists): Ditto.
5366 (hpread_call_pxdb): Ditto.
5367 (hpread_pxdb_needed): Ditto.
5368 (hpread_quick_traverse): Ditto.
5369 (hpread_get_header): Ditto.
5370 (hpread_get_lntt): Ditto.
5371 (hpread_get_slt): Ditto.
5374 2003-05-25 Andreas Schwab <schwab@suse.de>
5376 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5377 stack_align and deprecated_extra_stack_alignment_needed.
5378 (m68k_stack_align): Delete.
5380 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5381 (m68k_register_virtual_size): Likewise.
5382 (altos_skip_prologue): Remove obsolete function.
5383 (isi_frame_num_args): Likewise.
5384 (news_frame_num_args): Likewise.
5385 (m68k_fix_call_dummy): Make static.
5386 (m68k_push_dummy_frame): Likewise.
5387 (m68k_pop_frame): Likewise.
5388 (m68k_skip_prologue): Likewise.
5389 (m68k_frame_init_saved_regs): Likewise.
5390 (m68k_saved_pc_after_call): Likewise.
5391 (m68k_get_longjmp_target): Make multi-arch.
5392 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5393 structure. Register m68k_get_longjmp_target if enabled.
5394 * m68k-tdep.h (struct gdbarch_tdep): Define.
5395 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5397 * Makefile.in (config.status): Also depend on configure.tgt
5399 (m68klinux-tdep.o): Update dependencies.
5400 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5401 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5402 (M68K_LINUX_JB_PC): Define.
5403 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5404 and take additional parameter.
5405 (m68k_linux_sigtramp_saved_pc): Update.
5406 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5407 m68k_linux_pc_in_sigtramp, in_plt_section,
5408 find_solib_trampoline_target.
5409 * config/m68k/tm-linux.h: Don't include any tm headers.
5410 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5411 (JB_ELEMENT_SIZE): Likewise.
5413 (GET_LONGJMP_TARGET): Likewise.
5414 (IN_SIGTRAMP): Likewise.
5415 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5417 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5419 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5420 (sparc32_push_arguments): Re-implement by calling
5421 sparc32_do_push_arguments.
5423 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5425 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5426 SPARC_O1_REGNUM): New defines.
5427 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5428 (sparc32_store_return_value): New function.
5429 (sparc_extract_struct_value_address): Rewrite to operate on a
5431 (sparc_gdbarch_init): Don't set
5432 deprecated_extract_struct_value_address. Set
5433 extract_struct_value_address instead. Don't set
5434 deprecated_extract_return_value and deprecated_store_return_value
5435 for 32-bit targets. Set extract_return_value and
5436 store_return_value instead.
5437 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5438 DEPRECTAED_EXTRACT_RETURN_VALUE,
5439 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5440 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5441 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5442 (sparc_store_return_value): Remove prototype.
5443 (sparc32_store_return_value): New prototype.
5444 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5447 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5449 * sparcnbsd-tdep.c: Include "gdb_string.h".
5451 2003-05-23 Andrew Cagney <cagney@redhat.com>
5453 * p-valprint.c (pascal_val_print): Replace extract_address with
5454 the inline equivalent extract_unsigned_integer.
5455 * jv-valprint.c (java_value_print): Ditto.
5456 * ada-valprint.c (ada_val_print_1): Ditto.
5457 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5459 2003-05-23 Theodore A. Roth <troth@openavr.org>
5461 * blockframe.c (frameless_look_for_prologue): Remove unused
5462 after_prologue variable.
5464 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5466 * blockframe.c (get_pc_function_start): Rewrite to avoid
5467 asignments in if-statements.
5469 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5471 Committed by Elena Zannoni <ezannoni@redhat.com>.
5472 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5473 files, don't relocate absolute symbols (and do use mst_abs).
5475 2003-05-23 Andrew Cagney <cagney@redhat.com>
5477 * objc-lang.c: Include "gdb_assert.h".
5478 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5479 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5480 (gdb_check, gdb_check_fatal): Delete functions.
5481 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5483 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5484 * Makefile.in (objc-lang.o): Update dependencies.
5486 2003-05-22 Ian Lance Taylor <ian@airs.com>
5488 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5489 with fprintf_filtered, not fprintf_unfiltered.
5491 2003-05-22 Andrew Cagney <cagney@redhat.com>
5493 * stack.c (frame_info): Inline extract_address, replacing it with
5494 extract_unsigned_integer.
5495 * findvar.c (unsigned_pointer_to_address): Ditto.
5496 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5497 * dwarf2expr.c (dwarf2_read_address): Ditto.
5498 * frame.c (frame_pc_unwind): Update comment.
5499 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5501 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5503 * infptrace.c (detach): Call print_sys_errmsg rather than
5504 perror_with_name to issue warning message when errno is non-zero
5505 after calling ptrace detach.
5507 2003-05-21 J. Brobecker <brobecker@gnat.com>
5509 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5510 macro definitions from here...
5511 * hppa-tdep.c: ...to there.
5513 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5515 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5516 register_ptrace_addr(). Fix all callers.
5518 2003-05-21 Andreas Schwab <schwab@suse.de>
5520 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5522 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5524 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5525 (_initialize_m68k_linux_tdep): New function.
5526 (m68k_linux_frame_saved_pc): Make static.
5527 (m68k_linux_extract_return_value): Likewise.
5528 (m68k_linux_store_return_value): Likewise.
5529 (m68k_linux_extract_struct_value_address): Likewise.
5530 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5532 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5533 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5534 (DEPRECATED_FRAME_SAVED_PC): Remove.
5536 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5538 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5539 regset numbering rather than our own.
5541 2003-05-19 David Carlton <carlton@bactrian.org>
5543 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5545 2003-05-19 David Carlton <carlton@bactrian.org>
5547 Partial fix for PR c++/827.
5548 * cp-support.h: Include symtab.h.
5549 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5550 * cp-namespace.c: Update contributors.
5551 (cp_lookup_symbol_nonlocal): New.
5552 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5553 (lookup_symbol_file): Ditto.
5554 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5555 * block.h: Declare block_scope, block_using, block_global_block.
5556 * block.c (block_scope): New.
5557 (block_using, block_global_block): Ditto.
5558 * Makefile.in (cp_support_h): Depend on symtab_h.
5559 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5561 2003-05-19 David Carlton <carlton@bactrian.org>
5563 * language.h (struct language_defn): Add 'la_value_of_this'
5564 and 'la_lookup_symbol_nonlocal' members.
5565 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5566 lookup_symbol_static, lookup_symbol_global,
5567 lookup_symbol_aux_block.
5568 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5569 if we should search fields of this and how to do static/global
5571 (lookup_symbol_aux_block): Make extern.
5572 (basic_lookup_symbol_nonlocal): New.
5573 (lookup_symbol_static, lookup_symbol_global): Ditto.
5574 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5575 'la_lookup_symbol_nonlocal' members.
5576 * c-lang.c (c_language_defn, cplus_language_defn)
5577 (asm_language_defn, minimal_language_defn): Ditto.
5578 * jv-lang.c (java_language_defn): Ditto.
5579 * language.c (unknown_language_defn, auto_language_defn)
5580 (local_language_defn): Ditto.
5581 * m2-lang.c (m2_language_defn): Ditto.
5582 * objc-lang.c (objc_language_defn): Ditto.
5583 * scm-lang.c (scm_language_defn): Ditto.
5584 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5585 * p-lang.c (pascal_language_defn): Ditto for both.
5586 * Makefile.in (f-lang.o): Depend on value_h.
5589 2003-05-19 David Carlton <carlton@bactrian.org>
5591 * block.h: Declare block_static_block.
5592 * block.c (block_static_block): New.
5593 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5594 lookup_symbol_aux_local, calling block_static_block instead.
5595 (lookup_symbol_aux_local): Delete 'static_block' argument.
5597 2003-05-19 David Carlton <carlton@bactrian.org>
5599 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5601 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5603 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5604 register numbers mapping.
5606 2003-05-18 Adam Fedor <fedor@gnu.org>
5608 * symtab.c (completion_list_objc_symbol): New function.
5609 (make_symbol_completion_list): Use it to add ObjC symbols
5610 when looking though the list.
5611 (language_search_unquoted_string): New function.
5612 (make_file_symbol_completion_list): Use it.
5614 2003-05-18 Andreas Schwab <schwab@suse.de>
5616 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5618 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5619 as m68k_linux_extract_return_value.
5620 (DEPRECATED_STORE_RETURN_VALUE): Define as
5621 m68k_linux_store_return_value.
5622 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5623 m68k_linux_extract_struct_value_address.
5624 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5625 get_next_frame, get_frame_base, get_frame_pc.
5626 (m68k_linux_frame_saved_pc): Use get_frame_base.
5627 (m68k_linux_extract_return_value): New function.
5628 (m68k_linux_store_return_value): New function.
5629 (m68k_linux_extract_struct_value_address): New function.
5630 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5632 * c-exp.y (typebase): Remove duplicate occurence of
5633 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5634 of lookup_signed_typename.
5636 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5638 * dwarf2loc.c (find_location_expression): Change type of second
5639 argument to `size_t *'.
5640 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5643 2003-05-18 David Carlton <carlton@bactrian.org>
5645 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5646 'linkage_name'. Add comment.
5647 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5649 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5650 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5651 (lookup_block_symbol): Ditto.
5653 2003-05-16 Andrew Cagney <cagney@redhat.com>
5655 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5656 * gdbarch.h, gdbarch.c: Re-generate.
5657 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5658 * TODO (REGISTER_BYTES): Delete reference.
5659 * alpha-tdep.c (alpha_gdbarch_init): Update.
5660 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5661 * x86-64-tdep.c (x86_64_init_abi): Update.
5662 * vax-tdep.c (vax_gdbarch_init): Update.
5663 * v850-tdep.c (v850_gdbarch_init): Update.
5664 * sparc-tdep.c (sparc_gdbarch_init): Update.
5665 * sh-tdep.c (sh_gdbarch_init): Update.
5666 * s390-tdep.c (s390_gdbarch_init): Update.
5667 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5668 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5669 (ns32k_gdbarch_init_32382): Update.
5670 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5671 * mcore-tdep.c (mcore_gdbarch_init): Update.
5672 * m68k-tdep.c (m68k_gdbarch_init): Update.
5673 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5674 * ia64-tdep.c (ia64_gdbarch_init): Update.
5675 * i386-tdep.c (i386_gdbarch_init): Update.
5676 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5677 * hppa-tdep.c (hppa_gdbarch_init): Update.
5678 * h8300-tdep.c (h8300_gdbarch_init): Update.
5679 * frv-tdep.c (frv_gdbarch_init): Update.
5680 * cris-tdep.c (cris_gdbarch_init): Update.
5681 * avr-tdep.c (avr_gdbarch_init): Update.
5682 * arm-tdep.c (arm_gdbarch_init): Update.
5683 * sparc-tdep.c (sparc_pop_frame): Update.
5684 * rs6000-tdep.c (rs6000_pop_frame): Update.
5685 * remote.c (init_remote_state): Update.
5686 (remote_prepare_to_store): Update.
5687 * remote-vx.c (vx_prepare_to_store): Update.
5688 * remote-sds.c (sds_fetch_registers): Update.
5689 (sds_prepare_to_store): Update.
5690 * remote-array.c: Update.
5691 * regcache.c (init_legacy_regcache_descr): Update.
5692 (init_regcache_descr): Update.
5693 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5694 (mips_o64_extract_return_value): Update.
5695 * irix5-nat.c (fetch_core_registers): Update.
5696 * irix4-nat.c (fetch_core_registers): Update.
5697 * i386-tdep.h: Update.
5698 * hppa-tdep.c (pa_do_registers_info): Update.
5699 (pa_do_strcat_registers_info): Update.
5700 * cris-tdep.c (cris_register_bytes_ok): Update.
5701 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5702 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5703 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5704 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5705 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5706 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5707 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5708 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5709 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5710 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5711 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5712 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5713 (REGISTER_BYTES_OK): Update.
5714 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5715 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5717 2003-05-16 Ian Lance Taylor <ian@airs.com>
5719 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5720 (vax_print_insn, print_insn_arg): Remove static functions.
5721 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5722 print_insn_vax from opcodes library.
5723 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5725 2003-05-15 Andrew Cagney <cagney@redhat.com>
5727 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5728 * target.h (memory_breakpoint_from_pc): Delete declaration.
5729 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5730 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5731 * monitor.c (monitor_insert_breakpoint): Use
5732 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5733 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5734 * gdbarch.h, gdbarch.c: Re-generate.
5735 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5736 (sparc_gdbarch_init): Set breakpoint_from_pc to
5737 sparc_breakpoint_from_pc.
5738 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5739 (BREAKPOINT_FROM_PC): Define.
5740 (sparc_breakpoint_from_pc): Declare.
5741 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5742 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5743 (BREAKPOINT_FROM_PC): Define.
5744 (BREAKPOINT): Delete macro.
5745 * target.h: Update comment.
5746 * s390-tdep.c (s390_gdbarch_init): Update comments.
5747 * remote.c: Update comments.
5748 * remote-mips.c: Update comments.
5749 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5750 * mem-break.c: Update comment.
5751 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5752 (ia64_memory_insert_breakpoint): Update.
5753 * config/sparc/tm-sparc.h: Update comment.
5754 * config/pa/tm-hppa64.h: Update comment.
5755 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5756 (rs6000_breakpoint_from_pc): Update.
5757 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5758 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5759 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5760 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5761 (mips_breakpoint_from_pc): Update.
5762 (mips_dump_tdep): Update.
5764 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5765 * minsyms.c (lookup_minimal_symbol): Inline
5766 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5768 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5769 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5770 * p-lang.c (pascal_printstr): Ditto.
5771 * objc-lang.c (objc_printstr): Ditto.
5772 * m2-lang.c (m2_printstr): Ditto.
5773 * jv-valprint.c (java_print_value_fields): Ditto.
5774 * f-lang.c (f_printstr): Ditto.
5775 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5776 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5777 for repeat_count_threshold.
5778 * Makefile.in (cp-valprint.o): Update dependencies.
5780 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5782 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5783 (examine_prologue): Support looking through leaf functions, knowing
5784 they start with mov r2,r12. Support skipping over indirect stores
5785 of the input registers. Upon hitting a non-nop branch instruction
5786 or predicated instruction, bail out by setting lim_pc to the current
5787 pc value in the loop. At the end, if the lim_pc value is still
5788 beyond our calculated value and we have trust_limit set,
5789 use the lim_pc value.
5791 2003-05-15 Andrew Cagney <cagney@redhat.com>
5793 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5794 generic_find_dummy_frame.
5795 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5796 (deprecated_generic_find_dummy_frame): Update.
5797 (deprecated_read_register_dummy): Update.
5798 * frame.c (deprecated_generic_get_saved_register): Update.
5800 2003-05-15 Theodore A. Roth <troth@openavr.org>
5802 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5803 (avr_gdbarch_init): Set breakpoint_from_pc method.
5805 2003-05-15 Andrew Cagney <cagney@redhat.com>
5807 * regcache.c (build_regcache): Set deprecated_register_valid
5809 (deprecated_grub_regcache_for_register_valid): Delete function.
5810 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5813 2003-05-15 David Carlton <carlton@bactrian.org>
5815 Committed by Elena Zannoni <ezannoni@redhat.com>
5816 * symtab.c (lookup_symbol_aux): Delete calls to
5817 lookup_symbol_aux_minsyms.
5818 (lookup_symbol_aux_minsyms): Comment out function and
5819 prototype. Delete lookup by mangled name.
5821 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5823 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5824 correctly indicate an empty stack and ``stack_allocated'' to the
5825 indicate the number of elements initially allocated.
5826 (dwarf_expr_grow_stack): Simplify method for computing new
5827 stack size. Don't loop infinitely if ``stack_len'' is zero.
5828 (execute_stack_op): Move ``ctx->in_reg'' initialization
5829 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5830 be used in conjuction with DW_OP_piece. Revise error message
5833 2003-05-14 Theodore A. Roth <troth@openavr.org>
5835 * MAINTAINERS: Update my email address.
5836 * avr-tdep.c: Ditto.
5838 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5840 * symtab.h (enum domain_enum): Rename from namespace_enum.
5841 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5842 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5843 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5844 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5845 TYPES_NAMESPACE, METHODS_NAMESPACE.
5846 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5847 (struct symbol, struct partial_symbol): Rename field
5848 'namespace_enum namespace' to 'domain_enum domain'.
5849 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5850 Delete old define kludge for namespace.
5852 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5853 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5854 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5855 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5856 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5857 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5858 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5859 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5860 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5861 occurrences of the above.
5863 2003-05-14 Ian Lance Taylor <ian@airs.com>
5865 * Makefile.in (install-only): Use $(SHELL) when running
5868 2003-05-13 Ian Lance Taylor <ian@airs.com>
5870 * MAINTAINERS (write after approval): Add myself.
5872 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5873 second and third arguments.
5874 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5875 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5877 2003-05-13 Andrew Cagney <cagney@redhat.com>
5879 * defs.h (store_address): Delete declaration.
5880 findvar.c (store_address): Delete function.
5881 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5882 store_unsigned_integer.
5883 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5884 * v850-tdep.c (v850_push_arguments): Ditto.
5885 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5886 * sh-tdep.c (sh64_get_saved_register): Ditto.
5887 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5888 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5889 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5890 (mips_get_saved_register): Ditto.
5891 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5892 (find_func_descr, ia64_push_arguments): Ditto.
5893 * i386-tdep.c (i386_push_arguments): Ditto.
5894 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5895 * frv-tdep.c (frv_push_arguments): Ditto.
5896 * frame.c (legacy_saved_regs_prev_register): Ditto.
5897 (deprecated_generic_get_saved_register): Ditto.
5898 * findvar.c (unsigned_address_to_pointer): Ditto.
5899 * dwarf2read.c (dwarf2_const_value): Ditto.
5900 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5901 * alpha-tdep.c (alpha_push_arguments): Ditto.
5903 2003-05-12 J. Brobecker <brobecker@gnat.com>
5905 * NEWS: Mention that the hppa-hpux port has been partially
5906 multiarched (32bit ABIT only, so far).
5908 2003-05-11 Andrew Cagney <cagney@redhat.com>
5910 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5911 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5912 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5913 sim/testsuite/sim/arm/misaligned2.ms, and
5914 sim/testsuite/sim/arm/misaligned3.ms.
5915 * disasm.h (struct ui_file): Add opaque struct declaration.
5916 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5917 * frame.h (struct ui_file): Ditto.
5919 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5921 * value.h: Pretty print.
5923 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5925 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5927 2003-05-08 Andrew Cagney <cagney@redhat.com>
5929 * regcache.h (max_register_size): Delete declaration.
5930 * regcache.c (max_register_size): Delete function.
5931 (struct regcache_descr): Delete field "max_register_size".
5932 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5933 registers fit in MAX_REGISTER_SIZE.
5934 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5935 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5936 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5937 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5938 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5939 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5940 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5941 * dve3900-rom.c, hppa-tdep.c: Ditto.
5943 2003-05-08 David Carlton <carlton@math.stanford.edu>
5945 * valops.c (push_word): Fix typo.
5947 2003-05-08 Andrew Cagney <cagney@redhat.com>
5949 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5950 * gdbarch.h: Re-generate.
5951 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5952 (legacy_max_register_raw_size): Delete declaration.
5953 * regcache.c (legacy_max_register_raw_size): Delete function.
5954 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5955 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5956 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5957 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5958 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5959 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5960 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5961 * findvar.c, dwarf2cfi.c: Ditto.
5963 2003-05-08 Andrew Cagney <cagney@redhat.com>
5965 * mips-tdep.c (read_signed_register): New function, moved to here
5967 (read_signed_register_pid): Ditto.
5968 * regcache.c (read_signed_register_pid): Delete function, moved to
5970 (read_signed_register): Ditto.
5971 * regcache.h (read_signed_register): Delete declaration.
5972 (read_signed_register_pid): Delete declaration.
5974 2003-05-08 Andrew Cagney <cagney@redhat.com>
5976 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5977 * gdbarch.h: Re-generate.
5978 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5979 (legacy_max_register_virtual_size): Delete declaration.
5980 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5981 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5982 * tracepoint.c (memrange_sortmerge): Ditto.
5983 * sparc-tdep.c (sparc_print_registers): Ditto.
5984 * regcache.c (legacy_max_register_virtual_size): Delete function.
5986 2002-05-08 J. Brobecker <brobecker@gnat.com>
5988 * fork-child.c (escape_bang_in_quoted_argument): New function.
5989 (fork_inferior): Escape '!' characters in quoted arguments
5992 2003-05-08 J. Brobecker <brobecker@gnat.com>
5994 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5995 the language of the CU is not currently supported by GDB.
5997 2003-05-08 J. Brobecker <brobecker@gnat.com>
5999 * defs.h (language): Add language_minimal enum value.
6000 * c-lang.c (minimal_language_defn): New language definition.
6001 (_initialize_c_language): Add the new minimal language to the list
6002 of languages known to GDB.
6004 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6006 * frame.c (get_frame_type): Don't attempt to lazily initialize
6007 frame's unwinder for legacy frames.
6009 2003-05-07 Andrew Cagney <cagney@redhat.com>
6011 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6012 and "regcache" parameters.
6013 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6015 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6017 * dwarf2read.c (dwarf_decode_lines): Only use output of
6018 check_cu_functions() when calling record_line(). Do not update
6019 the current address.
6021 2003-05-07 Andrew Cagney <cagney@redhat.com>
6023 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6026 2003-05-07 Jim Blandy <jimb@redhat.com>
6028 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6029 'maint info symtabs' and 'maint info psymtabs'.
6030 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6031 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6032 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6033 Declarations updated.
6034 * maint.c (maintenance_list_command): Delete.
6035 (_initialize_maint_cmds): Update calls to add_cmd.
6036 * gdbcmd.h (maintenancelistlist): Delete declaration.
6037 * cli/cli-cmds.c (maintenancelistlist): Delete.
6038 (init_cmd_lists): Don't initialize it.
6039 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6041 2003-05-07 Andrew Cagney <cagney@redhat.com>
6043 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6045 (d10v_print_registers_info): Update.
6046 (d10v_dmap_register, d10v_imap_register): Delete functions.
6047 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6048 and "imap_register".
6049 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6050 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6051 * arch-utils.c (generic_remote_translate_xfer_address): Add
6052 "regcache" and "gdbarch" parameters.
6053 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6054 parameter. Change class to multi-arch.
6055 * gdbarch.h, gdbarch.c: Re-generate.
6056 * remote.c (remote_xfer_memory): Use
6057 gdbarch_remote_translate_xfer_address.
6059 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6061 * infrun.c (prev_pc): Move declaration ahead of proceed().
6062 (proceed): Refresh prev_pc value before resuming.
6063 (stop_stepping): Remove code to refresh prev_pc.
6065 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6067 * nto-tdep.c: Removed stray comment.
6069 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6071 * i386-nto-tdep.c: Fix old K&R function definitions.
6072 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6073 Also change add_show_from_set() call to add_setshow_cmd().
6074 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6076 2003-05-05 Andrew Cagney <cagney@redhat.com>
6078 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6079 (fprint_dummy_frames): New function.
6080 (maintenance_print_dummy_frames): New function.
6081 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6082 * frame.c (fprint_frame_id): Make global.
6083 * frame.h (fprint_frame_id): Declare.
6084 * Makefile.in (dummy-frame.o): Update dependencies.
6086 2003-05-05 Andrew Cagney <cagney@redhat.com>
6088 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6089 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6090 SIZEOF_CALL_DUMMY_WORDS.
6091 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6092 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6093 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6094 CALL_DUMMY_BREAKPOINT_OFFSET.
6095 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6096 CALL_DUMMY_START_OFFSET.
6097 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6098 * gdbarch.h, gdbarch.c: Re-generate.
6099 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6100 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6101 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6102 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6103 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6104 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6105 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6106 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6107 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6108 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6109 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6110 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6111 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6112 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6113 * config/sparc/tm-sparc.h: Update.
6115 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6117 * configure.tgt: Add i[3456]86-*-nto*.
6118 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6119 * nto-tdep.c: New file. Neutrino target support routines.
6120 * nto-tdep.h: New file. Neutrino target header.
6121 * config/tm-qnxnto.h: New file.
6122 * config/i386/i386nto.mt: New file.
6123 * config/i386/tm-i386nto.h: New file.
6125 2003-05-04 Andrew Cagney <cagney@redhat.com>
6127 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6128 (load_infrun_state): Ditto.
6129 (struct thread_info): Drop "prev_func_name" field.
6130 * thread.c (load_infrun_state): Update.
6131 (save_infrun_state): Update.
6132 * infrun.c (prev_func_name): Delete variable.
6133 (init_wait_for_inferior): Do not clear prev_func_name.
6134 (stop_stepping, keep_going, context_switch): Do not swap
6136 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6137 instead of PC_IN_SIGTRAMP.
6139 2003-05-04 Andrew Cagney <cagney@redhat.com>
6141 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6142 REGISTER_BYTE with register_offset_hack.
6143 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6144 that REGISTER_BYTE is consistent with the regcache.
6145 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6146 * gdbarch.h, gdbarch.c: Regenerate.
6148 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6150 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6151 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6153 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6155 2003-05-03 J. Brobecker <brobecker@gnat.com>
6157 From Thierry Schneider <tpschneider1@yahoo.com>
6158 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6159 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6160 (mi-cmd-symbol.o): Add rule.
6162 2003-05-03 Andrew Cagney <cagney@redhat.com>
6164 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6165 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6166 * gdbarch.h, gdbarch.c: Re-generate.
6167 * d10v-tdep.c (d10v_push_dummy_code): New function.
6168 (d10v_gdbarch_init): Set push_dummy_code.
6169 * infcall.c (legacy_push_dummy_code): New function.
6170 (generic_push_dummy_code): New function.
6171 (push_dummy_code): New function.
6172 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6173 instead of dummy_addr, to push_dummy_call. Move call to
6174 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6176 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6178 2003-05-03 Andrew Cagney <cagney@redhat.com>
6180 * disasm.h (print_insn): Declare.
6181 * disasm.c (init_gdb_disassemble_info): New function.
6182 (gdb_disassembly): Call init_gdb_disassemble_info.
6183 (gdb_print_insn): New function.
6184 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6185 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6186 * mcore-tdep.c: Include "disasm.h"
6187 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6188 * d10v-tdep.c: Include "disasm.h".
6189 (display_trace): Call gdb_print_insn, instead of print_insn.
6190 (print_insn): Delete function.
6191 * printcmd.c: Include "disasm.h".
6192 (print_insn): Delete function.
6193 (print_formatted): Call gdb_print_insn, instead of print_insn.
6194 * Makefile.in (printcmd.o): Update dependencies.
6195 (mcore-tdep.o, d10v-tdep.o): Ditto.
6197 2003-05-02 Andrew Cagney <cagney@redhat.com>
6199 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6200 PC_REGNUM, re-indent.
6201 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6202 PC_REGNUM isn't set.
6204 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6205 * gdbarch.h, gdbarch.c: Re-generate.
6206 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6207 register_virtual_size, pc_regnum, or register_bytes.
6208 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6209 (d10v_register_type): Use D10V_PC_REGNUM.
6210 (d10v_print_registers_info, d10v_read_pc): Ditto.
6211 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6212 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6214 2003-05-02 David Carlton <carlton@bactrian.org>
6216 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6217 the name with mstrsave.
6219 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6221 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6222 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6223 (host_charset_name, target_charset_name): New vars for use by
6225 (host_charset_enum, target_charset_enum): New enums for set/show
6227 (set_charset_sfunc, set_host_charset_sfunc,
6228 set_target_charset_sfunc): New functions.
6229 (set_host_charset, set_target_charset): Make static.
6230 (list_charsets, set_host_charset_command,
6231 set_target_charset_command): Delete functions.
6232 (show_charset_command): Rewrite as....
6233 (show_charset): Hook this up with the set/show command mechanism.
6234 (_initialize_charset): Change names of charsets to match the
6235 set/show enums. Use host_charset_name and target_charset_name.
6236 Use set/show mechanism for charset, host-charset, target-charset
6237 commands. Do not make 'show host-charset' and 'show
6238 target-charset' be aliases of 'show charset'.
6240 * charset.h (set_host_charset, set_target_charset): Don't export,
6241 they are not used outside the file.
6243 2003-05-01 Andrew Cagney <cagney@redhat.com>
6245 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6246 (gdb_disassembly): Make "di" non static, always initialize and
6247 cleanup. Always use dis_asm_read_memory.
6248 (gdb_dis_asm_read_memory): Delete function.
6250 2003-05-01 Andrew Cagney <cagney@redhat.com>
6252 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6253 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6255 2003-04-30 Andrew Cagney <cagney@redhat.com>
6257 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6258 "tm_print_insn_info".
6259 (TARGET_PRINT_INSN_INFO): Delete macro.
6260 (dis_asm_read_memory): Delete function declaration.
6261 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6262 (tm_print_insn_info): Delete variable definition.
6263 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6264 * gdbarch.h, gdbarch.c: Re-generate.
6265 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6266 "deprecated_tm_print_insn_info".
6267 * mcore-tdep.c (mcore_dump_insn): Ditto.
6268 * mips-tdep.c (mips_gdbarch_init): Ditto.
6269 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6270 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6271 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6272 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6273 instead of TARGET_PRINT_INSN_INFO, add comment.
6274 * s390-tdep.c (s390_get_frame_info): Instead of
6275 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6276 (s390_check_function_end, s390_is_sigreturn): Ditto.
6277 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6278 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6279 * disasm.c: Include "gdbcore.h".
6280 (_initialize_disasm): New function, initialize
6281 "deprecated_tm_print_insn_info".
6282 (deprecated_tm_print_insn_info): New variable.
6283 (dis_asm_read_memory): Moved from "corefile.c", made static.
6284 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6285 * Makefile.in (disasm.o): Update dependencies.
6287 2003-04-30 Andrew Cagney <cagney@redhat.com>
6289 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6291 2003-04-29 Adam Fedor <fedor@gnu.org>
6293 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6294 * infcall.c (find_function_addr): Make non-static.
6295 * infcall.h (find_function_addr): Declare.
6296 * Makefile.in (eval.o): Update dependencies.
6298 2003-04-28 Adam Fedor <fedor@gnu.org>
6300 * symtab.c (symbol_find_demangled_name): Check for and demangle
6302 (symbol_init_demangled_name): Init for language_objc as well.
6304 2003-04-28 Andrew Cagney <cagney@redhat.com>
6306 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6307 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6308 * gdbarch.h, gdbarch.c: Re-generate.
6309 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6310 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6311 * inferior.h (deprecated_read_fp): Rename read_fp.
6312 (generic_target_read_fp): Delete declaration.
6313 * regcache.c (generic_target_read_fp): Delete function.
6314 (deprecated_read_fp): Replace read_fp, use
6315 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6316 * d10v-tdep.c (d10v_read_fp): Delete function.
6317 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6319 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6320 deprecated_target_read_fp to generic_target_read_fp.
6321 * sh-tdep.c (sh_gdbarch_init): Ditto.
6322 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6323 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6324 * frv-tdep.c (frv_gdbarch_init): Ditto.
6326 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6327 deprecated_fp_regnum.
6328 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6329 * vax-tdep.c (vax_gdbarch_init): Ditto.
6330 * v850-tdep.c (v850_gdbarch_init): Ditto.
6331 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6332 * sh-tdep.c (sh_gdbarch_init): Ditto.
6333 * s390-tdep.c (s390_gdbarch_init): Ditto.
6334 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6335 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6336 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6337 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6338 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6339 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6340 * i386-tdep.c (i386_gdbarch_init): Ditto.
6341 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6342 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6343 * frv-tdep.c (frv_gdbarch_init): Ditto.
6344 * cris-tdep.c (cris_gdbarch_init): Ditto.
6345 * avr-tdep.c (avr_gdbarch_init): Ditto.
6346 * arm-tdep.c (arm_gdbarch_init): Ditto.
6347 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6349 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6350 * v850-tdep.c (v850_gdbarch_init): Ditto.
6351 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6352 * sh-tdep.c (sh_gdbarch_init): Ditto.
6353 * s390-tdep.c (s390_gdbarch_init): Ditto.
6354 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6355 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6356 * mips-tdep.c (mips_gdbarch_init): Ditto.
6357 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6358 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6359 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6360 * frv-tdep.c (frv_gdbarch_init): Ditto.
6361 * avr-tdep.c (avr_gdbarch_init): Ditto.
6362 * arm-tdep.c (arm_gdbarch_init): Ditto.
6364 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6365 DEPRECATED_FP_REGNUM.
6366 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6367 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6368 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6369 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6370 (sparc32_register_virtual_type): Ditto.
6371 * sh-tdep.c (sh64_frame_chain): Ditto.
6372 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6373 (sh_nofp_frame_init_saved_regs): Ditto.
6374 (sh64_nofp_frame_init_saved_regs): Ditto.
6375 (sh_fp_frame_init_saved_regs): Ditto.
6376 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6377 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6378 * procfs.c (procfs_fetch_registers): Ditto.
6379 (procfs_store_registers): Ditto.
6380 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6381 (store_inferior_registers, fetch_core_registers): Ditto.
6382 (fetch_kcore_registers, clear_regs): Ditto.
6383 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6384 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6385 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6386 * nlm/i386.c (do_status): Ditto.
6387 * mipsv4-nat.c (supply_gregset): Ditto.
6388 * mips-tdep.c: Ditto for comments.
6389 * mips-nat.c (fetch_inferior_registers): Ditto.
6390 (store_inferior_registers, fetch_core_registers): Ditto.
6391 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6392 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6393 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6394 (i386_do_pop_frame, i386_register_type): Ditto.
6395 * hppa-tdep.c (hppa_frame_chain): Ditto.
6396 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6397 (hppa_pop_frame, hppa_read_fp): Ditto.
6398 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6399 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6400 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6401 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6402 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6403 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6404 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6405 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6406 * blockframe.c: Ditto for comments.
6407 * arch-utils.h: Ditto for comments.
6408 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6409 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6410 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6411 * alpha-tdep.h: Ditto for comments.
6412 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6413 (alpha_cannot_store_register): Ditto.
6414 (alpha_push_dummy_frame): Ditto.
6415 * alpha-nat.c (supply_gregset): Ditto.
6417 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6418 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6419 * config/sparc/tm-sparc.h: Update comment.
6421 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6422 deprecated_read_fp instead of TARGET_READ_FP.
6423 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6424 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6425 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6426 deprecated_read_fp instead of read_fp.
6427 * s390-tdep.c (s390_push_arguments): Ditto.
6428 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6429 * frame.h: Ditto in comments.
6430 * frame.c (legacy_get_prev_frame): Ditto.
6431 * dummy-frame.c (dummy_frame_this_id): Ditto.
6432 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6434 2003-04-28 Andrew Cagney <cagney@redhat.com>
6436 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6437 * gdbarch.h, gdbarch.c: Re-generate.
6438 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6439 * vax-tdep.c (_initialize_vax_tdep): Update.
6440 * v850-tdep.c (_initialize_v850_tdep): Update.
6441 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6442 * s390-tdep.c (_initialize_s390_tdep): Update.
6443 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6444 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6445 * mips-tdep.c (_initialize_mips_tdep): Update.
6446 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6447 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6448 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6449 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6450 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6451 * frv-tdep.c (_initialize_frv_tdep): Update.
6452 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6453 (_initialize_cris_tdep): Update.
6454 * arch-utils.c (legacy_print_insn): Update.
6455 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6457 2003-04-26 Adam Fedor <fedor@gnu.org>
6459 * linespec.c (decode_objc): New function to decode ObjC calls
6460 (decode_line_1): Check for ObjC calls (using decode_objc)
6461 * Makefile (linespec.o): Update dependencies.
6463 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6465 * breakpoint.h (struct breakpoint_ops): New.
6466 (struct breakpoint): Add ops member.
6468 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6469 (mention): Use new breakpoint ops member.
6470 (set_raw_breakpoint): Initialize ops field to NULL.
6471 (print_exception_catchpoint, print_one_exception_catchpoint)
6472 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6473 (gnu_v3_exception_catchpoint_ops): New.
6474 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6476 2003-04-25 Adam Fedor <fedor@gnu.org>
6478 * Makefile.in (COMMON_OBS): Add objc-lang.o
6480 2003-04-25 Andrew Cagney <cagney@redhat.com>
6482 * d10v-tdep.c (print_insn): Delete function.
6483 (display_trace): Use TARGET_PRINT_INSN.
6484 (_initialize_d10v_tdep): Do not set tm_print_insn.
6485 (d10v_gdbarch_init): Set print_insn.
6487 2003-04-25 Andrew Cagney <cagney@redhat.com>
6489 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6490 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6491 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6492 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6493 (nr_dmap_regs, a0_regnum): ... new functions.
6494 (d10v_print_registers_info): Use a0_regnum, use register_size.
6495 (d10v_register_byte): Delete function.
6496 (d10v_register_raw_size): Delete function.
6497 (d10v_register_type): Use a0_regnum.
6498 (d10v_print_registers_info): Use a0_regnum.
6499 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6500 (d10v_gdbarch_init): Do not set register_byte or
6501 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6502 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6504 (trace_command): Use XCALLOC.
6505 (print_insn): Delete reference to tm_print_insn.
6506 (saved_regs_unwinder): Use store_unsigned_integer instead of
6508 * frame.h (FRAME_OBSTACK_CALLOC): Define
6510 2003-04-25 David Carlton <carlton@bactrian.org>
6512 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6514 2003-04-24 Adam Fedor <fedor@gnu.org>
6516 * objc-lang.c: Include "valprint.h"
6517 * Makefile.in (objc-lang.o): Update dependencies.
6519 2003-04-24 Adam Fedor <fedor@gnu.org>
6521 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6522 architecture dependant compilation and mark as unimplemented
6523 (until they get put in the gdbarch vector).
6525 2003-04-23 David Carlton <carlton@bactrian.org>
6527 * cp-support.c (cp_find_first_component): Accept 'operator' in
6530 2003-04-23 Andrew Cagney <cagney@redhat.com>
6532 * infcall.c (call_function_by_hand): Eliminate redundant
6533 indentation. Move "saved_async" and "old_cleanups" to where they
6536 2003-04-23 Andrew Cagney <cagney@redhat.com>
6538 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6539 and "buffer". Move the "name" code to where it is needed.
6541 2003-04-23 Andrew Cagney <cagney@redhat.com>
6543 * infcall.c (call_function_by_hand): Move variables "start_sp",
6544 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6545 code to ON_STACK switch branch.
6547 2003-04-23 Andrew Cagney <cagney@redhat.com>
6549 * infcall.c (call_function_by_hand): Make declaration of "i",
6550 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6553 2003-04-23 Andrew Cagney <cagney@redhat.com>
6555 * infcall.c (call_function_by_hand): Delete variable
6556 "n_method_args". Localize "param_type"'s declaration to the loop
6557 that it is used. Reinstate code assigning to said variable -
6558 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6559 Rationalize code using "param_type".
6561 2003-04-22 Andrew Cagney <cagney@redhat.com>
6563 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6564 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6565 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6566 to DEPRECATED_PUSH_RETURN_ADDRESS.
6568 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6570 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6571 on the DWARF2 register number prior to fetching a register.
6573 2003-04-22 J. Brobecker <brobecker@gnat.com>
6575 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6576 Update all the tests using SOFT_FLOAT considering the fact that
6577 this macro was always set to 0.
6578 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6579 considering the fact that this macro was always set to 0.
6580 * hppa-tdep.h (hppa_store_return_value): Likewise.
6581 (hppa_extract_return_value): Likewise.
6583 2003-04-22 J. Brobecker <brobecker@gnat.com>
6585 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6586 the hppa-pro target only.
6588 2003-04-21 J. Brobecker <brobecker@gnat.com>
6590 Ongoing multi-arch conversion effort for HP/UX:
6591 * config/pa/tm-hppa.h: Move all macro that are no longer
6592 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6593 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6595 2003-04-21 J. Brobecker <brobecker@gnat.com>
6597 * config/pa/tm-hppa.h: Obsolete a section that was only used
6600 2003-04-21 J. Brobecker <brobecker@gnat.com>
6602 Ongoing multi-arch conversion for HP/UX.
6603 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6604 if already defined (allows hppa64 to stay non-multiarched for now).
6605 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6607 2003-04-21 Andrew Cagney <cagney@redhat.com>
6609 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6611 2003-04-21 Andrew Cagney <cagney@redhat.com>
6613 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6614 "i386_num_mmx_regs".
6616 2003-04-21 Andrew Cagney <cagney@redhat.com>
6618 * infcall.c: New file.
6619 * infcall.h: New file.
6620 * valarith.c: Include "infcall.h".
6621 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6622 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6623 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6624 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6625 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6626 (SFILES): Add "infcall.c"
6627 (COMMON_OBS): Add "infcall.o".
6628 (infcall.o): Specify dependencies.
6629 * value.h (call_function_by_hand): Delete declaration.
6630 * inferior.h (run_stack_dummy): Delete declaration.
6631 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6632 (run_stack_dummy): Move to "infcall.c", merged into
6633 call_function_by_hand.
6634 * valops.c (call_function_by_hand): Moved to "infcall.c".
6635 (find_function_addr, value_arg_coerce): Ditto.
6636 (unwindonsignal_p, coerce_float_to_double): Ditto.
6637 (_initialize_valops): Move "set/show coerce-float-to-double", and
6638 "set/show unwindonsignal" commands to "infcall.c".
6639 * v850-tdep.c, target.h: Update comments.
6640 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6641 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6642 (sh64_init_extra_frame_info): Update comments.
6643 * mn10300-tdep.c: Update comments.
6644 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6645 * config/sparc/tm-sparc.h: Update comments.
6646 * breakpoint.h: Update comments.
6647 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6648 * arm-tdep.c: Update comment.
6650 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6652 * i386-tdep.c (i386_num_register_names): New variable.
6653 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6654 (MM0_REGNUM): Remove redundant parentheses in define.
6655 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6656 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6657 i386_mxcsr_regnum_p): Remove redundant parentheses.
6658 (i386_register_name): Use i386_num_register_names.
6660 * i386-tdep.c (i386_extract_return_value,
6661 i386_store_return_value): Correct check for availability of
6662 floating-point registers.
6664 * i386-tdep.c (i386_frame_num_args): Remove function.
6665 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6667 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6668 mmx_regnum_to_fp_regnum. Adjust all callers.
6670 * i386-tdep.c (i386_get_longjmp_target): Use
6671 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6672 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6675 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6677 * core-regset.c: Update comments to reflect reality. Re-order
6679 (fetch_core_registers): Use switch instead of if. Remove
6680 redundant prototype.
6682 2003-04-18 Jim Blandy <jimb@redhat.com>
6684 * s390-tdep.c (s390_frame_align): New function.
6685 (s390_gdbarch_init): Register it with the gdbarch object.
6687 2003-04-17 Richard Henderson <rth@redhat.com>
6689 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6691 2003-04-17 Michael Snyder <msnyder@redhat.com>
6692 Karen Bennet <bennet@redhat.com>
6694 Committed by Elena Zannoni <ezannoni@redhat.com>
6695 * gdb_gcore.sh: New script to create a core dump of a process.
6697 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6699 * values.c (value_being_returned): Don't fetch the return
6700 value if the return type is void.
6702 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6704 * thread-db.c: Reindented.
6706 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6708 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6709 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6736 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6738 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6739 the size of ``long double'' to 16, instead of 8.
6741 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6743 * i386-linux-nat.c: Add some whitespace to make things more
6745 (fetch_register, store_register, fetch_inferior_registers,
6746 store_inferior_registers): Get rid of assignment in if-statement.
6747 (store_register): Fix typo in error message.
6749 2003-04-16 Andrew Cagney <cagney@redhat.com>
6751 * utils.c (xmmalloc): Always allocate something, matches
6752 libiberty/xmalloc's semantics.
6753 (xmrealloc, xmcalloc): Ditto.
6755 2003-04-16 Andrew Cagney <cagney@redhat.com>
6757 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6759 (get_frame_type): Initialize unwind and type when needed.
6760 (get_frame_id, frame_register_unwind): Ditto.
6762 2003-04-16 Andrew Cagney <cagney@redhat.com>
6764 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6766 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6767 * sparcl-stub.c: Obsolete file.
6768 * config/sparc/tm-sparclet.h: Obsolete file.
6769 * sparclet-stub.c: Obsolete file.
6770 * sparclet-rom.c: Obsolete file.
6771 * sparcl-tdep.c: Obsolete file.
6772 * config/sparc/tm-sparclite.h: Obsolete file.
6773 * config/sparc/sparclite.mt: Obsolete file.
6774 * config/sparc/sparclet.mt: Obsolete file.
6775 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6776 sparc86x-*-* obsolete.
6778 2003-04-15 David Carlton <carlton@math.stanford.edu>
6780 * Makefile.in (SFILES): Add cp-namespace.c.
6781 (COMMON_OBS): Add cp-namespace.o.
6782 (block.o): Depend on gdb_obstack_h and cp_support_h.
6783 (buildsym.o): Depend on cp_support_h.
6784 (cp-namespace.o): New.
6785 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6786 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6787 (dwarf2read.o): Depend on cp_support_h.
6788 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6789 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6790 processing_current_namespace.
6791 (read_namespace): Update processing_current_namespace; check for
6792 anonymous namespaces.
6793 (dwarf2_name): New function.
6794 (dwarf2_extension): Ditto.
6795 * cp-support.h: Update copyright, contributors.
6796 Add inclusion guards.
6797 Add opaque declaration for structs obstack, block, symbol.
6798 (struct using_direct): New struct.
6799 Add declarations for cp_find_first_component,
6800 cp_entire_prefix_len, processing_has_namespace_info,
6801 processing_current_namespace, cp_is_anonymous,
6802 cp_add_using_directive, cp_initialize_namespace,
6803 cp_finalize_namespace, cp_set_block_scope,
6804 cp_scan_for_anonymous_namespaces.
6805 * cp-namespace.c: New file.
6806 * cp-support.c: Update copyright.
6807 Include ctype.h, gdb_assert.h, gdbcmd.h.
6808 New variable maint_cplus_cmd_list.
6809 (cp_find_first_component): New function.
6810 (cp_entire_prefix_len, maint_cplus_command)
6811 (first_component_command, _initialize_cp_support): Ditto.
6812 * buildsym.c: Include cp-support.h.
6813 New variable using_list.
6814 (add_symbol_to_list): Check for anonymous namespaces.
6815 (finish_block): Set block's scope.
6816 (start_symtab): Initialize C++ namespace support.
6817 (end_symtab): Finalize C++ namespace support.
6818 * block.h: Add opaque declarations for structs
6819 block_namespace_info, using_direct, and obstack.
6820 Add declarations for block_set_scope and block_set_using.
6821 (struct block): Add 'language_specific' member.
6822 (BLOCK_NAMESPACE): New macro.
6823 * block.c: Include gdb_obstack.h and cp-support.h.
6824 (struct block_namespace_info): New struct.
6825 (block_set_scope): New function.
6826 (block_set_using, block_initialize_namespace): Ditto.
6828 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6830 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6831 (locate_base): Return early if there aren't any link map offsets.
6832 (svr4_solib_create_inferior_hook): Warn if shared library support
6835 2003-04-14 David Carlton <carlton@math.stanford.edu>
6837 * symtab.c (symbol_set_names): Add prefix when storing Java names
6838 in hash table. Fix for PR java/1039.
6840 2003-04-14 David Carlton <carlton@math.stanford.edu>
6842 * symtab.c (symbol_set_names): Rename 'name' arg to
6843 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6844 * symtab.h: Change 'name' argument in declaration of
6845 symbol_set_names to 'linkage_name'.
6846 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6848 2003-04-14 Andrew Cagney <cagney@redhat.com>
6850 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6851 return the fully sign-extended register value.
6852 (get_frame_pointer): Ditto.
6853 (mips_pop_frame): Initialize "proc_desc" after checking for a
6856 2003-04-14 Andrew Cagney <cagney@redhat.com>
6858 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6859 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6860 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6861 (mips_push_register): Delete function.
6862 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6865 2003-04-14 Jim Blandy <jimb@redhat.com>
6867 * symmisc.c: #include "gdb_regex.h".
6868 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6870 * maint.c (maintenance_list_command): New function.
6871 (_initialize_maint_cmds): Register the above as commands.
6872 * symtab.h (maintenance_list_symtabs,
6873 maintenance_list_psymtabs): New declarations.
6874 * cli/cli-cmds.c (maintenancelistlist): New variable.
6875 (init_cmd_lists): Initialize it.
6876 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6877 * gdbcmd.h (maintenancelistlist): New declaration.
6878 * Makefile.in (symmisc.o): Update dependencies.
6880 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6882 * s390-nat.c: Include asm/types.h for addr_t.
6884 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6886 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6887 actually incoming type.
6889 2003-04-13 Andrew Cagney <cagney@redhat.com>
6891 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6892 get_next_frame and get_frame_saved_regs.
6894 2003-04-13 Andrew Cagney <cagney@redhat.com>
6896 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6897 of gdbarch_num_regs.
6899 2003-04-13 Andrew Cagney <cagney@redhat.com>
6901 * frame.h: Mention what replaced what in "struct frame_info".
6902 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6903 deprecated_update_frame_base_hack and
6904 deprecated_update_frame_pc_hack.
6905 * hppa-tdep.c: Ditto.
6907 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6909 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6910 to read_reg and update its comment. Remove regnum member.
6911 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6912 Don't call read_reg when setting in_reg. Call read_reg to get
6913 the frame base if it's in a register. Return the register number
6914 on the stack instead of in the context. Remove extra arguments
6916 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6917 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6918 the register number on the expression stack.
6919 (needs_frame_read_reg): Remove extra arguments.
6921 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6923 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6925 (execute_stack_op): All callers updated.
6926 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6927 * dwarf2loc.c (find_location_expression): New function.
6928 (dwarf_expr_frame_base): Call it.
6929 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6930 (dwarf2_tracepoint_var_ref): New function, broken out from
6931 locexpr_tracepoint_var_ref.
6932 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6934 (loclist_read_variable, loclist_read_needs_frame): New functions.
6935 (loclist_describe_location, loclist_tracepoint_var_ref): New
6937 (dwarf2_loclist_funcs): New struct location_funcs.
6938 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6939 (struct dwarf2_locexpr_baton): Add comments.
6940 (dwarf2_loclist_funcs): New extern.
6941 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6942 base_address and base_known.
6943 (dwarf_loc_buffer): New variable.
6944 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6945 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6946 (dwarf2_has_info): Initialize dwarf_loc_offset.
6947 (dwarf2_build_psymtabs): Read in .debug_loc.
6948 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6950 (psymtab_to_symtab_1): Likewise. Move base address calculation
6952 (dwarf2_get_pc_bounds): ... here. Use the base address from
6954 (dwarf2_symbol_mark_computed): Handle location lists.
6956 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6958 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6959 if the linkage name demangled successfully.
6961 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6963 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6964 disassmbly_flavour): Removed.
6966 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6968 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6970 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6972 2003-04-12 Andrew Cagney <cagney@redhat.com>
6974 * frame.h (struct frame_info): Move definition from here ...
6975 * frame.c (struct frame_info): ... to here.
6977 2003-04-12 Andrew Cagney <cagney@redhat.com>
6979 * gdbthread.h (save_infrun_state): Delete parameter
6981 (struct thread_info): Delete field "prev_func_start".
6982 (load_infrun_state): Ditto.
6983 * thread.c (load_infrun_state, save_infrun_state): Update.
6984 * infrun.c (prev_func_start): Delete variable.
6985 (context_switch, init_wait_for_inferior): Update.
6986 (stop_stepping, keep_going): Update.
6988 2003-04-12 Andrew Cagney <cagney@redhat.com>
6990 * gdbarch.sh: Add missing opaque declarations.
6991 * gdbarch.h: Regnerate.
6992 * symtab.h: Add missing opaque declarations.
6993 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6994 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6995 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6996 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6997 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6998 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6999 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7000 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7001 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7002 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7003 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7004 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7005 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7007 2003-04-11 Andrew Cagney <cagney@redhat.com>
7009 * frame.c (get_frame_id): Return this frame's "id".
7010 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7012 (legacy_saved_regs_this_id): Replace function body with
7014 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7015 FRAME_OBSTACK_ZALLOC.
7016 (create_new_frame): Mark the frame ID as valid.
7018 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7020 * Makefile.in (libbfd_h): Added missing setting.
7021 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7022 according to the selected ABI.
7024 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7026 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7028 2003-04-11 Andrew Cagney <cagney@redhat.com>
7030 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7031 SAVED_PC_AFTER_CALL.
7032 * gdbarch.h, gdbarch.c: Regenerate.
7033 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7034 * x86-64-tdep.c (x86_64_init_abi): Update.
7035 * vax-tdep.c (vax_gdbarch_init): Update.
7036 * v850-tdep.c (v850_gdbarch_init): Update.
7037 * sparc-tdep.c (sparc_gdbarch_init): Update.
7038 * sh-tdep.c (sh_gdbarch_init): Update.
7039 * s390-tdep.c (s390_gdbarch_init): Update.
7040 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7041 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7042 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7043 * mips-tdep.c (mips_gdbarch_init): Update.
7044 * mcore-tdep.c (mcore_gdbarch_init): Update.
7045 * m68k-tdep.c (m68k_gdbarch_init): Update.
7046 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7047 * ia64-tdep.c (ia64_gdbarch_init): Update.
7048 (ia64_saved_pc_after_call): Update declaration.
7049 * i386ly-tdep.c (i386lynx_init_abi): Update.
7050 * i386-tdep.c (i386_gdbarch_init): Update.
7051 * hppa-tdep.c (hppa_gdbarch_init): Update.
7052 * h8300-tdep.c (h8300_gdbarch_init): Update.
7053 * frv-tdep.c (frv_gdbarch_init): Update.
7054 * cris-tdep.c (cris_gdbarch_init): Update.
7055 * avr-tdep.c (avr_gdbarch_init): Update.
7056 * arm-tdep.c (arm_gdbarch_init): Update.
7057 * alpha-tdep.c (alpha_gdbarch_init): Update.
7058 * ns32knbsd-nat.c (frame_num_args): Update.
7059 * ns32k-tdep.c (umax_frame_num_args): Update.
7060 * mips-tdep.c (mips_init_frame_pc_first): Update.
7061 * infrun.c (step_over_function): Update.
7062 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7063 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7064 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7065 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7066 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7067 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7068 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7069 * arch-utils.c (init_frame_pc_default): Update.
7070 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7071 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7074 2003-04-11 Andrew Cagney <cagney@redhat.com>
7076 * i387-tdep.c: Update copyright.
7077 (i387_to_double): Delete function.
7078 (double_to_i387): Delete function.
7080 2003-04-10 Andrew Cagney <cagney@redhat.com>
7082 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7083 frame's function's address. Simplify.
7084 (d10v_frame_unwind_cache): Check that the frame's function is
7087 2003-04-10 Jim Blandy <jimb@redhat.com>
7089 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7090 call to set_gdbarch_deprecated_push_arguments.
7092 2003-04-10 Andrew Cagney <cagney@redhat.com>
7094 * frame.c (fprint_frame_id): New function.
7095 (fprint_frame_type, fprint_frame): New function.
7096 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7097 (create_sentinel_frame, get_frame_id): Ditto.
7098 (frame_id_p, frame_id_eq): Ditto.
7099 (frame_id_inner, create_new_frame): Ditto.
7100 (legacy_get_prev_frame, get_prev_frame): Ditto.
7101 (deprecated_update_frame_pc_hack): Ditto.
7102 (frame_register_unwind): Ditto.
7103 (deprecated_update_frame_base_hack): Ditto.
7105 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7107 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7108 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7109 frame_chain function.
7110 * Makefile.in: Add dependencies due to above change.
7112 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7114 * blockframe.c (legacy_frame_chain_valid): Move call to
7115 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7118 2003-04-09 Andrew Cagney <cagney@redhat.com>
7120 * frame.h (struct frame_id): Replace "pc" and "base" with
7121 "stack_addr" and "code_addr". Update comments.
7122 (frame_id_build): Update parameter names and comment.
7123 (struct frame_info): Replace "id_p" and "id" with "this_id".
7124 * dummy-frame.c (dummy_frame_this_id): Update.
7125 * breakpoint.c (print_one_breakpoint): Update.
7126 * frame.c (get_frame_id): Update.
7127 (get_frame_base, frame_id_build): Update.
7128 (create_sentinel_frame, legacy_get_prev_frame): Update.
7129 (deprecated_update_frame_base_hack): Update.
7130 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7131 (frame_id_inner): Ditto.
7133 2003-04-09 Andrew Cagney <cagney@redhat.com>
7135 * defs.h (gdb_print_host_address): Make "addr" parameter a
7137 * utils.c (gdb_print_host_address): Update.
7139 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7141 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7142 register number for R0 is 0.
7144 2003-04-09 J. Brobecker <brobecker@gnat.com>
7146 * frame.h (struct gdbarch): Add opaque structure definition
7147 to avoid a compilation warning on LynxOS 4.0.
7149 2003-04-09 Andrew Cagney <cagney@redhat.com>
7151 * frame.h (struct frame_info): Delete field "pc". Replace
7152 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7154 * frame.c (frame_pc_unwind): Update.
7155 (create_sentinel_frame): Do not set "pc".
7156 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7157 (get_frame_pc): Call frame_pc_unwind.
7158 (deprecated_update_frame_pc_hack): Update.
7159 (create_new_frame): Use "pc" not "->pc".
7161 2003-04-09 Andrew Cagney <cagney@redhat.com>
7163 * frame.c (get_frame_id): Eliminate code updating "frame".
7164 (legacy_get_prev_frame): Ditto.
7165 (get_frame_base): Return id.base directly.
7166 (deprecated_update_frame_base_hack): Update "id.base".
7167 * frame.h (struct frame_info): Delete field "frame".
7169 2003-04-09 Andrew Cagney <cagney@redhat.com>
7171 * NEWS: Mention that the "Sequent family" is obsolete.
7172 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7173 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7174 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7175 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7176 * config/i386/tm-ptx4.h: Obsolete file.
7177 * config/i386/tm-ptx.h: Obsolete file.
7178 * symm-tdep.c: Obsolete file.
7179 * config/i386/symmetry.mt: Obsolete file.
7180 * config/i386/tm-symmetry.h: Obsolete file.
7181 * symm-nat.c: Obsolete file.
7182 * config/i386/nm-symmetry.h: Obsolete file.
7183 * config/i386/xm-symmetry.h: Obsolete file.
7184 * config/i386/symmetry.mh: Obsolete file.
7185 * config/i386/nm-ptx4.h: Obsolete file.
7186 * config/i386/ptx4.mh: Obsolete file.
7187 * config/i386/ptx.mt: Obsolete file.
7188 * config/i386/ptx.mh: Obsolete file.
7189 * config/i386/xm-ptx4.h: Obsolete file.
7190 * config/i386/xm-ptx.h: Obsolete file.
7192 2003-04-09 Andrew Cagney <cagney@redhat.com>
7194 Obsolete mips*-*-mach3*.
7195 * NEWS: Mention that mips*-*-mach3* is obsolete.
7196 * m3-nat.c: Obsolete file.
7197 * config/nm-m3.h: Obsolete file.
7198 * config/mips/tm-mipsm3.h: Obsolete file.
7199 * config/mips/mipsm3.mt: Obsolete file.
7200 * config/mips/mipsm3.mh: Obsolete file.
7201 * config/mips/xm-mipsm3.h: Obsolete file.
7202 * mipsm3-nat.c: Obsolete file.
7203 * configure.host: Obsolete mips-dec-mach3*.
7204 * configure.tgt: Obsolete mips*-*-mach3*.
7206 2003-04-09 Andrew Cagney <cagney@redhat.com>
7208 * doublest.h: Update copyright.
7209 (deprecated_store_floating, deprecated_extract_floating): Rename
7210 store_floating and extract_floating. Update comments.
7211 * doublest.c: Update copyright.
7212 (extract_floating_by_length): Replace extract_floating.
7213 (store_floating_by_length): Replace store_floating.
7214 (deprecated_extract_floating): New function.
7215 (deprecated_store_floating): New function.
7216 (extract_typed_floating): Call extract_floating_by_length.
7217 (store_typed_floating): Call store_floating_by_length.
7218 * x86-64-tdep.c (x86_64_store_return_value): Update.
7219 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7220 (sh64_extract_return_value): Update.
7221 (sh_sh4_register_convert_to_virtual): Update.
7222 (sh_sh64_register_convert_to_virtual): Update.
7223 (sh_sh4_register_convert_to_raw): Update.
7224 (sh_sh64_register_convert_to_raw): Update.
7225 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7226 (rs6000_register_convert_to_raw): Update.
7227 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7228 (ia64_register_convert_to_raw): Update.
7229 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7230 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7231 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7232 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7233 (alpha_register_convert_to_raw): Update.
7235 2003-04-08 Andrew Cagney <cagney@redhat.com>
7237 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7238 * gdbarch.h, gdbarch.c: Re-generate.
7239 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7240 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7241 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7242 conditionally, use frame_pc_unwind as an alternative. Add
7244 * arch-utils.c (init_frame_pc_default): Only call
7245 SAVED_PC_AFTER_CALL when available.
7247 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7249 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7250 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7251 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7252 (start_remote): Ditto.
7253 (handle_inferior_event): Ditto.
7254 (save_inferior_status): Ditto.
7255 (restore_inferior_status): Ditto.
7256 * infcmd.c (attach_command): Ditto.
7257 * fork-child.c (startup_inferior): Ditto.
7258 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7259 * alpha-tdep.c (heuristic_proc_start): Ditto.
7260 * mips-tdep.c (heuristic_proc_start): Ditto.
7261 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7262 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7263 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7264 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7265 * remote-vx.c (vx_create_inferior): Ditto.
7267 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7269 * infrun.c (stop_soon_quietly): Make it an enum, to better
7270 override the default behavior of handle_inferior_event.
7271 (clear_proceed_status): Update uses of stop_soon_quietly to
7272 reflect that it is now an enum.
7273 (start_remote): Ditto.
7274 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7275 is set to handle the new GNU/Linux kernel behavior for
7276 attach/sigstop. Update uses of stop_soon_quietly.
7277 * inferior.h (enum stop_kind): New enum.
7278 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7279 Reset normal handle_inferior_event behavior, afterwards.
7280 * fork-child.c (startup_inferior): Update.
7281 * alpha-tdep.c (heuristic_proc_start): Update.
7282 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7283 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7284 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7285 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7286 * remote-vx.c (vx_create_inferior): Update.
7287 * mips-tdep.c (heuristic_proc_start): Update.
7289 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7291 * disasm.c (dump_insns): Move variables inside loop, or they will
7292 be freed more than once, causing wild memory corruptions.
7293 (gdb_disassembly): Look for the substring "-thread",
7294 instead of "-threads" in the target name, to make sure to find
7295 the 'multi-thread' target. Also, make sure we do the right thing
7296 with the "core" target.
7298 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7300 * mips-tdep.c (mips_print_fp_register): New function, created from
7301 do_fp_register_row(). Registers are now (also) printed as hex.
7302 Only one register is printed per row.
7303 (mips_print_register, do_fp_register_row): Print floating point
7304 registers with mips_print_fp_register().
7306 2003-04-06 Andrew Cagney <cagney@redhat.com>
7308 * valprint.h (inspect_it): Add extern declaration.
7309 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7310 (selectors_info, classes_info): Ditto.
7311 (find_objc_msgcall): Fix indentation.
7312 (objc_printstr): Delete extern declarations.
7314 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7316 2003-04-06 Andrew Cagney <cagney@redhat.com>
7318 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7320 * frame.c (legacy_saved_regs_this_id): Update.
7321 (legacy_get_prev_frame): Update.
7322 * xstormy16-tdep.c: Update comment.
7323 * sparc-tdep.c (sparc_frame_chain): Update comment.
7324 * blockframe.c (legacy_frame_chain_valid): Update.
7326 2003-04-06 Andrew Cagney <cagney@redhat.com>
7328 * valprint.c (val_print_type_code_int): Delete #ifdef
7329 PRINT_TYPELESS_INTEGER code.
7331 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7332 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7333 multi-arch definition.
7334 * gdbarch.h: Re-generate.
7336 2003-04-05 Andrew Cagney <cagney@redhat.com>
7338 Eliminate FRAME_FIND_SAVED_REGS.
7339 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7340 Change FSR parameter to a pointer.
7341 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7342 Assume FSR parameter is a pointer.
7343 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7345 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7346 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7347 saved_regs a pointer.
7348 (hppa_frame_saved_pc): Ditto.
7349 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7350 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7352 (restore_pc_queue): Make fsr a pointer.
7353 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7354 (hppa_frame_chain): Make saved_regs a pointer, call
7355 hppa_frame_init_saved_regs.
7356 * sparc-tdep.c: Include "gdb_assert.h".
7357 (sparc_frame_find_saved_regs): Replace internal_error with
7359 * remote-vxsparc.c (vx_read_register): Delete reference to
7360 FRAME_FIND_SAVED_REGS.
7361 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7362 * gdbarch.h: Regenerate.
7363 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7364 (deprecated_get_frame_saved_regs): Delete declaration.
7365 (struct frame_saved_regs): Delete definition.
7366 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7367 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7368 (hppa_frame_find_saved_regs): Delete declaration.
7369 (FRAME_FIND_SAVED_REGS): Delete macro.
7370 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7371 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7372 FRAME_FIND_SAVED_REGS in comment.
7374 2003-04-05 Andrew Cagney <cagney@redhat.com>
7376 * frame.c (frame_func_unwind, get_frame_func): New functions.
7377 * frame.h (get_frame_func, frame_func_unwind): Declare.
7378 (struct frame_info): Add field "prev_func" for caching the
7379 previous frame's function address.
7380 * arm-tdep.c (arm_frameless_function_invocation): Combine
7381 get_pc_function_start and get_frame_pc into get_frame_func.
7382 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7383 (sh64_nofp_frame_init_saved_regs): Ditto.
7384 * s390-tdep.c (s390_function_start): Ditto.
7385 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7386 (rs6000_frameless_function_invocation): Ditto.
7387 (rs6000_frame_saved_pc): Ditto.
7388 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7389 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7390 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7391 (i386_frame_init_saved_regs): Ditto.
7392 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7393 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7394 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7395 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7396 * blockframe.c (frameless_look_for_prologue): Ditto.
7398 2003-04-05 Andrew Cagney <cagney@redhat.com>
7400 * frame.c (legacy_get_prev_frame): Link prev to next at the
7401 function start. Update comments.
7403 2003-04-05 Andrew Cagney <cagney@redhat.com>
7405 * frame.c (get_frame_id): Update comment.
7406 (legacy_get_prev_frame): Update comment.
7407 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7408 * gdbarch.h: Regenerate.
7409 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7410 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7412 2003-04-05 Andrew Cagney <cagney@redhat.com>
7414 * stack.c (print_frame_info): Use get_frame_pc.
7416 2003-04-04 Andrew Cagney <cagney@redhat.com>
7418 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7419 the frame's type from the unwinder.
7420 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7421 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7422 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7423 (get_frame_base_address): Use get_frame_type.
7424 (get_frame_locals_address, get_frame_args_address): Ditto.
7425 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7426 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7427 (struct frame_info): Add comment explaining why the frame contains
7429 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7430 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7431 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7433 * frame-unwind.h: Include "frame.h".
7434 (struct frame_unwind): Add "type" field.
7435 * Makefile.in (frame_unwind_h): Add $(frame_h).
7437 2003-04-04 Andrew Cagney <cagney@redhat.com>
7439 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7440 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7441 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7443 (d10v_unwind_dummy_id): Use frame_id_build.
7444 * frame.c (find_frame_sal): Use get_frame_pc.
7445 (create_new_frame): Use deprecated_update_frame_pc_hack and
7446 deprecated_update_frame_base_hack.
7447 (create_sentinel_frame): Add comment about ->pc going away.
7448 (get_prev_frame): Add comment about ->pc going away.
7449 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7450 frame_id_build, deprecated_update_frame_pc_hack and
7451 deprecated_update_frame_base_hack.
7452 (select_frame): Use get_frame_pc.
7453 (legacy_saved_regs_this_id): Use frame_id_build.
7455 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7457 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7458 signed integer case.
7459 (classify_argument): Handle enumerations and references.
7461 2003-04-04 Andrew Cagney <cagney@redhat.com>
7463 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7466 2003-04-01 Adam Fedor <fedor@gnu.org>
7468 * gdb/objc-lang.c (selectors_info): Replace calls to
7469 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7470 SYMBOL_NATURAL_NAME.
7471 (classes_info, find_methods): Likewise.
7473 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7475 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7476 ``mach'' to the value determined by bfd_default_set_arch_mach().
7478 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7480 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7481 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7482 (mi-cmd-file.o): Update dependencies.
7484 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7486 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7487 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7489 2003-04-01 Adam Fedor <fedor@gnu.org>
7491 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7492 * language.h (struct language_defn): Add la_demangle.
7493 (language_demangle): Declare.
7494 * language.c (language_demangle): New function.
7495 (unk_lang_demangle): Likewise.
7496 (unknown_language_defn, auto_language_defn, local_language_defn):
7497 Add ukn_lang_demangle.
7498 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7499 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7500 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7501 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7502 * jv-lang.c (java_demangle): New function
7503 (java_language_defn): Use it for la_demangle element.
7504 * objc-lang.c (objc_demangle): Add options argument
7505 (objc_language_defn): Use objc_demangle for la_demangle element.
7506 * maint.c (maintenance_demangle): Replace switch with
7507 call to language_demangle.
7508 * utils.c (fprintf_symbol_filtered): Likewise.
7510 2003-04-01 Andrew Cagney <cagney@redhat.com>
7512 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7513 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7514 PRINT_TYPELESS_INTEGER.
7515 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7516 PUSH_RETURN_ADDRESS.
7518 2003-04-01 Andrew Cagney <cagney@redhat.com>
7520 * Makefile.in (d10v-tdep.o): Update dependencies.
7521 * d10v-tdep.c: Include "frame-base.h".
7522 (d10v_frame_unwind): Make constant.
7523 (d10v_frame_base_address): New function.
7524 (d10v_frame_base): New variable.
7525 (d10v_gdbarch_init): Set frame_base default.
7526 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7528 (d10v_frame_unwind_cache): Set and use "prev_sp".
7529 (d10v_frame_this_id): Use the previous frame's inner most stack
7530 address and this frame's func address for the frame ID. Use
7531 frame_id_build. Don't analyze beyond the current instruction.
7533 2003-04-01 Andrew Cagney <cagney@redhat.com>
7535 * frame.h (get_frame_locals_address, get_frame_args_address):
7536 Refer to the base address, instead of the address of the first
7539 2003-04-01 Andrew Cagney <cagney@redhat.com>
7541 Add frame debug info addresses:
7542 * frame-base.c: New file.
7543 * frame-base.h: New file.
7544 * frame.h (struct frame_base): Add opaque declaration.
7545 (get_frame_base): Update comment.
7546 (get_frame_base_address): Declare.
7547 (get_frame_locals_address): Declare.
7548 (get_frame_args_address): Declare.
7549 (struct frame_info): Add "base" and "base_cache". Update
7550 comments on the unwinder.
7551 * frame.c: Include "frame-base.h".
7552 (get_frame_locals_address): New function.
7553 (get_frame_base_address): New function.
7554 (get_frame_args_address): New function.
7555 * findvar.c (read_var_value): Use get_frame_locals_address and
7556 get_frame_args_address.
7557 * stack.c (frame_info): Use get_frame_locals_address and
7558 get_frame_args_address.
7559 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7560 moved to "frame-base.c".
7561 * printcmd.c (print_frame_nameless_args): Ditto.
7562 * symtab.h (address_class): Update comments.
7563 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7564 get_frame_base_address.
7565 * dwarf2expr.c (execute_stack_op): Ditto.
7566 * Makefile.in (frame_base_h): Define.
7567 (frame.o): Update dependencies.
7568 (frame-base.o): Add dependencies.
7569 (SFILES): Add frame-base.c.
7570 (COMMON_OBS): Add frame-base.o.
7572 2003-04-01 Andrew Cagney <cagney@redhat.com>
7574 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7575 CALL_DUMMY_LENGTH): Ditto.
7576 * gdbarch.c: Re-generate.
7577 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7578 (CALL_DUMMY_LENGTH): Delete macro.
7579 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7580 * arm-tdep.c (arm_gdbarch_init): Ditto.
7581 * avr-tdep.c (avr_gdbarch_init): Ditto.
7582 * cris-tdep.c (cris_gdbarch_init): Ditto.
7583 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7584 * frv-tdep.c (frv_gdbarch_init): Ditto.
7585 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7586 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7587 * i386-tdep.c (i386_gdbarch_init): Ditto.
7588 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7589 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7590 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7591 * mips-tdep.c (mips_gdbarch_init): Ditto.
7592 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7593 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7594 * s390-tdep.c (s390_gdbarch_init): Ditto.
7595 * sh-tdep.c (sh_gdbarch_init): Ditto.
7596 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7597 * v850-tdep.c (v850_gdbarch_init): Ditto.
7598 * vax-tdep.c (vax_gdbarch_init): Ditto.
7599 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7601 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7603 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7605 2003-04-01 Andrew Cagney <cagney@redhat.com>
7607 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7608 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7609 * gdbarch.h, gdbarch.c: Re-generate.
7610 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7611 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7612 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7613 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7614 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7615 * infcmd.c (run_stack_dummy): Simplify assuming
7616 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7617 * infrun.c (handle_inferior_event): Ditto.
7618 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7619 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7620 * arm-tdep.c (arm_gdbarch_init): Ditto.
7621 * avr-tdep.c (avr_gdbarch_init): Ditto.
7622 * cris-tdep.c (cris_gdbarch_init): Ditto.
7623 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7624 * frv-tdep.c (frv_gdbarch_init): Ditto.
7625 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7626 * i386-tdep.c (i386_gdbarch_init): Ditto.
7627 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7628 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7629 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7630 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7631 * mips-tdep.c (mips_gdbarch_init): Ditto.
7632 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7633 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7634 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7635 * s390-tdep.c (s390_gdbarch_init): Ditto.
7636 * sh-tdep.c (sh_gdbarch_init): Ditto.
7637 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7638 * v850-tdep.c (v850_gdbarch_init): Ditto.
7639 * vax-tdep.c (vax_gdbarch_init): Ditto.
7640 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7642 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7644 * symfile.c (symfile_relocate_debug_section): Update call to
7645 bfd_simple_get_relocated_section_contents.
7647 2003-03-31 Andrew Cagney <cagney@redhat.com>
7649 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7650 * gdbarch.h, gdbarch.c: Regenerate.
7651 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7652 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7654 * frame.h (generic_fix_call_dummy): Delete declaration.
7655 * dummy-frame.h: Update comment.
7656 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7657 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7659 * sh-tdep.c (sh_gdbarch_init): Ditto.
7660 * s390-tdep.c (s390_gdbarch_init): Ditto.
7661 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7662 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7663 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7664 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7665 * i386-tdep.c (i386_gdbarch_init): Ditto.
7666 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7667 * frv-tdep.c (frv_gdbarch_init): Ditto.
7668 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7669 * cris-tdep.c (cris_gdbarch_init): Ditto.
7670 * avr-tdep.c (avr_gdbarch_init): Ditto.
7671 * arm-tdep.c (arm_gdbarch_init): Ditto.
7673 2003-03-31 J. Brobecker <brobecker@gnat.com>
7675 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7676 (INIT_FRAME_AP): Likewise.
7677 (EXTRA_FRAME_INFO): Likewise.
7679 2003-03-31 Andrew Cagney <cagney@redhat.com>
7681 * gdbarch.sh: Include "symfile.h".
7682 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7683 * gdbarch.h, gdbarch.c: Re-generate.
7684 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7685 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7686 call_dummy_address, the default is at entry_point_address.
7687 * v850-tdep.c (v850_gdbarch_init): Ditto.
7688 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7689 * sh-tdep.c (sh_gdbarch_init): Ditto.
7690 * s390-tdep.c (s390_gdbarch_init): Ditto.
7691 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7692 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7693 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7694 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7695 * i386-tdep.c (i386_gdbarch_init): Ditto.
7696 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7697 * frv-tdep.c (frv_gdbarch_init): Ditto.
7698 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7699 * cris-tdep.c (cris_gdbarch_init): Ditto.
7700 * arm-tdep.c (arm_gdbarch_init): Ditto.
7702 2003-03-31 Andrew Cagney <cagney@redhat.com>
7704 * gdbarch.sh (CALL_DUMMY_P): Delete.
7705 * gdbarch.h, gdbarch.c: Re-generate.
7706 * inferior.h (CALL_DUMMY_P): Delete macro.
7707 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7708 * vax-tdep.c (vax_gdbarch_init): Update.
7709 * v850-tdep.c (v850_gdbarch_init): Update.
7710 * sparc-tdep.c (sparc_gdbarch_init): Update.
7711 * sh-tdep.c (sh_gdbarch_init): Update.
7712 * s390-tdep.c (s390_gdbarch_init): Update.
7713 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7714 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7715 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7716 * mips-tdep.c (mips_gdbarch_init): Update.
7717 * mcore-tdep.c (mcore_gdbarch_init): Update.
7718 * m68k-tdep.c (m68k_gdbarch_init): Update.
7719 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7720 * ia64-tdep.c (ia64_gdbarch_init): Update.
7721 * i386-tdep.c (i386_gdbarch_init): Update.
7722 * h8300-tdep.c (h8300_gdbarch_init): Update.
7723 * frv-tdep.c (frv_gdbarch_init): Update.
7724 * d10v-tdep.c (d10v_gdbarch_init): Update.
7725 * cris-tdep.c (cris_gdbarch_init): Update.
7726 * breakpoint.c (deprecated_frame_in_dummy): Update.
7727 * avr-tdep.c (avr_gdbarch_init): Update.
7728 * alpha-tdep.c (alpha_gdbarch_init): Update.
7729 * arm-tdep.c (arm_gdbarch_init): Update.
7730 * dummy-frame.c (dummy_frame_this_id): Update comments.
7731 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7732 * frame.c (legacy_get_prev_frame): Ditto.
7733 * valops.c (call_function_by_hand): Delete function.
7734 (hand_function_call): Rename to call_function_by_hand
7736 2003-03-30 Andrew Cagney <cagney@redhat.com>
7738 2002-11-10 Klee Dienes <kdienes@apple.com>
7739 * value.h (struct value): Update comment.
7741 2003-03-30 Andrew Cagney <cagney@redhat.com>
7743 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7745 (d10v_gdbarch_init): Do not set fp_regnum.
7747 * frame.c (get_frame_base): Force ID initialization.
7748 (get_prev_frame): Move computation of the frame ID from here ...
7749 (get_frame_id): ... to here.
7750 (legacy_get_prev_frame): Mark the frame ID as valid.
7751 * frame.h (struct frame_info): Add field "id_p".
7753 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7755 * i386-tdep.c (i386_store_struct_return): Removed.
7756 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7758 2003-03-30 Andrew Cagney <cagney@redhat.com>
7760 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7761 * gdbarch.h, gdbarch.c: Regenerate.
7762 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7763 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7764 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7765 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7766 * i386-tdep.c (i386_gdbarch_init): Ditto.
7767 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7768 * cris-tdep.c (cris_gdbarch_init): Ditto.
7769 * vax-tdep.c (vax_gdbarch_init): Ditto.
7770 * s390-tdep.c (s390_gdbarch_init): Ditto.
7771 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7772 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7773 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7774 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7775 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7776 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7777 * sparc-tdep.c (sparc_gdbarch_init): Update.
7778 * sh-tdep.c (sh_gdbarch_init): Update.
7779 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7780 * mips-tdep.c (mips_gdbarch_init): Update.
7781 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7782 * ia64-tdep.c (ia64_gdbarch_init): Update.
7783 * frv-tdep.c (frv_gdbarch_init): Update.
7784 * avr-tdep.c (avr_gdbarch_init): Update.
7785 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7786 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7787 instead of when push_dummy_call is not available.
7789 2003-03-30 Andrew Cagney <cagney@redhat.com>
7791 * infttrace.c: Include "gdbthread.h".
7792 (parent_attach_all): Fix function signature.
7793 (call_ptrace): Update call.
7794 * Makefile.in (infttrace.o): Update dependencies.
7796 2003-03-30 Andrew Cagney <cagney@redhat.com>
7798 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7799 PUSH_RETURN_ADDRESS.
7800 * gdbarch.h, gdbarch.c: Regenerate.
7801 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7802 * x86-64-tdep.c (x86_64_init_abi): Update.
7803 * v850-tdep.c (v850_gdbarch_init): Update.
7804 * sparc-tdep.c (sparc_gdbarch_init): Update.
7805 * sh-tdep.c (sh_gdbarch_init): Update.
7806 * s390-tdep.c (s390_gdbarch_init): Update.
7807 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7808 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7809 * mips-tdep.c (mips_gdbarch_init): Update.
7810 * mcore-tdep.c (mcore_gdbarch_init): Update.
7811 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7812 * ia64-tdep.c (ia64_gdbarch_init): Update.
7813 * i386-tdep.c (i386_gdbarch_init): Update.
7814 * h8300-tdep.c (h8300_gdbarch_init): Update.
7815 * frv-tdep.c (frv_gdbarch_init): Update.
7816 * cris-tdep.c (cris_gdbarch_init): Update.
7817 * avr-tdep.c (avr_gdbarch_init): Update.
7818 * arm-tdep.c (arm_gdbarch_init): Update.
7819 * valops.c (hand_function_call): Update.
7821 2003-03-29 Andrew Cagney <cagney@redhat.com>
7823 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7824 sizeof_call_dummy_words.
7825 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7827 * gdbarch.h: Regenerate.
7829 2003-03-29 Andrew Cagney <cagney@redhat.com>
7831 * infttrace.h: New file.
7832 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7833 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7834 (hpread_read_doc_function_type): Detect an initialized type1.
7835 (hpread_quick_traverse): Initialize mod_name_string.
7836 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7837 (som_solib_get_solib_by_pc): Declare.
7838 (so_lib_thread_start_addr): Declare.
7839 (no_shared_libraries): Declare.
7840 * somread.c (init_import_symbols): Make static. Add forward
7842 * config/pa/nm-hppah.h: Include "infttrace.h" for
7844 (hppa_insert_hw_watchpoint): Declare.
7845 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7846 * hppah-nat.c: Include "gdb_string.h".
7847 (parent_attach_all): Delete extern declaration, moved to
7849 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7851 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7852 * Makefile.in (infttrace_h): Define.
7853 (hpread.o): Update dependencies.
7854 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7855 * hppa-hpux-tdep.c: Include "gdb_string.h".
7856 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7857 * infrun.c (handle_inferior_event): Always initialize
7858 stepped_after_stopped_by_watchpoint. Add default and remove
7859 fallthrough in switch statement.
7860 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7862 (hppa_remove_hw_watchpoint): Ditto.
7864 2003-03-29 Andrew Cagney <cagney@redhat.com>
7866 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7869 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7871 * arm-tdep.c (arm_push_arguments): Delete.
7872 (struct stack_item): New type.
7873 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7874 (arm_store_struct_return): Delte.
7875 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7876 arm_push_arguments or arm_store_struct_return.
7878 2003-03-28 Andrew Cagney <cagney@redhat.com>
7880 * Makefile.in (d10v-tdep.o): Update dependencies.
7881 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7882 * d10v-tdep.c: Include "remote.h".
7883 (target_resume_hook): Delete extern declaration.
7884 (target_wait_loop_hook): Ditto.
7885 (tdisassemble_command): Eliminate assignment in "if" conditional.
7886 (d10v_ts2_register_sim_regno): Eliminate call to
7887 legacy_register_sim_regno.
7888 (d10v_ts3_register_sim_regno): Ditto.
7890 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7892 * thread.c: Reindented.
7894 * linux-proc.c: Ditto.
7896 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7898 * MAINTAINERS (write after approval): Add myself.
7900 2003-03-27 Theodore A. Roth <troth@openavr.org>
7902 * objc-exp.y: Add missing semi-colons.
7904 2003-03-27 Andrew Cagney <cagney@redhat.com>
7906 * regcache.c (write_sp): Delete function and references.
7907 * inferior.h (write_sp): Delete declaration.
7908 * valops.c (hand_function_call): Replace write_sp with
7910 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7911 (sparc_pop_frame): Ditto.
7913 2003-03-27 Andrew Cagney <cagney@redhat.com>
7915 * NEWS: Mention removal of support for hppa*-*-bsd* and
7916 hppa*-*-osf* natives, and hppa*-*-pro* target.
7917 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7918 * config/pa/xm-pa.h: Obsolete file.
7919 * config/pa/xm-hppab.h: Obsolete file.
7920 * config/pa/nm-hppab.h: Obsolete file.
7921 * config/pa/tm-hppab.h: Obsolete file.
7922 * config/pa/tm-hppao.h: Obsolete file.
7923 * config/pa/nm-hppao.h: Obsolete file.
7924 * config/pa/tm-pro.h: Obsolete file.
7925 * config/pa/hppaosf.mt: Obsolete file.
7926 * config/pa/hppaosf.mh: Obsolete file.
7927 * config/pa/hppapro.mt: Obsolete file.
7928 * config/pa/hppabsd.mt: Obsolete file.
7929 * config/pa/hppabsd.mh: Obsolete file.
7930 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7931 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7934 2003-03-27 Andrew Cagney <cagney@redhat.com>
7936 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7937 push_arguments. Don't set push_return_address or write_sp.
7938 (d10v_push_dummy_call): Replace d10v_push_arguments.
7939 (d10v_push_return_address, d10v_write_sp): Delete function,
7940 handled by push_dummy_call.
7942 2003-03-26 Andrew Cagney <cagney@redhat.com>
7944 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7945 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7946 regcache and dummy_addr parameters.
7947 * gdbarch.h, gdbarch.c: Re-generate.
7948 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7949 available; assume it will handle stack alignment and return
7950 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7951 legacy_push_arguments.
7952 (legacy_push_arguments): Rename default_push_arguments.
7953 * value.h (legacy_push_arguments): Rename default_push_arguments.
7954 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7955 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7956 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7957 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7958 * config/i386/tm-symmetry.h: Update.
7959 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7960 * x86-64-tdep.c (x86_64_init_abi): Update.
7961 * v850-tdep.c (v850_gdbarch_init): Update.
7962 * sparc-tdep.c (sparc_gdbarch_init): Update.
7963 * sh-tdep.c (sh_gdbarch_init): Update.
7964 * s390-tdep.c (s390_gdbarch_init): Update.
7965 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7966 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7967 * mips-tdep.c (mips_gdbarch_init): Update.
7968 * mcore-tdep.c (mcore_gdbarch_init): Update.
7969 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7970 * ia64-tdep.c (ia64_gdbarch_init): Update.
7971 * i386-tdep.c (i386_gdbarch_init): Update.
7972 * hppa-tdep.c (hppa_gdbarch_init): Update.
7973 * h8300-tdep.c (h8300_gdbarch_init): Update.
7974 * frv-tdep.c (frv_gdbarch_init): Update.
7975 * d10v-tdep.c (d10v_gdbarch_init): Update.
7976 * cris-tdep.c (cris_gdbarch_init): Update.
7977 * avr-tdep.c (avr_gdbarch_init): Update.
7978 * arm-tdep.c (arm_gdbarch_init): Update.
7979 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7980 * alpha-tdep.c (alpha_gdbarch_init): Update.
7982 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7984 * signals/signals.c (do_target_signal_to_host): Correct realtime
7987 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7989 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7990 (struct sal_chain, map_catch_names): Remove.
7991 (catch_exception_command_1): Don't call
7992 handle_gnu_4_16_catch_command.
7994 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7996 From Mark Dettinger <dettinge@de.ibm.com>:
7997 * dwarf2cfi.c (read_2u): Increment pointer by two.
7999 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8001 * signals/signals.c: Fix typos in last change.
8003 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8005 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8006 not already defined. Use __SIGRTMIN if available.
8007 (target_signal_from_host): Remove SIGRTMIN block.
8008 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8009 the signal is within the realtime range.
8011 2003-03-25 Adam Fedor <fedor@gnu.org>
8013 * Makefile.in (infrun.o): Add $(language_h)
8014 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8015 for language specific trampolines.
8016 * language.h (struct language_defn): Add skip_trampoline.
8017 (skip_language_trampoline): Declare.
8018 * language.c (unk_lang_trampoline, skip_language_trampoline):
8020 (unknown_language_defn, auto_language_defn, local_language_defn):
8021 Add ukn_lang_trampoline.
8022 * ada-lang.c (ada_language_defn): Add NULL for language
8023 specific skip_trampoline.
8024 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8025 scm-lang.c: Likewise.
8026 * objc-lang.c (objc_skip_trampoline): New function.
8027 (objc_language_defn): Add objc_skip_trampoline.
8029 2003-03-25 Andrew Cagney <cagney@redhat.com>
8031 * frame.c (get_prev_frame): Delay validating a frame's ID -
8032 non-NULL, didn't go backwards - until an attempt to unwind it to
8035 2003-03-25 Andrew Cagney <cagney@redhat.com>
8037 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8038 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8039 * gdbarch.h, gdbarch.c: Re-generate.
8040 * config/sparc/tm-sparc.h
8041 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8042 * sparc-tdep.c (sparc_gdbarch_init): Set
8043 deprecated_extra_stack_alignment_needed.
8044 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8045 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8046 extra_stack_alignment_needed.
8047 * v850-tdep.c (v850_gdbarch_init): Ditto.
8048 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8049 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8050 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8051 * cris-tdep.c (cris_gdbarch_init): Ditto.
8052 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8053 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8055 2003-03-25 Andrew Cagney <cagney@redhat.com>
8057 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8058 STORE_STRUCT_RETURN.
8059 * gdbarch.h, gdbarch.c: Regenerate.
8060 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8061 (d10v_push_arguments): Set the struct return register.
8062 (d10v_gdbarch_init): Update.
8063 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8064 * x86-64-tdep.c (x86_64_init_abi): Update.
8065 * vax-tdep.c (vax_gdbarch_init): Update.
8066 * v850-tdep.c (v850_gdbarch_init): Update.
8067 * sparc-tdep.c (sparc_gdbarch_init): Update.
8068 * sh-tdep.c (sh_gdbarch_init): Update.
8069 * s390-tdep.c (s390_gdbarch_init): Update.
8070 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8071 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8072 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8073 * mips-tdep.c (mips_gdbarch_init): Update.
8074 * mcore-tdep.c (mcore_gdbarch_init): Update.
8075 * m68k-tdep.c (m68k_gdbarch_init): Update.
8076 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8077 * ia64-tdep.c (ia64_gdbarch_init): Update.
8078 * i386-tdep.c (i386_gdbarch_init): Update.
8079 * hppa-tdep.c (hppa_gdbarch_init): Update.
8080 * h8300-tdep.c (h8300_gdbarch_init): Update.
8081 * frv-tdep.c (frv_gdbarch_init): Update.
8082 * cris-tdep.c (cris_gdbarch_init): Update.
8083 * avr-tdep.c (avr_gdbarch_init): Update.
8084 * arm-tdep.c (arm_gdbarch_init): Update.
8085 * alpha-tdep.c (alpha_gdbarch_init): Update.
8087 2003-03-25 Andrew Cagney <cagney@redhat.com>
8089 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8090 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8091 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8092 * gdbarch.h, gdbarch.c: Regenerate.
8093 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8094 call_dummy_stack_adjust_p.
8095 * vax-tdep.c (vax_gdbarch_init): Ditto.
8096 * v850-tdep.c (v850_gdbarch_init): Ditto.
8097 * sh-tdep.c (sh_gdbarch_init): Ditto.
8098 * s390-tdep.c (s390_gdbarch_init): Ditto.
8099 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8100 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8101 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8102 * mips-tdep.c (mips_gdbarch_init): Ditto.
8103 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8104 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8105 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8106 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8107 * i386-tdep.c (i386_gdbarch_init): Ditto.
8108 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8109 * frv-tdep.c (frv_gdbarch_init): Ditto.
8110 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8111 * cris-tdep.c (cris_gdbarch_init): Ditto.
8112 * avr-tdep.c (avr_gdbarch_init): Ditto.
8113 * arm-tdep.c (arm_gdbarch_init): Ditto.
8114 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8115 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8116 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8117 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8118 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8119 call_dummy_stack_adjust_p.
8120 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8121 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8122 * sparc-tdep.c (sparc32_push_arguments): Update.
8123 * valops.c (hand_function_call): Update.
8125 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8127 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8128 set_gdbarch_char_signed.
8130 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8133 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8135 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8137 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8138 (_initialize_arm_tdep): Don't set tm_print_insn.
8140 2003-03-24 Adam Fedor <fedor@gnu.org>
8142 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8143 * objc-lang.h: Add multiple inclusion protection.
8144 (start_msglist, add_msglist, end_msglist): Additional declarations.
8146 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8148 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8149 value was renamed to ARM_FLOAT_SOFT_FPA.
8151 2003-03-23 Andrew Cagney <cagney@redhat.com>
8153 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8154 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8155 * gdbarch.h, gdbarch.c: Regenerate.
8156 * valops.c (hand_function_call): Update.
8157 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8158 * frame.c (legacy_saved_regs_this_id): Update.
8159 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8160 * dummy-frame.h: Update.
8161 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8162 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8163 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8164 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8165 * config/m68k/tm-sun3.h: Update.
8166 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8167 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8168 * x86-64-tdep.c (x86_64_init_abi): Update.
8169 * vax-tdep.c (vax_gdbarch_init): Update.
8170 * v850-tdep.c (v850_gdbarch_init): Update.
8171 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8172 * sh-tdep.c (sh_gdbarch_init): Update.
8173 * s390-tdep.c (s390_gdbarch_init): Update.
8174 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8175 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8176 (frame_get_saved_regs): Update.
8177 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8178 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8179 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8180 * mips-tdep.c (mips_gdbarch_init): Update.
8181 * mcore-tdep.c (mcore_gdbarch_init): Update.
8182 * m68k-tdep.c (m68k_gdbarch_init): Update.
8183 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8184 * ia64-tdep.c (ia64_gdbarch_init): Update.
8185 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8186 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8187 (i386_interix_back_one_frame): Update.
8188 * hppa-tdep.c (hppa_gdbarch_init): Update.
8189 (hppa_init_extra_frame_info): Update.
8190 * h8300-tdep.c (h8300_gdbarch_init): Update.
8191 * frv-tdep.c (frv_gdbarch_init): Update.
8192 * cris-tdep.c (cris_gdbarch_init): Update.
8193 * avr-tdep.c (avr_gdbarch_init): Update.
8194 * arm-tdep.c (arm_gdbarch_init): Update.
8195 * alpha-tdep.c (alpha_gdbarch_init): Update.
8197 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8199 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8200 (arm_get_fp_model): Declare.
8201 * arm-tdep.c (fp_model_strings): New string array.
8202 (arm_fp_model, current_fp_model): New variables.
8203 (arm_get_fp_model): New function.
8204 (arm_set_fp): New function.
8205 (set_fp_model_sfunc): New function.
8206 (show_fp_model): New function.
8207 (_initialize_arm_tdep): Add new command to set/show the FPU.
8208 (arm_extract_return_value): Use arm_get_fp_model.
8209 (arm_store_return_value): Likewise.
8210 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8211 to initialize the floating-point data types.
8212 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8215 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8217 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8218 the current setting of each value.
8219 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8220 new_set and new_show. Use add_setshow_cmd_full and
8221 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8222 commands and add new version as subcommands of "set/show arm".
8224 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8226 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8227 (set_arm_command, show_arm_command): New functions.
8228 (_initialize_arm_tdep): Add them.
8229 (num_disassembly_options): Renamed from num_flavor_options.
8230 (valid_disassembly_styles): Renamed from valid_flavors.
8231 (disassembly_style): Renamed from disassembly_flavor.
8232 (set_disassembly_style_sfunc): Renamed from
8233 set_disassembly_flavor_sfunc.
8234 (set_disassembly_style): Renamed from set_disassembly_flavor.
8235 (arm_othernames): Updated.
8236 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8237 command. Add "set/show arm disassembly" commands. Deprecate
8238 "othernames" command.
8240 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8242 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8243 (arm-tdep.o): Depend on elf_arm_h.
8245 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8247 * Makefile.in (coff_internal_h): Define.
8248 (arm-tdep.o): Update dependencies.
8250 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8252 * arm-tdep.c (prologue_cache): Delete.
8253 (check_prologue_cache, save_prologue_cache): Delete.
8254 (arm_scan_prologue): Don't check or update the prologue_cache.
8255 (arm_gdb_arch_init): Don't initialize it.
8256 (_initialize_arm_tdep): Likewise.
8258 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8260 * MAINTAINERS (tui): Maintainer of tui code.
8262 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8264 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8265 (i386-cygwin-tdep.o): Add dependencies.
8266 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8267 * i386-cygwin-tdep.c: New file.
8268 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8269 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8271 2003-03-20 Andrew Cagney <cagney@redhat.com>
8273 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8274 (handle_inferior_event): Remove code calling
8275 DYNAMIC_TRAMPOLINE_NEXTPC.
8277 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8278 already has a full path.
8280 * main.c (gdb_main): Return 1.
8281 (captured_main): Call error to report an invalid interpreter.
8283 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8284 * alpha-osf1-tdep.c: Include "gdb_string.h".
8286 2003-03-19 J. Brobecker <brobecker@gnat.com>
8288 Continuing work to convert the hppa targets to multiarch partial.
8290 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8291 method, now that hppa_push_dummy_frame has a conformant prototype.
8292 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8293 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8294 for the switch to multiarch partial.
8296 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8298 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8299 when iss is issNull.
8301 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8303 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8304 NUM_REGS bounds check.
8306 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8308 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8309 * mips-tdep.c (gdb_assert.h): Include.
8310 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8311 (mips_register_name): Handle integer registers explicitly. Add
8313 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8314 (mips_lsi33k_reg_names): Don't list integer registers; they're
8315 handled by mips_register_name() now.
8316 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8317 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8318 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8319 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8320 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8322 2003-03-18 Andrew Cagney <cagney@redhat.com>
8324 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8326 * gdbtypes.h (print_scalar_formatted): Update declaration.
8327 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8329 2003-03-18 J. Brobecker <brobecker@gnat.com>
8331 * infrun.c (observer.h): Add #include.
8332 (normal_stop): Add call to observer_notify_normal_stop.
8333 * Makefile.in (infrun.o): Add dependency on observer.h.
8335 2003-03-18 J. Brobecker <brobecker@gnat.com>
8337 Continuing work to convert the hppa targets to multiarch partial.
8338 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8339 parameter. Reformat comment.
8340 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8341 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8342 to match new profile.
8344 2003-03-18 J. Brobecker <brobecker@gnat.com>
8346 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8347 appear to be working in any case.
8349 2003-03-18 J. Brobecker <brobecker@gnat.com>
8351 * observer.c (observer_test_first_observer): New static variable.
8352 (observer_test_second_observer): Likewise.
8353 (observer_test_third_observer): Likewise.
8354 (observer_test_first_notification_function): New static function.
8355 (observer_test_second_notification_function): Likewise.
8356 (observer_test_third_notification_function): Likewise.
8358 2003-03-17 J. Brobecker <brobecker@gnat.com>
8360 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8361 * somsolib.c (gdb_assert.h): Likewise.
8362 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8363 (somsolib.o): Likewise.
8365 2003-03-17 Andrew Cagney <cagney@redhat.com>
8367 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8368 BFD. Simplify setting of di.endian.
8370 2003-03-17 Andrew Cagney <cagney@redhat.com>
8372 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8373 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8375 From Elena Zannoni <ezannoni@redhat.com>
8376 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8377 vector and floating-point parameters.
8378 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8380 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8382 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8384 * MAINTAINERS: Remove my name from several maintainership roles.
8386 2003-03-17 Andrew Cagney <cagney@redhat.com>
8388 Fix frame off-by-one bug.
8389 * frame-unwind.h (frame_this_id_ftype): Replace
8390 frame_unwind_id_ftype.
8391 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8392 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8393 with "prev_register".
8394 * frame-unwind.c (frame_unwind_find_by_pc): Return
8395 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8397 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8398 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8399 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8400 (dummy_frame_unwind): Update.
8401 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8402 sentinel_frame_register_unwind.
8403 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8404 (sentinel_frame_unwinder): Update.
8405 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8406 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8407 * frame.c (create_sentinel_frame): Update. Initialize
8408 "prologue_cache" instead of "unwind_cache".
8409 (frame_register_unwind): Call this frame's prev_register with the
8410 next frame and this frame's prologue cache.
8411 (get_prev_frame): Simplify. Always call prev frame's this_id with
8412 this frame and prev frame's prologue cache. Document that this
8413 call is shifted one to the left when compared to the
8414 frame_register_unwind call.
8415 (legacy_saved_regs_prev_register): Replace
8416 frame_saved_regs_register_unwind.
8417 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8418 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8419 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8420 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8421 (d10v_frame_unwind): Update.
8422 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8423 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8424 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8425 "saved_regs" with "this_saved_regs".
8427 2003-03-16 Andrew Cagney <cagney@redhat.com>
8429 * frame.c (frame_pop): Don't call target_store_registers. Fix
8430 problem reported by Mark Kettenis.
8432 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8434 * i386-tdep.c (i386_register_type): Renamed from
8435 i386_register_virtual_type. Adjust function signature.
8436 (i386_gdbarch_init): Set register_type instead of
8437 deprecated_max_register_raw_size,
8438 deprecated_max_register_virtual_size and register_virtual_type.
8440 2003-03-14 Andrew Cagney <cagney@redhat.com>
8442 * frame.c (get_prev_frame): When a legacy frame, always call
8443 legacy_get_prev_frame. Simplify unwind code using assumption that
8444 the unwinder is new.
8445 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8446 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8447 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8449 2003-03-14 Andrew Cagney <cagney@redhat.com>
8451 * frame.c (get_saved_register): Delete function.
8452 * frame.h (get_saved_register): Delete declaration.
8453 * xstormy16-tdep.c: Update comment.
8454 * regcache.h: Update comments.
8455 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8456 get_saved_register and extract_address, use
8457 frame_read_unsigned_register.
8458 (sparc_frame_saved_pc): Ditto.
8459 (sparc_get_saved_register): Instead of get_saved_register, use
8461 (sparc_pop_frame): Ditto.
8462 * findvar.c: Update comments.
8463 (value_of_register): Call frame_register instead of
8465 (value_from_register): Ditto.
8466 * config/sparc/tm-sparc.h: Update comment.
8467 * breakpoint.c: Update comment.
8469 2003-03-14 Andrew Cagney <cagney@redhat.com>
8471 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8473 * gdbarch.h, gdbarch.c: Re-generate.
8474 * frame.h: Update comments.
8475 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8476 * x86-64-tdep.c (x86_64_init_abi): Update.
8477 * sparc-tdep.c (sparc_gdbarch_init): Update.
8478 * sh-tdep.c (sh_gdbarch_init): Update.
8479 * mips-tdep.c (mips_gdbarch_init): Update.
8480 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8481 * cris-tdep.c (cris_gdbarch_init): Update.
8482 * ia64-tdep.c (ia64_gdbarch_init): Update.
8483 * frame.c (frame_register): Update.
8484 (get_saved_register): Update.
8485 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8487 2003-03-13 Andrew Cagney <cagney@redhat.com>
8489 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8490 * gdbarch.h, gdbarch.c: Regenerate.
8491 * valops.c (hand_function_call): Update comment.
8492 * stack.c (return_command): Update comment.
8493 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8494 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8495 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8496 * x86-64-tdep.c (x86_64_init_abi): Update.
8497 * vax-tdep.c (vax_gdbarch_init): Update.
8498 * v850-tdep.c (v850_gdbarch_init): Update.
8499 * sparc-tdep.c (sparc_gdbarch_init): Update.
8500 * sh-tdep.c (sh_gdbarch_init): Update.
8501 * s390-tdep.c (s390_gdbarch_init): Update.
8502 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8503 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8504 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8505 * mips-tdep.c (mips_gdbarch_init): Update.
8506 * mcore-tdep.c (mcore_gdbarch_init): Update.
8507 * m68k-tdep.c (m68k_gdbarch_init): Update.
8508 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8509 * ia64-tdep.c (ia64_gdbarch_init): Update.
8510 * i386-tdep.c (i386_gdbarch_init): Update.
8511 * hppa-tdep.c (hppa_gdbarch_init): Update.
8512 * h8300-tdep.c (h8300_gdbarch_init): Update.
8513 * frv-tdep.c (frv_gdbarch_init): Update.
8514 * cris-tdep.c (cris_gdbarch_init): Update.
8515 * avr-tdep.c (avr_gdbarch_init): Update.
8516 * arm-tdep.c (arm_gdbarch_init): Update.
8517 * alpha-tdep.c (alpha_gdbarch_init): Update.
8519 2003-03-13 Andrew Cagney <cagney@redhat.com>
8521 * frame.c (legacy_frame_p): New function.
8522 (get_prev_frame): Use legacy_frame_p.
8523 * frame.h (legacy_frame_p): Declare.
8525 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8527 * MAINTAINERS (write after approval): Alphabetically
8530 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8532 * MAINTAINERS (write after approval): Add myself.
8534 2003-03-12 Andrew Cagney <cagney@redhat.com>
8536 * frame.c (get_prev_frame): Rename the frame parameter to
8538 (get_next_frame, legacy_get_prev_frame): Ditto.
8540 2003-03-12 Andrew Cagney <cagney@redhat.com>
8542 * frame.c (get_current_frame): Check target_has_registers before
8543 checking target_has_stack.
8544 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8545 instead of deprecated_selected_frame.
8546 * findvar.c (value_of_register): Pass "frame", not
8547 deprecated_selected_frame, to value_of_builtin_reg.
8549 2003-03-12 Andrew Cagney <cagney@redhat.com>
8551 * regcache.c (regcache_cooked_write_signed): New function.
8552 (regcache_cooked_write_unsigned): New function.
8553 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8554 (regcache_cooked_read_signed): Fix regnum in range assertion.
8555 * regcache.h (regcache_cooked_write_signed): Declare.
8556 (regcache_cooked_write_unsigned): Declare.
8558 2003-03-12 Andrew Cagney <cagney@redhat.com>
8560 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8561 * gdbarch.h, gdbarch.c: Re-generate.
8562 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8563 * x86-64-tdep.h: Update.
8564 * x86-64-tdep.c (x86_64_init_abi): Update.
8565 * v850-tdep.c (v850_gdbarch_init): Update.
8566 * sparc-tdep.c (sparc_gdbarch_init): Update.
8567 * sh-tdep.c (sh_gdbarch_init): Update.
8568 * s390-tdep.c (s390_gdbarch_init): Update.
8569 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8570 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8571 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8572 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8573 * mips-tdep.c (mips_gdbarch_init): Update.
8574 * mcore-tdep.c (mcore_gdbarch_init): Update.
8575 * m68k-tdep.c (m68k_gdbarch_init): Update.
8576 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8577 * ia64-tdep.c (ia64_gdbarch_init): Update.
8578 * i386-tdep.c (i386_gdbarch_init): Update.
8579 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8580 * hppa-tdep.c (hppa_gdbarch_init): Update.
8581 * h8300-tdep.c (h8300_gdbarch_init): Update.
8582 * frv-tdep.c (frv_gdbarch_init): Update.
8583 * cris-tdep.c (cris_gdbarch_init): Update.
8584 * avr-tdep.c (avr_gdbarch_init): Update.
8585 * arm-tdep.c (arm_gdbarch_init): Update.
8586 * alpha-tdep.c (alpha_gdbarch_init): Update.
8587 * sh-tdep.c (sh_init_extra_frame_info): Update.
8588 (sh64_init_extra_frame_info): Update.
8589 * ns32knbsd-nat.c (frame_num_args): Update.
8590 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8591 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8592 (xstormy16_frame_chain_valid): Update.
8593 * vax-tdep.c (vax_saved_pc_after_call): Update.
8594 * v850-tdep.c (v850_frame_chain): Update.
8595 (v850_pop_frame): Update.
8596 (v850_init_extra_frame_info): Update.
8597 * sparc-tdep.c (setup_arbitrary_frame): Update.
8598 * ns32k-tdep.c (umax_frame_num_args): Update.
8599 * s390-tdep.c (s390_pop_frame_regular): Update.
8600 * mn10300-tdep.c (mn10300_frame_chain): Update.
8601 (mn10300_pop_frame_regular): Update.
8602 (mn10300_init_extra_frame_info): Update.
8603 * mips-tdep.c (mips_init_frame_pc_first): Update.
8604 (mips_frame_chain): Update.
8605 (mips_pop_frame): Update.
8606 * mcore-tdep.c (mcore_frame_chain): Update.
8607 (mcore_pop_frame): Update.
8608 (mcore_init_extra_frame_info): Update.
8609 * arch-utils.c (init_frame_pc_default): Update.
8610 * m68k-tdep.c (isi_frame_num_args): Update.
8611 (delta68_frame_num_args): Update.
8612 (news_frame_num_args): Update.
8613 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8614 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8615 (alpha_frame_chain): Update.
8616 (alpha_pop_frame): Update.
8617 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8618 (hppa_init_extra_frame_info): Update.
8619 (hppa_frame_chain): Update.
8620 (hppa_frame_chain_valid): Update.
8621 * cris-tdep.c (cris_init_extra_frame_info): Update.
8622 * avr-tdep.c (avr_init_extra_frame_info): Update.
8623 * arm-tdep.c (arm_frame_chain_valid): Update.
8624 (arm_init_extra_frame_info): Update.
8625 (arm_pop_frame): Update.
8626 * frame.c (frame_pc_unwind): Update.
8627 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8628 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8629 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8630 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8631 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8632 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8634 2003-03-12 Andrew Cagney <cagney@redhat.com>
8636 Eliminate the need for POP_FRAME.
8637 * frame.c (do_frame_unwind_register): New function.
8638 (frame_pop): When no POP_FRAME, pop the frame using register
8639 unwind and a scratch regcache.
8640 (frame_saved_regs_pop): Delete function.
8641 (trad_frame_unwinder): Update.
8642 * d10v-tdep.c (d10v_frame_pop): Delete function.
8643 (d10v_frame_unwind): Update.
8644 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8645 (sentinel_frame_unwinder): Update.
8646 * dummy-frame.c (dummy_frame_pop): Delete function.
8647 (dummy_frame_unwind): Update.
8648 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8649 (struct frame_unwind): Update.
8651 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8653 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8654 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8655 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8656 Do range checks on register number obtained from debugging info.
8657 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8658 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8659 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8661 (do_fp_register_row): Fix typo which caused double type to be
8662 used when attempting to unpack a float.
8664 2003-03-11 J. Brobecker <brobecker@gnat.com>
8666 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8668 2003-03-11 Andrew Cagney <cagney@redhat.com>
8670 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8671 frame. Problem found by Corinna Vinschen.
8673 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8675 * doublest.c (floatformat_from_length): Accept also
8676 the real size of 'long double' type.
8678 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8680 From Klee Dienes <kdienes@apple.com>:
8681 * breakpoint.c (bpstat_copy): Copy the command lines as well
8682 as the old value, to match what is freed in bpstat_clear.
8684 2003-03-10 David Carlton <carlton@math.stanford.edu>
8686 * minsyms.c (add_minsym_to_hash_table): Replace
8687 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8688 (compare_minimal_symbols, compact_minimal_symbols)
8689 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8690 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8691 of DEPRECATED_SYMBOL_MATCHES_NAME.
8692 (lookup_minimal_symbol_solib_trampoline): Ditto.
8694 2003-03-10 Andrew Cagney <cagney@redhat.com>
8696 * regcache.h (regcache_cooked_read_ftype): Define.
8697 (regcache_save, regcache_restore): Add a cooked_read parameter.
8698 * regcache.c (regcache_save, regcache_restore): Update.
8699 (do_cooked_read): New function.
8700 (regcache_cpy): Pass do_cooked_read to regcache_save and
8703 2003-03-10 Andrew Cagney <cagney@redhat.com>
8705 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8706 * gdbarch.h, gdbarch.c: Re-generate.
8707 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8708 * x86-64-tdep.h: Update.
8709 * x86-64-tdep.c (x86_64_init_abi): Update.
8710 * v850-tdep.c (v850_gdbarch_init): Update.
8711 * sparc-tdep.c (sparc_gdbarch_init): Update.
8712 * sh-tdep.c (sh_gdbarch_init): Update.
8713 * s390-tdep.c (s390_gdbarch_init): Update.
8714 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8715 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8716 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8717 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8718 * mips-tdep.c (mips_gdbarch_init): Update.
8719 * mcore-tdep.c (mcore_gdbarch_init): Update.
8720 * m68k-tdep.c (m68k_gdbarch_init): Update.
8721 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8722 * ia64-tdep.c (ia64_gdbarch_init): Update.
8723 * i386-tdep.c (i386_gdbarch_init): Update.
8724 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8725 * hppa-tdep.c (hppa_gdbarch_init): Update.
8726 * h8300-tdep.c (h8300_gdbarch_init): Update.
8727 * frv-tdep.c (frv_gdbarch_init): Update.
8728 * cris-tdep.c (cris_gdbarch_init): Update.
8729 * avr-tdep.c (avr_gdbarch_init): Update.
8730 * arm-tdep.c (arm_gdbarch_init): Update.
8731 * alpha-tdep.c (alpha_gdbarch_init): Update.
8732 * sh-tdep.c (sh_init_extra_frame_info): Update.
8733 (sh64_init_extra_frame_info): Update.
8734 * ns32knbsd-nat.c (frame_num_args): Update.
8735 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8736 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8737 (xstormy16_frame_chain_valid): Update.
8738 * vax-tdep.c (vax_saved_pc_after_call): Update.
8739 * v850-tdep.c (v850_frame_chain): Update.
8740 (v850_pop_frame): Update.
8741 (v850_init_extra_frame_info): Update.
8742 * sparc-tdep.c (setup_arbitrary_frame): Update.
8743 * ns32k-tdep.c (umax_frame_num_args): Update.
8744 * s390-tdep.c (s390_pop_frame_regular): Update.
8745 * mn10300-tdep.c (mn10300_frame_chain): Update.
8746 (mn10300_pop_frame_regular): Update.
8747 (mn10300_init_extra_frame_info): Update.
8748 * mips-tdep.c (mips_init_frame_pc_first): Update.
8749 (mips_frame_chain): Update.
8750 (mips_pop_frame): Update.
8751 * mcore-tdep.c (mcore_frame_chain): Update.
8752 (mcore_pop_frame): Update.
8753 (mcore_init_extra_frame_info): Update.
8754 * arch-utils.c (init_frame_pc_default): Update.
8755 * m68k-tdep.c (isi_frame_num_args): Update.
8756 (delta68_frame_num_args): Update.
8757 (news_frame_num_args): Update.
8758 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8759 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8760 (alpha_frame_chain): Update.
8761 (alpha_pop_frame): Update.
8762 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8763 (hppa_init_extra_frame_info): Update.
8764 (hppa_frame_chain): Update.
8765 (hppa_frame_chain_valid): Update.
8766 * cris-tdep.c (cris_init_extra_frame_info): Update.
8767 * avr-tdep.c (avr_init_extra_frame_info): Update.
8768 * arm-tdep.c (arm_frame_chain_valid): Update.
8769 (arm_init_extra_frame_info): Update.
8770 (arm_pop_frame): Update.
8771 * frame.c (frame_pc_unwind): Update.
8772 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8773 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8774 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8775 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8776 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8777 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8779 2003-03-10 Andrew Cagney <cagney@redhat.com>
8781 * gdbarch.sh (gdbarch_unwind_pc): New method.
8782 * gdbarch.h, gdbarch.c: Regenerate.
8783 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8784 but use read_pc and FRAME_SAVED_PC as fall backs.
8785 (frame_saved_regs_pc_unwind): Delete function.
8786 (trad_frame_unwinder): Update.
8787 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8788 (struct frame_unwind): Update.
8789 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8790 (dummy_frame_unwind): Update.
8791 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8792 (sentinel_frame_unwinder): Update.
8793 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8794 (d10v_frame_unwind): Update.
8795 (d10v_unwind_pc): New function.
8796 (d10v_gdbarch_init): Set unwind_pc.
8798 2003-03-10 Andrew Cagney <cagney@redhat.com>
8800 * gdbarch.h: Re-generate.
8802 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8804 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8807 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8809 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8811 2003-03-08 Andrew Cagney <cagney@redhat.com>
8813 * cli-out.c: Update copyright.
8814 (cli_out_data): Define typedef. Use instead of ui_out_data.
8816 2003-03-08 Andrew Cagney <cagney@redhat.com>
8818 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8821 2003-03-07 Andrew Cagney <cagney@redhat.com>
8823 * gdbarch.sh: Don't generate two macro definitions when an
8824 undefined macro taking no arguments.
8825 * gdbarch.h: Regenerate.
8827 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8829 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8830 (x86_64_unwind_dummy_id): New functions.
8831 (x86_64_init_abi): Register these two new functions.
8833 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8835 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8836 (x86_64_skip_prologue): Move prologue detection to
8838 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8840 2003-03-05 Andrew Cagney <cagney@redhat.com>
8842 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8843 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8844 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8845 to use unwind_dummy_id when a dummy frame.
8846 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8848 * gdbarch.h, gdbarch.c: Regneerate.
8850 2003-03-05 Andrew Cagney <cagney@redhat.com>
8852 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8853 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8854 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8857 2003-03-05 Andrew Cagney <cagney@redhat.com>
8859 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8860 (struct d10v_unwind_cache): Delete field "frameless". Replace
8861 "next_addr" with "sp_offset". Add "r11_offset".
8862 (d10v_frame_unwind_cache): Update.
8863 (prologue_find_regs): Update. When "mv r11, sp", save the
8864 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8865 RN was saved in r11_offset.
8867 2003-03-05 Andrew Cagney <cagney@redhat.com>
8869 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8870 cached PC value in the next frame.
8872 2003-03-05 Andrew Cagney <cagney@redhat.com>
8874 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8875 "id_unwind_cache" with "id".
8876 (frame_id_unwind): Delete declaration.
8877 * frame.c (frame_id_unwind): Delete function.
8878 (get_prev_frame): Call the frame id unwind method directly. Store
8879 the returned next frame's ID value in NEXT_FRAME. Note that there
8880 is a problem with the wrong unwind ID being called with the wrong
8883 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8885 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8887 2003-03-05 James Ingham <jingham@apple.com>
8888 Daniel Jacobowitz <drow@mvista.com>
8890 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8891 (auto_cp_abi): New variable.
8892 (current_cp_abi, num_cp_abis): Make static.
8893 (CP_ABI_MAX): Define.
8894 (cp_abis): Turn into an array.
8895 (value_virtual_fn_field): Fix formatting.
8896 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8898 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8899 (list_cp_abis, _initialize_cp_abi): New functions.
8900 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8901 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8902 switch_to_cp_abi. Update prototype for register_cp_abi.
8903 * Makefile.in (cp-abi.o): Update dependencies.
8904 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8905 instead of switch_to_cp_abi.
8906 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8908 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8910 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8912 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8914 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8915 * dwarf2loc.c: Include "regcache.h".
8916 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8918 * Makefile.in (dwarf2loc.o): Update dependencies.
8920 2003-03-04 Theodore A. Roth <troth@openavr.org>
8922 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8923 number of io registers reported by remote target is not a multiple of
8926 2003-03-04 David Carlton <carlton@math.stanford.edu>
8928 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8929 (lookup_symbol_aux_psymtabs): Update call to
8930 lookup_partial_symbol.
8931 (lookup_transparent_type, find_main_psymtab)
8932 (make_symbol_overload_list): Ditto.
8934 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8936 * MAINTAINERS (Write after approval): Update my email address.
8938 2003-03-03 Andrew Cagney <cagney@redhat.com>
8940 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8941 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8942 predicate. Replace MAX_REGISTER_RAW_SIZE.
8943 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8944 MAX_REGISTER_VIRTUAL_SIZE.
8945 * regcache.c (legacy_max_register_raw_size): New function.
8946 (legacy_max_register_virtual_size): New function.
8947 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8948 (MAX_REGISTER_RAW_SIZE): Define.
8949 (legacy_max_register_raw_size): Declare.
8950 (legacy_max_register_virtual_size): Declare.
8951 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8952 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8953 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8954 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8955 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8956 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8957 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8958 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8959 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8960 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8961 * vax-tdep.c (vax_gdbarch_init): Update.
8962 * v850-tdep.c (v850_gdbarch_init): Update.
8963 * sparc-tdep.c (sparc_gdbarch_init): Update.
8964 * sh-tdep.c (sh_gdbarch_init): Update.
8965 * s390-tdep.c (s390_gdbarch_init): Update.
8966 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8967 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8968 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8969 * mips-tdep.c (mips_gdbarch_init): Update.
8970 * mcore-tdep.c (mcore_gdbarch_init): Update.
8971 * m68k-tdep.c (m68k_gdbarch_init): Update.
8972 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8973 * ia64-tdep.c (ia64_gdbarch_init): Update.
8974 * i386-tdep.c (i386_gdbarch_init): Update.
8975 * hppa-tdep.c (hppa_gdbarch_init): Update.
8976 * h8300-tdep.c (h8300_gdbarch_init): Update.
8977 * frv-tdep.c (frv_gdbarch_init): Update.
8978 * cris-tdep.c (cris_gdbarch_init): Update.
8979 * avr-tdep.c (avr_gdbarch_init): Update.
8980 * arm-tdep.c (arm_gdbarch_init): Update.
8981 * alpha-tdep.c (alpha_gdbarch_init): Update.
8982 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8983 max_register_raw_size or max_register_virtual_size.
8985 2003-03-03 David Carlton <carlton@math.stanford.edu>
8987 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8988 SYMBOL_MATCHES_NAME, add comment.
8989 (SYMBOL_MATCHES_NATURAL_NAME): New.
8990 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8991 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8992 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8993 * symtab.c (lookup_partial_symbol): Use
8994 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8996 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8997 SYMBOL_MATCHES_NAME.
9000 2003-03-03 David Carlton <carlton@math.stanford.edu>
9002 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9003 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9004 by regexp matching against SYMBOL_NATURAL_NAME.
9006 2003-03-03 David Carlton <carlton@math.stanford.edu>
9008 * linespec.c (find_method): Extract code into collect_methods.
9009 (collect_methods): New.
9011 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9013 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9016 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9017 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9019 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9021 * arch-utils.c (generic_register_byte): Fix to use the loop index
9022 and not regnum when summing the size of all registers up to regnum.
9024 2003-03-01 Andrew Cagney <cagney@redhat.com>
9026 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9027 FRAME_INIT_SAVED_REGS.
9028 * gdbarch.h, gdbarch.c: Regenerate.
9029 * stack.c (frame_info): Update.
9030 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9031 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9032 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9033 * ns32k-tdep.c (ns32k_pop_frame): Update.
9034 * mips-tdep.c (mips_pop_frame): Update.
9035 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9036 * ia64-tdep.c (ia64_frame_chain): Update.
9037 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9038 (ia64_frameless_function_invocation): Update.
9039 (ia64_init_extra_frame_info): Update.
9040 (ia64_pop_frame_regular): Update.
9041 * frame.h (struct frame_info): Update comment.
9042 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9043 * frame.c (frame_saved_regs_register_unwind): Update.
9044 (frame_saved_regs_register_unwind): Update.
9045 (deprecated_generic_get_saved_register): Update.
9046 * cris-tdep.c: Update comment.
9047 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9049 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9050 * x86-64-tdep.c (x86_64_init_abi): Update.
9051 * vax-tdep.c (vax_gdbarch_init): Update.
9052 * v850-tdep.c (v850_gdbarch_init): Update.
9053 * sparc-tdep.c (sparc_gdbarch_init): Update.
9054 * sh-tdep.c (sh_gdbarch_init): Update.
9055 * s390-tdep.c (s390_gdbarch_init): Update.
9056 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9057 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9058 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9059 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9060 * mips-tdep.c (mips_gdbarch_init): Update.
9061 * mcore-tdep.c (mcore_gdbarch_init): Update.
9062 * m68k-tdep.c (m68k_gdbarch_init): Update.
9063 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9064 * ia64-tdep.c (ia64_gdbarch_init): Update.
9065 * i386-tdep.c (i386_gdbarch_init): Update.
9066 * frv-tdep.c (frv_gdbarch_init): Update.
9067 * avr-tdep.c (avr_gdbarch_init): Update.
9068 * arm-tdep.c (arm_gdbarch_init): Update.
9069 * alpha-tdep.c (alpha_gdbarch_init): Update.
9071 2003-03-01 Andrew Cagney <cagney@redhat.com>
9073 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9074 option enum and switch. When no windows, set the interpreter to
9077 2003-03-01 Andrew Cagney <cagney@redhat.com>
9079 * main.c (captured_main): Replace magic option characters with an
9082 2003-03-01 Andrew Cagney <cagney@redhat.com>
9084 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9085 INIT_EXTRA_FRAME_INFO.
9086 * gdbarch.h, gdbarch.c: Regenerate.
9087 * arm-tdep.c: Update comments.
9088 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9089 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9090 * frame.h, avr-tdep.c: Ditto.
9091 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9092 (create_new_frame, legacy_get_prev_frame): Ditto.
9093 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9094 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9095 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9096 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9097 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9098 * v850-tdep.c (v850_gdbarch_init): Ditto.
9099 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9100 * sh-tdep.c (sh_gdbarch_init): Ditto.
9101 * s390-tdep.c (s390_gdbarch_init): Ditto.
9102 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9103 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9104 * mips-tdep.c (mips_gdbarch_init): Ditto.
9105 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9106 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9107 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9108 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9109 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9110 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9111 * frv-tdep.c (frv_gdbarch_init): Ditto.
9112 * cris-tdep.c (cris_gdbarch_init): Ditto.
9113 * avr-tdep.c (avr_gdbarch_init): Ditto.
9114 * arm-tdep.c (arm_gdbarch_init): Ditto.
9115 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9116 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9118 2003-03-01 Andrew Cagney <cagney@redhat.com>
9120 * gdbarch.sh (register_type): New function with predicate.
9121 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9122 * gdbarch.h, gdbarch.c: Re-generate.
9123 * arch-utils.c (generic_register_byte): Use generic_register_size.
9124 (generic_register_size): When available, use
9125 gdbarch_register_type.
9126 * regcache.c (init_regcache_descr): When available, initialize the
9127 register type array using gdbarch_register_type. If the
9128 architecture supplies gdbarch_register_type, do not use the legacy
9130 * d10v-tdep.c (d10v_register_type): Replace
9131 d10v_register_virtual_type.
9132 (d10v_gdbarch_init): Set register_type instead of
9133 register_virtual_type.
9135 2003-03-01 Andrew Cagney <cagney@redhat.com>
9137 * Makefile.in (ax-gdb.o): Update dependencies.
9138 * ax-gdb.c: Include "regcache.h".
9139 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9140 * findvar.c (value_of_register): Ditto.
9141 * infcmd.c (default_print_registers_info): Ditto.
9143 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9145 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9146 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9148 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9150 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9153 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9155 * Makefile.in (dwarf2loc.o): Update dependencies.
9156 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9157 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9158 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9159 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9160 (locexpr_tracepoint_var_ref): New function.
9161 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9163 2003-02-28 Andrew Cagney <cagney@redhat.com>
9165 * regcache.c (register_size): New function.
9166 * regcache.h (register_size): Declare
9167 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9168 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9170 2003-02-28 David Carlton <carlton@math.stanford.edu>
9172 * linespec.c (decode_compound): Extract code into find_method.
9175 2003-02-28 J. Brobecker <brobecker@gnat.com>
9177 * Makefile.in: Add rules to build and link in observer.o.
9179 2003-02-27 J. Brobecker <brobecker@gnat.com>
9181 * observer.c: Minor comments edits.
9183 2003-02-27 J. Brobecker <brobecker@gnat.com>
9185 * observer.h, observer.c: New file.
9187 2003-02-27 Andrew Cagney <cagney@redhat.com>
9189 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9191 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9193 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9194 (M6812_OP_STS_EXT): Likewise.
9195 (m6811_prologue): Use the above to recognize prologue.
9196 (m6812_prologue): Likewise.
9198 2003-02-27 David Carlton <carlton@math.stanford.edu>
9200 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9202 (compare_psymbols): Ditto.
9203 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9205 2003-02-27 Michael Snyder <msnyder@redhat.com>
9207 * f-lang.c (build_fortran_types): New function.
9208 (_initialize_f_language): Gdbarch-register built-in fortran types.
9209 * doublest.c (extract_floating): Fix warning text.
9211 2003-02-27 Andrew Cagney <cagney@redhat.com>
9213 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9214 predicate. Replaces PUSH_DUMMY_FRAME.
9215 * gdbarch.h, gdbarch.c: Regnerate.
9216 * valops.c (hand_function_call): Update. Call
9217 generic_push_dummy_frame directly.
9218 * vax-tdep.c (vax_gdbarch_init): Update.
9219 * sparc-tdep.c (sparc_gdbarch_init): Update.
9220 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9221 * m68k-tdep.c (m68k_gdbarch_init): Update.
9222 * hppa-tdep.c (hppa_gdbarch_init): Update.
9223 * alpha-tdep.c (alpha_gdbarch_init): Update.
9224 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9225 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9226 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9227 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9228 push_dummy_frame to generic_push_dummy_frame.
9229 * v850-tdep.c (v850_gdbarch_init): Ditto.
9230 * sh-tdep.c (sh_gdbarch_init): Ditto.
9231 * s390-tdep.c (s390_gdbarch_init): Ditto.
9232 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9233 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9234 * mips-tdep.c (mips_gdbarch_init): Ditto.
9235 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9236 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9237 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9238 * i386-tdep.c (i386_gdbarch_init): Ditto.
9239 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9240 * frv-tdep.c (frv_gdbarch_init): Ditto.
9241 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9242 * cris-tdep.c (cris_gdbarch_init): Ditto.
9243 * avr-tdep.c (avr_gdbarch_init): Ditto.
9244 * arm-tdep.c (arm_gdbarch_init): Ditto.
9246 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9248 * mips-tdep.c (show_mips_abi): New function.
9249 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9250 command ``show mips abi''.
9252 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9254 From Elena Zannoni <ezannoni@redhat.com>
9255 * dbxread.c (process_one_symbol): Only record line 0 if one or
9256 more sline entries have been seen for the function.
9258 2003-02-26 Michael Chastain <mec@shout.net>
9260 * configure: Regenerate with autoconf 000227.
9262 2003-02-26 Michael Chastain <mec@shout.net>
9265 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9266 for old libc5/glibc.
9267 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9269 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9271 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9272 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9274 2003-02-26 Michael Chastain <mec@shout.net>
9276 * configure.in: New variable HAVE_UINTPTR_T.
9277 * configure, config.in: Regenerated.
9279 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9282 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9284 2003-02-25 Andrew Cagney <cagney@redhat.com>
9286 * frame.c (get_prev_frame): Add comment on check for
9287 inside_entry_func. Only check for inside_entry_file when not a
9288 dummy and not a sentinel. Check that the new frame is not inner
9291 2003-02-25 Andrew Cagney <cagney@redhat.com>
9293 * frame.c (frame_debug): New variable.
9294 (_initialize_frame): Add "set/show debug frame" command.
9295 (get_prev_frame): When frame_debug, print reason why unwind
9298 2003-02-25 Michael Chastain <mec@shout.net>
9300 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9301 to avoid uintptr_t definition problems.
9303 2003-02-25 David Carlton <carlton@math.stanford.edu>
9305 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9306 (SYMBOL_LINKAGE_NAME): Ditto.
9307 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9308 SYMBOL_LINKAGE_NAME.
9309 (struct general_symbol_info): Expand comment.
9310 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9311 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9312 (SYMBOL_MATCHES_REGEXP): Ditto.
9313 * symtab.c (symbol_natural_name): New function.
9314 * objfiles.h: Replace all uses of SYMBOL_NAME by
9315 DEPRECATED_SYMBOL_NAME.
9316 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9317 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9318 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9319 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9320 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9321 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9322 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9323 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9324 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9325 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9327 * ada-exp.y: Update copyright.
9328 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9329 * cp-valprint.c: Ditto.
9331 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9333 * infptrace.c (detach): Do not flag error if ptrace detach fails
9334 and errno is set to ESRCH.
9336 2003-02-24 Andrew Cagney <cagney@redhat.com>
9338 * infptrace.c (udot_info): Change type of udot_off to long. Use
9339 paddr when printing udot_off's value.
9341 2003-02-24 David Carlton <carlton@math.stanford.edu>
9343 * symtab.c (make_symbol_overload_list): Only read in partial
9344 symtabs containing a matching partial symbol.
9346 2003-02-24 David Carlton <carlton@math.stanford.edu>
9348 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9349 do the comparison, not strcmp.
9350 * symfile.c (compare_psymbols): Ditto.
9351 * defs.h: Declare strcmp_iw_ordered.
9352 * utils.c (strcmp_iw_ordered): New function.
9354 2003-02-24 Jim Blandy <jimb@redhat.com>
9356 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9357 support, shared libs): Remove my name from here, to better reflect
9360 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9362 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9363 (target_ops): Add to_have_continuable_watchpoint.
9364 * target.c (update_current_target): Add INHERIT line for
9365 to_have_continuable_watchpoint.
9366 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9367 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9368 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9369 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9371 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9373 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9376 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9378 * solib.c (solib_open): Call target defined search function after
9379 failing with solib-search-path.
9380 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9381 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9383 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9385 * MAINTAINERS: Add myself to Write After section.
9387 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9389 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9391 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9393 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9394 (m68hc11_add_reggroups): New function.
9395 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9396 (m68hc11_gdbarch_init): Install the reggroups.
9397 (_initialize_m68hc11_tdep): Initialize them.
9399 2003-02-21 James E Wilson <wilson@tuliptree.org>
9401 * MAINTAINERS: Update my email address.
9403 2003-02-21 David Carlton <carlton@math.stanford.edu>
9405 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9407 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9409 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9410 * symtab.h: Add opaque declarations of struct axs_value and
9412 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9413 (struct location_funcs): New type.
9414 (struct symbol): Add "loc" to aux_value.
9415 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9416 * dwarf2read.c: Include "dwarf2expr.h".
9417 (dwarf2_symbol_mark_computed): New function.
9418 (read_func_scope): Use it.
9419 (var_decode_location): New function.
9420 (new_symbol): Use it.
9421 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9423 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9424 (dwarf2expr_h, dwarf2loc_h): New variables.
9425 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9426 (dwarf2expr.o, dwarf2loc.o): New rules.
9427 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9428 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9430 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9431 * m2-exp.y (yylex): Likewise.
9432 * printcmd.c (address_info, print_frame_args): Likewise.
9433 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9434 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9435 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9436 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9437 * symtab.c (lookup_block_symbol): Likewise.
9439 2003-02-20 Adam Fedor <fedor@gnu.org>
9441 * symtab.h: Remove objc_specific struct
9442 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9443 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9444 Have language_objc use cplus_specific struct.
9446 2003-02-20 Tom Tromey <tromey@redhat.com>
9448 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9449 TYPE_NAME, when printing a String value. PR java/1075.
9451 2003-02-20 Adam Fedor <fedor@gnu.org>
9453 * objc-lang.h (find_methods): Remove declaration.
9454 * objc-lang.c (find_methods): Make static.
9456 2003-02-20 Christopher Faylor <cgf@redhat.com>
9458 * win32-nat.c (get_image_name): Check return value from
9460 (child_xfer_memory): Ditto.
9462 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9464 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9465 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9466 '${exec_prefix}' (in addition to the expansion thereof) as
9468 * configure: Rebuilt.
9470 2003-02-20 David Carlton <carlton@math.stanford.edu>
9472 * symtab.c (search_symbols): Revert the search_symbols part of my
9473 2002-12-23 patch. Add comment.
9475 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9477 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9478 * dbxread.c (elfstab_build_psymtabs): Don't call
9479 install_minimal_symbols.
9480 (stabsect_build_psymtabs): Likewise.
9481 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9483 * somread.c (som_symfile_read): Call install_minimal_symbols
9484 and do_cleanups earlier.
9485 * nlmread.c (nlm_symfile_read): Likewise.
9486 * mdebugread.c (elfmdebug_build_psymtabs): Call
9487 install_minimal_symbols and make appropriate cleanups.
9489 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9491 * solib.c (reload_shared_libraries): New function.
9492 (_initialize_solib): Add callbacks for ``set solib-search-path''
9493 and ``set solib-absolute-prefix''.
9495 2003-02-20 David Carlton <carlton@math.stanford.edu>
9497 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9499 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9500 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9501 * ada-typeprint.c (ada_typedef_print): Ditto.
9502 * ax-gdb.c (gen_var_ref): Ditto.
9503 * breakpoint.c (print_one_breakpoint): Ditto.
9504 * buildsym.c (finish_block): Ditto.
9505 * c-valprint.c (c_val_print): Ditto.
9506 * expprint.c (print_subexp): Ditto.
9507 * findvar.c (locate_var_value): Ditto.
9508 * infcmd.c (jump_command): Ditto.
9509 * linespec.c (decode_line_2, decode_compound): Ditto.
9510 * maint.c (maintenance_translate_address): Ditto.
9511 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9512 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9514 * p-valprint.c (pascal_val_print): Ditto.
9515 * stabsread.c (define_symbol): Ditto.
9516 * stack.c (print_frame, frame_info, print_block_frame_locals)
9517 (print_frame_arg_vars, return_command): Ditto.
9518 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9519 * symmisc.c (print_symbol): Ditto.
9520 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9521 (compare_search_syms, print_symbol_info, print_msymbol_info)
9522 (rbreak_command): Ditto.
9523 * tracepoint.c (tracepoints_info): Ditto.
9524 * typeprint.c (typedef_print): Ditto.
9525 * valops.c (value_of_variable, hand_function_call): Ditto.
9526 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9527 * ada-typeprint.c: Update Copyright.
9528 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9529 * tracepoint.c, cli/cli-cmds.c: Ditto.
9531 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9533 * frame.c (generic_unwind_get_saved_register): Make non-static.
9534 * frame.h (generic_unwind_get_saved_register): Declare.
9535 * mips-tdep.c (read_next_frame_reg): Fetch register from
9536 current regcache when frame is NULL.
9537 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9539 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9540 instead of frame_register_unwind().
9542 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9544 * remote-sim.c (gdbsim_insert_breakpoint)
9545 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9548 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9550 * remote.c (_initialize_remote): Add commands "set/show remote
9551 hardware-watchpoint-limit" and "set/show remote
9552 hardware-breakpoint-limit".
9553 (remote_hw_watchpoint_limit): Initialize to -1.
9554 (remote_hw_breakpoint_limit): Ditto.
9555 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9557 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9559 * coff-pe-read.c: New file - support reading of minimal symbols from a
9560 portable executable using the export table.
9561 * coff-pe-read.h: New file.
9562 * coffread.c: Include coff-pe-read.h.
9563 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9564 debugging symbols found.
9565 * Makefile.in (SFILES): Add coff-pe-read.o.
9566 (coff_pe_read_h): Define.
9567 (COMMON_OBS): Add coff-pe-read.o.
9568 (coffread.o): Add coff_pe_read_h dependency.
9569 (coff-pe-read.o): New target.
9571 2003-02-19 David Carlton <carlton@math.stanford.edu>
9573 * Makefile.in (SFILES): Add block.c.
9575 (COMMON_OBS): Add block.o.
9577 (x86-64-tdep.o): Add $(block_h).
9578 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9579 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9580 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9581 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9582 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9583 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9584 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9585 * value.h: Add opaque declaration for struct block.
9586 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9587 * ada-lang.h: Ditto.
9588 * x86-64-tdep.c: #include "block.h"
9589 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9590 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9591 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9592 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9593 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9594 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9595 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9596 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9597 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9598 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9599 * symtab.c (block_function): Ditto.
9600 (contained_in): Ditto.
9601 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9602 block.h. Add opaque declaration for struct block.
9603 * symtab.h: Move block_function and contained_in declarations to
9604 block.h. Add opaque declarations for struct block, struct
9606 (struct block): Move to block.h.
9607 (struct blockvector): Ditto.
9608 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9609 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9610 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9611 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9612 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9614 * block.c: New file.
9615 * block.h: New file.
9617 2003-02-19 Theodore A. Roth <troth@openavr.org>
9619 * avr-tdep.c (avr_extract_return_value): Remove function.
9620 (avr_store_return_value): Remove function.
9621 (avr_extract_struct_value_address): Remove function.
9622 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9624 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9626 * rs6000-tdep.c: Include "gdb_assert.h".
9627 (registers_e500): Add "acc" and "spefscr".
9628 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9629 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9630 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9632 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9634 2003-02-18 Keith Seitz <keiths@redhat.com>
9636 * Makefile.in: Add gdbtk-interps.c.
9638 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9640 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9641 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9643 2003-02-18 Andrew Cagney <cagney@redhat.com>
9645 * symtab.h (struct objfile): Add opaque declaration.
9647 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9649 From Jim Ingham <jingham@apple.com>:
9650 * dbxread.c (process_one_symbol): Use last_function_start rather
9651 than function_start_offset to find the real beginning of the
9652 current function. The latter is just the text section offset on
9653 some systems, the former is always the real function start.
9655 2003-02-17 Andrew Cagney <cagney@redhat.com>
9657 * configure.in: Revert ${target} != ${host}.
9659 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9661 * configure.in (Makefile): Use the test ${target} != ${host},
9662 instead of the absence of the "nm.h" file, to determine of the
9663 configuration non-native.
9664 * configure: Regenerate.
9666 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9668 From Brian Ford <ford@vss.fsi.com>
9670 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9671 conditionalize tui_active test.
9672 (lookup_cmd_1): Ditto.
9674 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9676 * configure.in: Add check for _etext.
9677 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9679 * config.in, configure: regenerated.
9681 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9683 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9685 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9687 * main.c (tui_version): Delete variable.
9688 (captured_main): When --tui, set interpreter_p to "tui" instead of
9689 enabling tui_version.
9690 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9692 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9693 * cli/cli-cmds.c (disassemble_command): Ditto.
9694 * defs.h (tui_version): Delete declaration.
9695 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9696 (tui-interp.o): Add rules.
9697 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9699 2003-02-14 Christopher Faylor <cgf@redhat.com>
9701 * win32-nat.c (register_loaded_dll): Correctly set address range for
9704 2003-02-12 Jason Molenda (jmolenda@apple.com)
9706 * symmisc.c (print_objfile_statistics): Include information about
9707 the number of psymtabs and symtabs in each object file.
9709 2003-02-13 Keith R Seitz <keiths@redhat.com>
9711 * main.h (struct captured_main_args): Add interpreter_p.
9712 * main.c (captured_main): Initialize interpreter_p from context.
9713 * gdb.c (main): Set interpreter_p argument.
9714 * Makefile.in (gdb.o): Add dependency for interps.h.
9716 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9718 * event-top.c (cli_command_loop): Delete declaration.
9719 (_initialize_event_loop): Delete function setting event_loop_hook.
9720 * event-top.h (cli_command_loop): Declare. Update copyright.
9721 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9722 * interps.c (current_interp_command_loop): When event_loop_p, call
9725 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9727 * interps.h (interp_command_loop_ftype): Change return type to
9730 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9732 * x86-64-tdep.c (x86_64_extract_return_value)
9733 (x86_64_store_return_value): Use regcache instead of regbuf.
9734 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9735 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9737 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9739 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9740 * aclocal.m4: Regenerate.
9741 * configure: Regenerate.
9743 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9744 TCL_LD_SEARCH_FLAGS.
9746 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9748 * dwarf2cfi.c: Reindented.
9750 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9752 * interps.c (clear_interpreter_hooks): Convert function definition
9755 2003-02-07 David Carlton <carlton@math.stanford.edu>
9757 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9759 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9761 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9762 (struct type): ...to here.
9763 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9765 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9766 (replace_type): Set length on all type variants for a given type.
9768 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9770 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9772 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9774 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9776 * Makefile.in (symm-nat.o): Update dependencies.
9777 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9778 (lynx-nat.o, ia64-linux-nat.): Ditto.
9779 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9780 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9781 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9783 * Makefile.in (inflow_h): Define.
9784 (procfs.o, inflow.o, procfs.o): Update dependencies.
9785 * inftarg.c (child_stop): Delete extern declaration of
9786 inferior_process_group. Include "inflow.h".
9787 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9788 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9789 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9790 (our_process_group, inferior_process_group): Extern declarations.
9792 * procfs.c: Include "gdb_assert.h".
9794 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9795 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9796 * jv-typeprint.c (java_type_print_base): Ditto.
9797 * typeprint.c (typedef_print): Eliminate STREQ.
9798 * cli/cli-script.c (define_command, define_command): Ditto.
9799 * main.c (captured_main): Ditto.
9800 * values.c (lookup_internalvar): Ditto.
9801 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9802 within `if' conditional.
9803 * linespec.c (decode_line_2): Ditto.
9804 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9805 (bfd_openw_with_cleanup): Ditto.
9807 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9809 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9810 legacy_extract_return_value and store_return_value to
9811 legacy_return_value.
9813 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9815 * win32-nat.c (get_relocated_section_addrs): New function. Find
9816 section load addresses for symbol handling in relocated DLLs.
9817 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9819 2003-02-05 Fred Fish <fnf@intrinsity.com>
9821 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9823 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9825 (angel_RDI_info): Ditto.
9826 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9828 (threads_continue_all_with_signals): Ditto.
9830 2003-02-05 Jim Ingham <jingham@apple.com>
9831 Keith Seitz <keiths@redhat.com>
9832 Elena Zannoni <ezannoni@redhat.com>
9833 Andrew Cagney <ac131313@redhat.com>
9835 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9836 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9837 (SUBDIR_MI_OBS): Add "mi-interp.o".
9838 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9839 (SFILES): Add "interps.c".
9840 (COMMON_OBS): Add "interps.o".
9841 (interps_h, mi_main_h): Define.
9842 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9843 (mi-main.o, main.o, event-top.o): Update dependencies.
9844 * cli/cli-interp.c: New file.
9845 * interps.h, interps.c: New files.
9846 * top.c: (gdb_init): Don't install the default interpreter, handed
9848 * main.c: Include "interps.h".
9849 (interpreter_p): Note that it should malloc'ed.
9850 (captured_command_loop): Call current_interp_command_loop.
9851 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9852 xfree and xstrdup when updating interpreter_p. Install the
9853 default interpreter. Add hack to stop mi1's copyright notice
9855 * event-top.h (gdb_setup_readline): Declare.
9856 (gdb_disable_readline): Declare.
9857 * event-top.c: Include "interps.h".
9858 (display_gdb_prompt): Call current_interp_display_prompt_p.
9859 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9860 gdb_stdlog, and gdb_stdtarg.
9861 (_initialize_event_loop): Don't call gdb_setup_readline.
9862 * cli-out.c (cli_out_set_stream): New function.
9863 * cli-out.h (cli_out_set_stream): Declare.
9865 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9867 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9868 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9869 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9870 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9871 config/i386/i386v42mp.mt: Removed.
9873 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9875 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9878 2003-02-05 Michael Chastain <mec@shout.net>
9880 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9881 2.12.1 and earlier versions.
9883 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9885 Remove orphaned hosts, targets and files.
9886 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9887 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9888 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9889 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9890 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9891 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9892 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9893 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9894 * config/sparc/tm-sp64sim.h: Delete.
9895 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9897 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9898 mips*-dec-mach3* targets.
9900 2003-02-04 Michael Chastain <mec@shout.net>
9902 * NEWS: Fix typo: sepcifying -> specifying.
9904 2003-02-04 Michael Chastain <mec@shout.net>
9906 * dwarfread.c: Add documentation on the state of dwarf-1,
9907 looking towards obsoletion.
9909 2003-02-03 Michael Chastain <mec@shout.net>
9911 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9912 gdb/testsuite/gdb.c++/pr-1023.exp.
9914 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9916 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9917 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9919 * utils.c (init_page_info): Delete reference to MPW in comments.
9920 * main.c (captured_main): Delete #ifdef MPW.
9922 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9924 * NEWS: Note that the m32r-*-elf* is obsolete.
9925 * monitor.c (monitor_expect): Obsolete reference to m32r.
9926 * configure.tgt: Mark m32r-*-elf* as obsolete.
9927 * MAINTAINERS: Mark m32k as obsolete.
9928 * m32r-rom.c: Obsolete file.
9929 * config/m32r/m32r.mt: Obsolete file.
9930 * config/m32r/tm-m32r.h: Obsolete file.
9931 * m32r-stub.c: Obsolete file.
9932 * m32r-tdep.c: Obsolete file.
9934 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9936 * NEWS: Mention that the z8k-zilog-none is obsolete.
9937 * MAINTAINERS: Mark z8k as obsolete.
9938 * configure.tgt: Obsolete the z8k-*-coff* target.
9939 * config/z8k/z8k.mt: Obsolete file.
9940 * config/z8k/tm-z8k.h: Obsolete file.
9941 * z8k-tdep.c: Obsolete file.
9943 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9945 * NEWS: Mention that the mn10200-elf is obsolete.
9946 * configure.tgt: Obsolete mn10200-*-* target.
9947 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9948 mention that the mn10200 is obsolete.
9949 * breakpoint.h: Ditto.
9950 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9951 * config/mn10200/mn10200.mt: Obsolete file.
9952 * config/mn10200/tm-mn10200.h: Obsolete file.
9953 * mn10200-tdep.c: Obsolete file.
9955 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9957 * MAINTAINERS: Mark h8500 as obsolete.
9958 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9959 * findvar.c (value_from_register): Ditto.
9960 * h8500-tdep.c: Mark file as obsolete.
9961 * config/h8500/h8500.mt: Ditto.
9962 * config/h8500/tm-h8500.h: Ditto.
9963 * NEWS: Mention that h8500 is obsolete.
9965 2003-02-04 David Carlton <carlton@math.stanford.edu>
9967 * objfiles.c (allocate_objfile): Always set name. Add comment at
9969 * jv-lang.c (get_dynamics_objfile): Add comment.
9971 2003-02-04 David Carlton <carlton@math.stanford.edu>
9973 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9974 * printcmd.c (build_address_symbolic): Replace uses of
9975 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9976 SYMBOL_NAME, and asm_demangle.
9979 2003-02-04 David Carlton <carlton@math.stanford.edu>
9981 * linespec.c (decode_compound): Extract code into
9983 (lookup_prefix_sym): New function.
9985 2003-02-04 David Carlton <carlton@math.stanford.edu>
9987 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9988 FLOAT_COERCION_BADNESS.
9989 * gdbtypes.c (rank_one_type): Replace all uses of
9990 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9992 2003-02-04 Jim Blandy <jimb@redhat.com>
9994 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9995 section, let dwarf_macinfo_section point to it, not
9998 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10000 Pointed out by Anton Blanchard <anton@samba.org>.
10001 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10002 (ppc_linux_at_sigtramp_return_path): Use it.
10004 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10006 * defs.h (streq): Add prototype.
10007 * utils.c (streq): New function.
10009 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10010 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10011 * mdebugread.c (new_symbol): Likewise.
10012 * stabsread.c (define_symbol): Likewise.
10013 * coffread.c (process_coff_symbol): Likewise.
10014 * dwarfread.c (new_symbol): Likewise.
10016 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10017 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10019 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10020 SYMBOL_INIT_DEMANGLED_NAME.
10021 * objfiles.c: Include "hashtab.h".
10022 (allocate_objfile): Call htab_set_functions_ex for the
10023 demangled_names_hash.
10024 (free_objfile): Call htab_delete for the demangled_names_hash.
10025 * objfiles.h (struct htab): Add declaration.
10026 (struct objfile): Add demangled_names_hash.
10027 * symfile.c: Include "hashtab.h".
10028 (reread_symbols): Call htab_delete for the demangled_names_hash.
10029 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10030 SYMBOL_NAME in the bcache.
10031 * symtab.c: Include "hashtab.h". Update comments.
10032 (create_demangled_names_hash, symbol_set_names): New functions.
10033 (symbol_find_demangled_name): New function, broken out from
10034 symbol_init_demangled_names.
10035 (symbol_init_demangled_names): Use it.
10036 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10037 (SYMBOL_SET_NAMES): New macro.
10038 (symbol_set_names): Add prototype.
10040 2003-02-03 Jim Blandy <jimb@redhat.com>
10042 Use a single, consistent representation for an empty minimal
10043 symbol table in an objfile.
10044 * objfiles.c (terminate_minimal_symbol_table): New function.
10045 (allocate_objfile): Call it.
10046 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10047 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10049 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10050 objfile has minimal symbols, compare minimal_symbol_count to zero,
10051 instead of comparing msymbols with NULL.
10052 * objfiles.c (have_minimal_symbols): Same.
10053 * solib-sunos.c (solib_add_common_symbols): Call
10054 terminate_minimal_symbol_table.
10055 * symfile.c (reread_symbols): Same.
10057 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10059 * s390-tdep.c (s390_address_class_type_flags)
10060 (s390_address_class_type_flags_to_name)
10061 (s390_address_class_name_to_type_flags): New functions.
10062 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10063 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10065 2003-02-03 Michael Snyder <msnyder@redhat.com>
10067 * arm-tdep.c: Fix spell-o in comment.
10069 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10071 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10072 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10073 error messages to contain BFD filename.
10075 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10077 Fix PR gdb/742 gdb/743 gdb/877
10078 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10079 (do_mixed_source_and_assembly): Use
10080 make_cleanup_ui_out_tuple_begin_end and
10081 make_cleanup_ui_out_tuple_begin_end.
10082 (do_mixed_source_and_assembly): Ditto.
10083 * thread.c (do_captured_list_thread_ids): Ditto.
10084 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10085 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10086 ui_out_tuple_end): Delete prototypes.
10087 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10088 ui_out_list_end, ui_out_tuple_end): Delete.
10090 From Kevin Buettner <kevinb@redhat.com>:
10091 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10092 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10093 (do_cleanup_table_end): New functions.
10094 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10095 Use cleanups to invoke_ui_out_tuple_end().
10096 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10097 * cli/cli-setshow.c (cmd_show_list): Use
10098 make_cleanup_ui_out_tuple_begin_end.
10100 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10102 * frame.c (frame_unwind_register): New function.
10103 (frame_unwind_unsigned_register): Use.
10104 (frame_unwind_signed_register): Use.
10105 (frame_read_register): New function.
10106 * frame.h (frame_unwind_register): Declare.
10107 (frame_read_register): Declare.
10109 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10110 and frame_unwind_register instead of read_memory, write_register
10111 and deprecated_write_register_bytes.
10113 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10115 * frame.h: Note that namelen can be negative.
10116 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10119 * NEWS: Mention that the d10v's `regs' command is deprecated.
10120 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10121 (d10v_print_registers_info): New function.
10122 (show_regs): Call d10v_print_registers_info.
10123 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10125 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10127 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10128 lost in the previous patch.
10130 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10132 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10133 * stack.c (print_frame_info_base): Output complete FRAME tuple
10134 for synthesized frames.
10136 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10138 * mips-nat.c (zerobuf): Delete.
10139 (fetch_inferior_registers): Alloc local zerobuf.
10140 (fetch_core_registers): Alloc local zerobuf.
10141 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10142 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10143 * thread-db.c (thread_db_store_registers): Ditto.
10144 * sh-tdep.c (sh_do_register): Ditto.
10145 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10146 * remote-sim.c (gdbsim_store_register): Ditto.
10147 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10148 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10149 * monitor.c (monitor_supply_register): Ditto.
10150 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10151 * mips-nat.c (fetch_inferior_registers): Ditto.
10152 * m68klinux-nat.c (fetch_register): Ditto.
10153 * lynx-nat.c (fetch_inferior_registers): Ditto.
10154 (fetch_inferior_registers): Ditto.
10155 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10156 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10157 (hpux_thread_store_registers): Ditto.
10158 * hppah-nat.c (fetch_register): Ditto.
10159 * hppab-nat.c (fetch_register): Ditto.
10160 * hppa-tdep.c (pa_register_look_aside): Ditto.
10161 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10162 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10164 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10166 * gdbarch.sh: Explictly specify all method levels. When a
10167 variable with an empty level, provide a non-multi-arch default.
10168 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10169 * gdbarch.h: Re-generate.
10170 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10171 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10173 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10175 * defs.h (host_pointer_to_address): Delete declaration.
10176 (address_to_host_pointer): Delete declaration.
10177 * utils.c (host_pointer_to_address): Delete function.
10178 (address_to_host_pointer): Delete function.
10179 * procfs.c (procfs_address_to_host_pointer): New function.
10180 * procfs.c (proc_set_watchpoint): Use.
10181 (procfs_can_use_hw_breakpoint): Update comments.
10182 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10183 (som_solib_add): Use.
10184 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10185 * hppa-tdep.c (unwind_command): Use.
10187 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10189 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10192 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10193 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10194 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10195 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10196 (define_symbol): Update.
10197 * symfile.c (generic_load): Remove references to nindy.
10198 * symtab.c: Remove references to nindy.
10200 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10202 * infcmd.c (print_float_info): Delete code conditional on
10204 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10205 * config/m68k/nm-apollo68b.h: Ditto.
10206 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10207 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10208 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10210 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10212 * config/i386/tm-i386os9k.h: Removed.
10214 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10215 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10216 they're identical to i[3456]86-*-sysv* now.
10217 * config/i386/i386v32.mh: Removed.
10218 * config/i386/xm-i386v32.h: Removed.
10219 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10221 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10223 * config/i386/i386dgux.mh: Removed.
10224 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10226 * configure.in: Fix typo.
10227 * configure: Regenerated.
10229 2003-01-31 David Carlton <carlton@math.stanford.edu>
10231 * dwarf2read.c (dwarf2_locate_sections): Set
10232 dwarf_ranges_section.
10234 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10236 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10237 * utils.c: Update comments documenting legitimate uses of PTR.
10239 * utils.c: Re-indent.
10241 * config/djgpp/fnchange.lst: Delete nindy files.
10242 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10243 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10244 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10245 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10246 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10247 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10248 * Makefile.in (init.c): Remove nindy references.
10249 (saber_gdb): Delete rule.
10250 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10251 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10253 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10254 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10255 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10256 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10257 nindy-share/stop.h.
10258 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10259 * saber.suppress: Delete file.
10261 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10263 * dbxread.c (stabs_data): New static variable.
10264 (fill_symbuf): Support an in-memory buffer for stabs data.
10265 (stabs_seek): New function.
10266 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10267 (read_ofile_symtab): Use stabs_seek.
10268 (elfstab_build_psymtabs): Take an asection* instead of
10269 an offset and size. Relocate the stabs data if necessary.
10270 Save the section* for dbx_psymtab_to_symtab.
10271 * dwarf2read.c: Add section variables for each debug section.
10272 (dwarf2_locate_sections): Fill them in.
10273 (dwarf2_read_section): Take an asection* argument.
10274 Relocate the section contents if necessary.
10275 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10276 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10277 it to dwarf2_read_section.
10278 (dwarf2_build_frame_info): Update callers.
10279 * elfread.c (elf_symfile_read): Update call to
10280 elfstab_build_psymtabs.
10281 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10282 (DBX_STAB_SECTION): New macro.
10283 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10284 * symfile.c (symfile_dummy_outputs): New function.
10285 (symfile_relocate_debug_section): New function.
10286 * symfile.h (symfile_relocate_debug_section): Add prototype.
10288 2003-01-31 Richard Henderson <rth@redhat.com>
10290 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10291 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10292 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10293 * alpha-tdep.c (alpha_register_name): Add "unique".
10294 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10295 (ALPHA_UNIQUE_REGNUM): New.
10296 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10298 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10300 * README: Remove reference to Ericsson 1800 monitor.
10301 * Makefile.in (remote-es.o): Delete rule.
10302 (ALLDEPFILES): Delete remote-es.c.
10303 * remote-es.c: Delete file.
10304 * config/m68k/es1800.mt: Delete file.
10305 * config/djgpp/fnchange.lst: Update.
10306 * configure.tgt: Delete m68*-ericsson-* target.
10308 2003-01-31 Adam Fedor <fedor@gnu.org>
10310 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10311 Remove duplicate/shadowing variable of same name.
10313 2003-01-30 Jim Blandy <jimb@redhat.com>
10315 * symfile.c (find_separate_debug_file): Assert that the objfile's
10316 directory name we compute ends with a slash, and then assume that
10317 that's so everywhere we use it.
10319 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10321 * valops.c (value_assign): Flush frame cache after stores to memory
10324 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10326 * Makefile.in (mon960-rom.o): Delete rule.
10327 * mon960-rom.c: Delete file.
10329 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10331 * d10v-tdep.c: Include "frame-unwind.h".
10332 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10334 (next_addr, uses_frame): Delete.
10335 (struct d10v_unwind_cache): Define.
10336 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10337 Use info instead of next_addr and uses_frame globals.
10338 (d10v_frame_init_saved_regs): Delete function.
10339 (d10v_init_extra_frame_info): Delete function.
10340 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10341 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10342 init_frame_pc or frame_saved_pc.
10343 (d10v_pop_frame): Delete function.
10344 (do_d10v_pop_frame): Delete function.
10345 (d10v_frame_chain): Delete function.
10346 (d10v_frame_chain_valid): Delete function.
10347 (d10v_frame_pc_unwind): New function.
10348 (d10v_frame_id_unwind): New function.
10349 (saved_regs_unwinder): New function.
10350 (d10v_frame_register_unwind): New function.
10351 (d10v_frame_pop): New function.
10352 (d10v_frame_unwind): New variable.
10353 (d10v_frame_p): New function.
10354 (d10v_frame_saved_pc): Delete function.
10355 * Makefile.in (d10v-tdep.o): Update dependencies.
10357 2003-01-30 J. Brobecker <brobecker@gnat.com>
10359 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10360 causing some regressions due to a change in the default value
10363 2003-01-29 Richard Henderson <rth@redhat.com>
10364 Elena Zannoni <ezannoni@redhat.com>
10365 Daniel Jacobowitz <drow@mvista.com>
10368 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10370 (RANGES_SECTION): New.
10371 (dwarf_ranges_buffer): New variable.
10372 (struct comp_unit_head): Add member "die".
10373 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10374 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10375 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10376 (dwarf2_locate_sections): Likewise.
10377 (dwarf2_build_psymtabs): Read .debug_ranges.
10378 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10379 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10380 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10381 Look for DW_AT_ranges and return the bounding box.
10383 2003-01-29 Brian Ford <ford@vss.fsi.com>
10385 * win32-nat.c (cygwin_pid): Removed as unused.
10386 (child_attach): Try fall back to Cygwin pid.
10388 2003-01-29 Jim Blandy <jimb@redhat.com>
10390 * objfiles.h (struct objfile): Doc fix.
10392 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10394 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10395 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10396 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10397 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10398 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10399 (FRAME_SAVED_PC): Change to a function with predicate.
10400 * gdbarch.h, gdbarch.c: Re-generate.
10402 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10404 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10406 * complaints.c (complain): Delete function.
10407 * complaints.h (struct deprecated_complaint): Delete definition.
10408 (complain): Delete declaration.
10410 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10412 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10415 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10417 * sentinel-frame.h, sentinel-frame.c: New files.
10418 * Makefile.in (frame.o): Update dependencies.
10419 (SFILES): Add sentinel-frame.c.
10420 (sentinel_frame_h): Define.
10421 (COMMON_OBS): Add sentinel-frame.o.
10422 (sentinel-frame.o): Specify dependencies.
10423 * frame.c: Include "sentinel-frame.h".
10424 (frame_register_unwind): Rewrite assuming that there is always a a
10426 (frame_register, generic_unwind_get_saved_register): Ditto.
10427 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10428 (create_sentinel_frame, unwind_to_current_frame): New functions.
10429 (get_current_frame): Rewrite using create_sentinel_frame and
10430 unwind_to_current_frame. When possible, always create a frame.
10431 (create_new_frame): Set next to the sentinel frame.
10432 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10433 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10434 ID cache when necessary.
10435 (frame_saved_regs_id_unwind): Use frame_relative_level.
10436 (deprecated_generic_get_saved_register): Use frame_relative_level,
10437 get_frame_saved_regs, get_frame_pc, get_frame_base and
10439 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10442 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10444 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10446 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10448 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10449 (maintenance_set_profile_cmd): Use error () instead of warning ().
10451 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10453 * configure.in: Check that -pg works if using --enable-profiling.
10454 Check for monstartup and _mcleanup regardless of --enable-profiling.
10455 * maint.c: Check for monstartup and _mcleanup before using them.
10456 * config.in: Regenerated.
10457 * configure: Regenerated.
10459 2003-01-24 Nick Clifton <nickc@redhat.com>
10461 * Add sh2e support:
10463 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10465 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10466 (sh2e_show_regs): New.
10467 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10468 * config/sh/tm-sh.h: Added sh2e to comments.
10470 2003-01-23 Jim Blandy <jimb@redhat.com>
10472 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10473 symbols found)" message here; we haven't checked for a separate
10474 debug info file yet, so we don't know yet.
10475 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10476 we've looked everywhere. Also, there's no need to print a special
10477 message when we're loading the separate debug info file: the one
10478 symbol_file_add prints is fine.
10480 2003-01-23 Alexander Larsson <alexl@redhat.com>
10481 Jim Blandy <jimb@redhat.com>
10483 Add support for executables whose debug info has been separated
10484 out into a separate file, leaving only a link behind.
10485 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10486 and separate_debug_objfile_backlink.
10487 (put_objfile_before): New declaration.
10488 * symfile.c: #include "filenames.h".
10489 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10490 debug info in a separate file, read that, too. Save the addrs
10491 argument, so we can use it again to read the separated debug info;
10492 syms_from_objfile modifies the table we pass it.
10493 (reread_symbols): After re-reading an objfile, call
10494 reread_separate_symbols to refresh its separate debug info
10495 objfile, if it has one.
10496 (reread_separate_symbols, find_separate_debug_file,
10497 get_debug_link_info, separate_debug_file_exists): New functions.
10498 (debug_file_directory): New global var.
10499 (_initialize_symfile): Initialize debug_file_directory, and
10500 provide the new `set debug-file-directory' command to let the user
10502 * objfiles.c (free_objfile): If this objfile has its debug info in
10503 a separate objfile, free that one too. If this is itself a
10504 separate debug info objfile, clear our parent's backlink.
10505 (put_objfile_before): New function.
10506 * utils.c (gnu_debuglink_crc32): New function.
10507 * defs.h (gnu_debuglink_crc32): New declaration.
10508 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10509 * configure.in: Handle --with-separate-debug-dir config option.
10510 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10511 * acconfig.h (DEBUGDIR): New macro.
10512 * configure, aclocal.m4, config.in: Regenerated.
10514 2003-01-22 Jim Blandy <jimb@redhat.com>
10516 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10517 like the old symbol_file_add, but taking new arguments: you can
10518 now pass in either a `struct section_addr_info' list to say where
10519 each section is loaded, or a `struct section_offsets' table. Pass
10520 these new arguments through to syms_from_objfile as appropriate.
10521 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10522 with the appropriate quiescent values for the new arguments.
10524 * symfile.c: #include "gdb_assert.h".
10525 (syms_from_objfile): Add the ability to pass in a section offset
10526 table directly, as an alternative to the section_addr_info table.
10527 Document arguments better.
10528 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10529 * symfile.h (syms_from_objfile): Update declaration.
10530 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10532 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10534 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10536 Original patch by Tom Tromey <tromey@cygnus.com> and
10537 Jason Molenda <jmolenda@apple.com>.
10538 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10539 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10540 * NEWS: Mention profiling.
10541 * configure.in (--enable-gdbtk): Fix typo.
10542 (--enable-profiling): New. Set PROFILE_CFLAGS.
10543 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10545 (profiling_state): New variable.
10546 (mcleanup_wrapper): New function.
10547 (_initialize_maint): Remove NOTYET, fix call to
10548 add_setshow_boolean_cmd for "maint set profile".
10549 * configure: Regenerated.
10551 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10553 * Makefile.in (install-gdbtk): Install PNG images too.
10555 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10557 * exec.c (text_start): Delete global variable.
10558 (exec_file_attach): Make text_start local to the function.
10559 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10560 * valops.c (hand_function_call): Delete code that handles
10561 BEFORE_TEXT_END and AFTER_TEXT_END.
10562 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10563 of CALL_DUMMY_LOCATION.
10564 * gdbarch.c: Regenerate.
10565 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10566 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10567 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10568 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10569 (text_end): Delete extern declaration.
10571 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10573 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10574 * blockframe.c (backtrace_below_main): Move to "frame.c".
10575 (frame_chain_valid): Delete check for backtrace_below_main.
10576 (_initialize_blockframe): Delete initialization, move ``set
10577 backtrace-below-main'' command to "frame.c".
10578 (do_flush_frames_sfunc): Delete function.
10579 * frame.c: Include "command.h" and "gdbcmd.h".
10580 (frame_type_from_pc): New function.
10581 (create_new_frame): Use frame_type_from_pc.
10582 (legacy_get_prev_frame): New function.
10583 (get_prev_frame): Rewrite. When an old style frame, call
10584 legacy_get_prev_frame. Otherwize, unwind the PC first.
10585 (_initialize_frame): Add ``set backtrace-below-main'' command.
10586 * Makefile.in (frame.o): Update dependencies.
10588 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10590 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10591 DEPRECATED_REGISTERS_INFO.
10593 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10595 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10596 Maintainers'. Update `Various Maintainers'.
10598 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10600 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10601 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10602 Suppress actual parameters when `-'.
10603 * gdbarch.h, gdbarch.c: Regenerate.
10605 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10607 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10608 code handling dummy frames.
10610 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10612 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10613 (struct frame_unwind): Add field pop.
10614 * frame.h (frame_pop): Declare.
10615 * frame.c (frame_saved_regs_pop): New function.
10616 (trad_frame_unwinder): Add frame_saved_regs_pop.
10617 (frame_pop): New function.
10618 * dummy-frame.c (dummy_frame_pop): New function.
10619 (discard_innermost_dummy): New function.
10620 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10621 (dummy_frame_unwind): Add dummy_frame_pop.
10622 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10623 * valops.c (hand_function_call): Ditto.
10624 * stack.c (return_command): Ditto.
10626 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10628 * cris-tdep.c: Fix function declaration indentation.
10629 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10630 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10631 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10632 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10633 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10634 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10636 2003-01-18 Michael Chastain <mec@shout.net>
10638 * README (Unpacking and Installation -- quick overview):
10639 Warn against ".../gdb-5.3/gdb/configure".
10641 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10643 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10644 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10645 (struct frame_unwind): Declare opaque.
10646 (dummy_frame_p): Declare function.
10647 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10648 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10649 * dummy-frame.c: Include "frame-unwind.h".
10650 (dummy_frame_p): New function.
10651 (dummy_frame_unwind): New variable.
10652 * frame.c: Include "frame-unwind.h".
10653 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10654 to use the new unwind field.
10655 (set_unwind_by_pc): Delete function.
10656 (create_new_frame, get_prev_frame): Set unwind field using
10657 frame_unwind_find_by_pc.
10658 (trad_frame_unwind, trad_frame_unwinder): New variables.
10659 * frame.h (trad_frame_unwind): Declare variable.
10660 (frame_id_unwind_ftype): Delete declaration.
10661 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10662 (struct frame_unwind): Declare opaque.
10663 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10664 register_unwind with a single unwind pointer.
10665 * frame-unwind.h, frame-unwind.c: New files.
10666 * Makefile.in (SFILES): Add frame-unwind.c.
10667 (frame_unwind_h): Define.
10668 (COMMON_OBS): Add frame-unwind.o.
10669 (frame-unwind.o): Specify dependencies.
10670 (frame.o, dummy-frame.o): Update dependencies.
10672 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10674 * ada-valprint.c: Eliminate PTR.
10675 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10676 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10677 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10678 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10679 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10680 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10681 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10683 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10685 * main.c (captured_main): Don't use PTR.
10686 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10687 * gdbtypes.c (lookup_primitive_typename): Ditto.
10688 (lookup_struct_elt_type): Ditto.
10689 * f-valprint.c (info_common_command): Ditto.
10690 (list_all_visible_commons): Ditto.
10691 * jv-typeprint.c (java_type_print_base): Ditto.
10693 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10694 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10695 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10696 i386-interix-nat.c and i386-interix-tdep.c. Rename
10697 m68klinux-nat.c and m68klinux-tdep.c. Rename
10698 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10699 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10700 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10701 * main.c (captured_main): Use xfree, not free.
10703 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10705 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10706 ID back using a parameter.
10707 * frame.c (frame_id_unwind): Update call.
10708 (frame_saved_regs_id_unwind): Update.
10709 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10710 * dummy-frame.h (struct frame_id): Add opaque declaration.
10711 (dummy_frame_id_unwind): Update declaration.
10713 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10715 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10717 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10719 * MAINTAINERS (Stephen P. Smith): Updated email address.
10721 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10724 * breakpoint.c (until_break_command): Add new argument. Use it to
10725 decide whether to stop only at the current frame or not.
10726 * breakpoint.h (until_break_command): Update prototype.
10727 * infcmd.c (until_command): Add new argument to until_break_command
10729 (advance_command): New function.
10730 (_initialize_infcmd): Update help string for 'until' command.
10731 Add new 'advance' command.
10733 2003-01-14 David Carlton <carlton@math.stanford.edu>
10735 * linespec.c (decode_line_1): Normalize comments.
10736 (set_flags): Ditto.
10737 (locate_first_half): Ditto.
10738 (decode_compound): Ditto.
10739 (symtab_from_filename): Ditto.
10740 (decode_all_digits): Ditto.
10741 (decode_dollar): Ditto.
10742 (find_methods): Ditto.
10743 (find_toplevel_char): Ditto.
10745 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10747 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10748 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10749 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10750 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10751 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10752 * language.c, language.h, m32r-tdep.c: Update copyright.
10753 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10754 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10755 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10756 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10757 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10758 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10760 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10762 * stabsread.h (process_later, resolve_cfront_continuation):
10764 Update copyright years.
10765 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10766 Update copyright year.
10767 * dbxread.c(struct cont_elem): Obsolete.
10768 (process_later, process_now): Obsolete functions.
10769 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10770 Update copyright year.
10771 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10772 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10773 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10774 (parse_partial_symbols): Obsolete cfront support.
10776 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10778 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10779 read_cfront_baseclasses, read_cfront_member_functions,
10780 resolve_cfront_continuation,read_cfront_static_fields,
10781 copy_cfront_struct_fields): Obsolete functions.
10782 (define_symbol, read_one_struct_field): Obsolete cfront support.
10783 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10784 Update Copyright year.
10786 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10788 * stack.c (print_frame_info, print_stack_frame_base_stub,
10789 print_stack_frame_base, show_and_print_stack_frame_stub,
10790 show_and_print_stack_frame, print_only_stack_frame_stub,
10791 print_only_stack_frame): Delete functions.
10792 (print_stack_frame_stub): Call print_frame_info instead of
10793 print_frame_info_base.
10794 (print_frame_info_base): Rename to print_frame_info.
10795 (backtrace_command_1): Call print_frame_info, instead of
10796 print_frame_info_base.
10797 (current_frame_command): Call print_stack_frame, instead of
10798 print_only_stack_frame.
10799 (frame_command): Call print_stack_frame, instead of
10800 show_and_print_stack_frame.
10801 (up_command): Ditto.
10802 (down_command): Ditto.
10803 * frame.h (print_only_stack_frame): Delete prototype.
10804 * infrun.c (normal_stop): Call print_stack_frame, instead of
10805 show_and_print_stack_frame.
10806 * thread.c (info_threads_command): Call print_stack_frame, instead
10807 of print_only_stack_frame.
10809 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10811 * README (Graphical interface to GDB): Update URL. Point at
10814 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10817 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10819 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10822 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10824 * thread-db.c (attach_thread): Prototype.
10825 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10826 thread information (ti), and valid flags (th_valid, ti_valid).
10827 (attach_thread): Move target_pid_to_str call to after the thread
10828 is added to GDB's list. Initialize the cache.
10829 (thread_get_info_callback, thread_db_map_id2thr)
10830 (thread_db_get_info): New functions.
10831 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10832 (thread_db_store_registers, thread_db_thread_alive)
10833 (thread_db_get_thread_local_address): Use them.
10834 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10835 of calling error() for threads in unknown state.
10837 (clear_lwpid_callback): New function.
10838 (thread_db_resume): Use it to clear the cache.
10840 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10842 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10843 (resume_callback): Remove dead code.
10845 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10847 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10849 * gdbarch.h, gdbarch.c: Regenerate.
10850 * stack.c (frame_info): Only initialize the saved registers when
10851 FRAME_INIT_SAVED_REGS_P.
10852 * frame.c (frame_saved_regs_register_unwind): Assert
10853 FRAME_INIT_SAVED_REGS_P.
10854 (deprecated_generic_get_saved_register): Ditto.
10856 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10858 * source.c (openp): Squelch warning about "filename".
10860 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10862 * source.c (openp): If the file does not exist don't necessarily
10865 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10868 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10869 (integer_types_same_name_p): New function.
10870 (rank_one_type): Use it.
10871 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10873 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10875 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10877 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10878 * configure.in: Add --with-sysroot.
10879 * configure: Regenerated.
10880 * main.c (gdb_sysroot): New variable.
10881 (captured_main): Initialize gdb_sysroot.
10882 * defs.h (gdb_sysroot): New extern declaration.
10883 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10885 2003-01-12 Michael Chastain <mec@shout.net>
10887 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10889 2003-01-12 Michael Chastain <mec@shout.net>
10891 * top.c (print_gdb_version): Bump copyright year to 2003.
10893 2003-01-12 David Carlton <carlton@bactrian.org>
10895 * linespec.c (symtab_from_filename): Rename variable 's' to
10898 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10900 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10902 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10904 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10906 * d10v-tdep.c: Include "gdb_assert.h".
10907 (d10v_store_return_value): Rewrite to match current interface.
10908 (d10v_extract_struct_value_address): Ditto.
10909 (d10v_extract_return_value): Ditto.
10910 (d10v_gdbarch_init): Set store_restore_value,
10911 extract_struct_value_address and extract_return_value.
10913 2003-01-12 J. Brobecker <brobecker@gnat.com>
10915 * hpread.c (set_namestring): New procedure replacing the
10916 SET_NAMESTRING macro.
10917 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10918 by calls to set_namestring.
10920 2003-01-11 J. Brobecker <brobecker@gnat.com>
10922 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10923 a compilation warning.
10924 (hpread_process_one_debug_symbol): Likewise.
10926 2003-01-10 David Carlton <carlton@math.stanford.edu>
10928 * linespec.c (decode_line_1): Rename variable 's' to
10930 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10931 (decode_dollar): Ditto.
10932 (decode_variable): Ditto.
10933 (symbol_found): Ditto.
10935 2003-01-09 Michael Chastain <mec@shout.net>
10937 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10939 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10941 * win32-nat.c (set_process_privilege): New function.
10942 (child_attach): Call set_process_privilege() to enable the
10943 SE_DEBUG_NAME user privilege if available in process token.
10945 2003-01-10 J. Brobecker <brobecker@gnat.com>
10947 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10948 compilation error in the previous revision.
10950 2003-01-09 David Carlton <carlton@math.stanford.edu>
10952 * linespec.c: Update copyright.
10954 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10956 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10957 than inferior_ptid.
10958 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10960 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10962 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10964 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10965 (frame_saved_regs_zalloc): Update.
10966 (frame_saved_regs_register_unwind): Update.
10967 (create_new_frame): Update.
10968 (get_prev_frame): Update.
10969 (frame_extra_info_zalloc): Update.
10970 (deprecated_get_frame_saved_regs): Update.
10971 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10972 * cris-tdep.c: Update comment.
10974 * somsolib.h: Fix function indentation.
10975 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10976 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10977 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10978 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10979 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10981 * infrun.c (follow_fork): Use ISO C definition.
10982 * expprint.c (print_subexp): Use xfree instead of free.
10983 * charset.c: Include "gdb_string.h" instead of <string.h>.
10984 (register_iconv_charsets): Use ISO C definition.
10985 (host_charset, target_charset): Ditto.
10986 * Makefile.in (charset.o): Update dependencies.
10987 (mi-cmd-env.o): Update dependencies.
10989 2003-01-08 Andrew Cagney <cagney@redhat.com>
10991 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10994 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10996 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10997 build directories. Save edited gdb output in Mbuild.log. If a
10998 build fails, remove any final GDB executable.
11000 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11002 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11003 replacing hex constants with function names and stripping leading
11004 file name directory prefixes.
11006 2003-01-08 Andrew Cagney <cagney@redhat.com>
11008 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11011 2003-01-08 David Carlton <carlton@math.stanford.edu>
11013 * linespec.c (decode_line_1): Move code into decode_variable.
11014 (decode_variable): New function.
11016 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11018 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11020 2003-01-08 Andrew Cagney <cagney@redhat.com>
11022 * cris-tdep.c (cris_frame_init_saved_regs): Use
11023 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11025 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11026 (sh64_nofp_frame_init_saved_regs): Ditto.
11027 (sh_fp_frame_init_saved_regs): Ditto.
11028 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11029 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11030 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11031 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11033 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11035 * minsyms.c (lookup_minimal_symbol): Update comment.
11036 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11037 (lookup_minimal_symbol_solib_trampoline): Likewise.
11039 2003-01-08 Andrew Cagney <cagney@redhat.com>
11041 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11042 frame_relative_level.
11044 * alpha-tdep.c: Use get_frame_extra_info.
11045 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11046 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11047 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11048 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11050 * alpha-tdep.c: Use get_next_frame.
11051 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11052 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11053 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11054 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11055 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11056 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11057 * xstormy16-tdep.c: Ditto.
11059 2003-01-07 Andrew Cagney <cagney@redhat.com>
11061 * alpha-tdep.c: Use get_frame_base.
11062 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11063 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11064 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11065 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11066 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11067 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11068 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11069 * config/sparc/tm-sparc.h: Ditto.
11071 2003-01-07 Andrew Cagney <cagney@redhat.com>
11073 * frame.c (deprecated_get_frame_context): New function.
11074 (deprecated_set_frame_context): New function.
11075 * frame.h (deprecated_get_frame_context): Declare.
11076 (deprecated_set_frame_context): Declare.
11077 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11078 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11080 2003-01-07 Andrew Cagney <cagney@redhat.com>
11082 * frame.c (deprecated_set_frame_next_hack): New function.
11083 (deprecated_set_frame_prev_hack): New function.
11084 * frame.h (deprecated_set_frame_next_hack): Declare.
11085 (deprecated_set_frame_prev_hack): Declare.
11086 * mcore-tdep.c (analyze_dummy_frame): Use
11087 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11088 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11090 2003-01-07 David Carlton <carlton@math.stanford.edu>
11092 * linespec.c (decode_line_1): Move code into decode_dollar.
11093 (decode_dollar): New function.
11095 2003-01-07 Andrew Cagney <cagney@redhat.com>
11097 * arm-tdep.c (arm_init_extra_frame_info): Use
11098 deprecated_update_frame_base_hack.
11099 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11100 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11101 (fix_frame_pointer): Ditto.
11102 (mn10300_analyze_prologue): Ditto.
11104 2003-01-07 Andrew Cagney <cagney@redhat.com>
11106 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11107 extra_info using frame_extra_info_zalloc.
11108 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11109 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11110 (sh64_init_extra_frame_info): Ditto.
11111 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11112 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11113 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11114 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11115 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11116 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11117 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11118 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11119 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11120 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11121 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11122 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11124 * mn10300-tdep.c (analyze_dummy_frame): Use
11125 deprecated_set_frame_extra_info_hack.
11126 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11128 2003-01-07 J. Brobecker <brobecker@gnat.com>
11130 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11131 class is not scText. These do not define "real" procedures.
11132 (parse_partial_symbols): Likewise.
11134 2003-01-06 Michael Snyder <msnyder@redhat.com>
11136 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11138 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11140 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11141 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11142 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11143 deprecated_frame_xmalloc_with_cleanup.
11144 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11145 deprecated_frame_xmalloc.
11146 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11147 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11149 2003-01-06 Andrew Cagney <cagney@redhat.com>
11151 * x86-64-linux-tdep.c: Include "osabi.h".
11152 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11154 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11156 2003-01-06 Andrew Cagney <cagney@redhat.com>
11158 * MAINTAINERS (Target Instruction Set Architectures): Update
11159 arm-elf. Can be built with -Werror, has been multiarched.
11161 * value.h (unpack_long): Make buffer parameter constant.
11162 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11163 * scm-lang.h (scm_parse): Ditto.
11164 * defs.h (extract_typed_address, extract_address): Ditto.
11165 (extract_long_unsigned_integer): Ditto.
11166 * inferior.h (unsigned_pointer_to_address): Ditto.
11167 (signed_pointer_to_address): Ditto.
11168 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11169 * gdbarch.h, gdbarch.c: Regenerate.
11170 * findvar.c (extract_long_unsigned_integer): Update.
11171 (extract_address): Update.
11172 (extract_typed_address): Update.
11173 (unsigned_pointer_to_address): Update.
11174 * values.c (unpack_long): Update.
11175 (unpack_double): Update.
11176 (unpack_pointer): Update.
11177 (unpack_field_as_long): Update.
11178 * d10v-tdep.c (d10v_pointer_to_address): Update.
11179 * avr-tdep.c (avr_pointer_to_address): Update.
11180 * scm-lang.c (scm_unpack): Update.
11181 * findvar.c (signed_pointer_to_address): Update.
11183 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11185 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11186 since it is in i386-tdep.c.
11188 2003-01-06 J. Brobecker <brobecker@gnat.com>
11190 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11191 failure introduced in the previous change.
11193 2003-01-05 Michael Chastain <mec@shout.net>
11195 * README: Remove references to deleted remote-*.c files:
11196 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11197 remote-nrom.c, remote-os9k.c, remote-udi.c.
11199 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11201 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11202 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11203 i386_get_longjmp_target.
11205 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11207 * arm-tdep.c (prologue_cache): Change to a pointer.
11208 (_initialize_arm_tdep): Allocate prologue_cache.
11209 (check_prologue_cache): Update.
11210 (save_prologue_cache): Update.
11211 (arm_gdbarch_init): Update.
11213 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11215 * stabsread.c (update_method_name_from_physname): Call complaint()
11218 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11220 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11221 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11222 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11224 * blockframe.c: Include "gdbcmd.h" and "command.h".
11225 (backtrace_below_main): New variable.
11226 (file_frame_chain_valid, func_frame_chain_valid)
11227 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11228 (generic_func_frame_chain_valid): Remove functions.
11229 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11230 (_initialize_blockframe): New function.
11231 * Makefile.in (blockframe.o): Update dependencies.
11232 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11233 comment. Call frame_chain_valid ().
11234 * frame.h: Remove old prototypes. Add prototype for
11235 frame_chain_valid and update comments to match.
11236 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11237 Remove old comment.
11238 * gdbarch.h: Regenerated.
11239 * gdbarch.c: Regenerated.
11241 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11242 set_gdbarch_frame_chain_valid.
11243 * avr-tdep.c (avr_gdbarch_init): Likewise.
11244 * cris-tdep.c (cris_gdbarch_init): Likewise.
11245 * frv-tdep.c (frv_gdbarch_init): Likewise.
11246 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11247 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11248 (i386_nw_init_abi): Likewise.
11249 (i386_gdbarch_init): Likewise.
11250 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11251 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11252 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11253 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11254 * mips-tdep.c (mips_gdbarch_init): Likewise.
11255 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11256 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11257 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11258 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11259 * s390-tdep.c (s390_gdbarch_init): Likewise.
11260 * sh-tdep.c (sh_gdbarch_init): Likewise.
11261 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11262 * v850-tdep.c (v850_gdbarch_init): Likewise.
11263 * vax-tdep.c (vax_gdbarch_init): Likewise.
11264 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11266 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11267 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11268 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11269 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11270 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11271 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11272 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11273 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11275 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11277 * Makefile.in (acconfig_h): Remove incorrect macro.
11278 (config_h): Define.
11279 (osabi.o): Update dependencies.
11280 * configure.tgt: Set gdb_osabi based on target triplet.
11281 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11282 * configure: Regenerated.
11283 * config.in: Regenerated.
11284 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11285 (GDB_OSABI_DEFAULT): Define if not already defined.
11286 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11287 (set_osabi_string): New variables.
11288 (gdbarch_register_osabi): Add new OS ABI to
11289 gdb_osabi_available_names.
11290 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11291 (set_osabi, show_osabi): New functions.
11292 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11294 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11296 * arch-utils.c (gdbarch_info_init): Set osabi to
11297 GDB_OSABI_UNINITIALIZED.
11298 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11299 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11300 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11301 * gdbarch.c: Regenerated.
11302 * gdbarch.h: Regenerated.
11303 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11305 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11306 * osabi.h (enum gdb_osabi): Move to defs.h.
11307 (gdbarch_init_osabi): Update prototype.
11308 * defs.h (enum gdb_osabi): Moved here.
11309 * Makefile.in: Update dependencies.
11311 * alpha-tdep.h: Don't include "osabi.h".
11312 (struct gdbarch_tdep): Remove osabi member.
11313 * alpha-tdep.c: Include "osabi.h".
11314 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11315 iterate over arches. Update call to gdbarch_init_osabi.
11316 (alpha_dump_tdep): Don't dump osabi.
11317 * alpha-linux-tdep.c: Include "osabi.h".
11318 * alpha-osf1-tdep.c: Include "osabi.h".
11319 * alphafbsd-tdep.c: Include "osabi.h".
11320 * alphanbsd-tdep.c: Include "osabi.h".
11322 * arm-tdep.h: Don't include "osabi.h".
11323 (struct gdbarch_tdep): Remove osabi member.
11324 * arm-tdep.c: Include "osabi.h".
11325 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11326 iterate over arches. Update call to gdbarch_init_osabi.
11327 (arm_dump_tdep): Don't dump osabi.
11328 * arm-linux-tdep.c: Include "osabi.h".
11329 * armnbsd-tdep.c: Include "osabi.h".
11331 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11332 Update call to gdbarch_init_osabi.
11334 * i386-tdep.h: Don't include "osabi.h".
11335 (struct gdbarch_tdep): Remove osabi member.
11336 * i386-tdep.c: Include "osabi.h".
11337 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11338 iterate over arches. Update call to gdbarch_init_osabi.
11339 (i386_dump_tdep): Don't dump osabi.
11340 * i386-linux-tdep.c: Include "osabi.h".
11341 * i386-sol2-tdep.c: Include "osabi.h".
11342 * i386bsd-tdep.c: Include "osabi.h".
11343 * i386gnu-tdep.c: Include "osabi.h".
11344 * i386ly-tdep.c: Include "osabi.h".
11345 * i386nbsd-tdep.c: Include "osabi.h".
11346 * i386obsd-tdep.c: Include "osabi.h".
11348 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11349 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11350 check osabi when iterating over arches. Update call to
11351 gdbarch_init_osabi.
11352 (mips_dump_tdep): Don't dump osabi.
11354 * ns32k-tdep.h: Don't include "osabi.h".
11355 (struct gdbarch_tdep): Remove.
11356 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11357 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11358 allocate tdep. Update call to gdbarch_init_osabi.
11359 (ns32k_dump_tdep): Remove.
11360 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11361 * ns32knbsd-tdep.c: Include "osabi.h".
11363 * ppc-tdep.h: Don't include "osabi.h".
11364 (struct gdbarch_tdep): Remove osabi member.
11365 * rs6000-tdep.c: Include "osabi.h".
11366 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11367 osabi when iterating over arches. Update call to
11368 gdbarch_init_osabi.
11369 (rs6000_dump_tdep): Don't dump osabi.
11370 * ppc-linux-tdep.c: Include "osabi.h".
11371 * ppcnbsd-tdep.c: Include "osabi.h".
11373 * sh-tdep.h: Don't include "osabi.h".
11374 (struct gdbarch_tdep): Remove osabi member.
11375 * sh-tdep.c: Include "osabi.h".
11376 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11377 iterate over arches. Update call to gdbarch_init_osabi.
11378 (sh_dump_tdep): Don't dump osabi.
11379 * shnbsd-tdep.c: Include "osabi.h".
11381 * sparc-tdep.c: Include "osabi.h".
11382 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11383 iterate over arches. Update call to gdbarch_init_osabi.
11384 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11387 * vax-tdep.h: Don't include "osabi.h".
11388 (struct gdbarch_tdep): Remove.
11389 * vax-tdep.c: Include "osabi.h".
11390 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11391 iterate over arches. Don't allocate tdep. Update call
11392 to gdbarch_init_osabi.
11393 (vax_dump_tdep): Remove.
11394 (_initialize_vax_tdep): Update call to gdbarch_register.
11396 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11398 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11400 (breakpoint_re_set_one): Don't fetch the value for a disabled
11403 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11405 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11406 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11407 (COERCE_FLOAT_TO_DOUBLE): Remove.
11408 * gdbarch.c: Regenerate.
11409 * gdbarch.h: Regenerate.
11410 * Makefile.in: Remove value_h from gdbarch_h.
11411 * valops.c (coerce_float_to_double): New variable.
11412 (default_coerce_float_to_double): Remove.
11413 (standard_coerce_float_to_double): Remove.
11414 (value_arg_coerce): Use coerce_float_to_double.
11415 (_initialize_valops): Add "set coerce-float-to-double".
11416 * value.h (default_coerce_float_to_double): Remove prototype.
11417 (standard_coerce_float_to_double): Remove prototype.
11419 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11421 * mdebugread.c (parse_symbol): Likewise.
11422 * stabsread.c (define_symbol): Mark all functions as prototyped.
11424 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11425 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11426 set_gdbarch_coerce_float_to_double.
11427 * arm-tdep.c (arm_gdbarch_init): Likewise.
11428 * frv-tdep.c (frv_gdbarch_init): Likewise.
11429 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11430 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11431 * mips-tdep.c (mips_gdbarch_init): Likewise.
11432 (mips_coerce_float_to_double): Remove.
11433 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11434 (rs6000_coerce_float_to_double): Remove.
11435 * s390-tdep.c (s390_gdbarch_init): Likewise.
11436 * sh-tdep.c (sh_gdbarch_init): Likewise.
11437 (sh_coerce_float_to_double): Remove.
11438 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11439 (sparc_coerce_float_to_double): Remove.
11440 * v850-tdep.c (v850_gdbarch_init): Likewise.
11441 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11442 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11443 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11444 (hppa_coerce_float_to_double): Remove prototype.
11445 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11447 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11449 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11451 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11453 Suggested by Stewart Brown <sb24@avaya.com>:
11454 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11455 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11456 (c_type_print_varspec_suffix): Likewise.
11458 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11460 * configure.in: Don't set and AC_SUBST SUBDIRS.
11461 * configure: Regenerated.
11463 * configure.in: Remove code dealing with shared libraries.
11464 * Makefile.in: Remove HLDFLAGS and HLDENV.
11465 * configure: Regenerated.
11467 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11469 * frame.c (deprecated_frame_xmalloc): New function.
11470 (deprecated_set_frame_saved_regs_hack): New function.
11471 (deprecated_set_frame_extra_info_hack): New function.
11472 * frame.h (deprecated_frame_xmalloc): Declare.
11473 (deprecated_set_frame_saved_regs_hack): Declare.
11474 (deprecated_set_frame_extra_info_hack): Declare.
11476 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11478 * configure.in: Move code that provides the --enable-gdbtk option
11479 right after the code that handles the --enable-tui option, and
11480 polish it somewhat.
11481 * configure: Regenerated.
11483 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11484 AC_CHECK_FUNCS and remove the old check for pread64.
11485 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11486 * acconfig.h (_GNU_SOURCE): Add.
11487 (HAVE_PREAD64): Remove.
11488 * configure, aclocal.m4, config.in: Regenerated.
11490 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11492 * alpha-tdep.c: Use get_frame_saved_regs.
11493 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11494 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11495 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11496 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11497 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11499 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11501 * configure.in: Remove all use of the SUBDIRS variable; add
11502 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11503 code providing the --enable-multi-ice option, and move it right in
11504 front of the code that checks whether gdbserver is supported.
11506 * configure: Regenerated.
11507 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11510 2003-01-03 Andrew Cagney <cagney@redhat.com>
11512 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11513 * avr-tdep.c, cris-tdep.c: Ditto.
11514 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11515 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11517 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11519 * configure.in: Remove --enable-netrom option.
11520 * configure: Regenerated.
11522 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11524 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11525 declaration for `struct re_pattern_buffer' instead.
11526 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11528 2003-01-03 J. Brobecker <brobecker@gnat.com>
11530 * mdebugread.c (parse_symbol): Count until the stEnd matching
11531 the structure name.
11533 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11535 * configure.in: Remove --with-cpu option.
11536 subscripts. Remove evil changequotes here.
11537 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11538 * config.in, configure: Regenerated.
11540 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11541 * configure.in: Cleanup section that sources GDB and BFD configure
11542 subscripts. Remove evil changequotes here.
11543 * config.in, configure: Regenerated.
11545 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11547 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11548 frame accessor methods.
11549 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11550 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11551 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11552 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11553 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11554 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11555 * z8k-tdep.c: Ditto.
11557 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11559 * configure.in: Remove UI_OUT configuration code.
11560 * ada-lang.c: Update assuming UI_OUT is always true.
11561 * Makefile.in (UIOUT_CFLAGS): Remove.
11562 * configure: Regenerated.
11563 * TODO: Remove blurb about elimination of -DUI_OUT.
11565 * configure.in: Move code that provides the --enable-gdbcli,
11566 --enable-gdbmi options right before the code that handles the
11567 --enable-tui option. Polish a bit.
11568 * configure: Regenerated.
11570 * configure.in: Rewrite check for GNU regex and the
11571 --without-included regex option, and move it into the "Checks for
11572 library functions" section. This makes us use the system regex
11573 again by default on systems with version 2 of the GNU C library.
11574 This was apparently broken.
11575 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11576 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11577 * config.in, configure: Regenerated.
11579 * configure.in: Move code that provides the --enable-tui option
11580 before the "Checks for libraries" section. Polish the code
11581 somewhat and set need_curses to yes if we build the TUI. Rewrite
11582 code that looks for a library providing termcap functionality to
11583 match more closely what's done in the Readline library, and move
11584 it into to the "Checks for libraries" section.
11585 * configure: Regenerated.
11586 * Makefile.in (TERMCAP): Remove variable.
11587 * config/i386/go32.mh (TERMCAP): Remove variable.
11589 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11591 * MAINTAINERS: Mention gdb_mbuild.sh.
11592 * gdb_mbuild.sh: Rewrite.
11594 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11596 * configure.in: Fix typo in last change.
11597 * config.in, configure: Regenerated.
11599 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11601 * valarith.c (value_binop): Delete obsolete code and comments.
11602 * configure.host: Ditto.
11603 * buildsym.h (make_blockvector): Ditto.
11604 * buildsym.c (make_blockvector): Ditto.
11605 * defs.h (enum language): Ditto.
11606 (chill_demangle): Ditto.
11607 * elfread.c (elf_symtab_read): Ditto.
11608 * dwarfread.c (CHILL_PRODUCER): Ditto.
11609 (set_cu_language): Ditto.
11610 (handle_producer): Ditto.
11611 * expprint.c (print_subexp): Ditto.
11612 * gdbtypes.c (chill_varying_type): Ditto.
11613 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11614 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11615 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11616 (chill_varying_type): Ditto.
11617 * language.h (_LANG_chill): Ditto.
11618 * language.c (binop_result_type, integral_type): Ditto.
11619 (character_type, string_type, structured_type): Ditto.
11620 (lang_bool_type, binop_type_check): Ditto.
11621 * stabsread.h (os9k_stabs): Ditto.
11622 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11623 (define_symbol, read_type, read_struct_fields): Ditto.
11624 (read_array_type, read_enum_type, read_huge_number): Ditto.
11625 (read_range_type, start_stabs): Ditto.
11626 * symfile.c (init_filename_language_table): Ditto.
11627 (add_psymbol_with_dem_name_to_list): Ditto.
11628 * symtab.c (symbol_init_language_specific): Ditto.
11629 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11630 * symtab.h (struct general_symbol_info): Ditto.
11631 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11632 * typeprint.c (typedef_print): Ditto.
11633 * utils.c (fprintf_symbol_filtered): Ditto.
11634 * valops.c (value_cast, search_struct_field, value_slice): Delete
11636 (varying_to_slice): Delete function.
11637 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11638 (varying_to_slice): Delete declaration.
11639 * MAINTAINERS: Update.
11641 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11643 * configure.in: Reorganize "Checks for library functions section"
11644 a bit. Remove check for `btowc' and `isascii' functions.
11645 * configure: Regenerated.
11647 * acconfig.h (_MSE_INT_H): Remove.
11648 * configure.in: Create "Checks for header files" section, and move
11649 appropriate tests there. Don't check for objlist.h, wchar.h,
11650 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11651 misdetection fix. Also add "Checks for types", "Checks for
11652 compiler characteristics" and "Checks for library functions"
11654 * config.in, configure: Regenerated.
11656 * configure.in: Create "Checks for programs" section, and move
11657 appropriate tests there.
11659 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11661 * configure.in: Create "Checks for libraries" section, and move
11662 appropriate tests there. Cleanup check for wctype in libw. Use
11663 AC_SEARCH_LIBS to see whether we need libsocket.
11664 * configure: Regenerated.
11666 For older changes see ChangeLog-2002
11672 version-control: never