1 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
3 * MAINTAINERS: Update my e-mail address.
5 2003-09-09 Andrew Cagney <cagney@redhat.com>
7 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
8 (rs6000_push_dummy_call): Store the struct return address.
9 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
11 2003-09-09 Andrew Cagney <cagney@redhat.com>
13 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
14 "ppc_sysv_abi_push_arguments".
15 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
16 "ppc_sysv_abi_push_arguments".
17 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
18 instead of "push_arguments".
19 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
21 2003-09-09 Andrew Cagney <cagney@redhat.com>
23 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
24 instead of CALL_DUMMY_ADDRESS.
26 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
28 * p-lang.c: Eliminate "register".
39 2003-09-09 Nick Clifton <nickc@redhat.com>
41 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
43 2003-09-04 Andrew Cagney <cagney@redhat.com>
45 * avr-tdep.c: Include "dis-asm.h".
46 * cris-tdep.c: Include "dis-asm.h".
47 (cris_delayed_get_disassembler): Use "struct disassemble_info"
48 instead of corresponding typedef.
49 * h8300-tdep.c: Include "dis-asm.h".
50 * ia64-tdep.c: Include "dis-asm.h".
51 * i386-tdep.c: Include "dis-asm.h".
52 (i386_print_insn): Use "struct disassemble_info" instead of
53 corresponding typedef.
54 * m68k-tdep.c: Include "dis-asm.h".
55 * mcore-tdep.c: Include "dis-asm.h".
56 * mips-tdep.c: Include "dis-asm.h".
57 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
58 instead of corresponding typedef.
59 * ns32k-tdep.c: Include "dis-asm.h".
60 * s390-tdep.c: Include "dis-asm.h".
61 * sparc-tdep.c: Include "dis-asm.h".
62 * vax-tdep.c: Include "dis-asm.h".
63 * v850-tdep.c: Include "dis-asm.h".
64 * mn10300-tdep.c: Include "dis-asm.h".
65 * rs6000-tdep.c: Include "dis-asm.h".
66 * xstormy16-tdep.c: Include "dis-asm.h".
67 (_initialize_xstormy16_tdep): Delete "extern" declaration of
69 * Makefile.in (v850-tdep.o): Update dependencies.
70 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
71 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
72 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
73 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
74 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
75 (gdbarch_h): Remove $(dis_asm_h).
76 * disasm.c: Include "dis-asm.h".
77 (dis_asm_read_memory): Use "struct disassemble_info" instead of
78 corresponding typedef.
79 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
80 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
81 * gdbarch.sh: Do not include "dis-asm.h".
82 (struct disassemble_info): Declare opaque.
83 (TARGET_PRINT_INSN): Update declaration.
84 * gdbarch.h, gdbarch.c: Re-generate.
86 2003-09-08 Andrew Cagney <cagney@redhat.com>
88 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
89 CALL_DUMMY_ADDRESS, change to a predicate.
90 * gdbarch.h, gdbarch.c: Re-generate.
91 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
92 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
93 * infcall.c (call_function_by_hand): Ditto.
94 * sparc-tdep.c (sparc_push_return_address): Ditto.
95 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
96 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
97 CALL_DUMMY_ADDRESS with entry_point_address.
98 * v850-tdep.c (v850_push_return_address): Ditto.
99 * s390-tdep.c (s390_push_return_address): Ditto.
100 * rs6000-tdep.c (ppc_push_return_address): Ditto.
101 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
102 * mcore-tdep.c (mcore_push_return_address): Ditto.
103 * cris-tdep.c (cris_push_return_address): Ditto.
104 * arm-tdep.c (arm_push_return_address): Ditto.
106 2003-09-08 Andrew Cagney <cagney@redhat.com>
108 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
109 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
110 and REG_UNMODIFIED to REG_SAME_VALUE.
111 (execute_cfa_program): Update.
112 (dwarf2_frame_cache): Update. Initialize table to
113 REG_UNSPECIFIED, complain if CFI fails to specify a register's
115 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
117 2003-09-08 Andrew Cagney <cagney@redhat.com>
119 * gnu-nat.c: Remove "inline" function attribute.
120 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
122 2003-09-08 Kevin Buettner <kevinb@redhat.com>
124 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
127 2003-09-08 Kevin Buettner <kevinb@redhat.com>
129 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
130 (frame_extra_info): Rename this struct to frv_unwind_cache.
131 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
132 Add fields ``prev_sp'' and ``base''.
133 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
134 (frv_saved_pc_after_call, frv_init_extra_frame_info)
135 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
137 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
138 Revise all callers. Fill in the unwind cache argument and make
139 other adjustments to account for new frame mechanisms.
140 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
141 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
142 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
143 (frv_frame_unwind, frv_frame_base): New structs.
144 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
145 additional arguments expected by this method and adjust function
147 (frv_gdbarch_init): Remove calls to the following functions:
148 set_gdbarch_deprecated_init_frame_pc(),
149 set_gdbarch_deprecated_saved_pc_after_call(),
150 set_gdbarch_deprecated_frame_chain(),
151 set_gdbarch_deprecated_frame_saved_pc(),
152 set_gdbarch_deprecated_frame_init_saved_regs(),
153 set_gdbarch_deprecated_push_arguments(),
154 set_gdbarch_deprecated_push_return_address(),
155 set_gdbarch_deprecated_pop_frame(),
156 set_gdbarch_deprecated_call_dummy_words(),
157 set_gdbarch_deprecated_sizeof_call_dummy_words(),
158 set_gdbarch_deprecated_init_extra_frame_info(),
159 set_gdbarch_deprecated_dummy_write_sp(), and
160 set_gdbarch_deprecated_pc_in_call_dummy().
161 Add calls to the following functions:
162 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
163 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
164 frame_base_set_default().
165 * Makefile.in (frv-tdep.o): Update dependencies.
167 2003-09-09 Mark Kettenis <kettenis@gnu.org>
169 * dwarf2-frame.c (read_encoded_value): Add support for
170 DW_EH_PE_aligned encoding.
172 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
174 * infrun.c (normal_stop): Don't print a message if the inferior
177 2003-09-08 Jim Blandy <jimb@redhat.com>
179 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
180 * dbxread.c: #include "gdb_assert.h".
181 (read_dbx_symtab): If the objfile has no .data section, use the
182 section index for the .bss section instead.
184 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
186 * frame.c (deprecated_safe_get_selected_frame): New function.
187 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
188 * findvar.c (read_var_value): Call it.
190 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
192 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
193 (sh64-tdep.o): Add dependencies.
194 * configure.tgt: Add FIXME to sh-*-linux*.
195 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
196 (sh_gdbarch_init): Always set correct sh_show_regs function
197 pointer. Call sh64_gdbarch_init() if machine type is sh5.
198 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
199 * sh64-tdep.c: New file, containing all sh64 related code from
201 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
202 * config/sh/linux.mt (TDEPFILES): Ditto.
203 * config/sh/nbsd.mt (TDEPFILES): Ditto.
204 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
205 * config/sh/wince.mt (TDEPFILES): Ditto.
207 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
209 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
210 (stop_wait_callback): Handle !lp->signalled also.
211 (lin_lwp_has_pending, flush_callback): New functions.
212 (lin_lwp_wait): Call flush_callback.
213 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
214 (linux_proc_pending_signals): New function.
215 * linux-nat.h (linux_proc_pending_signals): Add prototype.
217 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
219 From Nick Kelsey <nickk@ubicom.com>:
220 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
221 when the stop PC is at the beginning of a function also.
223 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
225 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
226 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
228 2003-09-06 Mark Kettenis <kettenis@gnu.org>
230 * sol-thread.c: Include "gdb_string.h".
232 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
234 * gcore.c: Reorder include files in alphabetical order. Include
235 "gdb_assert.h". Various coding style fixes.
236 (derive_stack_segment, derive_heap_segment): Replace check for
237 non-null BOTTOM and TOP with gdb_assert.
238 (derive_heap_segment): Replace check for successful creation of
239 ZERO with gdb_assert.
240 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
242 2003-09-04 Andrew Cagney <cagney@redhat.com>
244 * thread-db.c (verbose_dlsym): New function.
245 (thread_db_load): Use verbose_dlsym
246 (thread_db_new_objfile): Print that libthread_db was loaded, and
247 that thread debugging was enabled.
249 2003-09-04 Andrew Cagney <cagney@redhat.com>
251 * configure.tgt: Add "mips64*-*-*" target. Delete
252 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
253 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
254 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
255 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
256 mips*-sony-*, and mips64*-*-elf* targets.
257 * config/mips/embedl.mt: Delete file.
258 * config/mips/embedl64.mt: Delete file.
259 * config/mips/mips.mt: Delete file.
260 * config/mips/mips64.mt: Delete file.
261 * config/mips/tm-embed.h: Delete file.
262 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
263 * config/mips/embed64.mt: Delete out-of-date comment.
265 2003-09-04 Andrew Cagney <cagney@redhat.com>
267 * hppa-tdep.c (hppa_gdbarch_init): Set
268 "have_nonsteppable_watchpoint".
269 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
270 * mips-tdep.c (mips_dump_tdep): Do not print
271 HAVE_NONSTEPPABLE_WATCHPOINT.
272 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
273 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
274 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
275 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
277 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
279 * breakpoint.c (watchpoint_check): Remove accidentally checked in
280 unused code. Add comment.
282 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
284 * breakpoint.c (watchpoint_check): Check for pc being in an
285 epilogue if watchpoint frame couldn't be found.
287 2003-09-04 Andrew Cagney <cagney@redhat.com>
289 * Makefile.in: Re-generate all dependencies.
291 2003-09-03 Andrew Cagney <cagney@redhat.com>
293 * arch-utils.h (legacy_print_insn): Delete declaration.
294 * arch-utils.c (legacy_print_insn): Delete function.
295 * disasm.c (deprecated_tm_print_insn_info): Delete.
296 (_initialize_disasm): Delete function, contained code initializing
297 deprecated_tm_print_insn_info.
298 * gdbarch.sh (deprecated_tm_print_insn): Delete.
299 (deprecated_tm_print_insn_info): Delete.
300 (TARGET_PRINT_INSN): Do not provide a default.
301 * gdbarch.h, gdbarch.c: Re-generate.
303 2003-09-03 Andrew Cagney <cagney@redhat.com>
305 * disasm.c (fprintf_disasm): New function.
306 (gdb_disassemble_info): Call "init_disassemble_info", instead of
307 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
308 reverts 2003-08-14 change.
309 (_initialize_disasm): Call "init_disassemble_info", instead of
310 INIT_DISASSEMBLE_INFO_NO_ARCH.
312 2003-09-03 Michael Snyder <msnyder@redhat.com>
314 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
316 2003-09-03 Andrew Cagney <cagney@redhat.com>
318 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
319 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
320 * symfile.c (syms_from_objfile): Update.
321 (reread_symbols): `Update
322 * exec.c (exec_file_attach): Update.
323 (exec_file_attach): Update.
324 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
326 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
328 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
330 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
332 (arm_get_cache): Delete macro.
333 (struct arm_prologue_cache): Update comments. Make saved_regs into
334 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
336 (thumb_scan_prologue): Update for cache changes. Don't call
337 DEPRECATED_PC_IN_CALL_DUMMY.
338 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
339 argument and use it in desperation search for our prologue. Do not
340 search past the specified PC.
341 (arm_make_prologue_cache): Simplify.
343 (arm_prologue_this_id, arm_prologue_prev_register)
344 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
345 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
346 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
347 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
348 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
350 (arm_frame_chain_valid, arm_find_callers_reg)
351 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
352 (arm_pop_frame): Delete obsolete methods.
353 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
355 (arm_gdbarch_init): Update for new frame methods. Register prologue
356 and sigtramp unwinders. Set the default frame base method.
358 * Makefile.in (arm-tdep.o): Update dependencies.
359 * varobj.c (find_frame_addr_in_frame_chain): Call
360 get_frame_base_address.
361 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
363 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
365 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
366 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
367 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
368 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
369 Take NEXT_FRAME and CACHE arguments. Call
370 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
371 Set unwound_pc in CACHE instead of modifying the frame argument.
372 Don't bother checking the frame type when looking for sigtramp
374 (arm_make_prologue_cache, arm_frame_chain)
375 (arm_init_extra_frame_info): New functions.
377 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
379 * arm-tdep.c (arm_get_cache): Define.
380 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
381 unwound_sp, unwound_pc, and saved_regs.
382 (thumb_scan_prologue): Take a cache instead of the frame.
383 (arm_scan_prologue): Likewise.
384 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
385 instead of a temporary frame.
386 (arm_init_extra_frame_info): Allocate and use a cache.
387 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
389 2003-09-03 Andrew Cagney <cagney@redhat.com>
391 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
392 * config/mips/wince.mt (TM_CLIBS): Ditto.
393 * config/sh/wince.mt (TM_CLIBS): Ditto.
394 * config/pa/hppa64.mt (TM_CLIBS): Delete.
395 * config/sparc/sp64.mt (CC): Delete.
397 2003-09-03 Andrew Cagney <cagney@redhat.com>
399 * defs.h: Do not include "arch-utils.h".
400 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
402 * configure.in (GDB_MULTI_ARCH): Do not define.
403 * configure, config.in: Regenerate.
404 * configure.tgt: Do not set variable "gdb_multi_arch".
405 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
406 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
407 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
408 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
409 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
410 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
411 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
412 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
413 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
414 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
415 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
416 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
417 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
418 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
419 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
420 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
421 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
422 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
424 2003-08-30 Michael Chastain <mec@shout.net>
426 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
427 * config/m68k/nm-hp300hpux.h: Delete.
428 * config/m68k/tm-hp300hpux.h: Delete.
429 * config/m68k/xm-hp300hpux.h: Delete.
430 * config/m68k/xm-hp300bsd.h: Delete.
431 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
432 tm-hp300hpux.h, xm-hp300hpux.h.
433 * somsolib.c: Remove comment about hp300 shared libraries.
435 2003-08-31 Mark Kettenis <kettenis@gnu.org>
437 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
438 Only define PTRACE_GET_THREAD_AREA is not already defined.
439 Various style fixes in code and comments and some additional
440 spelling fixes in comments. Move after functions dealing with
442 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
445 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
446 frame_unwind_register_unsigned instead of
447 frame_unwind_unsigned_register.
449 2003-08-30 Mark Kettenis <kettenis@gnu.org>
451 * configure.in: Search for gethostbyname in libnsl.
452 * configure: Regenerated.
454 2003-08-29 Mark Kettenis <kettenis@gnu.org>
456 * configure.in: Remove redundant AC_MSG_RESULT in check for
457 uintptr_t in stdint.h.
458 * configure: Regenerated.
460 * amd64-nat.h (struct regcache): Add opaque declaration.
462 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
463 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
464 Change "register array" to "register cache" in comments.
465 (x86_64_linux_gregset64_reg_offset): New variable.
466 (GETREGS_SUPPLIES): Remove macro.
467 (supply_gregset): Call amd64_supply_native_gregset instead of
468 x86_64_linux_supply_gregset.
469 (fill_gregset): Rename `regno' to `regnum'. Call
470 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
471 (store_regs): Rename `regno' to `regnum'.
472 (store_fpregs): Rename `regno' to `regnum'.
473 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
474 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
475 Reorganize function a bit.
476 (store_inferior_registers): Rename `regno' to `regnum'. Use
477 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
478 Reorganize function a bit.
479 (_initialize_x86_64_linux_nat): New function.
480 * config/i386/x86-64linux.mh.
482 2003-08-29 Andrew Cagney <cagney@redhat.com>
484 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
485 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
486 (target_remove_watchpoint): Delete macro.
487 (target_insert_watchpoint): Delete macro.
488 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
489 (remote_mips_stopped_by_watchpoint): Delete declaration.
490 (remote_mips_remove_watchpoint): Delete declaration.
491 (remote_mips_set_watchpoint): Delete declaration.
492 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
493 * remote-mips.c (_initialize_remote_mips): Set
494 "to_insert_watchpoint", "to_stopped_by_watchpoint",
495 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
496 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
497 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
498 (mips_stopped_by_watchpoint): Rename
499 remote_mips_stopped_by_watchpoint.
500 (mips_can_hardware_watchpoint): Rename
501 remote_mips_can_use_hardware_watchpoint, update function
504 2003-08-29 Mark Kettenis <kettenis@gnu.org>
506 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
507 USER_DS. We haven't given them a register number yet.
509 * amd64-nat.h: New file.
510 * amd64-nat.c: New file.
511 * amd64fbsd-nat.c: Include "amd64-nat.h".
512 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
513 (amd64fbsd32_r_reg_offset): New variable.
514 (supply_gregset): Simply call amd64_supply_native_gregset.
515 (fill_gregset): Rename `regno' to `regnum'. Simply call
516 amd64_collect_native_gregset.
517 (fill_fpregset): Rename `regno' to `regnum'.
518 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
519 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
520 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
521 `fpregset_t'. Call amd64_supply_native_gregset instead of
522 supply_gregset. Call x86_64_supply_fxsave instead of
524 (store_inferior_registers): Rename `regno' to `regnum'. Replace
525 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
526 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
527 `fpregset_t'. Call amd64_collect_native_gregset instead of
528 fill_gregset. Call x86_64_collect_fxsave instead of
530 (_initialize_am64fbsd_nat): Initialize
531 amd64_native_gregset32_reg_offset and
532 amd64_native_gregset64_reg_offset.
533 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
535 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
536 null pointer. Fix typo in comment.
538 * regcache.c (supply_register): Reimplement to call
540 (regcache_collect): Reimplement by calling regcache_raw_collect.
542 2003-08-28 Mark Kettenis <kettenis@gnu.org>
544 * regcache.c (register_buffer): Consitify first argument.
545 (regcache_raw_supply, regcache_raw_collect): New
548 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
550 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
551 by Nathan J. Williams.
553 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
555 * lin-lwp.c (wait_lwp): New function, copied from
556 stop_wait_callback. Clean up.
557 (stop_wait_callback): Use wait_lwp.
559 2003-08-28 Andrew Cagney <cagney@redhat.com>
561 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
562 flavour and disassembler options.
563 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
564 (mips_gdbarch_init): Set "print_insn". Delete initialization of
565 deprecated_tm_print_insn_info.
567 2003-08-27 Andrew Cagney <cagney@redhat.com>
569 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
570 Use target_read_memory.
571 (s390_get_frame_info): Update. Do not reference
572 deprecated_tm_print_insn_info.
573 (s390_check_function_end, s390_is_sigreturn): Ditto.
575 2003-08-27 Andrew Cagney <cagney@redhat.com>
577 * Makefile.in (cris-tdep.o): Update dependencies.
578 * cris-tdep.c: Include "gdb_assert.h".
579 (cris_gdbarch_init): Set print_insn.
580 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
581 (cris_delayed_get_disassembler): Simplify, directly call the
582 disassembler returned by cris_get_disassembler.
583 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
584 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
585 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
586 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
587 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
588 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
589 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
590 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
591 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
592 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
593 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
594 (gdb_print_insn_sparc): Delete function.
595 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
596 deprecated_tm_print_insn_info.
597 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
598 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
599 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
600 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
601 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
602 * s390-tdep.c (gdb_print_insn_s390): Delete function.
603 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
604 (s390_gdbarch_init): Set print_insn.
606 2003-08-27 Andrew Cagney <cagney@redhat.com>
608 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
609 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
610 * infcall.c (call_function_by_hand): Convert the entry point
611 address into a code address.
613 2003-08-27 Andrew Cagney <cagney@redhat.com>
615 * dsrec.c: Include "gdb_string.h".
616 * Makefile.in (dsrec.o): Update dependencies.
618 2003-08-27 Michael Chastain <mec@shout.net>
620 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
622 2003-08-27 Andrew Cagney <cagney@redhat.com>
624 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
625 (alpha_osf1_init_abi): Do not set call_dummy_address.
627 2003-08-27 David Carlton <carlton@kealia.com>
629 From Randolph Chung <tausq@debian.org>:
630 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
631 compiles with -Wformat-nonliteral -Werror.
633 2003-08-26 Jim Blandy <jimb@redhat.com>
635 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
636 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
637 bfd_lookup_symbol, since we only want symbols in code sections.
638 (look_for_base): Pass zero as the SECT_FLAGS argument to
639 bfd_lookup_symbol, since we're not concerned about which section
642 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
644 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
645 we are frameless or the return address register is already known.
647 2003-08-26 Andrew Cagney <cagney@redhat.com>
649 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
650 in size. Add comments.
652 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
654 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
655 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
657 2003-08-26 Jason Merrill <jason@redhat.com>
659 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
660 case out of #ifdef MIPS block.
662 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
665 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
666 available before calling SECT_OFF_TEXT.
667 * PROBLEMS: Remove description of java/1322.
669 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
671 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
672 bof, and nat0-nat127 as pseudo-registers.
673 (ia64_frame_cache): New struct used to cache frame info.
674 (ia64_register_reggroup_p): New routine used to override default
675 register grouping so registers without names are still saved and
677 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
679 (ia64_pseudo_register_read): New routine to read pseudo-registers.
680 (ia64_pseudo_register_write): New routine to write pseudo-registers.
681 (ia64_alloc_frame_cache): New routine to create a new
683 (examine_prologue): Change prototype to add next_frame pointer.
684 Assume frameless until otherwise proven. Verify that the cfm for
685 current frame matches the cfm that should occur for the prologues
686 alloc insn and if equal, mark as not frameless. At end of routine,
687 if not frameless, calculate registers for the previous frame and store
688 in the cache, if a cache is provided.
689 (ia64_skip_prologue): Use new prototype when calling examine_prologue
690 and pass 0 for next_frame.
691 (ia64_store_return_value): Change to use convert_typed_floating()
692 instead of calling ia64_convert_to_raw().
693 (ia64_extract_return_value): Change to use convert_typed_floating()
694 instead of calling ia64_convert_to_virtual().
695 (ia64_frame_cache): New routine to support new frame model.
696 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
697 (ia64_frame_sniffer): Ditto.
698 (ia64_sigtramp_frame_init_saved_regs): Ditto.
699 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
700 (ia64_sigtramp_frame_prev_register): Ditto.
701 (ia64_sigtramp_frame_sniffer): Ditto.
702 (ia64_frame_base_address): Ditto.
703 (ia64_extract_struct_value_address): Change to issue error message.
704 (ia64_frame_align): New routine to align sp.
705 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
706 (ia64_push_arguments): Removed. Logic moved to
707 ia64_push_dummy_call().
708 (ia64_push_return_address): Ditto.
709 (ia64_unwind_dummy_id): New function.
710 (ia64_unwind_pc): Ditto.
711 (ia64_convert_register_p): Ditto.
712 (ia64_register_to_value): Ditto.
713 (ia64_value_to_register): Ditto.
714 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
715 (ia64_register_byte, ia64_register_raw_size): Ditto.
716 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
717 (ia64_saved_pc_after_call): Ditto.
718 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
719 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
720 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
721 (ia64_register_convert_to_raw): Ditto.
722 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
723 (ia64_init_extra_frame_info): Ditto.
724 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
725 (ia64_gdbarch_init): Remove registering of deprecated functions that
726 are no longer used. Add registration of new gdbarch functions.
727 Remove registering deprecated_write_sp. Replace
728 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
729 Delete set_gdbarch_deprecated_register_convertible(),
730 set_gdbarch_deprecated_register_convert_to_virtual(), and
731 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
732 set_gdbarch_deprecated_register_size(),
733 set_gdbarch_deprecated_register_bytes(),
734 set_gdbarch_pcregnum(),
735 set_gdbarch_deprecated_register_byte(),
736 set_gdbarch_deprecated_register_raw_size(),
737 set_gdbarch_deprecated_max_register_raw_size(),
738 set_gdbarch_deprecated_register_virtual_size(),
739 and set_gdbarch_deprecated_max_register_virtual_size() calls.
740 Replace set_gdbarch_deprecated_extract_return_value() with
741 set_gdbarch_extract_return_value(). Remove calls to:
742 set_gdbarch_deprecated_saved_pc_after_call();
743 set_gdbarch_deprecated_frame_chain(),
744 set_gdbarch_deprecated_frame_saved_pc(),
745 set_gdbarch_deprecated_frame_init_saved_regs(),
746 set_gdbarch_deprecated_get_saved_register(),
747 set_gdbarch_deprecated_call_dummy_words(),
748 set_gdbarch_deprecated_sizeof_call_dummy_words(),
749 set_gdbarch_deprecated_init_extra_frame_info(),
750 set_gdbarch_deprecated_frame_args_address(),
751 set_gdbarch_deprecated_frame_locals_address(),
752 and set_gdbarch_deprecated_dummy_write_sp().
753 Add set_gdbarch_convert_register_p(),
754 set_gdbarch_register_to_value(),
755 set_gdbarch_value_to_register(),
756 set_gdbarch_push_dummy_call(),
757 set_gdbarch_frame_align(),
758 set_gdbarch_unwind_dummy_id(),
759 set_gdbarch_unwind_pc(),
760 frame_unwind_append_sniffer(),
761 frame_unwind_append_sniffer(),
762 and frame_base_set_default().
764 2003-08-25 Chris Demetriou <cgd@broadcom.com>
766 * configure.tgt: Document need for special "mipsisa64" handling.
767 (mipsisa64*-*-linux64): Handle as target linux64.
768 (mipsisa64*-*-*): Handle as target embed64.
770 2003-08-18 Michael Chastain <mec@shout.net>
772 * PROBLEMS: Document pr gdb/1322, the Java anonymous
775 2003-08-24 Mark Kettenis <kettenis@gnu.org>
777 * i387-tdep.h: Update copyright date.
778 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
780 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
781 CFLAGS games to reflect reality.
783 2003-08-24 Andrew Cagney <cagney@redhat.com>
785 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
786 GDB_MULTI_ARCH is always non-zero.
787 * osabi.c (_initialize_gdb_osabi): Ditto.
788 (gdbarch_init_osabi): Ditto.
789 * sparc-tdep.c: Ditto for #if code.
791 2003-08-23 Mark Kettenis <kettenis@gnu.org>
793 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
795 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
797 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
798 x86_64_supply_fxsave.
799 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
800 x86_64_supply_fxsave.
801 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
802 x86_64_supply_fxsave.
804 2003-08-23 Andreas Jaeger <aj@suse.de>
806 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
809 2003-08-23 Mark Kettenis <kettenis@gnu.org>
811 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
812 i387_supply_register.
813 (go32_fetch_registers): Adjust call to i387_supply_fsave.
814 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
816 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
818 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
820 * i386bsd-nat.c (supply_fpregset): Adjust call to
822 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
823 call to i387_supply_fxsave. Call i387_supply_fsave instead of
825 (store_inferior_registers): Remove extraneous whitespace. Call
826 i387_fill_fsave instead of fill_fpregset.
827 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
828 (supply_fpregset): Likewise.
829 * i386v4-nat.c (supply_fpregset): Adjust call to
831 * i386-interix-nat.c (supply_fpregset): Adjust call to
833 * i386-linux-nat.c (supply_fpregset): Adjust call to
835 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
836 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
837 i387supply_fsave and i387_supply_fxsave.
838 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
839 Incorporate code from `i387_supply_register.
840 (i387_supply_register): Remove.
841 (i387_supply_fxsave): Add `regnum' argument.
843 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
845 (i387_supply_register): remove prototype.
848 2003-08-22 Michael Chastain <mec@shout.net>
850 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
851 Add lines for files in gdb/testsuite/gdb.cp/* that are
852 still not 8.3 unique.
854 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
856 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
857 TYPE_VPTR_FIELDNO is valid.
859 2003-08-19 Mark Kettenis <kettenis@gnu.org>
861 * utils.c (set_width_command): Remove prototypes.
862 (set_screen_size): New prototype.
863 (init_page_info): Simplify by fetching the screen size from
864 Readline. Call set_screen_size.
865 (set_screen_size): New function.
866 (set_width): Add missing whitespace in comment.
867 (set_width_command): Call set_screen_size.
868 (set_height_command): New function.
869 (initialize_utils): Fix formatting. Make "set height" command
870 call set_height_command. Remove redundant code that turns off
871 pagination if output isn't a terminal. Remove redundant call to
874 2003-08-22 Mark Kettenis <kettenis@gnu.org>
876 * sparc64-tdep.h (sparc64_regnum): Fix comment.
877 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
878 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
879 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
881 (sparc64_register_info): Give the reister with number
882 SPARC64_STATE_REGNUM a name.
883 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
885 (sparc64_push_dummy_call): Take BIAS into account when checking
887 (sparc_software_single_step): Remove assertions that check whether
888 NPC and NNPC were zero.
889 (sparc_supply_rwindow): Make public. Merge functionality with
890 sparc64_supply_rwindow.
891 (sparc_fill_rwindow): Make public. Merge functionality with
892 sparc64_fill_rwindow.
893 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
894 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
895 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
896 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
897 sparc_supply_rwindow instead of sparc64_supply_rwindow.
899 * reggroups.c: Add whitespace after declarations of local
900 variables in functions.
902 2003-08-21 Michael Chastain <mec@shout.net>
904 * gdbtypes.h: Change array bound type from an int to enum.
906 2003-08-21 Andrew Cagney <cagney@redhat.com>
908 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
909 * config/sparc/tm-sparc.h: Ditto.
910 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
912 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
914 2003-07-13 Mark Kettenis <kettenis@gnu.org>
916 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
917 (register_objfile_data, set_objfile_data, objfile_data): New
919 * objfiles.c (objfile_alloc_data, objfile_free_data): New
921 (allocate_objfile): Call objfile_alloc_data.
922 (free_objfile): Call objfile_free_data.
923 (struct objfile_data): New.
924 (struct objfile_data_registration): New.
925 (struct objfile_data_registry): New.
926 (objfile_data_registry): New variable.
927 (register_objfile_data): New function.
928 (objfile_alloc_data, objfile_free_data): New functions.
929 (set_objfile_data, objfile_data): New functions.
930 * dwarf2-frame.c (dwarf2_frame_data): New variable.
931 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
932 (_initialize_dwarf2_frame): New function and prototype.
934 2003-08-21 Andrew Cagney <cagney@redhat.com>
936 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
937 a specific architecture.
938 * arch-utils.h (set_architecture_from_arch_mach): Delete
940 (target_architecture_hook): Delete declaration.
941 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
942 (default_float_format): Assume GDB_MULTI_ARCH.
943 (default_double_format): Assume GDB_MULTI_ARCH.
944 (set_endian_from_file): Delete function.
945 (arch_ok): Delete function.
946 (set_arch): Delete function.
947 (set_architecture_from_arch_mach): Delete function.
948 (set_architecture_from_file): Delete function.
949 (set_architecture): Assume GDB_MULTI_ARCH.
950 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
952 2003-08-21 Mark Kettenis <kettenis@gnu.org>
954 Rewrite FreeBSD/sparc64 native configuration.
955 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
956 * sparc64fbsd-nat.c: New file.
957 * sparc64fbsd-tdep.c: New file.
958 * sparc64-tdep.c sparc64-tdep.h: New files.
959 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
960 sparc64fbsd-tdep.o): New dependencies.
961 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
962 and sparc64fbsd-tdep.c.
963 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
964 * config/sparc/fbsd.mh: Remove copyright notice.
965 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
967 * config/sparc/fbsd.mt: Remove copyright notice.
968 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
969 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
970 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
971 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
972 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
973 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
974 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
975 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
977 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
978 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
980 2003-08-21 Michael Chastain <mec@shout.net>
982 * symtab.h: Add doco on the space critical structures and
983 some measurements of space usage.
985 2003-08-21 Michael Snyder <msnyder@redhat.com>
987 * tracepoint.c (trace_dump_command): Trace break address
988 is subject to DECR_PC_AFTER_BREAK.
989 (set_traceframe_context): Make "trace_line" an int.
990 Fixes suggested by Mark Newman <mark.newman@lmco.com>
992 2003-08-20 Michael Snyder <msnyder@redhat.com>
994 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
995 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
996 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
998 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
999 functions, replace sh_push_dummy_call.
1000 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1002 2003-08-20 Michael Chastain <mec@shout.net>
1004 * gdbtypes.h (struct main_type): Rearrange to save space.
1006 2003-08-20 Michael Snyder <msnyder@redhat.com>
1008 * trad-frame.c: Comment typo fix.
1010 2003-08-20 Michael Snyder <msnyder@redhat.com>
1011 Kevin Buettner <kevinb@redhat.com>
1013 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1014 (frv_frame_init_saved_regs): Add declaration.
1015 (frame_extra_info): Add new field ``saved_regs''.
1016 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1017 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1018 Update frame related code.
1019 (frv_extract_struct_value_address): Adjust formatting.
1020 * Makefile.in (frv-tdep.o): Update dependencies.
1021 * config/frv/tm-frv.h (target_insert_watchpoint)
1022 (target_remove_watchpoint, target_insert_hw_breakpoint)
1023 (target_remove_hw_breakpoint): Delete these macros.
1024 (remote_insert_watchpoint, remote_remove_watchpoint)
1025 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1028 2003-08-20 Michael Chastain <mec@shout.net>
1030 * defs.h (ENUM_BITFIELD): New macro.
1031 * symtab.h (ENUM_BITFIELD): Use it.
1032 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1034 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1036 * MAINTAINERS (write after approval): Add myself.
1038 2003-08-18 Andrew Cagney <cagney@redhat.com>
1040 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1041 * gdbarch.h, gdbarch.c: Re-generate.
1042 * infcall.c (call_function_by_hand): Adjust the SP by
1043 frame_red_zone_size before allocating any stack space.
1044 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1045 * x86-64-tdep.c (x86_64_frame_align): New function.
1046 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1048 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1049 Remove code adjusting SP so that it skips over the Red Zone.
1051 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1053 * NEWS (New native configurations): Mention FreeBSD/amd64.
1055 2003-08-18 Andrew Cagney <cagney@redhat.com>
1057 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1058 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1060 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1062 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1064 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1066 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1068 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1070 * i386-linux-nat.c: Include "linux-nat.h".
1071 (child_post_startup_inferior): New function.
1073 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1075 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1076 at the start of a frameless function. This probably fixes PR
1079 2003-08-17 Michael Chastain <mec@shout.net>
1081 * symfile.c (find_sym_fns): Remove special case for apollo target.
1083 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1085 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1086 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1087 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1088 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1089 (linux_supports_tracevforkdone): New function.
1090 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1092 (child_follow_fork): Handle vfork.
1093 (linux_handle_extended_wait): Likewise. Also handle exec.
1094 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1095 * NEWS: Mention fork tracing.
1097 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1099 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1101 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1103 * Makefile.in (i386-linux-nat.o): Update dependencies.
1104 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1105 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1106 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1107 * i386-linux-nat.c: Include "linux-nat.h".
1108 (child_post_startup_inferior): New function.
1109 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1110 * infptrace.c (kill_inferior): Wrap in #ifdef.
1111 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1112 attaching to each LWP.
1113 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1114 (init_lin_lwp_ops): Fill in some more operations.
1115 * linux-nat.h (linux_enable_event_reporting)
1116 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1118 * linux-nat.c (linux_enable_event_reporting): New function.
1119 (child_post_attach, linux_child_post_startup_inferior)
1120 (child_post_startup_inferior, child_follow_fork)
1121 (linux_handle_extended_wait, kill_inferior): New functions.
1123 2003-08-16 Andrew Cagney <cagney@redhat.com>
1125 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1126 * gdbarch.h, gdbarch.c: Re-generate.
1128 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1130 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1132 2003-08-16 Andrew Cagney <cagney@redhat.com>
1134 * NEWS: Mention that "set prompt-escape-char" was deleted.
1135 * top.c (get_prompt_1): Delete function.
1136 (gdb_prompt_escape):
1137 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1138 prompt-escape-char" command.
1139 (MAX_PROMPT_SIZE): Delete macro.
1140 (get_prompt): Simplify, do not call get_prompt_1.
1142 2003-08-16 Andrew Cagney <cagney@redhat.com>
1144 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1145 -Werror. -Wformat-nonliteral problems.
1147 2003-08-15 J. Brobecker <brobecker@gnat.com>
1149 Further multiarching work mostly for hppa64-*-hpux11:
1150 * hppa-tdep.h: New file.
1151 * hppa-tdep.c: #include hppa-tdep.c.
1152 (hppa32_num_regs): Renamed from hppa_num_regs.
1153 (hppa64_num_regs): New constant.
1154 (hppa64_call_dummy_breakpoint_offset): New constant.
1155 (hppa32_call_dummy_length): New constant.
1156 (hppa64_call_dummy_length): New constant.
1157 (hppa32_stack_align): Make name 32bit explicit.
1158 (hppa32_register_virtual_type): Likewise.
1159 (hppa32_extract_return_value): Likewise.
1160 (hppa32_use_struct_convention): Likewise.
1161 (hppa32_store_return_value): Likewise.
1162 (hppa64_register_virtual_type): New function.
1163 (hppa64_extract_return_value): New function.
1164 (hppa64_use_struct_convention): New function.
1165 (hppa64_store_return_value): New function.
1166 (hppa_frame_locals_address): Remove declaration, function does
1168 (hppa_register_byte): Add support for PA64 ABI.
1169 (hppa_gdbarch_init): Add support for PA64 ABI.
1170 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1171 Make name 32bit explicit.
1172 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1173 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1174 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1175 (hppa64_hpux_frame_base_before_sigtramp): New function.
1176 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1177 * config/pa/tm-hppa64.h: Remove macros that are no longer
1178 necessary now that the gdbarch vector is properly setup.
1179 Transform some macros into function calls. Some minor cleanup.
1180 * config/pa/tm-hppah.h: Update function calls in macros
1181 following the function renaming in hppa-hpux-tdep.c.
1182 * Makefile.in (hppa_tdep_h): New variable.
1183 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1185 2003-08-14 Michael Snyder <msnyder@redhat.com>
1187 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1189 2003-08-13 J. Brobecker <brobecker@gnat.com>
1191 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1192 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1195 2003-08-13 Michael Snyder <msnyder@redhat.com>
1197 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1198 (frv_saved_pc_after_call): Use deprecated ftype.
1199 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1200 (frv_remote_translate_xfer_address): Remove.
1201 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1203 2003-08-13 J. Brobecker <brobecker@gnat.com>
1205 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1206 initialization after the common gdbarch initialization, not before.
1208 2003-08-13 J. Brobecker <brobecker@gnat.com>
1210 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1211 (ADDR_BITS_REMOVE): Remove, redundant.
1213 2003-08-13 J. Brobecker <brobecker@gnat.com>
1215 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1216 gdbarch method to clear the 2 low bits of text addresses.
1218 2003-08-12 Andrew Cagney <cagney@redhat.com>
1220 * Makefile.in (dsrec.o): Update dependencies.
1221 * dsrec.c: Include "gdb_assert.h".
1222 (make_srec): Use snprintf instead of sprintf, use a literal format
1225 2003-08-12 Andrew Cagney <cagney@redhat.com>
1227 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1228 FRAME_OBSTACK_ZALLOC.
1230 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1232 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1235 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1237 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1238 amd64fbsd_sc_reg_offset): Add extern declarations.
1239 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1242 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1244 * MAINTAINERS (write after approval): Update my mail address.
1246 2003-08-10 Andrew Cagney <cagney@redhat.com>
1248 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1250 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1252 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1253 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1254 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1255 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1256 i386bsd_sc_reg_offset): Add extern declarations.
1257 * i386obsd-nat.c: Include "i386-tdep.h"
1258 (_initialize_i386obsd_nat): Remove extern declarations.
1259 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1261 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1264 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1265 instead of frame_read_register.
1266 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1267 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1269 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1270 instead of frame_unwind_unsigned_register. Use
1271 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1272 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1273 instead of read_register. Use builtin_type_void_data_ptr instead
1274 of builtin_type_void_func_ptr when extracting the address of the
1276 (i386_extract_return_value, i386_store_return_value,
1277 i386_pseudo_register_read, i386_pseudo_register_write): Use
1278 register_size instead REGISTER_RAW_SIZE.
1280 2003-08-10 Andrew Cagney <cagney@redhat.com>
1282 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1283 sprintf. Make "name" constant.
1285 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1287 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1288 instead of frame_read_register.
1289 (i387_print_float_info): Use get_frame_register and
1290 get_frame_register_unsigned instead of frame_register_read.
1292 * i386fbsd-nat.c: Include "i386-tdep.h".
1293 (child_resume): Make `eflags' an ULONGEST. Use
1294 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1295 instead of register_read and register_write.
1297 * i386bsd-nat.c (fetch_inferior_registers,
1298 store_inferior_registers): Don't use && at the end of a line.
1299 (_initialize_i386bsd_nat): Fix typo.
1301 * frame.c (_initialize_frame): Add missing backslash.
1303 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1304 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1305 and supply_register instead of manipulating the register buffer
1308 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1309 * config/i386/nm-i386sol2.h
1310 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1312 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1313 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1314 instructions that GCC likes to mingle into the prologue. Fixes
1315 gdb/1253 and gdb/1255.
1317 2003-08-09 Andrew Cagney <cagney@redhat.com>
1320 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1321 * command.h (add_setshow_uinteger_cmd): Declare.
1322 * frame.c (set_backtrace_cmd): New function.
1323 (show_backtrace_cmd): New function.
1324 * frame.c (_initialize_frame): Replace "set/show
1325 backtrace-below-main" with "set/show backtrace past-main". Add
1326 command "set/show backtrace limit".
1327 (backtrace_past_main): Rename "backtrace_below_main".
1328 (backtrace_limit): New variable.
1329 (get_prev_frame): Update. Check the backtrace_limit.
1331 2003-08-09 Andrew Cagney <cagney@redhat.com>
1333 * defs.h (xstrprintf): Declare.
1334 * utils.c (xstrprintf): New function.
1335 * breakpoint.c (insert_breakpoints): Replace sprintf and
1336 non-literal format strings, with xstrprintf and cleanups.
1337 (delete_breakpoint,breakpoint_re_set): Ditto.
1338 (commands_command, insert_breakpoints): Ditto.
1339 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1340 (break_at_finish_command_1): Ditto.
1342 2003-08-09 Andrew Cagney <cagney@redhat.com>
1344 * MAINTAINERS (language support): List Adam Fedor as Objective C
1347 2003-08-08 J. Brobecker <brobecker@gnat.com>
1349 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1350 are now multiarched.
1352 2003-08-08 J. Brobecker <brobecker@gnat.com>
1354 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1355 longer necessary now that hppa64 is partially multiarch'ed.
1357 2003-08-08 Andrew Cagney <cagney@redhat.com>
1359 * interps.c (interp_set): Check for a NULL "old_interp".
1361 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1363 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1364 (install-only): Support DESTDIR.
1365 (uninstall): Likewise.
1366 (install-gdbtk): Likewise.
1368 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1370 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1371 contains something meaningful at all times.
1373 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1375 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1377 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1379 * MAINTAINERS (write after approval): Added self.
1381 2003-08-07 Andrew Cagney <cagney@redhat.com>
1383 * inferior.h (AT_SYMBOL): Define.
1384 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1385 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1386 * mips-tdep.c (mips_call_dummy_address): Delete function.
1387 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1388 set call_dummy_address.
1390 2003-08-07 Andrew Cagney <cagney@redhat.com>
1392 * language.c (op_error): Delete function.
1393 (binop_type_check): Delete function.
1394 * language.h (type_op_error, range_op_error): Delete macros.
1395 (op_error): Delete declaration.
1397 2003-08-07 Andrew Cagney <cagney@redhat.com>
1399 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1401 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1403 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1404 (x86_64_push_arguments): Skip the red zone.
1406 2003-08-05 Andrew Cagney <cagney@redhat.com>
1408 * reggroups.c (reggroup_next): Check for the final entry.
1410 2003-08-04 Andrew Cagney <cagney@redhat.com>
1412 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1413 * cli/cli-script.c (define_command): Call query directly, instead
1414 of passing it a buffer.
1415 * ocd.c (ocd_error): Pass error a constant format string.
1416 * remote-mips.c (mips_error): Use fputs_filtered.
1418 * solib-svr4.c (_initialize_svr4_solib): Update
1419 register_gdbarch_data call.
1420 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1422 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1423 (register_gdbarch_data): Delete "free" parameter. Update
1425 * gdbarch.h, gdbarch.c: Re-generate.
1426 * reggroups.c (_initialize_reggroup): Update.
1427 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1428 * frame-base.c (_initialize_frame_base): Update.
1429 * frame-unwind.c (_initialize_frame_unwind): Update.
1430 * user-regs.c (_initialize_user_regs): Update.
1431 * remote.c (_initialize_remote): Update.
1432 * regcache.c (_initialize_regcache): Update.
1434 * regcache.c (xfree_regcache_descr): Delete function.
1435 (_initialize_regcache): Update call to register_gdbarch_data.
1436 (init_regcache_descr, init_legacy_regcache_descr): Use
1437 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1439 * remote.c (free_remote_state): Delete function.
1440 (_initialize_remote): Update register_gdbarch_data.
1441 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1442 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1444 2003-08-04 Andrew Cagney <cagney@redhat.com>
1446 * reggroups.c (struct reggroup_el): Define.
1447 (struct reggroups): Delete field "nr_group". Replace array
1448 "group" with a "first" to "last" linked list.
1449 (reggroups_init): Update. Allocate using gdbarch's obstack.
1450 (reggroups_free): Delete function.
1451 (add_group): Update. Add "el" parameter.
1452 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1453 (default_groups): Update.
1454 (reggroup_next): Replace reggroups.
1455 (reggroups_dump): Update.
1456 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1457 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1458 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1460 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1462 * Makefile.in (tui-interp.o): Update dependencies.
1464 2003-08-04 David Carlton <carlton@kealia.com>
1466 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1467 to internal_error call.
1468 * source.c (forward_search_command): Add "%s" format argument.
1469 (reverse_search_command): Ditto.
1470 * top.c (quit_confirm): Ditto.
1471 * cli/cli-setshow.c (do_setshow_command): Ditto.
1472 * cp-valprint.c (cp_print_class_method): Replace
1473 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1474 (cp_print_class_member): Ditto.
1475 * event-top.c (command_line_handler): Ditto.
1476 * linux-proc.c (linux_info_proc_cmd): Ditto.
1477 * p-typeprint.c (pascal_type_print_base): Ditto.
1478 * p-valprint.c (pascal_object_print_class_method): Ditto.
1479 (pascal_object_print_class_member): Ditto.
1480 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1481 * remote.c (remote_cisco_section_offsets): Ditto.
1482 * top.c (command_line_input): Ditto.
1483 * utils.c (vwarning,error_stream,quit): Ditto.
1484 * valprint.c (print_floating,print_binary_chars)
1485 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1487 2003-08-04 Andrew Cagney <cagney@redhat.com>
1489 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1491 2003-08-02 Andrew Cagney <cagney@redhat.com>
1493 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1494 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1497 2003-08-02 Andrew Cagney <cagney@redhat.com>
1499 * Makefile.in: Update all dependencies and definitions.
1501 2003-08-02 Adam Fedor <fedor@gnu.org>
1503 * linespec.c (is_objc_method_format): New function
1504 (decode_line_1, locate_first_half): Use it.
1507 2003-08-01 Andrew Cagney <cagney@redhat.com>
1509 * NEWS: Mention that m32r is multi-arch.
1510 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1511 * configure.tgt: Recognize m32r-*-*.
1512 * config/m32r/tm-m32r.h: Delete file.
1513 * config/m32r/m32r.mt: New file.
1514 * m32r-rom.c (m32r_upload_command): Use hostent only when
1515 gethostname succeeds, in order to avoid a compilation
1517 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1520 2003-08-01 Michael Snyder <msnyder@redhat.com>
1522 * sh-tdep.c (sh_frame_align): New gdbarch method.
1523 (sh_gdbarch_init): Set up frame_align method.
1525 2003-07-31 Michael Snyder <msnyder@redhat.com>
1527 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1528 which is already covered by the new frames infrastructure.
1530 2003-07-31 Andrew Cagney <cagney@redhat.com>
1532 * user-regs.c (struct user_reg): Add "next" link.
1533 (struct user_regs): Replace "user" with "first" and "last" links.
1534 (append_user_reg): Add pre-allocated "reg" parameter.
1535 (builtin_user_regs): Provide initial value for "last".
1536 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1537 (user_regs_init): Allocate memory from the gdbarch obstack.
1538 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1539 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1541 (usernum_to_user_reg): New function.
1542 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1543 (value_of_user_reg): Use usernum_to_user_reg.
1544 (user_regs_free): Delete function.
1545 (_initialize_user_regs): Update register_gdbarch_data call.
1547 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1549 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1551 2003-07-30 Michael Snyder <msnyder@redhat.com>
1553 * value.h (value_being_returned): Add a struct_addr argument.
1554 * infcall.c (call_function_by_hand): Pass struct_addr to
1555 value_being_returned.
1556 * infcmd.c (print_return_value): Pass zero as struct_addr.
1557 * values.c (value_being_returned): If struct_addr is passed,
1558 use it instead of trying to recover it from the inferior.
1560 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1562 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1563 the prologue analyzer won't need to attempt to extract the pc
1564 value from the woefully incomplete dummy frame.
1565 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1566 possible. Disable code which modifies the frame.
1568 2003-07-28 Andrew Cagney <cagney@redhat.com>
1570 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1572 (annotate_breakpoints_table, annotate_record): Ditto.
1573 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1574 (annotate_field_name_end, annotate_field_value): Ditto.
1575 (annotate_field_end, annotate_frame_source_begin): Ditto.
1576 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1577 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1578 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1579 (annotate_frame_address_end, annotate_frame_address): Ditto.
1580 (annotate_frame_args, annotate_frame_end): Ditto.
1581 (annotate_frame_where, annotate_arg_begin): Ditto.
1582 (annotate_arg_name_end, annotate_arg_value): Ditto.
1583 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1584 (annotate_function_call, annotate_signal_name): Ditto.
1585 (annotate_signal_string, annotate_signal_name_end): Ditto.
1586 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1587 (annotate_value_begin, annotate_value_history_value): Ditto.
1588 (annotate_value_history_end, annotate_value_end): Ditto.
1589 (annotate_display_begin, annotate_display_number_end): Ditto.
1590 (annotate_display_format, annotate_display_expression): Ditto.
1591 (annotate_display_expression_end, annotate_display_value): Ditto.
1592 (annotate_display_end, annotate_array_section_begin): Ditto.
1593 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1594 (annotate_elt, annotate_array_section_end): Ditto.
1596 2003-07-28 Andrew Cagney <cagney@redhat.com>
1598 * regcache.c (struct regcache_descr): Update comments on
1600 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1601 sizeof_raw_register_valid_p.
1602 (init_regcache_descr): Set nr_raw_registers and
1603 sizeof_raw_register_valid_p before calling
1604 init_legacy_regcache_descr.
1606 2003-07-28 Andrew Cagney <cagney@redhat.com>
1608 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1611 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1613 * thread.c (info_threads_command): Use get_selected_frame ().
1614 Check that there is at least one non-sentinel frame.
1616 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1618 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1619 (m68hc11_pop_frame): Remove.
1620 (m68hc11_frame_saved_pc): Remove.
1621 (m68hc11_frame_chain): Remove.
1622 (m68hc11_frame_init_saved_regs): Remove.
1623 (m68hc11_init_extra_frame_info): Remove.
1624 (m68hc11_store_struct_return): Remove.
1625 (m68hc11_saved_pc_after_call): Remove.
1627 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1629 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1630 frame unwind information.
1631 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1632 and adapted for frame unwinding.
1633 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1634 (m68hc11_unwind_pc): New function.
1635 (m68hc11_frame_unwind_cache): New function to analyze frames.
1636 (m68hc11_frame_this_id): New function to create new frame struct.
1637 (m68hc11_frame_prev_register): New function to unwind a register from
1639 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1640 (m68hc11_frame_p): New function for the above.
1641 (m68hc11_frame_base_address): New function to return fp of frame.
1642 (m68hc11_frame_args_address): Update for frame.
1643 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1644 (m68hc11_unwind_sp): New function.
1645 (m68hc11_unwind_dummy_id): New function.
1646 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1649 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1651 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1652 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1653 when we are beyond the current pc.
1655 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1657 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1658 from m68hc11_push_arguments.
1659 (m68hc11_push_arguments): Remove.
1660 (m68hc11_push_return_address): Remove.
1661 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1662 handlers; remove deprecated_extra_stack_alignment_needed.
1664 2003-07-27 Andrew Cagney <cagney@redhat.com>
1666 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1667 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1668 REAL_PC and not the pointer.
1669 * hppa-hpux-tdep.c: Include frame.h
1671 2003-07-27 Andrew Cagney <cagney@redhat.com>
1673 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1674 GDB_MULTI_ACH_PARTIAL.
1676 2003-07-27 Andrew Cagney <cagney@redhat.com>
1678 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1679 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1680 operator at start and not end of line.
1681 (decode_prologue): Ditto.
1682 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1683 frame_unwind_register_unsigned instead of
1684 frame_unwind_unsigned_register.
1685 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1687 (m32r_push_dummy_call): Use register_size instead of
1689 (m32r_frame_sniffer): Replace m32r_frame_p.
1690 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1691 * m32r-rom.c (report_transfer_performance): Delete extern
1693 (m32r_load, m32r_upload_command): Use print_transfer_performance
1694 instead of report_transfer_performance.
1695 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1696 / add_show_from_set.
1698 2003-07-26 Andrew Cagney <cagney@redhat.com>
1700 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1701 store_return_value and extract_struct_value_address.
1703 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1706 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1707 NULL, default to the section containing PC.
1709 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1711 * NEWS: Mention "regs" deprecated for m68hc11 too.
1713 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1714 (m68hc11_print_register): New function to print out one register.
1715 (m68hc11_print_registers_info): New function to print registers.
1716 (show_regs): Deprecate and use the above.
1717 (m68hc11_gdbarch_init): Install the print_registers_info.
1719 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1721 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1722 that we have a SIGTRAP before returning non-zero.
1724 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1725 Elena Zannoni <ezannoni@redhat.com>
1727 * linespec.c (decode_line_2): Avoid crash if
1728 find_function_start_sal() returns empty record.
1730 2003-07-23 Andreas Schwab <schwab@suse.de>
1732 * ia64-tdep.c (ia64_print_insn): New function.
1733 (ia64_gdbarch_init): Set print_insn to it.
1734 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1735 deprecated_tm_print_insn_info.
1737 2003-07-22 Michael Snyder <msnyder@redhat.com>
1739 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1740 handle 8-bit returns (long long).
1741 (h8300h_extract_return_value): Ditto.
1742 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1744 2003-07-22 Andrew Cagney <cagney@redhat.com>
1746 * gdbarch.c Include "gdb_obstack.h".
1747 (struct gdbarch): Add an "obstack".
1748 (alloc_gdbarch_data): Allocate the gdbarch data using
1749 GDBARCH_OBSTACK_CALLOC.
1750 (free_gdbarch_data): Delete function.
1751 (gdbarch_obstack_zalloc): New function.
1752 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1753 Assert that the architecture is not initialized.
1754 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1755 vector from the obstack.
1756 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1757 architecture obstack.
1758 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1759 (set_gdbarch_data): Assert that the data is not initialized.
1760 (struct gdbarch_data): Delete member "free".
1761 (register_gdbarch_data): Do not initialize "free".
1762 * gdbarch.h, gdbarch.c: Re-generate.
1764 2003-07-22 Andrew Cagney <cagney@redhat.com>
1766 * configure.in (build_warnings): Add -Wformat-nonliteral.
1767 * configure: Re-generate.
1769 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1771 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1773 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1775 * findvar.c (read_var_value): Remove case for thread local storage
1776 variables. It is now entirely handled by the dwarf2 location
1778 * printcmd.c (address_info): Ditto.
1779 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1781 (struct symbol): Remove objfile field, which was used by
1782 LOC_THREAD_LOCAL_STATIC only.
1783 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1784 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1785 usage of objfile pointer.
1786 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1787 thread local variables.
1788 Add include of objfiles.h.
1789 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1791 * Makefile.in (dwarf2loc.o): Update dependencies.
1793 2003-07-22 Andrew Cagney <cagney@redhat.com>
1795 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1797 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1798 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1799 (struct value): Add opaque declaration.
1800 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1802 2003-07-21 Andrew Cagney <cagney@redhat.com>
1804 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1805 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1807 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1809 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1810 regcache_cooked_read_unsigned instead of read_register.
1811 (m68hc11_saved_pc_after_call): Likewise.
1812 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1813 instead of write_register.
1814 (m68hc11_register_type): New function.
1815 (m68hc11_register_virtual_type): Remove.
1816 (m68hc11_store_return_value): Convert to use the regcache.
1817 (m68hc11_extract_struct_value_address): Likewise.
1818 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1819 m68hc11_register_type; undeprecate store_return_value and
1820 extract_struct_value_address.
1822 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1824 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1825 and translate to use regcache.
1826 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1828 2003-07-18 Andrew Cagney <cagney@redhat.com>
1830 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1831 * gdbarch.h, gdbarch.c: Re-generate.
1832 * i386-tdep.c (i386_gdbarch_init): Do not set
1833 DWARF2_BUILD_FRAME_INFO.
1834 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1836 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1837 DWARF2_BUILD_FRAME_INFO.
1839 2003-07-18 Andrew Cagney <cagney@redhat.com>
1841 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1842 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1844 2003-07-18 Andrew Cagney <cagney@redhat.com>
1846 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1847 frame_unwind_address_in_block, instead of frame_pc_unwind.
1848 (dwarf2_frame_cache): Ditto.
1850 2003-07-18 Andrew Cagney <cagney@redhat.com>
1852 * user-regs.h (struct gdbarch): Declare opaque.
1853 * ui-out.h (struct ui_file): Declare opaque.
1854 * dwarf2-frame.h (struct frame_info): Declare opaque.
1856 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1858 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1860 (procfs_meminfo): Change strerror to safe_strerror.
1861 (procfs_can_run): Remove K&R badness.
1863 2003-07-17 Michael Snyder <msnyder@redhat.com>
1865 * remote-sim.c: Comment typo fix.
1867 2003-07-17 Andrew Cagney <cagney@redhat.com>
1869 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1871 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1872 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1873 GDB_MULTI_ARCH_PARTIAL.
1875 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1877 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1878 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1879 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1881 2003-07-16 Theodore A. Roth <troth@openavr.org>
1883 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1885 (avr_frame_unwind_cache): Don't unwind FP for main.
1887 Save the computed prev_sp.
1888 (avr_saved_regs_unwinder): Remove function.
1889 (avr_frame_prev_register): Use PC unwind logic from
1890 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1892 2003-07-16 Andrew Cagney <cagney@redhat.com>
1894 * frame-base.h (frame_base_p_ftype): Delete definition.
1895 (frame_base_append_predicate): Delete declaration.
1896 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1897 (frame_unwind_append_predicate): Delete declaration.
1898 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1899 (append_predicate): Delete parameter "p".
1900 (frame_unwind_append_predicate): Delete function.
1901 (frame_unwind_append_sniffer): Update call to append_predicate.
1902 (frame_unwind_free): Delete function.
1903 (_initialize_frame_unwind): Pass NULL as "free" to
1904 register_gdbarch_data.
1905 (frame_unwind_init): Append the dummy_frame_sniffer.
1906 (frame_unwind_find_by_frame): Simplify.
1907 * frame-base.c (struct frame_base_table): Delete field "p".
1908 (append_predicate): Delete parameter "p".
1909 (frame_base_append_predicate): Delete function.
1910 (frame_base_append_sniffer): Update call to append_predicate.
1911 (frame_base_free): Delete function.
1912 (frame_base_find_by_frame): Simplify.
1913 (_initialize_frame_base): Pass NULL as "free" to
1914 register_gdbarch_data.
1915 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1916 (x86_64_sigtramp_frame_sniffer): Replace
1917 "x86_64_sigtramp_frame_p".
1918 (x86_64_init_abi): Set the frame unwind sniffers.
1919 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1920 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1921 (m68k_gdbarch_init): Set the frame unwind sniffers.
1922 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1923 "i386_sigtramp_frame_p".
1924 (i386_frame_sniffer): Replace "i386_frame_p".
1925 (i386_gdbarch_init): Set the frame unwind sniffers.
1926 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1927 (avr_gdbarch_init): Set the frame unwind sniffers.
1928 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1929 "alpha_sigtramp_frame_p"
1930 (alpha_heuristic_frame_sniffer): Replace
1931 "alpha_heuristic_frame_p".
1932 (alpha_gdbarch_init): Set the frame unwind sniffers.
1933 (alpha_dwarf2_init_abi): Ditto.
1934 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1935 "alpha_debug_frame_p".
1936 (alpha_mdebug_frame_base_sniffer): Replace
1937 "alpha_mdebug_frame_base_p".
1938 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1939 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1940 (d10v_gdbarch_init): Set the frame unwind sniffer.
1941 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1942 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1943 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1944 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1945 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1946 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1948 2003-07-16 Michael Snyder <msnyder@redhat.com>
1950 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1951 should go thru sh_dsp_register_sim_regno, else the dsp regs
1952 will not get the right values.
1954 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1956 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1957 deprecated_store_floating by call to store_typed_floating.
1958 (sh_sh4_register_convert_to_raw): Substitute call to
1959 deprecated_extract_floating by call to extract_typed_floating.
1961 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1963 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1965 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1967 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1968 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1969 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1971 (do_pseudo_register): Remove.
1972 (sh_push_dummy_code): New function.
1973 (sh64_store_struct_return): Rename from sh_store_struct_return.
1974 Only called for sh64 now.
1975 (sh_extract_struct_value_address): Regcache'ify.
1976 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1977 and accomodate new tasks.
1978 (sh64_push_return_address): Rename from sh_push_return_address.
1979 Only called for sh64 now.
1980 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1982 (sh3e_sh4_extract_return_value): Regcache'ify.
1983 (sh_default_store_return_value): Ditto.
1984 (sh3e_sh4_store_return_value): Ditto.
1985 (sh_default_register_byte): Remove.
1986 (sh_sh4_register_byte): Remove.
1987 (sh_default_register_raw_size): Remove.
1988 (sh_sh4_register_raw_size): Remove.
1989 (sh_register_virtual_size): Remove.
1990 (sh_sh3e_register_virtual_type): Remove.
1991 (sh_sh3e_register_type): New function.
1992 (sh_sh4_register_virtual_type): Remove.
1993 (sh_sh4_register_type): New function.
1994 (sh_default_register_virtual_type): Remove.
1995 (sh_default_register_type): New function.
1996 (do_fv_register_info): Add parameters to accomodate call from
1997 sh_print_registers_info.
1998 (do_dr_register_info): Ditto.
1999 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2000 Add parameters to accomodate call from sh_print_registers_info.
2001 (sh_do_fp_register): Ditto.
2002 (sh64_do_pseudo_register): Call do_dr_register_info,
2003 do_fv_register_info and sh_do_fp_register with default parameters.
2004 (sh_do_register): Add parameters to accomodate call from
2005 sh_print_registers_info.
2006 (sh_print_register): Ditto.
2007 (sh_print_registers_info): Rename from sh_do_registers_info.
2008 Add parameters to be used as gdbarch_print_registers_info
2009 implementation. Accomodate removed do_pseudo_register function
2011 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2012 function pointer. Call sh_print_register with default parameters.
2013 (sh64_do_registers_info): Call sh_print_registers_info instead of
2014 sh_do_registers_info.
2015 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2016 detection of deprecated vs. non-deprecated functionality.
2017 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2018 function pointer assignments by direct function calls.
2020 2003-07-15 Andrew Cagney <cagney@redhat.com>
2022 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2023 (frame_register_unwind, create_new_frame): Ditto.
2024 (legacy_get_prev_frame, get_frame_type): Ditto.
2025 (get_frame_base_address): Use frame_base_find_by_frame.
2026 (get_frame_locals_address): Use frame_base_find_by_frame.
2027 (get_frame_args_address): Use frame_base_find_by_frame.
2028 * frame-base.h (frame_base_sniffer_ftype): Declare.
2029 (frame_base_append_sniffer): Declare.
2030 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2031 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2032 (frame_base_append_sniffer): New function.
2033 (frame_base_append_predicate): Add a NULL sniffer.
2034 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2035 (struct frame_base_table): Add "sniffer".
2036 (frame_base_free): Free the "sniffer" table.
2037 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2038 (frame_unwind_append_sniffer): Declare.
2039 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2040 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2041 (struct frame_unwind_table): Add "sniffer", delete "middle".
2042 (append_predicate): Add "sniffer" parameter, append the sniffer.
2043 (frame_unwind_init): Update append_predicate call.
2044 (frame_unwind_append_sniffer): New function.
2045 (frame_unwind_append_predicate): Update append_predicate call.
2046 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2048 2003-07-15 Andrew Cagney <cagney@redhat.com>
2050 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2051 before code inhibiting repeated unwind attempts. Add to
2052 commentary on that test's problems.
2053 * blockframe.c (inside_main_func): Look for "main" in the minimal
2055 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2058 2003-07-15 Andrew Cagney <cagney@redhat.com>
2060 * complaints.c (struct explanation): Define.
2061 (struct complaints): Change type of "explanation" to "struct
2063 (symfile_explanations): Convert to a "struct explanation" table.
2064 (vcomplaint): Update.
2066 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2068 * x86-64-linux-nat.c (regmap): Removed.
2069 (supply_gregset, fill_gregset): Call
2070 x86_64_linux_(fill,supply)_gregset functions.
2071 * x86-64-linux-tdep.c (USER_*): New defines.
2072 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2073 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2075 (fetch_core_registers): Ditto.
2076 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2077 * x86-64-linux-tdep.h: New file.
2078 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2080 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2082 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2084 * x86-64-tdep.c (x86_64_store_return_value): Use
2085 regcache_cooked_write_part instead of regcache_cooked_write.
2087 * configure.host: Add x86_64-*-freebsd*.
2088 * configure.tgt: Add x86_64-*-freebsd*.
2089 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2090 * amd64fbsd-nat.c: New file.
2091 * amd64fbsd-tdep.c: New file.
2092 * config/i386/nm-fbsd64.h: New file.
2093 * config/i386/fbsd64.mh: New file.
2094 * config/i386/fbsd64.mt: New file.
2096 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2098 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2099 `sc_regs_offset' and `sc_fpregs_offset'.
2100 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2101 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2102 (alpha_sigtramp_register_address): Rewrite to use new members of
2103 `struct gdbarch_tdep'.
2104 (alpha_gdbarch_init): Initialize new members of struct
2106 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2107 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2108 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2109 (alphafbsd_pc_in_sigtramp): Implement.
2110 (alphafbsd_sigtramp_offset): New function.
2111 (alphafbsd_sigcontext_addr): New function.
2112 (alphafbsd_init_abi): Initialize signal trampoline related members
2113 of `struct gdbarch_tdep'.
2114 (_initialize_alphafbsd_tdep): Add prototype.
2116 2003-07-11 Theodore A. Roth <troth@openavr.org>
2118 * Makefile.in (install-only): Quote sed expression when generating
2121 2003-07-11 Richard Henderson <rth@redhat.com>
2123 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2124 * dwarf2-frame.c: Include complaints.h.
2125 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2126 variable initialization; return NULL on error.
2127 (decode_frame_entry): New.
2129 2003-07-11 Andrew Cagney <cagney@redhat.com>
2131 * frame.h (frame_address_in_block): Delete declaration.
2132 * blockframe.c (frame_address_in_block): Delete function.
2133 (get_frame_block): Use get_frame_address_in_block.
2134 (block_innermost_frame): Ditto.
2135 * stack.c (print_frame, backtrace_command_1): Ditto.
2137 * frame.h (get_frame_address_in_block): Declare.
2138 (frame_unwind_address_in_block): Declare.
2139 * frame.c (frame_unwind_address_in_block): New function.
2140 (get_frame_address_in_block): New function.
2142 2003-07-10 Andrew Cagney <cagney@redhat.com>
2144 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2145 pre-default. Note: re-generate has no effect.
2147 2003-07-10 Andrew Cagney <cagney@redhat.com>
2149 * gdbarch.sh: When a variable, but not a function, compare against
2150 0. Fix problem in previous patch.
2151 * gdbarch.c: Re-generate.
2153 2003-07-10 Andrew Cagney <cagney@redhat.com>
2155 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2156 functions against NULL, not 0.
2157 * gdbarch.c: Re-generate.
2159 2003-07-10 Fred Fish <fnf@ninemoons.com>
2161 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2162 null string instead of a null pointer.
2163 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2165 2003-07-09 Michael Snyder <msnyder@redhat.com>
2167 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2169 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2171 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2172 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2173 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2174 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2175 * x86-64-tdep.c: ... from here.
2177 2003-07-09 Andreas Schwab <schwab@suse.de>
2179 * m68k-tdep.h (enum struct_return): Define.
2180 (struct gdbarch_tdep): Add struct_return.
2181 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2182 bytes are padded to the right, not to the left. Pass struct value
2183 address in register %a1, not on stack.
2184 (m68k_use_struct_convention): New function.
2185 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2186 struct_return in tdep to pcc_struct_return.
2187 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2190 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2192 * somread.c (som_symfile_offsets): Fix compilation error.
2194 2003-07-09 Andrew Cagney <cagney@redhat.com>
2196 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2197 Add comments about the checks.
2199 2003-07-08 Andrew Cagney <cagney@redhat.com>
2201 * Makefile.in: Make dependency section headers consistent.
2202 (config_h): Move to $BUILD headers section.
2203 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2204 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2205 (ada-exp.tab.c): Move to YACC/LEX section.
2206 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2207 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2209 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2211 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2212 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2213 of strerror with safe_strerror, use ISO C function definitions,
2214 and replace instances of sprintf with snprintf.
2216 2003-07-07 Andrew Cagney <cagney@redhat.com>
2218 * frame.c (get_prev_frame): Enable check for identical frames.
2219 Update comments. Update error messages.
2221 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2223 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2225 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2227 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2228 sort_symtab_syms, no longer necessary.
2230 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2232 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2234 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2236 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2237 (mips_register_byte): Likewise.
2239 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2241 * Makefile.in (sparc_tdep_h): New.
2242 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2243 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2244 * sparc-linux-nat.c: Include "sparc-tdep.h".
2245 * sparc-nat.c: Likewise.
2246 * sparc-tdep.c: Likewise.
2247 * sparc64nbsd-nat.c: Likewise.
2248 * sparcnbsd-nat.c: Likewise.
2249 * sparcnbsd-tdep.c: Likewise.
2250 * sparc-tdep.h: New file.
2251 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2252 and sparc_npc_regnum.
2254 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2256 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2257 (mips_linux_cannot_store_register): List supported instead of
2258 unsupported registers.
2260 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2262 * disasm.c (dump_insns): Separate instructions from addresses.
2264 2003-07-07 Andreas Schwab <schwab@suse.de>
2266 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2268 * m68k-tdep.c (NUM_FREGS): Delete.
2269 (SIG_PC_FP_OFFSET): Delete.
2270 (TARGET_M68K): Delete.
2271 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2272 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2273 P_MOVEL_SP, P_MOVEML_SP): Define.
2274 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2276 (m68k_register_raw_size): Delete.
2277 (m68k_register_virtual_size): Delete.
2278 (m68k_register_type): Renamed from m68k_register_virtual_type and
2279 add gdbarch argument.
2280 (m68k_store_struct_return): Delete.
2281 (m68k_deprecated_extract_return_value): Delete.
2282 (m68k_deprecated_extract_struct_value_address): Delete.
2283 (m68k_frame_chain): Delete.
2284 (m68k_frame_saved_pc): Delete.
2285 (m68k_fix_call_dummy): Delete.
2286 (m68k_push_dummy_frame): Delete.
2287 (m68k_pop_frame): Delete.
2288 (m68k_extract_return_value): New function.
2289 (m68k_store_return_value): Rewrite using regcache.
2290 (m68k_extract_struct_value_address): Rewrite using regcache.
2291 (m68k_push_dummy_call): New function.
2292 (struct m68k_frame_cache): Define.
2293 (m68k_alloc_frame_cache): New function.
2294 (m68k_analyze_frame_setup): New function.
2295 (m68k_analyze_register_saves): New function.
2296 (m68k_analyze_prologue): New function.
2297 (m68k_skip_prologue): Rewrite using above functions.
2298 (m68k_unwind_pc): New function.
2299 (m68k_frame_cache): New function.
2300 (m68k_frame_this_id): New function.
2301 (m68k_frame_prev_register): New function.
2302 (m68k_frame_unwind): New variable.
2303 (m68k_frame_p): New function.
2304 (m68k_sigtramp_frame_cache): New function.
2305 (m68k_sigtramp_frame_this_id): New function.
2306 (m68k_sigtramp_frame_prev_register): New function.
2307 (m68k_sigtramp_frame_unwind): New variable.
2308 (m68k_sigtramp_frame_p): New function.
2309 (m68k_frame_base_address): New function.
2310 (m68k_frame_base): New function.
2311 (m68k_unwind_dummy_id): New function.
2312 (fill_gregset): Use regcache_collect.
2313 (fill_fpregset): Likewise.
2314 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2316 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2317 deprecated_init_frame_pc, deprecated_store_struct_return,
2318 deprecated_extract_return_value, deprecated_store_return_value,
2319 deprecated_frame_chain, deprecated_frame_saved_pc,
2320 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2321 deprecated_register_virtual_size,
2322 deprecated_max_register_raw_size,
2323 deprecated_max_register_virtual_size,
2324 deprecated_register_virtual_type, deprecated_register_size,
2325 deprecated_register_byte, deprecated_register_bytes,
2326 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2327 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2328 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2329 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2330 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2331 deprecated_push_dummy_frame, deprecated_pop_frame,
2332 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2333 only if SYSCALL_TRAP is defined. Set extract_return_value,
2334 store_return_value, extract_struct_value_address, register_type,
2335 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2337 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2338 M68K_MAX_REGISTER_SIZE): Define.
2339 (struct m68k_sigtramp_info): Define.
2340 (struct gdbarch_tdep): Add get_sigtramp_info.
2341 * m68klinux-nat.c (fetch_register): Use register_size instead of
2342 REGISTER_RAW_SIZE. Don't put assignment in if.
2343 (store_register): Likewise.
2344 (fetch_inferior_registers): Likewise.
2345 (store_inferior_registers): Likewise.
2346 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2347 (m68k_linux_frame_saved_pc): Delete.
2348 (m68k_linux_sigcontext_reg_offset,
2349 m68k_linux_ucontext_reg_offset): Define.
2350 (m68k_linux_get_sigtramp_info): New function.
2351 (m68k_linux_extract_return_value): Rewrite using regcache.
2352 (m68k_linux_store_return_value): Likewise.
2353 (m68k_linux_extract_struct_value_address): Likewise.
2354 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2355 Don't set deprecated_frame_saved_pc,
2356 deprecated_extract_return_value, deprecated_store_return_value,
2357 deprecated_extract_struct_value_address. Set
2358 extract_return_value, store_return_value,
2359 extract_struct_value_address.
2361 2003-07-07 Andrew Cagney <cagney@redhat.com>
2363 * expprint.c: Include "user-regs.h" instead of "frame.h".
2364 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2365 frame_map_regnum_to_name.
2366 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2367 (frame_map_name_to_regnum): Simplify, call
2368 user_reg_map_name_to_regnum.
2369 (frame_map_regnum_to_name): Simplify, call
2370 user_reg_map_regnum_to_name.
2371 (frame_register_unwind): Update.
2372 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2373 (_initialize_frame_reg): Call user_reg_add_builtin.
2374 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2375 (value_of_register): Use value_of_user_reg.
2376 * eval.c (evaluate_subexp_standard): Update.
2377 * parse.c (write_dollar_variable): Update.
2378 * d10v-tdep.c (d10v_print_registers_info): Update.
2379 * infcmd.c (registers_info): Update.
2380 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2381 (builtin_regs_h): Delete macro.
2382 (user_regs_h): Define.
2383 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2384 (builtin-regs.o): Delete target.
2385 (user-regs.o): Specify dependencies.
2386 (expprint.o): Update dependencies.
2387 (findvar.o): Update dependencies.
2388 (frame.o): Update dependencies.
2389 (std-regs.o): Update dependencies.
2391 2003-07-06 Christopher Faylor <cgf@redhat.com>
2393 * win32-nat.c (solib_symbols_add): Use one variable for all section
2394 address stuff. Pass variable rather than address of variable to
2395 safe_symbol_file_add.
2397 2003-07-06 Andreas Schwab <schwab@suse.de>
2399 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2401 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2403 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2405 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2407 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2409 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2411 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2412 * config/i386/nto.mh: New file.
2413 * config/i386/nm-nto.h: New file.
2414 * configure.host: Add i[3456]86-*-nto*.
2416 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2418 * remote-vx.c (vx_add_symbols): Fix compilation error.
2420 2003-07-03 Andrew Cagney <cagney@redhat.com>
2422 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2423 * gdbarch.h, gdbarch.c: Re-generate.
2424 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2425 (legacy_register_name): Declare.
2426 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2427 (REGISTER_NAME): Define.
2428 * sparc-tdep.c (legacy_register_name): New function.
2429 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2430 (REGISTER_NAME): Define.
2431 (hppa64_register_name): Declare.
2432 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2433 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2434 (hppa64_register_name): New function.
2435 (hppa_register_name): New function.
2436 * arch-utils.c (legacy_register_name): Delete.
2437 * arch-utils.h (legacy_register_name): Delete.
2439 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2441 * cli/cli-interp.c (cli_interpreter_resume): Update the
2442 cli_uiout's stream to gdb_stdout.
2444 2003-07-03 Andrew Cagney <cagney@redhat.com>
2446 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2448 * gdbarch.h, gdbarch.c: Re-generate.
2449 * regcache.c (init_regcache_descr): Use legacy code when either
2450 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2452 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2454 * NEWS: Move "set logging" entry into GDB 6.0 section.
2456 2003-07-02 Jim Blandy <jimb@redhat.com>
2458 * s390-tdep.c (struct frame_extra_info): new member:
2459 'stack_bought_valid'.
2460 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2461 initialize fextra_info->stack_bought.
2462 (s390_frameless_function_invocation): Don't trust the value of
2463 fextra_info_ptr->stack_bought unless
2464 fextra_info->stack_bought_valid is set.
2466 New S390 prologue analyzer.
2467 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2468 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2469 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2470 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2471 compute_x_addr, s390_on_stack, s390_store,
2472 s390_get_signal_frame_info): New functions.
2473 (S390_NUM_SPILL_SLOTS): New macro.
2474 (s390_get_frame_info): Rewritten.
2475 (is_arg_reg): Deleted.
2477 Break out the decoding of S/390 instructions into separate
2478 functions, to make it more legible, and easier to check
2480 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2481 is_rx, is_rxe): New functions.
2482 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2483 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2484 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2485 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2486 enums for opcode values. (Is this an improvement?)
2488 2003-07-02 Andrew Cagney <cagney@redhat.com>
2490 * i386-tdep.c: Revert change committed as part of trad-frame code
2493 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2495 * breakpoint.c (insert_catchpoint): Make static.
2497 2003-07-02 Andreas Schwab <schwab@suse.de>
2499 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2500 former ia64_push_arguments and ia64_push_return_address, and use
2501 regcache functions instead of read/write_register.
2502 (ia64_gdbarch_init): Set push_dummy_call instead of
2503 deprecated_push_arguments and deprecated_push_return_address.
2505 2003-07-01 Andreas Jaeger <aj@suse.de>
2507 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2509 Set %rax only to number of SSE registers used.
2511 2003-07-01 Andrew Cagney <cagney@redhat.com>
2513 * trad-frame.h: Update comments, a -1 .addr is reserved.
2514 (trad_frame_value_p, trad_frame_addr_p): Declare.
2515 (trad_frame_reg_p): Declare.
2516 (trad_frame_set_value): Rename trad_frame_register_value.
2517 (trad_frame_set_unknown): Declare.
2518 * trad-frame.c (trad_frame_realreg_p): New function.
2519 (trad_frame_addr_p, trad_frame_value_p): New function.
2520 (trad_frame_set_unknown): New function.
2521 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2522 (trad_frame_prev_register): Use trad_frame_realreg_p,
2523 trad_frame_addr_p and trad_frame_value_p.
2524 (trad_frame_set_value): Rename trad_frame_register_value.
2525 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2526 and trad_frame_set_value.
2528 2003-06-30 Jim Blandy <jimb@redhat.com>
2530 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2531 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2532 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2533 for 16 registers, and then 32 more bytes.
2534 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2536 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2537 Move up in the file, since it's now used by is_simple_arg.
2538 (is_simple_arg): Don't assume registers are four bytes long.
2539 Exclude all double arguments. Extended floats are not simple
2541 (is_power_of_two): New function.
2542 (pass_by_copy_ref): Call is_power_of_two, and check that the
2543 length fits in a register, rather than listing all the acceptable
2544 sizes. Extended floats are not passed by reference.
2545 (s390_push_arguments): Don't assume registers are four bytes long.
2546 Reserve an argument register to point to the buffer for structures
2547 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2548 S390_STACK_FRAME_OVERHEAD.
2550 2003-06-30 Andreas Schwab <schwab@suse.de>
2552 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2553 format error message.
2555 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2557 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2559 2003-06-30 David Carlton <carlton@kealia.com>
2561 Band-aid for PR c++/1245.
2562 * Makefile.in (cp-support.o): Depend on complaints_h.
2563 * cp-support.c: Include complaints.h. Add declaration for
2564 find_last_component.
2565 (cp_find_first_component): Separate code into
2566 cp_find_first_component_aux.
2567 (cp_find_first_component_aux): Call demangled_name_complaint.
2568 (demangled_name_complaint): New.
2570 2003-06-30 Andrew Cagney <cagney@redhat.com>
2572 * remote.c (remote_write_bytes): Explicitly compute and then use
2573 the payload size. Update comments to reflect. Fixes problem of
2574 GDB not sending small packets as found by Fred Fish.
2576 2003-06-30 Andrew Cagney <cagney@redhat.com>
2578 * remote.c (remote_async_wait): Fix -Wformat problem.
2580 2003-06-29 Andrew Cagney <cagney@redhat.com>
2582 * remote.c (remote_wait): Call error, and not warning, when the
2584 (remote_async_wait): Ditto.
2586 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2588 * sparc-tdep.c (sparc_y_regnum): Make external again.
2590 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2592 * cli/cli-logging.c (pop_output_files): Add void to function
2595 2003-06-29 Andrew Cagney <cagney@redhat.com>
2597 * frame.c (frame_register_unwind): Use unsigned char when dumping
2598 the buffer contents.
2600 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2602 * cli/cli-logging.c: New file.
2603 * cli-out.c (struct ui_out_data): Add original_stream.
2604 (cli_redirect): New function.
2605 (cli_ui_out_impl): Add cli_redirect.
2606 (cli_out_new): Initialize original_stream.
2607 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2608 (uo_redirect, ui_out_redirect): New.
2609 * ui-out.h (struct ui_out_impl): Add redirect member.
2610 (redirect_ftype): New.
2611 (ui_out_redirect): Add prototype.
2612 * Makefile.in: Add rules for cli-logging.c.
2613 * NEWS: Mention "set logging".
2615 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2617 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2619 2003-06-27 Andrew Cagney <cagney@redhat.com>
2621 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2622 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2623 * avr-tdep.c (avr_call_dummy_address): Delete function.
2624 (avr_gdbarch_init): Do not set call_dummy_address.
2626 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2628 * symfile.c (syms_from_objfile): Move variables to inner block.
2629 Move the checks for the non-mainline case a bit earlier to avoid
2630 doing some useless computations.
2632 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2634 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2636 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2638 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2641 2003-06-26 Michael Chastain <mec@shout.net>
2643 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2644 gdb/testsuite/gdb.c++/pr-1210.exp.
2646 2003-06-26 Andrew Cagney <cagney@redhat.com>
2648 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2649 altivec_expression.h and altivec_registers.h.
2651 2003-06-26 Andrew Cagney <cagney@redhat.com>
2653 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2654 info->mach when MIPS16. Patch suggested by Fred Fish.
2656 2003-06-26 Andrew Cagney <cagney@redhat.com>
2658 * utils.c (internal_vproblem): Print the problem to a reason
2659 buffer and then pass to query. Make the msg variable more local.
2661 2003-06-26 Andrew Cagney <cagney@redhat.com>
2663 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2664 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2665 * gdbarch.h, gdbarch.c: Re-generate.
2666 * frame-base.c (default_frame_args_address): Update. Use
2667 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2669 (default_frame_locals_address): Ditto for
2670 DEPRECATED_FRAME_LOCALS_ADDRESS.
2671 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2672 (vax_frame_num_args): Update.
2673 (vax_gdbarch_init): Update.
2674 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2675 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2676 * mcore-tdep.c (mcore_gdbarch_init): Update.
2677 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2678 * ia64-tdep.c (ia64_gdbarch_init): Update.
2679 * symtab.h (address_class): Update comments.
2680 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2681 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2682 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2683 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2684 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2685 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2686 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2687 * alpha-mdebug-tdep.c: Update.
2688 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2690 2003-06-26 Andreas Jaeger <aj@suse.de>
2692 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2693 of SSE registers so that varargs functions work. Rework handling
2694 of passing arguments on the stack.
2695 (x86_64_store_return_value): Return double and float values in SSE
2698 2003-06-24 Michael Chastain <mec@shout.net>
2700 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2701 the "constructor breakpoints ignored" bug.
2703 2003-06-25 David Carlton <carlton@kealia.com>
2705 * MAINTAINERS: Update e-mail address.
2707 2003-06-24 Jim Blandy <jimb@redhat.com>
2709 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2711 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2713 (ppc_linux_init_abi): Register it as the
2714 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2716 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2717 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2720 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2721 (ppc64_standard_linkage_target): Use it.
2723 2003-06-23 Andrew Cagney <cagney@redhat.com>
2725 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2726 for 0 "int0" and 4 "int32" sized registers.
2727 * gdbtypes.c (builtin_type_int0): Define.
2728 (build_gdbtypes): Initialize builtin_type_int0.
2729 * gdbtypes.h (builtin_type_int0): Declare.
2731 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2733 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2734 as characters are unsigned.
2736 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2739 * dwarfread.c (struct_type): Skip static fields without crashing.
2741 2003-06-22 Andrew Cagney <cagney@redhat.com>
2743 GDB 6.0 branch created.
2745 * PROBLEMS: Update. Empty.
2748 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2750 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2751 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2753 2003-06-22 Andrew Cagney <cagney@redhat.com>
2755 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2756 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2759 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2761 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2764 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2766 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2767 argument of val_print.
2768 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2769 to the address argument of baseclass_offset or target_read_memory.
2770 Do add it to the argument of cp_print_value_fields.
2772 2003-06-21 Andrew Cagney <cagney@redhat.com>
2774 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2775 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2776 instead of 0..NUM_REGS.
2777 (mips_register_reggroup_p): New function.
2778 (mips_pseudo_register_write): New function.
2779 (mips_pseudo_register_read): New function.
2780 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2781 based on the register's type.
2782 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2784 (mips_get_saved_register): Simplify. Assert that REGNO is a
2786 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2787 (mips_register_type): Replace mips_register_virtual_type. Map
2788 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2790 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2791 that the register is cooked / virtual.
2792 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2793 Only get the extra info when needed.
2794 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2795 (mips32_heuristic_proc_desc): Fetch the cooked register.
2796 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2797 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2798 (mips_print_register): Use gdbarch_register_type, instead of
2799 REGISTER_VIRTUAL_TYPE.
2800 (print_gp_register_row): Use gdbarch_register_type, instead of
2801 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2802 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2803 Print the pseudo / cooked registers.
2804 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2805 Print the pseudo / cooked registers.
2806 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2807 REG_NUM is pseudo / cooked.
2808 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2809 (mips_n32n64_xfer_return_value): Ditto.
2810 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2811 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2812 (mips_register_sim_regno): New function.
2813 (mips_gdbarch_init): Set deprecated_register_byte,
2814 register_group_p, pseudo_register_write, pseudo_register_read,
2815 register_sim_regno, and num_pseudo_regs. Set register_type,
2816 instead of register_virtual_type.
2817 * Makefile.in (mips-tdep.o): Update dependencies.
2818 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2819 REGISTER_VIRTUAL_TYPE.
2820 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2821 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2822 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2823 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2824 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2826 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2828 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2829 * cli/cli-cmds.c: Include "gdb_vfork.h".
2830 (shell_escape): Use vfork.
2832 2003-06-21 Andrew Cagney <cagney@redhat.com>
2834 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2835 32 bit floating-point register saves.
2837 * frame.h (deprecated_unwind_get_saved_register): Delete.
2838 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2839 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2840 and deprecated_get_next_frame_hack instead of
2841 deprecated_unwind_get_saved_register.
2843 * mips-tdep.c (mips_dump_tdep): Do not print
2844 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2846 * frame.c (get_frame_register): New function.
2847 (frame_unwind_register_signed): New function.
2848 (get_frame_register_signed): New function.
2849 (frame_unwind_register_unsigned): New function.
2850 (get_frame_register_unsigned): New function.
2851 * frame.h: Add comments on naming schema.
2852 (get_frame_register, frame_unwind_register_signed): Declare.
2853 (get_frame_register_signed, get_frame_register_signed): Declare.
2854 (frame_unwind_register_unsigned): Declare.
2855 (get_frame_register_unsigned): Declare.
2857 2003-06-20 Theodore A. Roth <troth@openavr.org>
2859 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2861 2003-06-20 Theodore A. Roth <troth@openavr.org>
2863 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2864 (avr_read_sp): Ditto.
2866 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2868 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2869 * config/arm/nm-linux.h: Likewise.
2870 * config/arm/tm-linux.h: Likewise.
2871 * config/ia64/nm-linux.h: Likewise.
2872 * config/ia64/tm-ia64.h: Likewise.
2873 * config/s390/tm-linux.h: Likewise.
2874 * config/s390/tm-s390.h: Likewise.
2875 * s390-nat.c: Likewise.
2876 * s390-tdep.c: Likewise.
2878 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2879 * config/ia64/linux.mt: Likewise.
2880 * config/m68k/linux.mh: Likewise.
2881 * config/mips/linux.mt: Likewise.
2882 * config/powerpc/linux.mh: Likewise.
2883 * config/sh/linux.mt: Likewise.
2885 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2887 * solib.c (solib_open): Change tests for whether to search
2888 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2891 2003-06-19 Theodore A. Roth <troth@openavr.org>
2893 * avr-tdep.c (avr_frame_address): Delete function.
2894 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2895 set_gdbarch_frame_args_address.
2897 2003-06-19 Andrew Cagney <cagney@redhat.com>
2899 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2900 (REGISTER_CONVERT_FROM_TYPE): Delete.
2901 (mips_register_convert_to_type): Delete declaration.
2902 (mips_register_convert_from_type): Delete declaration.
2903 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2906 2003-06-19 Michael Snyder <msnyder@redhat.com>
2908 * linux-nat.h: New file.
2909 * linux-nat.c: Include linux-nat.h.
2910 * lin-lwp.c: Include linux-nat.h.
2911 Move struct lwp_info def to linux-nat.h.
2912 * linux-proc.c: Include linux-nat.h.
2913 (linux_make_note_section): Iterate over lwps instead of threads.
2914 (linux_do_thread_registers): Use lwp instead of merged pid.
2915 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2916 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2917 Add dependency on linux_nat_h.
2919 2003-06-19 Theodore A. Roth <troth@openavr.org>
2921 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2923 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2925 * varobj.c (get_type, get_target_type): Use check_typedef.
2927 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2929 * breakpoint.c (insert_catchpoint): Call internal_error.
2931 2003-06-19 Theodore A. Roth <troth@openavr.org>
2933 * avr-tdep.c (avr_push_dummy_code): Delete function.
2934 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2936 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2938 * arch-utils.c (default_prepare_to_proceed): Remove.
2939 (generic_prepare_to_proceed): Remove.
2940 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2941 (generic_prepare_to_proceed): Remove prototype.
2942 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2943 * gdbarch.c: Regenerate.
2944 * gdbarch.h: Regenerate.
2945 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2946 * hppah-nat.c (hppa_switched_threads): Remove.
2947 * infrun.c (prepare_to_proceed): New static function, copied from
2948 generic_prepare_to_proceed. Remove select_it argument.
2949 (proceed): Call prepare_to_proceed.
2950 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2952 (ptrace_wait): Don't set the removed variables.
2953 (hppa_switched_threads): Remove.
2954 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2955 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2956 (lin_lwp_prepare_to_proceed): Remove prototype.
2957 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2958 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2960 2003-06-18 Theodore A. Roth <troth@openavr.org>
2962 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2964 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2965 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2966 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2967 (AVR_PROLOGUE_*): Enumerate prologue types.
2968 (struct frame_extra_info): Remove.
2969 (struct avr_unwind_cache): Define.
2970 (avr_write_sp): Delete function.
2971 (avr_read_fp): Ditto.
2972 (avr_init_extra_frame_info): Ditto.
2973 (avr_pop_frame): Ditto.
2974 (avr_frame_saved_pc): Ditto.
2975 (avr_saved_pc_after_call): Ditto.
2976 (avr_push_return_address): Ditto.
2977 (avr_frame_chain): Ditto.
2978 (avr_store_struct_return): Ditto.
2979 (avr_push_arguments): Ditto.
2980 (avr_scan_prologue): Update comments. Changed to set up the info for
2981 cache unwinding. Now returns end of prologue PC.
2982 (avr_skip_prologue): Better handling of functions lacking a prologue
2983 by using avr_scan_prologue.
2984 (avr_scan_arg_moves): New function.
2985 (avr_saved_regs_unwinder): Ditto.
2986 (avr_frame_unwind_cache): Ditto.
2987 (avr_unwind_pc): Ditto.
2988 (avr_frame_this_id): Ditto.
2989 (avr_frame_prev_register): Ditto.
2990 (avr_frame_p): Ditto.
2991 (avr_frame_base_address ): Ditto.
2992 (avr_unwind_dummy_id): Ditto.
2993 (avr_push_dummy_code): Ditto.
2994 (push_stack_item): Ditto.
2995 (pop_stack_item): Ditto.
2996 (avr_push_dummy_call): Ditto.
2997 (struct stack_item): Define.
2998 (avr_frame_unwind): Declare structure.
2999 (avr_frame_base): Ditto.
3000 (avr_gdbarch_init): Remove calls to
3001 set_gdbarch_deprecated_init_frame_pc,
3002 set_gdbarch_deprecated_target_read_fp,
3003 set_gdbarch_deprecated_dummy_write_sp,
3004 set_gdbarch_deprecated_fp_regnum,
3005 set_gdbarch_deprecated_push_arguments,
3006 set_gdbarch_deprecated_push_return_address,
3007 set_gdbarch_deprecated_pop_frame,
3008 set_gdbarch_deprecated_store_struct_return,
3009 set_gdbarch_deprecated_frame_init_saved_regs,
3010 set_gdbarch_deprecated_init_extra_frame_info,
3011 set_gdbarch_deprecated_frame_chain,
3012 set_gdbarch_deprecated_frame_saved_pc,
3013 set_gdbarch_deprecated_saved_pc_after_call.
3014 Add calls to set_gdbarch_push_dummy_call,
3015 set_gdbarch_push_dummy_code,
3016 frame_unwind_append_predicate,
3017 frame_base_set_default,
3018 set_gdbarch_unwind_dummy_id,
3019 set_gdbarch_unwind_pc.
3022 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3024 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3025 registers for H8/300S.
3026 (h8300_print_registers_info): Ditto.
3027 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3029 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3031 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3032 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3033 (lin_lwp_wait): Likewise. Update comments.
3034 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3035 (pull_pid_from_list, linux_record_stopped_pid): New.
3037 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3039 * ada-lang.c (scan_discrim_bound): Name first argument.
3040 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3041 declared by ALL_BLOCK_SYMBOLS.
3043 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3045 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3046 ("regcache.h"): Include it.
3047 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3049 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3051 * NEWS: Mention gdbserver detach change and "disconnect" command.
3052 * infcmd.c (disconnect_command): New function.
3053 (_initialize_infcmd): Add ``disconnect'' command.
3054 * remote.c (remote_async_detach): Delete.
3055 (remote_detach): Merge remote_async_detach.
3056 (remote_disconnect): New.
3057 (init_remote_ops): Set to_disconnect.
3058 (init_remote_cisco_ops): Likewise.
3059 (init_remote_async_ops): Likewise. Use remote_detach.
3060 * target.c (cleanup_target): Default to_disconnect.
3061 (update_current_target): Inherit to_disconnect.
3062 (target_disconnect, debug_to_disconnect): New functions.
3063 (setup_target_debug): Set to_disconnect.
3064 * target.h (struct target_ops): Add to_disconnect.
3065 (target_disconnect): Add prototype.
3067 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3069 * breakpoint.c (insert_catchpoint): New function.
3070 (insert_breakpoints): Use catch_exceptions to call
3071 insert_catchpoint. Disable catchpoints if they fail to insert.
3073 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3075 * symfile.c (reread_symbols): Clear sym_private.
3077 2003-06-17 Andrew Cagney <cagney@redhat.com>
3079 * trad-frame.h (struct frame_info): Add opaque declaration.
3080 * remote-fileio.h (struct cmd_list_element): Add opaque
3082 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3085 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3087 * remote.c (remote_prepare_to_store): Replace call to
3088 deprecated_read_register_bytes with multiple regcache_raw_read
3091 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3093 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3094 (nto_find_and_open_solib): Likewise.
3095 (nto_init_solib_absolute_prefix): Likewise.
3096 (_initialize_nto_tdep): Fix indentation.
3098 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3100 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3102 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3104 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3106 2003-06-17 Jim Blandy <jimb@redhat.com>
3108 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3110 2003-06-16 Theodore A. Roth <troth@openavr.org>
3112 * avr-tdep.c (avr_extract_return_value): New function.
3113 (avr_gdbarch_init): Set extract_return_value method.
3115 2003-06-16 Andrew Cagney <cagney@redhat.com>
3117 * frame.h (deprecated_get_next_frame_hack): Declare.
3118 * frame.c (legacy_saved_regs_prev_register): Only require
3119 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3120 there are always saved regs.
3121 (deprecated_generic_get_saved_register): Do not require
3122 DEPRECATED_FRAME_INIT_SAVED_REGS.
3123 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3124 use frame ID unwind instead.
3125 (deprecated_get_next_frame_hack): New function.
3127 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3129 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3130 (h8300_push_dummy_call): ...this function. Some minor optimization.
3131 (h8300_push_return_address): Remove.
3132 (h8300_gdbarch_init): Remove calls to
3133 set_gdbarch_deprecated_dummy_write_sp,
3134 set_gdbarch_deprecated_push_arguments and
3135 set_gdbarch_deprecated_push_return_address.
3136 Add call to set_gdbarch_push_dummy_call.
3138 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3140 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3141 (E_PSEUDO_EXR_REGNUM): Ditto.
3142 (h8300_is_argument_spill): Check for instructions moving argument
3143 registers into safe registers.
3144 (h8300_skip_prologue): Check for stm instruction to push registers
3145 used for register variables onto stack.
3146 (gdb_print_insn_h8300): Remove.
3147 (h8300_examine_prologue): Add a comment.
3148 (h8300_register_name): Take pseudo registers into account.
3149 (h8300s_register_name): Ditto.
3150 (h8300sx_register_name): Ditto.
3151 (h8300_print_register): Ditto.
3152 (h8300_print_registers_info): Define "nice" printing order.
3153 (h8300_saved_pc_after_call): Take pseudo registers into account.
3154 (h8300_register_type): Ditto. Return type used for remote connection
3155 when requesting real CCR or EXR register, return actual type when
3156 requesting pseudo CCR or EXR.
3157 (h8300_pseudo_register_read): New function.
3158 (h8300_pseudo_register_write): Ditto.
3159 (h8300_dbg_reg_to_regnum): Ditto.
3160 (h8300s_dbg_reg_to_regnum): Ditto.
3161 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3162 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3163 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3164 set_gdbarch_print_insn architecture dependent.
3165 Call set_gdbarch_pseudo_register_read and
3166 set_gdbarch_pseudo_register_write.
3167 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3169 2003-06-16 Andrew Cagney <cagney@redhat.com>
3171 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3172 * gdbarch.h, gdbarch.c: Re-generate.
3173 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3174 * s390-tdep.c (s390_gdbarch_init): Update.
3175 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3176 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3177 * mips-tdep.c (mips_gdbarch_init): Update.
3178 * mcore-tdep.c (mcore_gdbarch_init): Update.
3179 * cris-tdep.c (cris_gdbarch_init): Update.
3180 * infcall.c (call_function_by_hand): Update.
3181 * ia64-tdep.c (ia64_push_arguments): Update comment.
3182 * frame.c (legacy_get_prev_frame): Do not assume
3183 SAVE_DUMMY_FRAME_TOS_P.
3184 * dummy-frame.c (find_dummy_frame): Update comment.
3186 2003-06-16 Andrew Cagney <cagney@redhat.com>
3188 * regcache.c (do_cooked_read): Do not use register_valid_p.
3190 2003-06-15 Theodore A. Roth <troth@openavr.org>
3192 * avr-tdep.c (avr_register_type): Remove a blank line.
3193 (avr_scan_prologue): Correct some comments.
3195 2003-06-15 Theodore A. Roth <troth@openavr.org>
3197 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3199 Properly scan prologues generated by gcc with the -mcall-prologues
3201 Add code to scan -mcall-prologues for mega devices.
3203 2003-06-15 Theodore A. Roth <troth@openavr.org>
3205 * avr-tdep.c (avr_register_byte): Delete function.
3206 (avr_register_raw_size): Delete function.
3207 (avr_register_virtual_size): Delete function.
3208 (avr_register_virtual_type): Delete function.
3209 (avr_register_type): New function.
3210 (avr_address_to_pointer): Remove unused code.
3211 (avr_read_fp): Need to read FP as two separate bytes due to change to
3212 avr_register_type() usage.
3213 (avr_gdbarch_init): Don't set deprecated_register_size.
3214 Don't set deprecated_register_bytes.
3215 Don't set deprecated_register_byte.
3216 Don't set deprecated_register_raw_size.
3217 Don't set deprecated_max_register_raw_size.
3218 Don't set deprecated_register_virtual_size.
3219 Don't set deprecated_max_register_virtual_size.
3220 Don't set deprecated_register_virtual_type.
3221 Set register_type method.
3223 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3225 * Makefile.in (linux-nat.o): Add rule.
3226 * linux-nat.c: New file.
3227 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3228 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3229 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3230 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3231 * config/arm/linux.mh (NATDEPFILES): Likewise.
3232 * config/i386/linux.mh (NATDEPFILES): Likewise.
3233 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3234 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3235 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3236 * config/mips/linux.mh (NATDEPFILES): Likewise.
3237 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3238 * config/s390/s390.mh (NATDEPFILES): Likewise.
3239 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3241 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3243 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3244 replace out-of-date comment.
3246 2003-06-15 Andrew Cagney <cagney@redhat.com>
3248 * rdi-share/host.h (Fail): Change to a varargs function.
3249 * remote-rdi.c (Fail): Update.
3251 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3253 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3254 (i386_convert_register_p, i386_register_to_value,
3255 i386_register_from_value): Handle types longer than 8 bytes.
3257 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3259 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3260 Move floating-point code to new function in i387-tdep.c.
3261 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3262 New functions containing code moved here from i386-tdep.c.
3263 * i387-tdep.h: Add opaque declaration for `struct type'.
3264 (i387_register_to_value, i387_value_to_register): New prototypes.
3265 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3266 (x86_64_init_abi): Set convert_register_p, register_to_value and
3267 value_to_register here.
3269 2003-06-14 Andrew Cagney <cagney@redhat.com>
3271 * mips-tdep.c (mips_register_to_value): Make static.
3272 (mips_value_to_register): Make static.
3273 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3274 * ia64-tdep.c (ia64_register_raw_size): Make static.
3275 (ia64_register_virtual_size): Make static.
3276 (ia64_register_byte): Make static.
3277 * i387-tdep.c: Include "i387-tdep.h".
3278 (print_387_control_word): Delete function.
3279 (print_387_status_word): Delete function.
3280 (print_387_status_bits): Delete function.
3281 (print_387_control_bits): Delete function.
3282 * Makefile.in (i387-tdep.o): Update dependencies.
3283 * rdi-share/host.h (Fail): Declare.
3284 * remote-rdi.c (Fail): Update to match declaration.
3286 2003-06-14 Andrew Cagney <cagney@redhat.com>
3288 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3289 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3290 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3291 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3292 * README: Delete reference to remote-array.
3293 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3294 (remote-array.o): Delete target.
3295 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3296 * remote-array.c: Delete file.
3298 2003-06-14 Andrew Cagney <cagney@redhat.com>
3299 Mark Kettenis <kettenis@gnu.org>
3301 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3302 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3303 parameter with "frame".
3304 * gdbarch.h, gdbarch.c: Re-generate.
3305 * frame.h (put_frame_register): Declare.
3306 * frame.c (put_frame_register): New function.
3307 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3308 (legacy_register_to_value): Rewrite, use "frame" to get the
3310 (legacy_value_to_register): Rewrite, use "frame" to find the
3311 register's location before storing.
3312 * arch-utils.h (legacy_convert_register_p): Update.
3313 (legacy_register_to_value, legacy_value_to_register): Update.
3314 * findvar.c (value_from_register): Rewrite, eliminate use of
3315 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3316 "frame" to REGISTER_TO_VALUE.
3317 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3318 lval_reg_frame_relative + lval_register branch of the switch. Do
3319 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3320 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3321 I386_EDI_REGNUM): New defines.
3322 (i386_next_regnum, i386_convert_register_p,
3323 i386_register_to_value, i386_value_to_register): New functions.
3324 (i386_register_convertible, i386_register_convert_to_virtual,
3325 i386_convert_to_raw): Remove functions.
3326 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3327 value_to_register instead of register_convertible,
3328 register_convert_to_virtual and register_convert_to_raw.
3329 * mips-tdep.c (mips_convert_register_p): New function.
3330 (mips_value_to_register): Replace mips_register_convert_from_type.
3331 (mips_register_to_value): Replace mips_register_convert_to_type.
3332 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3334 * alpha-tdep.c (alpha_convert_register_p): Update.
3335 (alpha_value_to_register): Update, store the register.
3336 (alpha_register_to_value): Update, fetch the register.
3338 2003-06-14 Theodore A. Roth <troth@openavr.org>
3340 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3341 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3342 Don't set deprecated_call_dummy_words.
3343 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3344 Don't set remote_translate_xfer_address.
3345 (avr_io_reg_read_command): Remove commented out debug printf.
3348 2003-06-14 Theodore A. Roth <troth@openavr.org>
3350 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3351 causes gdb to seg fault.
3353 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3355 * sparc-nat.c (fetch_inferior_registers): Correct
3356 a reference to "registers".
3358 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3360 * Makefile.in (exc_request_U_h): Define
3361 (exc_request_S_h): Likewise.
3362 (msg_reply_S_h): Likewise.
3363 (msg_U_h): Likewise.
3364 (notify_S_h): Likewise.
3365 (process_reply_S_h): Likewise.
3366 (gnu-nat.o): Depend on gdb_obstack_h
3367 * gnu-nat.c: Include "gdb_obstack.h".
3369 2003-06-13 Andrew Cagney <cagney@redhat.com>
3371 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3372 * gdbarch.h, gdbarch.c: Re-generate.
3374 2003-06-13 Andrew Cagney <cagney@redhat.com>
3376 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3377 when deprecated REGISTER macros can be deleted.
3378 * gdbarch.h, gdbarch.c: Re-generate.
3380 2003-06-13 Jim Blandy <jimb@redhat.com>
3382 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3383 Linux entry point symbols for _dl_debug_state, too.
3385 2003-06-13 Andrew Cagney <cagney@redhat.com>
3387 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3388 available, do not use the FP register, and always save the TOS.
3389 * dummy-frame.c (dummy_frame_this_id): Do not assert
3390 SAVE_DUMMY_FRAME_TOS.
3391 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3392 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3393 (i386_push_dummy_call): Add 8 to the returned SP.
3394 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3395 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3396 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3397 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3398 (x86_64_push_dummy_call): Return "sp + 16".
3399 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3400 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3401 save_dummy_frame_tos.
3403 2003-06-13 Jim Blandy <jimb@redhat.com>
3405 * frv-tdep.c (frv_use_struct_convention): Delete static
3406 declaration for function deleted in my change of 2003-06-12.
3408 2003-06-13 Theodore A. Roth <troth@openavr.org>
3410 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3411 (avr_pointer_to_address): Shift code addrs left 1 bit.
3412 (avr_convert_from_func_ptr_addr): Delete function since operation is
3413 better handled by avr_address_to_pointer and avr_pointer_to_address.
3414 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3416 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3418 From Kelley Cook <kelleycook@wideopenwest.com>:
3419 * configure.host: Accept i[34567]86 variants.
3420 * configure.tgt: Likewise.
3421 * nlm/configure.in: Likewise.
3422 * nlm/configure: Regenerated.
3424 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3426 * arm-tdep.c (solib-svr4.h): Dont' include it.
3427 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3428 * arm-linux-tdep.c: ... here. Make static.
3429 (arm_linux_init_abi): Register it.
3430 (solib-svr4.h): Include it.
3431 * Makefile.in: Update dependencies.
3432 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3433 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3435 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3437 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3438 indicate registers used for return values.
3439 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3440 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3442 (h8300_init_extra_frame_info): Ditto.
3443 (h8300_frame_locals_address): Removed.
3444 (h8300_frame_args_address): Removed.
3445 (h8300_extract_return_value): Use new regcache structure. Only care
3447 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3448 (h8300_store_return_value): Use new regcache structure. Only care
3450 (h8300h_store_return_value): Same function for 32 bit CPUs.
3451 (h8300_store_struct_return): Removed.
3452 (h8300_extract_struct_value_address): Use new regcache structure.
3453 (h8300h_extract_struct_value_address): Removed.
3454 (h8300_push_dummy_code): New function.
3455 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3456 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3457 set_gdbarch_store_return_value architecture dependent.
3458 Call set_gdbarch_push_dummy_code and
3459 set_gdbarch_extract_struct_value_address.
3460 Remove calls to set_gdbarch_frame_args_address,
3461 set_gdbarch_frame_locals_address,
3462 set_gdbarch_deprecated_store_struct_return,
3463 set_gdbarch_deprecated_extract_return_value,
3464 set_gdbarch_deprecated_extract_struct_value_address,
3465 set_gdbarch_deprecated_call_dummy_words and
3466 set_gdbarch_deprecated_sizeof_call_dummy_words.
3468 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3470 * h8300-tdep.c (h8300_register_byte): Remove.
3471 (h8300h_register_byte): Remove.
3472 (h8300_register_virtual_type): Remove. Substitute by...
3473 (h8300_register_type): New function.
3474 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3475 (h8300h_extract_struct_value_address): Ditto.
3476 (h8300_gdbarch_init): Drop calls to
3477 set_gdbarch_deprecated_register_byte and
3478 set_gdbarch_deprecated_register_virtual_type.
3479 Add call to set_gdbarch_register_type.
3481 2003-06-13 Andrew Cagney <cagney@redhat.com>
3483 * gdbarch.sh: Update comments on registers.
3484 (deprecated_register_byte): Rename register_byte.
3485 (deprecated_register_raw_size): Rename register_raw_size.
3486 (deprecated_register_virtual_size): Rename register_virtual_size.
3487 (deprecated_register_virtual_type): Rename register_virtual_type.
3488 * gdbarch.h, gdbarch.c: Re-generate.
3489 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3490 * vax-tdep.c (vax_gdbarch_init): Update.
3491 * v850-tdep.c (v850_gdbarch_init): Update.
3492 * sparc-tdep.c (sparc_gdbarch_init): Update.
3493 * sh-tdep.c (sh_gdbarch_init): Update.
3494 * s390-tdep.c (s390_gdbarch_init): Update.
3495 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3496 * ns32k-tdep.c: Update.
3497 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3498 * mips-tdep.c (mips_gdbarch_init): Update.
3499 * mcore-tdep.c (mcore_gdbarch_init): Update.
3500 * m68k-tdep.c (m68k_gdbarch_init): Update.
3501 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3502 * ia64-tdep.c (ia64_gdbarch_init): Update.
3503 * hppa-tdep.c (hppa_gdbarch_init): Update.
3504 * h8300-tdep.c (h8300_gdbarch_init): Update.
3505 * frv-tdep.c (frv_gdbarch_init): Update.
3506 * cris-tdep.c (cris_gdbarch_init): Update.
3507 * avr-tdep.c (avr_gdbarch_init): Update.
3508 * alpha-tdep.c (alpha_gdbarch_init): Update.
3509 * arm-tdep.c (arm_gdbarch_init): Update.
3511 2003-06-13 Andrew Cagney <cagney@redhat.com>
3513 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3514 mips_o32_use_struct_convention with always_use_struct_convention.
3516 2003-06-12 David Carlton <carlton@kealia.com>
3518 * cp-namespace.c (cp_set_block_scope): Comment out
3519 processing_has_namespace_info branch.
3521 2003-06-12 Jim Blandy <jimb@redhat.com>
3523 Recognize and skip 64-bit PowerPC Linux linkage functions.
3524 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3525 insn_pattern, insns_match_pattern, d_field, ds_field): New
3526 functions, macros, and types for working with PPC instructions.
3527 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3528 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3529 ppc64_skip_trampoline_code): New functions, variables, and macros
3530 for recognizing and skipping linkage functions.
3531 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3532 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3534 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3535 register offsets for both the 32- and 64-bit interfaces.
3537 Actually finish the job started by my change of 2003-05-29.
3538 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3539 other #definition of this.
3540 (ppc_linux_skip_trampoline_code): Remove declaration.
3541 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3543 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3546 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3547 'long' on ppc64-*-linux*.
3549 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3550 isn't #defined, assume the register doesn't exist: act as if
3551 tdep->ppc_mq_regnum were -1.
3553 * configure.host, configure.tgt: Add entries for
3554 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3556 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3559 * arch-utils.c (always_use_struct_convention): New function.
3560 * arch-utils.h (always_use_struct_convention): New prototype.
3561 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3562 (alpha_gdbarch_init): Register always_use_struct_convention,
3563 instead of alpha_use_struct_convention.
3564 * cris-tdep.c (cris_use_struct_convention): Delete.
3565 (cris_gdbarch_init): Register always_use_struct_convention,
3566 instead of cris_use_struct_convention.
3567 * frv-tdep.c (frv_use_struct_convention): Delete.
3568 (frv_gdbarch_init): Register always_use_struct_convention,
3569 instead of frv_use_struct_convention.
3570 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3571 (h8300_gdbarch_init): Register always_use_struct_convention,
3572 instead of h8300_use_struct_convention.
3573 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3574 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3575 instead of mips_o32_use_struct_convention.
3577 2003-06-12 Andrew Cagney <cagney@redhat.com>
3579 * wince.c: Include "mips-tdep.h".
3580 * mips-tdep.h (mips_next_pc): Declare.
3581 * mcore-tdep.c: Make more local functions static.
3582 * Makefile.in (wince.o): Update dependencies.
3584 2003-06-12 David Carlton <carlton@kealia.com>
3586 * symtab.c (lookup_symbol_aux_minsyms): Replace
3587 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3588 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3589 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3590 SYMBOL_NATURAL_NAME.
3592 2003-06-12 Andreas Schwab <schwab@suse.de>
3594 * Makefile.in (tuiDisassem.o): Update dependencies.
3596 2003-06-12 David Carlton <carlton@bactrian.org>
3598 * symtab.h: Delete declaration of make_symbol_overload_list.
3599 Add declaration of lookup_partial_symbol.
3600 * symtab.c (remove_params): Move to cp-support.c.
3601 (overload_list_add_symbol, make_symbol_overload_list)
3602 (sym_return_val_size, sym_return_val_index): Ditto.
3603 (lookup_partial_symbol): Make extern.
3604 * cp-support.h: Add declaration of make_symbol_overload_list.
3605 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3606 symtab.h, and block.h.
3607 (remove_params): Move here from symtab.c.
3608 (overload_list_add_symbol, make_symbol_overload_list)
3609 (sym_return_val_size, sym_return_val_index): Ditto.
3610 * valops.c: Include cp-support.h.
3611 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3612 frame_h, and block_h.
3613 (valops.o): Depend on cp_support_h.
3615 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3617 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3618 substitute by NUM_REGS throughout.
3619 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3620 (h8300s_register_name): New function for H8S registers.
3621 (h8300sx_register_name): Ditto for H8SX registers.
3622 (h8300_print_register): Revise register printing, avoid depending
3624 (h8300_register_byte): Only care for H8/300 registers.
3625 (h8300h_register_byte): New function for any other architecture.
3626 (h8300_register_raw_size): Remove.
3627 (h8300_register_virtual_type): Revise to return actually useful
3629 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3630 (h8300h_extract_struct_value_address): New function for any other
3632 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3633 set_gdbarch_register_name, set_gdbarch_register_byte,
3634 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3635 Remove calls to set_gdbarch_deprecated_register_size,
3636 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3637 set_gdbarch_deprecated_max_register_raw_size,
3638 set_gdbarch_register_virtual_size and
3639 set_gdbarch_deprecated_max_register_virtual_size entirely.
3640 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3641 set_gdbarch_long_double_bit.
3643 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3645 * doublest.c (convert_doublest_to_floatformat): When dealing
3646 with the implied integer bit, only alter mant_bits if we are
3647 processing a full 32 bits of mantissa.
3649 2003-06-11 David Carlton <carlton@bactrian.org>
3651 * dictionary.h: New.
3652 * dictionary.c: New.
3653 * block.h: Add opaque declaration for struct dictionary.
3654 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3656 (BLOCK_DICT): New macro.
3657 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3658 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3660 (ALL_BLOCK_SYMBOLS): Update definition.
3661 * Makefile.in (SFILES): Add dictionary.c.
3662 (dictionary_h): New.
3663 (COMMON_OBS): Add dictionary.o.
3664 (dictionary.o): New.
3665 (ada-lang.o): Depend on dictionary_h.
3666 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3667 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3668 (mi-cmd-stack.o): Ditto.
3669 (gdbtk-cmds.o): Update dependencies.
3670 (gdbtk-stack.o): Ditto.
3671 * ada-lang.c: Include dictionary.h.
3672 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3673 (fill_in_ada_prototype, debug_print_block): Ditto.
3674 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3675 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3677 * mdebugread.c: Include dictionary.h.
3678 (struct parse_stack): Delete 'maxsyms' member.
3679 (parse_symbol): Update calls to new_block. Delete calls to
3680 shrink_block. Use dictionary methods.
3681 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3682 Update calls to new_symtab. Don't maintain maxsyms data.
3683 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3684 (add_symbol): Just call dict_add_symbol.
3685 (new_symtab): Delete 'maxsyms' argument.
3686 (new_symtab): Update calls to new_block.
3687 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3688 (shrink_block): Delete function.
3689 (fixup_sigtramp): Update call to new_block. Add symbol via
3691 * jv-lang.c: Include dictionary.h.
3692 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3693 appropriately. Set class_symtab->free_func. Make sure the
3694 blockvector is big enough to hold two blocks.
3695 (add_class_symtab_symbol): Use dictionary methods.
3696 (free_class_block): New function.
3697 (type_from_class): Replace explicit iteration by
3699 * symtab.h (struct symtab): Replace 'free_ptr' method by
3701 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3703 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3705 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3706 Include dictionary.h.
3707 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3708 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3710 * objfiles.c: Include dictionary.h.
3711 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3712 * buildsym.c: Include dictionary.h.
3713 (finish_block): Use dictionary methods.
3714 (end_symtab): Set free_func to NULL, not free_ptr.
3715 * tracepoint.c: Include dictionary.h.
3716 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3717 (scope_info): Ditto.
3718 * stack.c: Include dictionary.h.
3719 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3720 (print_block_frame_labels, print_frame_arg_vars)
3721 (print_frame_args): Ditto.
3722 * symmisc.c (free_symtab_block): Use dictionary methods.
3723 (dump_symtab): Ditto.
3724 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3725 Include dictionary.h.
3726 * symfile.h: Delete declarations of sort_block_syms,
3728 * symfile.c (sort_block_syms): Delete.
3729 (sort_symtab_syms): Delete.
3730 * symtab.c: Include dictionary.h.
3731 (lookup_block_symbol): Use dictionary iterators.
3732 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3733 (search_symbols, make_symbol_completion_list): Ditto.
3734 (make_symbol_overload_list): Ditto.
3735 * valops.c (value_of_local): Use dict_empty.
3736 Include dictionary.h.
3738 2003-06-11 J. Brobecker <brobecker@gnat.com>
3740 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3742 2003-06-11 David Carlton <carlton@bactrian.org>
3744 * block.h (BLOCK_SHOULD_SORT): Delete.
3745 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3747 * ada-lang.c (ada_add_block_symbols): Ditto.
3748 * symfile.c (sort_block_syms): Delete.
3749 (sort_symtab_syms): Ditto.
3750 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3752 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3753 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3754 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3755 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3756 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3757 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3758 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3760 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3762 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3765 2003-06-11 Andrew Cagney <cagney@redhat.com>
3767 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3768 REGISTER_CONVERTIBLE.
3769 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3770 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3771 * gdbarch.h, gdbarch.c: Re-generate.
3772 * arch-utils.h (deprecated_register_convertible_not): Rename
3773 generic_register_convertible_not.
3774 * arch-utils.c (deprecated_register_convertible_not): Rename
3775 generic_register_convertible.
3776 (legacy_convert_register_p, legacy_register_to_value): Update.
3777 * sh-tdep.c (sh64_push_arguments): Update.
3778 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3779 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3780 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3781 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3782 * arch-utils.c (legacy_value_to_register): Update.
3783 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3784 (rs6000_register_convert_to_raw): Make parameter "from" const.
3785 * mips-tdep.c (mips_gdbarch_init): Update.
3786 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3787 * infcmd.c (default_print_registers_info): Update.
3788 * ia64-tdep.c (ia64_gdbarch_init): Update.
3789 (ia64_register_convert_to_raw): Make parameter "from" const.
3790 * i386-tdep.c (i386_gdbarch_init): Update.
3791 (i386_register_convert_to_raw): Update.
3793 2003-06-11 Andrew Cagney <cagney@redhat.com>
3795 * remote-fileio.c: Include "remote-fileio.h".
3796 * Makefile.in (remote-fileio.o): Update dependencies.
3797 (remote_fileio_h): Fix typo.
3799 2003-06-11 Andrew Cagney <cagney@redhat.com>
3801 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3802 (xstormy16_save_dummy_frame_tos): Make static.
3803 (_initialize_xstormy16_tdep): Add declaration.
3804 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3805 * v850-tdep.c: Make local functions static.
3806 (_initialize_v850_tdep): Add declaration.
3807 * sparc-tdep.c: Make local functions static.
3808 (_initialize_sparc_tdep): Add declaration.
3809 * sh-tdep.c: Make local functions static.
3810 (_initialize_sh_tdep): Add declaration.
3811 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3812 * s390-tdep.c: Make local functions static.
3813 (_initialize_s390_tdep): Add declaration.
3814 * dbxread.c (find_stab_function_addr): Make static.
3815 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3816 * ocd.c (_initialize_remote_ocd): Add declaration.
3817 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3818 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3819 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3820 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3821 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3822 * remote-array.c (_initialize_array): Add declaration.
3823 (_initialize_remote_monitors): Add declaration.
3824 * remote-mips.c: Make local functions static.
3825 (_initialize_remote_mips): Add declaration.
3826 * mcore-tdep.c: Make all local functions static.
3827 (_initialize_mcore_tdep): Add declaration.
3828 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3829 * abug-rom.c (_initialize_abug_rom): Add declaration.
3830 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3831 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3832 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3833 * remote-est.c (_initialize_est): Add declaration.
3834 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3835 (m68hc11_call_dummy_address): Make static.
3836 * ia64-tdep.c: Make local functions static.
3837 (_initialize_ia64_tdep): Add declaration.
3838 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3839 * monitor.c (monitor_wait_filter): Make static.
3840 (_initialize_remote_monitors): Add declaration.
3841 * remote-hms.c (_initialize_remote_hms): Add declaration.
3842 * remote-e7000.c (fetch_regs_from_dump): Make static.
3843 (expect_n): Make static.
3844 (_initialize_remote_e7000): Add declaration.
3845 * ser-e7kpc.c: Always include "defs.h".
3846 (_initialize_ser_e7000pc): Add declaration.
3847 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3848 * cris-tdep.c: Make all but one function static.
3849 (_initialize_cris_tdep): Add declaration.
3850 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3851 * solib.c (update_solib_list): Make static.
3852 (_initialize_solib): Add declaration.
3853 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3854 (_initialize_avr_tdep): Add declaration.
3855 * remote-rdi.c (voiddummy): Make static.
3856 (_initialize_remote_rdi): Add declaration.
3857 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3858 * remote-rdp.c (send_rdp): Make static.
3859 (_initialize_remote_rdp): Add declaration.
3860 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3862 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3864 * remote-fileio.c: Make ari happy.
3866 2003-06-10 J. Brobecker <brobecker@gnat.com>
3868 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3869 fetching the trailing bytes of the buffer we are about to write.
3871 2003-06-10 Andrew Cagney <cagney@redhat.com>
3873 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3874 * Makefile.in (remote-fileio.o): Update dependencies.
3875 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3876 include <setjmp.h>, or <sys/types.h> conditional on USG.
3877 (remote_fio_jmp_buf): Delete global variable.
3879 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3880 Martin M. Hunt <hunt@redhat.com>
3882 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3883 (SFILES): Add remote-fileio.c.
3884 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3885 dependencies for building remote.o.
3886 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3887 * remote-fileio.h: New header file defining remote File-I/O interface.
3888 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3889 static storage class.
3890 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3892 (_initialize_remote): Call initialize_remote_fileio().
3893 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3894 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3895 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3896 (captured_main): Initialize new ui_files.
3897 * ui-file.c: Add read and fgets input functions.
3898 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3899 (null_file_read): New function.
3900 (ui_file_read): New function.
3901 (set_ui_file_read): New function.
3902 (stdio_file_read): New function.
3903 * ui-file.h: New type ui_file_read_ftype.
3904 (set_ui_file_read): Declare.
3905 (ui_file_read): Declare.
3907 2003-06-09 Andrew Cagney <cagney@redhat.com>
3909 * frame.h (deprecated_unwind_get_saved_register): Rename
3910 generic_unwind_get_saved_register, update comments.
3911 * mips-tdep.c (mips_get_saved_register): Update.
3912 * frame.c (deprecated_unwind_get_saved_register): Update.
3914 2003-06-09 Andrew Cagney <cagney@redhat.com>
3916 * vax-tdep.c (vax_frame_locals_address): Delete function.
3917 (vax_gdbarch_init): Do not set frame_locals_address.
3918 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3919 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3920 * s390-tdep.c (s390_frame_args_address): Delete function.
3921 (s390_gdbarch_init): Do not set frame_args_address or
3922 frame_locals_address.
3923 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3924 (ns32k_gdbarch_init): Do not set frame_locals_address.
3925 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3926 (hppa_frame_locals_address): Delete function.
3927 (hppa_gdbarch_init): Do not set frame_args_address, or
3928 frame_locals_address.
3929 * arm-tdep.c (arm_frame_args_address): Delete.
3930 (arm_frame_locals_address): Delete.
3931 (arm_gdbarch_init): Do not set frame_args_address, or
3932 frame_locals_address.
3934 2003-06-09 Andrew Cagney <cagney@redhat.com>
3936 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3937 * gdbarch.h, gdbarch.c: Re-generate.
3938 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3939 * arch-utils.c (frame_num_args_unknown): Delete function.
3940 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3941 (frame_info): Use FRAME_NUM_ARGS_P.
3942 * arm-tdep.c (arm_frame_num_args): Delete function.
3943 (arm_gdbarch_init): Do not set frame_num_args.
3944 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3945 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3946 (hppa_gdbarch_init): Do not set frame_num_args.
3947 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3948 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3949 frame_num_args to default frame_num_args_unknown.
3950 * v850-tdep.c (v850_gdbarch_init): Ditto.
3951 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3952 * sh-tdep.c (sh_gdbarch_init): Ditto.
3953 * s390-tdep.c (s390_gdbarch_init): Ditto.
3954 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3955 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3956 * mips-tdep.c (mips_gdbarch_init): Ditto.
3957 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3958 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3959 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3960 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3961 * i386-tdep.c (i386_gdbarch_init): Ditto.
3962 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3963 * frv-tdep.c (frv_gdbarch_init): Ditto.
3964 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3965 * cris-tdep.c (cris_gdbarch_init): Ditto.
3966 * avr-tdep.c (avr_gdbarch_init): Ditto.
3967 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3969 2003-06-09 Andrew Cagney <cagney@redhat.com>
3971 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3972 (print_frame_args): Moved to "stack.c".
3973 * stack.c: Include "gdb_assert.h".
3974 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3975 (print_frame_args): Moved from "printcmd.c".
3976 * frame.h (print_frame_args): Delete declaration.
3977 * Makefile.in (stack.o): Update dependencies.
3979 2003-06-08 Andrew Cagney <cagney@redhat.com>
3981 * frame.c (get_prev_frame): Remove reference to
3982 frame_args_address_correct in comments.
3983 * frame-base.c (default_frame_args_address): Delete code
3984 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3985 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3986 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3987 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3988 (vax_frame_args_address_correct): Delete declaration.
3990 2003-06-08 Andrew Cagney <cagney@redhat.com>
3992 * gdbarch.sh (UNWIND_SP): Add.
3993 * gdbarch.h, gdbarch.c: Re-generate.
3994 * frame.c (frame_sp_unwind): New function.
3995 (get_frame_sp): New function.
3996 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3997 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3998 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4000 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4001 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4003 2003-06-08 Andrew Cagney <cagney@redhat.com>
4005 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4008 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4009 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4010 * config/m68k/tm-sun3.h: Update.
4011 * config/m68k/tm-m68klynx.h: Update.
4012 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4014 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4015 trad_frame". Update comments.
4016 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4017 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4018 (trad_frame_register_value, trad_frame_prev_register): Update.
4020 2003-06-08 Andrew Cagney <cagney@redhat.com>
4022 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4023 from GCC's acinclude.m4.
4024 * configure.in: Check for getopt's delcaration.
4025 * aclocal.m4, config.in, configure: Re-generate.
4026 * main.c (error_init): Delete declaration.
4027 * defs.h (error_init): Declare.
4028 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4029 (rs6000_convert_from_func_ptr_addr): Make static.
4030 (_initialize_rs6000_tdep): Add declaration.
4031 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4032 (show_commands, set_verbose, show_history): Delete declaration.
4033 * top.h (set_verbose): Add declaration.
4034 (show_history, set_history, show_commands): Add declaration.
4035 (do_restore_instream_cleanup): Add declaration.
4036 * objc-lang.c (specialcmp): Make static.
4037 (print_object_command): Make static.
4038 (find_objc_msgsend): Make static.
4039 (find_objc_msgcall_submethod_helper): Make static.
4040 (find_objc_msgcall_submethod): Make static.
4041 (_initialize_objc_language): Add declaration.
4042 (find_implementation_from_class): Make static.
4043 (find_implementation): Make static.
4044 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4045 * objc-lang.h (lookup_struct_typedef): Add declaration.
4046 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4047 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4048 (do_restore_user_call_depth): Make static.
4049 (do_restore_instream_cleanup): Delete declaration.
4050 (dont_repeat): Delete declaration.
4051 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4052 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4053 * reggroups.c (_initialize_reggroup): Add declaration.
4054 * cp-support.c (_initialize_cp_support): Add declaration.
4055 * cp-abi.c (_initialize_cp_abi): Add declaration.
4056 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4057 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4058 (_initialize_gnu_v3_abi): Add declaration.
4059 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4060 (_initialize_gnu_v2_abi): Add declaration.
4061 * frame-base.c (_initialize_frame_base): Add declaration.
4062 * doublest.c (floatformat_from_length): Make static.
4063 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4064 * frame.c (create_sentinel_frame): Make static.
4065 (_initialize_frame): Add declaration.
4066 * top.c (do_catch_errors): Make static.
4067 (gdb_rl_operate_and_get_next_completion): Make static.
4068 * typeprint.c: Include "typeprint.h".
4069 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4070 (sentinel_frame_this_id): Make static.
4071 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4072 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4073 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4074 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4075 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4076 * maint.c (maintenance_print_architecture): Make static.
4077 * signals/signals.c (_initialize_signals): Add declaration.
4078 * std-regs.c (_initialize_frame_reg): Add declaration.
4079 * jv-exp.y (push_variable): ISO C definition.
4080 (push_qualified_expression_name): Ditto.
4081 * memattr.c (_initialize_mem): Add declaration.
4082 * remote.c (remote_check_watch_resources): Make static.
4083 (remote_stopped_by_watchpoint): Make static.
4084 (remote_stopped_data_address): Make static.
4085 * d10v-tdep.c (nr_dmap_regs): Make static.
4086 (a0_regnum): Make static.
4087 (d10v_frame_unwind_cache): Make static.
4088 (d10v_frame_p): Make static.
4089 * osabi.c (show_osabi): Make static.
4090 (_initialize_gdb_osabi): Add extern declaration.
4091 * gdbtypes.c (make_qualified_type): Make static.
4092 (safe_parse_type): Make static.
4093 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4094 * macrotab.c (macro_bcache_free): Make static.
4095 * interps.c (interp_set_quiet): Make static.
4096 (interpreter_exec_cmd): Make static.
4097 * stack.h (select_frame_command): New file.
4098 * stack.c: Include "stack.h".
4099 (select_frame_command_wrapper): Delete function.
4100 (select_frame_command): Make global.
4101 * infcall.c: Include "infcall.h".
4102 * linespec.c: Include "linespec.h".
4103 * symfile.c (sections_overlap): Make static.
4104 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4105 * charset.c (_initialize_charset): Add missing prototype.
4106 * regcache.c (init_legacy_regcache_descr): Make static.
4107 (do_regcache_xfree): Make static.
4108 (regcache_xfer_part): Make static.
4109 (_initialize_regcache): Add missing prototype.
4110 * breakpoint.c (parse_breakpoint_sals): Make static.
4111 (breakpoint_sals_to_pc): Make static.
4112 * interps.h (clear_interpreter_hooks): ISO C declaration.
4113 * Makefile.in (stack_h): Define.
4114 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4115 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4117 2003-06-08 Andrew Cagney <cagney@redhat.com>
4119 * Makefile.in (d10v-tdep.o): Update dependencies.
4120 (SFILES): Add trad-frame.c.
4121 (trad_frame_h): Define.
4122 (COMMON_OBS): Add trad-frame.o.
4123 (trad-frame.o): Specify dependencies.
4124 * d10v-tdep.c: Include "trad-frame.h".
4125 (saved_regs_unwinder): Delete function.
4126 (d10v_frame_prev_register): Use trad_frame_prev_register.
4127 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4128 trad_frame", delete "regs" and "prev_sp".
4129 (prologue_find_regs): Use trad-frame.
4130 * trad-frame.h, trad-frame.c: New files.
4132 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4134 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4136 2003-06-07 Adam Fedor <fedor@gnu.org>
4138 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4139 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4140 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4141 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4142 resolve_msgsend_super, resolve_msgsend_super_stret):
4145 2003-06-07 Andrew Cagney <cagney@redhat.com>
4147 * symfile.h: Re-indent, clean up comments.
4149 2003-06-07 Andrew Cagney <cagney@redhat.com>
4151 * inferior.h (deprecated_write_sp): Replace
4152 generic_target_write_sp.
4153 * regcache.c (deprecated_write_sp): Replace
4154 generic_target_write_sp.
4155 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4156 * vax-tdep.c (vax_gdbarch_init): Update.
4157 * v850-tdep.c (v850_gdbarch_init): Update.
4158 * sparc-tdep.c (sparc_gdbarch_init): Update.
4159 * sh-tdep.c (sh_gdbarch_init): Update.
4160 * s390-tdep.c (s390_gdbarch_init): Update.
4161 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4162 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4163 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4164 * mcore-tdep.c (mcore_gdbarch_init): Update.
4165 * m68k-tdep.c (m68k_gdbarch_init): Update.
4166 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4167 * ia64-tdep.c (ia64_gdbarch_init): Update.
4168 * h8300-tdep.c (h8300_gdbarch_init): Update.
4169 * frv-tdep.c (frv_gdbarch_init): Update.
4170 * cris-tdep.c (cris_gdbarch_init): Update.
4171 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4173 2003-06-07 Andrew Cagney <cagney@redhat.com>
4175 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4176 Assert that PC_REGNUM is valid.
4177 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4179 2003-06-07 Andrew Cagney <cagney@redhat.com>
4181 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4182 * gdbarch.h, gdbarch.c: Regenerate.
4183 * mn10300-tdep.c: Include "gdb_assert.h".
4184 (mn10300_read_fp): New function.
4185 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4186 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4187 * ia64-tdep.c: Include "gdb_assert.h".
4188 (ia64_read_fp): New function.
4189 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4190 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4191 * regcache.c (generic_target_read_sp): Delete function.
4192 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4193 * inferior.h (generic_target_read_sp): Delete declaration.
4194 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4195 generic_target_read_sp.
4196 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4197 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4198 * sh-tdep.c (sh_gdbarch_init): Ditto.
4199 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4200 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4202 2003-06-07 Andrew Cagney <cagney@redhat.com>
4204 * gdbarch.sh: Comment each field of startup_gdbarch.
4205 * gdbarch.h, gdbarch.c: Re-generate.
4207 2003-06-07 Andrew Cagney <cagney@redhat.com>
4209 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4210 * gdbarch.h, gdbarch.c: Re-generate.
4211 * regcache.c: Update comments on read_pc et.al.
4212 (generic_target_read_pc): Delete function.
4213 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4214 * inferior.h (generic_target_read_pc): Delete declaration.
4215 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4216 generic_target_read_pc.
4217 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4218 * sh-tdep.c (sh_gdbarch_init): Ditto.
4219 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4220 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4222 2003-06-07 Andrew Cagney <cagney@redhat.com>
4224 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4225 "index" with "special_local_sect". Use strcmp instead of STREQ.
4226 Append period to coments.
4228 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4230 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4231 (elfstab_offset_sections): Likewise.
4232 * gdb-stabs.h (stab_section_info): Likewise.
4233 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4234 * objfiles.c (objfile_relocate): Likewise.
4235 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4236 * remote.c (get_offsets): Likewise.
4237 (remote_cisco_objfile_relocate): Likewise.
4238 * somread.c (som_symfile_offsets): Likewise.
4239 * symfile.c (alloc_section_addr_info): New function.
4240 (build_section_addr_info_from_section_tab): Use it.
4241 (free_section_addr_info): Adjust.
4242 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4243 (syms_from_objfile): Allocate local_addr dynamically.
4244 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4246 (add_symbol_file_command): Allocate sect_opts dynamically.
4247 (reread_symbols): Avoid use of SECT_OFF_MAX.
4248 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4249 (alloc_section_addr_info): Declare it.
4250 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4251 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4253 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4255 2003-06-06 Andrew Cagney <cagney@redhat.com>
4257 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4258 (d10v_frame_unwind_cache): Do not set "return_pc".
4260 2003-06-06 Michael Snyder <msnyder@redhat.com>
4262 * h8300-tdep.c: Make tidy (long lines).
4264 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4266 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4267 to regcache_collect().
4269 2003-06-05 J. Brobecker <brobecker@gnat.com>
4271 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4272 pc_in_sigtramp multiarch method.
4273 (hppa_hpux_som_init_abi): Use it.
4274 (hppa_hpux_elf_init_abi): Likewise.
4275 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4276 macro has been multiarched.
4277 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4278 macro here, as hppa64 isn't multiarched yet.
4280 2003-06-05 Andrew Cagney <cagney@redhat.com>
4282 * Makefile.in (value_h): Add $(frame_h).
4283 * value.h: Include "frame.h".
4284 (struct value): Replace "frame_addr" with "frame_id".
4285 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4286 * values.c (allocate_value): Use VALUE_FRAME_ID.
4287 (value_copy): Use VALUE_FRAME_ID.
4288 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4289 * valops.c (value_assign): Update. Use frame_find_by_id.
4291 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4293 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4296 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4298 * thread-db.c (check_event): For create/death event breakpoints,
4299 loop through all messages to ensure that we read the message
4300 corresponding to the breakpoint we are at.
4302 2003-06-04 Michael Snyder <msnyder@redhat.com>
4304 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4306 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4308 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4309 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4310 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4311 when handling .eh_frame sections.
4313 2003-06-04 J. Brobecker <brobecker@gnat.com>
4315 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4316 prepare_to_proceed procedure instead of the hppa-specific one.
4317 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4319 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4321 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4322 * config.in: Regenerated.
4323 * configure.in: Add test for syscall function and check for
4324 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4325 * configure: Regenerated.
4326 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4328 (kill_lwp): New function that uses tkill syscall or
4329 uses kill, depending on whether threading model is nptl or not.
4330 All callers of kill() changed to use kill_lwp().
4331 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4332 see if all threads have already exited in the nptl model.
4333 (stop_and_resume_callback): New callback function used by the
4334 lin_lwp_wait thread exit handling code.
4335 (stop_wait_callback): Check for threads already having exited and
4336 delete such threads fromt the lwp list when discovered.
4337 (stop_callback): Don't assert retcode of kill call.
4339 Roland McGrath <roland@redhat.com>
4340 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4343 2003-06-03 Richard Henderson <rth@redhat.com>
4345 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4346 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4347 (alpha_sigtramp_frame_prev_register): Likewise.
4348 (alpha_heuristic_frame_prev_register): Likewise.
4349 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4351 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4352 alpha-specific register id names.
4353 (alpha_mdebug_frame_unwind_cache): Likewise.
4354 (alpha_mdebug_frame_prev_register): Likewise.
4356 2003-06-03 Richard Henderson <rth@redhat.com>
4358 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4359 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4360 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4361 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4363 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4364 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4365 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4367 * alpha-linux-tdep.c: Remove unnecessary includes.
4368 * Makefile.in (alpha-linux-tdep.o): Update.
4370 2003-06-03 Richard Henderson <rth@redhat.com>
4372 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4373 (alphabsd_fill_fpreg): Likewise.
4375 2003-06-03 J. Brobecker <brobecker@gnat.com>
4377 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4378 references to struct frame_info fields by calls to the equivalent
4379 accessors. Necessary now that frame_info is opaque.
4381 2003-06-03 J. Brobecker <brobecker@gnat.com>
4383 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4384 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4385 structure, field no longer exists.
4387 2003-06-03 J. Brobecker <brobecker@gnat.com>
4389 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4390 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4392 2003-06-03 J. Brobecker <brobecker@gnat.com>
4394 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4395 references to struct frame_info fields by calls to the equivalent
4396 accessors. Necessary now that frame_info is opaque.
4398 2003-06-03 J. Brobecker <brobecker@gnat.com>
4400 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4401 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4402 structure, field no longer exists.
4404 2003-06-03 Theodore A. Roth <troth@openavr.org>
4406 * remote.c (init_remote_state): Compute sizeof_g_packet by
4407 accumulation of the size of all registers instead of blindly using
4408 DEPRECATED_REGISTER_BYTES.
4410 2003-06-03 Michael Snyder <msnyder@redhat.com>
4412 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4413 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4416 2003-06-03 J. Brobecker <brobecker@gnat.com>
4418 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4419 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4421 2003-06-03 Andrew Cagney <cagney@redhat.com>
4423 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4424 (sparc_convert_to_raw): Delete function.
4425 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4426 register_convert_to_virtual.
4428 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4430 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4431 layer if not dealing with a statically-linked threaded program.
4433 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4435 * solib.c (solib_open): Update comment to reflect actual search order.
4437 2003-06-03 Andrew Cagney <cagney@redhat.com>
4439 * frame.c (get_frame_memory_signed): New function.
4440 (get_frame_memory, get_frame_memory_unsigned): New function.
4441 (get_frame_arch): New function.
4442 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4443 (get_frame_memory, get_frame_unsigned_memory): Declare.
4444 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4445 get_frame_memory_unsigned and get_frame_arch.
4446 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4448 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4450 * MAINTAINERS (write after approval): Add myself.
4452 2003-06-03 Jim Blandy <jimb@redhat.com>
4454 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4455 elements of gregset_t are 64 bits each, but access registers
4456 are still 32 bits, so they're packed two per gregset_t
4457 element. Unpack/pack them properly.
4459 2003-06-02 David Carlton <carlton@bactrian.org>
4461 * linespec.c (find_methods): Break out code into
4462 add_matching_methods and add_constructors.
4463 (add_matching_methods): New.
4464 (add_constructors): Ditto.
4466 2003-06-02 Andrew Cagney <cagney@redhat.com>
4468 * sparc-tdep.c (sparc_print_registers): Delete call to
4469 REGISTER_CONVERTIBLE.
4470 (sparc_gdbarch_init): Do not set register_convertible.
4471 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4472 * frv-tdep.c (frv_gdbarch_init): Ditto.
4473 * cris-tdep.c (cris_gdbarch_init): Ditto.
4475 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4477 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4478 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4479 (syms_from_objfile): Ditto.
4481 2003-06-03 Andreas Schwab <schwab@suse.de>
4483 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4484 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4486 2003-06-02 Richard Henderson <rth@redhat.com>
4488 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4489 a member of all_reggroup.
4491 2003-06-02 Richard Henderson <rth@redhat.com>
4493 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4494 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4495 (alpha_lds, alpha_sts): New.
4496 (alpha_convert_register_p): Change from _register_convertible.
4497 (alpha_register_to_value): Change from _convert_to_virtual;
4498 restructure and fail for type sizes other than 4 or 8.
4499 (alpha_value_to_register): Similarly.
4500 (alpha_extract_return_value): Use alpha_sts.
4501 (alpha_store_return_value): Use alpha_lds.
4502 (alpha_gdbarch_init): Update hooks.
4504 2003-06-02 Richard Henderson <rth@redhat.com>
4506 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4508 (alpha_sigtramp_register_address): Likewise.
4510 2003-06-02 Richard Henderson <rth@redhat.com>
4512 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4513 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4514 * alpha-tdep.h: Declare them.
4516 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4517 Remove zerobuf. Don't error on UNIQUE.
4518 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4519 (ALPHA_REGSET_UNIQUE): Provide default.
4520 (supply_gregset): Use alpha_supply_int_regs.
4521 (fill_gregset): Use alpha_fill_int_regs.
4522 (supply_fpregset): Use alpha_supply_fp_regs.
4523 (fill_fpregset): Use alpha_fill_fp_regs.
4524 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4525 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4526 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4527 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4528 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4529 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4531 2003-06-02 Richard Henderson <rth@redhat.com>
4533 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4535 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4536 (alpha_store_return_value): Likewise.
4538 2003-06-02 David Carlton <carlton@math.stanford.edu>
4540 * block.c (contained_in): Add 'const' to arguments.
4541 (block_function): Ditto.
4542 * block.h: Update declarations for block_function and
4545 2003-06-02 David Carlton <carlton@math.stanford.edu>
4547 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4548 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4549 * p-valprint.c (pascal_val_print): Ditto.
4550 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4552 2003-06-02 Richard Henderson <rth@redhat.com>
4554 * alpha-tdep.c (alpha_push_dummy_call): Use
4555 builtin_type_ieee_double_little instead of builtin_type_double.
4557 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4558 sign-extension of 32-bit values.
4559 (alpha_store_return_value): Similarly.
4561 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4562 (alpha_extract_return_value): Likewise.
4563 (alpha_store_return_value): Likewise.
4565 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4566 (alpha_store_return_value): Error on IEEE Quad floats.
4568 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4569 (alpha_extract_struct_value_address): Likewise.
4570 (alpha_store_return_value): Likewise.
4571 (alpha_store_struct_return): Remove.
4572 (alpha_gdbarch_init): Update hook registration to match.
4574 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4575 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4576 macros where appropriate.
4577 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4578 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4580 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4581 for SP, GP; void_func_ptr for PC; non-language-specific types
4583 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4585 2003-06-02 Richard Henderson <rth@redhat.com>
4587 * top.h (lim_at_start): Declare.
4588 * main.c (captured_main): Set it.
4589 * top.c (lim_at_start): Define.
4590 (command_loop): Use it instead of &environ.
4591 * event-top.c (command_handler): Likewise.
4593 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4595 * mipsnbsd-tdep.c: Update copyright years.
4596 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4598 2003-06-01 Richard Henderson <rth@redhat.com>
4600 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4601 (alpha-linux-tdep.o): Update dependencies.
4602 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4603 * alpha-mdebug-tdep.c: Remove unneeded includes.
4605 2003-06-01 Richard Henderson <rth@redhat.com>
4607 * alpha-tdep.c (alpha_register_reggroup_p): New.
4608 (alpha_gdbarch_init): Register it.
4610 2003-06-02 Andrew Cagney <cagney@redhat.com>
4612 * dwarfread.c: Eliminate "register"
4613 (decode_die_type): Eliminate assignment within "if".
4614 (struct_type, decode_array_element_type): Ditto.
4615 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4616 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4617 (decode_modified_type, completedieinfo): Ditto.
4618 * block.c: Eliminate "register".
4619 (blockvector_for_pc_sect): Eliminate assignment within "if".
4620 * cp-support.h (struct symbol): Opaque declaration.
4621 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4623 2003-06-01 Richard Henderson <rth@redhat.com>
4625 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4626 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4628 2003-06-01 Adam Fedor <fedor@gnu.org>
4630 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4631 * gdbarch.[ch]: Regenerate.
4632 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4633 (hppa_gdbarch_init): Set it in the gdbarch vector.
4634 * i386-tdep.c (i386_fetch_pointer_argument): New
4635 (i386_gdbarch_init): Set it into gdbarch.
4636 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4637 (rs6000_gdbarch_init): Set it in gdbarch.
4638 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4639 (sparc_gdbarch_init): Set it in gdbarch.
4641 2003-06-01 Andrew Cagney <cagney@redhat.com>
4643 * defs.h (extract_address): Delete declaration.
4644 * findvar.c (extract_address): Delete function.
4645 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4646 extract_address with the inline equivalent,
4647 extract_unsigned_integer.
4648 (xstormy16_extract_struct_value_address): Ditto.
4649 (xstormy16_pointer_to_address): Ditto.
4650 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4651 * v850-tdep.c (v850_push_arguments): Ditto.
4652 (v850_extract_return_value): Ditto.
4653 (v850_extract_struct_value_address): Ditto.
4654 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4655 (sparcnbsd_get_longjmp_target_64): Ditto.
4656 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4657 (get_longjmp_target): Ditto.
4658 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4659 (sh64_extract_struct_value_address): Ditto.
4660 (sh_push_arguments): Ditto.
4661 (sh64_push_arguments): Ditto.
4662 * remote-vxsparc.c (vx_read_register): Ditto.
4663 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4664 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4665 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4666 * mipsv4-nat.c (get_longjmp_target): Ditto.
4667 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4668 * mips-nat.c (get_longjmp_target): Ditto.
4669 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4670 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4671 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4672 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4673 * irix5-nat.c (get_longjmp_target): Ditto.
4674 * irix4-nat.c (get_longjmp_target): Ditto.
4675 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4676 (ia64_push_arguments): Ditto.
4677 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4678 * h8300-tdep.c (h8300_push_arguments): Ditto.
4679 (h8300_store_return_value): Ditto.
4680 (h8300_extract_struct_value_address): Ditto.
4681 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4682 (frv_push_arguments): Ditto.
4683 * avr-tdep.c (avr_pointer_to_address): Ditto.
4684 (avr_push_arguments): Ditto.
4685 * arm-tdep.c (arm_push_dummy_call): Ditto.
4686 (arm_get_longjmp_target): Ditto.
4687 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4688 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4689 (alpha_get_longjmp_target): Ditto.
4691 * solib-irix.c (extract_mips_address): Inline extract_address,
4692 replacing it with extract_signed_integer.
4693 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4694 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4695 (first_link_map_member, open_symbol_file_object): Ditto.
4696 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4697 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4698 (LM_NEXT, LM_NAME): Ditto.
4700 2003-06-01 Richard Henderson <rth@redhat.com>
4702 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4703 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4704 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4705 (alpha_cannot_store_register): Likewise.
4706 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4707 * alpha-nat.c (supply_gregset): Likewise.
4708 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4710 2003-06-01 Andrew Cagney <cagney@redhat.com>
4712 * infcall.c (call_function_by_hand): Update comment on
4713 DEPRECATED_DUMMY_WRITE_SP.
4715 * mips-tdep.c (mips_gdbarch_init): Do not set
4716 deprecated_dummy_write_sp.
4717 (mips_eabi_push_dummy_call): Set the SP register.
4718 (mips_o64_push_dummy_call): Set the SP register.
4719 (mips_o32_push_dummy_call): Set the SP register.
4720 (mips_n32n64_push_dummy_call): Set the SP register.
4722 2003-06-01 Richard Henderson <rth@redhat.com>
4724 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4725 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4726 (supply_gregset): Likewise.
4727 * alpha-tdep.c (alpha_store_return_value): Likewise.
4728 (alpha_get_longjmp_target): Likewise.
4729 (alpha_register_name): Constify array.
4730 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4731 deprecated_register_size, deprecated_register_bytes,
4732 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4733 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4734 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4736 2003-06-01 Richard Henderson <rth@redhat.com>
4738 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4739 from arg_reg_buffer to regcache to avoid double conversion.
4741 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4743 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4745 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4746 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4748 2003-06-01 Richard Henderson <rth@redhat.com>
4750 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4751 (decode_frame_entry): Set it. Skip FDE augmentation.
4753 2003-06-01 Richard Henderson <rth@redhat.com>
4755 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4756 not overlapping PC_REGNUM.
4758 2003-06-01 Richard Henderson <rth@redhat.com>
4760 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4761 alpha_push_arguments. Don't dump argument register data to
4762 the target stack. Fix float and 128-bit long double semantics.
4763 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4764 (alpha_fix_call_dummy): Remove.
4765 (alpha_call_dummy_words): Remove.
4766 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4768 2003-06-01 Richard Henderson <rth@redhat.com>
4770 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4772 2003-06-01 Andrew Cagney <cagney@redhat.com>
4774 * mips-tdep.c (is_mips16_addr): New function.
4775 (make_mips16_addr, unmake_mips16_addr): New functions.
4776 (pc_is_mips16, mips_fetch_instruction): Use.
4777 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4778 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4779 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4780 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4782 * config/mips/tm-mips.h: Update copyright.
4783 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4784 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4785 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4786 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4787 (TM_PRINT_INSN_MACH): Delete.
4788 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4790 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4791 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4792 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4793 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4794 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4795 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4796 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4797 mips*-*-riscos* and mips*-*-sysv* onto mips.
4798 * config/mips/mips64.mt: New file.
4799 * config/mips/mips.mt: New file.
4800 * config/mips/littlemips.mt: Delete file.
4801 * config/mips/decstation.mt: Delete file.
4802 * config/mips/vr4300el.mt: Delete file.
4803 * config/mips/vr5000el.mt: Delete file.
4804 * config/mips/vr5000.mt: Delete file.
4805 * config/mips/vr4100.mt: Delete file.
4806 * config/mips/vr4xxxel.mt: Delete file.
4807 * config/mips/vr4300.mt: Delete file.
4808 * config/mips/vr4xxx.mt: Delete file.
4809 * config/mips/bigmips.mt: Delete file.
4810 * config/mips/bigmips64.mt: Delete file.
4811 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4812 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4813 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4814 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4815 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4817 * config/mips/tm-irix3.h: Ditto.
4818 * config/mips/tm-mipsv4.h: Ditto.
4819 * config/mips/tm-embed.h: Ditto.
4820 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4822 * config/mips/tm-vr5000el.h: Delete file.
4823 * config/mips/tm-tx39l.h: Delete file.
4824 * config/mips/tm-vr4300el.h: Delete file.
4825 * config/mips/tm-vr4xxxel.h: Delete file.
4826 * config/mips/tm-vr4300.h: Delete file.
4827 * config/mips/tm-vr4100.h: Delete file.
4828 * config/mips/tm-vr4xxx.h: Delete file.
4829 * config/mips/tm-vr5000.h: Delete file.
4830 * config/mips/tm-embedl64.h: Delete file.
4831 * config/mips/tm-embedl.h: Delete file.
4832 * config/mips/tm-embed64.h: Delete file.
4833 * config/mips/tm-bigmips64.h: Delete file.
4834 * config/mips/tm-bigmips.h: Delete file.
4836 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4839 * shnbsd-nat.c: Include "sh-tdep.h".
4841 From Richard Henderson <rth@redhat.com>:
4842 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4844 2003-05-31 Andrew Cagney <cagney@redhat.com>
4846 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4847 forward declaration.
4848 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4849 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4850 (mips_find_saved_regs): Use set_reg_offset.
4851 (mips_frame_init_saved_regs): Delete function.
4852 (mips_pop_frame): Call mips_find_saved_regs instead of
4853 DEPRECATED_FRAME_INIT_SAVED_REGS.
4855 2003-05-31 Andrew Cagney <cagney@redhat.com>
4857 * mips-tdep.c (mips_gdbarch_init): Do not set
4858 deprecated_max_register_raw_size, register_virtual_size, and
4859 deprecated_max_register_virtual_size.
4861 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4863 * i386-tdep.c: Include "dwarf2-frame.h".
4864 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4865 * Makefile.in (i386-tdep.o): Update dependencies.
4867 * dwarf2-frame.c, dwarf2-frame.h: New files.
4868 * Makefile.in (SFILES): Add dwarf2-frame.c.
4869 (dwarf2_frame_h): Define.
4870 (COMMON_OBS): Add dwarf2-frame.o.
4871 (dwarf2-frame.o): Add dependencies.
4873 2003-05-31 Andreas Jaeger <aj@suse.de>
4875 * x86-64-linux-nat.c: Fix comment.
4877 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4879 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4882 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4883 have a sigcontext_addr handler.
4884 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4885 sigcontext_addr handler.
4887 2003-05-31 Andrew Cagney <cagney@redhat.com>
4889 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4890 (print_fp_register_row): Replace do_fp_register_row.
4891 (mips_print_fp_register): Add "file" and "frame" parameters.
4892 (mips_print_register): Add "file" and "frame" parameters.
4893 (mips_print_registers_info): Replace mips_do_registers_info.
4894 (mips_gdbarch_init): Set print_registers_info instead of
4895 deprecated_do_registers_info.
4896 (mips_read_fp_register_single): Add "frame" parameter.
4897 (mips_read_fp_register_double): Add "frame" parameter.
4899 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4901 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4902 Fixes a bug where GDB would print the wrong register names for
4903 targets without SSE.
4905 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4906 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4909 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4910 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4911 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4914 From Michal Ludvig <mludvig@suse.cz>:
4915 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4917 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4918 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4919 I386_ST0_REGNUM): Move here from...
4920 * i386-tdep.c: ... here.
4921 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4922 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4923 registers if possible.
4924 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4925 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4927 (i386bsd_sc_reg_offset): New variable.
4928 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4929 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4931 (i386fbsd_sc_reg_offset): New variable.
4932 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4934 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4936 (i386fbsd4_sc_reg_offset): New variable.
4937 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4938 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4940 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4941 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4942 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4944 (i386nbsd_sc_reg_offset): New variable.
4945 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4946 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4948 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4950 (i386obsd_sc_reg_offset): New variable.
4951 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4952 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4954 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4955 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4956 for frame pointer offset in `struct sigcontext'.
4958 2003-05-31 Andrew Cagney <cagney@redhat.com>
4960 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4961 architecture methods call_dummy_words, sizeof_call_dummy_words,
4962 push_return_address, store_struct_return, and fix_call_dummy. Set
4963 push_dummy_call instead of deprecated_push_arguments.
4964 (mips_store_struct_return): Delete function.
4965 (mips_fix_call_dummy): Delete function.
4966 (mips_push_return_address): Delete function.
4967 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4968 RA_REGNUM and T9_REGNUM.
4969 (mips_n32n64_push_dummy_call): Ditto for
4970 mips_n32n64_push_arguments.
4971 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4972 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4974 2003-05-31 Andrew Cagney <cagney@redhat.com>
4976 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4977 "dummy_addr" to "bp_addr".
4978 * infcall.c (call_function_by_hand): Pass "funaddr" to
4979 gdbarch_push_dummy_call.
4980 * gdbarch.h, gdbarch.c: Re-generate.
4981 * i386-tdep.c (i386_push_dummy_call): Update.
4982 * arm-tdep.c (arm_push_dummy_call): Update.
4983 * d10v-tdep.c (d10v_push_dummy_call): Update.
4985 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4987 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4988 variable declarations.
4989 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4990 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4991 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4992 x86_64_init_frame_pc, x86_64_init_frame_pc,
4993 x86_64_function_has_prologue): Remove prototypes.
4994 (X86_64_NUM_GREGS): New define.
4995 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4996 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4997 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4998 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4999 XMM1_REGNUM): Remove defines.
5000 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5001 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5002 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5003 X86_64_XMM1_REGNUM): New defines.
5004 (struct x86_64_register_info): Renamed from `struct
5005 register_info'. Remove `size' member.
5006 (x86_64_register_info_table): Remove variable.
5007 (x86_64_register_info): New variable.
5008 (X86_64_NUM_REGS): New define.
5009 (X86_64_NUM_GREGS): Remove define.
5010 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5011 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5013 (x86_54_dwarf2_reg_to_regnum): Remove function.
5014 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5015 (x86_64_dwarf_reg_to_regnum): New function.
5016 (x86_64_register_name): Rewrite.
5017 (x86_64_register_raw_size): Remove function.
5018 (x86_64_register_byte_table): Remove variable.
5019 (x86_64_register_byte): Remove function.
5020 (x86_64_register_virtual_type): Remove function.
5021 (x86_64_register_type): New function.
5022 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5023 x86_64_register_convert_to_raw): Remove functions.
5024 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5025 (x86_64_use_struct_convention): Make static. Adjust for renamed
5027 (x86_64_frame_init_saved_regs): Remove function.
5028 (x86_64_push_arguments): Make static. Change to accept a regcache
5030 (x86_64_store_return_value, x86_64_extract_return_value): Make
5031 static. Rewrite based on i386 counterparts.
5032 (x86_64_push_dummy_call): New function.
5033 (X86_64_NUM_SAVED_REGS): New define.
5034 (x86_64_register_number): Remove function.
5035 (x86_64_store_struct_return): Remove function.
5036 (x86_64_frameless_function_invocation,
5037 x86_64_function_has_prologue): Remove functions.
5038 (PROLOG_BUFSIZE): Remove define.
5039 (struct x86_64_frame_cache): New structure.
5040 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5041 x86_64_frame_cache, x86_64_frame_this_id,
5042 x86_64_frame_prev_register, x86_64_frame_p,
5043 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5044 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5046 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5048 (x86_64_skip_prologue): Rewrite in terms of
5049 x86_64_analyze_prologue.
5050 (x86_64_frame_base_address): New function.
5051 (x86_64_frame_base): New variable.
5052 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5053 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5054 set deprecated_fp_regnum, deprecated_register_size,
5055 deprecated_register_bytes, register_raw_size, register_byte,
5056 register_virtual_type, register_convertiable,
5057 register_convert_to_virtual, convert_to_raw,
5058 deprecated_get_saved_register, deprecated_target_read_fp,
5059 deprecated_push_arguments, deprecated_push_return_address,
5060 deprecated_pop_frame, deprecated_store_struct_return,
5061 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5062 frameless_function_invocation, deprecated_frame_saved_pc,
5063 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5064 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5065 deprecated_init_frame_pc and virtual_frame_pointer. Call
5066 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5067 and x86_64_frame_p. Call frame_base_set_default to register
5069 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5070 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5071 (_initialize_x86_64_tdep): Remove function.
5072 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5073 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5074 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5076 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5077 (x86_64_linux_sigcontext_addr): Rewrite.
5078 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5079 x86_64_linux_frame_saved_pc): Remove functions.
5080 (x86_64_linux_pc_in_sigtramp): Renamed from
5081 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5083 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5085 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5086 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5087 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5088 (x86_64_regmap): Rename to regmap.
5089 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5091 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5093 (x86_64_fxsave_offset): Remove function.
5094 (supply_fpregset): Simply call x86_64_supply_fxsave.
5095 (fill_fpregset): Simply call x86_64_fill_fxsave.
5096 (fetch_inferior_registers, store_inferior_registers): Avoid
5097 asignment in if-statement.
5098 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5099 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5100 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5101 (fetch_core_registers): Remove function.
5102 (linux_elf_core_fns): Remove.
5103 (offsetoff): Don't define.
5104 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5105 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5106 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5108 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5109 protection against multiple includes instead of NM_X86_64_h. Add
5110 various comments. Include "config/nm-linux.h". Don't include
5112 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5113 GET_THREAD_SIGNALS): Remove defines.
5114 (x86_64_register_u_addr, kernel_u_size,
5115 lin_thread_get_thread_signals): Remove prototypes.
5116 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5117 [HAVE_LINK_H]: Don't include "solib.h".
5118 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5119 * config/i386/tm-x86-64linux.h: Fix comments.
5120 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5121 x86-64-tdep.o): Update dependencies.
5123 2003-05-30 Andrew Cagney <cagney@redhat.com>
5125 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5126 Change parameter type to a "struct regcache *".
5128 * gdbarch.sh: Regardless of the multi-arch level, always define
5129 the macro when not already defined.
5130 * gdbarch.h, gdbarch.c: Re-generate.
5132 2003-05-30 Richard Henderson <rth@redhat.com>
5134 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5135 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5136 (alpha_mdebug_frame_this_id): Likewise.
5137 (alpha_mdebug_frame_prev_register): Likewise.
5138 (alpha_mdebug_frame_base_address): Likewise.
5139 (alpha_mdebug_frame_locals_address): Likewise.
5140 (alpha_mdebug_frame_args_address): Likewise.
5141 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5142 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5143 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5145 (alpha_heuristic_frame_this_id): Make static.
5146 (alpha_heuristic_frame_prev_register): Likewise.
5147 (alpha_heuristic_frame_base_address): Likewise.
5148 * alpha-tdep.h: Update.
5150 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5152 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5153 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5155 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5156 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5157 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5158 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5159 I386_ST0_REGNUM): New defines.
5160 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5161 codestream_get): Remove define.
5162 (codestream_next_addr, condestream_addr, condestream_buf,
5163 codestream_off, codestream_cnt): Remove variables.
5164 (codestream_fill, codestream_seek, codestream_read): Remove
5166 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5168 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5169 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5170 i386_frame_saved_pc, i386_saved_pc_after_call,
5171 i386_frame_num_args, i386_frame_init_saved_regs,
5172 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5173 i386_push_arguments): Remove functions.
5174 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5175 functionality. Use i386_analyze_prologue instead of
5176 i386_get_frame_setup.
5177 (I386_NUM_SAVED_REGS): New define.
5178 (struct i386_frame_cache): New structure.
5179 (i386_alloc_frame_cache, i386_analyze_struct_return,
5180 i386_skip_probe, i386_analyze_frame_setup,
5181 i386_analyze_register_saves, i386_analyze_prologue,
5182 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5183 i386_frame_prev_register, i386_sigtramp_frame_cache,
5184 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5185 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5186 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5188 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5190 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5191 I386_EAX_REGNUM and I386_EDX_REGNUM.
5192 (i386_extract_return_value, i386_store_return_value): Use
5193 I386_ST0_REGNUM where appropriate.
5194 (i386_extract_struct_value_address): Rewrite to use extract_address.
5195 (i386_svr4_pc_in_sigtramp): Add comment.
5196 (i386_svr4_sigcontext_addr): Rewrite.
5197 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5199 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5200 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5201 of new defines. Set push_dummy_call, don't set
5202 deprecated_push_arguments, deprecated_push_return_address,
5203 deprecated_pop_frame. Don't set parm_boundary. Don't set
5204 deprecated_frame_chain, deprecated_frame_saved_pc,
5205 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5206 save_dummy_frame_tos, unwind_pc. Call
5207 frame_unwind_append_predicate and frame_base_set_default. Don't
5208 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5209 Don't set frameless_function_invocation. Don't set
5210 deprecated_register_bytes, deprecated_register_size,
5211 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5212 * i386-linux-tdep.c: Fix formatting in some comments.
5213 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5214 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5215 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5216 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5217 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5218 redundant parentheses.
5219 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5220 (i386_linux_sigcontext_addr): Use it. Rewrite.
5221 (find_minsym_and_objfile): Change name of second argument.
5222 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5223 changed. Use frame_pc_unwind instead of
5224 DEPRECATED_SAVED_PC_AFTER_CALL.
5225 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5226 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5227 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5229 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5231 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5232 (_initialize_i386_cygwin_tdep): New prototype.
5233 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5234 deprecated_frame_chain_valid.
5235 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5236 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5237 Rely on the SVR4 defaults.
5238 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5239 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5241 2003-05-30 Andrew Cagney <cagney@redhat.com>
5243 * infcall.c (call_function_by_hand): Always call
5244 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5246 2003-05-30 Richard Henderson <rth@redhat.com>
5248 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5251 2003-05-29 Jim Blandy <jimb@redhat.com>
5253 Use gdbarch methods for solib stuff on PowerPC Linux.
5254 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5255 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5257 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5258 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5259 giving the same effect as the #definitions above.
5261 2003-05-29 Adam Fedor <fedor@gnu.org>
5263 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5264 (find_implementation_from_class): Replace it with the standard
5265 case i.e. do nothing.
5267 2003-05-29 Richard Henderson <rth@redhat.com>
5269 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5270 (alpha_linux_sigtramp_offset): Use it. Make static.
5271 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5272 update for new frame model.
5273 * alpha-mdebug-tdep.c: New file.
5274 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5275 (alpha_osf1_init_abi): Install it.
5276 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5277 (linked_proc_desc_table): Remove.
5278 (alpha_frame_past_sigtramp_frame): Remove.
5279 (alpha_dynamic_sigtramp_offset): Remove.
5280 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5281 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5282 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5283 (push_sigtramp_desc): Remove.
5284 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5285 (alpha_cannot_store_register): Likewise.
5286 (alpha_sigcontext_addr): Remove.
5287 (alpha_find_saved_regs): Remove.
5288 (alpha_frame_init_saved_regs): Remove.
5289 (alpha_init_frame_pc_first): Remove.
5290 (read_next_frame_reg): Remove.
5291 (alpha_frame_saved_pc): Remove.
5292 (alpha_saved_pc_after_call): Remove.
5293 (temp_proc_desc, temp_saved_regs): Remove.
5294 (alpha_about_to_return): Remove.
5295 (cached_proc_desc): Remove.
5296 (alpha_frame_chain): Remove.
5297 (alpha_print_extra_frame_info): Remove.
5298 (alpha_init_extra_frame_info): Remove.
5299 (alpha_frame_locals_address): Remove.
5300 (alpha_frame_args_address): Remove.
5301 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5302 (alpha_push_dummy_frame): Remove.
5303 (alpha_pop_frame): Remove.
5304 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5305 (alpha_read_insn): New.
5306 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5307 for different insn encodings.
5308 (alpha_in_lenient_prologue): Remove.
5309 (struct alpha_sigtramp_unwind_cache): New.
5310 (alpha_sigtramp_frame_unwind_cache): New.
5311 (alpha_sigtramp_register_address): New.
5312 (alpha_sigtramp_frame_this_id): New.
5313 (alpha_sigtramp_frame_prev_register): New.
5314 (alpha_sigtramp_frame_unwind): New.
5315 (alpha_sigtramp_frame_p): New.
5316 (struct alpha_heuristic_unwind_cache): New.
5317 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5318 don't count nop insns that occur between functions.
5319 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5320 heuristic_proc_desc, but without the mdebug wrapping.
5321 (alpha_heuristic_frame_this_id): New.
5322 (alpha_heuristic_frame_prev_register): New.
5323 (alpha_heuristic_frame_unwind): New.
5324 (alpha_heuristic_frame_p): New.
5325 (alpha_heuristic_frame_base_address): New.
5326 (alpha_heuristic_frame_base): New.
5327 (alpha_unwind_dummy_id): New.
5328 (alpha_unwind_pc): New.
5329 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5330 frame related deprecated initializations; install replacements.
5331 (alpha_dump_tdep): Remove.
5332 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5333 (alpha_read_insn, alpha_after_prologue,
5334 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5335 alpha_heuristic_frame_prev_register,
5336 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5337 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5338 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5339 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5341 2003-05-29 Andrew Cagney <cagney@redhat.com>
5343 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5344 dependant on the availability of ASSERT_FUNCTION.
5345 (ASSERT_FUNCTION): Do not define when there is no function name.
5347 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5349 From Jimi X <jimix@watson.ibm.com>:
5350 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5352 2003-05-28 Jim Blandy <jimb@redhat.com>
5354 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5355 argument to ptrace to int; the system headers should give it the
5356 right type, and pointers don't fit in ints on powerpc64-*-*.
5358 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5360 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5363 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5365 * stabsread.c (dbx_lookup_type): Make static.
5367 (add_undefined_type): Ditto.
5368 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5371 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5373 * hpread.c (hpread_has_name): Make static.
5374 (hpread_psymtab_to_symtab): Ditto.
5375 (file_exists): Ditto.
5376 (hpread_call_pxdb): Ditto.
5377 (hpread_pxdb_needed): Ditto.
5378 (hpread_quick_traverse): Ditto.
5379 (hpread_get_header): Ditto.
5380 (hpread_get_lntt): Ditto.
5381 (hpread_get_slt): Ditto.
5384 2003-05-25 Andreas Schwab <schwab@suse.de>
5386 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5387 stack_align and deprecated_extra_stack_alignment_needed.
5388 (m68k_stack_align): Delete.
5390 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5391 (m68k_register_virtual_size): Likewise.
5392 (altos_skip_prologue): Remove obsolete function.
5393 (isi_frame_num_args): Likewise.
5394 (news_frame_num_args): Likewise.
5395 (m68k_fix_call_dummy): Make static.
5396 (m68k_push_dummy_frame): Likewise.
5397 (m68k_pop_frame): Likewise.
5398 (m68k_skip_prologue): Likewise.
5399 (m68k_frame_init_saved_regs): Likewise.
5400 (m68k_saved_pc_after_call): Likewise.
5401 (m68k_get_longjmp_target): Make multi-arch.
5402 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5403 structure. Register m68k_get_longjmp_target if enabled.
5404 * m68k-tdep.h (struct gdbarch_tdep): Define.
5405 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5407 * Makefile.in (config.status): Also depend on configure.tgt
5409 (m68klinux-tdep.o): Update dependencies.
5410 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5411 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5412 (M68K_LINUX_JB_PC): Define.
5413 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5414 and take additional parameter.
5415 (m68k_linux_sigtramp_saved_pc): Update.
5416 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5417 m68k_linux_pc_in_sigtramp, in_plt_section,
5418 find_solib_trampoline_target.
5419 * config/m68k/tm-linux.h: Don't include any tm headers.
5420 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5421 (JB_ELEMENT_SIZE): Likewise.
5423 (GET_LONGJMP_TARGET): Likewise.
5424 (IN_SIGTRAMP): Likewise.
5425 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5427 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5429 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5430 (sparc32_push_arguments): Re-implement by calling
5431 sparc32_do_push_arguments.
5433 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5435 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5436 SPARC_O1_REGNUM): New defines.
5437 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5438 (sparc32_store_return_value): New function.
5439 (sparc_extract_struct_value_address): Rewrite to operate on a
5441 (sparc_gdbarch_init): Don't set
5442 deprecated_extract_struct_value_address. Set
5443 extract_struct_value_address instead. Don't set
5444 deprecated_extract_return_value and deprecated_store_return_value
5445 for 32-bit targets. Set extract_return_value and
5446 store_return_value instead.
5447 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5448 DEPRECTAED_EXTRACT_RETURN_VALUE,
5449 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5450 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5451 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5452 (sparc_store_return_value): Remove prototype.
5453 (sparc32_store_return_value): New prototype.
5454 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5457 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5459 * sparcnbsd-tdep.c: Include "gdb_string.h".
5461 2003-05-23 Andrew Cagney <cagney@redhat.com>
5463 * p-valprint.c (pascal_val_print): Replace extract_address with
5464 the inline equivalent extract_unsigned_integer.
5465 * jv-valprint.c (java_value_print): Ditto.
5466 * ada-valprint.c (ada_val_print_1): Ditto.
5467 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5469 2003-05-23 Theodore A. Roth <troth@openavr.org>
5471 * blockframe.c (frameless_look_for_prologue): Remove unused
5472 after_prologue variable.
5474 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5476 * blockframe.c (get_pc_function_start): Rewrite to avoid
5477 asignments in if-statements.
5479 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5481 Committed by Elena Zannoni <ezannoni@redhat.com>.
5482 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5483 files, don't relocate absolute symbols (and do use mst_abs).
5485 2003-05-23 Andrew Cagney <cagney@redhat.com>
5487 * objc-lang.c: Include "gdb_assert.h".
5488 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5489 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5490 (gdb_check, gdb_check_fatal): Delete functions.
5491 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5493 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5494 * Makefile.in (objc-lang.o): Update dependencies.
5496 2003-05-22 Ian Lance Taylor <ian@airs.com>
5498 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5499 with fprintf_filtered, not fprintf_unfiltered.
5501 2003-05-22 Andrew Cagney <cagney@redhat.com>
5503 * stack.c (frame_info): Inline extract_address, replacing it with
5504 extract_unsigned_integer.
5505 * findvar.c (unsigned_pointer_to_address): Ditto.
5506 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5507 * dwarf2expr.c (dwarf2_read_address): Ditto.
5508 * frame.c (frame_pc_unwind): Update comment.
5509 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5511 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5513 * infptrace.c (detach): Call print_sys_errmsg rather than
5514 perror_with_name to issue warning message when errno is non-zero
5515 after calling ptrace detach.
5517 2003-05-21 J. Brobecker <brobecker@gnat.com>
5519 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5520 macro definitions from here...
5521 * hppa-tdep.c: ...to there.
5523 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5525 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5526 register_ptrace_addr(). Fix all callers.
5528 2003-05-21 Andreas Schwab <schwab@suse.de>
5530 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5532 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5534 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5535 (_initialize_m68k_linux_tdep): New function.
5536 (m68k_linux_frame_saved_pc): Make static.
5537 (m68k_linux_extract_return_value): Likewise.
5538 (m68k_linux_store_return_value): Likewise.
5539 (m68k_linux_extract_struct_value_address): Likewise.
5540 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5542 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5543 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5544 (DEPRECATED_FRAME_SAVED_PC): Remove.
5546 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5548 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5549 regset numbering rather than our own.
5551 2003-05-19 David Carlton <carlton@bactrian.org>
5553 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5555 2003-05-19 David Carlton <carlton@bactrian.org>
5557 Partial fix for PR c++/827.
5558 * cp-support.h: Include symtab.h.
5559 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5560 * cp-namespace.c: Update contributors.
5561 (cp_lookup_symbol_nonlocal): New.
5562 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5563 (lookup_symbol_file): Ditto.
5564 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5565 * block.h: Declare block_scope, block_using, block_global_block.
5566 * block.c (block_scope): New.
5567 (block_using, block_global_block): Ditto.
5568 * Makefile.in (cp_support_h): Depend on symtab_h.
5569 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5571 2003-05-19 David Carlton <carlton@bactrian.org>
5573 * language.h (struct language_defn): Add 'la_value_of_this'
5574 and 'la_lookup_symbol_nonlocal' members.
5575 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5576 lookup_symbol_static, lookup_symbol_global,
5577 lookup_symbol_aux_block.
5578 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5579 if we should search fields of this and how to do static/global
5581 (lookup_symbol_aux_block): Make extern.
5582 (basic_lookup_symbol_nonlocal): New.
5583 (lookup_symbol_static, lookup_symbol_global): Ditto.
5584 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5585 'la_lookup_symbol_nonlocal' members.
5586 * c-lang.c (c_language_defn, cplus_language_defn)
5587 (asm_language_defn, minimal_language_defn): Ditto.
5588 * jv-lang.c (java_language_defn): Ditto.
5589 * language.c (unknown_language_defn, auto_language_defn)
5590 (local_language_defn): Ditto.
5591 * m2-lang.c (m2_language_defn): Ditto.
5592 * objc-lang.c (objc_language_defn): Ditto.
5593 * scm-lang.c (scm_language_defn): Ditto.
5594 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5595 * p-lang.c (pascal_language_defn): Ditto for both.
5596 * Makefile.in (f-lang.o): Depend on value_h.
5599 2003-05-19 David Carlton <carlton@bactrian.org>
5601 * block.h: Declare block_static_block.
5602 * block.c (block_static_block): New.
5603 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5604 lookup_symbol_aux_local, calling block_static_block instead.
5605 (lookup_symbol_aux_local): Delete 'static_block' argument.
5607 2003-05-19 David Carlton <carlton@bactrian.org>
5609 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5611 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5613 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5614 register numbers mapping.
5616 2003-05-18 Adam Fedor <fedor@gnu.org>
5618 * symtab.c (completion_list_objc_symbol): New function.
5619 (make_symbol_completion_list): Use it to add ObjC symbols
5620 when looking though the list.
5621 (language_search_unquoted_string): New function.
5622 (make_file_symbol_completion_list): Use it.
5624 2003-05-18 Andreas Schwab <schwab@suse.de>
5626 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5628 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5629 as m68k_linux_extract_return_value.
5630 (DEPRECATED_STORE_RETURN_VALUE): Define as
5631 m68k_linux_store_return_value.
5632 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5633 m68k_linux_extract_struct_value_address.
5634 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5635 get_next_frame, get_frame_base, get_frame_pc.
5636 (m68k_linux_frame_saved_pc): Use get_frame_base.
5637 (m68k_linux_extract_return_value): New function.
5638 (m68k_linux_store_return_value): New function.
5639 (m68k_linux_extract_struct_value_address): New function.
5640 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5642 * c-exp.y (typebase): Remove duplicate occurence of
5643 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5644 of lookup_signed_typename.
5646 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5648 * dwarf2loc.c (find_location_expression): Change type of second
5649 argument to `size_t *'.
5650 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5653 2003-05-18 David Carlton <carlton@bactrian.org>
5655 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5656 'linkage_name'. Add comment.
5657 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5659 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5660 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5661 (lookup_block_symbol): Ditto.
5663 2003-05-16 Andrew Cagney <cagney@redhat.com>
5665 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5666 * gdbarch.h, gdbarch.c: Re-generate.
5667 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5668 * TODO (REGISTER_BYTES): Delete reference.
5669 * alpha-tdep.c (alpha_gdbarch_init): Update.
5670 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5671 * x86-64-tdep.c (x86_64_init_abi): Update.
5672 * vax-tdep.c (vax_gdbarch_init): Update.
5673 * v850-tdep.c (v850_gdbarch_init): Update.
5674 * sparc-tdep.c (sparc_gdbarch_init): Update.
5675 * sh-tdep.c (sh_gdbarch_init): Update.
5676 * s390-tdep.c (s390_gdbarch_init): Update.
5677 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5678 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5679 (ns32k_gdbarch_init_32382): Update.
5680 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5681 * mcore-tdep.c (mcore_gdbarch_init): Update.
5682 * m68k-tdep.c (m68k_gdbarch_init): Update.
5683 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5684 * ia64-tdep.c (ia64_gdbarch_init): Update.
5685 * i386-tdep.c (i386_gdbarch_init): Update.
5686 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5687 * hppa-tdep.c (hppa_gdbarch_init): Update.
5688 * h8300-tdep.c (h8300_gdbarch_init): Update.
5689 * frv-tdep.c (frv_gdbarch_init): Update.
5690 * cris-tdep.c (cris_gdbarch_init): Update.
5691 * avr-tdep.c (avr_gdbarch_init): Update.
5692 * arm-tdep.c (arm_gdbarch_init): Update.
5693 * sparc-tdep.c (sparc_pop_frame): Update.
5694 * rs6000-tdep.c (rs6000_pop_frame): Update.
5695 * remote.c (init_remote_state): Update.
5696 (remote_prepare_to_store): Update.
5697 * remote-vx.c (vx_prepare_to_store): Update.
5698 * remote-sds.c (sds_fetch_registers): Update.
5699 (sds_prepare_to_store): Update.
5700 * remote-array.c: Update.
5701 * regcache.c (init_legacy_regcache_descr): Update.
5702 (init_regcache_descr): Update.
5703 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5704 (mips_o64_extract_return_value): Update.
5705 * irix5-nat.c (fetch_core_registers): Update.
5706 * irix4-nat.c (fetch_core_registers): Update.
5707 * i386-tdep.h: Update.
5708 * hppa-tdep.c (pa_do_registers_info): Update.
5709 (pa_do_strcat_registers_info): Update.
5710 * cris-tdep.c (cris_register_bytes_ok): Update.
5711 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5712 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5713 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5714 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5715 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5716 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5717 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5718 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5719 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5720 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5721 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5722 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5723 (REGISTER_BYTES_OK): Update.
5724 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5725 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5727 2003-05-16 Ian Lance Taylor <ian@airs.com>
5729 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5730 (vax_print_insn, print_insn_arg): Remove static functions.
5731 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5732 print_insn_vax from opcodes library.
5733 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5735 2003-05-15 Andrew Cagney <cagney@redhat.com>
5737 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5738 * target.h (memory_breakpoint_from_pc): Delete declaration.
5739 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5740 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5741 * monitor.c (monitor_insert_breakpoint): Use
5742 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5743 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5744 * gdbarch.h, gdbarch.c: Re-generate.
5745 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5746 (sparc_gdbarch_init): Set breakpoint_from_pc to
5747 sparc_breakpoint_from_pc.
5748 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5749 (BREAKPOINT_FROM_PC): Define.
5750 (sparc_breakpoint_from_pc): Declare.
5751 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5752 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5753 (BREAKPOINT_FROM_PC): Define.
5754 (BREAKPOINT): Delete macro.
5755 * target.h: Update comment.
5756 * s390-tdep.c (s390_gdbarch_init): Update comments.
5757 * remote.c: Update comments.
5758 * remote-mips.c: Update comments.
5759 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5760 * mem-break.c: Update comment.
5761 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5762 (ia64_memory_insert_breakpoint): Update.
5763 * config/sparc/tm-sparc.h: Update comment.
5764 * config/pa/tm-hppa64.h: Update comment.
5765 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5766 (rs6000_breakpoint_from_pc): Update.
5767 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5768 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5769 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5770 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5771 (mips_breakpoint_from_pc): Update.
5772 (mips_dump_tdep): Update.
5774 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5775 * minsyms.c (lookup_minimal_symbol): Inline
5776 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5778 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5779 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5780 * p-lang.c (pascal_printstr): Ditto.
5781 * objc-lang.c (objc_printstr): Ditto.
5782 * m2-lang.c (m2_printstr): Ditto.
5783 * jv-valprint.c (java_print_value_fields): Ditto.
5784 * f-lang.c (f_printstr): Ditto.
5785 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5786 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5787 for repeat_count_threshold.
5788 * Makefile.in (cp-valprint.o): Update dependencies.
5790 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5792 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5793 (examine_prologue): Support looking through leaf functions, knowing
5794 they start with mov r2,r12. Support skipping over indirect stores
5795 of the input registers. Upon hitting a non-nop branch instruction
5796 or predicated instruction, bail out by setting lim_pc to the current
5797 pc value in the loop. At the end, if the lim_pc value is still
5798 beyond our calculated value and we have trust_limit set,
5799 use the lim_pc value.
5801 2003-05-15 Andrew Cagney <cagney@redhat.com>
5803 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5804 generic_find_dummy_frame.
5805 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5806 (deprecated_generic_find_dummy_frame): Update.
5807 (deprecated_read_register_dummy): Update.
5808 * frame.c (deprecated_generic_get_saved_register): Update.
5810 2003-05-15 Theodore A. Roth <troth@openavr.org>
5812 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5813 (avr_gdbarch_init): Set breakpoint_from_pc method.
5815 2003-05-15 Andrew Cagney <cagney@redhat.com>
5817 * regcache.c (build_regcache): Set deprecated_register_valid
5819 (deprecated_grub_regcache_for_register_valid): Delete function.
5820 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5823 2003-05-15 David Carlton <carlton@bactrian.org>
5825 Committed by Elena Zannoni <ezannoni@redhat.com>
5826 * symtab.c (lookup_symbol_aux): Delete calls to
5827 lookup_symbol_aux_minsyms.
5828 (lookup_symbol_aux_minsyms): Comment out function and
5829 prototype. Delete lookup by mangled name.
5831 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5833 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5834 correctly indicate an empty stack and ``stack_allocated'' to the
5835 indicate the number of elements initially allocated.
5836 (dwarf_expr_grow_stack): Simplify method for computing new
5837 stack size. Don't loop infinitely if ``stack_len'' is zero.
5838 (execute_stack_op): Move ``ctx->in_reg'' initialization
5839 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5840 be used in conjuction with DW_OP_piece. Revise error message
5843 2003-05-14 Theodore A. Roth <troth@openavr.org>
5845 * MAINTAINERS: Update my email address.
5846 * avr-tdep.c: Ditto.
5848 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5850 * symtab.h (enum domain_enum): Rename from namespace_enum.
5851 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5852 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5853 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5854 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5855 TYPES_NAMESPACE, METHODS_NAMESPACE.
5856 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5857 (struct symbol, struct partial_symbol): Rename field
5858 'namespace_enum namespace' to 'domain_enum domain'.
5859 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5860 Delete old define kludge for namespace.
5862 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5863 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5864 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5865 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5866 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5867 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5868 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5869 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5870 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5871 occurrences of the above.
5873 2003-05-14 Ian Lance Taylor <ian@airs.com>
5875 * Makefile.in (install-only): Use $(SHELL) when running
5878 2003-05-13 Ian Lance Taylor <ian@airs.com>
5880 * MAINTAINERS (write after approval): Add myself.
5882 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5883 second and third arguments.
5884 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5885 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5887 2003-05-13 Andrew Cagney <cagney@redhat.com>
5889 * defs.h (store_address): Delete declaration.
5890 findvar.c (store_address): Delete function.
5891 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5892 store_unsigned_integer.
5893 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5894 * v850-tdep.c (v850_push_arguments): Ditto.
5895 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5896 * sh-tdep.c (sh64_get_saved_register): Ditto.
5897 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5898 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5899 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5900 (mips_get_saved_register): Ditto.
5901 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5902 (find_func_descr, ia64_push_arguments): Ditto.
5903 * i386-tdep.c (i386_push_arguments): Ditto.
5904 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5905 * frv-tdep.c (frv_push_arguments): Ditto.
5906 * frame.c (legacy_saved_regs_prev_register): Ditto.
5907 (deprecated_generic_get_saved_register): Ditto.
5908 * findvar.c (unsigned_address_to_pointer): Ditto.
5909 * dwarf2read.c (dwarf2_const_value): Ditto.
5910 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5911 * alpha-tdep.c (alpha_push_arguments): Ditto.
5913 2003-05-12 J. Brobecker <brobecker@gnat.com>
5915 * NEWS: Mention that the hppa-hpux port has been partially
5916 multiarched (32bit ABIT only, so far).
5918 2003-05-11 Andrew Cagney <cagney@redhat.com>
5920 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5921 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5922 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5923 sim/testsuite/sim/arm/misaligned2.ms, and
5924 sim/testsuite/sim/arm/misaligned3.ms.
5925 * disasm.h (struct ui_file): Add opaque struct declaration.
5926 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5927 * frame.h (struct ui_file): Ditto.
5929 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5931 * value.h: Pretty print.
5933 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5935 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5937 2003-05-08 Andrew Cagney <cagney@redhat.com>
5939 * regcache.h (max_register_size): Delete declaration.
5940 * regcache.c (max_register_size): Delete function.
5941 (struct regcache_descr): Delete field "max_register_size".
5942 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5943 registers fit in MAX_REGISTER_SIZE.
5944 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5945 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5946 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5947 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5948 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5949 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5950 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5951 * dve3900-rom.c, hppa-tdep.c: Ditto.
5953 2003-05-08 David Carlton <carlton@math.stanford.edu>
5955 * valops.c (push_word): Fix typo.
5957 2003-05-08 Andrew Cagney <cagney@redhat.com>
5959 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5960 * gdbarch.h: Re-generate.
5961 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5962 (legacy_max_register_raw_size): Delete declaration.
5963 * regcache.c (legacy_max_register_raw_size): Delete function.
5964 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5965 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5966 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5967 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5968 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5969 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5970 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5971 * findvar.c, dwarf2cfi.c: Ditto.
5973 2003-05-08 Andrew Cagney <cagney@redhat.com>
5975 * mips-tdep.c (read_signed_register): New function, moved to here
5977 (read_signed_register_pid): Ditto.
5978 * regcache.c (read_signed_register_pid): Delete function, moved to
5980 (read_signed_register): Ditto.
5981 * regcache.h (read_signed_register): Delete declaration.
5982 (read_signed_register_pid): Delete declaration.
5984 2003-05-08 Andrew Cagney <cagney@redhat.com>
5986 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5987 * gdbarch.h: Re-generate.
5988 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5989 (legacy_max_register_virtual_size): Delete declaration.
5990 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5991 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5992 * tracepoint.c (memrange_sortmerge): Ditto.
5993 * sparc-tdep.c (sparc_print_registers): Ditto.
5994 * regcache.c (legacy_max_register_virtual_size): Delete function.
5996 2002-05-08 J. Brobecker <brobecker@gnat.com>
5998 * fork-child.c (escape_bang_in_quoted_argument): New function.
5999 (fork_inferior): Escape '!' characters in quoted arguments
6002 2003-05-08 J. Brobecker <brobecker@gnat.com>
6004 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6005 the language of the CU is not currently supported by GDB.
6007 2003-05-08 J. Brobecker <brobecker@gnat.com>
6009 * defs.h (language): Add language_minimal enum value.
6010 * c-lang.c (minimal_language_defn): New language definition.
6011 (_initialize_c_language): Add the new minimal language to the list
6012 of languages known to GDB.
6014 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6016 * frame.c (get_frame_type): Don't attempt to lazily initialize
6017 frame's unwinder for legacy frames.
6019 2003-05-07 Andrew Cagney <cagney@redhat.com>
6021 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6022 and "regcache" parameters.
6023 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6025 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6027 * dwarf2read.c (dwarf_decode_lines): Only use output of
6028 check_cu_functions() when calling record_line(). Do not update
6029 the current address.
6031 2003-05-07 Andrew Cagney <cagney@redhat.com>
6033 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6036 2003-05-07 Jim Blandy <jimb@redhat.com>
6038 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6039 'maint info symtabs' and 'maint info psymtabs'.
6040 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6041 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6042 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6043 Declarations updated.
6044 * maint.c (maintenance_list_command): Delete.
6045 (_initialize_maint_cmds): Update calls to add_cmd.
6046 * gdbcmd.h (maintenancelistlist): Delete declaration.
6047 * cli/cli-cmds.c (maintenancelistlist): Delete.
6048 (init_cmd_lists): Don't initialize it.
6049 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6051 2003-05-07 Andrew Cagney <cagney@redhat.com>
6053 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6055 (d10v_print_registers_info): Update.
6056 (d10v_dmap_register, d10v_imap_register): Delete functions.
6057 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6058 and "imap_register".
6059 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6060 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6061 * arch-utils.c (generic_remote_translate_xfer_address): Add
6062 "regcache" and "gdbarch" parameters.
6063 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6064 parameter. Change class to multi-arch.
6065 * gdbarch.h, gdbarch.c: Re-generate.
6066 * remote.c (remote_xfer_memory): Use
6067 gdbarch_remote_translate_xfer_address.
6069 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6071 * infrun.c (prev_pc): Move declaration ahead of proceed().
6072 (proceed): Refresh prev_pc value before resuming.
6073 (stop_stepping): Remove code to refresh prev_pc.
6075 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6077 * nto-tdep.c: Removed stray comment.
6079 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6081 * i386-nto-tdep.c: Fix old K&R function definitions.
6082 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6083 Also change add_show_from_set() call to add_setshow_cmd().
6084 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6086 2003-05-05 Andrew Cagney <cagney@redhat.com>
6088 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6089 (fprint_dummy_frames): New function.
6090 (maintenance_print_dummy_frames): New function.
6091 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6092 * frame.c (fprint_frame_id): Make global.
6093 * frame.h (fprint_frame_id): Declare.
6094 * Makefile.in (dummy-frame.o): Update dependencies.
6096 2003-05-05 Andrew Cagney <cagney@redhat.com>
6098 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6099 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6100 SIZEOF_CALL_DUMMY_WORDS.
6101 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6102 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6103 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6104 CALL_DUMMY_BREAKPOINT_OFFSET.
6105 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6106 CALL_DUMMY_START_OFFSET.
6107 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6108 * gdbarch.h, gdbarch.c: Re-generate.
6109 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6110 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6111 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6112 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6113 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6114 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6115 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6116 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6117 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6118 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6119 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6120 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6121 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6122 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6123 * config/sparc/tm-sparc.h: Update.
6125 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6127 * configure.tgt: Add i[3456]86-*-nto*.
6128 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6129 * nto-tdep.c: New file. Neutrino target support routines.
6130 * nto-tdep.h: New file. Neutrino target header.
6131 * config/tm-qnxnto.h: New file.
6132 * config/i386/i386nto.mt: New file.
6133 * config/i386/tm-i386nto.h: New file.
6135 2003-05-04 Andrew Cagney <cagney@redhat.com>
6137 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6138 (load_infrun_state): Ditto.
6139 (struct thread_info): Drop "prev_func_name" field.
6140 * thread.c (load_infrun_state): Update.
6141 (save_infrun_state): Update.
6142 * infrun.c (prev_func_name): Delete variable.
6143 (init_wait_for_inferior): Do not clear prev_func_name.
6144 (stop_stepping, keep_going, context_switch): Do not swap
6146 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6147 instead of PC_IN_SIGTRAMP.
6149 2003-05-04 Andrew Cagney <cagney@redhat.com>
6151 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6152 REGISTER_BYTE with register_offset_hack.
6153 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6154 that REGISTER_BYTE is consistent with the regcache.
6155 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6156 * gdbarch.h, gdbarch.c: Regenerate.
6158 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6160 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6161 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6163 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6165 2003-05-03 J. Brobecker <brobecker@gnat.com>
6167 From Thierry Schneider <tpschneider1@yahoo.com>
6168 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6169 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6170 (mi-cmd-symbol.o): Add rule.
6172 2003-05-03 Andrew Cagney <cagney@redhat.com>
6174 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6175 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6176 * gdbarch.h, gdbarch.c: Re-generate.
6177 * d10v-tdep.c (d10v_push_dummy_code): New function.
6178 (d10v_gdbarch_init): Set push_dummy_code.
6179 * infcall.c (legacy_push_dummy_code): New function.
6180 (generic_push_dummy_code): New function.
6181 (push_dummy_code): New function.
6182 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6183 instead of dummy_addr, to push_dummy_call. Move call to
6184 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6186 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6188 2003-05-03 Andrew Cagney <cagney@redhat.com>
6190 * disasm.h (print_insn): Declare.
6191 * disasm.c (init_gdb_disassemble_info): New function.
6192 (gdb_disassembly): Call init_gdb_disassemble_info.
6193 (gdb_print_insn): New function.
6194 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6195 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6196 * mcore-tdep.c: Include "disasm.h"
6197 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6198 * d10v-tdep.c: Include "disasm.h".
6199 (display_trace): Call gdb_print_insn, instead of print_insn.
6200 (print_insn): Delete function.
6201 * printcmd.c: Include "disasm.h".
6202 (print_insn): Delete function.
6203 (print_formatted): Call gdb_print_insn, instead of print_insn.
6204 * Makefile.in (printcmd.o): Update dependencies.
6205 (mcore-tdep.o, d10v-tdep.o): Ditto.
6207 2003-05-02 Andrew Cagney <cagney@redhat.com>
6209 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6210 PC_REGNUM, re-indent.
6211 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6212 PC_REGNUM isn't set.
6214 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6215 * gdbarch.h, gdbarch.c: Re-generate.
6216 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6217 register_virtual_size, pc_regnum, or register_bytes.
6218 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6219 (d10v_register_type): Use D10V_PC_REGNUM.
6220 (d10v_print_registers_info, d10v_read_pc): Ditto.
6221 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6222 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6224 2003-05-02 David Carlton <carlton@bactrian.org>
6226 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6227 the name with mstrsave.
6229 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6231 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6232 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6233 (host_charset_name, target_charset_name): New vars for use by
6235 (host_charset_enum, target_charset_enum): New enums for set/show
6237 (set_charset_sfunc, set_host_charset_sfunc,
6238 set_target_charset_sfunc): New functions.
6239 (set_host_charset, set_target_charset): Make static.
6240 (list_charsets, set_host_charset_command,
6241 set_target_charset_command): Delete functions.
6242 (show_charset_command): Rewrite as....
6243 (show_charset): Hook this up with the set/show command mechanism.
6244 (_initialize_charset): Change names of charsets to match the
6245 set/show enums. Use host_charset_name and target_charset_name.
6246 Use set/show mechanism for charset, host-charset, target-charset
6247 commands. Do not make 'show host-charset' and 'show
6248 target-charset' be aliases of 'show charset'.
6250 * charset.h (set_host_charset, set_target_charset): Don't export,
6251 they are not used outside the file.
6253 2003-05-01 Andrew Cagney <cagney@redhat.com>
6255 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6256 (gdb_disassembly): Make "di" non static, always initialize and
6257 cleanup. Always use dis_asm_read_memory.
6258 (gdb_dis_asm_read_memory): Delete function.
6260 2003-05-01 Andrew Cagney <cagney@redhat.com>
6262 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6263 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6265 2003-04-30 Andrew Cagney <cagney@redhat.com>
6267 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6268 "tm_print_insn_info".
6269 (TARGET_PRINT_INSN_INFO): Delete macro.
6270 (dis_asm_read_memory): Delete function declaration.
6271 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6272 (tm_print_insn_info): Delete variable definition.
6273 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6274 * gdbarch.h, gdbarch.c: Re-generate.
6275 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6276 "deprecated_tm_print_insn_info".
6277 * mcore-tdep.c (mcore_dump_insn): Ditto.
6278 * mips-tdep.c (mips_gdbarch_init): Ditto.
6279 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6280 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6281 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6282 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6283 instead of TARGET_PRINT_INSN_INFO, add comment.
6284 * s390-tdep.c (s390_get_frame_info): Instead of
6285 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6286 (s390_check_function_end, s390_is_sigreturn): Ditto.
6287 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6288 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6289 * disasm.c: Include "gdbcore.h".
6290 (_initialize_disasm): New function, initialize
6291 "deprecated_tm_print_insn_info".
6292 (deprecated_tm_print_insn_info): New variable.
6293 (dis_asm_read_memory): Moved from "corefile.c", made static.
6294 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6295 * Makefile.in (disasm.o): Update dependencies.
6297 2003-04-30 Andrew Cagney <cagney@redhat.com>
6299 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6301 2003-04-29 Adam Fedor <fedor@gnu.org>
6303 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6304 * infcall.c (find_function_addr): Make non-static.
6305 * infcall.h (find_function_addr): Declare.
6306 * Makefile.in (eval.o): Update dependencies.
6308 2003-04-28 Adam Fedor <fedor@gnu.org>
6310 * symtab.c (symbol_find_demangled_name): Check for and demangle
6312 (symbol_init_demangled_name): Init for language_objc as well.
6314 2003-04-28 Andrew Cagney <cagney@redhat.com>
6316 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6317 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6318 * gdbarch.h, gdbarch.c: Re-generate.
6319 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6320 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6321 * inferior.h (deprecated_read_fp): Rename read_fp.
6322 (generic_target_read_fp): Delete declaration.
6323 * regcache.c (generic_target_read_fp): Delete function.
6324 (deprecated_read_fp): Replace read_fp, use
6325 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6326 * d10v-tdep.c (d10v_read_fp): Delete function.
6327 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6329 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6330 deprecated_target_read_fp to generic_target_read_fp.
6331 * sh-tdep.c (sh_gdbarch_init): Ditto.
6332 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6333 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6334 * frv-tdep.c (frv_gdbarch_init): Ditto.
6336 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6337 deprecated_fp_regnum.
6338 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6339 * vax-tdep.c (vax_gdbarch_init): Ditto.
6340 * v850-tdep.c (v850_gdbarch_init): Ditto.
6341 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6342 * sh-tdep.c (sh_gdbarch_init): Ditto.
6343 * s390-tdep.c (s390_gdbarch_init): Ditto.
6344 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6345 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6346 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6347 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6348 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6349 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6350 * i386-tdep.c (i386_gdbarch_init): Ditto.
6351 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6352 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6353 * frv-tdep.c (frv_gdbarch_init): Ditto.
6354 * cris-tdep.c (cris_gdbarch_init): Ditto.
6355 * avr-tdep.c (avr_gdbarch_init): Ditto.
6356 * arm-tdep.c (arm_gdbarch_init): Ditto.
6357 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6359 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6360 * v850-tdep.c (v850_gdbarch_init): Ditto.
6361 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6362 * sh-tdep.c (sh_gdbarch_init): Ditto.
6363 * s390-tdep.c (s390_gdbarch_init): Ditto.
6364 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6365 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6366 * mips-tdep.c (mips_gdbarch_init): Ditto.
6367 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6368 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6369 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6370 * frv-tdep.c (frv_gdbarch_init): Ditto.
6371 * avr-tdep.c (avr_gdbarch_init): Ditto.
6372 * arm-tdep.c (arm_gdbarch_init): Ditto.
6374 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6375 DEPRECATED_FP_REGNUM.
6376 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6377 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6378 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6379 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6380 (sparc32_register_virtual_type): Ditto.
6381 * sh-tdep.c (sh64_frame_chain): Ditto.
6382 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6383 (sh_nofp_frame_init_saved_regs): Ditto.
6384 (sh64_nofp_frame_init_saved_regs): Ditto.
6385 (sh_fp_frame_init_saved_regs): Ditto.
6386 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6387 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6388 * procfs.c (procfs_fetch_registers): Ditto.
6389 (procfs_store_registers): Ditto.
6390 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6391 (store_inferior_registers, fetch_core_registers): Ditto.
6392 (fetch_kcore_registers, clear_regs): Ditto.
6393 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6394 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6395 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6396 * nlm/i386.c (do_status): Ditto.
6397 * mipsv4-nat.c (supply_gregset): Ditto.
6398 * mips-tdep.c: Ditto for comments.
6399 * mips-nat.c (fetch_inferior_registers): Ditto.
6400 (store_inferior_registers, fetch_core_registers): Ditto.
6401 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6402 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6403 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6404 (i386_do_pop_frame, i386_register_type): Ditto.
6405 * hppa-tdep.c (hppa_frame_chain): Ditto.
6406 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6407 (hppa_pop_frame, hppa_read_fp): Ditto.
6408 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6409 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6410 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6411 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6412 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6413 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6414 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6415 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6416 * blockframe.c: Ditto for comments.
6417 * arch-utils.h: Ditto for comments.
6418 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6419 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6420 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6421 * alpha-tdep.h: Ditto for comments.
6422 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6423 (alpha_cannot_store_register): Ditto.
6424 (alpha_push_dummy_frame): Ditto.
6425 * alpha-nat.c (supply_gregset): Ditto.
6427 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6428 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6429 * config/sparc/tm-sparc.h: Update comment.
6431 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6432 deprecated_read_fp instead of TARGET_READ_FP.
6433 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6434 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6435 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6436 deprecated_read_fp instead of read_fp.
6437 * s390-tdep.c (s390_push_arguments): Ditto.
6438 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6439 * frame.h: Ditto in comments.
6440 * frame.c (legacy_get_prev_frame): Ditto.
6441 * dummy-frame.c (dummy_frame_this_id): Ditto.
6442 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6444 2003-04-28 Andrew Cagney <cagney@redhat.com>
6446 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6447 * gdbarch.h, gdbarch.c: Re-generate.
6448 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6449 * vax-tdep.c (_initialize_vax_tdep): Update.
6450 * v850-tdep.c (_initialize_v850_tdep): Update.
6451 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6452 * s390-tdep.c (_initialize_s390_tdep): Update.
6453 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6454 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6455 * mips-tdep.c (_initialize_mips_tdep): Update.
6456 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6457 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6458 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6459 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6460 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6461 * frv-tdep.c (_initialize_frv_tdep): Update.
6462 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6463 (_initialize_cris_tdep): Update.
6464 * arch-utils.c (legacy_print_insn): Update.
6465 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6467 2003-04-26 Adam Fedor <fedor@gnu.org>
6469 * linespec.c (decode_objc): New function to decode ObjC calls
6470 (decode_line_1): Check for ObjC calls (using decode_objc)
6471 * Makefile (linespec.o): Update dependencies.
6473 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6475 * breakpoint.h (struct breakpoint_ops): New.
6476 (struct breakpoint): Add ops member.
6478 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6479 (mention): Use new breakpoint ops member.
6480 (set_raw_breakpoint): Initialize ops field to NULL.
6481 (print_exception_catchpoint, print_one_exception_catchpoint)
6482 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6483 (gnu_v3_exception_catchpoint_ops): New.
6484 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6486 2003-04-25 Adam Fedor <fedor@gnu.org>
6488 * Makefile.in (COMMON_OBS): Add objc-lang.o
6490 2003-04-25 Andrew Cagney <cagney@redhat.com>
6492 * d10v-tdep.c (print_insn): Delete function.
6493 (display_trace): Use TARGET_PRINT_INSN.
6494 (_initialize_d10v_tdep): Do not set tm_print_insn.
6495 (d10v_gdbarch_init): Set print_insn.
6497 2003-04-25 Andrew Cagney <cagney@redhat.com>
6499 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6500 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6501 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6502 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6503 (nr_dmap_regs, a0_regnum): ... new functions.
6504 (d10v_print_registers_info): Use a0_regnum, use register_size.
6505 (d10v_register_byte): Delete function.
6506 (d10v_register_raw_size): Delete function.
6507 (d10v_register_type): Use a0_regnum.
6508 (d10v_print_registers_info): Use a0_regnum.
6509 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6510 (d10v_gdbarch_init): Do not set register_byte or
6511 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6512 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6514 (trace_command): Use XCALLOC.
6515 (print_insn): Delete reference to tm_print_insn.
6516 (saved_regs_unwinder): Use store_unsigned_integer instead of
6518 * frame.h (FRAME_OBSTACK_CALLOC): Define
6520 2003-04-25 David Carlton <carlton@bactrian.org>
6522 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6524 2003-04-24 Adam Fedor <fedor@gnu.org>
6526 * objc-lang.c: Include "valprint.h"
6527 * Makefile.in (objc-lang.o): Update dependencies.
6529 2003-04-24 Adam Fedor <fedor@gnu.org>
6531 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6532 architecture dependant compilation and mark as unimplemented
6533 (until they get put in the gdbarch vector).
6535 2003-04-23 David Carlton <carlton@bactrian.org>
6537 * cp-support.c (cp_find_first_component): Accept 'operator' in
6540 2003-04-23 Andrew Cagney <cagney@redhat.com>
6542 * infcall.c (call_function_by_hand): Eliminate redundant
6543 indentation. Move "saved_async" and "old_cleanups" to where they
6546 2003-04-23 Andrew Cagney <cagney@redhat.com>
6548 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6549 and "buffer". Move the "name" code to where it is needed.
6551 2003-04-23 Andrew Cagney <cagney@redhat.com>
6553 * infcall.c (call_function_by_hand): Move variables "start_sp",
6554 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6555 code to ON_STACK switch branch.
6557 2003-04-23 Andrew Cagney <cagney@redhat.com>
6559 * infcall.c (call_function_by_hand): Make declaration of "i",
6560 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6563 2003-04-23 Andrew Cagney <cagney@redhat.com>
6565 * infcall.c (call_function_by_hand): Delete variable
6566 "n_method_args". Localize "param_type"'s declaration to the loop
6567 that it is used. Reinstate code assigning to said variable -
6568 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6569 Rationalize code using "param_type".
6571 2003-04-22 Andrew Cagney <cagney@redhat.com>
6573 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6574 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6575 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6576 to DEPRECATED_PUSH_RETURN_ADDRESS.
6578 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6580 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6581 on the DWARF2 register number prior to fetching a register.
6583 2003-04-22 J. Brobecker <brobecker@gnat.com>
6585 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6586 Update all the tests using SOFT_FLOAT considering the fact that
6587 this macro was always set to 0.
6588 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6589 considering the fact that this macro was always set to 0.
6590 * hppa-tdep.h (hppa_store_return_value): Likewise.
6591 (hppa_extract_return_value): Likewise.
6593 2003-04-22 J. Brobecker <brobecker@gnat.com>
6595 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6596 the hppa-pro target only.
6598 2003-04-21 J. Brobecker <brobecker@gnat.com>
6600 Ongoing multi-arch conversion effort for HP/UX:
6601 * config/pa/tm-hppa.h: Move all macro that are no longer
6602 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6603 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6605 2003-04-21 J. Brobecker <brobecker@gnat.com>
6607 * config/pa/tm-hppa.h: Obsolete a section that was only used
6610 2003-04-21 J. Brobecker <brobecker@gnat.com>
6612 Ongoing multi-arch conversion for HP/UX.
6613 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6614 if already defined (allows hppa64 to stay non-multiarched for now).
6615 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6617 2003-04-21 Andrew Cagney <cagney@redhat.com>
6619 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6621 2003-04-21 Andrew Cagney <cagney@redhat.com>
6623 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6624 "i386_num_mmx_regs".
6626 2003-04-21 Andrew Cagney <cagney@redhat.com>
6628 * infcall.c: New file.
6629 * infcall.h: New file.
6630 * valarith.c: Include "infcall.h".
6631 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6632 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6633 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6634 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6635 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6636 (SFILES): Add "infcall.c"
6637 (COMMON_OBS): Add "infcall.o".
6638 (infcall.o): Specify dependencies.
6639 * value.h (call_function_by_hand): Delete declaration.
6640 * inferior.h (run_stack_dummy): Delete declaration.
6641 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6642 (run_stack_dummy): Move to "infcall.c", merged into
6643 call_function_by_hand.
6644 * valops.c (call_function_by_hand): Moved to "infcall.c".
6645 (find_function_addr, value_arg_coerce): Ditto.
6646 (unwindonsignal_p, coerce_float_to_double): Ditto.
6647 (_initialize_valops): Move "set/show coerce-float-to-double", and
6648 "set/show unwindonsignal" commands to "infcall.c".
6649 * v850-tdep.c, target.h: Update comments.
6650 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6651 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6652 (sh64_init_extra_frame_info): Update comments.
6653 * mn10300-tdep.c: Update comments.
6654 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6655 * config/sparc/tm-sparc.h: Update comments.
6656 * breakpoint.h: Update comments.
6657 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6658 * arm-tdep.c: Update comment.
6660 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6662 * i386-tdep.c (i386_num_register_names): New variable.
6663 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6664 (MM0_REGNUM): Remove redundant parentheses in define.
6665 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6666 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6667 i386_mxcsr_regnum_p): Remove redundant parentheses.
6668 (i386_register_name): Use i386_num_register_names.
6670 * i386-tdep.c (i386_extract_return_value,
6671 i386_store_return_value): Correct check for availability of
6672 floating-point registers.
6674 * i386-tdep.c (i386_frame_num_args): Remove function.
6675 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6677 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6678 mmx_regnum_to_fp_regnum. Adjust all callers.
6680 * i386-tdep.c (i386_get_longjmp_target): Use
6681 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6682 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6685 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6687 * core-regset.c: Update comments to reflect reality. Re-order
6689 (fetch_core_registers): Use switch instead of if. Remove
6690 redundant prototype.
6692 2003-04-18 Jim Blandy <jimb@redhat.com>
6694 * s390-tdep.c (s390_frame_align): New function.
6695 (s390_gdbarch_init): Register it with the gdbarch object.
6697 2003-04-17 Richard Henderson <rth@redhat.com>
6699 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6701 2003-04-17 Michael Snyder <msnyder@redhat.com>
6702 Karen Bennet <bennet@redhat.com>
6704 Committed by Elena Zannoni <ezannoni@redhat.com>
6705 * gdb_gcore.sh: New script to create a core dump of a process.
6707 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6709 * values.c (value_being_returned): Don't fetch the return
6710 value if the return type is void.
6712 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6714 * thread-db.c: Reindented.
6716 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6718 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6719 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6746 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6748 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6749 the size of ``long double'' to 16, instead of 8.
6751 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6753 * i386-linux-nat.c: Add some whitespace to make things more
6755 (fetch_register, store_register, fetch_inferior_registers,
6756 store_inferior_registers): Get rid of assignment in if-statement.
6757 (store_register): Fix typo in error message.
6759 2003-04-16 Andrew Cagney <cagney@redhat.com>
6761 * utils.c (xmmalloc): Always allocate something, matches
6762 libiberty/xmalloc's semantics.
6763 (xmrealloc, xmcalloc): Ditto.
6765 2003-04-16 Andrew Cagney <cagney@redhat.com>
6767 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6769 (get_frame_type): Initialize unwind and type when needed.
6770 (get_frame_id, frame_register_unwind): Ditto.
6772 2003-04-16 Andrew Cagney <cagney@redhat.com>
6774 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6776 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6777 * sparcl-stub.c: Obsolete file.
6778 * config/sparc/tm-sparclet.h: Obsolete file.
6779 * sparclet-stub.c: Obsolete file.
6780 * sparclet-rom.c: Obsolete file.
6781 * sparcl-tdep.c: Obsolete file.
6782 * config/sparc/tm-sparclite.h: Obsolete file.
6783 * config/sparc/sparclite.mt: Obsolete file.
6784 * config/sparc/sparclet.mt: Obsolete file.
6785 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6786 sparc86x-*-* obsolete.
6788 2003-04-15 David Carlton <carlton@math.stanford.edu>
6790 * Makefile.in (SFILES): Add cp-namespace.c.
6791 (COMMON_OBS): Add cp-namespace.o.
6792 (block.o): Depend on gdb_obstack_h and cp_support_h.
6793 (buildsym.o): Depend on cp_support_h.
6794 (cp-namespace.o): New.
6795 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6796 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6797 (dwarf2read.o): Depend on cp_support_h.
6798 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6799 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6800 processing_current_namespace.
6801 (read_namespace): Update processing_current_namespace; check for
6802 anonymous namespaces.
6803 (dwarf2_name): New function.
6804 (dwarf2_extension): Ditto.
6805 * cp-support.h: Update copyright, contributors.
6806 Add inclusion guards.
6807 Add opaque declaration for structs obstack, block, symbol.
6808 (struct using_direct): New struct.
6809 Add declarations for cp_find_first_component,
6810 cp_entire_prefix_len, processing_has_namespace_info,
6811 processing_current_namespace, cp_is_anonymous,
6812 cp_add_using_directive, cp_initialize_namespace,
6813 cp_finalize_namespace, cp_set_block_scope,
6814 cp_scan_for_anonymous_namespaces.
6815 * cp-namespace.c: New file.
6816 * cp-support.c: Update copyright.
6817 Include ctype.h, gdb_assert.h, gdbcmd.h.
6818 New variable maint_cplus_cmd_list.
6819 (cp_find_first_component): New function.
6820 (cp_entire_prefix_len, maint_cplus_command)
6821 (first_component_command, _initialize_cp_support): Ditto.
6822 * buildsym.c: Include cp-support.h.
6823 New variable using_list.
6824 (add_symbol_to_list): Check for anonymous namespaces.
6825 (finish_block): Set block's scope.
6826 (start_symtab): Initialize C++ namespace support.
6827 (end_symtab): Finalize C++ namespace support.
6828 * block.h: Add opaque declarations for structs
6829 block_namespace_info, using_direct, and obstack.
6830 Add declarations for block_set_scope and block_set_using.
6831 (struct block): Add 'language_specific' member.
6832 (BLOCK_NAMESPACE): New macro.
6833 * block.c: Include gdb_obstack.h and cp-support.h.
6834 (struct block_namespace_info): New struct.
6835 (block_set_scope): New function.
6836 (block_set_using, block_initialize_namespace): Ditto.
6838 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6840 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6841 (locate_base): Return early if there aren't any link map offsets.
6842 (svr4_solib_create_inferior_hook): Warn if shared library support
6845 2003-04-14 David Carlton <carlton@math.stanford.edu>
6847 * symtab.c (symbol_set_names): Add prefix when storing Java names
6848 in hash table. Fix for PR java/1039.
6850 2003-04-14 David Carlton <carlton@math.stanford.edu>
6852 * symtab.c (symbol_set_names): Rename 'name' arg to
6853 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6854 * symtab.h: Change 'name' argument in declaration of
6855 symbol_set_names to 'linkage_name'.
6856 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6858 2003-04-14 Andrew Cagney <cagney@redhat.com>
6860 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6861 return the fully sign-extended register value.
6862 (get_frame_pointer): Ditto.
6863 (mips_pop_frame): Initialize "proc_desc" after checking for a
6866 2003-04-14 Andrew Cagney <cagney@redhat.com>
6868 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6869 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6870 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6871 (mips_push_register): Delete function.
6872 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6875 2003-04-14 Jim Blandy <jimb@redhat.com>
6877 * symmisc.c: #include "gdb_regex.h".
6878 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6880 * maint.c (maintenance_list_command): New function.
6881 (_initialize_maint_cmds): Register the above as commands.
6882 * symtab.h (maintenance_list_symtabs,
6883 maintenance_list_psymtabs): New declarations.
6884 * cli/cli-cmds.c (maintenancelistlist): New variable.
6885 (init_cmd_lists): Initialize it.
6886 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6887 * gdbcmd.h (maintenancelistlist): New declaration.
6888 * Makefile.in (symmisc.o): Update dependencies.
6890 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6892 * s390-nat.c: Include asm/types.h for addr_t.
6894 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6896 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6897 actually incoming type.
6899 2003-04-13 Andrew Cagney <cagney@redhat.com>
6901 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6902 get_next_frame and get_frame_saved_regs.
6904 2003-04-13 Andrew Cagney <cagney@redhat.com>
6906 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6907 of gdbarch_num_regs.
6909 2003-04-13 Andrew Cagney <cagney@redhat.com>
6911 * frame.h: Mention what replaced what in "struct frame_info".
6912 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6913 deprecated_update_frame_base_hack and
6914 deprecated_update_frame_pc_hack.
6915 * hppa-tdep.c: Ditto.
6917 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6919 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6920 to read_reg and update its comment. Remove regnum member.
6921 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6922 Don't call read_reg when setting in_reg. Call read_reg to get
6923 the frame base if it's in a register. Return the register number
6924 on the stack instead of in the context. Remove extra arguments
6926 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6927 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6928 the register number on the expression stack.
6929 (needs_frame_read_reg): Remove extra arguments.
6931 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6933 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6935 (execute_stack_op): All callers updated.
6936 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6937 * dwarf2loc.c (find_location_expression): New function.
6938 (dwarf_expr_frame_base): Call it.
6939 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6940 (dwarf2_tracepoint_var_ref): New function, broken out from
6941 locexpr_tracepoint_var_ref.
6942 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6944 (loclist_read_variable, loclist_read_needs_frame): New functions.
6945 (loclist_describe_location, loclist_tracepoint_var_ref): New
6947 (dwarf2_loclist_funcs): New struct location_funcs.
6948 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6949 (struct dwarf2_locexpr_baton): Add comments.
6950 (dwarf2_loclist_funcs): New extern.
6951 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6952 base_address and base_known.
6953 (dwarf_loc_buffer): New variable.
6954 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6955 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6956 (dwarf2_has_info): Initialize dwarf_loc_offset.
6957 (dwarf2_build_psymtabs): Read in .debug_loc.
6958 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6960 (psymtab_to_symtab_1): Likewise. Move base address calculation
6962 (dwarf2_get_pc_bounds): ... here. Use the base address from
6964 (dwarf2_symbol_mark_computed): Handle location lists.
6966 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6968 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6969 if the linkage name demangled successfully.
6971 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6973 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6974 disassmbly_flavour): Removed.
6976 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6978 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6980 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6982 2003-04-12 Andrew Cagney <cagney@redhat.com>
6984 * frame.h (struct frame_info): Move definition from here ...
6985 * frame.c (struct frame_info): ... to here.
6987 2003-04-12 Andrew Cagney <cagney@redhat.com>
6989 * gdbthread.h (save_infrun_state): Delete parameter
6991 (struct thread_info): Delete field "prev_func_start".
6992 (load_infrun_state): Ditto.
6993 * thread.c (load_infrun_state, save_infrun_state): Update.
6994 * infrun.c (prev_func_start): Delete variable.
6995 (context_switch, init_wait_for_inferior): Update.
6996 (stop_stepping, keep_going): Update.
6998 2003-04-12 Andrew Cagney <cagney@redhat.com>
7000 * gdbarch.sh: Add missing opaque declarations.
7001 * gdbarch.h: Regnerate.
7002 * symtab.h: Add missing opaque declarations.
7003 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7004 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7005 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7006 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7007 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7008 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7009 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7010 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7011 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7012 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7013 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7014 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7015 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7017 2003-04-11 Andrew Cagney <cagney@redhat.com>
7019 * frame.c (get_frame_id): Return this frame's "id".
7020 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7022 (legacy_saved_regs_this_id): Replace function body with
7024 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7025 FRAME_OBSTACK_ZALLOC.
7026 (create_new_frame): Mark the frame ID as valid.
7028 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7030 * Makefile.in (libbfd_h): Added missing setting.
7031 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7032 according to the selected ABI.
7034 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7036 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7038 2003-04-11 Andrew Cagney <cagney@redhat.com>
7040 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7041 SAVED_PC_AFTER_CALL.
7042 * gdbarch.h, gdbarch.c: Regenerate.
7043 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7044 * x86-64-tdep.c (x86_64_init_abi): Update.
7045 * vax-tdep.c (vax_gdbarch_init): Update.
7046 * v850-tdep.c (v850_gdbarch_init): Update.
7047 * sparc-tdep.c (sparc_gdbarch_init): Update.
7048 * sh-tdep.c (sh_gdbarch_init): Update.
7049 * s390-tdep.c (s390_gdbarch_init): Update.
7050 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7051 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7052 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7053 * mips-tdep.c (mips_gdbarch_init): Update.
7054 * mcore-tdep.c (mcore_gdbarch_init): Update.
7055 * m68k-tdep.c (m68k_gdbarch_init): Update.
7056 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7057 * ia64-tdep.c (ia64_gdbarch_init): Update.
7058 (ia64_saved_pc_after_call): Update declaration.
7059 * i386ly-tdep.c (i386lynx_init_abi): Update.
7060 * i386-tdep.c (i386_gdbarch_init): Update.
7061 * hppa-tdep.c (hppa_gdbarch_init): Update.
7062 * h8300-tdep.c (h8300_gdbarch_init): Update.
7063 * frv-tdep.c (frv_gdbarch_init): Update.
7064 * cris-tdep.c (cris_gdbarch_init): Update.
7065 * avr-tdep.c (avr_gdbarch_init): Update.
7066 * arm-tdep.c (arm_gdbarch_init): Update.
7067 * alpha-tdep.c (alpha_gdbarch_init): Update.
7068 * ns32knbsd-nat.c (frame_num_args): Update.
7069 * ns32k-tdep.c (umax_frame_num_args): Update.
7070 * mips-tdep.c (mips_init_frame_pc_first): Update.
7071 * infrun.c (step_over_function): Update.
7072 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7073 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7074 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7075 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7076 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7077 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7078 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7079 * arch-utils.c (init_frame_pc_default): Update.
7080 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7081 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7084 2003-04-11 Andrew Cagney <cagney@redhat.com>
7086 * i387-tdep.c: Update copyright.
7087 (i387_to_double): Delete function.
7088 (double_to_i387): Delete function.
7090 2003-04-10 Andrew Cagney <cagney@redhat.com>
7092 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7093 frame's function's address. Simplify.
7094 (d10v_frame_unwind_cache): Check that the frame's function is
7097 2003-04-10 Jim Blandy <jimb@redhat.com>
7099 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7100 call to set_gdbarch_deprecated_push_arguments.
7102 2003-04-10 Andrew Cagney <cagney@redhat.com>
7104 * frame.c (fprint_frame_id): New function.
7105 (fprint_frame_type, fprint_frame): New function.
7106 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7107 (create_sentinel_frame, get_frame_id): Ditto.
7108 (frame_id_p, frame_id_eq): Ditto.
7109 (frame_id_inner, create_new_frame): Ditto.
7110 (legacy_get_prev_frame, get_prev_frame): Ditto.
7111 (deprecated_update_frame_pc_hack): Ditto.
7112 (frame_register_unwind): Ditto.
7113 (deprecated_update_frame_base_hack): Ditto.
7115 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7117 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7118 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7119 frame_chain function.
7120 * Makefile.in: Add dependencies due to above change.
7122 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7124 * blockframe.c (legacy_frame_chain_valid): Move call to
7125 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7128 2003-04-09 Andrew Cagney <cagney@redhat.com>
7130 * frame.h (struct frame_id): Replace "pc" and "base" with
7131 "stack_addr" and "code_addr". Update comments.
7132 (frame_id_build): Update parameter names and comment.
7133 (struct frame_info): Replace "id_p" and "id" with "this_id".
7134 * dummy-frame.c (dummy_frame_this_id): Update.
7135 * breakpoint.c (print_one_breakpoint): Update.
7136 * frame.c (get_frame_id): Update.
7137 (get_frame_base, frame_id_build): Update.
7138 (create_sentinel_frame, legacy_get_prev_frame): Update.
7139 (deprecated_update_frame_base_hack): Update.
7140 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7141 (frame_id_inner): Ditto.
7143 2003-04-09 Andrew Cagney <cagney@redhat.com>
7145 * defs.h (gdb_print_host_address): Make "addr" parameter a
7147 * utils.c (gdb_print_host_address): Update.
7149 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7151 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7152 register number for R0 is 0.
7154 2003-04-09 J. Brobecker <brobecker@gnat.com>
7156 * frame.h (struct gdbarch): Add opaque structure definition
7157 to avoid a compilation warning on LynxOS 4.0.
7159 2003-04-09 Andrew Cagney <cagney@redhat.com>
7161 * frame.h (struct frame_info): Delete field "pc". Replace
7162 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7164 * frame.c (frame_pc_unwind): Update.
7165 (create_sentinel_frame): Do not set "pc".
7166 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7167 (get_frame_pc): Call frame_pc_unwind.
7168 (deprecated_update_frame_pc_hack): Update.
7169 (create_new_frame): Use "pc" not "->pc".
7171 2003-04-09 Andrew Cagney <cagney@redhat.com>
7173 * frame.c (get_frame_id): Eliminate code updating "frame".
7174 (legacy_get_prev_frame): Ditto.
7175 (get_frame_base): Return id.base directly.
7176 (deprecated_update_frame_base_hack): Update "id.base".
7177 * frame.h (struct frame_info): Delete field "frame".
7179 2003-04-09 Andrew Cagney <cagney@redhat.com>
7181 * NEWS: Mention that the "Sequent family" is obsolete.
7182 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7183 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7184 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7185 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7186 * config/i386/tm-ptx4.h: Obsolete file.
7187 * config/i386/tm-ptx.h: Obsolete file.
7188 * symm-tdep.c: Obsolete file.
7189 * config/i386/symmetry.mt: Obsolete file.
7190 * config/i386/tm-symmetry.h: Obsolete file.
7191 * symm-nat.c: Obsolete file.
7192 * config/i386/nm-symmetry.h: Obsolete file.
7193 * config/i386/xm-symmetry.h: Obsolete file.
7194 * config/i386/symmetry.mh: Obsolete file.
7195 * config/i386/nm-ptx4.h: Obsolete file.
7196 * config/i386/ptx4.mh: Obsolete file.
7197 * config/i386/ptx.mt: Obsolete file.
7198 * config/i386/ptx.mh: Obsolete file.
7199 * config/i386/xm-ptx4.h: Obsolete file.
7200 * config/i386/xm-ptx.h: Obsolete file.
7202 2003-04-09 Andrew Cagney <cagney@redhat.com>
7204 Obsolete mips*-*-mach3*.
7205 * NEWS: Mention that mips*-*-mach3* is obsolete.
7206 * m3-nat.c: Obsolete file.
7207 * config/nm-m3.h: Obsolete file.
7208 * config/mips/tm-mipsm3.h: Obsolete file.
7209 * config/mips/mipsm3.mt: Obsolete file.
7210 * config/mips/mipsm3.mh: Obsolete file.
7211 * config/mips/xm-mipsm3.h: Obsolete file.
7212 * mipsm3-nat.c: Obsolete file.
7213 * configure.host: Obsolete mips-dec-mach3*.
7214 * configure.tgt: Obsolete mips*-*-mach3*.
7216 2003-04-09 Andrew Cagney <cagney@redhat.com>
7218 * doublest.h: Update copyright.
7219 (deprecated_store_floating, deprecated_extract_floating): Rename
7220 store_floating and extract_floating. Update comments.
7221 * doublest.c: Update copyright.
7222 (extract_floating_by_length): Replace extract_floating.
7223 (store_floating_by_length): Replace store_floating.
7224 (deprecated_extract_floating): New function.
7225 (deprecated_store_floating): New function.
7226 (extract_typed_floating): Call extract_floating_by_length.
7227 (store_typed_floating): Call store_floating_by_length.
7228 * x86-64-tdep.c (x86_64_store_return_value): Update.
7229 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7230 (sh64_extract_return_value): Update.
7231 (sh_sh4_register_convert_to_virtual): Update.
7232 (sh_sh64_register_convert_to_virtual): Update.
7233 (sh_sh4_register_convert_to_raw): Update.
7234 (sh_sh64_register_convert_to_raw): Update.
7235 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7236 (rs6000_register_convert_to_raw): Update.
7237 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7238 (ia64_register_convert_to_raw): Update.
7239 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7240 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7241 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7242 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7243 (alpha_register_convert_to_raw): Update.
7245 2003-04-08 Andrew Cagney <cagney@redhat.com>
7247 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7248 * gdbarch.h, gdbarch.c: Re-generate.
7249 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7250 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7251 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7252 conditionally, use frame_pc_unwind as an alternative. Add
7254 * arch-utils.c (init_frame_pc_default): Only call
7255 SAVED_PC_AFTER_CALL when available.
7257 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7259 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7260 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7261 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7262 (start_remote): Ditto.
7263 (handle_inferior_event): Ditto.
7264 (save_inferior_status): Ditto.
7265 (restore_inferior_status): Ditto.
7266 * infcmd.c (attach_command): Ditto.
7267 * fork-child.c (startup_inferior): Ditto.
7268 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7269 * alpha-tdep.c (heuristic_proc_start): Ditto.
7270 * mips-tdep.c (heuristic_proc_start): Ditto.
7271 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7272 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7273 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7274 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7275 * remote-vx.c (vx_create_inferior): Ditto.
7277 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7279 * infrun.c (stop_soon_quietly): Make it an enum, to better
7280 override the default behavior of handle_inferior_event.
7281 (clear_proceed_status): Update uses of stop_soon_quietly to
7282 reflect that it is now an enum.
7283 (start_remote): Ditto.
7284 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7285 is set to handle the new GNU/Linux kernel behavior for
7286 attach/sigstop. Update uses of stop_soon_quietly.
7287 * inferior.h (enum stop_kind): New enum.
7288 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7289 Reset normal handle_inferior_event behavior, afterwards.
7290 * fork-child.c (startup_inferior): Update.
7291 * alpha-tdep.c (heuristic_proc_start): Update.
7292 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7293 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7294 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7295 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7296 * remote-vx.c (vx_create_inferior): Update.
7297 * mips-tdep.c (heuristic_proc_start): Update.
7299 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7301 * disasm.c (dump_insns): Move variables inside loop, or they will
7302 be freed more than once, causing wild memory corruptions.
7303 (gdb_disassembly): Look for the substring "-thread",
7304 instead of "-threads" in the target name, to make sure to find
7305 the 'multi-thread' target. Also, make sure we do the right thing
7306 with the "core" target.
7308 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7310 * mips-tdep.c (mips_print_fp_register): New function, created from
7311 do_fp_register_row(). Registers are now (also) printed as hex.
7312 Only one register is printed per row.
7313 (mips_print_register, do_fp_register_row): Print floating point
7314 registers with mips_print_fp_register().
7316 2003-04-06 Andrew Cagney <cagney@redhat.com>
7318 * valprint.h (inspect_it): Add extern declaration.
7319 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7320 (selectors_info, classes_info): Ditto.
7321 (find_objc_msgcall): Fix indentation.
7322 (objc_printstr): Delete extern declarations.
7324 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7326 2003-04-06 Andrew Cagney <cagney@redhat.com>
7328 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7330 * frame.c (legacy_saved_regs_this_id): Update.
7331 (legacy_get_prev_frame): Update.
7332 * xstormy16-tdep.c: Update comment.
7333 * sparc-tdep.c (sparc_frame_chain): Update comment.
7334 * blockframe.c (legacy_frame_chain_valid): Update.
7336 2003-04-06 Andrew Cagney <cagney@redhat.com>
7338 * valprint.c (val_print_type_code_int): Delete #ifdef
7339 PRINT_TYPELESS_INTEGER code.
7341 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7342 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7343 multi-arch definition.
7344 * gdbarch.h: Re-generate.
7346 2003-04-05 Andrew Cagney <cagney@redhat.com>
7348 Eliminate FRAME_FIND_SAVED_REGS.
7349 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7350 Change FSR parameter to a pointer.
7351 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7352 Assume FSR parameter is a pointer.
7353 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7355 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7356 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7357 saved_regs a pointer.
7358 (hppa_frame_saved_pc): Ditto.
7359 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7360 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7362 (restore_pc_queue): Make fsr a pointer.
7363 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7364 (hppa_frame_chain): Make saved_regs a pointer, call
7365 hppa_frame_init_saved_regs.
7366 * sparc-tdep.c: Include "gdb_assert.h".
7367 (sparc_frame_find_saved_regs): Replace internal_error with
7369 * remote-vxsparc.c (vx_read_register): Delete reference to
7370 FRAME_FIND_SAVED_REGS.
7371 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7372 * gdbarch.h: Regenerate.
7373 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7374 (deprecated_get_frame_saved_regs): Delete declaration.
7375 (struct frame_saved_regs): Delete definition.
7376 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7377 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7378 (hppa_frame_find_saved_regs): Delete declaration.
7379 (FRAME_FIND_SAVED_REGS): Delete macro.
7380 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7381 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7382 FRAME_FIND_SAVED_REGS in comment.
7384 2003-04-05 Andrew Cagney <cagney@redhat.com>
7386 * frame.c (frame_func_unwind, get_frame_func): New functions.
7387 * frame.h (get_frame_func, frame_func_unwind): Declare.
7388 (struct frame_info): Add field "prev_func" for caching the
7389 previous frame's function address.
7390 * arm-tdep.c (arm_frameless_function_invocation): Combine
7391 get_pc_function_start and get_frame_pc into get_frame_func.
7392 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7393 (sh64_nofp_frame_init_saved_regs): Ditto.
7394 * s390-tdep.c (s390_function_start): Ditto.
7395 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7396 (rs6000_frameless_function_invocation): Ditto.
7397 (rs6000_frame_saved_pc): Ditto.
7398 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7399 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7400 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7401 (i386_frame_init_saved_regs): Ditto.
7402 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7403 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7404 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7405 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7406 * blockframe.c (frameless_look_for_prologue): Ditto.
7408 2003-04-05 Andrew Cagney <cagney@redhat.com>
7410 * frame.c (legacy_get_prev_frame): Link prev to next at the
7411 function start. Update comments.
7413 2003-04-05 Andrew Cagney <cagney@redhat.com>
7415 * frame.c (get_frame_id): Update comment.
7416 (legacy_get_prev_frame): Update comment.
7417 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7418 * gdbarch.h: Regenerate.
7419 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7420 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7422 2003-04-05 Andrew Cagney <cagney@redhat.com>
7424 * stack.c (print_frame_info): Use get_frame_pc.
7426 2003-04-04 Andrew Cagney <cagney@redhat.com>
7428 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7429 the frame's type from the unwinder.
7430 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7431 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7432 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7433 (get_frame_base_address): Use get_frame_type.
7434 (get_frame_locals_address, get_frame_args_address): Ditto.
7435 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7436 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7437 (struct frame_info): Add comment explaining why the frame contains
7439 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7440 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7441 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7443 * frame-unwind.h: Include "frame.h".
7444 (struct frame_unwind): Add "type" field.
7445 * Makefile.in (frame_unwind_h): Add $(frame_h).
7447 2003-04-04 Andrew Cagney <cagney@redhat.com>
7449 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7450 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7451 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7453 (d10v_unwind_dummy_id): Use frame_id_build.
7454 * frame.c (find_frame_sal): Use get_frame_pc.
7455 (create_new_frame): Use deprecated_update_frame_pc_hack and
7456 deprecated_update_frame_base_hack.
7457 (create_sentinel_frame): Add comment about ->pc going away.
7458 (get_prev_frame): Add comment about ->pc going away.
7459 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7460 frame_id_build, deprecated_update_frame_pc_hack and
7461 deprecated_update_frame_base_hack.
7462 (select_frame): Use get_frame_pc.
7463 (legacy_saved_regs_this_id): Use frame_id_build.
7465 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7467 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7468 signed integer case.
7469 (classify_argument): Handle enumerations and references.
7471 2003-04-04 Andrew Cagney <cagney@redhat.com>
7473 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7476 2003-04-01 Adam Fedor <fedor@gnu.org>
7478 * gdb/objc-lang.c (selectors_info): Replace calls to
7479 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7480 SYMBOL_NATURAL_NAME.
7481 (classes_info, find_methods): Likewise.
7483 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7485 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7486 ``mach'' to the value determined by bfd_default_set_arch_mach().
7488 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7490 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7491 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7492 (mi-cmd-file.o): Update dependencies.
7494 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7496 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7497 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7499 2003-04-01 Adam Fedor <fedor@gnu.org>
7501 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7502 * language.h (struct language_defn): Add la_demangle.
7503 (language_demangle): Declare.
7504 * language.c (language_demangle): New function.
7505 (unk_lang_demangle): Likewise.
7506 (unknown_language_defn, auto_language_defn, local_language_defn):
7507 Add ukn_lang_demangle.
7508 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7509 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7510 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7511 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7512 * jv-lang.c (java_demangle): New function
7513 (java_language_defn): Use it for la_demangle element.
7514 * objc-lang.c (objc_demangle): Add options argument
7515 (objc_language_defn): Use objc_demangle for la_demangle element.
7516 * maint.c (maintenance_demangle): Replace switch with
7517 call to language_demangle.
7518 * utils.c (fprintf_symbol_filtered): Likewise.
7520 2003-04-01 Andrew Cagney <cagney@redhat.com>
7522 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7523 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7524 PRINT_TYPELESS_INTEGER.
7525 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7526 PUSH_RETURN_ADDRESS.
7528 2003-04-01 Andrew Cagney <cagney@redhat.com>
7530 * Makefile.in (d10v-tdep.o): Update dependencies.
7531 * d10v-tdep.c: Include "frame-base.h".
7532 (d10v_frame_unwind): Make constant.
7533 (d10v_frame_base_address): New function.
7534 (d10v_frame_base): New variable.
7535 (d10v_gdbarch_init): Set frame_base default.
7536 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7538 (d10v_frame_unwind_cache): Set and use "prev_sp".
7539 (d10v_frame_this_id): Use the previous frame's inner most stack
7540 address and this frame's func address for the frame ID. Use
7541 frame_id_build. Don't analyze beyond the current instruction.
7543 2003-04-01 Andrew Cagney <cagney@redhat.com>
7545 * frame.h (get_frame_locals_address, get_frame_args_address):
7546 Refer to the base address, instead of the address of the first
7549 2003-04-01 Andrew Cagney <cagney@redhat.com>
7551 Add frame debug info addresses:
7552 * frame-base.c: New file.
7553 * frame-base.h: New file.
7554 * frame.h (struct frame_base): Add opaque declaration.
7555 (get_frame_base): Update comment.
7556 (get_frame_base_address): Declare.
7557 (get_frame_locals_address): Declare.
7558 (get_frame_args_address): Declare.
7559 (struct frame_info): Add "base" and "base_cache". Update
7560 comments on the unwinder.
7561 * frame.c: Include "frame-base.h".
7562 (get_frame_locals_address): New function.
7563 (get_frame_base_address): New function.
7564 (get_frame_args_address): New function.
7565 * findvar.c (read_var_value): Use get_frame_locals_address and
7566 get_frame_args_address.
7567 * stack.c (frame_info): Use get_frame_locals_address and
7568 get_frame_args_address.
7569 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7570 moved to "frame-base.c".
7571 * printcmd.c (print_frame_nameless_args): Ditto.
7572 * symtab.h (address_class): Update comments.
7573 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7574 get_frame_base_address.
7575 * dwarf2expr.c (execute_stack_op): Ditto.
7576 * Makefile.in (frame_base_h): Define.
7577 (frame.o): Update dependencies.
7578 (frame-base.o): Add dependencies.
7579 (SFILES): Add frame-base.c.
7580 (COMMON_OBS): Add frame-base.o.
7582 2003-04-01 Andrew Cagney <cagney@redhat.com>
7584 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7585 CALL_DUMMY_LENGTH): Ditto.
7586 * gdbarch.c: Re-generate.
7587 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7588 (CALL_DUMMY_LENGTH): Delete macro.
7589 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7590 * arm-tdep.c (arm_gdbarch_init): Ditto.
7591 * avr-tdep.c (avr_gdbarch_init): Ditto.
7592 * cris-tdep.c (cris_gdbarch_init): Ditto.
7593 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7594 * frv-tdep.c (frv_gdbarch_init): Ditto.
7595 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7596 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7597 * i386-tdep.c (i386_gdbarch_init): Ditto.
7598 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7599 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7600 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7601 * mips-tdep.c (mips_gdbarch_init): Ditto.
7602 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7603 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7604 * s390-tdep.c (s390_gdbarch_init): Ditto.
7605 * sh-tdep.c (sh_gdbarch_init): Ditto.
7606 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7607 * v850-tdep.c (v850_gdbarch_init): Ditto.
7608 * vax-tdep.c (vax_gdbarch_init): Ditto.
7609 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7611 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7613 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7615 2003-04-01 Andrew Cagney <cagney@redhat.com>
7617 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7618 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7619 * gdbarch.h, gdbarch.c: Re-generate.
7620 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7621 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7622 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7623 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7624 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7625 * infcmd.c (run_stack_dummy): Simplify assuming
7626 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7627 * infrun.c (handle_inferior_event): Ditto.
7628 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7629 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7630 * arm-tdep.c (arm_gdbarch_init): Ditto.
7631 * avr-tdep.c (avr_gdbarch_init): Ditto.
7632 * cris-tdep.c (cris_gdbarch_init): Ditto.
7633 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7634 * frv-tdep.c (frv_gdbarch_init): Ditto.
7635 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7636 * i386-tdep.c (i386_gdbarch_init): Ditto.
7637 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7638 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7639 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7640 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7641 * mips-tdep.c (mips_gdbarch_init): Ditto.
7642 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7643 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7644 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7645 * s390-tdep.c (s390_gdbarch_init): Ditto.
7646 * sh-tdep.c (sh_gdbarch_init): Ditto.
7647 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7648 * v850-tdep.c (v850_gdbarch_init): Ditto.
7649 * vax-tdep.c (vax_gdbarch_init): Ditto.
7650 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7652 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7654 * symfile.c (symfile_relocate_debug_section): Update call to
7655 bfd_simple_get_relocated_section_contents.
7657 2003-03-31 Andrew Cagney <cagney@redhat.com>
7659 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7660 * gdbarch.h, gdbarch.c: Regenerate.
7661 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7662 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7664 * frame.h (generic_fix_call_dummy): Delete declaration.
7665 * dummy-frame.h: Update comment.
7666 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7667 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7669 * sh-tdep.c (sh_gdbarch_init): Ditto.
7670 * s390-tdep.c (s390_gdbarch_init): Ditto.
7671 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7672 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7673 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7674 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7675 * i386-tdep.c (i386_gdbarch_init): Ditto.
7676 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7677 * frv-tdep.c (frv_gdbarch_init): Ditto.
7678 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7679 * cris-tdep.c (cris_gdbarch_init): Ditto.
7680 * avr-tdep.c (avr_gdbarch_init): Ditto.
7681 * arm-tdep.c (arm_gdbarch_init): Ditto.
7683 2003-03-31 J. Brobecker <brobecker@gnat.com>
7685 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7686 (INIT_FRAME_AP): Likewise.
7687 (EXTRA_FRAME_INFO): Likewise.
7689 2003-03-31 Andrew Cagney <cagney@redhat.com>
7691 * gdbarch.sh: Include "symfile.h".
7692 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7693 * gdbarch.h, gdbarch.c: Re-generate.
7694 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7695 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7696 call_dummy_address, the default is at entry_point_address.
7697 * v850-tdep.c (v850_gdbarch_init): Ditto.
7698 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7699 * sh-tdep.c (sh_gdbarch_init): Ditto.
7700 * s390-tdep.c (s390_gdbarch_init): Ditto.
7701 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7702 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7703 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7704 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7705 * i386-tdep.c (i386_gdbarch_init): Ditto.
7706 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7707 * frv-tdep.c (frv_gdbarch_init): Ditto.
7708 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7709 * cris-tdep.c (cris_gdbarch_init): Ditto.
7710 * arm-tdep.c (arm_gdbarch_init): Ditto.
7712 2003-03-31 Andrew Cagney <cagney@redhat.com>
7714 * gdbarch.sh (CALL_DUMMY_P): Delete.
7715 * gdbarch.h, gdbarch.c: Re-generate.
7716 * inferior.h (CALL_DUMMY_P): Delete macro.
7717 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7718 * vax-tdep.c (vax_gdbarch_init): Update.
7719 * v850-tdep.c (v850_gdbarch_init): Update.
7720 * sparc-tdep.c (sparc_gdbarch_init): Update.
7721 * sh-tdep.c (sh_gdbarch_init): Update.
7722 * s390-tdep.c (s390_gdbarch_init): Update.
7723 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7724 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7725 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7726 * mips-tdep.c (mips_gdbarch_init): Update.
7727 * mcore-tdep.c (mcore_gdbarch_init): Update.
7728 * m68k-tdep.c (m68k_gdbarch_init): Update.
7729 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7730 * ia64-tdep.c (ia64_gdbarch_init): Update.
7731 * i386-tdep.c (i386_gdbarch_init): Update.
7732 * h8300-tdep.c (h8300_gdbarch_init): Update.
7733 * frv-tdep.c (frv_gdbarch_init): Update.
7734 * d10v-tdep.c (d10v_gdbarch_init): Update.
7735 * cris-tdep.c (cris_gdbarch_init): Update.
7736 * breakpoint.c (deprecated_frame_in_dummy): Update.
7737 * avr-tdep.c (avr_gdbarch_init): Update.
7738 * alpha-tdep.c (alpha_gdbarch_init): Update.
7739 * arm-tdep.c (arm_gdbarch_init): Update.
7740 * dummy-frame.c (dummy_frame_this_id): Update comments.
7741 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7742 * frame.c (legacy_get_prev_frame): Ditto.
7743 * valops.c (call_function_by_hand): Delete function.
7744 (hand_function_call): Rename to call_function_by_hand
7746 2003-03-30 Andrew Cagney <cagney@redhat.com>
7748 2002-11-10 Klee Dienes <kdienes@apple.com>
7749 * value.h (struct value): Update comment.
7751 2003-03-30 Andrew Cagney <cagney@redhat.com>
7753 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7755 (d10v_gdbarch_init): Do not set fp_regnum.
7757 * frame.c (get_frame_base): Force ID initialization.
7758 (get_prev_frame): Move computation of the frame ID from here ...
7759 (get_frame_id): ... to here.
7760 (legacy_get_prev_frame): Mark the frame ID as valid.
7761 * frame.h (struct frame_info): Add field "id_p".
7763 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7765 * i386-tdep.c (i386_store_struct_return): Removed.
7766 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7768 2003-03-30 Andrew Cagney <cagney@redhat.com>
7770 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7771 * gdbarch.h, gdbarch.c: Regenerate.
7772 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7773 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7774 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7775 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7776 * i386-tdep.c (i386_gdbarch_init): Ditto.
7777 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7778 * cris-tdep.c (cris_gdbarch_init): Ditto.
7779 * vax-tdep.c (vax_gdbarch_init): Ditto.
7780 * s390-tdep.c (s390_gdbarch_init): Ditto.
7781 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7782 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7783 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7784 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7785 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7786 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7787 * sparc-tdep.c (sparc_gdbarch_init): Update.
7788 * sh-tdep.c (sh_gdbarch_init): Update.
7789 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7790 * mips-tdep.c (mips_gdbarch_init): Update.
7791 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7792 * ia64-tdep.c (ia64_gdbarch_init): Update.
7793 * frv-tdep.c (frv_gdbarch_init): Update.
7794 * avr-tdep.c (avr_gdbarch_init): Update.
7795 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7796 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7797 instead of when push_dummy_call is not available.
7799 2003-03-30 Andrew Cagney <cagney@redhat.com>
7801 * infttrace.c: Include "gdbthread.h".
7802 (parent_attach_all): Fix function signature.
7803 (call_ptrace): Update call.
7804 * Makefile.in (infttrace.o): Update dependencies.
7806 2003-03-30 Andrew Cagney <cagney@redhat.com>
7808 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7809 PUSH_RETURN_ADDRESS.
7810 * gdbarch.h, gdbarch.c: Regenerate.
7811 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7812 * x86-64-tdep.c (x86_64_init_abi): Update.
7813 * v850-tdep.c (v850_gdbarch_init): Update.
7814 * sparc-tdep.c (sparc_gdbarch_init): Update.
7815 * sh-tdep.c (sh_gdbarch_init): Update.
7816 * s390-tdep.c (s390_gdbarch_init): Update.
7817 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7818 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7819 * mips-tdep.c (mips_gdbarch_init): Update.
7820 * mcore-tdep.c (mcore_gdbarch_init): Update.
7821 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7822 * ia64-tdep.c (ia64_gdbarch_init): Update.
7823 * i386-tdep.c (i386_gdbarch_init): Update.
7824 * h8300-tdep.c (h8300_gdbarch_init): Update.
7825 * frv-tdep.c (frv_gdbarch_init): Update.
7826 * cris-tdep.c (cris_gdbarch_init): Update.
7827 * avr-tdep.c (avr_gdbarch_init): Update.
7828 * arm-tdep.c (arm_gdbarch_init): Update.
7829 * valops.c (hand_function_call): Update.
7831 2003-03-29 Andrew Cagney <cagney@redhat.com>
7833 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7834 sizeof_call_dummy_words.
7835 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7837 * gdbarch.h: Regenerate.
7839 2003-03-29 Andrew Cagney <cagney@redhat.com>
7841 * infttrace.h: New file.
7842 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7843 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7844 (hpread_read_doc_function_type): Detect an initialized type1.
7845 (hpread_quick_traverse): Initialize mod_name_string.
7846 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7847 (som_solib_get_solib_by_pc): Declare.
7848 (so_lib_thread_start_addr): Declare.
7849 (no_shared_libraries): Declare.
7850 * somread.c (init_import_symbols): Make static. Add forward
7852 * config/pa/nm-hppah.h: Include "infttrace.h" for
7854 (hppa_insert_hw_watchpoint): Declare.
7855 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7856 * hppah-nat.c: Include "gdb_string.h".
7857 (parent_attach_all): Delete extern declaration, moved to
7859 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7861 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7862 * Makefile.in (infttrace_h): Define.
7863 (hpread.o): Update dependencies.
7864 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7865 * hppa-hpux-tdep.c: Include "gdb_string.h".
7866 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7867 * infrun.c (handle_inferior_event): Always initialize
7868 stepped_after_stopped_by_watchpoint. Add default and remove
7869 fallthrough in switch statement.
7870 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7872 (hppa_remove_hw_watchpoint): Ditto.
7874 2003-03-29 Andrew Cagney <cagney@redhat.com>
7876 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7879 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7881 * arm-tdep.c (arm_push_arguments): Delete.
7882 (struct stack_item): New type.
7883 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7884 (arm_store_struct_return): Delte.
7885 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7886 arm_push_arguments or arm_store_struct_return.
7888 2003-03-28 Andrew Cagney <cagney@redhat.com>
7890 * Makefile.in (d10v-tdep.o): Update dependencies.
7891 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7892 * d10v-tdep.c: Include "remote.h".
7893 (target_resume_hook): Delete extern declaration.
7894 (target_wait_loop_hook): Ditto.
7895 (tdisassemble_command): Eliminate assignment in "if" conditional.
7896 (d10v_ts2_register_sim_regno): Eliminate call to
7897 legacy_register_sim_regno.
7898 (d10v_ts3_register_sim_regno): Ditto.
7900 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7902 * thread.c: Reindented.
7904 * linux-proc.c: Ditto.
7906 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7908 * MAINTAINERS (write after approval): Add myself.
7910 2003-03-27 Theodore A. Roth <troth@openavr.org>
7912 * objc-exp.y: Add missing semi-colons.
7914 2003-03-27 Andrew Cagney <cagney@redhat.com>
7916 * regcache.c (write_sp): Delete function and references.
7917 * inferior.h (write_sp): Delete declaration.
7918 * valops.c (hand_function_call): Replace write_sp with
7920 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7921 (sparc_pop_frame): Ditto.
7923 2003-03-27 Andrew Cagney <cagney@redhat.com>
7925 * NEWS: Mention removal of support for hppa*-*-bsd* and
7926 hppa*-*-osf* natives, and hppa*-*-pro* target.
7927 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7928 * config/pa/xm-pa.h: Obsolete file.
7929 * config/pa/xm-hppab.h: Obsolete file.
7930 * config/pa/nm-hppab.h: Obsolete file.
7931 * config/pa/tm-hppab.h: Obsolete file.
7932 * config/pa/tm-hppao.h: Obsolete file.
7933 * config/pa/nm-hppao.h: Obsolete file.
7934 * config/pa/tm-pro.h: Obsolete file.
7935 * config/pa/hppaosf.mt: Obsolete file.
7936 * config/pa/hppaosf.mh: Obsolete file.
7937 * config/pa/hppapro.mt: Obsolete file.
7938 * config/pa/hppabsd.mt: Obsolete file.
7939 * config/pa/hppabsd.mh: Obsolete file.
7940 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7941 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7944 2003-03-27 Andrew Cagney <cagney@redhat.com>
7946 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7947 push_arguments. Don't set push_return_address or write_sp.
7948 (d10v_push_dummy_call): Replace d10v_push_arguments.
7949 (d10v_push_return_address, d10v_write_sp): Delete function,
7950 handled by push_dummy_call.
7952 2003-03-26 Andrew Cagney <cagney@redhat.com>
7954 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7955 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7956 regcache and dummy_addr parameters.
7957 * gdbarch.h, gdbarch.c: Re-generate.
7958 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7959 available; assume it will handle stack alignment and return
7960 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7961 legacy_push_arguments.
7962 (legacy_push_arguments): Rename default_push_arguments.
7963 * value.h (legacy_push_arguments): Rename default_push_arguments.
7964 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7965 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7966 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7967 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7968 * config/i386/tm-symmetry.h: Update.
7969 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7970 * x86-64-tdep.c (x86_64_init_abi): Update.
7971 * v850-tdep.c (v850_gdbarch_init): Update.
7972 * sparc-tdep.c (sparc_gdbarch_init): Update.
7973 * sh-tdep.c (sh_gdbarch_init): Update.
7974 * s390-tdep.c (s390_gdbarch_init): Update.
7975 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7976 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7977 * mips-tdep.c (mips_gdbarch_init): Update.
7978 * mcore-tdep.c (mcore_gdbarch_init): Update.
7979 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7980 * ia64-tdep.c (ia64_gdbarch_init): Update.
7981 * i386-tdep.c (i386_gdbarch_init): Update.
7982 * hppa-tdep.c (hppa_gdbarch_init): Update.
7983 * h8300-tdep.c (h8300_gdbarch_init): Update.
7984 * frv-tdep.c (frv_gdbarch_init): Update.
7985 * d10v-tdep.c (d10v_gdbarch_init): Update.
7986 * cris-tdep.c (cris_gdbarch_init): Update.
7987 * avr-tdep.c (avr_gdbarch_init): Update.
7988 * arm-tdep.c (arm_gdbarch_init): Update.
7989 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7990 * alpha-tdep.c (alpha_gdbarch_init): Update.
7992 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7994 * signals/signals.c (do_target_signal_to_host): Correct realtime
7997 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7999 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8000 (struct sal_chain, map_catch_names): Remove.
8001 (catch_exception_command_1): Don't call
8002 handle_gnu_4_16_catch_command.
8004 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8006 From Mark Dettinger <dettinge@de.ibm.com>:
8007 * dwarf2cfi.c (read_2u): Increment pointer by two.
8009 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8011 * signals/signals.c: Fix typos in last change.
8013 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8015 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8016 not already defined. Use __SIGRTMIN if available.
8017 (target_signal_from_host): Remove SIGRTMIN block.
8018 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8019 the signal is within the realtime range.
8021 2003-03-25 Adam Fedor <fedor@gnu.org>
8023 * Makefile.in (infrun.o): Add $(language_h)
8024 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8025 for language specific trampolines.
8026 * language.h (struct language_defn): Add skip_trampoline.
8027 (skip_language_trampoline): Declare.
8028 * language.c (unk_lang_trampoline, skip_language_trampoline):
8030 (unknown_language_defn, auto_language_defn, local_language_defn):
8031 Add ukn_lang_trampoline.
8032 * ada-lang.c (ada_language_defn): Add NULL for language
8033 specific skip_trampoline.
8034 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8035 scm-lang.c: Likewise.
8036 * objc-lang.c (objc_skip_trampoline): New function.
8037 (objc_language_defn): Add objc_skip_trampoline.
8039 2003-03-25 Andrew Cagney <cagney@redhat.com>
8041 * frame.c (get_prev_frame): Delay validating a frame's ID -
8042 non-NULL, didn't go backwards - until an attempt to unwind it to
8045 2003-03-25 Andrew Cagney <cagney@redhat.com>
8047 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8048 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8049 * gdbarch.h, gdbarch.c: Re-generate.
8050 * config/sparc/tm-sparc.h
8051 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8052 * sparc-tdep.c (sparc_gdbarch_init): Set
8053 deprecated_extra_stack_alignment_needed.
8054 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8055 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8056 extra_stack_alignment_needed.
8057 * v850-tdep.c (v850_gdbarch_init): Ditto.
8058 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8059 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8060 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8061 * cris-tdep.c (cris_gdbarch_init): Ditto.
8062 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8063 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8065 2003-03-25 Andrew Cagney <cagney@redhat.com>
8067 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8068 STORE_STRUCT_RETURN.
8069 * gdbarch.h, gdbarch.c: Regenerate.
8070 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8071 (d10v_push_arguments): Set the struct return register.
8072 (d10v_gdbarch_init): Update.
8073 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8074 * x86-64-tdep.c (x86_64_init_abi): Update.
8075 * vax-tdep.c (vax_gdbarch_init): Update.
8076 * v850-tdep.c (v850_gdbarch_init): Update.
8077 * sparc-tdep.c (sparc_gdbarch_init): Update.
8078 * sh-tdep.c (sh_gdbarch_init): Update.
8079 * s390-tdep.c (s390_gdbarch_init): Update.
8080 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8081 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8082 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8083 * mips-tdep.c (mips_gdbarch_init): Update.
8084 * mcore-tdep.c (mcore_gdbarch_init): Update.
8085 * m68k-tdep.c (m68k_gdbarch_init): Update.
8086 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8087 * ia64-tdep.c (ia64_gdbarch_init): Update.
8088 * i386-tdep.c (i386_gdbarch_init): Update.
8089 * hppa-tdep.c (hppa_gdbarch_init): Update.
8090 * h8300-tdep.c (h8300_gdbarch_init): Update.
8091 * frv-tdep.c (frv_gdbarch_init): Update.
8092 * cris-tdep.c (cris_gdbarch_init): Update.
8093 * avr-tdep.c (avr_gdbarch_init): Update.
8094 * arm-tdep.c (arm_gdbarch_init): Update.
8095 * alpha-tdep.c (alpha_gdbarch_init): Update.
8097 2003-03-25 Andrew Cagney <cagney@redhat.com>
8099 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8100 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8101 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8102 * gdbarch.h, gdbarch.c: Regenerate.
8103 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8104 call_dummy_stack_adjust_p.
8105 * vax-tdep.c (vax_gdbarch_init): Ditto.
8106 * v850-tdep.c (v850_gdbarch_init): Ditto.
8107 * sh-tdep.c (sh_gdbarch_init): Ditto.
8108 * s390-tdep.c (s390_gdbarch_init): Ditto.
8109 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8110 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8111 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8112 * mips-tdep.c (mips_gdbarch_init): Ditto.
8113 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8114 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8115 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8116 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8117 * i386-tdep.c (i386_gdbarch_init): Ditto.
8118 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8119 * frv-tdep.c (frv_gdbarch_init): Ditto.
8120 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8121 * cris-tdep.c (cris_gdbarch_init): Ditto.
8122 * avr-tdep.c (avr_gdbarch_init): Ditto.
8123 * arm-tdep.c (arm_gdbarch_init): Ditto.
8124 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8125 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8126 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8127 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8128 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8129 call_dummy_stack_adjust_p.
8130 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8131 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8132 * sparc-tdep.c (sparc32_push_arguments): Update.
8133 * valops.c (hand_function_call): Update.
8135 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8137 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8138 set_gdbarch_char_signed.
8140 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8143 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8145 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8147 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8148 (_initialize_arm_tdep): Don't set tm_print_insn.
8150 2003-03-24 Adam Fedor <fedor@gnu.org>
8152 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8153 * objc-lang.h: Add multiple inclusion protection.
8154 (start_msglist, add_msglist, end_msglist): Additional declarations.
8156 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8158 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8159 value was renamed to ARM_FLOAT_SOFT_FPA.
8161 2003-03-23 Andrew Cagney <cagney@redhat.com>
8163 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8164 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8165 * gdbarch.h, gdbarch.c: Regenerate.
8166 * valops.c (hand_function_call): Update.
8167 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8168 * frame.c (legacy_saved_regs_this_id): Update.
8169 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8170 * dummy-frame.h: Update.
8171 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8172 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8173 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8174 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8175 * config/m68k/tm-sun3.h: Update.
8176 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8177 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8178 * x86-64-tdep.c (x86_64_init_abi): Update.
8179 * vax-tdep.c (vax_gdbarch_init): Update.
8180 * v850-tdep.c (v850_gdbarch_init): Update.
8181 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8182 * sh-tdep.c (sh_gdbarch_init): Update.
8183 * s390-tdep.c (s390_gdbarch_init): Update.
8184 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8185 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8186 (frame_get_saved_regs): Update.
8187 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8188 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8189 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8190 * mips-tdep.c (mips_gdbarch_init): Update.
8191 * mcore-tdep.c (mcore_gdbarch_init): Update.
8192 * m68k-tdep.c (m68k_gdbarch_init): Update.
8193 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8194 * ia64-tdep.c (ia64_gdbarch_init): Update.
8195 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8196 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8197 (i386_interix_back_one_frame): Update.
8198 * hppa-tdep.c (hppa_gdbarch_init): Update.
8199 (hppa_init_extra_frame_info): Update.
8200 * h8300-tdep.c (h8300_gdbarch_init): Update.
8201 * frv-tdep.c (frv_gdbarch_init): Update.
8202 * cris-tdep.c (cris_gdbarch_init): Update.
8203 * avr-tdep.c (avr_gdbarch_init): Update.
8204 * arm-tdep.c (arm_gdbarch_init): Update.
8205 * alpha-tdep.c (alpha_gdbarch_init): Update.
8207 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8209 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8210 (arm_get_fp_model): Declare.
8211 * arm-tdep.c (fp_model_strings): New string array.
8212 (arm_fp_model, current_fp_model): New variables.
8213 (arm_get_fp_model): New function.
8214 (arm_set_fp): New function.
8215 (set_fp_model_sfunc): New function.
8216 (show_fp_model): New function.
8217 (_initialize_arm_tdep): Add new command to set/show the FPU.
8218 (arm_extract_return_value): Use arm_get_fp_model.
8219 (arm_store_return_value): Likewise.
8220 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8221 to initialize the floating-point data types.
8222 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8225 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8227 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8228 the current setting of each value.
8229 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8230 new_set and new_show. Use add_setshow_cmd_full and
8231 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8232 commands and add new version as subcommands of "set/show arm".
8234 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8236 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8237 (set_arm_command, show_arm_command): New functions.
8238 (_initialize_arm_tdep): Add them.
8239 (num_disassembly_options): Renamed from num_flavor_options.
8240 (valid_disassembly_styles): Renamed from valid_flavors.
8241 (disassembly_style): Renamed from disassembly_flavor.
8242 (set_disassembly_style_sfunc): Renamed from
8243 set_disassembly_flavor_sfunc.
8244 (set_disassembly_style): Renamed from set_disassembly_flavor.
8245 (arm_othernames): Updated.
8246 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8247 command. Add "set/show arm disassembly" commands. Deprecate
8248 "othernames" command.
8250 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8252 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8253 (arm-tdep.o): Depend on elf_arm_h.
8255 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8257 * Makefile.in (coff_internal_h): Define.
8258 (arm-tdep.o): Update dependencies.
8260 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8262 * arm-tdep.c (prologue_cache): Delete.
8263 (check_prologue_cache, save_prologue_cache): Delete.
8264 (arm_scan_prologue): Don't check or update the prologue_cache.
8265 (arm_gdb_arch_init): Don't initialize it.
8266 (_initialize_arm_tdep): Likewise.
8268 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8270 * MAINTAINERS (tui): Maintainer of tui code.
8272 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8274 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8275 (i386-cygwin-tdep.o): Add dependencies.
8276 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8277 * i386-cygwin-tdep.c: New file.
8278 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8279 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8281 2003-03-20 Andrew Cagney <cagney@redhat.com>
8283 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8284 (handle_inferior_event): Remove code calling
8285 DYNAMIC_TRAMPOLINE_NEXTPC.
8287 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8288 already has a full path.
8290 * main.c (gdb_main): Return 1.
8291 (captured_main): Call error to report an invalid interpreter.
8293 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8294 * alpha-osf1-tdep.c: Include "gdb_string.h".
8296 2003-03-19 J. Brobecker <brobecker@gnat.com>
8298 Continuing work to convert the hppa targets to multiarch partial.
8300 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8301 method, now that hppa_push_dummy_frame has a conformant prototype.
8302 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8303 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8304 for the switch to multiarch partial.
8306 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8308 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8309 when iss is issNull.
8311 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8313 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8314 NUM_REGS bounds check.
8316 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8318 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8319 * mips-tdep.c (gdb_assert.h): Include.
8320 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8321 (mips_register_name): Handle integer registers explicitly. Add
8323 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8324 (mips_lsi33k_reg_names): Don't list integer registers; they're
8325 handled by mips_register_name() now.
8326 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8327 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8328 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8329 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8330 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8332 2003-03-18 Andrew Cagney <cagney@redhat.com>
8334 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8336 * gdbtypes.h (print_scalar_formatted): Update declaration.
8337 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8339 2003-03-18 J. Brobecker <brobecker@gnat.com>
8341 * infrun.c (observer.h): Add #include.
8342 (normal_stop): Add call to observer_notify_normal_stop.
8343 * Makefile.in (infrun.o): Add dependency on observer.h.
8345 2003-03-18 J. Brobecker <brobecker@gnat.com>
8347 Continuing work to convert the hppa targets to multiarch partial.
8348 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8349 parameter. Reformat comment.
8350 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8351 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8352 to match new profile.
8354 2003-03-18 J. Brobecker <brobecker@gnat.com>
8356 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8357 appear to be working in any case.
8359 2003-03-18 J. Brobecker <brobecker@gnat.com>
8361 * observer.c (observer_test_first_observer): New static variable.
8362 (observer_test_second_observer): Likewise.
8363 (observer_test_third_observer): Likewise.
8364 (observer_test_first_notification_function): New static function.
8365 (observer_test_second_notification_function): Likewise.
8366 (observer_test_third_notification_function): Likewise.
8368 2003-03-17 J. Brobecker <brobecker@gnat.com>
8370 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8371 * somsolib.c (gdb_assert.h): Likewise.
8372 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8373 (somsolib.o): Likewise.
8375 2003-03-17 Andrew Cagney <cagney@redhat.com>
8377 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8378 BFD. Simplify setting of di.endian.
8380 2003-03-17 Andrew Cagney <cagney@redhat.com>
8382 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8383 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8385 From Elena Zannoni <ezannoni@redhat.com>
8386 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8387 vector and floating-point parameters.
8388 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8390 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8392 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8394 * MAINTAINERS: Remove my name from several maintainership roles.
8396 2003-03-17 Andrew Cagney <cagney@redhat.com>
8398 Fix frame off-by-one bug.
8399 * frame-unwind.h (frame_this_id_ftype): Replace
8400 frame_unwind_id_ftype.
8401 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8402 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8403 with "prev_register".
8404 * frame-unwind.c (frame_unwind_find_by_pc): Return
8405 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8407 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8408 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8409 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8410 (dummy_frame_unwind): Update.
8411 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8412 sentinel_frame_register_unwind.
8413 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8414 (sentinel_frame_unwinder): Update.
8415 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8416 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8417 * frame.c (create_sentinel_frame): Update. Initialize
8418 "prologue_cache" instead of "unwind_cache".
8419 (frame_register_unwind): Call this frame's prev_register with the
8420 next frame and this frame's prologue cache.
8421 (get_prev_frame): Simplify. Always call prev frame's this_id with
8422 this frame and prev frame's prologue cache. Document that this
8423 call is shifted one to the left when compared to the
8424 frame_register_unwind call.
8425 (legacy_saved_regs_prev_register): Replace
8426 frame_saved_regs_register_unwind.
8427 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8428 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8429 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8430 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8431 (d10v_frame_unwind): Update.
8432 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8433 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8434 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8435 "saved_regs" with "this_saved_regs".
8437 2003-03-16 Andrew Cagney <cagney@redhat.com>
8439 * frame.c (frame_pop): Don't call target_store_registers. Fix
8440 problem reported by Mark Kettenis.
8442 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8444 * i386-tdep.c (i386_register_type): Renamed from
8445 i386_register_virtual_type. Adjust function signature.
8446 (i386_gdbarch_init): Set register_type instead of
8447 deprecated_max_register_raw_size,
8448 deprecated_max_register_virtual_size and register_virtual_type.
8450 2003-03-14 Andrew Cagney <cagney@redhat.com>
8452 * frame.c (get_prev_frame): When a legacy frame, always call
8453 legacy_get_prev_frame. Simplify unwind code using assumption that
8454 the unwinder is new.
8455 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8456 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8457 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8459 2003-03-14 Andrew Cagney <cagney@redhat.com>
8461 * frame.c (get_saved_register): Delete function.
8462 * frame.h (get_saved_register): Delete declaration.
8463 * xstormy16-tdep.c: Update comment.
8464 * regcache.h: Update comments.
8465 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8466 get_saved_register and extract_address, use
8467 frame_read_unsigned_register.
8468 (sparc_frame_saved_pc): Ditto.
8469 (sparc_get_saved_register): Instead of get_saved_register, use
8471 (sparc_pop_frame): Ditto.
8472 * findvar.c: Update comments.
8473 (value_of_register): Call frame_register instead of
8475 (value_from_register): Ditto.
8476 * config/sparc/tm-sparc.h: Update comment.
8477 * breakpoint.c: Update comment.
8479 2003-03-14 Andrew Cagney <cagney@redhat.com>
8481 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8483 * gdbarch.h, gdbarch.c: Re-generate.
8484 * frame.h: Update comments.
8485 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8486 * x86-64-tdep.c (x86_64_init_abi): Update.
8487 * sparc-tdep.c (sparc_gdbarch_init): Update.
8488 * sh-tdep.c (sh_gdbarch_init): Update.
8489 * mips-tdep.c (mips_gdbarch_init): Update.
8490 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8491 * cris-tdep.c (cris_gdbarch_init): Update.
8492 * ia64-tdep.c (ia64_gdbarch_init): Update.
8493 * frame.c (frame_register): Update.
8494 (get_saved_register): Update.
8495 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8497 2003-03-13 Andrew Cagney <cagney@redhat.com>
8499 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8500 * gdbarch.h, gdbarch.c: Regenerate.
8501 * valops.c (hand_function_call): Update comment.
8502 * stack.c (return_command): Update comment.
8503 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8504 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8505 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8506 * x86-64-tdep.c (x86_64_init_abi): Update.
8507 * vax-tdep.c (vax_gdbarch_init): Update.
8508 * v850-tdep.c (v850_gdbarch_init): Update.
8509 * sparc-tdep.c (sparc_gdbarch_init): Update.
8510 * sh-tdep.c (sh_gdbarch_init): Update.
8511 * s390-tdep.c (s390_gdbarch_init): Update.
8512 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8513 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8514 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8515 * mips-tdep.c (mips_gdbarch_init): Update.
8516 * mcore-tdep.c (mcore_gdbarch_init): Update.
8517 * m68k-tdep.c (m68k_gdbarch_init): Update.
8518 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8519 * ia64-tdep.c (ia64_gdbarch_init): Update.
8520 * i386-tdep.c (i386_gdbarch_init): Update.
8521 * hppa-tdep.c (hppa_gdbarch_init): Update.
8522 * h8300-tdep.c (h8300_gdbarch_init): Update.
8523 * frv-tdep.c (frv_gdbarch_init): Update.
8524 * cris-tdep.c (cris_gdbarch_init): Update.
8525 * avr-tdep.c (avr_gdbarch_init): Update.
8526 * arm-tdep.c (arm_gdbarch_init): Update.
8527 * alpha-tdep.c (alpha_gdbarch_init): Update.
8529 2003-03-13 Andrew Cagney <cagney@redhat.com>
8531 * frame.c (legacy_frame_p): New function.
8532 (get_prev_frame): Use legacy_frame_p.
8533 * frame.h (legacy_frame_p): Declare.
8535 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8537 * MAINTAINERS (write after approval): Alphabetically
8540 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8542 * MAINTAINERS (write after approval): Add myself.
8544 2003-03-12 Andrew Cagney <cagney@redhat.com>
8546 * frame.c (get_prev_frame): Rename the frame parameter to
8548 (get_next_frame, legacy_get_prev_frame): Ditto.
8550 2003-03-12 Andrew Cagney <cagney@redhat.com>
8552 * frame.c (get_current_frame): Check target_has_registers before
8553 checking target_has_stack.
8554 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8555 instead of deprecated_selected_frame.
8556 * findvar.c (value_of_register): Pass "frame", not
8557 deprecated_selected_frame, to value_of_builtin_reg.
8559 2003-03-12 Andrew Cagney <cagney@redhat.com>
8561 * regcache.c (regcache_cooked_write_signed): New function.
8562 (regcache_cooked_write_unsigned): New function.
8563 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8564 (regcache_cooked_read_signed): Fix regnum in range assertion.
8565 * regcache.h (regcache_cooked_write_signed): Declare.
8566 (regcache_cooked_write_unsigned): Declare.
8568 2003-03-12 Andrew Cagney <cagney@redhat.com>
8570 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8571 * gdbarch.h, gdbarch.c: Re-generate.
8572 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8573 * x86-64-tdep.h: Update.
8574 * x86-64-tdep.c (x86_64_init_abi): Update.
8575 * v850-tdep.c (v850_gdbarch_init): Update.
8576 * sparc-tdep.c (sparc_gdbarch_init): Update.
8577 * sh-tdep.c (sh_gdbarch_init): Update.
8578 * s390-tdep.c (s390_gdbarch_init): Update.
8579 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8580 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8581 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8582 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8583 * mips-tdep.c (mips_gdbarch_init): Update.
8584 * mcore-tdep.c (mcore_gdbarch_init): Update.
8585 * m68k-tdep.c (m68k_gdbarch_init): Update.
8586 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8587 * ia64-tdep.c (ia64_gdbarch_init): Update.
8588 * i386-tdep.c (i386_gdbarch_init): Update.
8589 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8590 * hppa-tdep.c (hppa_gdbarch_init): Update.
8591 * h8300-tdep.c (h8300_gdbarch_init): Update.
8592 * frv-tdep.c (frv_gdbarch_init): Update.
8593 * cris-tdep.c (cris_gdbarch_init): Update.
8594 * avr-tdep.c (avr_gdbarch_init): Update.
8595 * arm-tdep.c (arm_gdbarch_init): Update.
8596 * alpha-tdep.c (alpha_gdbarch_init): Update.
8597 * sh-tdep.c (sh_init_extra_frame_info): Update.
8598 (sh64_init_extra_frame_info): Update.
8599 * ns32knbsd-nat.c (frame_num_args): Update.
8600 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8601 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8602 (xstormy16_frame_chain_valid): Update.
8603 * vax-tdep.c (vax_saved_pc_after_call): Update.
8604 * v850-tdep.c (v850_frame_chain): Update.
8605 (v850_pop_frame): Update.
8606 (v850_init_extra_frame_info): Update.
8607 * sparc-tdep.c (setup_arbitrary_frame): Update.
8608 * ns32k-tdep.c (umax_frame_num_args): Update.
8609 * s390-tdep.c (s390_pop_frame_regular): Update.
8610 * mn10300-tdep.c (mn10300_frame_chain): Update.
8611 (mn10300_pop_frame_regular): Update.
8612 (mn10300_init_extra_frame_info): Update.
8613 * mips-tdep.c (mips_init_frame_pc_first): Update.
8614 (mips_frame_chain): Update.
8615 (mips_pop_frame): Update.
8616 * mcore-tdep.c (mcore_frame_chain): Update.
8617 (mcore_pop_frame): Update.
8618 (mcore_init_extra_frame_info): Update.
8619 * arch-utils.c (init_frame_pc_default): Update.
8620 * m68k-tdep.c (isi_frame_num_args): Update.
8621 (delta68_frame_num_args): Update.
8622 (news_frame_num_args): Update.
8623 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8624 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8625 (alpha_frame_chain): Update.
8626 (alpha_pop_frame): Update.
8627 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8628 (hppa_init_extra_frame_info): Update.
8629 (hppa_frame_chain): Update.
8630 (hppa_frame_chain_valid): Update.
8631 * cris-tdep.c (cris_init_extra_frame_info): Update.
8632 * avr-tdep.c (avr_init_extra_frame_info): Update.
8633 * arm-tdep.c (arm_frame_chain_valid): Update.
8634 (arm_init_extra_frame_info): Update.
8635 (arm_pop_frame): Update.
8636 * frame.c (frame_pc_unwind): Update.
8637 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8638 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8639 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8640 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8641 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8642 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8644 2003-03-12 Andrew Cagney <cagney@redhat.com>
8646 Eliminate the need for POP_FRAME.
8647 * frame.c (do_frame_unwind_register): New function.
8648 (frame_pop): When no POP_FRAME, pop the frame using register
8649 unwind and a scratch regcache.
8650 (frame_saved_regs_pop): Delete function.
8651 (trad_frame_unwinder): Update.
8652 * d10v-tdep.c (d10v_frame_pop): Delete function.
8653 (d10v_frame_unwind): Update.
8654 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8655 (sentinel_frame_unwinder): Update.
8656 * dummy-frame.c (dummy_frame_pop): Delete function.
8657 (dummy_frame_unwind): Update.
8658 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8659 (struct frame_unwind): Update.
8661 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8663 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8664 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8665 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8666 Do range checks on register number obtained from debugging info.
8667 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8668 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8669 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8671 (do_fp_register_row): Fix typo which caused double type to be
8672 used when attempting to unpack a float.
8674 2003-03-11 J. Brobecker <brobecker@gnat.com>
8676 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8678 2003-03-11 Andrew Cagney <cagney@redhat.com>
8680 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8681 frame. Problem found by Corinna Vinschen.
8683 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8685 * doublest.c (floatformat_from_length): Accept also
8686 the real size of 'long double' type.
8688 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8690 From Klee Dienes <kdienes@apple.com>:
8691 * breakpoint.c (bpstat_copy): Copy the command lines as well
8692 as the old value, to match what is freed in bpstat_clear.
8694 2003-03-10 David Carlton <carlton@math.stanford.edu>
8696 * minsyms.c (add_minsym_to_hash_table): Replace
8697 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8698 (compare_minimal_symbols, compact_minimal_symbols)
8699 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8700 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8701 of DEPRECATED_SYMBOL_MATCHES_NAME.
8702 (lookup_minimal_symbol_solib_trampoline): Ditto.
8704 2003-03-10 Andrew Cagney <cagney@redhat.com>
8706 * regcache.h (regcache_cooked_read_ftype): Define.
8707 (regcache_save, regcache_restore): Add a cooked_read parameter.
8708 * regcache.c (regcache_save, regcache_restore): Update.
8709 (do_cooked_read): New function.
8710 (regcache_cpy): Pass do_cooked_read to regcache_save and
8713 2003-03-10 Andrew Cagney <cagney@redhat.com>
8715 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8716 * gdbarch.h, gdbarch.c: Re-generate.
8717 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8718 * x86-64-tdep.h: Update.
8719 * x86-64-tdep.c (x86_64_init_abi): Update.
8720 * v850-tdep.c (v850_gdbarch_init): Update.
8721 * sparc-tdep.c (sparc_gdbarch_init): Update.
8722 * sh-tdep.c (sh_gdbarch_init): Update.
8723 * s390-tdep.c (s390_gdbarch_init): Update.
8724 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8725 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8726 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8727 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8728 * mips-tdep.c (mips_gdbarch_init): Update.
8729 * mcore-tdep.c (mcore_gdbarch_init): Update.
8730 * m68k-tdep.c (m68k_gdbarch_init): Update.
8731 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8732 * ia64-tdep.c (ia64_gdbarch_init): Update.
8733 * i386-tdep.c (i386_gdbarch_init): Update.
8734 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8735 * hppa-tdep.c (hppa_gdbarch_init): Update.
8736 * h8300-tdep.c (h8300_gdbarch_init): Update.
8737 * frv-tdep.c (frv_gdbarch_init): Update.
8738 * cris-tdep.c (cris_gdbarch_init): Update.
8739 * avr-tdep.c (avr_gdbarch_init): Update.
8740 * arm-tdep.c (arm_gdbarch_init): Update.
8741 * alpha-tdep.c (alpha_gdbarch_init): Update.
8742 * sh-tdep.c (sh_init_extra_frame_info): Update.
8743 (sh64_init_extra_frame_info): Update.
8744 * ns32knbsd-nat.c (frame_num_args): Update.
8745 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8746 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8747 (xstormy16_frame_chain_valid): Update.
8748 * vax-tdep.c (vax_saved_pc_after_call): Update.
8749 * v850-tdep.c (v850_frame_chain): Update.
8750 (v850_pop_frame): Update.
8751 (v850_init_extra_frame_info): Update.
8752 * sparc-tdep.c (setup_arbitrary_frame): Update.
8753 * ns32k-tdep.c (umax_frame_num_args): Update.
8754 * s390-tdep.c (s390_pop_frame_regular): Update.
8755 * mn10300-tdep.c (mn10300_frame_chain): Update.
8756 (mn10300_pop_frame_regular): Update.
8757 (mn10300_init_extra_frame_info): Update.
8758 * mips-tdep.c (mips_init_frame_pc_first): Update.
8759 (mips_frame_chain): Update.
8760 (mips_pop_frame): Update.
8761 * mcore-tdep.c (mcore_frame_chain): Update.
8762 (mcore_pop_frame): Update.
8763 (mcore_init_extra_frame_info): Update.
8764 * arch-utils.c (init_frame_pc_default): Update.
8765 * m68k-tdep.c (isi_frame_num_args): Update.
8766 (delta68_frame_num_args): Update.
8767 (news_frame_num_args): Update.
8768 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8769 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8770 (alpha_frame_chain): Update.
8771 (alpha_pop_frame): Update.
8772 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8773 (hppa_init_extra_frame_info): Update.
8774 (hppa_frame_chain): Update.
8775 (hppa_frame_chain_valid): Update.
8776 * cris-tdep.c (cris_init_extra_frame_info): Update.
8777 * avr-tdep.c (avr_init_extra_frame_info): Update.
8778 * arm-tdep.c (arm_frame_chain_valid): Update.
8779 (arm_init_extra_frame_info): Update.
8780 (arm_pop_frame): Update.
8781 * frame.c (frame_pc_unwind): Update.
8782 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8783 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8784 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8785 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8786 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8787 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8789 2003-03-10 Andrew Cagney <cagney@redhat.com>
8791 * gdbarch.sh (gdbarch_unwind_pc): New method.
8792 * gdbarch.h, gdbarch.c: Regenerate.
8793 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8794 but use read_pc and FRAME_SAVED_PC as fall backs.
8795 (frame_saved_regs_pc_unwind): Delete function.
8796 (trad_frame_unwinder): Update.
8797 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8798 (struct frame_unwind): Update.
8799 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8800 (dummy_frame_unwind): Update.
8801 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8802 (sentinel_frame_unwinder): Update.
8803 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8804 (d10v_frame_unwind): Update.
8805 (d10v_unwind_pc): New function.
8806 (d10v_gdbarch_init): Set unwind_pc.
8808 2003-03-10 Andrew Cagney <cagney@redhat.com>
8810 * gdbarch.h: Re-generate.
8812 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8814 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8817 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8819 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8821 2003-03-08 Andrew Cagney <cagney@redhat.com>
8823 * cli-out.c: Update copyright.
8824 (cli_out_data): Define typedef. Use instead of ui_out_data.
8826 2003-03-08 Andrew Cagney <cagney@redhat.com>
8828 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8831 2003-03-07 Andrew Cagney <cagney@redhat.com>
8833 * gdbarch.sh: Don't generate two macro definitions when an
8834 undefined macro taking no arguments.
8835 * gdbarch.h: Regenerate.
8837 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8839 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8840 (x86_64_unwind_dummy_id): New functions.
8841 (x86_64_init_abi): Register these two new functions.
8843 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8845 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8846 (x86_64_skip_prologue): Move prologue detection to
8848 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8850 2003-03-05 Andrew Cagney <cagney@redhat.com>
8852 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8853 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8854 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8855 to use unwind_dummy_id when a dummy frame.
8856 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8858 * gdbarch.h, gdbarch.c: Regneerate.
8860 2003-03-05 Andrew Cagney <cagney@redhat.com>
8862 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8863 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8864 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8867 2003-03-05 Andrew Cagney <cagney@redhat.com>
8869 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8870 (struct d10v_unwind_cache): Delete field "frameless". Replace
8871 "next_addr" with "sp_offset". Add "r11_offset".
8872 (d10v_frame_unwind_cache): Update.
8873 (prologue_find_regs): Update. When "mv r11, sp", save the
8874 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8875 RN was saved in r11_offset.
8877 2003-03-05 Andrew Cagney <cagney@redhat.com>
8879 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8880 cached PC value in the next frame.
8882 2003-03-05 Andrew Cagney <cagney@redhat.com>
8884 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8885 "id_unwind_cache" with "id".
8886 (frame_id_unwind): Delete declaration.
8887 * frame.c (frame_id_unwind): Delete function.
8888 (get_prev_frame): Call the frame id unwind method directly. Store
8889 the returned next frame's ID value in NEXT_FRAME. Note that there
8890 is a problem with the wrong unwind ID being called with the wrong
8893 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8895 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8897 2003-03-05 James Ingham <jingham@apple.com>
8898 Daniel Jacobowitz <drow@mvista.com>
8900 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8901 (auto_cp_abi): New variable.
8902 (current_cp_abi, num_cp_abis): Make static.
8903 (CP_ABI_MAX): Define.
8904 (cp_abis): Turn into an array.
8905 (value_virtual_fn_field): Fix formatting.
8906 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8908 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8909 (list_cp_abis, _initialize_cp_abi): New functions.
8910 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8911 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8912 switch_to_cp_abi. Update prototype for register_cp_abi.
8913 * Makefile.in (cp-abi.o): Update dependencies.
8914 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8915 instead of switch_to_cp_abi.
8916 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8918 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8920 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8922 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8924 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8925 * dwarf2loc.c: Include "regcache.h".
8926 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8928 * Makefile.in (dwarf2loc.o): Update dependencies.
8930 2003-03-04 Theodore A. Roth <troth@openavr.org>
8932 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8933 number of io registers reported by remote target is not a multiple of
8936 2003-03-04 David Carlton <carlton@math.stanford.edu>
8938 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8939 (lookup_symbol_aux_psymtabs): Update call to
8940 lookup_partial_symbol.
8941 (lookup_transparent_type, find_main_psymtab)
8942 (make_symbol_overload_list): Ditto.
8944 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8946 * MAINTAINERS (Write after approval): Update my email address.
8948 2003-03-03 Andrew Cagney <cagney@redhat.com>
8950 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8951 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8952 predicate. Replace MAX_REGISTER_RAW_SIZE.
8953 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8954 MAX_REGISTER_VIRTUAL_SIZE.
8955 * regcache.c (legacy_max_register_raw_size): New function.
8956 (legacy_max_register_virtual_size): New function.
8957 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8958 (MAX_REGISTER_RAW_SIZE): Define.
8959 (legacy_max_register_raw_size): Declare.
8960 (legacy_max_register_virtual_size): Declare.
8961 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8962 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8963 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8964 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8965 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8966 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8967 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8968 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8969 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8970 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8971 * vax-tdep.c (vax_gdbarch_init): Update.
8972 * v850-tdep.c (v850_gdbarch_init): Update.
8973 * sparc-tdep.c (sparc_gdbarch_init): Update.
8974 * sh-tdep.c (sh_gdbarch_init): Update.
8975 * s390-tdep.c (s390_gdbarch_init): Update.
8976 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8977 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8978 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8979 * mips-tdep.c (mips_gdbarch_init): Update.
8980 * mcore-tdep.c (mcore_gdbarch_init): Update.
8981 * m68k-tdep.c (m68k_gdbarch_init): Update.
8982 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8983 * ia64-tdep.c (ia64_gdbarch_init): Update.
8984 * i386-tdep.c (i386_gdbarch_init): Update.
8985 * hppa-tdep.c (hppa_gdbarch_init): Update.
8986 * h8300-tdep.c (h8300_gdbarch_init): Update.
8987 * frv-tdep.c (frv_gdbarch_init): Update.
8988 * cris-tdep.c (cris_gdbarch_init): Update.
8989 * avr-tdep.c (avr_gdbarch_init): Update.
8990 * arm-tdep.c (arm_gdbarch_init): Update.
8991 * alpha-tdep.c (alpha_gdbarch_init): Update.
8992 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8993 max_register_raw_size or max_register_virtual_size.
8995 2003-03-03 David Carlton <carlton@math.stanford.edu>
8997 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8998 SYMBOL_MATCHES_NAME, add comment.
8999 (SYMBOL_MATCHES_NATURAL_NAME): New.
9000 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9001 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9002 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9003 * symtab.c (lookup_partial_symbol): Use
9004 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9006 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9007 SYMBOL_MATCHES_NAME.
9010 2003-03-03 David Carlton <carlton@math.stanford.edu>
9012 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9013 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9014 by regexp matching against SYMBOL_NATURAL_NAME.
9016 2003-03-03 David Carlton <carlton@math.stanford.edu>
9018 * linespec.c (find_method): Extract code into collect_methods.
9019 (collect_methods): New.
9021 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9023 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9026 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9027 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9029 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9031 * arch-utils.c (generic_register_byte): Fix to use the loop index
9032 and not regnum when summing the size of all registers up to regnum.
9034 2003-03-01 Andrew Cagney <cagney@redhat.com>
9036 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9037 FRAME_INIT_SAVED_REGS.
9038 * gdbarch.h, gdbarch.c: Regenerate.
9039 * stack.c (frame_info): Update.
9040 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9041 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9042 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9043 * ns32k-tdep.c (ns32k_pop_frame): Update.
9044 * mips-tdep.c (mips_pop_frame): Update.
9045 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9046 * ia64-tdep.c (ia64_frame_chain): Update.
9047 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9048 (ia64_frameless_function_invocation): Update.
9049 (ia64_init_extra_frame_info): Update.
9050 (ia64_pop_frame_regular): Update.
9051 * frame.h (struct frame_info): Update comment.
9052 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9053 * frame.c (frame_saved_regs_register_unwind): Update.
9054 (frame_saved_regs_register_unwind): Update.
9055 (deprecated_generic_get_saved_register): Update.
9056 * cris-tdep.c: Update comment.
9057 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9059 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9060 * x86-64-tdep.c (x86_64_init_abi): Update.
9061 * vax-tdep.c (vax_gdbarch_init): Update.
9062 * v850-tdep.c (v850_gdbarch_init): Update.
9063 * sparc-tdep.c (sparc_gdbarch_init): Update.
9064 * sh-tdep.c (sh_gdbarch_init): Update.
9065 * s390-tdep.c (s390_gdbarch_init): Update.
9066 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9067 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9068 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9069 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9070 * mips-tdep.c (mips_gdbarch_init): Update.
9071 * mcore-tdep.c (mcore_gdbarch_init): Update.
9072 * m68k-tdep.c (m68k_gdbarch_init): Update.
9073 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9074 * ia64-tdep.c (ia64_gdbarch_init): Update.
9075 * i386-tdep.c (i386_gdbarch_init): Update.
9076 * frv-tdep.c (frv_gdbarch_init): Update.
9077 * avr-tdep.c (avr_gdbarch_init): Update.
9078 * arm-tdep.c (arm_gdbarch_init): Update.
9079 * alpha-tdep.c (alpha_gdbarch_init): Update.
9081 2003-03-01 Andrew Cagney <cagney@redhat.com>
9083 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9084 option enum and switch. When no windows, set the interpreter to
9087 2003-03-01 Andrew Cagney <cagney@redhat.com>
9089 * main.c (captured_main): Replace magic option characters with an
9092 2003-03-01 Andrew Cagney <cagney@redhat.com>
9094 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9095 INIT_EXTRA_FRAME_INFO.
9096 * gdbarch.h, gdbarch.c: Regenerate.
9097 * arm-tdep.c: Update comments.
9098 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9099 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9100 * frame.h, avr-tdep.c: Ditto.
9101 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9102 (create_new_frame, legacy_get_prev_frame): Ditto.
9103 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9104 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9105 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9106 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9107 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9108 * v850-tdep.c (v850_gdbarch_init): Ditto.
9109 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9110 * sh-tdep.c (sh_gdbarch_init): Ditto.
9111 * s390-tdep.c (s390_gdbarch_init): Ditto.
9112 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9113 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9114 * mips-tdep.c (mips_gdbarch_init): Ditto.
9115 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9116 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9117 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9118 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9119 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9120 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9121 * frv-tdep.c (frv_gdbarch_init): Ditto.
9122 * cris-tdep.c (cris_gdbarch_init): Ditto.
9123 * avr-tdep.c (avr_gdbarch_init): Ditto.
9124 * arm-tdep.c (arm_gdbarch_init): Ditto.
9125 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9126 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9128 2003-03-01 Andrew Cagney <cagney@redhat.com>
9130 * gdbarch.sh (register_type): New function with predicate.
9131 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9132 * gdbarch.h, gdbarch.c: Re-generate.
9133 * arch-utils.c (generic_register_byte): Use generic_register_size.
9134 (generic_register_size): When available, use
9135 gdbarch_register_type.
9136 * regcache.c (init_regcache_descr): When available, initialize the
9137 register type array using gdbarch_register_type. If the
9138 architecture supplies gdbarch_register_type, do not use the legacy
9140 * d10v-tdep.c (d10v_register_type): Replace
9141 d10v_register_virtual_type.
9142 (d10v_gdbarch_init): Set register_type instead of
9143 register_virtual_type.
9145 2003-03-01 Andrew Cagney <cagney@redhat.com>
9147 * Makefile.in (ax-gdb.o): Update dependencies.
9148 * ax-gdb.c: Include "regcache.h".
9149 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9150 * findvar.c (value_of_register): Ditto.
9151 * infcmd.c (default_print_registers_info): Ditto.
9153 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9155 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9156 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9158 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9160 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9163 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9165 * Makefile.in (dwarf2loc.o): Update dependencies.
9166 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9167 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9168 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9169 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9170 (locexpr_tracepoint_var_ref): New function.
9171 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9173 2003-02-28 Andrew Cagney <cagney@redhat.com>
9175 * regcache.c (register_size): New function.
9176 * regcache.h (register_size): Declare
9177 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9178 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9180 2003-02-28 David Carlton <carlton@math.stanford.edu>
9182 * linespec.c (decode_compound): Extract code into find_method.
9185 2003-02-28 J. Brobecker <brobecker@gnat.com>
9187 * Makefile.in: Add rules to build and link in observer.o.
9189 2003-02-27 J. Brobecker <brobecker@gnat.com>
9191 * observer.c: Minor comments edits.
9193 2003-02-27 J. Brobecker <brobecker@gnat.com>
9195 * observer.h, observer.c: New file.
9197 2003-02-27 Andrew Cagney <cagney@redhat.com>
9199 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9201 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9203 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9204 (M6812_OP_STS_EXT): Likewise.
9205 (m6811_prologue): Use the above to recognize prologue.
9206 (m6812_prologue): Likewise.
9208 2003-02-27 David Carlton <carlton@math.stanford.edu>
9210 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9212 (compare_psymbols): Ditto.
9213 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9215 2003-02-27 Michael Snyder <msnyder@redhat.com>
9217 * f-lang.c (build_fortran_types): New function.
9218 (_initialize_f_language): Gdbarch-register built-in fortran types.
9219 * doublest.c (extract_floating): Fix warning text.
9221 2003-02-27 Andrew Cagney <cagney@redhat.com>
9223 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9224 predicate. Replaces PUSH_DUMMY_FRAME.
9225 * gdbarch.h, gdbarch.c: Regnerate.
9226 * valops.c (hand_function_call): Update. Call
9227 generic_push_dummy_frame directly.
9228 * vax-tdep.c (vax_gdbarch_init): Update.
9229 * sparc-tdep.c (sparc_gdbarch_init): Update.
9230 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9231 * m68k-tdep.c (m68k_gdbarch_init): Update.
9232 * hppa-tdep.c (hppa_gdbarch_init): Update.
9233 * alpha-tdep.c (alpha_gdbarch_init): Update.
9234 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9235 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9236 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9237 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9238 push_dummy_frame to generic_push_dummy_frame.
9239 * v850-tdep.c (v850_gdbarch_init): Ditto.
9240 * sh-tdep.c (sh_gdbarch_init): Ditto.
9241 * s390-tdep.c (s390_gdbarch_init): Ditto.
9242 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9243 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9244 * mips-tdep.c (mips_gdbarch_init): Ditto.
9245 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9246 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9247 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9248 * i386-tdep.c (i386_gdbarch_init): Ditto.
9249 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9250 * frv-tdep.c (frv_gdbarch_init): Ditto.
9251 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9252 * cris-tdep.c (cris_gdbarch_init): Ditto.
9253 * avr-tdep.c (avr_gdbarch_init): Ditto.
9254 * arm-tdep.c (arm_gdbarch_init): Ditto.
9256 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9258 * mips-tdep.c (show_mips_abi): New function.
9259 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9260 command ``show mips abi''.
9262 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9264 From Elena Zannoni <ezannoni@redhat.com>
9265 * dbxread.c (process_one_symbol): Only record line 0 if one or
9266 more sline entries have been seen for the function.
9268 2003-02-26 Michael Chastain <mec@shout.net>
9270 * configure: Regenerate with autoconf 000227.
9272 2003-02-26 Michael Chastain <mec@shout.net>
9275 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9276 for old libc5/glibc.
9277 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9279 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9281 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9282 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9284 2003-02-26 Michael Chastain <mec@shout.net>
9286 * configure.in: New variable HAVE_UINTPTR_T.
9287 * configure, config.in: Regenerated.
9289 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9292 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9294 2003-02-25 Andrew Cagney <cagney@redhat.com>
9296 * frame.c (get_prev_frame): Add comment on check for
9297 inside_entry_func. Only check for inside_entry_file when not a
9298 dummy and not a sentinel. Check that the new frame is not inner
9301 2003-02-25 Andrew Cagney <cagney@redhat.com>
9303 * frame.c (frame_debug): New variable.
9304 (_initialize_frame): Add "set/show debug frame" command.
9305 (get_prev_frame): When frame_debug, print reason why unwind
9308 2003-02-25 Michael Chastain <mec@shout.net>
9310 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9311 to avoid uintptr_t definition problems.
9313 2003-02-25 David Carlton <carlton@math.stanford.edu>
9315 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9316 (SYMBOL_LINKAGE_NAME): Ditto.
9317 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9318 SYMBOL_LINKAGE_NAME.
9319 (struct general_symbol_info): Expand comment.
9320 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9321 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9322 (SYMBOL_MATCHES_REGEXP): Ditto.
9323 * symtab.c (symbol_natural_name): New function.
9324 * objfiles.h: Replace all uses of SYMBOL_NAME by
9325 DEPRECATED_SYMBOL_NAME.
9326 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9327 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9328 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9329 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9330 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9331 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9332 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9333 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9334 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9335 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9337 * ada-exp.y: Update copyright.
9338 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9339 * cp-valprint.c: Ditto.
9341 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9343 * infptrace.c (detach): Do not flag error if ptrace detach fails
9344 and errno is set to ESRCH.
9346 2003-02-24 Andrew Cagney <cagney@redhat.com>
9348 * infptrace.c (udot_info): Change type of udot_off to long. Use
9349 paddr when printing udot_off's value.
9351 2003-02-24 David Carlton <carlton@math.stanford.edu>
9353 * symtab.c (make_symbol_overload_list): Only read in partial
9354 symtabs containing a matching partial symbol.
9356 2003-02-24 David Carlton <carlton@math.stanford.edu>
9358 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9359 do the comparison, not strcmp.
9360 * symfile.c (compare_psymbols): Ditto.
9361 * defs.h: Declare strcmp_iw_ordered.
9362 * utils.c (strcmp_iw_ordered): New function.
9364 2003-02-24 Jim Blandy <jimb@redhat.com>
9366 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9367 support, shared libs): Remove my name from here, to better reflect
9370 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9372 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9373 (target_ops): Add to_have_continuable_watchpoint.
9374 * target.c (update_current_target): Add INHERIT line for
9375 to_have_continuable_watchpoint.
9376 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9377 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9378 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9379 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9381 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9383 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9386 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9388 * solib.c (solib_open): Call target defined search function after
9389 failing with solib-search-path.
9390 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9391 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9393 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9395 * MAINTAINERS: Add myself to Write After section.
9397 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9399 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9401 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9403 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9404 (m68hc11_add_reggroups): New function.
9405 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9406 (m68hc11_gdbarch_init): Install the reggroups.
9407 (_initialize_m68hc11_tdep): Initialize them.
9409 2003-02-21 James E Wilson <wilson@tuliptree.org>
9411 * MAINTAINERS: Update my email address.
9413 2003-02-21 David Carlton <carlton@math.stanford.edu>
9415 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9417 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9419 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9420 * symtab.h: Add opaque declarations of struct axs_value and
9422 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9423 (struct location_funcs): New type.
9424 (struct symbol): Add "loc" to aux_value.
9425 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9426 * dwarf2read.c: Include "dwarf2expr.h".
9427 (dwarf2_symbol_mark_computed): New function.
9428 (read_func_scope): Use it.
9429 (var_decode_location): New function.
9430 (new_symbol): Use it.
9431 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9433 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9434 (dwarf2expr_h, dwarf2loc_h): New variables.
9435 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9436 (dwarf2expr.o, dwarf2loc.o): New rules.
9437 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9438 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9440 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9441 * m2-exp.y (yylex): Likewise.
9442 * printcmd.c (address_info, print_frame_args): Likewise.
9443 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9444 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9445 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9446 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9447 * symtab.c (lookup_block_symbol): Likewise.
9449 2003-02-20 Adam Fedor <fedor@gnu.org>
9451 * symtab.h: Remove objc_specific struct
9452 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9453 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9454 Have language_objc use cplus_specific struct.
9456 2003-02-20 Tom Tromey <tromey@redhat.com>
9458 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9459 TYPE_NAME, when printing a String value. PR java/1075.
9461 2003-02-20 Adam Fedor <fedor@gnu.org>
9463 * objc-lang.h (find_methods): Remove declaration.
9464 * objc-lang.c (find_methods): Make static.
9466 2003-02-20 Christopher Faylor <cgf@redhat.com>
9468 * win32-nat.c (get_image_name): Check return value from
9470 (child_xfer_memory): Ditto.
9472 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9474 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9475 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9476 '${exec_prefix}' (in addition to the expansion thereof) as
9478 * configure: Rebuilt.
9480 2003-02-20 David Carlton <carlton@math.stanford.edu>
9482 * symtab.c (search_symbols): Revert the search_symbols part of my
9483 2002-12-23 patch. Add comment.
9485 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9487 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9488 * dbxread.c (elfstab_build_psymtabs): Don't call
9489 install_minimal_symbols.
9490 (stabsect_build_psymtabs): Likewise.
9491 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9493 * somread.c (som_symfile_read): Call install_minimal_symbols
9494 and do_cleanups earlier.
9495 * nlmread.c (nlm_symfile_read): Likewise.
9496 * mdebugread.c (elfmdebug_build_psymtabs): Call
9497 install_minimal_symbols and make appropriate cleanups.
9499 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9501 * solib.c (reload_shared_libraries): New function.
9502 (_initialize_solib): Add callbacks for ``set solib-search-path''
9503 and ``set solib-absolute-prefix''.
9505 2003-02-20 David Carlton <carlton@math.stanford.edu>
9507 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9509 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9510 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9511 * ada-typeprint.c (ada_typedef_print): Ditto.
9512 * ax-gdb.c (gen_var_ref): Ditto.
9513 * breakpoint.c (print_one_breakpoint): Ditto.
9514 * buildsym.c (finish_block): Ditto.
9515 * c-valprint.c (c_val_print): Ditto.
9516 * expprint.c (print_subexp): Ditto.
9517 * findvar.c (locate_var_value): Ditto.
9518 * infcmd.c (jump_command): Ditto.
9519 * linespec.c (decode_line_2, decode_compound): Ditto.
9520 * maint.c (maintenance_translate_address): Ditto.
9521 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9522 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9524 * p-valprint.c (pascal_val_print): Ditto.
9525 * stabsread.c (define_symbol): Ditto.
9526 * stack.c (print_frame, frame_info, print_block_frame_locals)
9527 (print_frame_arg_vars, return_command): Ditto.
9528 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9529 * symmisc.c (print_symbol): Ditto.
9530 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9531 (compare_search_syms, print_symbol_info, print_msymbol_info)
9532 (rbreak_command): Ditto.
9533 * tracepoint.c (tracepoints_info): Ditto.
9534 * typeprint.c (typedef_print): Ditto.
9535 * valops.c (value_of_variable, hand_function_call): Ditto.
9536 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9537 * ada-typeprint.c: Update Copyright.
9538 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9539 * tracepoint.c, cli/cli-cmds.c: Ditto.
9541 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9543 * frame.c (generic_unwind_get_saved_register): Make non-static.
9544 * frame.h (generic_unwind_get_saved_register): Declare.
9545 * mips-tdep.c (read_next_frame_reg): Fetch register from
9546 current regcache when frame is NULL.
9547 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9549 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9550 instead of frame_register_unwind().
9552 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9554 * remote-sim.c (gdbsim_insert_breakpoint)
9555 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9558 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9560 * remote.c (_initialize_remote): Add commands "set/show remote
9561 hardware-watchpoint-limit" and "set/show remote
9562 hardware-breakpoint-limit".
9563 (remote_hw_watchpoint_limit): Initialize to -1.
9564 (remote_hw_breakpoint_limit): Ditto.
9565 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9567 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9569 * coff-pe-read.c: New file - support reading of minimal symbols from a
9570 portable executable using the export table.
9571 * coff-pe-read.h: New file.
9572 * coffread.c: Include coff-pe-read.h.
9573 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9574 debugging symbols found.
9575 * Makefile.in (SFILES): Add coff-pe-read.o.
9576 (coff_pe_read_h): Define.
9577 (COMMON_OBS): Add coff-pe-read.o.
9578 (coffread.o): Add coff_pe_read_h dependency.
9579 (coff-pe-read.o): New target.
9581 2003-02-19 David Carlton <carlton@math.stanford.edu>
9583 * Makefile.in (SFILES): Add block.c.
9585 (COMMON_OBS): Add block.o.
9587 (x86-64-tdep.o): Add $(block_h).
9588 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9589 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9590 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9591 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9592 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9593 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9594 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9595 * value.h: Add opaque declaration for struct block.
9596 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9597 * ada-lang.h: Ditto.
9598 * x86-64-tdep.c: #include "block.h"
9599 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9600 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9601 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9602 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9603 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9604 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9605 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9606 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9607 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9608 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9609 * symtab.c (block_function): Ditto.
9610 (contained_in): Ditto.
9611 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9612 block.h. Add opaque declaration for struct block.
9613 * symtab.h: Move block_function and contained_in declarations to
9614 block.h. Add opaque declarations for struct block, struct
9616 (struct block): Move to block.h.
9617 (struct blockvector): Ditto.
9618 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9619 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9620 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9621 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9622 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9624 * block.c: New file.
9625 * block.h: New file.
9627 2003-02-19 Theodore A. Roth <troth@openavr.org>
9629 * avr-tdep.c (avr_extract_return_value): Remove function.
9630 (avr_store_return_value): Remove function.
9631 (avr_extract_struct_value_address): Remove function.
9632 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9634 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9636 * rs6000-tdep.c: Include "gdb_assert.h".
9637 (registers_e500): Add "acc" and "spefscr".
9638 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9639 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9640 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9642 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9644 2003-02-18 Keith Seitz <keiths@redhat.com>
9646 * Makefile.in: Add gdbtk-interps.c.
9648 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9650 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9651 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9653 2003-02-18 Andrew Cagney <cagney@redhat.com>
9655 * symtab.h (struct objfile): Add opaque declaration.
9657 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9659 From Jim Ingham <jingham@apple.com>:
9660 * dbxread.c (process_one_symbol): Use last_function_start rather
9661 than function_start_offset to find the real beginning of the
9662 current function. The latter is just the text section offset on
9663 some systems, the former is always the real function start.
9665 2003-02-17 Andrew Cagney <cagney@redhat.com>
9667 * configure.in: Revert ${target} != ${host}.
9669 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9671 * configure.in (Makefile): Use the test ${target} != ${host},
9672 instead of the absence of the "nm.h" file, to determine of the
9673 configuration non-native.
9674 * configure: Regenerate.
9676 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9678 From Brian Ford <ford@vss.fsi.com>
9680 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9681 conditionalize tui_active test.
9682 (lookup_cmd_1): Ditto.
9684 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9686 * configure.in: Add check for _etext.
9687 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9689 * config.in, configure: regenerated.
9691 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9693 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9695 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9697 * main.c (tui_version): Delete variable.
9698 (captured_main): When --tui, set interpreter_p to "tui" instead of
9699 enabling tui_version.
9700 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9702 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9703 * cli/cli-cmds.c (disassemble_command): Ditto.
9704 * defs.h (tui_version): Delete declaration.
9705 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9706 (tui-interp.o): Add rules.
9707 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9709 2003-02-14 Christopher Faylor <cgf@redhat.com>
9711 * win32-nat.c (register_loaded_dll): Correctly set address range for
9714 2003-02-12 Jason Molenda (jmolenda@apple.com)
9716 * symmisc.c (print_objfile_statistics): Include information about
9717 the number of psymtabs and symtabs in each object file.
9719 2003-02-13 Keith R Seitz <keiths@redhat.com>
9721 * main.h (struct captured_main_args): Add interpreter_p.
9722 * main.c (captured_main): Initialize interpreter_p from context.
9723 * gdb.c (main): Set interpreter_p argument.
9724 * Makefile.in (gdb.o): Add dependency for interps.h.
9726 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9728 * event-top.c (cli_command_loop): Delete declaration.
9729 (_initialize_event_loop): Delete function setting event_loop_hook.
9730 * event-top.h (cli_command_loop): Declare. Update copyright.
9731 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9732 * interps.c (current_interp_command_loop): When event_loop_p, call
9735 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9737 * interps.h (interp_command_loop_ftype): Change return type to
9740 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9742 * x86-64-tdep.c (x86_64_extract_return_value)
9743 (x86_64_store_return_value): Use regcache instead of regbuf.
9744 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9745 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9747 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9749 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9750 * aclocal.m4: Regenerate.
9751 * configure: Regenerate.
9753 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9754 TCL_LD_SEARCH_FLAGS.
9756 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9758 * dwarf2cfi.c: Reindented.
9760 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9762 * interps.c (clear_interpreter_hooks): Convert function definition
9765 2003-02-07 David Carlton <carlton@math.stanford.edu>
9767 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9769 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9771 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9772 (struct type): ...to here.
9773 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9775 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9776 (replace_type): Set length on all type variants for a given type.
9778 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9780 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9782 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9784 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9786 * Makefile.in (symm-nat.o): Update dependencies.
9787 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9788 (lynx-nat.o, ia64-linux-nat.): Ditto.
9789 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9790 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9791 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9793 * Makefile.in (inflow_h): Define.
9794 (procfs.o, inflow.o, procfs.o): Update dependencies.
9795 * inftarg.c (child_stop): Delete extern declaration of
9796 inferior_process_group. Include "inflow.h".
9797 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9798 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9799 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9800 (our_process_group, inferior_process_group): Extern declarations.
9802 * procfs.c: Include "gdb_assert.h".
9804 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9805 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9806 * jv-typeprint.c (java_type_print_base): Ditto.
9807 * typeprint.c (typedef_print): Eliminate STREQ.
9808 * cli/cli-script.c (define_command, define_command): Ditto.
9809 * main.c (captured_main): Ditto.
9810 * values.c (lookup_internalvar): Ditto.
9811 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9812 within `if' conditional.
9813 * linespec.c (decode_line_2): Ditto.
9814 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9815 (bfd_openw_with_cleanup): Ditto.
9817 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9819 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9820 legacy_extract_return_value and store_return_value to
9821 legacy_return_value.
9823 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9825 * win32-nat.c (get_relocated_section_addrs): New function. Find
9826 section load addresses for symbol handling in relocated DLLs.
9827 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9829 2003-02-05 Fred Fish <fnf@intrinsity.com>
9831 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9833 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9835 (angel_RDI_info): Ditto.
9836 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9838 (threads_continue_all_with_signals): Ditto.
9840 2003-02-05 Jim Ingham <jingham@apple.com>
9841 Keith Seitz <keiths@redhat.com>
9842 Elena Zannoni <ezannoni@redhat.com>
9843 Andrew Cagney <ac131313@redhat.com>
9845 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9846 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9847 (SUBDIR_MI_OBS): Add "mi-interp.o".
9848 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9849 (SFILES): Add "interps.c".
9850 (COMMON_OBS): Add "interps.o".
9851 (interps_h, mi_main_h): Define.
9852 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9853 (mi-main.o, main.o, event-top.o): Update dependencies.
9854 * cli/cli-interp.c: New file.
9855 * interps.h, interps.c: New files.
9856 * top.c: (gdb_init): Don't install the default interpreter, handed
9858 * main.c: Include "interps.h".
9859 (interpreter_p): Note that it should malloc'ed.
9860 (captured_command_loop): Call current_interp_command_loop.
9861 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9862 xfree and xstrdup when updating interpreter_p. Install the
9863 default interpreter. Add hack to stop mi1's copyright notice
9865 * event-top.h (gdb_setup_readline): Declare.
9866 (gdb_disable_readline): Declare.
9867 * event-top.c: Include "interps.h".
9868 (display_gdb_prompt): Call current_interp_display_prompt_p.
9869 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9870 gdb_stdlog, and gdb_stdtarg.
9871 (_initialize_event_loop): Don't call gdb_setup_readline.
9872 * cli-out.c (cli_out_set_stream): New function.
9873 * cli-out.h (cli_out_set_stream): Declare.
9875 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9877 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9878 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9879 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9880 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9881 config/i386/i386v42mp.mt: Removed.
9883 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9885 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9888 2003-02-05 Michael Chastain <mec@shout.net>
9890 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9891 2.12.1 and earlier versions.
9893 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9895 Remove orphaned hosts, targets and files.
9896 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9897 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9898 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9899 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9900 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9901 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9902 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9903 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9904 * config/sparc/tm-sp64sim.h: Delete.
9905 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9907 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9908 mips*-dec-mach3* targets.
9910 2003-02-04 Michael Chastain <mec@shout.net>
9912 * NEWS: Fix typo: sepcifying -> specifying.
9914 2003-02-04 Michael Chastain <mec@shout.net>
9916 * dwarfread.c: Add documentation on the state of dwarf-1,
9917 looking towards obsoletion.
9919 2003-02-03 Michael Chastain <mec@shout.net>
9921 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9922 gdb/testsuite/gdb.c++/pr-1023.exp.
9924 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9926 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9927 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9929 * utils.c (init_page_info): Delete reference to MPW in comments.
9930 * main.c (captured_main): Delete #ifdef MPW.
9932 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9934 * NEWS: Note that the m32r-*-elf* is obsolete.
9935 * monitor.c (monitor_expect): Obsolete reference to m32r.
9936 * configure.tgt: Mark m32r-*-elf* as obsolete.
9937 * MAINTAINERS: Mark m32k as obsolete.
9938 * m32r-rom.c: Obsolete file.
9939 * config/m32r/m32r.mt: Obsolete file.
9940 * config/m32r/tm-m32r.h: Obsolete file.
9941 * m32r-stub.c: Obsolete file.
9942 * m32r-tdep.c: Obsolete file.
9944 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9946 * NEWS: Mention that the z8k-zilog-none is obsolete.
9947 * MAINTAINERS: Mark z8k as obsolete.
9948 * configure.tgt: Obsolete the z8k-*-coff* target.
9949 * config/z8k/z8k.mt: Obsolete file.
9950 * config/z8k/tm-z8k.h: Obsolete file.
9951 * z8k-tdep.c: Obsolete file.
9953 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9955 * NEWS: Mention that the mn10200-elf is obsolete.
9956 * configure.tgt: Obsolete mn10200-*-* target.
9957 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9958 mention that the mn10200 is obsolete.
9959 * breakpoint.h: Ditto.
9960 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9961 * config/mn10200/mn10200.mt: Obsolete file.
9962 * config/mn10200/tm-mn10200.h: Obsolete file.
9963 * mn10200-tdep.c: Obsolete file.
9965 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9967 * MAINTAINERS: Mark h8500 as obsolete.
9968 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9969 * findvar.c (value_from_register): Ditto.
9970 * h8500-tdep.c: Mark file as obsolete.
9971 * config/h8500/h8500.mt: Ditto.
9972 * config/h8500/tm-h8500.h: Ditto.
9973 * NEWS: Mention that h8500 is obsolete.
9975 2003-02-04 David Carlton <carlton@math.stanford.edu>
9977 * objfiles.c (allocate_objfile): Always set name. Add comment at
9979 * jv-lang.c (get_dynamics_objfile): Add comment.
9981 2003-02-04 David Carlton <carlton@math.stanford.edu>
9983 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9984 * printcmd.c (build_address_symbolic): Replace uses of
9985 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9986 SYMBOL_NAME, and asm_demangle.
9989 2003-02-04 David Carlton <carlton@math.stanford.edu>
9991 * linespec.c (decode_compound): Extract code into
9993 (lookup_prefix_sym): New function.
9995 2003-02-04 David Carlton <carlton@math.stanford.edu>
9997 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9998 FLOAT_COERCION_BADNESS.
9999 * gdbtypes.c (rank_one_type): Replace all uses of
10000 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10002 2003-02-04 Jim Blandy <jimb@redhat.com>
10004 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10005 section, let dwarf_macinfo_section point to it, not
10008 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10010 Pointed out by Anton Blanchard <anton@samba.org>.
10011 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10012 (ppc_linux_at_sigtramp_return_path): Use it.
10014 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10016 * defs.h (streq): Add prototype.
10017 * utils.c (streq): New function.
10019 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10020 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10021 * mdebugread.c (new_symbol): Likewise.
10022 * stabsread.c (define_symbol): Likewise.
10023 * coffread.c (process_coff_symbol): Likewise.
10024 * dwarfread.c (new_symbol): Likewise.
10026 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10027 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10029 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10030 SYMBOL_INIT_DEMANGLED_NAME.
10031 * objfiles.c: Include "hashtab.h".
10032 (allocate_objfile): Call htab_set_functions_ex for the
10033 demangled_names_hash.
10034 (free_objfile): Call htab_delete for the demangled_names_hash.
10035 * objfiles.h (struct htab): Add declaration.
10036 (struct objfile): Add demangled_names_hash.
10037 * symfile.c: Include "hashtab.h".
10038 (reread_symbols): Call htab_delete for the demangled_names_hash.
10039 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10040 SYMBOL_NAME in the bcache.
10041 * symtab.c: Include "hashtab.h". Update comments.
10042 (create_demangled_names_hash, symbol_set_names): New functions.
10043 (symbol_find_demangled_name): New function, broken out from
10044 symbol_init_demangled_names.
10045 (symbol_init_demangled_names): Use it.
10046 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10047 (SYMBOL_SET_NAMES): New macro.
10048 (symbol_set_names): Add prototype.
10050 2003-02-03 Jim Blandy <jimb@redhat.com>
10052 Use a single, consistent representation for an empty minimal
10053 symbol table in an objfile.
10054 * objfiles.c (terminate_minimal_symbol_table): New function.
10055 (allocate_objfile): Call it.
10056 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10057 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10059 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10060 objfile has minimal symbols, compare minimal_symbol_count to zero,
10061 instead of comparing msymbols with NULL.
10062 * objfiles.c (have_minimal_symbols): Same.
10063 * solib-sunos.c (solib_add_common_symbols): Call
10064 terminate_minimal_symbol_table.
10065 * symfile.c (reread_symbols): Same.
10067 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10069 * s390-tdep.c (s390_address_class_type_flags)
10070 (s390_address_class_type_flags_to_name)
10071 (s390_address_class_name_to_type_flags): New functions.
10072 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10073 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10075 2003-02-03 Michael Snyder <msnyder@redhat.com>
10077 * arm-tdep.c: Fix spell-o in comment.
10079 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10081 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10082 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10083 error messages to contain BFD filename.
10085 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10087 Fix PR gdb/742 gdb/743 gdb/877
10088 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10089 (do_mixed_source_and_assembly): Use
10090 make_cleanup_ui_out_tuple_begin_end and
10091 make_cleanup_ui_out_tuple_begin_end.
10092 (do_mixed_source_and_assembly): Ditto.
10093 * thread.c (do_captured_list_thread_ids): Ditto.
10094 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10095 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10096 ui_out_tuple_end): Delete prototypes.
10097 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10098 ui_out_list_end, ui_out_tuple_end): Delete.
10100 From Kevin Buettner <kevinb@redhat.com>:
10101 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10102 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10103 (do_cleanup_table_end): New functions.
10104 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10105 Use cleanups to invoke_ui_out_tuple_end().
10106 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10107 * cli/cli-setshow.c (cmd_show_list): Use
10108 make_cleanup_ui_out_tuple_begin_end.
10110 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10112 * frame.c (frame_unwind_register): New function.
10113 (frame_unwind_unsigned_register): Use.
10114 (frame_unwind_signed_register): Use.
10115 (frame_read_register): New function.
10116 * frame.h (frame_unwind_register): Declare.
10117 (frame_read_register): Declare.
10119 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10120 and frame_unwind_register instead of read_memory, write_register
10121 and deprecated_write_register_bytes.
10123 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10125 * frame.h: Note that namelen can be negative.
10126 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10129 * NEWS: Mention that the d10v's `regs' command is deprecated.
10130 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10131 (d10v_print_registers_info): New function.
10132 (show_regs): Call d10v_print_registers_info.
10133 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10135 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10137 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10138 lost in the previous patch.
10140 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10142 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10143 * stack.c (print_frame_info_base): Output complete FRAME tuple
10144 for synthesized frames.
10146 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10148 * mips-nat.c (zerobuf): Delete.
10149 (fetch_inferior_registers): Alloc local zerobuf.
10150 (fetch_core_registers): Alloc local zerobuf.
10151 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10152 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10153 * thread-db.c (thread_db_store_registers): Ditto.
10154 * sh-tdep.c (sh_do_register): Ditto.
10155 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10156 * remote-sim.c (gdbsim_store_register): Ditto.
10157 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10158 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10159 * monitor.c (monitor_supply_register): Ditto.
10160 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10161 * mips-nat.c (fetch_inferior_registers): Ditto.
10162 * m68klinux-nat.c (fetch_register): Ditto.
10163 * lynx-nat.c (fetch_inferior_registers): Ditto.
10164 (fetch_inferior_registers): Ditto.
10165 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10166 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10167 (hpux_thread_store_registers): Ditto.
10168 * hppah-nat.c (fetch_register): Ditto.
10169 * hppab-nat.c (fetch_register): Ditto.
10170 * hppa-tdep.c (pa_register_look_aside): Ditto.
10171 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10172 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10174 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10176 * gdbarch.sh: Explictly specify all method levels. When a
10177 variable with an empty level, provide a non-multi-arch default.
10178 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10179 * gdbarch.h: Re-generate.
10180 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10181 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10183 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10185 * defs.h (host_pointer_to_address): Delete declaration.
10186 (address_to_host_pointer): Delete declaration.
10187 * utils.c (host_pointer_to_address): Delete function.
10188 (address_to_host_pointer): Delete function.
10189 * procfs.c (procfs_address_to_host_pointer): New function.
10190 * procfs.c (proc_set_watchpoint): Use.
10191 (procfs_can_use_hw_breakpoint): Update comments.
10192 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10193 (som_solib_add): Use.
10194 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10195 * hppa-tdep.c (unwind_command): Use.
10197 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10199 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10202 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10203 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10204 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10205 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10206 (define_symbol): Update.
10207 * symfile.c (generic_load): Remove references to nindy.
10208 * symtab.c: Remove references to nindy.
10210 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10212 * infcmd.c (print_float_info): Delete code conditional on
10214 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10215 * config/m68k/nm-apollo68b.h: Ditto.
10216 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10217 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10218 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10220 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10222 * config/i386/tm-i386os9k.h: Removed.
10224 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10225 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10226 they're identical to i[3456]86-*-sysv* now.
10227 * config/i386/i386v32.mh: Removed.
10228 * config/i386/xm-i386v32.h: Removed.
10229 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10231 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10233 * config/i386/i386dgux.mh: Removed.
10234 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10236 * configure.in: Fix typo.
10237 * configure: Regenerated.
10239 2003-01-31 David Carlton <carlton@math.stanford.edu>
10241 * dwarf2read.c (dwarf2_locate_sections): Set
10242 dwarf_ranges_section.
10244 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10246 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10247 * utils.c: Update comments documenting legitimate uses of PTR.
10249 * utils.c: Re-indent.
10251 * config/djgpp/fnchange.lst: Delete nindy files.
10252 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10253 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10254 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10255 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10256 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10257 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10258 * Makefile.in (init.c): Remove nindy references.
10259 (saber_gdb): Delete rule.
10260 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10261 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10263 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10264 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10265 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10266 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10267 nindy-share/stop.h.
10268 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10269 * saber.suppress: Delete file.
10271 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10273 * dbxread.c (stabs_data): New static variable.
10274 (fill_symbuf): Support an in-memory buffer for stabs data.
10275 (stabs_seek): New function.
10276 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10277 (read_ofile_symtab): Use stabs_seek.
10278 (elfstab_build_psymtabs): Take an asection* instead of
10279 an offset and size. Relocate the stabs data if necessary.
10280 Save the section* for dbx_psymtab_to_symtab.
10281 * dwarf2read.c: Add section variables for each debug section.
10282 (dwarf2_locate_sections): Fill them in.
10283 (dwarf2_read_section): Take an asection* argument.
10284 Relocate the section contents if necessary.
10285 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10286 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10287 it to dwarf2_read_section.
10288 (dwarf2_build_frame_info): Update callers.
10289 * elfread.c (elf_symfile_read): Update call to
10290 elfstab_build_psymtabs.
10291 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10292 (DBX_STAB_SECTION): New macro.
10293 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10294 * symfile.c (symfile_dummy_outputs): New function.
10295 (symfile_relocate_debug_section): New function.
10296 * symfile.h (symfile_relocate_debug_section): Add prototype.
10298 2003-01-31 Richard Henderson <rth@redhat.com>
10300 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10301 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10302 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10303 * alpha-tdep.c (alpha_register_name): Add "unique".
10304 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10305 (ALPHA_UNIQUE_REGNUM): New.
10306 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10308 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10310 * README: Remove reference to Ericsson 1800 monitor.
10311 * Makefile.in (remote-es.o): Delete rule.
10312 (ALLDEPFILES): Delete remote-es.c.
10313 * remote-es.c: Delete file.
10314 * config/m68k/es1800.mt: Delete file.
10315 * config/djgpp/fnchange.lst: Update.
10316 * configure.tgt: Delete m68*-ericsson-* target.
10318 2003-01-31 Adam Fedor <fedor@gnu.org>
10320 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10321 Remove duplicate/shadowing variable of same name.
10323 2003-01-30 Jim Blandy <jimb@redhat.com>
10325 * symfile.c (find_separate_debug_file): Assert that the objfile's
10326 directory name we compute ends with a slash, and then assume that
10327 that's so everywhere we use it.
10329 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10331 * valops.c (value_assign): Flush frame cache after stores to memory
10334 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10336 * Makefile.in (mon960-rom.o): Delete rule.
10337 * mon960-rom.c: Delete file.
10339 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10341 * d10v-tdep.c: Include "frame-unwind.h".
10342 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10344 (next_addr, uses_frame): Delete.
10345 (struct d10v_unwind_cache): Define.
10346 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10347 Use info instead of next_addr and uses_frame globals.
10348 (d10v_frame_init_saved_regs): Delete function.
10349 (d10v_init_extra_frame_info): Delete function.
10350 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10351 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10352 init_frame_pc or frame_saved_pc.
10353 (d10v_pop_frame): Delete function.
10354 (do_d10v_pop_frame): Delete function.
10355 (d10v_frame_chain): Delete function.
10356 (d10v_frame_chain_valid): Delete function.
10357 (d10v_frame_pc_unwind): New function.
10358 (d10v_frame_id_unwind): New function.
10359 (saved_regs_unwinder): New function.
10360 (d10v_frame_register_unwind): New function.
10361 (d10v_frame_pop): New function.
10362 (d10v_frame_unwind): New variable.
10363 (d10v_frame_p): New function.
10364 (d10v_frame_saved_pc): Delete function.
10365 * Makefile.in (d10v-tdep.o): Update dependencies.
10367 2003-01-30 J. Brobecker <brobecker@gnat.com>
10369 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10370 causing some regressions due to a change in the default value
10373 2003-01-29 Richard Henderson <rth@redhat.com>
10374 Elena Zannoni <ezannoni@redhat.com>
10375 Daniel Jacobowitz <drow@mvista.com>
10378 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10380 (RANGES_SECTION): New.
10381 (dwarf_ranges_buffer): New variable.
10382 (struct comp_unit_head): Add member "die".
10383 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10384 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10385 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10386 (dwarf2_locate_sections): Likewise.
10387 (dwarf2_build_psymtabs): Read .debug_ranges.
10388 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10389 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10390 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10391 Look for DW_AT_ranges and return the bounding box.
10393 2003-01-29 Brian Ford <ford@vss.fsi.com>
10395 * win32-nat.c (cygwin_pid): Removed as unused.
10396 (child_attach): Try fall back to Cygwin pid.
10398 2003-01-29 Jim Blandy <jimb@redhat.com>
10400 * objfiles.h (struct objfile): Doc fix.
10402 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10404 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10405 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10406 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10407 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10408 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10409 (FRAME_SAVED_PC): Change to a function with predicate.
10410 * gdbarch.h, gdbarch.c: Re-generate.
10412 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10414 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10416 * complaints.c (complain): Delete function.
10417 * complaints.h (struct deprecated_complaint): Delete definition.
10418 (complain): Delete declaration.
10420 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10422 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10425 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10427 * sentinel-frame.h, sentinel-frame.c: New files.
10428 * Makefile.in (frame.o): Update dependencies.
10429 (SFILES): Add sentinel-frame.c.
10430 (sentinel_frame_h): Define.
10431 (COMMON_OBS): Add sentinel-frame.o.
10432 (sentinel-frame.o): Specify dependencies.
10433 * frame.c: Include "sentinel-frame.h".
10434 (frame_register_unwind): Rewrite assuming that there is always a a
10436 (frame_register, generic_unwind_get_saved_register): Ditto.
10437 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10438 (create_sentinel_frame, unwind_to_current_frame): New functions.
10439 (get_current_frame): Rewrite using create_sentinel_frame and
10440 unwind_to_current_frame. When possible, always create a frame.
10441 (create_new_frame): Set next to the sentinel frame.
10442 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10443 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10444 ID cache when necessary.
10445 (frame_saved_regs_id_unwind): Use frame_relative_level.
10446 (deprecated_generic_get_saved_register): Use frame_relative_level,
10447 get_frame_saved_regs, get_frame_pc, get_frame_base and
10449 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10452 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10454 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10456 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10458 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10459 (maintenance_set_profile_cmd): Use error () instead of warning ().
10461 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10463 * configure.in: Check that -pg works if using --enable-profiling.
10464 Check for monstartup and _mcleanup regardless of --enable-profiling.
10465 * maint.c: Check for monstartup and _mcleanup before using them.
10466 * config.in: Regenerated.
10467 * configure: Regenerated.
10469 2003-01-24 Nick Clifton <nickc@redhat.com>
10471 * Add sh2e support:
10473 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10475 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10476 (sh2e_show_regs): New.
10477 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10478 * config/sh/tm-sh.h: Added sh2e to comments.
10480 2003-01-23 Jim Blandy <jimb@redhat.com>
10482 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10483 symbols found)" message here; we haven't checked for a separate
10484 debug info file yet, so we don't know yet.
10485 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10486 we've looked everywhere. Also, there's no need to print a special
10487 message when we're loading the separate debug info file: the one
10488 symbol_file_add prints is fine.
10490 2003-01-23 Alexander Larsson <alexl@redhat.com>
10491 Jim Blandy <jimb@redhat.com>
10493 Add support for executables whose debug info has been separated
10494 out into a separate file, leaving only a link behind.
10495 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10496 and separate_debug_objfile_backlink.
10497 (put_objfile_before): New declaration.
10498 * symfile.c: #include "filenames.h".
10499 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10500 debug info in a separate file, read that, too. Save the addrs
10501 argument, so we can use it again to read the separated debug info;
10502 syms_from_objfile modifies the table we pass it.
10503 (reread_symbols): After re-reading an objfile, call
10504 reread_separate_symbols to refresh its separate debug info
10505 objfile, if it has one.
10506 (reread_separate_symbols, find_separate_debug_file,
10507 get_debug_link_info, separate_debug_file_exists): New functions.
10508 (debug_file_directory): New global var.
10509 (_initialize_symfile): Initialize debug_file_directory, and
10510 provide the new `set debug-file-directory' command to let the user
10512 * objfiles.c (free_objfile): If this objfile has its debug info in
10513 a separate objfile, free that one too. If this is itself a
10514 separate debug info objfile, clear our parent's backlink.
10515 (put_objfile_before): New function.
10516 * utils.c (gnu_debuglink_crc32): New function.
10517 * defs.h (gnu_debuglink_crc32): New declaration.
10518 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10519 * configure.in: Handle --with-separate-debug-dir config option.
10520 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10521 * acconfig.h (DEBUGDIR): New macro.
10522 * configure, aclocal.m4, config.in: Regenerated.
10524 2003-01-22 Jim Blandy <jimb@redhat.com>
10526 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10527 like the old symbol_file_add, but taking new arguments: you can
10528 now pass in either a `struct section_addr_info' list to say where
10529 each section is loaded, or a `struct section_offsets' table. Pass
10530 these new arguments through to syms_from_objfile as appropriate.
10531 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10532 with the appropriate quiescent values for the new arguments.
10534 * symfile.c: #include "gdb_assert.h".
10535 (syms_from_objfile): Add the ability to pass in a section offset
10536 table directly, as an alternative to the section_addr_info table.
10537 Document arguments better.
10538 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10539 * symfile.h (syms_from_objfile): Update declaration.
10540 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10542 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10544 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10546 Original patch by Tom Tromey <tromey@cygnus.com> and
10547 Jason Molenda <jmolenda@apple.com>.
10548 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10549 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10550 * NEWS: Mention profiling.
10551 * configure.in (--enable-gdbtk): Fix typo.
10552 (--enable-profiling): New. Set PROFILE_CFLAGS.
10553 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10555 (profiling_state): New variable.
10556 (mcleanup_wrapper): New function.
10557 (_initialize_maint): Remove NOTYET, fix call to
10558 add_setshow_boolean_cmd for "maint set profile".
10559 * configure: Regenerated.
10561 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10563 * Makefile.in (install-gdbtk): Install PNG images too.
10565 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10567 * exec.c (text_start): Delete global variable.
10568 (exec_file_attach): Make text_start local to the function.
10569 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10570 * valops.c (hand_function_call): Delete code that handles
10571 BEFORE_TEXT_END and AFTER_TEXT_END.
10572 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10573 of CALL_DUMMY_LOCATION.
10574 * gdbarch.c: Regenerate.
10575 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10576 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10577 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10578 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10579 (text_end): Delete extern declaration.
10581 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10583 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10584 * blockframe.c (backtrace_below_main): Move to "frame.c".
10585 (frame_chain_valid): Delete check for backtrace_below_main.
10586 (_initialize_blockframe): Delete initialization, move ``set
10587 backtrace-below-main'' command to "frame.c".
10588 (do_flush_frames_sfunc): Delete function.
10589 * frame.c: Include "command.h" and "gdbcmd.h".
10590 (frame_type_from_pc): New function.
10591 (create_new_frame): Use frame_type_from_pc.
10592 (legacy_get_prev_frame): New function.
10593 (get_prev_frame): Rewrite. When an old style frame, call
10594 legacy_get_prev_frame. Otherwize, unwind the PC first.
10595 (_initialize_frame): Add ``set backtrace-below-main'' command.
10596 * Makefile.in (frame.o): Update dependencies.
10598 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10600 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10601 DEPRECATED_REGISTERS_INFO.
10603 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10605 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10606 Maintainers'. Update `Various Maintainers'.
10608 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10610 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10611 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10612 Suppress actual parameters when `-'.
10613 * gdbarch.h, gdbarch.c: Regenerate.
10615 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10617 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10618 code handling dummy frames.
10620 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10622 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10623 (struct frame_unwind): Add field pop.
10624 * frame.h (frame_pop): Declare.
10625 * frame.c (frame_saved_regs_pop): New function.
10626 (trad_frame_unwinder): Add frame_saved_regs_pop.
10627 (frame_pop): New function.
10628 * dummy-frame.c (dummy_frame_pop): New function.
10629 (discard_innermost_dummy): New function.
10630 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10631 (dummy_frame_unwind): Add dummy_frame_pop.
10632 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10633 * valops.c (hand_function_call): Ditto.
10634 * stack.c (return_command): Ditto.
10636 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10638 * cris-tdep.c: Fix function declaration indentation.
10639 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10640 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10641 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10642 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10643 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10644 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10646 2003-01-18 Michael Chastain <mec@shout.net>
10648 * README (Unpacking and Installation -- quick overview):
10649 Warn against ".../gdb-5.3/gdb/configure".
10651 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10653 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10654 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10655 (struct frame_unwind): Declare opaque.
10656 (dummy_frame_p): Declare function.
10657 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10658 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10659 * dummy-frame.c: Include "frame-unwind.h".
10660 (dummy_frame_p): New function.
10661 (dummy_frame_unwind): New variable.
10662 * frame.c: Include "frame-unwind.h".
10663 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10664 to use the new unwind field.
10665 (set_unwind_by_pc): Delete function.
10666 (create_new_frame, get_prev_frame): Set unwind field using
10667 frame_unwind_find_by_pc.
10668 (trad_frame_unwind, trad_frame_unwinder): New variables.
10669 * frame.h (trad_frame_unwind): Declare variable.
10670 (frame_id_unwind_ftype): Delete declaration.
10671 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10672 (struct frame_unwind): Declare opaque.
10673 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10674 register_unwind with a single unwind pointer.
10675 * frame-unwind.h, frame-unwind.c: New files.
10676 * Makefile.in (SFILES): Add frame-unwind.c.
10677 (frame_unwind_h): Define.
10678 (COMMON_OBS): Add frame-unwind.o.
10679 (frame-unwind.o): Specify dependencies.
10680 (frame.o, dummy-frame.o): Update dependencies.
10682 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10684 * ada-valprint.c: Eliminate PTR.
10685 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10686 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10687 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10688 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10689 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10690 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10691 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10693 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10695 * main.c (captured_main): Don't use PTR.
10696 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10697 * gdbtypes.c (lookup_primitive_typename): Ditto.
10698 (lookup_struct_elt_type): Ditto.
10699 * f-valprint.c (info_common_command): Ditto.
10700 (list_all_visible_commons): Ditto.
10701 * jv-typeprint.c (java_type_print_base): Ditto.
10703 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10704 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10705 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10706 i386-interix-nat.c and i386-interix-tdep.c. Rename
10707 m68klinux-nat.c and m68klinux-tdep.c. Rename
10708 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10709 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10710 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10711 * main.c (captured_main): Use xfree, not free.
10713 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10715 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10716 ID back using a parameter.
10717 * frame.c (frame_id_unwind): Update call.
10718 (frame_saved_regs_id_unwind): Update.
10719 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10720 * dummy-frame.h (struct frame_id): Add opaque declaration.
10721 (dummy_frame_id_unwind): Update declaration.
10723 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10725 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10727 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10729 * MAINTAINERS (Stephen P. Smith): Updated email address.
10731 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10734 * breakpoint.c (until_break_command): Add new argument. Use it to
10735 decide whether to stop only at the current frame or not.
10736 * breakpoint.h (until_break_command): Update prototype.
10737 * infcmd.c (until_command): Add new argument to until_break_command
10739 (advance_command): New function.
10740 (_initialize_infcmd): Update help string for 'until' command.
10741 Add new 'advance' command.
10743 2003-01-14 David Carlton <carlton@math.stanford.edu>
10745 * linespec.c (decode_line_1): Normalize comments.
10746 (set_flags): Ditto.
10747 (locate_first_half): Ditto.
10748 (decode_compound): Ditto.
10749 (symtab_from_filename): Ditto.
10750 (decode_all_digits): Ditto.
10751 (decode_dollar): Ditto.
10752 (find_methods): Ditto.
10753 (find_toplevel_char): Ditto.
10755 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10757 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10758 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10759 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10760 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10761 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10762 * language.c, language.h, m32r-tdep.c: Update copyright.
10763 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10764 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10765 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10766 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10767 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10768 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10770 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10772 * stabsread.h (process_later, resolve_cfront_continuation):
10774 Update copyright years.
10775 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10776 Update copyright year.
10777 * dbxread.c(struct cont_elem): Obsolete.
10778 (process_later, process_now): Obsolete functions.
10779 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10780 Update copyright year.
10781 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10782 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10783 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10784 (parse_partial_symbols): Obsolete cfront support.
10786 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10788 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10789 read_cfront_baseclasses, read_cfront_member_functions,
10790 resolve_cfront_continuation,read_cfront_static_fields,
10791 copy_cfront_struct_fields): Obsolete functions.
10792 (define_symbol, read_one_struct_field): Obsolete cfront support.
10793 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10794 Update Copyright year.
10796 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10798 * stack.c (print_frame_info, print_stack_frame_base_stub,
10799 print_stack_frame_base, show_and_print_stack_frame_stub,
10800 show_and_print_stack_frame, print_only_stack_frame_stub,
10801 print_only_stack_frame): Delete functions.
10802 (print_stack_frame_stub): Call print_frame_info instead of
10803 print_frame_info_base.
10804 (print_frame_info_base): Rename to print_frame_info.
10805 (backtrace_command_1): Call print_frame_info, instead of
10806 print_frame_info_base.
10807 (current_frame_command): Call print_stack_frame, instead of
10808 print_only_stack_frame.
10809 (frame_command): Call print_stack_frame, instead of
10810 show_and_print_stack_frame.
10811 (up_command): Ditto.
10812 (down_command): Ditto.
10813 * frame.h (print_only_stack_frame): Delete prototype.
10814 * infrun.c (normal_stop): Call print_stack_frame, instead of
10815 show_and_print_stack_frame.
10816 * thread.c (info_threads_command): Call print_stack_frame, instead
10817 of print_only_stack_frame.
10819 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10821 * README (Graphical interface to GDB): Update URL. Point at
10824 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10827 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10829 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10832 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10834 * thread-db.c (attach_thread): Prototype.
10835 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10836 thread information (ti), and valid flags (th_valid, ti_valid).
10837 (attach_thread): Move target_pid_to_str call to after the thread
10838 is added to GDB's list. Initialize the cache.
10839 (thread_get_info_callback, thread_db_map_id2thr)
10840 (thread_db_get_info): New functions.
10841 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10842 (thread_db_store_registers, thread_db_thread_alive)
10843 (thread_db_get_thread_local_address): Use them.
10844 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10845 of calling error() for threads in unknown state.
10847 (clear_lwpid_callback): New function.
10848 (thread_db_resume): Use it to clear the cache.
10850 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10852 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10853 (resume_callback): Remove dead code.
10855 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10857 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10859 * gdbarch.h, gdbarch.c: Regenerate.
10860 * stack.c (frame_info): Only initialize the saved registers when
10861 FRAME_INIT_SAVED_REGS_P.
10862 * frame.c (frame_saved_regs_register_unwind): Assert
10863 FRAME_INIT_SAVED_REGS_P.
10864 (deprecated_generic_get_saved_register): Ditto.
10866 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10868 * source.c (openp): Squelch warning about "filename".
10870 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10872 * source.c (openp): If the file does not exist don't necessarily
10875 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10878 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10879 (integer_types_same_name_p): New function.
10880 (rank_one_type): Use it.
10881 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10883 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10885 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10887 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10888 * configure.in: Add --with-sysroot.
10889 * configure: Regenerated.
10890 * main.c (gdb_sysroot): New variable.
10891 (captured_main): Initialize gdb_sysroot.
10892 * defs.h (gdb_sysroot): New extern declaration.
10893 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10895 2003-01-12 Michael Chastain <mec@shout.net>
10897 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10899 2003-01-12 Michael Chastain <mec@shout.net>
10901 * top.c (print_gdb_version): Bump copyright year to 2003.
10903 2003-01-12 David Carlton <carlton@bactrian.org>
10905 * linespec.c (symtab_from_filename): Rename variable 's' to
10908 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10910 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10912 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10914 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10916 * d10v-tdep.c: Include "gdb_assert.h".
10917 (d10v_store_return_value): Rewrite to match current interface.
10918 (d10v_extract_struct_value_address): Ditto.
10919 (d10v_extract_return_value): Ditto.
10920 (d10v_gdbarch_init): Set store_restore_value,
10921 extract_struct_value_address and extract_return_value.
10923 2003-01-12 J. Brobecker <brobecker@gnat.com>
10925 * hpread.c (set_namestring): New procedure replacing the
10926 SET_NAMESTRING macro.
10927 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10928 by calls to set_namestring.
10930 2003-01-11 J. Brobecker <brobecker@gnat.com>
10932 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10933 a compilation warning.
10934 (hpread_process_one_debug_symbol): Likewise.
10936 2003-01-10 David Carlton <carlton@math.stanford.edu>
10938 * linespec.c (decode_line_1): Rename variable 's' to
10940 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10941 (decode_dollar): Ditto.
10942 (decode_variable): Ditto.
10943 (symbol_found): Ditto.
10945 2003-01-09 Michael Chastain <mec@shout.net>
10947 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10949 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10951 * win32-nat.c (set_process_privilege): New function.
10952 (child_attach): Call set_process_privilege() to enable the
10953 SE_DEBUG_NAME user privilege if available in process token.
10955 2003-01-10 J. Brobecker <brobecker@gnat.com>
10957 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10958 compilation error in the previous revision.
10960 2003-01-09 David Carlton <carlton@math.stanford.edu>
10962 * linespec.c: Update copyright.
10964 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10966 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10967 than inferior_ptid.
10968 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10970 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10972 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10974 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10975 (frame_saved_regs_zalloc): Update.
10976 (frame_saved_regs_register_unwind): Update.
10977 (create_new_frame): Update.
10978 (get_prev_frame): Update.
10979 (frame_extra_info_zalloc): Update.
10980 (deprecated_get_frame_saved_regs): Update.
10981 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10982 * cris-tdep.c: Update comment.
10984 * somsolib.h: Fix function indentation.
10985 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10986 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10987 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10988 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10989 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10991 * infrun.c (follow_fork): Use ISO C definition.
10992 * expprint.c (print_subexp): Use xfree instead of free.
10993 * charset.c: Include "gdb_string.h" instead of <string.h>.
10994 (register_iconv_charsets): Use ISO C definition.
10995 (host_charset, target_charset): Ditto.
10996 * Makefile.in (charset.o): Update dependencies.
10997 (mi-cmd-env.o): Update dependencies.
10999 2003-01-08 Andrew Cagney <cagney@redhat.com>
11001 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11004 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11006 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11007 build directories. Save edited gdb output in Mbuild.log. If a
11008 build fails, remove any final GDB executable.
11010 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11012 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11013 replacing hex constants with function names and stripping leading
11014 file name directory prefixes.
11016 2003-01-08 Andrew Cagney <cagney@redhat.com>
11018 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11021 2003-01-08 David Carlton <carlton@math.stanford.edu>
11023 * linespec.c (decode_line_1): Move code into decode_variable.
11024 (decode_variable): New function.
11026 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11028 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11030 2003-01-08 Andrew Cagney <cagney@redhat.com>
11032 * cris-tdep.c (cris_frame_init_saved_regs): Use
11033 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11035 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11036 (sh64_nofp_frame_init_saved_regs): Ditto.
11037 (sh_fp_frame_init_saved_regs): Ditto.
11038 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11039 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11040 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11041 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11043 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11045 * minsyms.c (lookup_minimal_symbol): Update comment.
11046 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11047 (lookup_minimal_symbol_solib_trampoline): Likewise.
11049 2003-01-08 Andrew Cagney <cagney@redhat.com>
11051 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11052 frame_relative_level.
11054 * alpha-tdep.c: Use get_frame_extra_info.
11055 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11056 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11057 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11058 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11060 * alpha-tdep.c: Use get_next_frame.
11061 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11062 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11063 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11064 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11065 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11066 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11067 * xstormy16-tdep.c: Ditto.
11069 2003-01-07 Andrew Cagney <cagney@redhat.com>
11071 * alpha-tdep.c: Use get_frame_base.
11072 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11073 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11074 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11075 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11076 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11077 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11078 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11079 * config/sparc/tm-sparc.h: Ditto.
11081 2003-01-07 Andrew Cagney <cagney@redhat.com>
11083 * frame.c (deprecated_get_frame_context): New function.
11084 (deprecated_set_frame_context): New function.
11085 * frame.h (deprecated_get_frame_context): Declare.
11086 (deprecated_set_frame_context): Declare.
11087 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11088 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11090 2003-01-07 Andrew Cagney <cagney@redhat.com>
11092 * frame.c (deprecated_set_frame_next_hack): New function.
11093 (deprecated_set_frame_prev_hack): New function.
11094 * frame.h (deprecated_set_frame_next_hack): Declare.
11095 (deprecated_set_frame_prev_hack): Declare.
11096 * mcore-tdep.c (analyze_dummy_frame): Use
11097 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11098 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11100 2003-01-07 David Carlton <carlton@math.stanford.edu>
11102 * linespec.c (decode_line_1): Move code into decode_dollar.
11103 (decode_dollar): New function.
11105 2003-01-07 Andrew Cagney <cagney@redhat.com>
11107 * arm-tdep.c (arm_init_extra_frame_info): Use
11108 deprecated_update_frame_base_hack.
11109 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11110 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11111 (fix_frame_pointer): Ditto.
11112 (mn10300_analyze_prologue): Ditto.
11114 2003-01-07 Andrew Cagney <cagney@redhat.com>
11116 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11117 extra_info using frame_extra_info_zalloc.
11118 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11119 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11120 (sh64_init_extra_frame_info): Ditto.
11121 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11122 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11123 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11124 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11125 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11126 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11127 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11128 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11129 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11130 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11131 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11132 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11134 * mn10300-tdep.c (analyze_dummy_frame): Use
11135 deprecated_set_frame_extra_info_hack.
11136 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11138 2003-01-07 J. Brobecker <brobecker@gnat.com>
11140 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11141 class is not scText. These do not define "real" procedures.
11142 (parse_partial_symbols): Likewise.
11144 2003-01-06 Michael Snyder <msnyder@redhat.com>
11146 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11148 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11150 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11151 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11152 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11153 deprecated_frame_xmalloc_with_cleanup.
11154 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11155 deprecated_frame_xmalloc.
11156 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11157 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11159 2003-01-06 Andrew Cagney <cagney@redhat.com>
11161 * x86-64-linux-tdep.c: Include "osabi.h".
11162 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11164 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11166 2003-01-06 Andrew Cagney <cagney@redhat.com>
11168 * MAINTAINERS (Target Instruction Set Architectures): Update
11169 arm-elf. Can be built with -Werror, has been multiarched.
11171 * value.h (unpack_long): Make buffer parameter constant.
11172 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11173 * scm-lang.h (scm_parse): Ditto.
11174 * defs.h (extract_typed_address, extract_address): Ditto.
11175 (extract_long_unsigned_integer): Ditto.
11176 * inferior.h (unsigned_pointer_to_address): Ditto.
11177 (signed_pointer_to_address): Ditto.
11178 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11179 * gdbarch.h, gdbarch.c: Regenerate.
11180 * findvar.c (extract_long_unsigned_integer): Update.
11181 (extract_address): Update.
11182 (extract_typed_address): Update.
11183 (unsigned_pointer_to_address): Update.
11184 * values.c (unpack_long): Update.
11185 (unpack_double): Update.
11186 (unpack_pointer): Update.
11187 (unpack_field_as_long): Update.
11188 * d10v-tdep.c (d10v_pointer_to_address): Update.
11189 * avr-tdep.c (avr_pointer_to_address): Update.
11190 * scm-lang.c (scm_unpack): Update.
11191 * findvar.c (signed_pointer_to_address): Update.
11193 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11195 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11196 since it is in i386-tdep.c.
11198 2003-01-06 J. Brobecker <brobecker@gnat.com>
11200 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11201 failure introduced in the previous change.
11203 2003-01-05 Michael Chastain <mec@shout.net>
11205 * README: Remove references to deleted remote-*.c files:
11206 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11207 remote-nrom.c, remote-os9k.c, remote-udi.c.
11209 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11211 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11212 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11213 i386_get_longjmp_target.
11215 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11217 * arm-tdep.c (prologue_cache): Change to a pointer.
11218 (_initialize_arm_tdep): Allocate prologue_cache.
11219 (check_prologue_cache): Update.
11220 (save_prologue_cache): Update.
11221 (arm_gdbarch_init): Update.
11223 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11225 * stabsread.c (update_method_name_from_physname): Call complaint()
11228 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11230 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11231 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11232 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11234 * blockframe.c: Include "gdbcmd.h" and "command.h".
11235 (backtrace_below_main): New variable.
11236 (file_frame_chain_valid, func_frame_chain_valid)
11237 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11238 (generic_func_frame_chain_valid): Remove functions.
11239 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11240 (_initialize_blockframe): New function.
11241 * Makefile.in (blockframe.o): Update dependencies.
11242 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11243 comment. Call frame_chain_valid ().
11244 * frame.h: Remove old prototypes. Add prototype for
11245 frame_chain_valid and update comments to match.
11246 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11247 Remove old comment.
11248 * gdbarch.h: Regenerated.
11249 * gdbarch.c: Regenerated.
11251 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11252 set_gdbarch_frame_chain_valid.
11253 * avr-tdep.c (avr_gdbarch_init): Likewise.
11254 * cris-tdep.c (cris_gdbarch_init): Likewise.
11255 * frv-tdep.c (frv_gdbarch_init): Likewise.
11256 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11257 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11258 (i386_nw_init_abi): Likewise.
11259 (i386_gdbarch_init): Likewise.
11260 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11261 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11262 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11263 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11264 * mips-tdep.c (mips_gdbarch_init): Likewise.
11265 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11266 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11267 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11268 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11269 * s390-tdep.c (s390_gdbarch_init): Likewise.
11270 * sh-tdep.c (sh_gdbarch_init): Likewise.
11271 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11272 * v850-tdep.c (v850_gdbarch_init): Likewise.
11273 * vax-tdep.c (vax_gdbarch_init): Likewise.
11274 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11276 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11277 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11278 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11279 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11280 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11281 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11282 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11283 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11285 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11287 * Makefile.in (acconfig_h): Remove incorrect macro.
11288 (config_h): Define.
11289 (osabi.o): Update dependencies.
11290 * configure.tgt: Set gdb_osabi based on target triplet.
11291 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11292 * configure: Regenerated.
11293 * config.in: Regenerated.
11294 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11295 (GDB_OSABI_DEFAULT): Define if not already defined.
11296 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11297 (set_osabi_string): New variables.
11298 (gdbarch_register_osabi): Add new OS ABI to
11299 gdb_osabi_available_names.
11300 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11301 (set_osabi, show_osabi): New functions.
11302 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11304 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11306 * arch-utils.c (gdbarch_info_init): Set osabi to
11307 GDB_OSABI_UNINITIALIZED.
11308 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11309 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11310 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11311 * gdbarch.c: Regenerated.
11312 * gdbarch.h: Regenerated.
11313 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11315 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11316 * osabi.h (enum gdb_osabi): Move to defs.h.
11317 (gdbarch_init_osabi): Update prototype.
11318 * defs.h (enum gdb_osabi): Moved here.
11319 * Makefile.in: Update dependencies.
11321 * alpha-tdep.h: Don't include "osabi.h".
11322 (struct gdbarch_tdep): Remove osabi member.
11323 * alpha-tdep.c: Include "osabi.h".
11324 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11325 iterate over arches. Update call to gdbarch_init_osabi.
11326 (alpha_dump_tdep): Don't dump osabi.
11327 * alpha-linux-tdep.c: Include "osabi.h".
11328 * alpha-osf1-tdep.c: Include "osabi.h".
11329 * alphafbsd-tdep.c: Include "osabi.h".
11330 * alphanbsd-tdep.c: Include "osabi.h".
11332 * arm-tdep.h: Don't include "osabi.h".
11333 (struct gdbarch_tdep): Remove osabi member.
11334 * arm-tdep.c: Include "osabi.h".
11335 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11336 iterate over arches. Update call to gdbarch_init_osabi.
11337 (arm_dump_tdep): Don't dump osabi.
11338 * arm-linux-tdep.c: Include "osabi.h".
11339 * armnbsd-tdep.c: Include "osabi.h".
11341 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11342 Update call to gdbarch_init_osabi.
11344 * i386-tdep.h: Don't include "osabi.h".
11345 (struct gdbarch_tdep): Remove osabi member.
11346 * i386-tdep.c: Include "osabi.h".
11347 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11348 iterate over arches. Update call to gdbarch_init_osabi.
11349 (i386_dump_tdep): Don't dump osabi.
11350 * i386-linux-tdep.c: Include "osabi.h".
11351 * i386-sol2-tdep.c: Include "osabi.h".
11352 * i386bsd-tdep.c: Include "osabi.h".
11353 * i386gnu-tdep.c: Include "osabi.h".
11354 * i386ly-tdep.c: Include "osabi.h".
11355 * i386nbsd-tdep.c: Include "osabi.h".
11356 * i386obsd-tdep.c: Include "osabi.h".
11358 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11359 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11360 check osabi when iterating over arches. Update call to
11361 gdbarch_init_osabi.
11362 (mips_dump_tdep): Don't dump osabi.
11364 * ns32k-tdep.h: Don't include "osabi.h".
11365 (struct gdbarch_tdep): Remove.
11366 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11367 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11368 allocate tdep. Update call to gdbarch_init_osabi.
11369 (ns32k_dump_tdep): Remove.
11370 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11371 * ns32knbsd-tdep.c: Include "osabi.h".
11373 * ppc-tdep.h: Don't include "osabi.h".
11374 (struct gdbarch_tdep): Remove osabi member.
11375 * rs6000-tdep.c: Include "osabi.h".
11376 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11377 osabi when iterating over arches. Update call to
11378 gdbarch_init_osabi.
11379 (rs6000_dump_tdep): Don't dump osabi.
11380 * ppc-linux-tdep.c: Include "osabi.h".
11381 * ppcnbsd-tdep.c: Include "osabi.h".
11383 * sh-tdep.h: Don't include "osabi.h".
11384 (struct gdbarch_tdep): Remove osabi member.
11385 * sh-tdep.c: Include "osabi.h".
11386 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11387 iterate over arches. Update call to gdbarch_init_osabi.
11388 (sh_dump_tdep): Don't dump osabi.
11389 * shnbsd-tdep.c: Include "osabi.h".
11391 * sparc-tdep.c: Include "osabi.h".
11392 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11393 iterate over arches. Update call to gdbarch_init_osabi.
11394 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11397 * vax-tdep.h: Don't include "osabi.h".
11398 (struct gdbarch_tdep): Remove.
11399 * vax-tdep.c: Include "osabi.h".
11400 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11401 iterate over arches. Don't allocate tdep. Update call
11402 to gdbarch_init_osabi.
11403 (vax_dump_tdep): Remove.
11404 (_initialize_vax_tdep): Update call to gdbarch_register.
11406 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11408 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11410 (breakpoint_re_set_one): Don't fetch the value for a disabled
11413 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11415 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11416 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11417 (COERCE_FLOAT_TO_DOUBLE): Remove.
11418 * gdbarch.c: Regenerate.
11419 * gdbarch.h: Regenerate.
11420 * Makefile.in: Remove value_h from gdbarch_h.
11421 * valops.c (coerce_float_to_double): New variable.
11422 (default_coerce_float_to_double): Remove.
11423 (standard_coerce_float_to_double): Remove.
11424 (value_arg_coerce): Use coerce_float_to_double.
11425 (_initialize_valops): Add "set coerce-float-to-double".
11426 * value.h (default_coerce_float_to_double): Remove prototype.
11427 (standard_coerce_float_to_double): Remove prototype.
11429 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11431 * mdebugread.c (parse_symbol): Likewise.
11432 * stabsread.c (define_symbol): Mark all functions as prototyped.
11434 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11435 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11436 set_gdbarch_coerce_float_to_double.
11437 * arm-tdep.c (arm_gdbarch_init): Likewise.
11438 * frv-tdep.c (frv_gdbarch_init): Likewise.
11439 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11440 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11441 * mips-tdep.c (mips_gdbarch_init): Likewise.
11442 (mips_coerce_float_to_double): Remove.
11443 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11444 (rs6000_coerce_float_to_double): Remove.
11445 * s390-tdep.c (s390_gdbarch_init): Likewise.
11446 * sh-tdep.c (sh_gdbarch_init): Likewise.
11447 (sh_coerce_float_to_double): Remove.
11448 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11449 (sparc_coerce_float_to_double): Remove.
11450 * v850-tdep.c (v850_gdbarch_init): Likewise.
11451 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11452 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11453 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11454 (hppa_coerce_float_to_double): Remove prototype.
11455 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11457 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11459 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11461 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11463 Suggested by Stewart Brown <sb24@avaya.com>:
11464 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11465 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11466 (c_type_print_varspec_suffix): Likewise.
11468 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11470 * configure.in: Don't set and AC_SUBST SUBDIRS.
11471 * configure: Regenerated.
11473 * configure.in: Remove code dealing with shared libraries.
11474 * Makefile.in: Remove HLDFLAGS and HLDENV.
11475 * configure: Regenerated.
11477 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11479 * frame.c (deprecated_frame_xmalloc): New function.
11480 (deprecated_set_frame_saved_regs_hack): New function.
11481 (deprecated_set_frame_extra_info_hack): New function.
11482 * frame.h (deprecated_frame_xmalloc): Declare.
11483 (deprecated_set_frame_saved_regs_hack): Declare.
11484 (deprecated_set_frame_extra_info_hack): Declare.
11486 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11488 * configure.in: Move code that provides the --enable-gdbtk option
11489 right after the code that handles the --enable-tui option, and
11490 polish it somewhat.
11491 * configure: Regenerated.
11493 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11494 AC_CHECK_FUNCS and remove the old check for pread64.
11495 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11496 * acconfig.h (_GNU_SOURCE): Add.
11497 (HAVE_PREAD64): Remove.
11498 * configure, aclocal.m4, config.in: Regenerated.
11500 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11502 * alpha-tdep.c: Use get_frame_saved_regs.
11503 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11504 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11505 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11506 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11507 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11509 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11511 * configure.in: Remove all use of the SUBDIRS variable; add
11512 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11513 code providing the --enable-multi-ice option, and move it right in
11514 front of the code that checks whether gdbserver is supported.
11516 * configure: Regenerated.
11517 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11520 2003-01-03 Andrew Cagney <cagney@redhat.com>
11522 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11523 * avr-tdep.c, cris-tdep.c: Ditto.
11524 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11525 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11527 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11529 * configure.in: Remove --enable-netrom option.
11530 * configure: Regenerated.
11532 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11534 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11535 declaration for `struct re_pattern_buffer' instead.
11536 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11538 2003-01-03 J. Brobecker <brobecker@gnat.com>
11540 * mdebugread.c (parse_symbol): Count until the stEnd matching
11541 the structure name.
11543 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11545 * configure.in: Remove --with-cpu option.
11546 subscripts. Remove evil changequotes here.
11547 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11548 * config.in, configure: Regenerated.
11550 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11551 * configure.in: Cleanup section that sources GDB and BFD configure
11552 subscripts. Remove evil changequotes here.
11553 * config.in, configure: Regenerated.
11555 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11557 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11558 frame accessor methods.
11559 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11560 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11561 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11562 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11563 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11564 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11565 * z8k-tdep.c: Ditto.
11567 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11569 * configure.in: Remove UI_OUT configuration code.
11570 * ada-lang.c: Update assuming UI_OUT is always true.
11571 * Makefile.in (UIOUT_CFLAGS): Remove.
11572 * configure: Regenerated.
11573 * TODO: Remove blurb about elimination of -DUI_OUT.
11575 * configure.in: Move code that provides the --enable-gdbcli,
11576 --enable-gdbmi options right before the code that handles the
11577 --enable-tui option. Polish a bit.
11578 * configure: Regenerated.
11580 * configure.in: Rewrite check for GNU regex and the
11581 --without-included regex option, and move it into the "Checks for
11582 library functions" section. This makes us use the system regex
11583 again by default on systems with version 2 of the GNU C library.
11584 This was apparently broken.
11585 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11586 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11587 * config.in, configure: Regenerated.
11589 * configure.in: Move code that provides the --enable-tui option
11590 before the "Checks for libraries" section. Polish the code
11591 somewhat and set need_curses to yes if we build the TUI. Rewrite
11592 code that looks for a library providing termcap functionality to
11593 match more closely what's done in the Readline library, and move
11594 it into to the "Checks for libraries" section.
11595 * configure: Regenerated.
11596 * Makefile.in (TERMCAP): Remove variable.
11597 * config/i386/go32.mh (TERMCAP): Remove variable.
11599 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11601 * MAINTAINERS: Mention gdb_mbuild.sh.
11602 * gdb_mbuild.sh: Rewrite.
11604 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11606 * configure.in: Fix typo in last change.
11607 * config.in, configure: Regenerated.
11609 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11611 * valarith.c (value_binop): Delete obsolete code and comments.
11612 * configure.host: Ditto.
11613 * buildsym.h (make_blockvector): Ditto.
11614 * buildsym.c (make_blockvector): Ditto.
11615 * defs.h (enum language): Ditto.
11616 (chill_demangle): Ditto.
11617 * elfread.c (elf_symtab_read): Ditto.
11618 * dwarfread.c (CHILL_PRODUCER): Ditto.
11619 (set_cu_language): Ditto.
11620 (handle_producer): Ditto.
11621 * expprint.c (print_subexp): Ditto.
11622 * gdbtypes.c (chill_varying_type): Ditto.
11623 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11624 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11625 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11626 (chill_varying_type): Ditto.
11627 * language.h (_LANG_chill): Ditto.
11628 * language.c (binop_result_type, integral_type): Ditto.
11629 (character_type, string_type, structured_type): Ditto.
11630 (lang_bool_type, binop_type_check): Ditto.
11631 * stabsread.h (os9k_stabs): Ditto.
11632 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11633 (define_symbol, read_type, read_struct_fields): Ditto.
11634 (read_array_type, read_enum_type, read_huge_number): Ditto.
11635 (read_range_type, start_stabs): Ditto.
11636 * symfile.c (init_filename_language_table): Ditto.
11637 (add_psymbol_with_dem_name_to_list): Ditto.
11638 * symtab.c (symbol_init_language_specific): Ditto.
11639 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11640 * symtab.h (struct general_symbol_info): Ditto.
11641 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11642 * typeprint.c (typedef_print): Ditto.
11643 * utils.c (fprintf_symbol_filtered): Ditto.
11644 * valops.c (value_cast, search_struct_field, value_slice): Delete
11646 (varying_to_slice): Delete function.
11647 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11648 (varying_to_slice): Delete declaration.
11649 * MAINTAINERS: Update.
11651 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11653 * configure.in: Reorganize "Checks for library functions section"
11654 a bit. Remove check for `btowc' and `isascii' functions.
11655 * configure: Regenerated.
11657 * acconfig.h (_MSE_INT_H): Remove.
11658 * configure.in: Create "Checks for header files" section, and move
11659 appropriate tests there. Don't check for objlist.h, wchar.h,
11660 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11661 misdetection fix. Also add "Checks for types", "Checks for
11662 compiler characteristics" and "Checks for library functions"
11664 * config.in, configure: Regenerated.
11666 * configure.in: Create "Checks for programs" section, and move
11667 appropriate tests there.
11669 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11671 * configure.in: Create "Checks for libraries" section, and move
11672 appropriate tests there. Cleanup check for wctype in libw. Use
11673 AC_SEARCH_LIBS to see whether we need libsocket.
11674 * configure: Regenerated.
11676 For older changes see ChangeLog-2002
11682 version-control: never