2003-09-04 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5220ea4c
AC
12003-09-04 Andrew Cagney <cagney@redhat.com>
2
3 * thread-db.c (verbose_dlsym): New function.
4 (thread_db_load): Use verbose_dlsym
5 (thread_db_new_objfile): Print that libthread_db was loaded, and
6 that thread debugging was enabled.
7
6e8c2c06
AC
82003-09-04 Andrew Cagney <cagney@redhat.com>
9
10 * configure.tgt: Add "mips64*-*-*" target. Delete
11 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
12 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
13 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
14 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
15 mips*-sony-*, and mips64*-*-elf* targets.
16 * config/mips/embedl.mt: Delete file.
17 * config/mips/embedl64.mt: Delete file.
18 * config/mips/mips.mt: Delete file.
19 * config/mips/mips64.mt: Delete file.
20 * config/mips/tm-embed.h: Delete file.
21 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
22 * config/mips/embed64.mt: Delete out-of-date comment.
23
3a3bc038
AC
242003-09-04 Andrew Cagney <cagney@redhat.com>
25
26 * hppa-tdep.c (hppa_gdbarch_init): Set
27 "have_nonsteppable_watchpoint".
28 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
29 * mips-tdep.c (mips_dump_tdep): Do not print
30 HAVE_NONSTEPPABLE_WATCHPOINT.
31 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
32 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
33 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
34 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
35
a957e642
CV
362003-09-04 Corinna Vinschen <vinschen@redhat.com>
37
38 * breakpoint.c (watchpoint_check): Remove accidentally checked in
39 unused code. Add comment.
40
a6fbcf2f
CV
412003-09-04 Corinna Vinschen <vinschen@redhat.com>
42
43 * breakpoint.c (watchpoint_check): Check for pc being in an
44 epilogue if watchpoint frame couldn't be found.
45
c14a44d5
AC
462003-09-04 Andrew Cagney <cagney@redhat.com>
47
48 * Makefile.in: Re-generate all dependencies.
49
f6c40618
AC
502003-09-03 Andrew Cagney <cagney@redhat.com>
51
52 * arch-utils.h (legacy_print_insn): Delete declaration.
53 * arch-utils.c (legacy_print_insn): Delete function.
54 * disasm.c (deprecated_tm_print_insn_info): Delete.
55 (_initialize_disasm): Delete function, contained code initializing
56 deprecated_tm_print_insn_info.
57 * gdbarch.sh (deprecated_tm_print_insn): Delete.
58 (deprecated_tm_print_insn_info): Delete.
59 (TARGET_PRINT_INSN): Do not provide a default.
60 * gdbarch.h, gdbarch.c: Re-generate.
61
242e8be5
AC
622003-09-03 Andrew Cagney <cagney@redhat.com>
63
64 * disasm.c (fprintf_disasm): New function.
65 (gdb_disassemble_info): Call "init_disassemble_info", instead of
66 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
67 reverts 2003-08-14 change.
68 (_initialize_disasm): Call "init_disassemble_info", instead of
69 INIT_DISASSEMBLE_INFO_NO_ARCH.
70
3ffc3dda
MS
712003-09-03 Michael Snyder <msnyder@redhat.com>
72
73 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
74
52d16ba8
AC
752003-09-03 Andrew Cagney <cagney@redhat.com>
76
77 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
78 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
79 * symfile.c (syms_from_objfile): Update.
80 (reread_symbols): `Update
81 * exec.c (exec_file_attach): Update.
82 (exec_file_attach): Update.
83 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
84 2003-08-29 change.
85 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
86
eb5492fa
DJ
872003-09-03 Daniel Jacobowitz <drow@mvista.com>
88
89 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
90 trad-frame.h.
91 (arm_get_cache): Delete macro.
92 (struct arm_prologue_cache): Update comments. Make saved_regs into
93 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
94 to prev_sp.
95 (thumb_scan_prologue): Update for cache changes. Don't call
96 DEPRECATED_PC_IN_CALL_DUMMY.
97 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
98 argument and use it in desperation search for our prologue. Do not
99 search past the specified PC.
100 (arm_make_prologue_cache): Simplify.
101
102 (arm_prologue_this_id, arm_prologue_prev_register)
103 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
104 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
105 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
106 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
107 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
108
109 (arm_frame_chain_valid, arm_find_callers_reg)
110 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
111 (arm_pop_frame): Delete obsolete methods.
112 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
113
114 (arm_gdbarch_init): Update for new frame methods. Register prologue
115 and sigtramp unwinders. Set the default frame base method.
116
117 * Makefile.in (arm-tdep.o): Update dependencies.
118 * varobj.c (find_frame_addr_in_frame_chain): Call
119 get_frame_base_address.
120 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
121
24de872b
DJ
1222003-09-03 Daniel Jacobowitz <drow@mvista.com>
123
124 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
125 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
126 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
127 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
128 Take NEXT_FRAME and CACHE arguments. Call
129 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
130 Set unwound_pc in CACHE instead of modifying the frame argument.
131 Don't bother checking the frame type when looking for sigtramp
132 frames.
133 (arm_make_prologue_cache, arm_frame_chain)
134 (arm_init_extra_frame_info): New functions.
135
9b8d791a
DJ
1362003-09-03 Daniel Jacobowitz <drow@mvista.com>
137
138 * arm-tdep.c (arm_get_cache): Define.
139 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
140 unwound_sp, unwound_pc, and saved_regs.
141 (thumb_scan_prologue): Take a cache instead of the frame.
142 (arm_scan_prologue): Likewise.
143 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
144 instead of a temporary frame.
145 (arm_init_extra_frame_info): Allocate and use a cache.
146 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
147
7ee3275f
AC
1482003-09-03 Andrew Cagney <cagney@redhat.com>
149
150 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
151 * config/mips/wince.mt (TM_CLIBS): Ditto.
152 * config/sh/wince.mt (TM_CLIBS): Ditto.
153 * config/pa/hppa64.mt (TM_CLIBS): Delete.
154 * config/sparc/sp64.mt (CC): Delete.
155
57b29be7
AC
1562003-09-03 Andrew Cagney <cagney@redhat.com>
157
158 * defs.h: Do not include "arch-utils.h".
159 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
160 GDB_MULTI_ARCH_PURE.
161 * configure.in (GDB_MULTI_ARCH): Do not define.
162 * configure, config.in: Regenerate.
163 * configure.tgt: Do not set variable "gdb_multi_arch".
164 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
165 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
166 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
167 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
168 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
169 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
170 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
171 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
172 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
173 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
174 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
175 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
176 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
177 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
178 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
179 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
180 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
181 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
182
12e035e2
MC
1832003-08-30 Michael Chastain <mec@shout.net>
184
185 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
186 * config/m68k/nm-hp300hpux.h: Delete.
187 * config/m68k/tm-hp300hpux.h: Delete.
188 * config/m68k/xm-hp300hpux.h: Delete.
189 * config/m68k/xm-hp300bsd.h: Delete.
190 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
191 tm-hp300hpux.h, xm-hp300hpux.h.
192 * somsolib.c: Remove comment about hp300 shared libraries.
193
bda34dc2
MK
1942003-08-31 Mark Kettenis <kettenis@gnu.org>
195
5bca7895
MK
196 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
197 Only define PTRACE_GET_THREAD_AREA is not already defined.
198 Various style fixes in code and comments and some additional
199 spelling fixes in comments. Move after functions dealing with
200 debug registers.
201 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
202 Fix coding-style.
203
bda34dc2
MK
204 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
205 frame_unwind_register_unsigned instead of
206 frame_unwind_unsigned_register.
207
c890192f
MK
2082003-08-30 Mark Kettenis <kettenis@gnu.org>
209
210 * configure.in: Search for gethostbyname in libnsl.
211 * configure: Regenerated.
212
60fac5b8
MK
2132003-08-29 Mark Kettenis <kettenis@gnu.org>
214
e294916c
MK
215 * configure.in: Remove redundant AC_MSG_RESULT in check for
216 uintptr_t in stdint.h.
217 * configure: Regenerated.
218
c40d267a
MK
219 * amd64-nat.h (struct regcache): Add opaque declaration.
220
60fac5b8
MK
221 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
222 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
223 Change "register array" to "register cache" in comments.
224 (x86_64_linux_gregset64_reg_offset): New variable.
225 (GETREGS_SUPPLIES): Remove macro.
226 (supply_gregset): Call amd64_supply_native_gregset instead of
227 x86_64_linux_supply_gregset.
228 (fill_gregset): Rename `regno' to `regnum'. Call
229 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
230 (store_regs): Rename `regno' to `regnum'.
231 (store_fpregs): Rename `regno' to `regnum'.
232 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
233 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
234 Reorganize function a bit.
235 (store_inferior_registers): Rename `regno' to `regnum'. Use
236 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
237 Reorganize function a bit.
238 (_initialize_x86_64_linux_nat): New function.
239 * config/i386/x86-64linux.mh.
240
546143b6
AC
2412003-08-29 Andrew Cagney <cagney@redhat.com>
242
243 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
244 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
245 (target_remove_watchpoint): Delete macro.
246 (target_insert_watchpoint): Delete macro.
247 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
248 (remote_mips_stopped_by_watchpoint): Delete declaration.
249 (remote_mips_remove_watchpoint): Delete declaration.
250 (remote_mips_set_watchpoint): Delete declaration.
251 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
252 * remote-mips.c (_initialize_remote_mips): Set
253 "to_insert_watchpoint", "to_stopped_by_watchpoint",
254 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
255 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
256 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
257 (mips_stopped_by_watchpoint): Rename
258 remote_mips_stopped_by_watchpoint.
259 (mips_can_hardware_watchpoint): Rename
260 remote_mips_can_use_hardware_watchpoint, update function
261 signature.
262
7bace51b
MK
2632003-08-29 Mark Kettenis <kettenis@gnu.org>
264
b0f5c6f2
MK
265 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
266 USER_DS. We haven't given them a register number yet.
267
2a6d284d
MK
268 * amd64-nat.h: New file.
269 * amd64-nat.c: New file.
270 * amd64fbsd-nat.c: Include "amd64-nat.h".
271 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
272 (amd64fbsd32_r_reg_offset): New variable.
273 (supply_gregset): Simply call amd64_supply_native_gregset.
274 (fill_gregset): Rename `regno' to `regnum'. Simply call
275 amd64_collect_native_gregset.
276 (fill_fpregset): Rename `regno' to `regnum'.
277 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
278 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
279 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
280 `fpregset_t'. Call amd64_supply_native_gregset instead of
281 supply_gregset. Call x86_64_supply_fxsave instead of
282 supply_fpregset.
283 (store_inferior_registers): Rename `regno' to `regnum'. Replace
284 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
285 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
286 `fpregset_t'. Call amd64_collect_native_gregset instead of
287 fill_gregset. Call x86_64_collect_fxsave instead of
288 fill_fpregset.
289 (_initialize_am64fbsd_nat): Initialize
290 amd64_native_gregset32_reg_offset and
291 amd64_native_gregset64_reg_offset.
292 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
293
a16d75cc
MK
294 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
295 null pointer. Fix typo in comment.
296
7bace51b
MK
297 * regcache.c (supply_register): Reimplement to call
298 regcache_raw_supply.
299 (regcache_collect): Reimplement by calling regcache_raw_collect.
300
9a661b68
MK
3012003-08-28 Mark Kettenis <kettenis@gnu.org>
302
303 * regcache.c (register_buffer): Consitify first argument.
304 (regcache_raw_supply, regcache_raw_collect): New
305 functions.
306
e94cc8fa
DJ
3072003-08-28 Daniel Jacobowitz <drow@mvista.com>
308
309 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
310 by Nathan J. Williams.
311
c64bd0ce
DJ
3122003-08-28 Daniel Jacobowitz <drow@mvista.com>
313
314 * lin-lwp.c (wait_lwp): New function, copied from
315 stop_wait_callback. Clean up.
316 (stop_wait_callback): Use wait_lwp.
317
e5ab0dce
AC
3182003-08-28 Andrew Cagney <cagney@redhat.com>
319
320 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
321 flavour and disassembler options.
322 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
323 (mips_gdbarch_init): Set "print_insn". Delete initialization of
324 deprecated_tm_print_insn_info.
325
a788de9b
AC
3262003-08-27 Andrew Cagney <cagney@redhat.com>
327
328 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
329 Use target_read_memory.
330 (s390_get_frame_info): Update. Do not reference
331 deprecated_tm_print_insn_info.
332 (s390_check_function_end, s390_is_sigreturn): Ditto.
333
36482093
AC
3342003-08-27 Andrew Cagney <cagney@redhat.com>
335
336 * Makefile.in (cris-tdep.o): Update dependencies.
337 * cris-tdep.c: Include "gdb_assert.h".
338 (cris_gdbarch_init): Set print_insn.
339 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
340 (cris_delayed_get_disassembler): Simplify, directly call the
341 disassembler returned by cris_get_disassembler.
342 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
343 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
344 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
345 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
346 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
347 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
348 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
349 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
350 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
351 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
352 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
353 (gdb_print_insn_sparc): Delete function.
354 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
355 deprecated_tm_print_insn_info.
356 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
357 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
358 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
359 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
360 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
361 * s390-tdep.c (gdb_print_insn_s390): Delete function.
362 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
363 (s390_gdbarch_init): Set print_insn.
364
0285512f
AC
3652003-08-27 Andrew Cagney <cagney@redhat.com>
366
367 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
368 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
369 * infcall.c (call_function_by_hand): Convert the entry point
370 address into a code address.
371
cdcd5552
AC
3722003-08-27 Andrew Cagney <cagney@redhat.com>
373
374 * dsrec.c: Include "gdb_string.h".
375 * Makefile.in (dsrec.o): Update dependencies.
376
e85cddad
MC
3772003-08-27 Michael Chastain <mec@shout.net>
378
379 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
380
8bbfbb23
AC
3812003-08-27 Andrew Cagney <cagney@redhat.com>
382
383 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
384 (alpha_osf1_init_abi): Do not set call_dummy_address.
385
ba058b66
DC
3862003-08-27 David Carlton <carlton@kealia.com>
387
388 From Randolph Chung <tausq@debian.org>:
389 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
390 compiles with -Wformat-nonliteral -Werror.
391
87f84c9d
JB
3922003-08-26 Jim Blandy <jimb@redhat.com>
393
394 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
395 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
396 bfd_lookup_symbol, since we only want symbols in code sections.
397 (look_for_base): Pass zero as the SECT_FLAGS argument to
398 bfd_lookup_symbol, since we're not concerned about which section
399 the symbol is in.
400
102d615a
JJ
4012003-08-26 Jeff Johnston <jjohnstn@redhat.com>
402
403 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
404 we are frameless or the return address register is already known.
405
cc7ad3ea
AC
4062003-08-26 Andrew Cagney <cagney@redhat.com>
407
408 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
409 in size. Add comments.
410
af8b88dd
JJ
4112003-08-26 Jeff Johnston <jjohnstn@redhat.com>
412
413 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
414 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
415
e0a4f5a1
JM
4162003-08-26 Jason Merrill <jason@redhat.com>
417
418 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
419 case out of #ifdef MIPS block.
420
4ae9ee8e
DJ
4212003-08-25 Daniel Jacobowitz <drow@mvista.com>
422
423 PR java/1322
424 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
425 available before calling SECT_OFF_TEXT.
3c164570 426 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 427
004d836a
JJ
4282003-08-25 Jeff Johnston <jjohnstn@redhat.com>
429
430 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
431 bof, and nat0-nat127 as pseudo-registers.
432 (ia64_frame_cache): New struct used to cache frame info.
433 (ia64_register_reggroup_p): New routine used to override default
434 register grouping so registers without names are still saved and
435 restored.
436 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
437 pseudo values.
438 (ia64_pseudo_register_read): New routine to read pseudo-registers.
439 (ia64_pseudo_register_write): New routine to write pseudo-registers.
440 (ia64_alloc_frame_cache): New routine to create a new
441 ia64_frame_cache.
442 (examine_prologue): Change prototype to add next_frame pointer.
443 Assume frameless until otherwise proven. Verify that the cfm for
444 current frame matches the cfm that should occur for the prologues
445 alloc insn and if equal, mark as not frameless. At end of routine,
446 if not frameless, calculate registers for the previous frame and store
447 in the cache, if a cache is provided.
448 (ia64_skip_prologue): Use new prototype when calling examine_prologue
449 and pass 0 for next_frame.
450 (ia64_store_return_value): Change to use convert_typed_floating()
451 instead of calling ia64_convert_to_raw().
452 (ia64_extract_return_value): Change to use convert_typed_floating()
453 instead of calling ia64_convert_to_virtual().
454 (ia64_frame_cache): New routine to support new frame model.
455 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
456 (ia64_frame_sniffer): Ditto.
457 (ia64_sigtramp_frame_init_saved_regs): Ditto.
458 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
459 (ia64_sigtramp_frame_prev_register): Ditto.
460 (ia64_sigtramp_frame_sniffer): Ditto.
461 (ia64_frame_base_address): Ditto.
462 (ia64_extract_struct_value_address): Change to issue error message.
463 (ia64_frame_align): New routine to align sp.
464 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
465 (ia64_push_arguments): Removed. Logic moved to
466 ia64_push_dummy_call().
467 (ia64_push_return_address): Ditto.
468 (ia64_unwind_dummy_id): New function.
469 (ia64_unwind_pc): Ditto.
470 (ia64_convert_register_p): Ditto.
471 (ia64_register_to_value): Ditto.
472 (ia64_value_to_register): Ditto.
473 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
474 (ia64_register_byte, ia64_register_raw_size): Ditto.
475 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
476 (ia64_saved_pc_after_call): Ditto.
477 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
478 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
479 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
480 (ia64_register_convert_to_raw): Ditto.
481 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
482 (ia64_init_extra_frame_info): Ditto.
483 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
484 (ia64_gdbarch_init): Remove registering of deprecated functions that
485 are no longer used. Add registration of new gdbarch functions.
486 Remove registering deprecated_write_sp. Replace
487 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
488 Delete set_gdbarch_deprecated_register_convertible(),
489 set_gdbarch_deprecated_register_convert_to_virtual(), and
490 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
491 set_gdbarch_deprecated_register_size(),
492 set_gdbarch_deprecated_register_bytes(),
493 set_gdbarch_pcregnum(),
494 set_gdbarch_deprecated_register_byte(),
495 set_gdbarch_deprecated_register_raw_size(),
496 set_gdbarch_deprecated_max_register_raw_size(),
497 set_gdbarch_deprecated_register_virtual_size(),
498 and set_gdbarch_deprecated_max_register_virtual_size() calls.
499 Replace set_gdbarch_deprecated_extract_return_value() with
500 set_gdbarch_extract_return_value(). Remove calls to:
501 set_gdbarch_deprecated_saved_pc_after_call();
502 set_gdbarch_deprecated_frame_chain(),
503 set_gdbarch_deprecated_frame_saved_pc(),
504 set_gdbarch_deprecated_frame_init_saved_regs(),
505 set_gdbarch_deprecated_get_saved_register(),
506 set_gdbarch_deprecated_call_dummy_words(),
507 set_gdbarch_deprecated_sizeof_call_dummy_words(),
508 set_gdbarch_deprecated_init_extra_frame_info(),
509 set_gdbarch_deprecated_frame_args_address(),
510 set_gdbarch_deprecated_frame_locals_address(),
511 and set_gdbarch_deprecated_dummy_write_sp().
512 Add set_gdbarch_convert_register_p(),
513 set_gdbarch_register_to_value(),
514 set_gdbarch_value_to_register(),
515 set_gdbarch_push_dummy_call(),
516 set_gdbarch_frame_align(),
517 set_gdbarch_unwind_dummy_id(),
518 set_gdbarch_unwind_pc(),
519 frame_unwind_append_sniffer(),
520 frame_unwind_append_sniffer(),
521 and frame_base_set_default().
522
aede7613
CD
5232003-08-25 Chris Demetriou <cgd@broadcom.com>
524
525 * configure.tgt: Document need for special "mipsisa64" handling.
526 (mipsisa64*-*-linux64): Handle as target linux64.
527 (mipsisa64*-*-*): Handle as target embed64.
528
43c3a82e
MC
5292003-08-18 Michael Chastain <mec@shout.net>
530
531 * PROBLEMS: Document pr gdb/1322, the Java anonymous
532 objfile bug.
533
6564f77d
MK
5342003-08-24 Mark Kettenis <kettenis@gnu.org>
535
2de139ba
MK
536 * i387-tdep.h: Update copyright date.
537 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
538
6564f77d
MK
539 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
540 CFLAGS games to reflect reality.
541
42cf1509
AC
5422003-08-24 Andrew Cagney <cagney@redhat.com>
543
544 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
545 GDB_MULTI_ARCH is always non-zero.
546 * osabi.c (_initialize_gdb_osabi): Ditto.
547 (gdbarch_init_osabi): Ditto.
548 * sparc-tdep.c: Ditto for #if code.
549
0485f6ad
MK
5502003-08-23 Mark Kettenis <kettenis@gnu.org>
551
552 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
553 Update comments.
554 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
555 comments.
556 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
557 x86_64_supply_fxsave.
558 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
559 x86_64_supply_fxsave.
560 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
561 x86_64_supply_fxsave.
562
c7716133
AJ
5632003-08-23 Andreas Jaeger <aj@suse.de>
564
565 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
566 i387_supply_fxsave.
567
ed504bdf
MK
5682003-08-23 Mark Kettenis <kettenis@gnu.org>
569
570 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
571 i387_supply_register.
572 (go32_fetch_registers): Adjust call to i387_supply_fsave.
573 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
574 i387_supply_fsave.
575 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
576 i387_supply_fxsave.
577 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
578 i387_supply_fsave.
579 * i386bsd-nat.c (supply_fpregset): Adjust call to
580 i387_supply_fsave.
581 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
582 call to i387_supply_fxsave. Call i387_supply_fsave instead of
583 supply_fpregset.
584 (store_inferior_registers): Remove extraneous whitespace. Call
585 i387_fill_fsave instead of fill_fpregset.
586 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
587 (supply_fpregset): Likewise.
588 * i386v4-nat.c (supply_fpregset): Adjust call to
589 i387_supply_fsave.
590 * i386-interix-nat.c (supply_fpregset): Adjust call to
591 i387_supply_fsave.
592 * i386-linux-nat.c (supply_fpregset): Adjust call to
593 i387_supply_fsave.
594 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
595 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
596 i387supply_fsave and i387_supply_fxsave.
597 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
598 Incorporate code from `i387_supply_register.
599 (i387_supply_register): Remove.
600 (i387_supply_fxsave): Add `regnum' argument.
601 Update comments.
602 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
603 prototype.
604 (i387_supply_register): remove prototype.
605 Update comments.
606
4be5d520
MC
6072003-08-22 Michael Chastain <mec@shout.net>
608
609 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
610 Add lines for files in gdb/testsuite/gdb.cp/* that are
611 still not 8.3 unique.
612
7ed85d26
DJ
6132003-08-22 Daniel Jacobowitz <drow@mvista.com>
614
615 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
616 TYPE_VPTR_FIELDNO is valid.
617
eb0d3137
MK
6182003-08-19 Mark Kettenis <kettenis@gnu.org>
619
620 * utils.c (set_width_command): Remove prototypes.
621 (set_screen_size): New prototype.
622 (init_page_info): Simplify by fetching the screen size from
623 Readline. Call set_screen_size.
624 (set_screen_size): New function.
625 (set_width): Add missing whitespace in comment.
626 (set_width_command): Call set_screen_size.
627 (set_height_command): New function.
628 (initialize_utils): Fix formatting. Make "set height" command
629 call set_height_command. Remove redundant code that turns off
630 pagination if output isn't a terminal. Remove redundant call to
631 set_width_command.
632
7e6d0ac8
MK
6332003-08-22 Mark Kettenis <kettenis@gnu.org>
634
3567a8ea
MK
635 * sparc64-tdep.h (sparc64_regnum): Fix comment.
636 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
637 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
638 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
639 `case' keyword.
640 (sparc64_register_info): Give the reister with number
641 SPARC64_STATE_REGNUM a name.
642 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
643 %asi and %ccr.
644 (sparc64_push_dummy_call): Take BIAS into account when checking
645 stcak alignment.
646 (sparc_software_single_step): Remove assertions that check whether
647 NPC and NNPC were zero.
648 (sparc_supply_rwindow): Make public. Merge functionality with
649 sparc64_supply_rwindow.
650 (sparc_fill_rwindow): Make public. Merge functionality with
651 sparc64_fill_rwindow.
652 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
653 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
654 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
655 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
656 sparc_supply_rwindow instead of sparc64_supply_rwindow.
657
7e6d0ac8
MK
658 * reggroups.c: Add whitespace after declarations of local
659 variables in functions.
660
72e5f484
MC
6612003-08-21 Michael Chastain <mec@shout.net>
662
663 * gdbtypes.h: Change array bound type from an int to enum.
664
435ac228
AC
6652003-08-21 Andrew Cagney <cagney@redhat.com>
666
667 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
668 * config/sparc/tm-sparc.h: Ditto.
669 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
670 unconditionally.
671 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
672
0d0e1a63
MK
6732003-07-13 Mark Kettenis <kettenis@gnu.org>
674
675 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
676 (register_objfile_data, set_objfile_data, objfile_data): New
677 prototypes.
678 * objfiles.c (objfile_alloc_data, objfile_free_data): New
679 prototypes.
680 (allocate_objfile): Call objfile_alloc_data.
681 (free_objfile): Call objfile_free_data.
682 (struct objfile_data): New.
683 (struct objfile_data_registration): New.
684 (struct objfile_data_registry): New.
685 (objfile_data_registry): New variable.
686 (register_objfile_data): New function.
687 (objfile_alloc_data, objfile_free_data): New functions.
688 (set_objfile_data, objfile_data): New functions.
689 * dwarf2-frame.c (dwarf2_frame_data): New variable.
690 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
691 (_initialize_dwarf2_frame): New function and prototype.
692
d90cf509
AC
6932003-08-21 Andrew Cagney <cagney@redhat.com>
694
695 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
696 a specific architecture.
697 * arch-utils.h (set_architecture_from_arch_mach): Delete
698 declaration.
699 (target_architecture_hook): Delete declaration.
700 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
701 (default_float_format): Assume GDB_MULTI_ARCH.
702 (default_double_format): Assume GDB_MULTI_ARCH.
703 (set_endian_from_file): Delete function.
704 (arch_ok): Delete function.
705 (set_arch): Delete function.
706 (set_architecture_from_arch_mach): Delete function.
707 (set_architecture_from_file): Delete function.
708 (set_architecture): Assume GDB_MULTI_ARCH.
709 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
710
8b39fe56
MK
7112003-08-21 Mark Kettenis <kettenis@gnu.org>
712
713 Rewrite FreeBSD/sparc64 native configuration.
714 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
715 * sparc64fbsd-nat.c: New file.
716 * sparc64fbsd-tdep.c: New file.
717 * sparc64-tdep.c sparc64-tdep.h: New files.
718 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
719 sparc64fbsd-tdep.o): New dependencies.
720 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
721 and sparc64fbsd-tdep.c.
722 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
723 * config/sparc/fbsd.mh: Remove copyright notice.
724 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
725 sparcbsd-nat.o.
726 * config/sparc/fbsd.mt: Remove copyright notice.
727 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
728 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
729 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
730 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
731 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
732 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
733 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
734 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
735 "sparc/tm-sp64.h".
736 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
737 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
738
a7f19c79
MC
7392003-08-21 Michael Chastain <mec@shout.net>
740
741 * symtab.h: Add doco on the space critical structures and
742 some measurements of space usage.
743
da08ea5b
MS
7442003-08-21 Michael Snyder <msnyder@redhat.com>
745
746 * tracepoint.c (trace_dump_command): Trace break address
747 is subject to DECR_PC_AFTER_BREAK.
748 (set_traceframe_context): Make "trace_line" an int.
749 Fixes suggested by Mark Newman <mark.newman@lmco.com>
750
6df2bf50
MS
7512003-08-20 Michael Snyder <msnyder@redhat.com>
752
753 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
754 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
755 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
756 argument passing.
757 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
758 functions, replace sh_push_dummy_call.
759 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
760
0955bbf0
MC
7612003-08-20 Michael Chastain <mec@shout.net>
762
763 * gdbtypes.h (struct main_type): Rearrange to save space.
764
260a4188
MS
7652003-08-20 Michael Snyder <msnyder@redhat.com>
766
767 * trad-frame.c: Comment typo fix.
768
8baa6f92
KB
7692003-08-20 Michael Snyder <msnyder@redhat.com>
770 Kevin Buettner <kevinb@redhat.com>
771
772 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
773 (frv_frame_init_saved_regs): Add declaration.
774 (frame_extra_info): Add new field ``saved_regs''.
775 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
776 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
777 Update frame related code.
778 (frv_extract_struct_value_address): Adjust formatting.
779 * Makefile.in (frv-tdep.o): Update dependencies.
780 * config/frv/tm-frv.h (target_insert_watchpoint)
781 (target_remove_watchpoint, target_insert_hw_breakpoint)
782 (target_remove_hw_breakpoint): Delete these macros.
783 (remote_insert_watchpoint, remote_remove_watchpoint)
784 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
785 these declarations.
786
87193939
MC
7872003-08-20 Michael Chastain <mec@shout.net>
788
789 * defs.h (ENUM_BITFIELD): New macro.
790 * symtab.h (ENUM_BITFIELD): Use it.
791 (BYTE_BITFIELD): Remove old macro, which was already disabled.
792
062103ba
SA
7932003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
794
795 * MAINTAINERS (write after approval): Add myself.
796
8b148df9
AC
7972003-08-18 Andrew Cagney <cagney@redhat.com>
798
799 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
800 * gdbarch.h, gdbarch.c: Re-generate.
801 * infcall.c (call_function_by_hand): Adjust the SP by
802 frame_red_zone_size before allocating any stack space.
803 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
804 * x86-64-tdep.c (x86_64_frame_align): New function.
805 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
806
807 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
808 Remove code adjusting SP so that it skips over the Red Zone.
809
954a4db8
MK
8102003-08-18 Mark Kettenis <kettenis@gnu.org>
811
812 * NEWS (New native configurations): Mention FreeBSD/amd64.
813
1a241548
AC
8142003-08-18 Andrew Cagney <cagney@redhat.com>
815
816 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
817 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
818 "m68k_frame_p".
819 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
820
f82b2acd
MK
8212003-08-18 Mark Kettenis <kettenis@gnu.org>
822
823 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
824
4056d258
ML
8252003-08-18 Michal Ludvig <mludvig@suse.cz>
826
827 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
828 Define.
829 * i386-linux-nat.c: Include "linux-nat.h".
830 (child_post_startup_inferior): New function.
831
99ab4326
MK
8322003-08-18 Mark Kettenis <kettenis@gnu.org>
833
834 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
835 at the start of a frameless function. This probably fixes PR
836 backtrace/1338.
837
c8d5f0d6
MC
8382003-08-17 Michael Chastain <mec@shout.net>
839
840 * symfile.c (find_sym_fns): Remove special case for apollo target.
841
9016a515
DJ
8422003-08-17 Daniel Jacobowitz <drow@mvista.com>
843
844 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
845 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
846 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
847 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
848 (linux_supports_tracevforkdone): New function.
849 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
850 TRACEVFORKDONE.
851 (child_follow_fork): Handle vfork.
852 (linux_handle_extended_wait): Likewise. Also handle exec.
853 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
854 * NEWS: Mention fork tracing.
855
c538c11c
DJ
8562003-08-17 Daniel Jacobowitz <drow@mvista.com>
857
858 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
859
4de4c07c
DJ
8602003-08-17 Daniel Jacobowitz <drow@mvista.com>
861
862 * Makefile.in (i386-linux-nat.o): Update dependencies.
863 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
864 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
865 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
866 * i386-linux-nat.c: Include "linux-nat.h".
867 (child_post_startup_inferior): New function.
868 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
869 * infptrace.c (kill_inferior): Wrap in #ifdef.
870 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
871 attaching to each LWP.
872 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
873 (init_lin_lwp_ops): Fill in some more operations.
874 * linux-nat.h (linux_enable_event_reporting)
875 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
876 prototypes.
877 * linux-nat.c (linux_enable_event_reporting): New function.
878 (child_post_attach, linux_child_post_startup_inferior)
879 (child_post_startup_inferior, child_follow_fork)
880 (linux_handle_extended_wait, kill_inferior): New functions.
881
7996bcec
AC
8822003-08-16 Andrew Cagney <cagney@redhat.com>
883
884 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
885 * gdbarch.h, gdbarch.c: Re-generate.
886
3d48a7a0
MK
8872003-08-16 Mark Kettenis <kettenis@gnu.org>
888
889 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
890
7989c619
AC
8912003-08-16 Andrew Cagney <cagney@redhat.com>
892
893 * NEWS: Mention that "set prompt-escape-char" was deleted.
894 * top.c (get_prompt_1): Delete function.
895 (gdb_prompt_escape):
896 (init_main): Do not clear "gdb_prompt_escape". Delete "set
897 prompt-escape-char" command.
898 (MAX_PROMPT_SIZE): Delete macro.
899 (get_prompt): Simplify, do not call get_prompt_1.
900
07978cd8
AC
9012003-08-16 Andrew Cagney <cagney@redhat.com>
902
903 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
904 -Werror. -Wformat-nonliteral problems.
905
3ff7cf9e
JB
9062003-08-15 J. Brobecker <brobecker@gnat.com>
907
908 Further multiarching work mostly for hppa64-*-hpux11:
909 * hppa-tdep.h: New file.
910 * hppa-tdep.c: #include hppa-tdep.c.
911 (hppa32_num_regs): Renamed from hppa_num_regs.
912 (hppa64_num_regs): New constant.
913 (hppa64_call_dummy_breakpoint_offset): New constant.
914 (hppa32_call_dummy_length): New constant.
915 (hppa64_call_dummy_length): New constant.
916 (hppa32_stack_align): Make name 32bit explicit.
917 (hppa32_register_virtual_type): Likewise.
918 (hppa32_extract_return_value): Likewise.
919 (hppa32_use_struct_convention): Likewise.
920 (hppa32_store_return_value): Likewise.
921 (hppa64_register_virtual_type): New function.
922 (hppa64_extract_return_value): New function.
923 (hppa64_use_struct_convention): New function.
924 (hppa64_store_return_value): New function.
925 (hppa_frame_locals_address): Remove declaration, function does
926 not exist anymore.
927 (hppa_register_byte): Add support for PA64 ABI.
928 (hppa_gdbarch_init): Add support for PA64 ABI.
929 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
930 Make name 32bit explicit.
931 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
932 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
933 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
934 (hppa64_hpux_frame_base_before_sigtramp): New function.
935 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
936 * config/pa/tm-hppa64.h: Remove macros that are no longer
937 necessary now that the gdbarch vector is properly setup.
938 Transform some macros into function calls. Some minor cleanup.
939 * config/pa/tm-hppah.h: Update function calls in macros
940 following the function renaming in hppa-hpux-tdep.c.
941 * Makefile.in (hppa_tdep_h): New variable.
942 (hppa-tdep.o): Add dependency over hppa_tdep_h.
943
5d05ca6d
MS
9442003-08-14 Michael Snyder <msnyder@redhat.com>
945
946 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
947
37ba2569
JB
9482003-08-13 J. Brobecker <brobecker@gnat.com>
949
950 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
951 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
952 routine.
953
aed7f26a
MS
9542003-08-13 Michael Snyder <msnyder@redhat.com>
955
956 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
957 (frv_saved_pc_after_call): Use deprecated ftype.
958 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
959 (frv_remote_translate_xfer_address): Remove.
960 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
961
752d4ac1
JB
9622003-08-13 J. Brobecker <brobecker@gnat.com>
963
964 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
965 initialization after the common gdbarch initialization, not before.
966
1426ac1d
JB
9672003-08-13 J. Brobecker <brobecker@gnat.com>
968
969 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
970 (ADDR_BITS_REMOVE): Remove, redundant.
971
b6fbdd1d
JB
9722003-08-13 J. Brobecker <brobecker@gnat.com>
973
974 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
975 gdbarch method to clear the 2 low bits of text addresses.
976
44160db3
AC
9772003-08-12 Andrew Cagney <cagney@redhat.com>
978
979 * Makefile.in (dsrec.o): Update dependencies.
980 * dsrec.c: Include "gdb_assert.h".
981 (make_srec): Use snprintf instead of sprintf, use a literal format
982 string.
983
bcf7d3ca
AC
9842003-08-12 Andrew Cagney <cagney@redhat.com>
985
986 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
987 FRAME_OBSTACK_ZALLOC.
988
49ed40de
KB
9892003-08-12 Kevin Buettner <kevinb@redhat.com>
990
991 * i386-tdep.c (i386_gdbarch_init): Enable default support for
992 SSE registers.
993
b246147c
MK
9942003-08-10 Mark Kettenis <kettenis@gnu.org>
995
996 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
997 amd64fbsd_sc_reg_offset): Add extern declarations.
998 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
999 declarations.
1000
d95fdc0d
BE
10012003-08-11 Ben Elliston <bje@wasabisystems.com>
1002
1003 * MAINTAINERS (write after approval): Update my mail address.
1004
cf6a0e73
AC
10052003-08-10 Andrew Cagney <cagney@redhat.com>
1006
1007 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1008
f837910f
MK
10092003-08-10 Mark Kettenis <kettenis@gnu.org>
1010
e2dbbd2d
MK
1011 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1012 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1013 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1014 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1015 i386bsd_sc_reg_offset): Add extern declarations.
1016 * i386obsd-nat.c: Include "i386-tdep.h"
1017 (_initialize_i386obsd_nat): Remove extern declarations.
1018 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1019 declarations.
1020 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1021 declarations.
1022
f837910f
MK
1023 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1024 instead of frame_read_register.
1025 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1026 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1027 SP_REGNUM.
1028 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1029 instead of frame_unwind_unsigned_register. Use
1030 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1031 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1032 instead of read_register. Use builtin_type_void_data_ptr instead
1033 of builtin_type_void_func_ptr when extracting the address of the
1034 jmp_buf.
1035 (i386_extract_return_value, i386_store_return_value,
1036 i386_pseudo_register_read, i386_pseudo_register_write): Use
1037 register_size instead REGISTER_RAW_SIZE.
1038
edcf254d
AC
10392003-08-10 Andrew Cagney <cagney@redhat.com>
1040
1041 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1042 sprintf. Make "name" constant.
1043
26604a34
MK
10442003-08-10 Mark Kettenis <kettenis@gnu.org>
1045
192285c6
MK
1046 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1047 instead of frame_read_register.
f837910f
MK
1048 (i387_print_float_info): Use get_frame_register and
1049 get_frame_register_unsigned instead of frame_register_read.
192285c6 1050
f0925262
MK
1051 * i386fbsd-nat.c: Include "i386-tdep.h".
1052 (child_resume): Make `eflags' an ULONGEST. Use
1053 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1054 instead of register_read and register_write.
1055
a144416f
MK
1056 * i386bsd-nat.c (fetch_inferior_registers,
1057 store_inferior_registers): Don't use && at the end of a line.
1058 (_initialize_i386bsd_nat): Fix typo.
1059
fec74868
MK
1060 * frame.c (_initialize_frame): Add missing backslash.
1061
87232496
MK
1062 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1063 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1064 and supply_register instead of manipulating the register buffer
1065 directly.
1066
c9b9de0b
MK
1067 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1068 * config/i386/nm-i386sol2.h
1069 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1070
26604a34
MK
1071 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1072 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1073 instructions that GCC likes to mingle into the prologue. Fixes
1074 gdb/1253 and gdb/1255.
1075
25d29d70
AC
10762003-08-09 Andrew Cagney <cagney@redhat.com>
1077
1078 Fix GDB PR cli/926.
1079 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1080 * command.h (add_setshow_uinteger_cmd): Declare.
1081 * frame.c (set_backtrace_cmd): New function.
1082 (show_backtrace_cmd): New function.
1083 * frame.c (_initialize_frame): Replace "set/show
1084 backtrace-below-main" with "set/show backtrace past-main". Add
1085 command "set/show backtrace limit".
1086 (backtrace_past_main): Rename "backtrace_below_main".
1087 (backtrace_limit): New variable.
1088 (get_prev_frame): Update. Check the backtrace_limit.
1089
9ebf4acf
AC
10902003-08-09 Andrew Cagney <cagney@redhat.com>
1091
1092 * defs.h (xstrprintf): Declare.
1093 * utils.c (xstrprintf): New function.
1094 * breakpoint.c (insert_breakpoints): Replace sprintf and
1095 non-literal format strings, with xstrprintf and cleanups.
1096 (delete_breakpoint,breakpoint_re_set): Ditto.
1097 (commands_command, insert_breakpoints): Ditto.
1098 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1099 (break_at_finish_command_1): Ditto.
1100
3771659b
AC
11012003-08-09 Andrew Cagney <cagney@redhat.com>
1102
1103 * MAINTAINERS (language support): List Adam Fedor as Objective C
1104 maintainer.
1105
b4263afa
JB
11062003-08-08 J. Brobecker <brobecker@gnat.com>
1107
1108 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1109 are now multiarched.
1110
d84defb1
JB
11112003-08-08 J. Brobecker <brobecker@gnat.com>
1112
1113 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1114 longer necessary now that hppa64 is partially multiarch'ed.
1115
f786f615
AC
11162003-08-08 Andrew Cagney <cagney@redhat.com>
1117
1118 * interps.c (interp_set): Check for a NULL "old_interp".
1119
c938e9b0
L
11202003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1121
1122 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1123 (install-only): Support DESTDIR.
1124 (uninstall): Likewise.
1125 (install-gdbtk): Likewise.
1126
9a146a11
EZ
11272003-08-08 Elena Zannoni <ezannoni@redhat.com>
1128
1129 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1130 contains something meaningful at all times.
1131
1132Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 1133
62599e99 1134 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 1135
56296155
BC
1136Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1137
62599e99 1138 * MAINTAINERS (write after approval): Added self.
56296155 1139
9710e734
AC
11402003-08-07 Andrew Cagney <cagney@redhat.com>
1141
1142 * inferior.h (AT_SYMBOL): Define.
1143 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1144 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1145 * mips-tdep.c (mips_call_dummy_address): Delete function.
1146 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1147 set call_dummy_address.
1148
98b3ab73
AC
11492003-08-07 Andrew Cagney <cagney@redhat.com>
1150
1151 * language.c (op_error): Delete function.
1152 (binop_type_check): Delete function.
1153 * language.h (type_op_error, range_op_error): Delete macros.
1154 (op_error): Delete declaration.
1155
2fcf52f0
AC
11562003-08-07 Andrew Cagney <cagney@redhat.com>
1157
1158 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1159
abd4220e 11602003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 1161
abd4220e 1162 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 1163 (x86_64_push_arguments): Skip the red zone.
abd4220e 1164
9dd5f34f
AC
11652003-08-05 Andrew Cagney <cagney@redhat.com>
1166
1167 * reggroups.c (reggroup_next): Check for the final entry.
1168
e5e78edc
AC
11692003-08-04 Andrew Cagney <cagney@redhat.com>
1170
ab4e3d93
AC
1171 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1172 * cli/cli-script.c (define_command): Call query directly, instead
1173 of passing it a buffer.
1174 * ocd.c (ocd_error): Pass error a constant format string.
1175 * remote-mips.c (mips_error): Use fputs_filtered.
1176
1062ca82
AC
1177 * solib-svr4.c (_initialize_svr4_solib): Update
1178 register_gdbarch_data call.
1179 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1180
fcc1c85c
AC
1181 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1182 (register_gdbarch_data): Delete "free" parameter. Update
1183 comments.
1184 * gdbarch.h, gdbarch.c: Re-generate.
1185 * reggroups.c (_initialize_reggroup): Update.
1186 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1187 * frame-base.c (_initialize_frame_base): Update.
1188 * frame-unwind.c (_initialize_frame_unwind): Update.
1189 * user-regs.c (_initialize_user_regs): Update.
1190 * remote.c (_initialize_remote): Update.
1191 * regcache.c (_initialize_regcache): Update.
1192
116f06ea
AC
1193 * regcache.c (xfree_regcache_descr): Delete function.
1194 (_initialize_regcache): Update call to register_gdbarch_data.
1195 (init_regcache_descr, init_legacy_regcache_descr): Use
1196 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1197
e5e78edc
AC
1198 * remote.c (free_remote_state): Delete function.
1199 (_initialize_remote): Update register_gdbarch_data.
1200 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1201 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1202
6c7d17ba
AC
12032003-08-04 Andrew Cagney <cagney@redhat.com>
1204
1205 * reggroups.c (struct reggroup_el): Define.
1206 (struct reggroups): Delete field "nr_group". Replace array
1207 "group" with a "first" to "last" linked list.
1208 (reggroups_init): Update. Allocate using gdbarch's obstack.
1209 (reggroups_free): Delete function.
1210 (add_group): Update. Add "el" parameter.
1211 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1212 (default_groups): Update.
1213 (reggroup_next): Replace reggroups.
1214 (reggroups_dump): Update.
1215 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1216 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1217 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1218
89b7795b
DJ
12192003-08-04 Daniel Jacobowitz <drow@mvista.com>
1220
1221 * Makefile.in (tui-interp.o): Update dependencies.
1222
306d9ac5
DC
12232003-08-04 David Carlton <carlton@kealia.com>
1224
1225 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1226 to internal_error call.
1227 * source.c (forward_search_command): Add "%s" format argument.
1228 (reverse_search_command): Ditto.
1229 * top.c (quit_confirm): Ditto.
1230 * cli/cli-setshow.c (do_setshow_command): Ditto.
1231 * cp-valprint.c (cp_print_class_method): Replace
1232 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1233 (cp_print_class_member): Ditto.
1234 * event-top.c (command_line_handler): Ditto.
1235 * linux-proc.c (linux_info_proc_cmd): Ditto.
1236 * p-typeprint.c (pascal_type_print_base): Ditto.
1237 * p-valprint.c (pascal_object_print_class_method): Ditto.
1238 (pascal_object_print_class_member): Ditto.
1239 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1240 * remote.c (remote_cisco_section_offsets): Ditto.
1241 * top.c (command_line_input): Ditto.
1242 * utils.c (vwarning,error_stream,quit): Ditto.
1243 * valprint.c (print_floating,print_binary_chars)
1244 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1245
57bfe177
AC
12462003-08-04 Andrew Cagney <cagney@redhat.com>
1247
1248 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1249
e546b999
AC
12502003-08-02 Andrew Cagney <cagney@redhat.com>
1251
1252 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1253 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1254 amd64fbsd-nat.c.
1255
91092ee5
AC
12562003-08-02 Andrew Cagney <cagney@redhat.com>
1257
1258 * Makefile.in: Update all dependencies and definitions.
1259
889f28e2
AF
12602003-08-02 Adam Fedor <fedor@gnu.org>
1261
1262 * linespec.c (is_objc_method_format): New function
1263 (decode_line_1, locate_first_half): Use it.
1264 Fixes PR objc/1298
1265
880bc914
AC
12662003-08-01 Andrew Cagney <cagney@redhat.com>
1267
1268 * NEWS: Mention that m32r is multi-arch.
1269 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1270 * configure.tgt: Recognize m32r-*-*.
1271 * config/m32r/tm-m32r.h: Delete file.
1272 * config/m32r/m32r.mt: New file.
1273 * m32r-rom.c (m32r_upload_command): Use hostent only when
1274 gethostname succeeds, in order to avoid a compilation
1275 warning.
1276 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1277 compiler warning.
1278
19f59343
MS
12792003-08-01 Michael Snyder <msnyder@redhat.com>
1280
1281 * sh-tdep.c (sh_frame_align): New gdbarch method.
1282 (sh_gdbarch_init): Set up frame_align method.
1283
4e7d7511
MS
12842003-07-31 Michael Snyder <msnyder@redhat.com>
1285
1286 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1287 which is already covered by the new frames infrastructure.
1288
63022984
AC
12892003-07-31 Andrew Cagney <cagney@redhat.com>
1290
1291 * user-regs.c (struct user_reg): Add "next" link.
1292 (struct user_regs): Replace "user" with "first" and "last" links.
1293 (append_user_reg): Add pre-allocated "reg" parameter.
1294 (builtin_user_regs): Provide initial value for "last".
1295 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1296 (user_regs_init): Allocate memory from the gdbarch obstack.
1297 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1298 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1299 linked list.
1300 (usernum_to_user_reg): New function.
1301 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1302 (value_of_user_reg): Use usernum_to_user_reg.
1303 (user_regs_free): Delete function.
1304 (_initialize_user_regs): Update register_gdbarch_data call.
1305
7cf6e574
DJ
13062003-07-31 Daniel Jacobowitz <drow@mvista.com>
1307
1308 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1309
c48a845b
MS
13102003-07-30 Michael Snyder <msnyder@redhat.com>
1311
4e7d7511 1312 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
1313 * infcall.c (call_function_by_hand): Pass struct_addr to
1314 value_being_returned.
1315 * infcmd.c (print_return_value): Pass zero as struct_addr.
1316 * values.c (value_being_returned): If struct_addr is passed,
1317 use it instead of trying to recover it from the inferior.
1318
f0d8db19
KB
13192003-07-30 Kevin Buettner <kevinb@redhat.com>
1320
1321 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1322 the prologue analyzer won't need to attempt to extract the pc
1323 value from the woefully incomplete dummy frame.
1324 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1325 possible. Disable code which modifies the frame.
1326
e5c113a1
AC
13272003-07-28 Andrew Cagney <cagney@redhat.com>
1328
1329 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1330 to level 2.
1331 (annotate_breakpoints_table, annotate_record): Ditto.
1332 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1333 (annotate_field_name_end, annotate_field_value): Ditto.
1334 (annotate_field_end, annotate_frame_source_begin): Ditto.
1335 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1336 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1337 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1338 (annotate_frame_address_end, annotate_frame_address): Ditto.
1339 (annotate_frame_args, annotate_frame_end): Ditto.
1340 (annotate_frame_where, annotate_arg_begin): Ditto.
1341 (annotate_arg_name_end, annotate_arg_value): Ditto.
1342 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1343 (annotate_function_call, annotate_signal_name): Ditto.
1344 (annotate_signal_string, annotate_signal_name_end): Ditto.
1345 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1346 (annotate_value_begin, annotate_value_history_value): Ditto.
1347 (annotate_value_history_end, annotate_value_end): Ditto.
1348 (annotate_display_begin, annotate_display_number_end): Ditto.
1349 (annotate_display_format, annotate_display_expression): Ditto.
1350 (annotate_display_expression_end, annotate_display_value): Ditto.
1351 (annotate_display_end, annotate_array_section_begin): Ditto.
1352 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1353 (annotate_elt, annotate_array_section_end): Ditto.
1354
bb1db049
AC
13552003-07-28 Andrew Cagney <cagney@redhat.com>
1356
1357 * regcache.c (struct regcache_descr): Update comments on
1358 nr_raw_registers.
1359 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1360 sizeof_raw_register_valid_p.
1361 (init_regcache_descr): Set nr_raw_registers and
1362 sizeof_raw_register_valid_p before calling
1363 init_legacy_regcache_descr.
1364
20e6603c
AC
13652003-07-28 Andrew Cagney <cagney@redhat.com>
1366
1367 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1368 MOD NUM_REGS.
1369
db742940
DJ
13702003-07-28 Daniel Jacobowitz <drow@mvista.com>
1371
1372 * thread.c (info_threads_command): Use get_selected_frame ().
1373 Check that there is at least one non-sentinel frame.
1374
ce7f4371
SC
13752003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1376
1377 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1378 (m68hc11_pop_frame): Remove.
1379 (m68hc11_frame_saved_pc): Remove.
1380 (m68hc11_frame_chain): Remove.
1381 (m68hc11_frame_init_saved_regs): Remove.
1382 (m68hc11_init_extra_frame_info): Remove.
1383 (m68hc11_store_struct_return): Remove.
1384 (m68hc11_saved_pc_after_call): Remove.
1385
1ea653ae
SC
13862003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1387
1388 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1389 frame unwind information.
1390 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1391 and adapted for frame unwinding.
1392 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1393 (m68hc11_unwind_pc): New function.
1394 (m68hc11_frame_unwind_cache): New function to analyze frames.
1395 (m68hc11_frame_this_id): New function to create new frame struct.
1396 (m68hc11_frame_prev_register): New function to unwind a register from
1397 the frame.
1398 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1399 (m68hc11_frame_p): New function for the above.
1400 (m68hc11_frame_base_address): New function to return fp of frame.
1401 (m68hc11_frame_args_address): Update for frame.
1402 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1403 (m68hc11_unwind_sp): New function.
1404 (m68hc11_unwind_dummy_id): New function.
1405 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1406 calls.
1407
c8a7f6ac
SC
14082003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1409
1410 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1411 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1412 when we are beyond the current pc.
1413
3dc990bf
SC
14142003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1415
1416 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1417 from m68hc11_push_arguments.
1418 (m68hc11_push_arguments): Remove.
1419 (m68hc11_push_return_address): Remove.
1420 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1421 handlers; remove deprecated_extra_stack_alignment_needed.
1422
222e5d1d
AC
14232003-07-27 Andrew Cagney <cagney@redhat.com>
1424
1425 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1426 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1427 REAL_PC and not the pointer.
1428 * hppa-hpux-tdep.c: Include frame.h
1429
a7e9a47e
AC
14302003-07-27 Andrew Cagney <cagney@redhat.com>
1431
1432 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1433 GDB_MULTI_ACH_PARTIAL.
1434
7e3dd49e
AC
14352003-07-27 Andrew Cagney <cagney@redhat.com>
1436
1437 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1438 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1439 operator at start and not end of line.
1440 (decode_prologue): Ditto.
1441 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1442 frame_unwind_register_unsigned instead of
1443 frame_unwind_unsigned_register.
1444 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1445 read_register.
1446 (m32r_push_dummy_call): Use register_size instead of
1447 REGISTER_RAW_SIZE.
1448 (m32r_frame_sniffer): Replace m32r_frame_p.
1449 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1450 * m32r-rom.c (report_transfer_performance): Delete extern
1451 declaration.
1452 (m32r_load, m32r_upload_command): Use print_transfer_performance
1453 instead of report_transfer_performance.
1454 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1455 / add_show_from_set.
1456
0880807f
AC
14572003-07-26 Andrew Cagney <cagney@redhat.com>
1458
1459 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1460 store_return_value and extract_struct_value_address.
1461
64ae9269
DJ
14622003-07-26 Daniel Jacobowitz <drow@mvista.com>
1463
1464 PR c++/1267
1465 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1466 NULL, default to the section containing PC.
1467
e286caf2
SC
14682003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1469
1470 * NEWS: Mention "regs" deprecated for m68hc11 too.
1471
1472 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1473 (m68hc11_print_register): New function to print out one register.
1474 (m68hc11_print_registers_info): New function to print registers.
1475 (show_regs): Deprecate and use the above.
1476 (m68hc11_gdbarch_init): Install the print_registers_info.
1477
705b278b
JJ
14782003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1479
1480 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1481 that we have a SIGTRAP before returning non-zero.
1482
63cd4198
EZ
14832003-07-23 Michal Ludvig <mludvig@suse.cz>
1484 Elena Zannoni <ezannoni@redhat.com>
1485
1486 * linespec.c (decode_line_2): Avoid crash if
1487 find_function_start_sal() returns empty record.
1488
6926787d
AS
14892003-07-23 Andreas Schwab <schwab@suse.de>
1490
1491 * ia64-tdep.c (ia64_print_insn): New function.
1492 (ia64_gdbarch_init): Set print_insn to it.
1493 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1494 deprecated_tm_print_insn_info.
1495
708cc1b6
MS
14962003-07-22 Michael Snyder <msnyder@redhat.com>
1497
1498 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1499 handle 8-bit returns (long long).
1500 (h8300h_extract_return_value): Ditto.
1501 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1502
aebd7893
AC
15032003-07-22 Andrew Cagney <cagney@redhat.com>
1504
1505 * gdbarch.c Include "gdb_obstack.h".
1506 (struct gdbarch): Add an "obstack".
1507 (alloc_gdbarch_data): Allocate the gdbarch data using
1508 GDBARCH_OBSTACK_CALLOC.
1509 (free_gdbarch_data): Delete function.
1510 (gdbarch_obstack_zalloc): New function.
1511 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1512 Assert that the architecture is not initialized.
1513 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1514 vector from the obstack.
1515 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1516 architecture obstack.
1517 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1518 (set_gdbarch_data): Assert that the data is not initialized.
1519 (struct gdbarch_data): Delete member "free".
1520 (register_gdbarch_data): Do not initialize "free".
1521 * gdbarch.h, gdbarch.c: Re-generate.
1522
153721e6
AC
15232003-07-22 Andrew Cagney <cagney@redhat.com>
1524
1525 * configure.in (build_warnings): Add -Wformat-nonliteral.
1526 * configure: Re-generate.
1527
c193f044 15282003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
1529
1530 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 1531
c3228f12
EZ
15322003-07-22 Elena Zannoni <ezannoni@redhat.com>
1533
1534 * findvar.c (read_var_value): Remove case for thread local storage
1535 variables. It is now entirely handled by the dwarf2 location
1536 expression code.
1537 * printcmd.c (address_info): Ditto.
1538 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1539 enumeration value.
1540 (struct symbol): Remove objfile field, which was used by
1541 LOC_THREAD_LOCAL_STATIC only.
1542 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1543 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1544 usage of objfile pointer.
1545 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1546 thread local variables.
1547 Add include of objfiles.h.
1548 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1549 storage variables.
1550 * Makefile.in (dwarf2loc.o): Update dependencies.
1551
aef9bcd2
AC
15522003-07-22 Andrew Cagney <cagney@redhat.com>
1553
1554 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1555 get_frame_base.
1556 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1557 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1558 (struct value): Add opaque declaration.
1559 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1560
d95a8903
AC
15612003-07-21 Andrew Cagney <cagney@redhat.com>
1562
1563 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1564 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1565
4db73d49
SC
15662003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1567
1568 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1569 regcache_cooked_read_unsigned instead of read_register.
1570 (m68hc11_saved_pc_after_call): Likewise.
1571 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1572 instead of write_register.
1573 (m68hc11_register_type): New function.
1574 (m68hc11_register_virtual_type): Remove.
1575 (m68hc11_store_return_value): Convert to use the regcache.
1576 (m68hc11_extract_struct_value_address): Likewise.
1577 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1578 m68hc11_register_type; undeprecate store_return_value and
1579 extract_struct_value_address.
1580
ef2b8fcd
SC
15812003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1582
1583 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1584 and translate to use regcache.
1585 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1586
625b0b97
AC
15872003-07-18 Andrew Cagney <cagney@redhat.com>
1588
1589 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1590 * gdbarch.h, gdbarch.c: Re-generate.
1591 * i386-tdep.c (i386_gdbarch_init): Do not set
1592 DWARF2_BUILD_FRAME_INFO.
1593 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1594 unconditionally.
1595 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1596 DWARF2_BUILD_FRAME_INFO.
1597
22b0d388
AC
15982003-07-18 Andrew Cagney <cagney@redhat.com>
1599
1600 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1601 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1602
1ce5d6dd
AC
16032003-07-18 Andrew Cagney <cagney@redhat.com>
1604
1605 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1606 frame_unwind_address_in_block, instead of frame_pc_unwind.
1607 (dwarf2_frame_cache): Ditto.
1608
e6e5e94c
AC
16092003-07-18 Andrew Cagney <cagney@redhat.com>
1610
1611 * user-regs.h (struct gdbarch): Declare opaque.
1612 * ui-out.h (struct ui_file): Declare opaque.
1613 * dwarf2-frame.h (struct frame_info): Declare opaque.
1614
5483d879
KW
16152003-07-18 Kris Warkentin <kewarken@qnx.com>
1616
1617 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1618 #include "...".
1619 (procfs_meminfo): Change strerror to safe_strerror.
1620 (procfs_can_run): Remove K&R badness.
1621
278a7cf7
MS
16222003-07-17 Michael Snyder <msnyder@redhat.com>
1623
1624 * remote-sim.c: Comment typo fix.
1625
606e3b82
AC
16262003-07-17 Andrew Cagney <cagney@redhat.com>
1627
1628 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1629 configure.
1630 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1631 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1632 GDB_MULTI_ARCH_PARTIAL.
1633
c43af07c
EZ
16342003-07-17 Elena Zannoni <ezannoni@redhat.com>
1635
1636 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1637 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1638 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1639
3b85b0f1
TR
16402003-07-16 Theodore A. Roth <troth@openavr.org>
1641
1642 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1643 found.
1644 (avr_frame_unwind_cache): Don't unwind FP for main.
1645 Update a comment.
1646 Save the computed prev_sp.
1647 (avr_saved_regs_unwinder): Remove function.
1648 (avr_frame_prev_register): Use PC unwind logic from
1649 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1650
336d1bba
AC
16512003-07-16 Andrew Cagney <cagney@redhat.com>
1652
1653 * frame-base.h (frame_base_p_ftype): Delete definition.
1654 (frame_base_append_predicate): Delete declaration.
1655 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1656 (frame_unwind_append_predicate): Delete declaration.
1657 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1658 (append_predicate): Delete parameter "p".
1659 (frame_unwind_append_predicate): Delete function.
1660 (frame_unwind_append_sniffer): Update call to append_predicate.
1661 (frame_unwind_free): Delete function.
1662 (_initialize_frame_unwind): Pass NULL as "free" to
1663 register_gdbarch_data.
1664 (frame_unwind_init): Append the dummy_frame_sniffer.
1665 (frame_unwind_find_by_frame): Simplify.
1666 * frame-base.c (struct frame_base_table): Delete field "p".
1667 (append_predicate): Delete parameter "p".
1668 (frame_base_append_predicate): Delete function.
1669 (frame_base_append_sniffer): Update call to append_predicate.
1670 (frame_base_free): Delete function.
1671 (frame_base_find_by_frame): Simplify.
1672 (_initialize_frame_base): Pass NULL as "free" to
1673 register_gdbarch_data.
1674 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1675 (x86_64_sigtramp_frame_sniffer): Replace
1676 "x86_64_sigtramp_frame_p".
1677 (x86_64_init_abi): Set the frame unwind sniffers.
1678 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1679 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1680 (m68k_gdbarch_init): Set the frame unwind sniffers.
1681 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1682 "i386_sigtramp_frame_p".
1683 (i386_frame_sniffer): Replace "i386_frame_p".
1684 (i386_gdbarch_init): Set the frame unwind sniffers.
1685 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1686 (avr_gdbarch_init): Set the frame unwind sniffers.
1687 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1688 "alpha_sigtramp_frame_p"
1689 (alpha_heuristic_frame_sniffer): Replace
1690 "alpha_heuristic_frame_p".
1691 (alpha_gdbarch_init): Set the frame unwind sniffers.
1692 (alpha_dwarf2_init_abi): Ditto.
1693 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1694 "alpha_debug_frame_p".
1695 (alpha_mdebug_frame_base_sniffer): Replace
1696 "alpha_mdebug_frame_base_p".
1697 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1698 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1699 (d10v_gdbarch_init): Set the frame unwind sniffer.
1700 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1701 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1702 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1703 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1704 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1705 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1706
48db5a3c
CV
17072003-07-16 Michael Snyder <msnyder@redhat.com>
1708
1709 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1710 should go thru sh_dsp_register_sim_regno, else the dsp regs
1711 will not get the right values.
1712
17132003-07-16 Corinna Vinschen <vinschen@redhat.com>
1714
1715 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1716 deprecated_store_floating by call to store_typed_floating.
1717 (sh_sh4_register_convert_to_raw): Substitute call to
1718 deprecated_extract_floating by call to extract_typed_floating.
1719
17202003-07-16 Corinna Vinschen <vinschen@redhat.com>
1721
1722 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1723
17242003-07-16 Corinna Vinschen <vinschen@redhat.com>
1725
1726 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1727 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1728 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1729 as possible.
1730 (do_pseudo_register): Remove.
1731 (sh_push_dummy_code): New function.
1732 (sh64_store_struct_return): Rename from sh_store_struct_return.
1733 Only called for sh64 now.
1734 (sh_extract_struct_value_address): Regcache'ify.
1735 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1736 and accomodate new tasks.
1737 (sh64_push_return_address): Rename from sh_push_return_address.
1738 Only called for sh64 now.
1739 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1740 Regcache'ify.
1741 (sh3e_sh4_extract_return_value): Regcache'ify.
1742 (sh_default_store_return_value): Ditto.
1743 (sh3e_sh4_store_return_value): Ditto.
1744 (sh_default_register_byte): Remove.
1745 (sh_sh4_register_byte): Remove.
1746 (sh_default_register_raw_size): Remove.
1747 (sh_sh4_register_raw_size): Remove.
1748 (sh_register_virtual_size): Remove.
1749 (sh_sh3e_register_virtual_type): Remove.
1750 (sh_sh3e_register_type): New function.
1751 (sh_sh4_register_virtual_type): Remove.
1752 (sh_sh4_register_type): New function.
1753 (sh_default_register_virtual_type): Remove.
1754 (sh_default_register_type): New function.
1755 (do_fv_register_info): Add parameters to accomodate call from
1756 sh_print_registers_info.
1757 (do_dr_register_info): Ditto.
1758 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1759 Add parameters to accomodate call from sh_print_registers_info.
1760 (sh_do_fp_register): Ditto.
1761 (sh64_do_pseudo_register): Call do_dr_register_info,
1762 do_fv_register_info and sh_do_fp_register with default parameters.
1763 (sh_do_register): Add parameters to accomodate call from
1764 sh_print_registers_info.
1765 (sh_print_register): Ditto.
1766 (sh_print_registers_info): Rename from sh_do_registers_info.
1767 Add parameters to be used as gdbarch_print_registers_info
1768 implementation. Accomodate removed do_pseudo_register function
1769 pointer.
1770 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1771 function pointer. Call sh_print_register with default parameters.
1772 (sh64_do_registers_info): Call sh_print_registers_info instead of
1773 sh_do_registers_info.
1774 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1775 detection of deprecated vs. non-deprecated functionality.
1776 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1777 function pointer assignments by direct function calls.
1778
e8a89fe2
AC
17792003-07-15 Andrew Cagney <cagney@redhat.com>
1780
1781 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1782 (frame_register_unwind, create_new_frame): Ditto.
1783 (legacy_get_prev_frame, get_frame_type): Ditto.
1784 (get_frame_base_address): Use frame_base_find_by_frame.
1785 (get_frame_locals_address): Use frame_base_find_by_frame.
1786 (get_frame_args_address): Use frame_base_find_by_frame.
1787 * frame-base.h (frame_base_sniffer_ftype): Declare.
1788 (frame_base_append_sniffer): Declare.
1789 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1790 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1791 (frame_base_append_sniffer): New function.
1792 (frame_base_append_predicate): Add a NULL sniffer.
1793 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1794 (struct frame_base_table): Add "sniffer".
1795 (frame_base_free): Free the "sniffer" table.
1796 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1797 (frame_unwind_append_sniffer): Declare.
1798 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1799 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1800 (struct frame_unwind_table): Add "sniffer", delete "middle".
1801 (append_predicate): Add "sniffer" parameter, append the sniffer.
1802 (frame_unwind_init): Update append_predicate call.
1803 (frame_unwind_append_sniffer): New function.
1804 (frame_unwind_append_predicate): Update append_predicate call.
1805 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1806
0714963c
AC
18072003-07-15 Andrew Cagney <cagney@redhat.com>
1808
1809 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1810 before code inhibiting repeated unwind attempts. Add to
1811 commentary on that test's problems.
1812 * blockframe.c (inside_main_func): Look for "main" in the minimal
1813 symbol table.
1814 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1815 identical.
1816
d9170e22
AC
18172003-07-15 Andrew Cagney <cagney@redhat.com>
1818
1819 * complaints.c (struct explanation): Define.
1820 (struct complaints): Change type of "explanation" to "struct
1821 explanation".
1822 (symfile_explanations): Convert to a "struct explanation" table.
1823 (vcomplaint): Update.
1824
eba29c8c
ML
18252003-07-15 Michal Ludvig <mludvig@suse.cz>
1826
1827 * x86-64-linux-nat.c (regmap): Removed.
1828 (supply_gregset, fill_gregset): Call
1829 x86_64_linux_(fill,supply)_gregset functions.
1830 * x86-64-linux-tdep.c (USER_*): New defines.
1831 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1832 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1833 New functions.
1834 (fetch_core_registers): Ditto.
1835 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1836 * x86-64-linux-tdep.h: New file.
1837 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1838 and core-regset.o.
1839 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1840
68cc0bfb
MK
18412003-07-13 Mark Kettenis <kettenis@gnu.org>
1842
88a115f7
MK
1843 * x86-64-tdep.c (x86_64_store_return_value): Use
1844 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 1845
68cc0bfb
MK
1846 * configure.host: Add x86_64-*-freebsd*.
1847 * configure.tgt: Add x86_64-*-freebsd*.
1848 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1849 * amd64fbsd-nat.c: New file.
1850 * amd64fbsd-tdep.c: New file.
1851 * config/i386/nm-fbsd64.h: New file.
1852 * config/i386/fbsd64.mh: New file.
1853 * config/i386/fbsd64.mt: New file.
1854
138e7be5
MK
18552003-07-11 Mark Kettenis <kettenis@gnu.org>
1856
1857 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1858 `sc_regs_offset' and `sc_fpregs_offset'.
1859 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1860 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1861 (alpha_sigtramp_register_address): Rewrite to use new members of
1862 `struct gdbarch_tdep'.
1863 (alpha_gdbarch_init): Initialize new members of struct
1864 gdbarch_tdep'.
1865 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1866 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1867 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1868 (alphafbsd_pc_in_sigtramp): Implement.
1869 (alphafbsd_sigtramp_offset): New function.
1870 (alphafbsd_sigcontext_addr): New function.
1871 (alphafbsd_init_abi): Initialize signal trampoline related members
1872 of `struct gdbarch_tdep'.
1873 (_initialize_alphafbsd_tdep): Add prototype.
1874
95303a68
TR
18752003-07-11 Theodore A. Roth <troth@openavr.org>
1876
ba292e4c
TR
1877 * Makefile.in (install-only): Quote sed expression when generating
1878 transformed_name.
95303a68 1879
6896c0c7
RH
18802003-07-11 Richard Henderson <rth@redhat.com>
1881
1882 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1883 * dwarf2-frame.c: Include complaints.h.
1884 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1885 variable initialization; return NULL on error.
1886 (decode_frame_entry): New.
1887
8edd5d01
AC
18882003-07-11 Andrew Cagney <cagney@redhat.com>
1889
c4a09524
AC
1890 * frame.h (frame_address_in_block): Delete declaration.
1891 * blockframe.c (frame_address_in_block): Delete function.
1892 (get_frame_block): Use get_frame_address_in_block.
1893 (block_innermost_frame): Ditto.
1894 * stack.c (print_frame, backtrace_command_1): Ditto.
1895
8edd5d01
AC
1896 * frame.h (get_frame_address_in_block): Declare.
1897 (frame_unwind_address_in_block): Declare.
1898 * frame.c (frame_unwind_address_in_block): New function.
1899 (get_frame_address_in_block): New function.
1900
f7968451
AC
19012003-07-10 Andrew Cagney <cagney@redhat.com>
1902
1903 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1904 pre-default. Note: re-generate has no effect.
1905
ae99b398
AC
19062003-07-10 Andrew Cagney <cagney@redhat.com>
1907
1908 * gdbarch.sh: When a variable, but not a function, compare against
1909 0. Fix problem in previous patch.
1910 * gdbarch.c: Re-generate.
1911
956ac328
AC
19122003-07-10 Andrew Cagney <cagney@redhat.com>
1913
1914 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1915 functions against NULL, not 0.
1916 * gdbarch.c: Re-generate.
1917
287c3240
FF
19182003-07-10 Fred Fish <fnf@ninemoons.com>
1919
1920 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1921 null string instead of a null pointer.
1922 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1923
32f63c4b
MS
19242003-07-09 Michael Snyder <msnyder@redhat.com>
1925
1926 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1927
402ecd56
MK
19282003-07-09 Mark Kettenis <kettenis@gnu.org>
1929
1930 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1931 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1932 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1933 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1934 * x86-64-tdep.c: ... from here.
1935
c481dac7
AS
19362003-07-09 Andreas Schwab <schwab@suse.de>
1937
1938 * m68k-tdep.h (enum struct_return): Define.
1939 (struct gdbarch_tdep): Add struct_return.
1940 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1941 bytes are padded to the right, not to the left. Pass struct value
1942 address in register %a1, not on stack.
1943 (m68k_use_struct_convention): New function.
1944 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1945 struct_return in tdep to pcc_struct_return.
1946 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1947 reg_struct_return.
1948
64176fa3
JB
19492003-07-09 Joel Brobecker <brobecker@gnat.com>
1950
1951 * somread.c (som_symfile_offsets): Fix compilation error.
1952
96a4ee76
AC
19532003-07-09 Andrew Cagney <cagney@redhat.com>
1954
1955 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1956 Add comments about the checks.
1957
1517c6d1
AC
19582003-07-08 Andrew Cagney <cagney@redhat.com>
1959
1960 * Makefile.in: Make dependency section headers consistent.
1961 (config_h): Move to $BUILD headers section.
1962 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1963 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1964 (ada-exp.tab.c): Move to YACC/LEX section.
1965 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1966 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1967
dc5dd1eb
KW
19682003-07-08 Kris Warkentin <kewarken@qnx.com>
1969
1970 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
1971 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1972 of strerror with safe_strerror, use ISO C function definitions,
1973 and replace instances of sprintf with snprintf.
dc5dd1eb 1974
612dde91
AC
19752003-07-07 Andrew Cagney <cagney@redhat.com>
1976
1977 * frame.c (get_prev_frame): Enable check for identical frames.
1978 Update comments. Update error messages.
1979
492c11d3
JB
19802003-07-07 Joel Brobecker <brobecker@gnat.com>
1981
1982 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1983
376a5a49
JB
19842003-07-07 Joel Brobecker <brobecker@gnat.com>
1985
1986 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1987 sort_symtab_syms, no longer necessary.
1988
22b4a9ad
JB
19892003-07-07 Joel Brobecker <brobecker@gnat.com>
1990
1991 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1992
5bbcb741
JB
19932003-07-07 Joel Brobecker <brobecker@gnat.com>
1994
1995 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1996 (mips_register_byte): Likewise.
1997
c139e7d9
DJ
19982003-07-07 Daniel Jacobowitz <drow@mvista.com>
1999
2000 * Makefile.in (sparc_tdep_h): New.
2001 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2002 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2003 * sparc-linux-nat.c: Include "sparc-tdep.h".
2004 * sparc-nat.c: Likewise.
2005 * sparc-tdep.c: Likewise.
2006 * sparc64nbsd-nat.c: Likewise.
2007 * sparcnbsd-nat.c: Likewise.
2008 * sparcnbsd-tdep.c: Likewise.
2009 * sparc-tdep.h: New file.
2010 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2011 and sparc_npc_regnum.
2012
fd8f87c5
DJ
20132003-07-07 Daniel Jacobowitz <drow@mvista.com>
2014
2015 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2016 (mips_linux_cannot_store_register): List supported instead of
2017 unsupported registers.
2018
13adf674
DJ
20192003-07-07 Daniel Jacobowitz <drow@mvista.com>
2020
2021 * disasm.c (dump_insns): Separate instructions from addresses.
2022
8de307e0
AS
20232003-07-07 Andreas Schwab <schwab@suse.de>
2024
2025 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2026 dependencies.
2027 * m68k-tdep.c (NUM_FREGS): Delete.
2028 (SIG_PC_FP_OFFSET): Delete.
2029 (TARGET_M68K): Delete.
2030 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2031 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2032 P_MOVEL_SP, P_MOVEML_SP): Define.
2033 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2034 P_TRAP): Delete.
2035 (m68k_register_raw_size): Delete.
2036 (m68k_register_virtual_size): Delete.
2037 (m68k_register_type): Renamed from m68k_register_virtual_type and
2038 add gdbarch argument.
2039 (m68k_store_struct_return): Delete.
2040 (m68k_deprecated_extract_return_value): Delete.
2041 (m68k_deprecated_extract_struct_value_address): Delete.
2042 (m68k_frame_chain): Delete.
2043 (m68k_frame_saved_pc): Delete.
2044 (m68k_fix_call_dummy): Delete.
2045 (m68k_push_dummy_frame): Delete.
2046 (m68k_pop_frame): Delete.
2047 (m68k_extract_return_value): New function.
2048 (m68k_store_return_value): Rewrite using regcache.
2049 (m68k_extract_struct_value_address): Rewrite using regcache.
2050 (m68k_push_dummy_call): New function.
2051 (struct m68k_frame_cache): Define.
2052 (m68k_alloc_frame_cache): New function.
2053 (m68k_analyze_frame_setup): New function.
2054 (m68k_analyze_register_saves): New function.
2055 (m68k_analyze_prologue): New function.
2056 (m68k_skip_prologue): Rewrite using above functions.
2057 (m68k_unwind_pc): New function.
2058 (m68k_frame_cache): New function.
2059 (m68k_frame_this_id): New function.
2060 (m68k_frame_prev_register): New function.
2061 (m68k_frame_unwind): New variable.
2062 (m68k_frame_p): New function.
2063 (m68k_sigtramp_frame_cache): New function.
2064 (m68k_sigtramp_frame_this_id): New function.
2065 (m68k_sigtramp_frame_prev_register): New function.
2066 (m68k_sigtramp_frame_unwind): New variable.
2067 (m68k_sigtramp_frame_p): New function.
2068 (m68k_frame_base_address): New function.
2069 (m68k_frame_base): New function.
2070 (m68k_unwind_dummy_id): New function.
2071 (fill_gregset): Use regcache_collect.
2072 (fill_fpregset): Likewise.
2073 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2074 defined.
2075 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2076 deprecated_init_frame_pc, deprecated_store_struct_return,
2077 deprecated_extract_return_value, deprecated_store_return_value,
2078 deprecated_frame_chain, deprecated_frame_saved_pc,
2079 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2080 deprecated_register_virtual_size,
2081 deprecated_max_register_raw_size,
2082 deprecated_max_register_virtual_size,
2083 deprecated_register_virtual_type, deprecated_register_size,
2084 deprecated_register_byte, deprecated_register_bytes,
2085 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2086 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2087 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2088 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2089 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2090 deprecated_push_dummy_frame, deprecated_pop_frame,
2091 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2092 only if SYSCALL_TRAP is defined. Set extract_return_value,
2093 store_return_value, extract_struct_value_address, register_type,
2094 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2095 predicates.
2096 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2097 M68K_MAX_REGISTER_SIZE): Define.
2098 (struct m68k_sigtramp_info): Define.
2099 (struct gdbarch_tdep): Add get_sigtramp_info.
2100 * m68klinux-nat.c (fetch_register): Use register_size instead of
2101 REGISTER_RAW_SIZE. Don't put assignment in if.
2102 (store_register): Likewise.
2103 (fetch_inferior_registers): Likewise.
2104 (store_inferior_registers): Likewise.
2105 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2106 (m68k_linux_frame_saved_pc): Delete.
2107 (m68k_linux_sigcontext_reg_offset,
2108 m68k_linux_ucontext_reg_offset): Define.
2109 (m68k_linux_get_sigtramp_info): New function.
2110 (m68k_linux_extract_return_value): Rewrite using regcache.
2111 (m68k_linux_store_return_value): Likewise.
2112 (m68k_linux_extract_struct_value_address): Likewise.
2113 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2114 Don't set deprecated_frame_saved_pc,
2115 deprecated_extract_return_value, deprecated_store_return_value,
2116 deprecated_extract_struct_value_address. Set
2117 extract_return_value, store_return_value,
2118 extract_struct_value_address.
2119
eb8bc282
AC
21202003-07-07 Andrew Cagney <cagney@redhat.com>
2121
2122 * expprint.c: Include "user-regs.h" instead of "frame.h".
2123 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2124 frame_map_regnum_to_name.
2125 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2126 (frame_map_name_to_regnum): Simplify, call
2127 user_reg_map_name_to_regnum.
2128 (frame_map_regnum_to_name): Simplify, call
2129 user_reg_map_regnum_to_name.
2130 (frame_register_unwind): Update.
2131 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2132 (_initialize_frame_reg): Call user_reg_add_builtin.
2133 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2134 (value_of_register): Use value_of_user_reg.
2135 * eval.c (evaluate_subexp_standard): Update.
2136 * parse.c (write_dollar_variable): Update.
2137 * d10v-tdep.c (d10v_print_registers_info): Update.
2138 * infcmd.c (registers_info): Update.
2139 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2140 (builtin_regs_h): Delete macro.
2141 (user_regs_h): Define.
2142 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2143 (builtin-regs.o): Delete target.
2144 (user-regs.o): Specify dependencies.
2145 (expprint.o): Update dependencies.
2146 (findvar.o): Update dependencies.
2147 (frame.o): Update dependencies.
2148 (std-regs.o): Update dependencies.
2149
9f476a01
CF
21502003-07-06 Christopher Faylor <cgf@redhat.com>
2151
2152 * win32-nat.c (solib_symbols_add): Use one variable for all section
2153 address stuff. Pass variable rather than address of variable to
2154 safe_symbol_file_add.
2155
a731b831
AS
21562003-07-06 Andreas Schwab <schwab@suse.de>
2157
2158 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2159
9f83329d
JB
21602003-07-04 Joel Brobecker <brobecker@gnat.com>
2161
2162 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2163
27e28cc5
KW
21642003-07-04 Kris Warkentin <kewarken@qnx.com>
2165
2166 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2167
21682003-07-04 Kris Warkentin <kewarken@qnx.com>
2169
2170 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2171 * config/i386/nto.mh: New file.
2172 * config/i386/nm-nto.h: New file.
2173 * configure.host: Add i[3456]86-*-nto*.
2174
100f2e98
JB
21752003-07-03 Joel Brobecker <brobecker@gnat.com>
2176
2177 * remote-vx.c (vx_add_symbols): Fix compilation error.
2178
e23457df
AC
21792003-07-03 Andrew Cagney <cagney@redhat.com>
2180
2181 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2182 * gdbarch.h, gdbarch.c: Re-generate.
2183 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2184 (legacy_register_name): Declare.
2185 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2186 (REGISTER_NAME): Define.
2187 * sparc-tdep.c (legacy_register_name): New function.
2188 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2189 (REGISTER_NAME): Define.
2190 (hppa64_register_name): Declare.
2191 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2192 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2193 (hppa64_register_name): New function.
2194 (hppa_register_name): New function.
2195 * arch-utils.c (legacy_register_name): Delete.
2196 * arch-utils.h (legacy_register_name): Delete.
2197
38caaeec
DJ
21982003-07-03 Daniel Jacobowitz <drow@mvista.com>
2199
2200 * cli/cli-interp.c (cli_interpreter_resume): Update the
2201 cli_uiout's stream to gdb_stdout.
2202
dadd712e
AC
22032003-07-03 Andrew Cagney <cagney@redhat.com>
2204
2205 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2206 predicate.
2207 * gdbarch.h, gdbarch.c: Re-generate.
2208 * regcache.c (init_regcache_descr): Use legacy code when either
2209 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2210
c7f1390e
DJ
22112003-07-02 Daniel Jacobowitz <drow@mvista.com>
2212
2213 * NEWS: Move "set logging" entry into GDB 6.0 section.
2214
4bc8c588
JB
22152003-07-02 Jim Blandy <jimb@redhat.com>
2216
a9dd42f1
JB
2217 * s390-tdep.c (struct frame_extra_info): new member:
2218 'stack_bought_valid'.
2219 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2220 initialize fextra_info->stack_bought.
2221 (s390_frameless_function_invocation): Don't trust the value of
2222 fextra_info_ptr->stack_bought unless
2223 fextra_info->stack_bought_valid is set.
2224
4bc8c588
JB
2225 New S390 prologue analyzer.
2226 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2227 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2228 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2229 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2230 compute_x_addr, s390_on_stack, s390_store,
2231 s390_get_signal_frame_info): New functions.
2232 (S390_NUM_SPILL_SLOTS): New macro.
2233 (s390_get_frame_info): Rewritten.
2234 (is_arg_reg): Deleted.
2235
2236 Break out the decoding of S/390 instructions into separate
2237 functions, to make it more legible, and easier to check
2238 against the spec.
2239 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2240 is_rx, is_rxe): New functions.
2241 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2242 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2243 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2244 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2245 enums for opcode values. (Is this an improvement?)
2246
fd13a04a
AC
22472003-07-02 Andrew Cagney <cagney@redhat.com>
2248
2249 * i386-tdep.c: Revert change committed as part of trad-frame code
2250 below.
2251
3f8091c1
DJ
22522003-07-02 Daniel Jacobowitz <drow@mvista.com>
2253
2254 * breakpoint.c (insert_catchpoint): Make static.
2255
8dd5115e
AS
22562003-07-02 Andreas Schwab <schwab@suse.de>
2257
2258 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2259 former ia64_push_arguments and ia64_push_return_address, and use
2260 regcache functions instead of read/write_register.
2261 (ia64_gdbarch_init): Set push_dummy_call instead of
2262 deprecated_push_arguments and deprecated_push_return_address.
2263
a2229c23
AJ
22642003-07-01 Andreas Jaeger <aj@suse.de>
2265
2266 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2267 before the call.
2268 Set %rax only to number of SSE registers used.
2269
3b3850e8
AC
22702003-07-01 Andrew Cagney <cagney@redhat.com>
2271
2272 * trad-frame.h: Update comments, a -1 .addr is reserved.
2273 (trad_frame_value_p, trad_frame_addr_p): Declare.
2274 (trad_frame_reg_p): Declare.
2275 (trad_frame_set_value): Rename trad_frame_register_value.
2276 (trad_frame_set_unknown): Declare.
2277 * trad-frame.c (trad_frame_realreg_p): New function.
2278 (trad_frame_addr_p, trad_frame_value_p): New function.
2279 (trad_frame_set_unknown): New function.
2280 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2281 (trad_frame_prev_register): Use trad_frame_realreg_p,
2282 trad_frame_addr_p and trad_frame_value_p.
2283 (trad_frame_set_value): Rename trad_frame_register_value.
2284 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2285 and trad_frame_set_value.
a2229c23 2286
4d819d0e
JB
22872003-06-30 Jim Blandy <jimb@redhat.com>
2288
2289 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2290 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2291 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2292 for 16 registers, and then 32 more bytes.
2293 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2294 New macros.
2295 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2296 Move up in the file, since it's now used by is_simple_arg.
2297 (is_simple_arg): Don't assume registers are four bytes long.
2298 Exclude all double arguments. Extended floats are not simple
2299 args.
2300 (is_power_of_two): New function.
2301 (pass_by_copy_ref): Call is_power_of_two, and check that the
2302 length fits in a register, rather than listing all the acceptable
2303 sizes. Extended floats are not passed by reference.
2304 (s390_push_arguments): Don't assume registers are four bytes long.
2305 Reserve an argument register to point to the buffer for structures
2306 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2307 S390_STACK_FRAME_OVERHEAD.
2308
1ad828f1
AS
23092003-06-30 Andreas Schwab <schwab@suse.de>
2310
2311 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2312 format error message.
2313
39b00981
JB
23142003-06-30 Joel Brobecker <brobecker@gnat.com>
2315
2316 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2317
b2a7f303
DC
23182003-06-30 David Carlton <carlton@kealia.com>
2319
2320 Band-aid for PR c++/1245.
2321 * Makefile.in (cp-support.o): Depend on complaints_h.
2322 * cp-support.c: Include complaints.h. Add declaration for
2323 find_last_component.
2324 (cp_find_first_component): Separate code into
2325 cp_find_first_component_aux.
2326 (cp_find_first_component_aux): Call demangled_name_complaint.
2327 (demangled_name_complaint): New.
2328
a257b5bb
AC
23292003-06-30 Andrew Cagney <cagney@redhat.com>
2330
2331 * remote.c (remote_write_bytes): Explicitly compute and then use
2332 the payload size. Update comments to reflect. Fixes problem of
2333 GDB not sending small packets as found by Fred Fish.
2334
0a2cfde4
AC
23352003-06-30 Andrew Cagney <cagney@redhat.com>
2336
2337 * remote.c (remote_async_wait): Fix -Wformat problem.
2338
3fcb8548
AC
23392003-06-29 Andrew Cagney <cagney@redhat.com>
2340
2341 * remote.c (remote_wait): Call error, and not warning, when the
2342 packet is corrupt.
2343 (remote_async_wait): Ditto.
2344
9f9970a3
DJ
23452003-06-29 Daniel Jacobowitz <drow@mvista.com>
2346
2347 * sparc-tdep.c (sparc_y_regnum): Make external again.
2348
83a8ccca
DJ
23492003-06-29 Daniel Jacobowitz <drow@mvista.com>
2350
2351 * cli/cli-logging.c (pop_output_files): Add void to function
2352 definition.
2353
d2cf594a
AC
23542003-06-29 Andrew Cagney <cagney@redhat.com>
2355
2356 * frame.c (frame_register_unwind): Use unsigned char when dumping
2357 the buffer contents.
2358
0fac0b41
DJ
23592003-06-28 Daniel Jacobowitz <drow@mvista.com>
2360
2361 * cli/cli-logging.c: New file.
2362 * cli-out.c (struct ui_out_data): Add original_stream.
2363 (cli_redirect): New function.
2364 (cli_ui_out_impl): Add cli_redirect.
2365 (cli_out_new): Initialize original_stream.
2366 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2367 (uo_redirect, ui_out_redirect): New.
2368 * ui-out.h (struct ui_out_impl): Add redirect member.
2369 (redirect_ftype): New.
2370 (ui_out_redirect): Add prototype.
2371 * Makefile.in: Add rules for cli-logging.c.
2372 * NEWS: Mention "set logging".
2373
88a07d7c
EZ
23742003-06-27 Elena Zannoni <ezannoni@redhat.com>
2375
2376 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2377
4eb58876
AC
23782003-06-27 Andrew Cagney <cagney@redhat.com>
2379
2380 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2381 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2382 * avr-tdep.c (avr_call_dummy_address): Delete function.
2383 (avr_gdbarch_init): Do not set call_dummy_address.
2384
1549f619
EZ
23852003-06-27 Elena Zannoni <ezannoni@redhat.com>
2386
2387 * symfile.c (syms_from_objfile): Move variables to inner block.
2388 Move the checks for the non-mainline case a bit earlier to avoid
2389 doing some useless computations.
2390
3cb3398d
EZ
23912003-06-27 Elena Zannoni <ezannoni@redhat.com>
2392
2393 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2394
3799ccc6
EZ
23952003-06-26 Elena Zannoni <ezannoni@redhat.com>
2396
2397 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2398 sections.
2399
ce1f6491
MC
24002003-06-26 Michael Chastain <mec@shout.net>
2401
2402 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2403 gdb/testsuite/gdb.c++/pr-1210.exp.
2404
d958dfd0
AC
24052003-06-26 Andrew Cagney <cagney@redhat.com>
2406
2407 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2408 altivec_expression.h and altivec_registers.h.
2409
d31431ed
AC
24102003-06-26 Andrew Cagney <cagney@redhat.com>
2411
2412 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2413 info->mach when MIPS16. Patch suggested by Fred Fish.
2414
714b1282
AC
24152003-06-26 Andrew Cagney <cagney@redhat.com>
2416
2417 * utils.c (internal_vproblem): Print the problem to a reason
2418 buffer and then pass to query. Make the msg variable more local.
2419
42efa47a
AC
24202003-06-26 Andrew Cagney <cagney@redhat.com>
2421
2422 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2423 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2424 * gdbarch.h, gdbarch.c: Re-generate.
2425 * frame-base.c (default_frame_args_address): Update. Use
2426 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2427 not available.
2428 (default_frame_locals_address): Ditto for
2429 DEPRECATED_FRAME_LOCALS_ADDRESS.
2430 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2431 (vax_frame_num_args): Update.
2432 (vax_gdbarch_init): Update.
2433 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2434 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2435 * mcore-tdep.c (mcore_gdbarch_init): Update.
2436 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2437 * ia64-tdep.c (ia64_gdbarch_init): Update.
2438 * symtab.h (address_class): Update comments.
2439 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2440 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2441 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2442 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2443 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2444 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2445 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2446 * alpha-mdebug-tdep.c: Update.
2447 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2448
8ffd9b1b
AJ
24492003-06-26 Andreas Jaeger <aj@suse.de>
2450
2451 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2452 of SSE registers so that varargs functions work. Rework handling
2453 of passing arguments on the stack.
2454 (x86_64_store_return_value): Return double and float values in SSE
2455 register.
2456
e8ac10a6
MC
24572003-06-24 Michael Chastain <mec@shout.net>
2458
2459 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2460 the "constructor breakpoints ignored" bug.
2461
986af8e6
DC
24622003-06-25 David Carlton <carlton@kealia.com>
2463
2464 * MAINTAINERS: Update e-mail address.
2465
d64558a5
JB
24662003-06-24 Jim Blandy <jimb@redhat.com>
2467
e538d2d7
JB
2468 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2469
02631ec0
JB
2470 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2471 function.
2472 (ppc_linux_init_abi): Register it as the
2473 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2474
e716d87a
JB
2475 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2476 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2477 method.
2478
d64558a5
JB
2479 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2480 (ppc64_standard_linkage_target): Use it.
2481
449a5da4
AC
24822003-06-23 Andrew Cagney <cagney@redhat.com>
2483
2484 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2485 for 0 "int0" and 4 "int32" sized registers.
2486 * gdbtypes.c (builtin_type_int0): Define.
2487 (build_gdbtypes): Initialize builtin_type_int0.
2488 * gdbtypes.h (builtin_type_int0): Declare.
2489
b2a02dda
SC
24902003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2491
2492 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2493 as characters are unsigned.
2494
fba3138e
DJ
24952003-06-22 Daniel Jacobowitz <drow@mvista.com>
2496
2497 PR gdb/1179
2498 * dwarfread.c (struct_type): Skip static fields without crashing.
2499
f6c8180b
AC
25002003-06-22 Andrew Cagney <cagney@redhat.com>
2501
2502 GDB 6.0 branch created.
f2c06f52
AC
2503 * README: Update.
2504 * PROBLEMS: Update. Empty.
2505 * NEWS: Update.
f6c8180b 2506
ae822768
DJ
25072003-06-22 Daniel Jacobowitz <drow@mvista.com>
2508
2509 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2510 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2511
261de166
AC
25122003-06-22 Andrew Cagney <cagney@redhat.com>
2513
2514 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2515 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2516 Velikov.
2517
30e94205
DJ
25182003-06-22 Daniel Jacobowitz <drow@mvista.com>
2519
2520 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2521 compilers.
2522
9e14d721
DJ
25232003-06-21 Daniel Jacobowitz <drow@mvista.com>
2524
2525 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2526 argument of val_print.
2527 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2528 to the address argument of baseclass_offset or target_read_memory.
2529 Do add it to the argument of cp_print_value_fields.
2530
a4b8ebc8
AC
25312003-06-21 Andrew Cagney <cagney@redhat.com>
2532
2533 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2534 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2535 instead of 0..NUM_REGS.
2536 (mips_register_reggroup_p): New function.
2537 (mips_pseudo_register_write): New function.
2538 (mips_pseudo_register_read): New function.
2539 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2540 based on the register's type.
2541 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2542 cooked.
2543 (mips_get_saved_register): Simplify. Assert that REGNO is a
2544 pseudo / cooked.
2545 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2546 (mips_register_type): Replace mips_register_virtual_type. Map
2547 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2548 when available.
2549 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2550 that the register is cooked / virtual.
2551 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2552 Only get the extra info when needed.
2553 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2554 (mips32_heuristic_proc_desc): Fetch the cooked register.
2555 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2556 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2557 (mips_print_register): Use gdbarch_register_type, instead of
2558 REGISTER_VIRTUAL_TYPE.
2559 (print_gp_register_row): Use gdbarch_register_type, instead of
2560 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2561 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2562 Print the pseudo / cooked registers.
2563 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2564 Print the pseudo / cooked registers.
2565 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2566 REG_NUM is pseudo / cooked.
2567 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2568 (mips_n32n64_xfer_return_value): Ditto.
2569 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2570 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2571 (mips_register_sim_regno): New function.
2572 (mips_gdbarch_init): Set deprecated_register_byte,
2573 register_group_p, pseudo_register_write, pseudo_register_read,
2574 register_sim_regno, and num_pseudo_regs. Set register_type,
2575 instead of register_virtual_type.
2576 * Makefile.in (mips-tdep.o): Update dependencies.
2577 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2578 REGISTER_VIRTUAL_TYPE.
2579 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2580 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2581 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2582 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2583 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2584
325ed089
DJ
25852003-06-21 Daniel Jacobowitz <drow@mvista.com>
2586
2587 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2588 * cli/cli-cmds.c: Include "gdb_vfork.h".
2589 (shell_escape): Use vfork.
2590
f0e7d0e8
AC
25912003-06-21 Andrew Cagney <cagney@redhat.com>
2592
c57bb9fa
AC
2593 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2594 32 bit floating-point register saves.
2595
6e51443a
AC
2596 * frame.h (deprecated_unwind_get_saved_register): Delete.
2597 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2598 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2599 and deprecated_get_next_frame_hack instead of
2600 deprecated_unwind_get_saved_register.
2601
ed183c7c
AC
2602 * mips-tdep.c (mips_dump_tdep): Do not print
2603 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2604
f0e7d0e8
AC
2605 * frame.c (get_frame_register): New function.
2606 (frame_unwind_register_signed): New function.
2607 (get_frame_register_signed): New function.
2608 (frame_unwind_register_unsigned): New function.
2609 (get_frame_register_unsigned): New function.
2610 * frame.h: Add comments on naming schema.
2611 (get_frame_register, frame_unwind_register_signed): Declare.
2612 (get_frame_register_signed, get_frame_register_signed): Declare.
2613 (frame_unwind_register_unsigned): Declare.
2614 (get_frame_register_unsigned): Declare.
2615
2224d941
TR
26162003-06-20 Theodore A. Roth <troth@openavr.org>
2617
2618 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2619
8619218d
TR
26202003-06-20 Theodore A. Roth <troth@openavr.org>
2621
2622 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2623 (avr_read_sp): Ditto.
2624
0b1b50c0
DJ
26252003-06-20 Daniel Jacobowitz <drow@mvista.com>
2626
2627 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2628 * config/arm/nm-linux.h: Likewise.
2629 * config/arm/tm-linux.h: Likewise.
2630 * config/ia64/nm-linux.h: Likewise.
2631 * config/ia64/tm-ia64.h: Likewise.
2632 * config/s390/tm-linux.h: Likewise.
2633 * config/s390/tm-s390.h: Likewise.
2634 * s390-nat.c: Likewise.
2635 * s390-tdep.c: Likewise.
2636
2637 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2638 * config/ia64/linux.mt: Likewise.
2639 * config/m68k/linux.mh: Likewise.
2640 * config/mips/linux.mt: Likewise.
2641 * config/powerpc/linux.mh: Likewise.
2642 * config/sh/linux.mt: Likewise.
2643
c8c18e65
KW
26442003-06-19 Kris Warkentin <kewarken@qnx.com>
2645
2646 * solib.c (solib_open): Change tests for whether to search
2647 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2648 comments.
2649
dcccef2e
TR
26502003-06-19 Theodore A. Roth <troth@openavr.org>
2651
2652 * avr-tdep.c (avr_frame_address): Delete function.
2653 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2654 set_gdbarch_frame_args_address.
2655
5861a190
AC
26562003-06-19 Andrew Cagney <cagney@redhat.com>
2657
2658 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2659 (REGISTER_CONVERT_FROM_TYPE): Delete.
2660 (mips_register_convert_to_type): Delete declaration.
2661 (mips_register_convert_from_type): Delete declaration.
2662 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2663 kernel/.
2664
0274a8ce
MS
26652003-06-19 Michael Snyder <msnyder@redhat.com>
2666
2667 * linux-nat.h: New file.
2668 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 2669 * lin-lwp.c: Include linux-nat.h.
0274a8ce 2670 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 2671 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
2672 (linux_make_note_section): Iterate over lwps instead of threads.
2673 (linux_do_thread_registers): Use lwp instead of merged pid.
2674 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 2675 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
2676 Add dependency on linux_nat_h.
2677
adf5f719
TR
26782003-06-19 Theodore A. Roth <troth@openavr.org>
2679
2680 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2681
6766a268
DJ
26822003-06-19 Daniel Jacobowitz <drow@mvista.com>
2683
2684 * varobj.c (get_type, get_target_type): Use check_typedef.
2685
1171114a
DJ
26862003-06-19 Daniel Jacobowitz <drow@mvista.com>
2687
2688 * breakpoint.c (insert_catchpoint): Call internal_error.
2689
adcf68a2
TR
26902003-06-19 Theodore A. Roth <troth@openavr.org>
2691
2692 * avr-tdep.c (avr_push_dummy_code): Delete function.
2693 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2694
ea67f13b
DJ
26952003-06-19 Daniel Jacobowitz <drow@mvista.com>
2696
2697 * arch-utils.c (default_prepare_to_proceed): Remove.
2698 (generic_prepare_to_proceed): Remove.
2699 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2700 (generic_prepare_to_proceed): Remove prototype.
2701 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2702 * gdbarch.c: Regenerate.
2703 * gdbarch.h: Regenerate.
2704 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2705 * hppah-nat.c (hppa_switched_threads): Remove.
2706 * infrun.c (prepare_to_proceed): New static function, copied from
2707 generic_prepare_to_proceed. Remove select_it argument.
2708 (proceed): Call prepare_to_proceed.
2709 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2710 variables.
2711 (ptrace_wait): Don't set the removed variables.
2712 (hppa_switched_threads): Remove.
2713 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2714 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2715 (lin_lwp_prepare_to_proceed): Remove prototype.
2716 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2717 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2718
4add8633
TR
27192003-06-18 Theodore A. Roth <troth@openavr.org>
2720
2721 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2722 trad-frame.h.
2723 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2724 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2725 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2726 (AVR_PROLOGUE_*): Enumerate prologue types.
2727 (struct frame_extra_info): Remove.
2728 (struct avr_unwind_cache): Define.
2729 (avr_write_sp): Delete function.
2730 (avr_read_fp): Ditto.
2731 (avr_init_extra_frame_info): Ditto.
2732 (avr_pop_frame): Ditto.
2733 (avr_frame_saved_pc): Ditto.
2734 (avr_saved_pc_after_call): Ditto.
2735 (avr_push_return_address): Ditto.
2736 (avr_frame_chain): Ditto.
2737 (avr_store_struct_return): Ditto.
2738 (avr_push_arguments): Ditto.
2739 (avr_scan_prologue): Update comments. Changed to set up the info for
2740 cache unwinding. Now returns end of prologue PC.
2741 (avr_skip_prologue): Better handling of functions lacking a prologue
2742 by using avr_scan_prologue.
2743 (avr_scan_arg_moves): New function.
2744 (avr_saved_regs_unwinder): Ditto.
2745 (avr_frame_unwind_cache): Ditto.
2746 (avr_unwind_pc): Ditto.
2747 (avr_frame_this_id): Ditto.
2748 (avr_frame_prev_register): Ditto.
2749 (avr_frame_p): Ditto.
2750 (avr_frame_base_address ): Ditto.
2751 (avr_unwind_dummy_id): Ditto.
2752 (avr_push_dummy_code): Ditto.
2753 (push_stack_item): Ditto.
2754 (pop_stack_item): Ditto.
2755 (avr_push_dummy_call): Ditto.
2756 (struct stack_item): Define.
2757 (avr_frame_unwind): Declare structure.
2758 (avr_frame_base): Ditto.
2759 (avr_gdbarch_init): Remove calls to
2760 set_gdbarch_deprecated_init_frame_pc,
2761 set_gdbarch_deprecated_target_read_fp,
2762 set_gdbarch_deprecated_dummy_write_sp,
2763 set_gdbarch_deprecated_fp_regnum,
2764 set_gdbarch_deprecated_push_arguments,
2765 set_gdbarch_deprecated_push_return_address,
2766 set_gdbarch_deprecated_pop_frame,
2767 set_gdbarch_deprecated_store_struct_return,
2768 set_gdbarch_deprecated_frame_init_saved_regs,
2769 set_gdbarch_deprecated_init_extra_frame_info,
2770 set_gdbarch_deprecated_frame_chain,
2771 set_gdbarch_deprecated_frame_saved_pc,
2772 set_gdbarch_deprecated_saved_pc_after_call.
2773 Add calls to set_gdbarch_push_dummy_call,
2774 set_gdbarch_push_dummy_code,
2775 frame_unwind_append_predicate,
2776 frame_base_set_default,
2777 set_gdbarch_unwind_dummy_id,
2778 set_gdbarch_unwind_pc.
2779 Wrap a long line.
2780
7be04a68
MS
27812003-06-18 Corinna Vinschen <vinschen@redhat.com>
2782
2783 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2784 registers for H8/300S.
2785 (h8300_print_registers_info): Ditto.
8ffd9b1b 2786 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 2787
ae087d01
DJ
27882003-06-18 Daniel Jacobowitz <drow@mvista.com>
2789
2790 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2791 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2792 (lin_lwp_wait): Likewise. Update comments.
2793 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2794 (pull_pid_from_list, linux_record_stopped_pid): New.
2795
07d8f827
SC
27962003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2797
2798 * ada-lang.c (scan_discrim_bound): Name first argument.
2799 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2800 declared by ALL_BLOCK_SYMBOLS.
2801
7cb47b14
SC
28022003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2803
2804 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2805 ("regcache.h"): Include it.
2806 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2807
6ad8ae5c
DJ
28082003-06-17 Daniel Jacobowitz <drow@mvista.com>
2809
2810 * NEWS: Mention gdbserver detach change and "disconnect" command.
2811 * infcmd.c (disconnect_command): New function.
2812 (_initialize_infcmd): Add ``disconnect'' command.
2813 * remote.c (remote_async_detach): Delete.
2814 (remote_detach): Merge remote_async_detach.
2815 (remote_disconnect): New.
2816 (init_remote_ops): Set to_disconnect.
2817 (init_remote_cisco_ops): Likewise.
2818 (init_remote_async_ops): Likewise. Use remote_detach.
2819 * target.c (cleanup_target): Default to_disconnect.
2820 (update_current_target): Inherit to_disconnect.
2821 (target_disconnect, debug_to_disconnect): New functions.
2822 (setup_target_debug): Set to_disconnect.
2823 * target.h (struct target_ops): Add to_disconnect.
2824 (target_disconnect): Add prototype.
2825
687595f9
DJ
28262003-06-17 Daniel Jacobowitz <drow@mvista.com>
2827
2828 * breakpoint.c (insert_catchpoint): New function.
2829 (insert_breakpoints): Use catch_exceptions to call
2830 insert_catchpoint. Disable catchpoints if they fail to insert.
2831
29239a8f
DJ
28322003-06-17 Daniel Jacobowitz <drow@mvista.com>
2833
2834 * symfile.c (reread_symbols): Clear sym_private.
2835
2cdf3c63
AC
28362003-06-17 Andrew Cagney <cagney@redhat.com>
2837
2838 * trad-frame.h (struct frame_info): Add opaque declaration.
2839 * remote-fileio.h (struct cmd_list_element): Add opaque
2840 declaration.
2841 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2842 comments.
2843
cf0e1e0d
DJ
28442003-06-17 Daniel Jacobowitz <drow@mvista.com>
2845
2846 * remote.c (remote_prepare_to_store): Replace call to
2847 deprecated_read_register_bytes with multiple regcache_raw_read
2848 calls.
2849
192cdb19
KW
28502003-06-17 Kris Warkentin <kewarken@qnx.com>
2851
2852 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2853 (nto_find_and_open_solib): Likewise.
2854 (nto_init_solib_absolute_prefix): Likewise.
2855 (_initialize_nto_tdep): Fix indentation.
2856
89929b45
KW
28572003-06-17 Kris Warkentin <kewarken@qnx.com>
2858
2859 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2860
46019f27
KW
28612003-06-17 Kris Warkentin <kewarken@qnx.com>
2862
2863 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2864
1a38736e
JB
28652003-06-17 Jim Blandy <jimb@redhat.com>
2866
2867 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2868
3605c34a
TR
28692003-06-16 Theodore A. Roth <troth@openavr.org>
2870
2871 * avr-tdep.c (avr_extract_return_value): New function.
2872 (avr_gdbarch_init): Set extract_return_value method.
2873
870b3035
AC
28742003-06-16 Andrew Cagney <cagney@redhat.com>
2875
2876 * frame.h (deprecated_get_next_frame_hack): Declare.
2877 * frame.c (legacy_saved_regs_prev_register): Only require
2878 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2879 there are always saved regs.
2880 (deprecated_generic_get_saved_register): Do not require
2881 DEPRECATED_FRAME_INIT_SAVED_REGS.
2882 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2883 use frame ID unwind instead.
2884 (deprecated_get_next_frame_hack): New function.
2885
63d47a7d
CV
28862003-06-16 Corinna Vinschen <vinschen@redhat.com>
2887
2888 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2889 (h8300_push_dummy_call): ...this function. Some minor optimization.
2890 (h8300_push_return_address): Remove.
2891 (h8300_gdbarch_init): Remove calls to
2892 set_gdbarch_deprecated_dummy_write_sp,
2893 set_gdbarch_deprecated_push_arguments and
2894 set_gdbarch_deprecated_push_return_address.
2895 Add call to set_gdbarch_push_dummy_call.
2896
4bb1dc5e
CV
28972003-06-16 Corinna Vinschen <vinschen@redhat.com>
2898
2899 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2900 (E_PSEUDO_EXR_REGNUM): Ditto.
2901 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 2902 registers into safe registers.
4bb1dc5e
CV
2903 (h8300_skip_prologue): Check for stm instruction to push registers
2904 used for register variables onto stack.
2905 (gdb_print_insn_h8300): Remove.
2906 (h8300_examine_prologue): Add a comment.
2907 (h8300_register_name): Take pseudo registers into account.
2908 (h8300s_register_name): Ditto.
2909 (h8300sx_register_name): Ditto.
2910 (h8300_print_register): Ditto.
2911 (h8300_print_registers_info): Define "nice" printing order.
2912 (h8300_saved_pc_after_call): Take pseudo registers into account.
2913 (h8300_register_type): Ditto. Return type used for remote connection
2914 when requesting real CCR or EXR register, return actual type when
2915 requesting pseudo CCR or EXR.
2916 (h8300_pseudo_register_read): New function.
2917 (h8300_pseudo_register_write): Ditto.
2918 (h8300_dbg_reg_to_regnum): Ditto.
2919 (h8300s_dbg_reg_to_regnum): Ditto.
2920 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2921 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2922 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2923 set_gdbarch_print_insn architecture dependent.
2924 Call set_gdbarch_pseudo_register_read and
2925 set_gdbarch_pseudo_register_write.
2926 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2927
a59fe496
AC
29282003-06-16 Andrew Cagney <cagney@redhat.com>
2929
2930 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2931 * gdbarch.h, gdbarch.c: Re-generate.
2932 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2933 * s390-tdep.c (s390_gdbarch_init): Update.
2934 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2935 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2936 * mips-tdep.c (mips_gdbarch_init): Update.
2937 * mcore-tdep.c (mcore_gdbarch_init): Update.
2938 * cris-tdep.c (cris_gdbarch_init): Update.
2939 * infcall.c (call_function_by_hand): Update.
2940 * ia64-tdep.c (ia64_push_arguments): Update comment.
2941 * frame.c (legacy_get_prev_frame): Do not assume
2942 SAVE_DUMMY_FRAME_TOS_P.
2943 * dummy-frame.c (find_dummy_frame): Update comment.
2944
6f4e5a41
AC
29452003-06-16 Andrew Cagney <cagney@redhat.com>
2946
2947 * regcache.c (do_cooked_read): Do not use register_valid_p.
2948
72fab697
TR
29492003-06-15 Theodore A. Roth <troth@openavr.org>
2950
2951 * avr-tdep.c (avr_register_type): Remove a blank line.
2952 (avr_scan_prologue): Correct some comments.
2953
e3d8b004
TR
29542003-06-15 Theodore A. Roth <troth@openavr.org>
2955
2956 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2957 prologue types.
8ffd9b1b 2958 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
2959 option.
2960 Add code to scan -mcall-prologues for mega devices.
2961
866b76ea
TR
29622003-06-15 Theodore A. Roth <troth@openavr.org>
2963
2964 * avr-tdep.c (avr_register_byte): Delete function.
2965 (avr_register_raw_size): Delete function.
2966 (avr_register_virtual_size): Delete function.
2967 (avr_register_virtual_type): Delete function.
2968 (avr_register_type): New function.
2969 (avr_address_to_pointer): Remove unused code.
2970 (avr_read_fp): Need to read FP as two separate bytes due to change to
2971 avr_register_type() usage.
2972 (avr_gdbarch_init): Don't set deprecated_register_size.
2973 Don't set deprecated_register_bytes.
2974 Don't set deprecated_register_byte.
2975 Don't set deprecated_register_raw_size.
2976 Don't set deprecated_max_register_raw_size.
2977 Don't set deprecated_register_virtual_size.
2978 Don't set deprecated_max_register_virtual_size.
2979 Don't set deprecated_register_virtual_type.
2980 Set register_type method.
2981
3993f6b1
DJ
29822003-06-15 Daniel Jacobowitz <drow@mvista.com>
2983
2984 * Makefile.in (linux-nat.o): Add rule.
2985 * linux-nat.c: New file.
2986 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2987 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2988 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2989 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2990 * config/arm/linux.mh (NATDEPFILES): Likewise.
2991 * config/i386/linux.mh (NATDEPFILES): Likewise.
2992 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2993 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2994 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2995 * config/mips/linux.mh (NATDEPFILES): Likewise.
2996 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2997 * config/s390/s390.mh (NATDEPFILES): Likewise.
2998 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2999
786a90bb
MK
30002003-06-15 Mark Kettenis <kettenis@gnu.org>
3001
3002 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3003 replace out-of-date comment.
3004
3bd3f01e
AC
30052003-06-15 Andrew Cagney <cagney@redhat.com>
3006
3007 * rdi-share/host.h (Fail): Change to a varargs function.
3008 * remote-rdi.c (Fail): Update.
8ffd9b1b 3009
de5b9bb9
MK
30102003-06-15 Mark Kettenis <kettenis@gnu.org>
3011
3012 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3013 (i386_convert_register_p, i386_register_to_value,
3014 i386_register_from_value): Handle types longer than 8 bytes.
3015
d532c08f
MK
30162003-06-15 Mark Kettenis <kettenis@gnu.org>
3017
3018 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3019 Move floating-point code to new function in i387-tdep.c.
3020 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3021 New functions containing code moved here from i386-tdep.c.
3022 * i387-tdep.h: Add opaque declaration for `struct type'.
3023 (i387_register_to_value, i387_value_to_register): New prototypes.
3024 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3025 (x86_64_init_abi): Set convert_register_p, register_to_value and
3026 value_to_register here.
8ffd9b1b 3027
42c466d7
AC
30282003-06-14 Andrew Cagney <cagney@redhat.com>
3029
3030 * mips-tdep.c (mips_register_to_value): Make static.
3031 (mips_value_to_register): Make static.
3032 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3033 * ia64-tdep.c (ia64_register_raw_size): Make static.
3034 (ia64_register_virtual_size): Make static.
3035 (ia64_register_byte): Make static.
3036 * i387-tdep.c: Include "i387-tdep.h".
3037 (print_387_control_word): Delete function.
3038 (print_387_status_word): Delete function.
3039 (print_387_status_bits): Delete function.
3040 (print_387_control_bits): Delete function.
3041 * Makefile.in (i387-tdep.o): Update dependencies.
3042 * rdi-share/host.h (Fail): Declare.
3043 * remote-rdi.c (Fail): Update to match declaration.
3044
2a9cda49
AC
30452003-06-14 Andrew Cagney <cagney@redhat.com>
3046
3047 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3048 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3049 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3050 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3051 * README: Delete reference to remote-array.
3052 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3053 (remote-array.o): Delete target.
3054 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3055 * remote-array.c: Delete file.
3056
ff2e87ac
AC
30572003-06-14 Andrew Cagney <cagney@redhat.com>
3058 Mark Kettenis <kettenis@gnu.org>
3059
3060 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3061 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3062 parameter with "frame".
3063 * gdbarch.h, gdbarch.c: Re-generate.
3064 * frame.h (put_frame_register): Declare.
3065 * frame.c (put_frame_register): New function.
3066 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3067 (legacy_register_to_value): Rewrite, use "frame" to get the
3068 register value.
3069 (legacy_value_to_register): Rewrite, use "frame" to find the
3070 register's location before storing.
3071 * arch-utils.h (legacy_convert_register_p): Update.
3072 (legacy_register_to_value, legacy_value_to_register): Update.
3073 * findvar.c (value_from_register): Rewrite, eliminate use of
3074 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3075 "frame" to REGISTER_TO_VALUE.
3076 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3077 lval_reg_frame_relative + lval_register branch of the switch. Do
3078 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3079 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3080 I386_EDI_REGNUM): New defines.
3081 (i386_next_regnum, i386_convert_register_p,
3082 i386_register_to_value, i386_value_to_register): New functions.
3083 (i386_register_convertible, i386_register_convert_to_virtual,
3084 i386_convert_to_raw): Remove functions.
3085 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3086 value_to_register instead of register_convertible,
3087 register_convert_to_virtual and register_convert_to_raw.
3088 * mips-tdep.c (mips_convert_register_p): New function.
3089 (mips_value_to_register): Replace mips_register_convert_from_type.
3090 (mips_register_to_value): Replace mips_register_convert_to_type.
3091 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3092 register_to_value.
3093 * alpha-tdep.c (alpha_convert_register_p): Update.
3094 (alpha_value_to_register): Update, store the register.
3095 (alpha_register_to_value): Update, fetch the register.
3096
98be1e77
TR
30972003-06-14 Theodore A. Roth <troth@openavr.org>
3098
3099 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3100 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3101 Don't set deprecated_call_dummy_words.
3102 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3103 Don't set remote_translate_xfer_address.
3104 (avr_io_reg_read_command): Remove commented out debug printf.
3105 Wrap a long line.
3106
57bc6122
TR
31072003-06-14 Theodore A. Roth <troth@openavr.org>
3108
3109 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3110 causes gdb to seg fault.
3111
eb01fc62
DJ
31122003-06-14 Daniel Jacobowitz <drow@mvista.com>
3113
3114 * sparc-nat.c (fetch_inferior_registers): Correct
3115 a reference to "registers".
3116
3b3e6bee
DJ
31172003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3118
3119 * Makefile.in (exc_request_U_h): Define
3120 (exc_request_S_h): Likewise.
3121 (msg_reply_S_h): Likewise.
3122 (msg_U_h): Likewise.
3123 (notify_S_h): Likewise.
3124 (process_reply_S_h): Likewise.
3125 (gnu-nat.o): Depend on gdb_obstack_h
3126 * gnu-nat.c: Include "gdb_obstack.h".
3127
b8de8283
AC
31282003-06-13 Andrew Cagney <cagney@redhat.com>
3129
3130 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3131 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 3132
f3be58bc
AC
31332003-06-13 Andrew Cagney <cagney@redhat.com>
3134
3135 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3136 when deprecated REGISTER macros can be deleted.
3137 * gdbarch.h, gdbarch.c: Re-generate.
3138
4c0122c8
JB
31392003-06-13 Jim Blandy <jimb@redhat.com>
3140
3141 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3142 Linux entry point symbols for _dl_debug_state, too.
3143
3e210248
AC
31442003-06-13 Andrew Cagney <cagney@redhat.com>
3145
3146 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3147 available, do not use the FP register, and always save the TOS.
3148 * dummy-frame.c (dummy_frame_this_id): Do not assert
3149 SAVE_DUMMY_FRAME_TOS.
3150 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3151 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3152 (i386_push_dummy_call): Add 8 to the returned SP.
3153 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3154 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3155 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3156 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3157 (x86_64_push_dummy_call): Return "sp + 16".
3158 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3159 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3160 save_dummy_frame_tos.
3161
0b65af49
JB
31622003-06-13 Jim Blandy <jimb@redhat.com>
3163
3164 * frv-tdep.c (frv_use_struct_convention): Delete static
3165 declaration for function deleted in my change of 2003-06-12.
3166
4ea2465e
TR
31672003-06-13 Theodore A. Roth <troth@openavr.org>
3168
3169 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3170 (avr_pointer_to_address): Shift code addrs left 1 bit.
3171 (avr_convert_from_func_ptr_addr): Delete function since operation is
3172 better handled by avr_address_to_pointer and avr_pointer_to_address.
3173 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3174
1581182a
MK
31752003-06-13 Mark Kettenis <kettenis@gnu.org>
3176
3177 From Kelley Cook <kelleycook@wideopenwest.com>:
3178 * configure.host: Accept i[34567]86 variants.
3179 * configure.tgt: Likewise.
3180 * nlm/configure.in: Likewise.
3181 * nlm/configure: Regenerated.
3182
7aa1783e
RE
31832003-06-13 Richard Earnshaw <rearnsha@arm.com>
3184
3185 * arm-tdep.c (solib-svr4.h): Dont' include it.
3186 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3187 * arm-linux-tdep.c: ... here. Make static.
3188 (arm_linux_init_abi): Register it.
3189 (solib-svr4.h): Include it.
3190 * Makefile.in: Update dependencies.
3191 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3192 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3193
0261a0d0
CV
31942003-06-13 Corinna Vinschen <vinschen@redhat.com>
3195
3196 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3197 indicate registers used for return values.
3198 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3199 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3200 members.
3201 (h8300_init_extra_frame_info): Ditto.
3202 (h8300_frame_locals_address): Removed.
3203 (h8300_frame_args_address): Removed.
3204 (h8300_extract_return_value): Use new regcache structure. Only care
3205 for 16 bit CPUs.
3206 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3207 (h8300_store_return_value): Use new regcache structure. Only care
3208 for 16 bit CPUs.
3209 (h8300h_store_return_value): Same function for 32 bit CPUs.
3210 (h8300_store_struct_return): Removed.
3211 (h8300_extract_struct_value_address): Use new regcache structure.
3212 (h8300h_extract_struct_value_address): Removed.
3213 (h8300_push_dummy_code): New function.
3214 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3215 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3216 set_gdbarch_store_return_value architecture dependent.
3217 Call set_gdbarch_push_dummy_code and
3218 set_gdbarch_extract_struct_value_address.
3219 Remove calls to set_gdbarch_frame_args_address,
3220 set_gdbarch_frame_locals_address,
3221 set_gdbarch_deprecated_store_struct_return,
3222 set_gdbarch_deprecated_extract_return_value,
3223 set_gdbarch_deprecated_extract_struct_value_address,
3224 set_gdbarch_deprecated_call_dummy_words and
3225 set_gdbarch_deprecated_sizeof_call_dummy_words.
3226
055c394a
CV
32272003-06-13 Corinna Vinschen <vinschen@redhat.com>
3228
3229 * h8300-tdep.c (h8300_register_byte): Remove.
3230 (h8300h_register_byte): Remove.
3231 (h8300_register_virtual_type): Remove. Substitute by...
3232 (h8300_register_type): New function.
3233 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3234 (h8300h_extract_struct_value_address): Ditto.
3235 (h8300_gdbarch_init): Drop calls to
3236 set_gdbarch_deprecated_register_byte and
3237 set_gdbarch_deprecated_register_virtual_type.
3238 Add call to set_gdbarch_register_type.
3239
9c04cab7
AC
32402003-06-13 Andrew Cagney <cagney@redhat.com>
3241
3242 * gdbarch.sh: Update comments on registers.
3243 (deprecated_register_byte): Rename register_byte.
3244 (deprecated_register_raw_size): Rename register_raw_size.
3245 (deprecated_register_virtual_size): Rename register_virtual_size.
3246 (deprecated_register_virtual_type): Rename register_virtual_type.
3247 * gdbarch.h, gdbarch.c: Re-generate.
3248 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3249 * vax-tdep.c (vax_gdbarch_init): Update.
3250 * v850-tdep.c (v850_gdbarch_init): Update.
3251 * sparc-tdep.c (sparc_gdbarch_init): Update.
3252 * sh-tdep.c (sh_gdbarch_init): Update.
3253 * s390-tdep.c (s390_gdbarch_init): Update.
3254 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3255 * ns32k-tdep.c: Update.
3256 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3257 * mips-tdep.c (mips_gdbarch_init): Update.
3258 * mcore-tdep.c (mcore_gdbarch_init): Update.
3259 * m68k-tdep.c (m68k_gdbarch_init): Update.
3260 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3261 * ia64-tdep.c (ia64_gdbarch_init): Update.
3262 * hppa-tdep.c (hppa_gdbarch_init): Update.
3263 * h8300-tdep.c (h8300_gdbarch_init): Update.
3264 * frv-tdep.c (frv_gdbarch_init): Update.
3265 * cris-tdep.c (cris_gdbarch_init): Update.
3266 * avr-tdep.c (avr_gdbarch_init): Update.
3267 * alpha-tdep.c (alpha_gdbarch_init): Update.
3268 * arm-tdep.c (arm_gdbarch_init): Update.
3269
b060cbea
AC
32702003-06-13 Andrew Cagney <cagney@redhat.com>
3271
3272 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3273 mips_o32_use_struct_convention with always_use_struct_convention.
3274
0fc9922a
DC
32752003-06-12 David Carlton <carlton@kealia.com>
3276
3277 * cp-namespace.c (cp_set_block_scope): Comment out
3278 processing_has_namespace_info branch.
3279
1fd35568
JB
32802003-06-12 Jim Blandy <jimb@redhat.com>
3281
f470a70a
JB
3282 Recognize and skip 64-bit PowerPC Linux linkage functions.
3283 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3284 insn_pattern, insns_match_pattern, d_field, ds_field): New
3285 functions, macros, and types for working with PPC instructions.
3286 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3287 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3288 ppc64_skip_trampoline_code): New functions, variables, and macros
3289 for recognizing and skipping linkage functions.
3290 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3291 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3292
49ff75ad
JB
3293 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3294 register offsets for both the 32- and 64-bit interfaces.
3295
bd918c83
JB
3296 Actually finish the job started by my change of 2003-05-29.
3297 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3298 other #definition of this.
3299 (ppc_linux_skip_trampoline_code): Remove declaration.
3300 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3301 static.
3302 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3303 method for GDBARCH.
3304
3305 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3306 'long' on ppc64-*-linux*.
3307
f8c59253
JB
3308 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3309 isn't #defined, assume the register doesn't exist: act as if
3310 tdep->ppc_mq_regnum were -1.
3311
8fbb30b1
JB
3312 * configure.host, configure.tgt: Add entries for
3313 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3314 powerpc/linux.mt.
3315 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3316 New files.
3317
1fd35568
JB
3318 * arch-utils.c (always_use_struct_convention): New function.
3319 * arch-utils.h (always_use_struct_convention): New prototype.
3320 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3321 (alpha_gdbarch_init): Register always_use_struct_convention,
3322 instead of alpha_use_struct_convention.
3323 * cris-tdep.c (cris_use_struct_convention): Delete.
3324 (cris_gdbarch_init): Register always_use_struct_convention,
3325 instead of cris_use_struct_convention.
3326 * frv-tdep.c (frv_use_struct_convention): Delete.
3327 (frv_gdbarch_init): Register always_use_struct_convention,
3328 instead of frv_use_struct_convention.
3329 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3330 (h8300_gdbarch_init): Register always_use_struct_convention,
3331 instead of h8300_use_struct_convention.
e3305dd9 3332 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
3333 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3334 instead of mips_o32_use_struct_convention.
3335
e14e6e9c
AC
33362003-06-12 Andrew Cagney <cagney@redhat.com>
3337
3338 * wince.c: Include "mips-tdep.h".
3339 * mips-tdep.h (mips_next_pc): Declare.
3340 * mcore-tdep.c: Make more local functions static.
3341 * Makefile.in (wince.o): Update dependencies.
3342
2335f48e
DC
33432003-06-12 David Carlton <carlton@kealia.com>
3344
3345 * symtab.c (lookup_symbol_aux_minsyms): Replace
3346 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3347 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3348 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3349 SYMBOL_NATURAL_NAME.
3350
f70a7d61
AS
33512003-06-12 Andreas Schwab <schwab@suse.de>
3352
3353 * Makefile.in (tuiDisassem.o): Update dependencies.
3354
b6429628
DC
33552003-06-12 David Carlton <carlton@bactrian.org>
3356
3357 * symtab.h: Delete declaration of make_symbol_overload_list.
3358 Add declaration of lookup_partial_symbol.
3359 * symtab.c (remove_params): Move to cp-support.c.
3360 (overload_list_add_symbol, make_symbol_overload_list)
3361 (sym_return_val_size, sym_return_val_index): Ditto.
3362 (lookup_partial_symbol): Make extern.
3363 * cp-support.h: Add declaration of make_symbol_overload_list.
3364 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3365 symtab.h, and block.h.
3366 (remove_params): Move here from symtab.c.
3367 (overload_list_add_symbol, make_symbol_overload_list)
3368 (sym_return_val_size, sym_return_val_index): Ditto.
3369 * valops.c: Include cp-support.h.
3370 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3371 frame_h, and block_h.
3372 (valops.o): Depend on cp_support_h.
3373
084edea5
CV
33742003-06-12 Corinna Vinschen <vinschen@redhat.com>
3375
3376 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3377 substitute by NUM_REGS throughout.
3378 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3379 (h8300s_register_name): New function for H8S registers.
3380 (h8300sx_register_name): Ditto for H8SX registers.
3381 (h8300_print_register): Revise register printing, avoid depending
3382 on 32 bit long.
0261a0d0 3383 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
3384 (h8300h_register_byte): New function for any other architecture.
3385 (h8300_register_raw_size): Remove.
3386 (h8300_register_virtual_type): Revise to return actually useful
3387 type.
3388 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3389 (h8300h_extract_struct_value_address): New function for any other
3390 architecture.
3391 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3392 set_gdbarch_register_name, set_gdbarch_register_byte,
3393 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3394 Remove calls to set_gdbarch_deprecated_register_size,
3395 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3396 set_gdbarch_deprecated_max_register_raw_size,
3397 set_gdbarch_register_virtual_size and
3398 set_gdbarch_deprecated_max_register_virtual_size entirely.
3399 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3400 set_gdbarch_long_double_bit.
3401
06194148
JJ
34022003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3403
8ffd9b1b
AJ
3404 * doublest.c (convert_doublest_to_floatformat): When dealing
3405 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
3406 processing a full 32 bits of mantissa.
3407
de4f826b
DC
34082003-06-11 David Carlton <carlton@bactrian.org>
3409
3410 * dictionary.h: New.
3411 * dictionary.c: New.
3412 * block.h: Add opaque declaration for struct dictionary.
3413 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3414 'sym' members.
3415 (BLOCK_DICT): New macro.
3416 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3417 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3418 BLOCK_SHOULD_SORT.
3419 (ALL_BLOCK_SYMBOLS): Update definition.
3420 * Makefile.in (SFILES): Add dictionary.c.
3421 (dictionary_h): New.
3422 (COMMON_OBS): Add dictionary.o.
3423 (dictionary.o): New.
3424 (ada-lang.o): Depend on dictionary_h.
3425 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3426 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3427 (mi-cmd-stack.o): Ditto.
3428 (gdbtk-cmds.o): Update dependencies.
3429 (gdbtk-stack.o): Ditto.
3430 * ada-lang.c: Include dictionary.h.
3431 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3432 (fill_in_ada_prototype, debug_print_block): Ditto.
3433 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3434 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3435 'is_sorted'.
3436 * mdebugread.c: Include dictionary.h.
3437 (struct parse_stack): Delete 'maxsyms' member.
3438 (parse_symbol): Update calls to new_block. Delete calls to
3439 shrink_block. Use dictionary methods.
3440 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3441 Update calls to new_symtab. Don't maintain maxsyms data.
3442 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3443 (add_symbol): Just call dict_add_symbol.
3444 (new_symtab): Delete 'maxsyms' argument.
3445 (new_symtab): Update calls to new_block.
3446 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3447 (shrink_block): Delete function.
3448 (fixup_sigtramp): Update call to new_block. Add symbol via
3449 dict_add_symbol.
3450 * jv-lang.c: Include dictionary.h.
3451 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3452 appropriately. Set class_symtab->free_func. Make sure the
3453 blockvector is big enough to hold two blocks.
3454 (add_class_symtab_symbol): Use dictionary methods.
3455 (free_class_block): New function.
3456 (type_from_class): Replace explicit iteration by
3457 ALL_BLOCK_SYMBOLS.
3458 * symtab.h (struct symtab): Replace 'free_ptr' method by
3459 'free_func'.
3460 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3461 sort_symtab_syms.
3462 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3463 sort_symtab_syms.
3464 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3465 Include dictionary.h.
3466 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3467 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3468 sort_symtab_syms.
3469 * objfiles.c: Include dictionary.h.
3470 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3471 * buildsym.c: Include dictionary.h.
3472 (finish_block): Use dictionary methods.
3473 (end_symtab): Set free_func to NULL, not free_ptr.
3474 * tracepoint.c: Include dictionary.h.
3475 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3476 (scope_info): Ditto.
3477 * stack.c: Include dictionary.h.
3478 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3479 (print_block_frame_labels, print_frame_arg_vars)
3480 (print_frame_args): Ditto.
3481 * symmisc.c (free_symtab_block): Use dictionary methods.
3482 (dump_symtab): Ditto.
3483 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3484 Include dictionary.h.
3485 * symfile.h: Delete declarations of sort_block_syms,
3486 sort_symtab_syms.
3487 * symfile.c (sort_block_syms): Delete.
3488 (sort_symtab_syms): Delete.
3489 * symtab.c: Include dictionary.h.
3490 (lookup_block_symbol): Use dictionary iterators.
3491 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3492 (search_symbols, make_symbol_completion_list): Ditto.
3493 (make_symbol_overload_list): Ditto.
3494 * valops.c (value_of_local): Use dict_empty.
3495 Include dictionary.h.
3496
a31f978c
JB
34972003-06-11 J. Brobecker <brobecker@gnat.com>
3498
3499 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3500
526e70c0
DC
35012003-06-11 David Carlton <carlton@bactrian.org>
3502
3503 * block.h (BLOCK_SHOULD_SORT): Delete.
3504 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3505 blocks.
3506 * ada-lang.c (ada_add_block_symbols): Ditto.
3507 * symfile.c (sort_block_syms): Delete.
3508 (sort_symtab_syms): Ditto.
3509 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3510 declarations.
3511 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3512 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3513 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3514 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3515 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3516 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3517 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3518
33c08150
JJ
35192003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3520
8ffd9b1b 3521 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
3522 bits to 128.
3523
781a750d
AC
35242003-06-11 Andrew Cagney <cagney@redhat.com>
3525
3526 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3527 REGISTER_CONVERTIBLE.
3528 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3529 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3530 * gdbarch.h, gdbarch.c: Re-generate.
3531 * arch-utils.h (deprecated_register_convertible_not): Rename
3532 generic_register_convertible_not.
3533 * arch-utils.c (deprecated_register_convertible_not): Rename
3534 generic_register_convertible.
3535 (legacy_convert_register_p, legacy_register_to_value): Update.
3536 * sh-tdep.c (sh64_push_arguments): Update.
3537 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3538 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3539 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3540 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3541 * arch-utils.c (legacy_value_to_register): Update.
3542 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3543 (rs6000_register_convert_to_raw): Make parameter "from" const.
3544 * mips-tdep.c (mips_gdbarch_init): Update.
3545 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3546 * infcmd.c (default_print_registers_info): Update.
3547 * ia64-tdep.c (ia64_gdbarch_init): Update.
3548 (ia64_register_convert_to_raw): Make parameter "from" const.
3549 * i386-tdep.c (i386_gdbarch_init): Update.
3550 (i386_register_convert_to_raw): Update.
3551
cd90e54f
AC
35522003-06-11 Andrew Cagney <cagney@redhat.com>
3553
3554 * remote-fileio.c: Include "remote-fileio.h".
3555 * Makefile.in (remote-fileio.o): Update dependencies.
3556 (remote_fileio_h): Fix typo.
3557
a78f21af
AC
35582003-06-11 Andrew Cagney <cagney@redhat.com>
3559
3560 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3561 (xstormy16_save_dummy_frame_tos): Make static.
3562 (_initialize_xstormy16_tdep): Add declaration.
3563 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3564 * v850-tdep.c: Make local functions static.
3565 (_initialize_v850_tdep): Add declaration.
3566 * sparc-tdep.c: Make local functions static.
3567 (_initialize_sparc_tdep): Add declaration.
3568 * sh-tdep.c: Make local functions static.
3569 (_initialize_sh_tdep): Add declaration.
3570 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3571 * s390-tdep.c: Make local functions static.
3572 (_initialize_s390_tdep): Add declaration.
3573 * dbxread.c (find_stab_function_addr): Make static.
3574 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3575 * ocd.c (_initialize_remote_ocd): Add declaration.
3576 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3577 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3578 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3579 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3580 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3581 * remote-array.c (_initialize_array): Add declaration.
3582 (_initialize_remote_monitors): Add declaration.
3583 * remote-mips.c: Make local functions static.
3584 (_initialize_remote_mips): Add declaration.
3585 * mcore-tdep.c: Make all local functions static.
3586 (_initialize_mcore_tdep): Add declaration.
3587 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3588 * abug-rom.c (_initialize_abug_rom): Add declaration.
3589 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3590 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3591 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3592 * remote-est.c (_initialize_est): Add declaration.
3593 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3594 (m68hc11_call_dummy_address): Make static.
3595 * ia64-tdep.c: Make local functions static.
3596 (_initialize_ia64_tdep): Add declaration.
3597 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3598 * monitor.c (monitor_wait_filter): Make static.
3599 (_initialize_remote_monitors): Add declaration.
3600 * remote-hms.c (_initialize_remote_hms): Add declaration.
3601 * remote-e7000.c (fetch_regs_from_dump): Make static.
3602 (expect_n): Make static.
3603 (_initialize_remote_e7000): Add declaration.
3604 * ser-e7kpc.c: Always include "defs.h".
3605 (_initialize_ser_e7000pc): Add declaration.
3606 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3607 * cris-tdep.c: Make all but one function static.
3608 (_initialize_cris_tdep): Add declaration.
3609 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3610 * solib.c (update_solib_list): Make static.
3611 (_initialize_solib): Add declaration.
3612 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3613 (_initialize_avr_tdep): Add declaration.
3614 * remote-rdi.c (voiddummy): Make static.
3615 (_initialize_remote_rdi): Add declaration.
3616 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3617 * remote-rdp.c (send_rdp): Make static.
3618 (_initialize_remote_rdp): Add declaration.
3619 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3620
cbcdb1f5
CV
36212003-06-11 Corinna Vinschen <vinschen@redhat.com>
3622
3623 * remote-fileio.c: Make ari happy.
3624
a191ea8d
JB
36252003-06-10 J. Brobecker <brobecker@gnat.com>
3626
3627 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3628 fetching the trailing bytes of the buffer we are about to write.
3629
0ef75e11
AC
36302003-06-10 Andrew Cagney <cagney@redhat.com>
3631
3632 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3633 * Makefile.in (remote-fileio.o): Update dependencies.
3634 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3635 include <setjmp.h>, or <sys/types.h> conditional on USG.
3636 (remote_fio_jmp_buf): Delete global variable.
3637
449092f6 36382003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 3639 Martin M. Hunt <hunt@redhat.com>
449092f6 3640
559fa028
AC
3641 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3642 (SFILES): Add remote-fileio.c.
3643 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3644 dependencies for building remote.o.
449092f6
CV
3645 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3646 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 3647 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
3648 static storage class.
3649 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3650 'F' packet.
3651 (_initialize_remote): Call initialize_remote_fileio().
3652 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
3653 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3654 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3655 (captured_main): Initialize new ui_files.
3656 * ui-file.c: Add read and fgets input functions.
3657 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3658 (null_file_read): New function.
3659 (ui_file_read): New function.
3660 (set_ui_file_read): New function.
3661 (stdio_file_read): New function.
3662 * ui-file.h: New type ui_file_read_ftype.
3663 (set_ui_file_read): Declare.
3664 (ui_file_read): Declare.
3665
248de703
AC
36662003-06-09 Andrew Cagney <cagney@redhat.com>
3667
3668 * frame.h (deprecated_unwind_get_saved_register): Rename
3669 generic_unwind_get_saved_register, update comments.
3670 * mips-tdep.c (mips_get_saved_register): Update.
3671 * frame.c (deprecated_unwind_get_saved_register): Update.
3672
0ed8aa57
AC
36732003-06-09 Andrew Cagney <cagney@redhat.com>
3674
3675 * vax-tdep.c (vax_frame_locals_address): Delete function.
3676 (vax_gdbarch_init): Do not set frame_locals_address.
3677 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3678 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3679 * s390-tdep.c (s390_frame_args_address): Delete function.
3680 (s390_gdbarch_init): Do not set frame_args_address or
3681 frame_locals_address.
3682 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3683 (ns32k_gdbarch_init): Do not set frame_locals_address.
3684 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3685 (hppa_frame_locals_address): Delete function.
3686 (hppa_gdbarch_init): Do not set frame_args_address, or
3687 frame_locals_address.
3688 * arm-tdep.c (arm_frame_args_address): Delete.
3689 (arm_frame_locals_address): Delete.
3690 (arm_gdbarch_init): Do not set frame_args_address, or
3691 frame_locals_address.
3692
983a287a
AC
36932003-06-09 Andrew Cagney <cagney@redhat.com>
3694
3695 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3696 * gdbarch.h, gdbarch.c: Re-generate.
3697 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3698 * arch-utils.c (frame_num_args_unknown): Delete function.
3699 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3700 (frame_info): Use FRAME_NUM_ARGS_P.
3701 * arm-tdep.c (arm_frame_num_args): Delete function.
3702 (arm_gdbarch_init): Do not set frame_num_args.
3703 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3704 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3705 (hppa_gdbarch_init): Do not set frame_num_args.
3706 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3707 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3708 frame_num_args to default frame_num_args_unknown.
3709 * v850-tdep.c (v850_gdbarch_init): Ditto.
3710 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3711 * sh-tdep.c (sh_gdbarch_init): Ditto.
3712 * s390-tdep.c (s390_gdbarch_init): Ditto.
3713 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3714 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3715 * mips-tdep.c (mips_gdbarch_init): Ditto.
3716 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3717 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3718 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3719 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3720 * i386-tdep.c (i386_gdbarch_init): Ditto.
3721 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3722 * frv-tdep.c (frv_gdbarch_init): Ditto.
3723 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3724 * cris-tdep.c (cris_gdbarch_init): Ditto.
3725 * avr-tdep.c (avr_gdbarch_init): Ditto.
3726 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3727
8d3b0994
AC
37282003-06-09 Andrew Cagney <cagney@redhat.com>
3729
3730 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3731 (print_frame_args): Moved to "stack.c".
3732 * stack.c: Include "gdb_assert.h".
3733 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3734 (print_frame_args): Moved from "printcmd.c".
3735 * frame.h (print_frame_args): Delete declaration.
3736 * Makefile.in (stack.o): Update dependencies.
3737
25e3a86b
AC
37382003-06-08 Andrew Cagney <cagney@redhat.com>
3739
3740 * frame.c (get_prev_frame): Remove reference to
3741 frame_args_address_correct in comments.
3742 * frame-base.c (default_frame_args_address): Delete code
3743 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3744 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3745 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3746 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3747 (vax_frame_args_address_correct): Delete declaration.
3748
a9e5fdc2
AC
37492003-06-08 Andrew Cagney <cagney@redhat.com>
3750
3751 * gdbarch.sh (UNWIND_SP): Add.
3752 * gdbarch.h, gdbarch.c: Re-generate.
3753 * frame.c (frame_sp_unwind): New function.
3754 (get_frame_sp): New function.
3755 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3756 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3757 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3758 value.
3759 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3760 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3761
8983bd83
AC
37622003-06-08 Andrew Cagney <cagney@redhat.com>
3763
7fec2c59
AC
3764 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3765 REMOTE_BREAKPOINT.
3766 * remote.c: Update.
3767 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3768 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3769 * config/m68k/tm-sun3.h: Update.
3770 * config/m68k/tm-m68klynx.h: Update.
3771 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3772
8983bd83
AC
3773 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3774 trad_frame". Update comments.
3775 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3776 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3777 (trad_frame_register_value, trad_frame_prev_register): Update.
3778
b9362cc7
AC
37792003-06-08 Andrew Cagney <cagney@redhat.com>
3780
3781 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3782 from GCC's acinclude.m4.
3783 * configure.in: Check for getopt's delcaration.
8ffd9b1b 3784 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
3785 * main.c (error_init): Delete declaration.
3786 * defs.h (error_init): Declare.
3787 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3788 (rs6000_convert_from_func_ptr_addr): Make static.
3789 (_initialize_rs6000_tdep): Add declaration.
3790 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3791 (show_commands, set_verbose, show_history): Delete declaration.
3792 * top.h (set_verbose): Add declaration.
3793 (show_history, set_history, show_commands): Add declaration.
3794 (do_restore_instream_cleanup): Add declaration.
3795 * objc-lang.c (specialcmp): Make static.
3796 (print_object_command): Make static.
3797 (find_objc_msgsend): Make static.
3798 (find_objc_msgcall_submethod_helper): Make static.
3799 (find_objc_msgcall_submethod): Make static.
3800 (_initialize_objc_language): Add declaration.
3801 (find_implementation_from_class): Make static.
3802 (find_implementation): Make static.
3803 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3804 * objc-lang.h (lookup_struct_typedef): Add declaration.
3805 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3806 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3807 (do_restore_user_call_depth): Make static.
3808 (do_restore_instream_cleanup): Delete declaration.
3809 (dont_repeat): Delete declaration.
3810 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3811 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3812 * reggroups.c (_initialize_reggroup): Add declaration.
3813 * cp-support.c (_initialize_cp_support): Add declaration.
3814 * cp-abi.c (_initialize_cp_abi): Add declaration.
3815 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3816 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3817 (_initialize_gnu_v3_abi): Add declaration.
3818 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3819 (_initialize_gnu_v2_abi): Add declaration.
3820 * frame-base.c (_initialize_frame_base): Add declaration.
3821 * doublest.c (floatformat_from_length): Make static.
3822 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3823 * frame.c (create_sentinel_frame): Make static.
3824 (_initialize_frame): Add declaration.
3825 * top.c (do_catch_errors): Make static.
3826 (gdb_rl_operate_and_get_next_completion): Make static.
3827 * typeprint.c: Include "typeprint.h".
3828 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3829 (sentinel_frame_this_id): Make static.
3830 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3831 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3832 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3833 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3834 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3835 * maint.c (maintenance_print_architecture): Make static.
3836 * signals/signals.c (_initialize_signals): Add declaration.
3837 * std-regs.c (_initialize_frame_reg): Add declaration.
3838 * jv-exp.y (push_variable): ISO C definition.
3839 (push_qualified_expression_name): Ditto.
3840 * memattr.c (_initialize_mem): Add declaration.
3841 * remote.c (remote_check_watch_resources): Make static.
3842 (remote_stopped_by_watchpoint): Make static.
3843 (remote_stopped_data_address): Make static.
3844 * d10v-tdep.c (nr_dmap_regs): Make static.
3845 (a0_regnum): Make static.
3846 (d10v_frame_unwind_cache): Make static.
3847 (d10v_frame_p): Make static.
3848 * osabi.c (show_osabi): Make static.
3849 (_initialize_gdb_osabi): Add extern declaration.
3850 * gdbtypes.c (make_qualified_type): Make static.
3851 (safe_parse_type): Make static.
3852 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3853 * macrotab.c (macro_bcache_free): Make static.
3854 * interps.c (interp_set_quiet): Make static.
3855 (interpreter_exec_cmd): Make static.
3856 * stack.h (select_frame_command): New file.
3857 * stack.c: Include "stack.h".
3858 (select_frame_command_wrapper): Delete function.
3859 (select_frame_command): Make global.
3860 * infcall.c: Include "infcall.h".
3861 * linespec.c: Include "linespec.h".
3862 * symfile.c (sections_overlap): Make static.
3863 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3864 * charset.c (_initialize_charset): Add missing prototype.
3865 * regcache.c (init_legacy_regcache_descr): Make static.
3866 (do_regcache_xfree): Make static.
3867 (regcache_xfer_part): Make static.
3868 (_initialize_regcache): Add missing prototype.
3869 * breakpoint.c (parse_breakpoint_sals): Make static.
3870 (breakpoint_sals_to_pc): Make static.
3871 * interps.h (clear_interpreter_hooks): ISO C declaration.
3872 * Makefile.in (stack_h): Define.
3873 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3874 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3875
a0f267c7
AC
38762003-06-08 Andrew Cagney <cagney@redhat.com>
3877
3878 * Makefile.in (d10v-tdep.o): Update dependencies.
3879 (SFILES): Add trad-frame.c.
3880 (trad_frame_h): Define.
3881 (COMMON_OBS): Add trad-frame.o.
3882 (trad-frame.o): Specify dependencies.
3883 * d10v-tdep.c: Include "trad-frame.h".
3884 (saved_regs_unwinder): Delete function.
3885 (d10v_frame_prev_register): Use trad_frame_prev_register.
3886 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3887 trad_frame", delete "regs" and "prev_sp".
3888 (prologue_find_regs): Use trad-frame.
3889 * trad-frame.h, trad-frame.c: New files.
3890
4538b4f4
MK
38912003-06-08 Mark Kettenis <kettenis@gnu.org>
3892
3893 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3894
a0273b2f
AF
38952003-06-07 Adam Fedor <fedor@gnu.org>
3896
3897 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3898 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3899 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3900 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 3901 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
3902 Use it.
3903
3a6c3343
AC
39042003-06-07 Andrew Cagney <cagney@redhat.com>
3905
3906 * symfile.h: Re-indent, clean up comments.
3907
b46e02f6
AC
39082003-06-07 Andrew Cagney <cagney@redhat.com>
3909
3910 * inferior.h (deprecated_write_sp): Replace
3911 generic_target_write_sp.
3912 * regcache.c (deprecated_write_sp): Replace
3913 generic_target_write_sp.
3914 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3915 * vax-tdep.c (vax_gdbarch_init): Update.
3916 * v850-tdep.c (v850_gdbarch_init): Update.
3917 * sparc-tdep.c (sparc_gdbarch_init): Update.
3918 * sh-tdep.c (sh_gdbarch_init): Update.
3919 * s390-tdep.c (s390_gdbarch_init): Update.
3920 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3921 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3922 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3923 * mcore-tdep.c (mcore_gdbarch_init): Update.
3924 * m68k-tdep.c (m68k_gdbarch_init): Update.
3925 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3926 * ia64-tdep.c (ia64_gdbarch_init): Update.
3927 * h8300-tdep.c (h8300_gdbarch_init): Update.
3928 * frv-tdep.c (frv_gdbarch_init): Update.
3929 * cris-tdep.c (cris_gdbarch_init): Update.
3930 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3931
a42e117c
AC
39322003-06-07 Andrew Cagney <cagney@redhat.com>
3933
3934 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3935 Assert that PC_REGNUM is valid.
3936 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3937
bd1ce8ba
AC
39382003-06-07 Andrew Cagney <cagney@redhat.com>
3939
3940 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3941 * gdbarch.h, gdbarch.c: Regenerate.
3942 * mn10300-tdep.c: Include "gdb_assert.h".
3943 (mn10300_read_fp): New function.
3944 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3945 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3946 * ia64-tdep.c: Include "gdb_assert.h".
3947 (ia64_read_fp): New function.
3948 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3949 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3950 * regcache.c (generic_target_read_sp): Delete function.
3951 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3952 * inferior.h (generic_target_read_sp): Delete declaration.
3953 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3954 generic_target_read_sp.
3955 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3956 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3957 * sh-tdep.c (sh_gdbarch_init): Ditto.
3958 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3959 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3960
ec5cbaec
AC
39612003-06-07 Andrew Cagney <cagney@redhat.com>
3962
3963 * gdbarch.sh: Comment each field of startup_gdbarch.
3964 * gdbarch.h, gdbarch.c: Re-generate.
3965
cde9ea48
AC
39662003-06-07 Andrew Cagney <cagney@redhat.com>
3967
3968 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3969 * gdbarch.h, gdbarch.c: Re-generate.
3970 * regcache.c: Update comments on read_pc et.al.
3971 (generic_target_read_pc): Delete function.
3972 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3973 * inferior.h (generic_target_read_pc): Delete declaration.
3974 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3975 generic_target_read_pc.
3976 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3977 * sh-tdep.c (sh_gdbarch_init): Ditto.
3978 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3979 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 3980
9a90a780
AC
39812003-06-07 Andrew Cagney <cagney@redhat.com>
3982
3983 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3984 "index" with "special_local_sect". Use strcmp instead of STREQ.
3985 Append period to coments.
3986
a39a16c4
MM
39872003-06-06 Mark Mitchell <mark@codesourcery.com>
3988
3989 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3990 (elfstab_offset_sections): Likewise.
3991 * gdb-stabs.h (stab_section_info): Likewise.
3992 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3993 * objfiles.c (objfile_relocate): Likewise.
3994 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3995 * remote.c (get_offsets): Likewise.
3996 (remote_cisco_objfile_relocate): Likewise.
3997 * somread.c (som_symfile_offsets): Likewise.
3998 * symfile.c (alloc_section_addr_info): New function.
3999 (build_section_addr_info_from_section_tab): Use it.
4000 (free_section_addr_info): Adjust.
4001 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4002 (syms_from_objfile): Allocate local_addr dynamically.
4003 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4004 dynamically.
4005 (add_symbol_file_command): Allocate sect_opts dynamically.
4006 (reread_symbols): Avoid use of SECT_OFF_MAX.
4007 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4008 (alloc_section_addr_info): Declare it.
4009 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4010 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4011 dynamically.
4012 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 4013
20c6c2f8
AC
40142003-06-06 Andrew Cagney <cagney@redhat.com>
4015
4016 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4017 (d10v_frame_unwind_cache): Do not set "return_pc".
4018
884a26c8
MS
40192003-06-06 Michael Snyder <msnyder@redhat.com>
4020
4021 * h8300-tdep.c: Make tidy (long lines).
4022
088ce440
ML
40232003-06-06 Michal Ludvig <mludvig@suse.cz>
4024
8ffd9b1b 4025 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
4026 to regcache_collect().
4027
7d773d96
JB
40282003-06-05 J. Brobecker <brobecker@gnat.com>
4029
4030 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4031 pc_in_sigtramp multiarch method.
4032 (hppa_hpux_som_init_abi): Use it.
4033 (hppa_hpux_elf_init_abi): Likewise.
4034 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4035 macro has been multiarched.
4036 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4037 macro here, as hppa64 isn't multiarched yet.
4038
1df6926e
AC
40392003-06-05 Andrew Cagney <cagney@redhat.com>
4040
4041 * Makefile.in (value_h): Add $(frame_h).
4042 * value.h: Include "frame.h".
4043 (struct value): Replace "frame_addr" with "frame_id".
4044 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4045 * values.c (allocate_value): Use VALUE_FRAME_ID.
4046 (value_copy): Use VALUE_FRAME_ID.
4047 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4048 * valops.c (value_assign): Update. Use frame_find_by_id.
4049
6b53acc6
ML
40502003-06-05 Michal Ludvig <mludvig@suse.cz>
4051
4052 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4053 in each pass.
4054
4d9850d3
JJ
40552003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4056
4057 * thread-db.c (check_event): For create/death event breakpoints,
4058 loop through all messages to ensure that we read the message
4059 corresponding to the breakpoint we are at.
4060
8efca6ba
MS
40612003-06-04 Michael Snyder <msnyder@redhat.com>
4062
4063 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4064
0912c7f2
MK
40652003-06-04 Mark Kettenis <kettenis@gnu.org>
4066
4067 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4068 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4069 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4070 when handling .eh_frame sections.
4071
4e370325
JB
40722003-06-04 J. Brobecker <brobecker@gnat.com>
4073
4074 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4075 prepare_to_proceed procedure instead of the hppa-specific one.
4076 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4077
b757528f 40782003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4079
b757528f
JJ
4080 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4081 * config.in: Regenerated.
4082 * configure.in: Add test for syscall function and check for
4083 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4084 * configure: Regenerated.
4085 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4086 <sys/syscall.h>.
4087 (kill_lwp): New function that uses tkill syscall or
4088 uses kill, depending on whether threading model is nptl or not.
4089 All callers of kill() changed to use kill_lwp().
4090 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4091 see if all threads have already exited in the nptl model.
4092 (stop_and_resume_callback): New callback function used by the
4093 lin_lwp_wait thread exit handling code.
4094 (stop_wait_callback): Check for threads already having exited and
4095 delete such threads fromt the lwp list when discovered.
4096 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 4097
b757528f
JJ
4098 Roland McGrath <roland@redhat.com>
4099 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4100 nptl libthread_db.
4101
087779b1
RH
41022003-06-03 Richard Henderson <rth@redhat.com>
4103
b21fd293
RH
4104 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4105 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4106 (alpha_sigtramp_frame_prev_register): Likewise.
4107 (alpha_heuristic_frame_prev_register): Likewise.
4108 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4109
8ffd9b1b 4110 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
4111 alpha-specific register id names.
4112 (alpha_mdebug_frame_unwind_cache): Likewise.
4113 (alpha_mdebug_frame_prev_register): Likewise.
4114
baa490c4
RH
41152003-06-03 Richard Henderson <rth@redhat.com>
4116
4117 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4118 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4119 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4120 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4121 unwind routines.
4122 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4123 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4124 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4125
4126 * alpha-linux-tdep.c: Remove unnecessary includes.
4127 * Makefile.in (alpha-linux-tdep.o): Update.
4128
41292003-06-03 Richard Henderson <rth@redhat.com>
4130
4131 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4132 (alphabsd_fill_fpreg): Likewise.
4133
f534e522
JB
41342003-06-03 J. Brobecker <brobecker@gnat.com>
4135
4136 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4137 references to struct frame_info fields by calls to the equivalent
4138 accessors. Necessary now that frame_info is opaque.
4139
4035536b
JB
41402003-06-03 J. Brobecker <brobecker@gnat.com>
4141
4142 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4143 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4144 structure, field no longer exists.
4145
0bd79c5c
JB
41462003-06-03 J. Brobecker <brobecker@gnat.com>
4147
4148 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4149 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4150
37bb6d9f
JB
41512003-06-03 J. Brobecker <brobecker@gnat.com>
4152
4153 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4154 references to struct frame_info fields by calls to the equivalent
4155 accessors. Necessary now that frame_info is opaque.
4156
852ee05c
JB
41572003-06-03 J. Brobecker <brobecker@gnat.com>
4158
4159 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4160 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4161 structure, field no longer exists.
4162
7d58c67d
TR
41632003-06-03 Theodore A. Roth <troth@openavr.org>
4164
8ffd9b1b 4165 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
4166 accumulation of the size of all registers instead of blindly using
4167 DEPRECATED_REGISTER_BYTES.
4168
0a48e7e8
MS
41692003-06-03 Michael Snyder <msnyder@redhat.com>
4170
4171 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4172 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4173 for h8300sx.
4174
9798ab0d
JB
41752003-06-03 J. Brobecker <brobecker@gnat.com>
4176
4177 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4178 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4179
00b037e2
AC
41802003-06-03 Andrew Cagney <cagney@redhat.com>
4181
4182 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4183 (sparc_convert_to_raw): Delete function.
4184 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4185 register_convert_to_virtual.
4186
043b2f77
JJ
41872003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4188
4189 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4190 layer if not dealing with a statically-linked threaded program.
4191
f43caff8
KW
41922003-06-03 Kris Warkentin <kewarken@qnx.com>
4193
4194 * solib.c (solib_open): Update comment to reflect actual search order.
4195
ae1e7417
AC
41962003-06-03 Andrew Cagney <cagney@redhat.com>
4197
4198 * frame.c (get_frame_memory_signed): New function.
4199 (get_frame_memory, get_frame_memory_unsigned): New function.
4200 (get_frame_arch): New function.
4201 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4202 (get_frame_memory, get_frame_unsigned_memory): Declare.
4203 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4204 get_frame_memory_unsigned and get_frame_arch.
4205 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4206
cb123844
RG
42072003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4208
4209 * MAINTAINERS (write after approval): Add myself.
4210
1bb792e9
JB
42112003-06-03 Jim Blandy <jimb@redhat.com>
4212
4213 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4214 elements of gregset_t are 64 bits each, but access registers
4215 are still 32 bits, so they're packed two per gregset_t
4216 element. Unpack/pack them properly.
4217
aee8d8ba
DC
42182003-06-02 David Carlton <carlton@bactrian.org>
4219
4220 * linespec.c (find_methods): Break out code into
4221 add_matching_methods and add_constructors.
4222 (add_matching_methods): New.
4223 (add_constructors): Ditto.
4224
bf7488d2
AC
42252003-06-02 Andrew Cagney <cagney@redhat.com>
4226
bf7488d2
AC
4227 * sparc-tdep.c (sparc_print_registers): Delete call to
4228 REGISTER_CONVERTIBLE.
4229 (sparc_gdbarch_init): Do not set register_convertible.
4230 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4231 * frv-tdep.c (frv_gdbarch_init): Ditto.
4232 * cris-tdep.c (cris_gdbarch_init): Ditto.
4233
adedef68
EZ
42342003-06-02 Elena Zannoni <ezannoni@redhat.com>
4235
8ffd9b1b 4236 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
4237 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4238 (syms_from_objfile): Ditto.
4239
650fcc91
AS
42402003-06-03 Andreas Schwab <schwab@suse.de>
4241
4242 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4243 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4244
df4a182b
RH
42452003-06-02 Richard Henderson <rth@redhat.com>
4246
4247 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4248 a member of all_reggroup.
4249
c483c494
RH
42502003-06-02 Richard Henderson <rth@redhat.com>
4251
4252 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4253 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4254 (alpha_lds, alpha_sts): New.
4255 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 4256 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
4257 restructure and fail for type sizes other than 4 or 8.
4258 (alpha_value_to_register): Similarly.
4259 (alpha_extract_return_value): Use alpha_sts.
4260 (alpha_store_return_value): Use alpha_lds.
4261 (alpha_gdbarch_init): Update hooks.
4262
b38b6be2
RH
42632003-06-02 Richard Henderson <rth@redhat.com>
4264
4265 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4266 regnum identifiers.
4267 (alpha_sigtramp_register_address): Likewise.
4268
98a8e1e5
RH
42692003-06-02 Richard Henderson <rth@redhat.com>
4270
4271 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4272 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4273 * alpha-tdep.h: Declare them.
4274
4275 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4276 Remove zerobuf. Don't error on UNIQUE.
4277 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4278 (ALPHA_REGSET_UNIQUE): Provide default.
4279 (supply_gregset): Use alpha_supply_int_regs.
4280 (fill_gregset): Use alpha_fill_int_regs.
4281 (supply_fpregset): Use alpha_supply_fp_regs.
4282 (fill_fpregset): Use alpha_fill_fp_regs.
4283 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4284 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4285 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4286 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4287 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4288 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4289
67dfac52
RH
42902003-06-02 Richard Henderson <rth@redhat.com>
4291
f75d70cc
RH
4292 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4293
67dfac52
RH
4294 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4295 (alpha_store_return_value): Likewise.
4296
0cf566ec
DC
42972003-06-02 David Carlton <carlton@math.stanford.edu>
4298
4299 * block.c (contained_in): Add 'const' to arguments.
4300 (block_function): Ditto.
4301 * block.h: Update declarations for block_function and
4302 contained_in.
4303
cdef89d0
DC
43042003-06-02 David Carlton <carlton@math.stanford.edu>
4305
4306 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4307 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4308 * p-valprint.c (pascal_val_print): Ditto.
4309 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4310
72667056
RH
43112003-06-02 Richard Henderson <rth@redhat.com>
4312
98a8e1e5
RH
4313 * alpha-tdep.c (alpha_push_dummy_call): Use
4314 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 4315
8ffd9b1b 4316 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
4317 sign-extension of 32-bit values.
4318 (alpha_store_return_value): Similarly.
0ede8eca 4319
98a8e1e5
RH
4320 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4321 (alpha_extract_return_value): Likewise.
4322 (alpha_store_return_value): Likewise.
7b5e1cb3 4323
98a8e1e5
RH
4324 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4325 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 4326
98a8e1e5
RH
4327 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4328 (alpha_extract_struct_value_address): Likewise.
4329 (alpha_store_return_value): Likewise.
4330 (alpha_store_struct_return): Remove.
4331 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 4332
98a8e1e5
RH
4333 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4334 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4335 macros where appropriate.
4336 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4337 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 4338
98a8e1e5
RH
4339 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4340 for SP, GP; void_func_ptr for PC; non-language-specific types
4341 for all others.
4342 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 4343
6dd77b81
RH
43442003-06-02 Richard Henderson <rth@redhat.com>
4345
4346 * top.h (lim_at_start): Declare.
4347 * main.c (captured_main): Set it.
4348 * top.c (lim_at_start): Define.
4349 (command_loop): Use it instead of &environ.
4350 * event-top.c (command_handler): Likewise.
4351
f4dbdb54
JT
43522003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4353
4354 * mipsnbsd-tdep.c: Update copyright years.
4355 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4356
8f285956
RH
43572003-06-01 Richard Henderson <rth@redhat.com>
4358
98a8e1e5
RH
4359 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4360 (alpha-linux-tdep.o): Update dependencies.
4361 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4362 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 4363
615967cb
RH
43642003-06-01 Richard Henderson <rth@redhat.com>
4365
98a8e1e5
RH
4366 * alpha-tdep.c (alpha_register_reggroup_p): New.
4367 (alpha_gdbarch_init): Register it.
615967cb 4368
b59661bd
AC
43692003-06-02 Andrew Cagney <cagney@redhat.com>
4370
4371 * dwarfread.c: Eliminate "register"
4372 (decode_die_type): Eliminate assignment within "if".
4373 (struct_type, decode_array_element_type): Ditto.
4374 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4375 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4376 (decode_modified_type, completedieinfo): Ditto.
4377 * block.c: Eliminate "register".
4378 (blockvector_for_pc_sect): Eliminate assignment within "if".
4379 * cp-support.h (struct symbol): Opaque declaration.
4380 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4381
5ef165c2
RH
43822003-06-01 Richard Henderson <rth@redhat.com>
4383
98a8e1e5
RH
4384 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4385 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 4386
143985b7
AF
43872003-06-01 Adam Fedor <fedor@gnu.org>
4388
4389 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4390 * gdbarch.[ch]: Regenerate.
4391 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4392 (hppa_gdbarch_init): Set it in the gdbarch vector.
4393 * i386-tdep.c (i386_fetch_pointer_argument): New
4394 (i386_gdbarch_init): Set it into gdbarch.
4395 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4396 (rs6000_gdbarch_init): Set it in gdbarch.
4397 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4398 (sparc_gdbarch_init): Set it in gdbarch.
4399
ae0167b9
AC
44002003-06-01 Andrew Cagney <cagney@redhat.com>
4401
7c0b4a20
AC
4402 * defs.h (extract_address): Delete declaration.
4403 * findvar.c (extract_address): Delete function.
4404 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4405 extract_address with the inline equivalent,
4406 extract_unsigned_integer.
4407 (xstormy16_extract_struct_value_address): Ditto.
4408 (xstormy16_pointer_to_address): Ditto.
4409 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4410 * v850-tdep.c (v850_push_arguments): Ditto.
4411 (v850_extract_return_value): Ditto.
4412 (v850_extract_struct_value_address): Ditto.
4413 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4414 (sparcnbsd_get_longjmp_target_64): Ditto.
4415 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4416 (get_longjmp_target): Ditto.
4417 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4418 (sh64_extract_struct_value_address): Ditto.
4419 (sh_push_arguments): Ditto.
4420 (sh64_push_arguments): Ditto.
4421 * remote-vxsparc.c (vx_read_register): Ditto.
4422 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4423 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4424 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4425 * mipsv4-nat.c (get_longjmp_target): Ditto.
4426 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4427 * mips-nat.c (get_longjmp_target): Ditto.
4428 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4429 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4430 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4431 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4432 * irix5-nat.c (get_longjmp_target): Ditto.
4433 * irix4-nat.c (get_longjmp_target): Ditto.
4434 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4435 (ia64_push_arguments): Ditto.
4436 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4437 * h8300-tdep.c (h8300_push_arguments): Ditto.
4438 (h8300_store_return_value): Ditto.
4439 (h8300_extract_struct_value_address): Ditto.
4440 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4441 (frv_push_arguments): Ditto.
4442 * avr-tdep.c (avr_pointer_to_address): Ditto.
4443 (avr_push_arguments): Ditto.
4444 * arm-tdep.c (arm_push_dummy_call): Ditto.
4445 (arm_get_longjmp_target): Ditto.
4446 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4447 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4448 (alpha_get_longjmp_target): Ditto.
4449
ae0167b9
AC
4450 * solib-irix.c (extract_mips_address): Inline extract_address,
4451 replacing it with extract_signed_integer.
4452 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4453 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4454 (first_link_map_member, open_symbol_file_object): Ditto.
4455 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4456 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4457 (LM_NEXT, LM_NAME): Ditto.
4458
44d88583
RH
44592003-06-01 Richard Henderson <rth@redhat.com>
4460
98a8e1e5
RH
4461 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4462 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4463 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4464 (alpha_cannot_store_register): Likewise.
4465 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4466 * alpha-nat.c (supply_gregset): Likewise.
4467 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 4468
310e9b6a
AC
44692003-06-01 Andrew Cagney <cagney@redhat.com>
4470
4471 * infcall.c (call_function_by_hand): Update comment on
4472 DEPRECATED_DUMMY_WRITE_SP.
4473
4474 * mips-tdep.c (mips_gdbarch_init): Do not set
4475 deprecated_dummy_write_sp.
4476 (mips_eabi_push_dummy_call): Set the SP register.
4477 (mips_o64_push_dummy_call): Set the SP register.
4478 (mips_o32_push_dummy_call): Set the SP register.
4479 (mips_n32n64_push_dummy_call): Set the SP register.
4480
5ab84872
RH
44812003-06-01 Richard Henderson <rth@redhat.com>
4482
98a8e1e5
RH
4483 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4484 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4485 (supply_gregset): Likewise.
4486 * alpha-tdep.c (alpha_store_return_value): Likewise.
4487 (alpha_get_longjmp_target): Likewise.
4488 (alpha_register_name): Constify array.
4489 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4490 deprecated_register_size, deprecated_register_bytes,
4491 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4492 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4493 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 4494
09cc52fd
RH
44952003-06-01 Richard Henderson <rth@redhat.com>
4496
4497 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4498 from arg_reg_buffer to regcache to avoid double conversion.
4499
c7f16359
MK
45002003-06-01 Mark Kettenis <kettenis@gnu.org>
4501
4502 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4503 SP_REGNUM.
4504 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4505 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4506
7131cb6e
RH
45072003-06-01 Richard Henderson <rth@redhat.com>
4508
98a8e1e5
RH
4509 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4510 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 4511
f3e0f90b
RH
45122003-06-01 Richard Henderson <rth@redhat.com>
4513
98a8e1e5
RH
4514 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4515 not overlapping PC_REGNUM.
f3e0f90b 4516
c88e30c0
RH
45172003-06-01 Richard Henderson <rth@redhat.com>
4518
98a8e1e5
RH
4519 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4520 alpha_push_arguments. Don't dump argument register data to
4521 the target stack. Fix float and 128-bit long double semantics.
4522 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4523 (alpha_fix_call_dummy): Remove.
4524 (alpha_call_dummy_words): Remove.
4525 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 4526
f1a559ae
RH
45272003-06-01 Richard Henderson <rth@redhat.com>
4528
4529 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4530
5e045346
AC
45312003-06-01 Andrew Cagney <cagney@redhat.com>
4532
95404a3e
AC
4533 * mips-tdep.c (is_mips16_addr): New function.
4534 (make_mips16_addr, unmake_mips16_addr): New functions.
4535 (pc_is_mips16, mips_fetch_instruction): Use.
4536 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4537 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4538 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4539 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4540 TARGET_MIPS.
4541 * config/mips/tm-mips.h: Update copyright.
4542 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4543 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4544 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4545 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4546 (TM_PRINT_INSN_MACH): Delete.
4547 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4548
5e045346
AC
4549 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4550 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4551 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4552 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4553 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4554 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4555 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4556 mips*-*-riscos* and mips*-*-sysv* onto mips.
4557 * config/mips/mips64.mt: New file.
4558 * config/mips/mips.mt: New file.
4559 * config/mips/littlemips.mt: Delete file.
4560 * config/mips/decstation.mt: Delete file.
4561 * config/mips/vr4300el.mt: Delete file.
4562 * config/mips/vr5000el.mt: Delete file.
4563 * config/mips/vr5000.mt: Delete file.
4564 * config/mips/vr4100.mt: Delete file.
4565 * config/mips/vr4xxxel.mt: Delete file.
4566 * config/mips/vr4300.mt: Delete file.
4567 * config/mips/vr4xxx.mt: Delete file.
4568 * config/mips/bigmips.mt: Delete file.
4569 * config/mips/bigmips64.mt: Delete file.
4570 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4571 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4572 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4573 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4574 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4575 "tm-bigmips.h".
4576 * config/mips/tm-irix3.h: Ditto.
4577 * config/mips/tm-mipsv4.h: Ditto.
4578 * config/mips/tm-embed.h: Ditto.
4579 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4580 "tm-bigmips64.h".
4581 * config/mips/tm-vr5000el.h: Delete file.
4582 * config/mips/tm-tx39l.h: Delete file.
4583 * config/mips/tm-vr4300el.h: Delete file.
4584 * config/mips/tm-vr4xxxel.h: Delete file.
4585 * config/mips/tm-vr4300.h: Delete file.
4586 * config/mips/tm-vr4100.h: Delete file.
4587 * config/mips/tm-vr4xxx.h: Delete file.
4588 * config/mips/tm-vr5000.h: Delete file.
4589 * config/mips/tm-embedl64.h: Delete file.
4590 * config/mips/tm-embedl.h: Delete file.
4591 * config/mips/tm-embed64.h: Delete file.
4592 * config/mips/tm-bigmips64.h: Delete file.
4593 * config/mips/tm-bigmips.h: Delete file.
4594
2473a4a9
MK
45952003-06-01 Mark Kettenis <kettenis@gnu.org>
4596
97a5b208
MK
4597 Fix gdb/1216.
4598 * shnbsd-nat.c: Include "sh-tdep.h".
4599
2473a4a9
MK
4600 From Richard Henderson <rth@redhat.com>:
4601 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4602
e0f7ec59
AC
46032003-05-31 Andrew Cagney <cagney@redhat.com>
4604
4605 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4606 forward declaration.
4607 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4608 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4609 (mips_find_saved_regs): Use set_reg_offset.
4610 (mips_frame_init_saved_regs): Delete function.
4611 (mips_pop_frame): Call mips_find_saved_regs instead of
4612 DEPRECATED_FRAME_INIT_SAVED_REGS.
4613
68dcc709
AC
46142003-05-31 Andrew Cagney <cagney@redhat.com>
4615
4616 * mips-tdep.c (mips_gdbarch_init): Do not set
4617 deprecated_max_register_raw_size, register_virtual_size, and
4618 deprecated_max_register_virtual_size.
4619
cfc14b3a
MK
46202003-05-31 Mark Kettenis <kettenis@gnu.org>
4621
6405b0a6
MK
4622 * i386-tdep.c: Include "dwarf2-frame.h".
4623 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4624 * Makefile.in (i386-tdep.o): Update dependencies.
4625
cfc14b3a
MK
4626 * dwarf2-frame.c, dwarf2-frame.h: New files.
4627 * Makefile.in (SFILES): Add dwarf2-frame.c.
4628 (dwarf2_frame_h): Define.
4629 (COMMON_OBS): Add dwarf2-frame.o.
4630 (dwarf2-frame.o): Add dependencies.
4631
6a2751d2
AJ
46322003-05-31 Andreas Jaeger <aj@suse.de>
4633
4634 * x86-64-linux-nat.c: Fix comment.
4635
1c3545ae
MK
46362003-05-31 Mark Kettenis <kettenis@gnu.org>
4637
10f93086
MK
4638 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4639 function signature.
4640
1c3545ae
MK
4641 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4642 have a sigcontext_addr handler.
4643 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4644 sigcontext_addr handler.
4645
e11c53d2
AC
46462003-05-31 Andrew Cagney <cagney@redhat.com>
4647
4648 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4649 (print_fp_register_row): Replace do_fp_register_row.
4650 (mips_print_fp_register): Add "file" and "frame" parameters.
4651 (mips_print_register): Add "file" and "frame" parameters.
4652 (mips_print_registers_info): Replace mips_do_registers_info.
4653 (mips_gdbarch_init): Set print_registers_info instead of
4654 deprecated_do_registers_info.
4655 (mips_read_fp_register_single): Add "frame" parameter.
4656 (mips_read_fp_register_double): Add "frame" parameter.
4657
a3386186
MK
46582003-05-31 Mark Kettenis <kettenis@gnu.org>
4659
70913449
MK
4660 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4661 Fixes a bug where GDB would print the wrong register names for
4662 targets without SSE.
4663
2b5e0749
MK
4664 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4665 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4666 registers.
4667
4668 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4669 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4670 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4671 TDEP->sc_sp_offset.
4672
a3386186
MK
4673 From Michal Ludvig <mludvig@suse.cz>:
4674 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4675 and `sc_num_regs'.
4676 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4677 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4678 I386_ST0_REGNUM): Move here from...
4679 * i386-tdep.c: ... here.
4680 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4681 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4682 registers if possible.
4683 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4684 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4685 Remove variables.
4686 (i386bsd_sc_reg_offset): New variable.
4687 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4688 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4689 TDEP->sc_sp_offset.
4690 (i386fbsd_sc_reg_offset): New variable.
4691 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4692 TDEP->sc_num_regs.
4693 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4694 variables.
4695 (i386fbsd4_sc_reg_offset): New variable.
4696 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4697 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4698 TDEP->sc_sp_offset.
4699 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4700 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4701 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4702 Remove variables.
4703 (i386nbsd_sc_reg_offset): New variable.
4704 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4705 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4706 TDEP->sc_sp_offset.
4707 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4708 Remove variables.
4709 (i386obsd_sc_reg_offset): New variable.
4710 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4711 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4712 TDEP->sc_sp_offset.
4713 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4714 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4715 for frame pointer offset in `struct sigcontext'.
4716
25ab4790
AC
47172003-05-31 Andrew Cagney <cagney@redhat.com>
4718
4719 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4720 architecture methods call_dummy_words, sizeof_call_dummy_words,
4721 push_return_address, store_struct_return, and fix_call_dummy. Set
4722 push_dummy_call instead of deprecated_push_arguments.
4723 (mips_store_struct_return): Delete function.
4724 (mips_fix_call_dummy): Delete function.
4725 (mips_push_return_address): Delete function.
4726 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4727 RA_REGNUM and T9_REGNUM.
4728 (mips_n32n64_push_dummy_call): Ditto for
4729 mips_n32n64_push_arguments.
4730 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4731 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4732
6a65450a
AC
47332003-05-31 Andrew Cagney <cagney@redhat.com>
4734
4735 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4736 "dummy_addr" to "bp_addr".
4737 * infcall.c (call_function_by_hand): Pass "funaddr" to
4738 gdbarch_push_dummy_call.
4739 * gdbarch.h, gdbarch.c: Re-generate.
4740 * i386-tdep.c (i386_push_dummy_call): Update.
4741 * arm-tdep.c (arm_push_dummy_call): Update.
4742 * d10v-tdep.c (d10v_push_dummy_call): Update.
4743
c4f35dd8
MK
47442003-05-31 Mark Kettenis <kettenis@gnu.org>
4745
4746 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4747 variable declarations.
4748 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4749 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4750 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4751 x86_64_init_frame_pc, x86_64_init_frame_pc,
4752 x86_64_function_has_prologue): Remove prototypes.
4753 (X86_64_NUM_GREGS): New define.
4754 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4755 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4756 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4757 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4758 XMM1_REGNUM): Remove defines.
4759 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4760 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4761 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4762 X86_64_XMM1_REGNUM): New defines.
4763 (struct x86_64_register_info): Renamed from `struct
4764 register_info'. Remove `size' member.
4765 (x86_64_register_info_table): Remove variable.
4766 (x86_64_register_info): New variable.
4767 (X86_64_NUM_REGS): New define.
4768 (X86_64_NUM_GREGS): Remove define.
4769 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4770 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4771 Remove variables.
4772 (x86_54_dwarf2_reg_to_regnum): Remove function.
4773 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4774 (x86_64_dwarf_reg_to_regnum): New function.
4775 (x86_64_register_name): Rewrite.
4776 (x86_64_register_raw_size): Remove function.
4777 (x86_64_register_byte_table): Remove variable.
4778 (x86_64_register_byte): Remove function.
4779 (x86_64_register_virtual_type): Remove function.
4780 (x86_64_register_type): New function.
4781 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4782 x86_64_register_convert_to_raw): Remove functions.
4783 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4784 (x86_64_use_struct_convention): Make static. Adjust for renamed
4785 defines.
4786 (x86_64_frame_init_saved_regs): Remove function.
4787 (x86_64_push_arguments): Make static. Change to accept a regcache
4788 as argument.
4789 (x86_64_store_return_value, x86_64_extract_return_value): Make
4790 static. Rewrite based on i386 counterparts.
4791 (x86_64_push_dummy_call): New function.
4792 (X86_64_NUM_SAVED_REGS): New define.
4793 (x86_64_register_number): Remove function.
4794 (x86_64_store_struct_return): Remove function.
4795 (x86_64_frameless_function_invocation,
4796 x86_64_function_has_prologue): Remove functions.
4797 (PROLOG_BUFSIZE): Remove define.
4798 (struct x86_64_frame_cache): New structure.
4799 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4800 x86_64_frame_cache, x86_64_frame_this_id,
4801 x86_64_frame_prev_register, x86_64_frame_p,
4802 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4803 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4804 functions.
4805 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4806 variables.
4807 (x86_64_skip_prologue): Rewrite in terms of
4808 x86_64_analyze_prologue.
4809 (x86_64_frame_base_address): New function.
4810 (x86_64_frame_base): New variable.
4811 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4812 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4813 set deprecated_fp_regnum, deprecated_register_size,
4814 deprecated_register_bytes, register_raw_size, register_byte,
4815 register_virtual_type, register_convertiable,
4816 register_convert_to_virtual, convert_to_raw,
4817 deprecated_get_saved_register, deprecated_target_read_fp,
4818 deprecated_push_arguments, deprecated_push_return_address,
4819 deprecated_pop_frame, deprecated_store_struct_return,
4820 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4821 frameless_function_invocation, deprecated_frame_saved_pc,
4822 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4823 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4824 deprecated_init_frame_pc and virtual_frame_pointer. Call
4825 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4826 and x86_64_frame_p. Call frame_base_set_default to register
4827 x86_64_frame_base.
4828 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4829 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4830 (_initialize_x86_64_tdep): Remove function.
4831 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4832 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4833 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4834 define.
4835 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4836 (x86_64_linux_sigcontext_addr): Rewrite.
4837 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4838 x86_64_linux_frame_saved_pc): Remove functions.
4839 (x86_64_linux_pc_in_sigtramp): Renamed from
4840 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4841 trampoline.
4842 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4843 Remove_functions.
4844 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4845 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4846 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4847 (x86_64_regmap): Rename to regmap.
4848 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4849 x86_64_num_gregs.
4850 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4851 x86_64_regmap.
4852 (x86_64_fxsave_offset): Remove function.
4853 (supply_fpregset): Simply call x86_64_supply_fxsave.
4854 (fill_fpregset): Simply call x86_64_fill_fxsave.
4855 (fetch_inferior_registers, store_inferior_registers): Avoid
4856 asignment in if-statement.
4857 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4858 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4859 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4860 (fetch_core_registers): Remove function.
4861 (linux_elf_core_fns): Remove.
4862 (offsetoff): Don't define.
4863 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4864 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4865 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4866 add core-regset.o.
4867 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4868 protection against multiple includes instead of NM_X86_64_h. Add
4869 various comments. Include "config/nm-linux.h". Don't include
4870 <signal.h>.
4871 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4872 GET_THREAD_SIGNALS): Remove defines.
4873 (x86_64_register_u_addr, kernel_u_size,
4874 lin_thread_get_thread_signals): Remove prototypes.
4875 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4876 [HAVE_LINK_H]: Don't include "solib.h".
4877 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4878 * config/i386/tm-x86-64linux.h: Fix comments.
4879 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4880 x86-64-tdep.o): Update dependencies.
4881
c25083af
AC
48822003-05-30 Andrew Cagney <cagney@redhat.com>
4883
c8f55a7b
AC
4884 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4885 Change parameter type to a "struct regcache *".
4886
c25083af
AC
4887 * gdbarch.sh: Regardless of the multi-arch level, always define
4888 the macro when not already defined.
4889 * gdbarch.h, gdbarch.c: Re-generate.
4890
fbe586ae
RH
48912003-05-30 Richard Henderson <rth@redhat.com>
4892
4893 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4894 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4895 (alpha_mdebug_frame_this_id): Likewise.
4896 (alpha_mdebug_frame_prev_register): Likewise.
4897 (alpha_mdebug_frame_base_address): Likewise.
4898 (alpha_mdebug_frame_locals_address): Likewise.
4899 (alpha_mdebug_frame_args_address): Likewise.
4900 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4901 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4902 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4903 loop increment.
4904 (alpha_heuristic_frame_this_id): Make static.
4905 (alpha_heuristic_frame_prev_register): Likewise.
4906 (alpha_heuristic_frame_base_address): Likewise.
4907 * alpha-tdep.h: Update.
4908
acd5c798
MK
49092003-05-30 Mark Kettenis <kettenis@gnu.org>
4910
4911 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4912 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4913 defenitions.
4914 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4915 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4916 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4917 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4918 I386_ST0_REGNUM): New defines.
4919 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4920 codestream_get): Remove define.
4921 (codestream_next_addr, condestream_addr, condestream_buf,
4922 codestream_off, codestream_cnt): Remove variables.
4923 (codestream_fill, codestream_seek, codestream_read): Remove
4924 functions.
4925 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4926 functionality.
4927 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4928 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4929 i386_frame_saved_pc, i386_saved_pc_after_call,
4930 i386_frame_num_args, i386_frame_init_saved_regs,
4931 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4932 i386_push_arguments): Remove functions.
4933 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4934 functionality. Use i386_analyze_prologue instead of
4935 i386_get_frame_setup.
4936 (I386_NUM_SAVED_REGS): New define.
4937 (struct i386_frame_cache): New structure.
4938 (i386_alloc_frame_cache, i386_analyze_struct_return,
4939 i386_skip_probe, i386_analyze_frame_setup,
4940 i386_analyze_register_saves, i386_analyze_prologue,
4941 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4942 i386_frame_prev_register, i386_sigtramp_frame_cache,
4943 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4944 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4945 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4946 New functions.
4947 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4948 New variables.
4949 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4950 I386_EAX_REGNUM and I386_EDX_REGNUM.
4951 (i386_extract_return_value, i386_store_return_value): Use
4952 I386_ST0_REGNUM where appropriate.
4953 (i386_extract_struct_value_address): Rewrite to use extract_address.
4954 (i386_svr4_pc_in_sigtramp): Add comment.
4955 (i386_svr4_sigcontext_addr): Rewrite.
4956 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4957 TDEP->sc_sp_offset.
4958 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4959 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4960 of new defines. Set push_dummy_call, don't set
4961 deprecated_push_arguments, deprecated_push_return_address,
4962 deprecated_pop_frame. Don't set parm_boundary. Don't set
4963 deprecated_frame_chain, deprecated_frame_saved_pc,
4964 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4965 save_dummy_frame_tos, unwind_pc. Call
4966 frame_unwind_append_predicate and frame_base_set_default. Don't
4967 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4968 Don't set frameless_function_invocation. Don't set
4969 deprecated_register_bytes, deprecated_register_size,
4970 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4971 * i386-linux-tdep.c: Fix formatting in some comments.
4972 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4973 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4974 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4975 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4976 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4977 redundant parentheses.
4978 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4979 (i386_linux_sigcontext_addr): Use it. Rewrite.
4980 (find_minsym_and_objfile): Change name of second argument.
4981 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4982 changed. Use frame_pc_unwind instead of
4983 DEPRECATED_SAVED_PC_AFTER_CALL.
4984 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4985 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4986 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4987 unwinder.
4988 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4989 "dummy-frame.h".
4990 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4991 (_initialize_i386_cygwin_tdep): New prototype.
4992 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4993 deprecated_frame_chain_valid.
4994 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4995 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4996 Rely on the SVR4 defaults.
4997 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4998 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4999
c89b70f1
AC
50002003-05-30 Andrew Cagney <cagney@redhat.com>
5001
5002 * infcall.c (call_function_by_hand): Always call
5003 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5004
85b32d22
RH
50052003-05-30 Richard Henderson <rth@redhat.com>
5006
c89b70f1
AC
5007 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5008 increment.
85b32d22 5009
bfe51b1e
JB
50102003-05-29 Jim Blandy <jimb@redhat.com>
5011
5012 Use gdbarch methods for solib stuff on PowerPC Linux.
5013 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5014 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5015 show through.
5016 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5017 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5018 giving the same effect as the #definitions above.
5019
1abf022c
AF
50202003-05-29 Adam Fedor <fedor@gnu.org>
5021
5022 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5023 (find_implementation_from_class): Replace it with the standard
5024 case i.e. do nothing.
5025
d2427a71
RH
50262003-05-29 Richard Henderson <rth@redhat.com>
5027
5028 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5029 (alpha_linux_sigtramp_offset): Use it. Make static.
5030 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5031 update for new frame model.
5032 * alpha-mdebug-tdep.c: New file.
5033 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5034 (alpha_osf1_init_abi): Install it.
5035 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5036 (linked_proc_desc_table): Remove.
5037 (alpha_frame_past_sigtramp_frame): Remove.
5038 (alpha_dynamic_sigtramp_offset): Remove.
5039 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5040 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5041 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5042 (push_sigtramp_desc): Remove.
5043 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5044 (alpha_cannot_store_register): Likewise.
5045 (alpha_sigcontext_addr): Remove.
5046 (alpha_find_saved_regs): Remove.
5047 (alpha_frame_init_saved_regs): Remove.
5048 (alpha_init_frame_pc_first): Remove.
5049 (read_next_frame_reg): Remove.
5050 (alpha_frame_saved_pc): Remove.
5051 (alpha_saved_pc_after_call): Remove.
5052 (temp_proc_desc, temp_saved_regs): Remove.
5053 (alpha_about_to_return): Remove.
5054 (cached_proc_desc): Remove.
5055 (alpha_frame_chain): Remove.
5056 (alpha_print_extra_frame_info): Remove.
5057 (alpha_init_extra_frame_info): Remove.
5058 (alpha_frame_locals_address): Remove.
5059 (alpha_frame_args_address): Remove.
5060 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5061 (alpha_push_dummy_frame): Remove.
5062 (alpha_pop_frame): Remove.
5063 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5064 (alpha_read_insn): New.
5065 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5066 for different insn encodings.
5067 (alpha_in_lenient_prologue): Remove.
5068 (struct alpha_sigtramp_unwind_cache): New.
5069 (alpha_sigtramp_frame_unwind_cache): New.
5070 (alpha_sigtramp_register_address): New.
5071 (alpha_sigtramp_frame_this_id): New.
5072 (alpha_sigtramp_frame_prev_register): New.
5073 (alpha_sigtramp_frame_unwind): New.
5074 (alpha_sigtramp_frame_p): New.
5075 (struct alpha_heuristic_unwind_cache): New.
5076 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5077 don't count nop insns that occur between functions.
5078 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5079 heuristic_proc_desc, but without the mdebug wrapping.
5080 (alpha_heuristic_frame_this_id): New.
5081 (alpha_heuristic_frame_prev_register): New.
5082 (alpha_heuristic_frame_unwind): New.
5083 (alpha_heuristic_frame_p): New.
5084 (alpha_heuristic_frame_base_address): New.
5085 (alpha_heuristic_frame_base): New.
5086 (alpha_unwind_dummy_id): New.
5087 (alpha_unwind_pc): New.
5088 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5089 frame related deprecated initializations; install replacements.
5090 (alpha_dump_tdep): Remove.
5091 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5092 (alpha_read_insn, alpha_after_prologue,
5093 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5094 alpha_heuristic_frame_prev_register,
5095 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5096 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5097 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5098 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5099
93ec1121
AC
51002003-05-29 Andrew Cagney <cagney@redhat.com>
5101
5102 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5103 dependant on the availability of ASSERT_FUNCTION.
5104 (ASSERT_FUNCTION): Do not define when there is no function name.
5105
98f08d3d
KB
51062003-05-29 Kevin Buettner <kevinb@redhat.com>
5107
5108 From Jimi X <jimix@watson.ibm.com>:
5109 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5110
0897f59b
JB
51112003-05-28 Jim Blandy <jimb@redhat.com>
5112
5113 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5114 argument to ptrace to int; the system headers should give it the
5115 right type, and pointers don't fit in ints on powerpc64-*-*.
5116
14898363
L
51172003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5118
5119 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5120 DW_TAG_catch_block.
5121
a7a48797
EZ
51222003-05-26 Elena Zannoni <ezannoni@redhat.com>
5123
5124 * stabsread.c (dbx_lookup_type): Make static.
5125 (read_type): Ditto.
5126 (add_undefined_type): Ditto.
5127 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5128 not export.
5129
f5479e9c
EZ
51302003-05-26 Elena Zannoni <ezannoni@redhat.com>
5131
5132 * hpread.c (hpread_has_name): Make static.
5133 (hpread_psymtab_to_symtab): Ditto.
5134 (file_exists): Ditto.
5135 (hpread_call_pxdb): Ditto.
5136 (hpread_pxdb_needed): Ditto.
5137 (hpread_quick_traverse): Ditto.
5138 (hpread_get_header): Ditto.
5139 (hpread_get_lntt): Ditto.
5140 (hpread_get_slt): Ditto.
5141 (class_of): Ditto.
5142
eb2e12d7
AS
51432003-05-25 Andreas Schwab <schwab@suse.de>
5144
78bf922a
AS
5145 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5146 stack_align and deprecated_extra_stack_alignment_needed.
5147 (m68k_stack_align): Delete.
5148
eb2e12d7
AS
5149 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5150 (m68k_register_virtual_size): Likewise.
5151 (altos_skip_prologue): Remove obsolete function.
5152 (isi_frame_num_args): Likewise.
5153 (news_frame_num_args): Likewise.
5154 (m68k_fix_call_dummy): Make static.
5155 (m68k_push_dummy_frame): Likewise.
5156 (m68k_pop_frame): Likewise.
5157 (m68k_skip_prologue): Likewise.
5158 (m68k_frame_init_saved_regs): Likewise.
5159 (m68k_saved_pc_after_call): Likewise.
5160 (m68k_get_longjmp_target): Make multi-arch.
5161 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5162 structure. Register m68k_get_longjmp_target if enabled.
5163 * m68k-tdep.h (struct gdbarch_tdep): Define.
5164 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5165
5166 * Makefile.in (config.status): Also depend on configure.tgt
5167 and configure.host.
5168 (m68klinux-tdep.o): Update dependencies.
5169 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5170 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5171 (M68K_LINUX_JB_PC): Define.
5172 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5173 and take additional parameter.
5174 (m68k_linux_sigtramp_saved_pc): Update.
5175 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5176 m68k_linux_pc_in_sigtramp, in_plt_section,
5177 find_solib_trampoline_target.
5178 * config/m68k/tm-linux.h: Don't include any tm headers.
5179 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5180 (JB_ELEMENT_SIZE): Likewise.
5181 (JB_PC): Likewise.
5182 (GET_LONGJMP_TARGET): Likewise.
5183 (IN_SIGTRAMP): Likewise.
5184 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5185
eb2c22dc
MK
51862003-05-25 Mark Kettenis <kettenis@gnu.org>
5187
5188 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5189 (sparc32_push_arguments): Re-implement by calling
5190 sparc32_do_push_arguments.
5191
44b7b84e
MK
51922003-05-25 Mark Kettenis <kettenis@gnu.org>
5193
5194 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5195 SPARC_O1_REGNUM): New defines.
5196 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5197 (sparc32_store_return_value): New function.
5198 (sparc_extract_struct_value_address): Rewrite to operate on a
5199 regcache.
5200 (sparc_gdbarch_init): Don't set
5201 deprecated_extract_struct_value_address. Set
5202 extract_struct_value_address instead. Don't set
5203 deprecated_extract_return_value and deprecated_store_return_value
5204 for 32-bit targets. Set extract_return_value and
5205 store_return_value instead.
5206 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5207 DEPRECTAED_EXTRACT_RETURN_VALUE,
5208 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5209 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5210 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5211 (sparc_store_return_value): Remove prototype.
5212 (sparc32_store_return_value): New prototype.
5213 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5214 Adjust prototypes.
5215
f6ad61e3
MK
52162003-05-24 Mark Kettenis <kettenis@gnu.org>
5217
5218 * sparcnbsd-tdep.c: Include "gdb_string.h".
5219
b276f1bb
AC
52202003-05-23 Andrew Cagney <cagney@redhat.com>
5221
5222 * p-valprint.c (pascal_val_print): Replace extract_address with
5223 the inline equivalent extract_unsigned_integer.
5224 * jv-valprint.c (java_value_print): Ditto.
5225 * ada-valprint.c (ada_val_print_1): Ditto.
5226 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5227
e76c5fcc
TR
52282003-05-23 Theodore A. Roth <troth@openavr.org>
5229
5230 * blockframe.c (frameless_look_for_prologue): Remove unused
5231 after_prologue variable.
5232
2cdd89cb
MK
52332003-05-23 Mark Kettenis <kettenis@gnu.org>
5234
5235 * blockframe.c (get_pc_function_start): Rewrite to avoid
5236 asignments in if-statements.
5237
182d43bc
EZ
52382003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5239
5240 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 5241 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
5242 files, don't relocate absolute symbols (and do use mst_abs).
5243
e8f3fcdd
AC
52442003-05-23 Andrew Cagney <cagney@redhat.com>
5245
5246 * objc-lang.c: Include "gdb_assert.h".
5247 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5248 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5249 (gdb_check, gdb_check_fatal): Delete functions.
5250 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5251 gdb_assert.
5252 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5253 * Makefile.in (objc-lang.o): Update dependencies.
5254
3c23e6fb
ILT
52552003-05-22 Ian Lance Taylor <ian@airs.com>
5256
5257 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5258 with fprintf_filtered, not fprintf_unfiltered.
5259
af1342ab
AC
52602003-05-22 Andrew Cagney <cagney@redhat.com>
5261
5262 * stack.c (frame_info): Inline extract_address, replacing it with
5263 extract_unsigned_integer.
5264 * findvar.c (unsigned_pointer_to_address): Ditto.
5265 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5266 * dwarf2expr.c (dwarf2_read_address): Ditto.
5267 * frame.c (frame_pc_unwind): Update comment.
5268 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5269
47e242ec
JJ
52702003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5271
5272 * infptrace.c (detach): Call print_sys_errmsg rather than
5273 perror_with_name to issue warning message when errno is non-zero
5274 after calling ptrace detach.
5275
e2ac8128
JB
52762003-05-21 J. Brobecker <brobecker@gnat.com>
5277
5278 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5279 macro definitions from here...
5280 * hppa-tdep.c: ...to there.
5281
92b3541e
KB
52822003-05-20 Kevin Buettner <kevinb@redhat.com>
5283
5284 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5285 register_ptrace_addr(). Fix all callers.
5286
55809acb
AS
52872003-05-21 Andreas Schwab <schwab@suse.de>
5288
5289 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5290 dependencies.
5291 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5292 end.
5293 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5294 (_initialize_m68k_linux_tdep): New function.
5295 (m68k_linux_frame_saved_pc): Make static.
5296 (m68k_linux_extract_return_value): Likewise.
5297 (m68k_linux_store_return_value): Likewise.
5298 (m68k_linux_extract_struct_value_address): Likewise.
5299 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5300 Remove.
5301 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5302 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5303 (DEPRECATED_FRAME_SAVED_PC): Remove.
5304
0fbc10f7
KW
53052003-05-20 Kris Warkentin <kewarken@qnx.com>
5306
5307 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5308 regset numbering rather than our own.
5309
58da2eb2
DC
53102003-05-19 David Carlton <carlton@bactrian.org>
5311
5312 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5313
1fcb5155
DC
53142003-05-19 David Carlton <carlton@bactrian.org>
5315
5316 Partial fix for PR c++/827.
5317 * cp-support.h: Include symtab.h.
5318 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5319 * cp-namespace.c: Update contributors.
5320 (cp_lookup_symbol_nonlocal): New.
5321 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5322 (lookup_symbol_file): Ditto.
5323 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5324 * block.h: Declare block_scope, block_using, block_global_block.
5325 * block.c (block_scope): New.
5326 (block_using, block_global_block): Ditto.
5327 * Makefile.in (cp_support_h): Depend on symtab_h.
5328 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5329
5f9a71c3
DC
53302003-05-19 David Carlton <carlton@bactrian.org>
5331
5332 * language.h (struct language_defn): Add 'la_value_of_this'
5333 and 'la_lookup_symbol_nonlocal' members.
5334 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5335 lookup_symbol_static, lookup_symbol_global,
5336 lookup_symbol_aux_block.
5337 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5338 if we should search fields of this and how to do static/global
5339 lookup.
5340 (lookup_symbol_aux_block): Make extern.
5341 (basic_lookup_symbol_nonlocal): New.
5342 (lookup_symbol_static, lookup_symbol_global): Ditto.
5343 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5344 'la_lookup_symbol_nonlocal' members.
5345 * c-lang.c (c_language_defn, cplus_language_defn)
5346 (asm_language_defn, minimal_language_defn): Ditto.
5347 * jv-lang.c (java_language_defn): Ditto.
5348 * language.c (unknown_language_defn, auto_language_defn)
5349 (local_language_defn): Ditto.
5350 * m2-lang.c (m2_language_defn): Ditto.
5351 * objc-lang.c (objc_language_defn): Ditto.
5352 * scm-lang.c (scm_language_defn): Ditto.
5353 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5354 * p-lang.c (pascal_language_defn): Ditto for both.
5355 * Makefile.in (f-lang.o): Depend on value_h.
5356 (p-lang.o): Ditto.
5357
89a9d1b1
DC
53582003-05-19 David Carlton <carlton@bactrian.org>
5359
5360 * block.h: Declare block_static_block.
5361 * block.c (block_static_block): New.
5362 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5363 lookup_symbol_aux_local, calling block_static_block instead.
5364 (lookup_symbol_aux_local): Delete 'static_block' argument.
5365
eed3f8ab
DC
53662003-05-19 David Carlton <carlton@bactrian.org>
5367
5368 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5369
a09d8bda
ML
53702003-05-19 Michal Ludvig <mludvig@suse.cz>
5371
5372 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5373 register numbers mapping.
5374
69636828
AF
53752003-05-18 Adam Fedor <fedor@gnu.org>
5376
5377 * symtab.c (completion_list_objc_symbol): New function.
5378 (make_symbol_completion_list): Use it to add ObjC symbols
5379 when looking though the list.
5380 (language_search_unquoted_string): New function.
5381 (make_file_symbol_completion_list): Use it.
5382
55baeb84
AS
53832003-05-18 Andreas Schwab <schwab@suse.de>
5384
d0b45d99
AS
5385 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5386 dependencies.
5387 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5388 as m68k_linux_extract_return_value.
5389 (DEPRECATED_STORE_RETURN_VALUE): Define as
5390 m68k_linux_store_return_value.
5391 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5392 m68k_linux_extract_struct_value_address.
5393 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5394 get_next_frame, get_frame_base, get_frame_pc.
5395 (m68k_linux_frame_saved_pc): Use get_frame_base.
5396 (m68k_linux_extract_return_value): New function.
5397 (m68k_linux_store_return_value): New function.
5398 (m68k_linux_extract_struct_value_address): New function.
5399 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5400
55baeb84
AS
5401 * c-exp.y (typebase): Remove duplicate occurence of
5402 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 5403 of lookup_signed_typename.
55baeb84 5404
b6b08ebf
MK
54052003-05-18 Mark Kettenis <kettenis@gnu.org>
5406
5407 * dwarf2loc.c (find_location_expression): Change type of second
5408 argument to `size_t *'.
5409 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5410 for size variable.
5411
5ad1c190
DC
54122003-05-18 David Carlton <carlton@bactrian.org>
5413
5414 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5415 'linkage_name'. Add comment.
5416 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5417 'linkage_name'.
5418 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5419 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5420 (lookup_block_symbol): Ditto.
5421
b8b527c5
AC
54222003-05-16 Andrew Cagney <cagney@redhat.com>
5423
5424 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5425 * gdbarch.h, gdbarch.c: Re-generate.
5426 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5427 * TODO (REGISTER_BYTES): Delete reference.
5428 * alpha-tdep.c (alpha_gdbarch_init): Update.
5429 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5430 * x86-64-tdep.c (x86_64_init_abi): Update.
5431 * vax-tdep.c (vax_gdbarch_init): Update.
5432 * v850-tdep.c (v850_gdbarch_init): Update.
5433 * sparc-tdep.c (sparc_gdbarch_init): Update.
5434 * sh-tdep.c (sh_gdbarch_init): Update.
5435 * s390-tdep.c (s390_gdbarch_init): Update.
5436 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5437 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5438 (ns32k_gdbarch_init_32382): Update.
5439 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5440 * mcore-tdep.c (mcore_gdbarch_init): Update.
5441 * m68k-tdep.c (m68k_gdbarch_init): Update.
5442 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5443 * ia64-tdep.c (ia64_gdbarch_init): Update.
5444 * i386-tdep.c (i386_gdbarch_init): Update.
5445 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5446 * hppa-tdep.c (hppa_gdbarch_init): Update.
5447 * h8300-tdep.c (h8300_gdbarch_init): Update.
5448 * frv-tdep.c (frv_gdbarch_init): Update.
5449 * cris-tdep.c (cris_gdbarch_init): Update.
5450 * avr-tdep.c (avr_gdbarch_init): Update.
5451 * arm-tdep.c (arm_gdbarch_init): Update.
5452 * sparc-tdep.c (sparc_pop_frame): Update.
5453 * rs6000-tdep.c (rs6000_pop_frame): Update.
5454 * remote.c (init_remote_state): Update.
5455 (remote_prepare_to_store): Update.
5456 * remote-vx.c (vx_prepare_to_store): Update.
5457 * remote-sds.c (sds_fetch_registers): Update.
5458 (sds_prepare_to_store): Update.
5459 * remote-array.c: Update.
5460 * regcache.c (init_legacy_regcache_descr): Update.
5461 (init_regcache_descr): Update.
5462 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5463 (mips_o64_extract_return_value): Update.
5464 * irix5-nat.c (fetch_core_registers): Update.
5465 * irix4-nat.c (fetch_core_registers): Update.
5466 * i386-tdep.h: Update.
5467 * hppa-tdep.c (pa_do_registers_info): Update.
5468 (pa_do_strcat_registers_info): Update.
5469 * cris-tdep.c (cris_register_bytes_ok): Update.
5470 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5471 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5472 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5473 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5474 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5475 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5476 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5477 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5478 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5479 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5480 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5481 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5482 (REGISTER_BYTES_OK): Update.
5483 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5484 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5485
ee2842e2
ILT
54862003-05-16 Ian Lance Taylor <ian@airs.com>
5487
5488 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5489 (vax_print_insn, print_insn_arg): Remove static functions.
5490 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5491 print_insn_vax from opcodes library.
5492 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5493
973177d3
AC
54942003-05-15 Andrew Cagney <cagney@redhat.com>
5495
aaab4dba
AC
5496 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5497 * target.h (memory_breakpoint_from_pc): Delete declaration.
5498 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5499 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5500 * monitor.c (monitor_insert_breakpoint): Use
5501 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5502 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5503 * gdbarch.h, gdbarch.c: Re-generate.
5504 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5505 (sparc_gdbarch_init): Set breakpoint_from_pc to
5506 sparc_breakpoint_from_pc.
5507 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5508 (BREAKPOINT_FROM_PC): Define.
5509 (sparc_breakpoint_from_pc): Declare.
5510 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5511 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5512 (BREAKPOINT_FROM_PC): Define.
5513 (BREAKPOINT): Delete macro.
5514 * target.h: Update comment.
5515 * s390-tdep.c (s390_gdbarch_init): Update comments.
5516 * remote.c: Update comments.
5517 * remote-mips.c: Update comments.
5518 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5519 * mem-break.c: Update comment.
5520 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5521 (ia64_memory_insert_breakpoint): Update.
5522 * config/sparc/tm-sparc.h: Update comment.
5523 * config/pa/tm-hppa64.h: Update comment.
5524 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5525 (rs6000_breakpoint_from_pc): Update.
5526 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5527 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5528 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5529 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5530 (mips_breakpoint_from_pc): Update.
5531 (mips_dump_tdep): Update.
5532
e06963ff
AC
5533 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5534 * minsyms.c (lookup_minimal_symbol): Inline
5535 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5536
973177d3
AC
5537 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5538 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5539 * p-lang.c (pascal_printstr): Ditto.
5540 * objc-lang.c (objc_printstr): Ditto.
5541 * m2-lang.c (m2_printstr): Ditto.
5542 * jv-valprint.c (java_print_value_fields): Ditto.
5543 * f-lang.c (f_printstr): Ditto.
5544 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5545 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5546 for repeat_count_threshold.
5547 * Makefile.in (cp-valprint.o): Update dependencies.
5548
5ea2bd7f 55492003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5550
5ea2bd7f
JJ
5551 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5552 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
5553 they start with mov r2,r12. Support skipping over indirect stores
5554 of the input registers. Upon hitting a non-nop branch instruction
5555 or predicated instruction, bail out by setting lim_pc to the current
5556 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
5557 beyond our calculated value and we have trust_limit set,
5558 use the lim_pc value.
5559
cc8c88f3
AC
55602003-05-15 Andrew Cagney <cagney@redhat.com>
5561
5562 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5563 generic_find_dummy_frame.
5564 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5565 (deprecated_generic_find_dummy_frame): Update.
5566 (deprecated_read_register_dummy): Update.
5567 * frame.c (deprecated_generic_get_saved_register): Update.
5568
909cd28e
TR
55692003-05-15 Theodore A. Roth <troth@openavr.org>
5570
5571 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5572 (avr_gdbarch_init): Set breakpoint_from_pc method.
5573
b923b08d
AC
55742003-05-15 Andrew Cagney <cagney@redhat.com>
5575
5576 * regcache.c (build_regcache): Set deprecated_register_valid
5577 directly.
5578 (deprecated_grub_regcache_for_register_valid): Delete function.
5579 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5580 declaration.
5581
ae2f03ac 55822003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
5583
5584 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
5585 * symtab.c (lookup_symbol_aux): Delete calls to
5586 lookup_symbol_aux_minsyms.
5587 (lookup_symbol_aux_minsyms): Comment out function and
5588 prototype. Delete lookup by mangled name.
ae2f03ac 5589
18ec9831
KB
55902003-05-14 Kevin Buettner <kevinb@redhat.com>
5591
5592 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5593 correctly indicate an empty stack and ``stack_allocated'' to the
5594 indicate the number of elements initially allocated.
5595 (dwarf_expr_grow_stack): Simplify method for computing new
5596 stack size. Don't loop infinitely if ``stack_len'' is zero.
5597 (execute_stack_op): Move ``ctx->in_reg'' initialization
5598 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5599 be used in conjuction with DW_OP_piece. Revise error message
5600 accordingly.
5601
de18ac1f
TR
56022003-05-14 Theodore A. Roth <troth@openavr.org>
5603
5604 * MAINTAINERS: Update my email address.
5605 * avr-tdep.c: Ditto.
5606
176620f1
EZ
56072003-05-14 Elena Zannoni <ezannoni@redhat.com>
5608
5609 * symtab.h (enum domain_enum): Rename from namespace_enum.
5610 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5611 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5612 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5613 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5614 TYPES_NAMESPACE, METHODS_NAMESPACE.
5615 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5616 (struct symbol, struct partial_symbol): Rename field
5617 'namespace_enum namespace' to 'domain_enum domain'.
5618 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5619 Delete old define kludge for namespace.
5620
5621 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5622 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5623 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5624 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5625 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5626 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5627 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5628 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5629 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5630 occurrences of the above.
5631
b7f31508
ILT
56322003-05-14 Ian Lance Taylor <ian@airs.com>
5633
5634 * Makefile.in (install-only): Use $(SHELL) when running
5635 mkinstalldirs.
5636
2fdbdd39
ILT
56372003-05-13 Ian Lance Taylor <ian@airs.com>
5638
a208d82c
ILT
5639 * MAINTAINERS (write after approval): Add myself.
5640
2fdbdd39
ILT
5641 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5642 second and third arguments.
5643 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5644 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5645
fbd9dcd3
AC
56462003-05-13 Andrew Cagney <cagney@redhat.com>
5647
5648 * defs.h (store_address): Delete declaration.
5649 findvar.c (store_address): Delete function.
5650 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5651 store_unsigned_integer.
5652 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5653 * v850-tdep.c (v850_push_arguments): Ditto.
5654 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5655 * sh-tdep.c (sh64_get_saved_register): Ditto.
5656 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5657 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5658 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5659 (mips_get_saved_register): Ditto.
5660 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5661 (find_func_descr, ia64_push_arguments): Ditto.
5662 * i386-tdep.c (i386_push_arguments): Ditto.
5663 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5664 * frv-tdep.c (frv_push_arguments): Ditto.
5665 * frame.c (legacy_saved_regs_prev_register): Ditto.
5666 (deprecated_generic_get_saved_register): Ditto.
5667 * findvar.c (unsigned_address_to_pointer): Ditto.
5668 * dwarf2read.c (dwarf2_const_value): Ditto.
5669 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5670 * alpha-tdep.c (alpha_push_arguments): Ditto.
5671
6760f9e6
JB
56722003-05-12 J. Brobecker <brobecker@gnat.com>
5673
5674 * NEWS: Mention that the hppa-hpux port has been partially
5675 multiarched (32bit ABIT only, so far).
5676
30e221b4
AC
56772003-05-11 Andrew Cagney <cagney@redhat.com>
5678
5679 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5680 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5681 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5682 sim/testsuite/sim/arm/misaligned2.ms, and
5683 sim/testsuite/sim/arm/misaligned3.ms.
5684 * disasm.h (struct ui_file): Add opaque struct declaration.
5685 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5686 * frame.h (struct ui_file): Ditto.
5687
dea7f9ba
MK
56882003-05-11 Mark Kettenis <kettenis@gnu.org>
5689
5690 * value.h: Pretty print.
5691
01986c48
MK
56922003-05-10 Mark Kettenis <kettenis@gnu.org>
5693
5694 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5695
123a958e
AC
56962003-05-08 Andrew Cagney <cagney@redhat.com>
5697
5698 * regcache.h (max_register_size): Delete declaration.
5699 * regcache.c (max_register_size): Delete function.
5700 (struct regcache_descr): Delete field "max_register_size".
5701 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5702 registers fit in MAX_REGISTER_SIZE.
5703 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5704 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5705 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5706 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5707 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5708 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5709 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5710 * dve3900-rom.c, hppa-tdep.c: Ditto.
5711
eb294659
DC
57122003-05-08 David Carlton <carlton@math.stanford.edu>
5713
5714 * valops.c (push_word): Fix typo.
5715
d9d9c31f
AC
57162003-05-08 Andrew Cagney <cagney@redhat.com>
5717
5718 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5719 * gdbarch.h: Re-generate.
5720 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5721 (legacy_max_register_raw_size): Delete declaration.
5722 * regcache.c (legacy_max_register_raw_size): Delete function.
5723 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5724 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5725 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5726 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5727 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5728 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5729 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5730 * findvar.c, dwarf2cfi.c: Ditto.
5731
22540ece
AC
57322003-05-08 Andrew Cagney <cagney@redhat.com>
5733
5734 * mips-tdep.c (read_signed_register): New function, moved to here
5735 from "regcache.c".
5736 (read_signed_register_pid): Ditto.
5737 * regcache.c (read_signed_register_pid): Delete function, moved to
5738 "mips-tdep.c".
5739 (read_signed_register): Ditto.
5740 * regcache.h (read_signed_register): Delete declaration.
5741 (read_signed_register_pid): Delete declaration.
5742
0c92afe8
AC
57432003-05-08 Andrew Cagney <cagney@redhat.com>
5744
5745 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5746 * gdbarch.h: Re-generate.
5747 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5748 (legacy_max_register_virtual_size): Delete declaration.
5749 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5750 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5751 * tracepoint.c (memrange_sortmerge): Ditto.
5752 * sparc-tdep.c (sparc_print_registers): Ditto.
5753 * regcache.c (legacy_max_register_virtual_size): Delete function.
5754
6037b830
JB
57552002-05-08 J. Brobecker <brobecker@gnat.com>
5756
5757 * fork-child.c (escape_bang_in_quoted_argument): New function.
5758 (fork_inferior): Escape '!' characters in quoted arguments
5759 only when needed.
5760
5d62c8b1
JB
57612003-05-08 J. Brobecker <brobecker@gnat.com>
5762
5763 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5764 the language of the CU is not currently supported by GDB.
5765
20a0e81d
JB
57662003-05-08 J. Brobecker <brobecker@gnat.com>
5767
5768 * defs.h (language): Add language_minimal enum value.
5769 * c-lang.c (minimal_language_defn): New language definition.
5770 (_initialize_c_language): Add the new minimal language to the list
5771 of languages known to GDB.
5772
710ee10a
KB
57732003-05-08 Kevin Buettner <kevinb@redhat.com>
5774
5775 * frame.c (get_frame_type): Don't attempt to lazily initialize
5776 frame's unwinder for legacy frames.
5777
1750fa04
AC
57782003-05-07 Andrew Cagney <cagney@redhat.com>
5779
5780 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5781 and "regcache" parameters.
5782 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5783
ddf9f258 57842003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
5785
5786 * dwarf2read.c (dwarf_decode_lines): Only use output of
5787 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
5788 the current address.
5789
87767c29
AC
57902003-05-07 Andrew Cagney <cagney@redhat.com>
5791
5792 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5793 code.
5794
5e7b2f39
JB
57952003-05-07 Jim Blandy <jimb@redhat.com>
5796
5797 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5798 'maint info symtabs' and 'maint info psymtabs'.
5799 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5800 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5801 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5802 Declarations updated.
5803 * maint.c (maintenance_list_command): Delete.
5804 (_initialize_maint_cmds): Update calls to add_cmd.
5805 * gdbcmd.h (maintenancelistlist): Delete declaration.
5806 * cli/cli-cmds.c (maintenancelistlist): Delete.
5807 (init_cmd_lists): Don't initialize it.
5808 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5809
f6684c31
AC
58102003-05-07 Andrew Cagney <cagney@redhat.com>
5811
5812 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5813 "regcache".
5814 (d10v_print_registers_info): Update.
5815 (d10v_dmap_register, d10v_imap_register): Delete functions.
5816 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5817 and "imap_register".
5818 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5819 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5820 * arch-utils.c (generic_remote_translate_xfer_address): Add
5821 "regcache" and "gdbarch" parameters.
5822 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5823 parameter. Change class to multi-arch.
5824 * gdbarch.h, gdbarch.c: Re-generate.
5825 * remote.c (remote_xfer_memory): Use
5826 gdbarch_remote_translate_xfer_address.
8ffd9b1b 5827
e4846b08
JJ
58282003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5829
5830 * infrun.c (prev_pc): Move declaration ahead of proceed().
5831 (proceed): Refresh prev_pc value before resuming.
5832 (stop_stepping): Remove code to refresh prev_pc.
5833
6b71b8ac
KW
58342003-05-06 Kris Warkentin <kewarken@qnx.com>
5835
5836 * nto-tdep.c: Removed stray comment.
5837
47979a4b
KW
58382003-05-06 Kris Warkentin <kewarken@qnx.com>
5839
5840 * i386-nto-tdep.c: Fix old K&R function definitions.
5841 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5842 Also change add_show_from_set() call to add_setshow_cmd().
5843 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5844
00905d52
AC
58452003-05-05 Andrew Cagney <cagney@redhat.com>
5846
5847 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5848 (fprint_dummy_frames): New function.
5849 (maintenance_print_dummy_frames): New function.
5850 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5851 * frame.c (fprint_frame_id): Make global.
5852 * frame.h (fprint_frame_id): Declare.
5853 * Makefile.in (dummy-frame.o): Update dependencies.
5854
b1e29e33
AC
58552003-05-05 Andrew Cagney <cagney@redhat.com>
5856
5857 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5858 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5859 SIZEOF_CALL_DUMMY_WORDS.
5860 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5861 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5862 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5863 CALL_DUMMY_BREAKPOINT_OFFSET.
5864 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5865 CALL_DUMMY_START_OFFSET.
5866 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5867 * gdbarch.h, gdbarch.c: Re-generate.
5868 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5869 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5870 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5871 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5872 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5873 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5874 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5875 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5876 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5877 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5878 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5879 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5880 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5881 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5882 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
5883
58842003-05-05 Kris Warkentin <kewarken@qnx.com>
5885
5886 * configure.tgt: Add i[3456]86-*-nto*.
5887 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5888 * nto-tdep.c: New file. Neutrino target support routines.
5889 * nto-tdep.h: New file. Neutrino target header.
5890 * config/tm-qnxnto.h: New file.
5891 * config/i386/i386nto.mt: New file.
5892 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 5893
0ce3d317
AC
58942003-05-04 Andrew Cagney <cagney@redhat.com>
5895
5896 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5897 (load_infrun_state): Ditto.
5898 (struct thread_info): Drop "prev_func_name" field.
5899 * thread.c (load_infrun_state): Update.
5900 (save_infrun_state): Update.
5901 * infrun.c (prev_func_name): Delete variable.
5902 (init_wait_for_inferior): Do not clear prev_func_name.
5903 (stop_stepping, keep_going, context_switch): Do not swap
5904 prev_func_name.
5905 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5906 instead of PC_IN_SIGTRAMP.
5907
46654a5b
AC
59082003-05-04 Andrew Cagney <cagney@redhat.com>
5909
5910 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5911 REGISTER_BYTE with register_offset_hack.
5912 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5913 that REGISTER_BYTE is consistent with the regcache.
5914 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5915 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 5916
14b08c1b
MK
59172003-05-04 Mark Kettenis <kettenis@gnu.org>
5918
04c8243f
MK
5919 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5920 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5921
14b08c1b
MK
5922 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5923
c7a11e01
JB
59242003-05-03 J. Brobecker <brobecker@gnat.com>
5925
5926 From Thierry Schneider <tpschneider1@yahoo.com>
5927 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5928 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5929 (mi-cmd-symbol.o): Add rule.
5930
7043d8dc
AC
59312003-05-03 Andrew Cagney <cagney@redhat.com>
5932
5933 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5934 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5935 * gdbarch.h, gdbarch.c: Re-generate.
5936 * d10v-tdep.c (d10v_push_dummy_code): New function.
5937 (d10v_gdbarch_init): Set push_dummy_code.
5938 * infcall.c (legacy_push_dummy_code): New function.
5939 (generic_push_dummy_code): New function.
5940 (push_dummy_code): New function.
5941 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5942 instead of dummy_addr, to push_dummy_call. Move call to
5943 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5944 switch.
5945 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5946
92bf2b80
AC
59472003-05-03 Andrew Cagney <cagney@redhat.com>
5948
5949 * disasm.h (print_insn): Declare.
5950 * disasm.c (init_gdb_disassemble_info): New function.
5951 (gdb_disassembly): Call init_gdb_disassemble_info.
5952 (gdb_print_insn): New function.
5953 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5954 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5955 * mcore-tdep.c: Include "disasm.h"
5956 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5957 * d10v-tdep.c: Include "disasm.h".
5958 (display_trace): Call gdb_print_insn, instead of print_insn.
5959 (print_insn): Delete function.
5960 * printcmd.c: Include "disasm.h".
5961 (print_insn): Delete function.
5962 (print_formatted): Call gdb_print_insn, instead of print_insn.
5963 * Makefile.in (printcmd.o): Update dependencies.
5964 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 5965
27d94c49
AC
59662003-05-02 Andrew Cagney <cagney@redhat.com>
5967
82de1e5b
AC
5968 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5969 PC_REGNUM, re-indent.
5970 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5971 PC_REGNUM isn't set.
5972
27d94c49
AC
5973 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5974 * gdbarch.h, gdbarch.c: Re-generate.
5975 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5976 register_virtual_size, pc_regnum, or register_bytes.
5977 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5978 (d10v_register_type): Use D10V_PC_REGNUM.
5979 (d10v_print_registers_info, d10v_read_pc): Ditto.
5980 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5981 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5982
a9c0dc7f
DC
59832003-05-02 David Carlton <carlton@bactrian.org>
5984
5985 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5986 the name with mstrsave.
5987
e33d66ec
EZ
59882003-05-02 Elena Zannoni <ezannoni@redhat.com>
5989
5990 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5991 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5992 (host_charset_name, target_charset_name): New vars for use by
5993 set/show commands.
5994 (host_charset_enum, target_charset_enum): New enums for set/show
5995 commands.
5996 (set_charset_sfunc, set_host_charset_sfunc,
5997 set_target_charset_sfunc): New functions.
5998 (set_host_charset, set_target_charset): Make static.
5999 (list_charsets, set_host_charset_command,
6000 set_target_charset_command): Delete functions.
6001 (show_charset_command): Rewrite as....
6002 (show_charset): Hook this up with the set/show command mechanism.
6003 (_initialize_charset): Change names of charsets to match the
6004 set/show enums. Use host_charset_name and target_charset_name.
6005 Use set/show mechanism for charset, host-charset, target-charset
6006 commands. Do not make 'show host-charset' and 'show
6007 target-charset' be aliases of 'show charset'.
6008
6009 * charset.h (set_host_charset, set_target_charset): Don't export,
6010 they are not used outside the file.
6011
2b6fd0d8
AC
60122003-05-01 Andrew Cagney <cagney@redhat.com>
6013
6014 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6015 (gdb_disassembly): Make "di" non static, always initialize and
6016 cleanup. Always use dis_asm_read_memory.
6017 (gdb_dis_asm_read_memory): Delete function.
6018
6ae2f580
AC
60192003-05-01 Andrew Cagney <cagney@redhat.com>
6020
6021 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6022 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6023
810ecf9f
AC
60242003-04-30 Andrew Cagney <cagney@redhat.com>
6025
6026 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6027 "tm_print_insn_info".
6028 (TARGET_PRINT_INSN_INFO): Delete macro.
6029 (dis_asm_read_memory): Delete function declaration.
6030 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6031 (tm_print_insn_info): Delete variable definition.
6032 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6033 * gdbarch.h, gdbarch.c: Re-generate.
6034 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6035 "deprecated_tm_print_insn_info".
6036 * mcore-tdep.c (mcore_dump_insn): Ditto.
6037 * mips-tdep.c (mips_gdbarch_init): Ditto.
6038 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6039 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6040 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6041 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6042 instead of TARGET_PRINT_INSN_INFO, add comment.
6043 * s390-tdep.c (s390_get_frame_info): Instead of
6044 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6045 (s390_check_function_end, s390_is_sigreturn): Ditto.
6046 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6047 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6048 * disasm.c: Include "gdbcore.h".
6049 (_initialize_disasm): New function, initialize
6050 "deprecated_tm_print_insn_info".
6051 (deprecated_tm_print_insn_info): New variable.
6052 (dis_asm_read_memory): Moved from "corefile.c", made static.
6053 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6054 * Makefile.in (disasm.o): Update dependencies.
6055
07020390
AC
60562003-04-30 Andrew Cagney <cagney@redhat.com>
6057
6058 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6059
a9fa03de
AF
60602003-04-29 Adam Fedor <fedor@gnu.org>
6061
6062 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6063 * infcall.c (find_function_addr): Make non-static.
6064 * infcall.h (find_function_addr): Declare.
6065 * Makefile.in (eval.o): Update dependencies.
6066
1bae87b9
AF
60672003-04-28 Adam Fedor <fedor@gnu.org>
6068
6069 * symtab.c (symbol_find_demangled_name): Check for and demangle
6070 ObjC symbols.
6071 (symbol_init_demangled_name): Init for language_objc as well.
6072
0ba6dca9
AC
60732003-04-28 Andrew Cagney <cagney@redhat.com>
6074
6075 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6076 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6077 * gdbarch.h, gdbarch.c: Re-generate.
6078 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6079 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6080 * inferior.h (deprecated_read_fp): Rename read_fp.
6081 (generic_target_read_fp): Delete declaration.
6082 * regcache.c (generic_target_read_fp): Delete function.
6083 (deprecated_read_fp): Replace read_fp, use
6084 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6085 * d10v-tdep.c (d10v_read_fp): Delete function.
6086 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6087
6088 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6089 deprecated_target_read_fp to generic_target_read_fp.
6090 * sh-tdep.c (sh_gdbarch_init): Ditto.
6091 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6092 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6093 * frv-tdep.c (frv_gdbarch_init): Ditto.
6094
6095 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6096 deprecated_fp_regnum.
6097 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6098 * vax-tdep.c (vax_gdbarch_init): Ditto.
6099 * v850-tdep.c (v850_gdbarch_init): Ditto.
6100 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6101 * sh-tdep.c (sh_gdbarch_init): Ditto.
6102 * s390-tdep.c (s390_gdbarch_init): Ditto.
6103 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6104 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6105 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6106 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6107 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6108 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6109 * i386-tdep.c (i386_gdbarch_init): Ditto.
6110 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6111 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6112 * frv-tdep.c (frv_gdbarch_init): Ditto.
6113 * cris-tdep.c (cris_gdbarch_init): Ditto.
6114 * avr-tdep.c (avr_gdbarch_init): Ditto.
6115 * arm-tdep.c (arm_gdbarch_init): Ditto.
6116 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6117
6118 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6119 * v850-tdep.c (v850_gdbarch_init): Ditto.
6120 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6121 * sh-tdep.c (sh_gdbarch_init): Ditto.
6122 * s390-tdep.c (s390_gdbarch_init): Ditto.
6123 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6124 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6125 * mips-tdep.c (mips_gdbarch_init): Ditto.
6126 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6127 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6128 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6129 * frv-tdep.c (frv_gdbarch_init): Ditto.
6130 * avr-tdep.c (avr_gdbarch_init): Ditto.
6131 * arm-tdep.c (arm_gdbarch_init): Ditto.
6132
6133 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6134 DEPRECATED_FP_REGNUM.
6135 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6136 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6137 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6138 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6139 (sparc32_register_virtual_type): Ditto.
6140 * sh-tdep.c (sh64_frame_chain): Ditto.
6141 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6142 (sh_nofp_frame_init_saved_regs): Ditto.
6143 (sh64_nofp_frame_init_saved_regs): Ditto.
6144 (sh_fp_frame_init_saved_regs): Ditto.
6145 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6146 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6147 * procfs.c (procfs_fetch_registers): Ditto.
6148 (procfs_store_registers): Ditto.
6149 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6150 (store_inferior_registers, fetch_core_registers): Ditto.
6151 (fetch_kcore_registers, clear_regs): Ditto.
6152 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6153 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6154 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6155 * nlm/i386.c (do_status): Ditto.
6156 * mipsv4-nat.c (supply_gregset): Ditto.
6157 * mips-tdep.c: Ditto for comments.
6158 * mips-nat.c (fetch_inferior_registers): Ditto.
6159 (store_inferior_registers, fetch_core_registers): Ditto.
6160 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6161 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6162 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6163 (i386_do_pop_frame, i386_register_type): Ditto.
6164 * hppa-tdep.c (hppa_frame_chain): Ditto.
6165 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6166 (hppa_pop_frame, hppa_read_fp): Ditto.
6167 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6168 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6169 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6170 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6171 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6172 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6173 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6174 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6175 * blockframe.c: Ditto for comments.
6176 * arch-utils.h: Ditto for comments.
6177 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6178 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6179 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6180 * alpha-tdep.h: Ditto for comments.
6181 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6182 (alpha_cannot_store_register): Ditto.
6183 (alpha_push_dummy_frame): Ditto.
6184 * alpha-nat.c (supply_gregset): Ditto.
6185
6186 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6187 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6188 * config/sparc/tm-sparc.h: Update comment.
6189
6190 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6191 deprecated_read_fp instead of TARGET_READ_FP.
6192 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6193 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6194 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6195 deprecated_read_fp instead of read_fp.
6196 * s390-tdep.c (s390_push_arguments): Ditto.
6197 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6198 * frame.h: Ditto in comments.
6199 * frame.c (legacy_get_prev_frame): Ditto.
6200 * dummy-frame.c (dummy_frame_this_id): Ditto.
6201 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6202
d7a27068
AC
62032003-04-28 Andrew Cagney <cagney@redhat.com>
6204
6205 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6206 * gdbarch.h, gdbarch.c: Re-generate.
6207 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6208 * vax-tdep.c (_initialize_vax_tdep): Update.
6209 * v850-tdep.c (_initialize_v850_tdep): Update.
6210 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6211 * s390-tdep.c (_initialize_s390_tdep): Update.
6212 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6213 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6214 * mips-tdep.c (_initialize_mips_tdep): Update.
6215 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6216 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6217 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6218 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6219 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6220 * frv-tdep.c (_initialize_frv_tdep): Update.
6221 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6222 (_initialize_cris_tdep): Update.
6223 * arch-utils.c (legacy_print_insn): Update.
6224 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6225
d2630e69
AF
62262003-04-26 Adam Fedor <fedor@gnu.org>
6227
6228 * linespec.c (decode_objc): New function to decode ObjC calls
6229 (decode_line_1): Check for ObjC calls (using decode_objc)
6230 * Makefile (linespec.o): Update dependencies.
6231
3086aeae
DJ
62322003-04-26 Daniel Jacobowitz <drow@mvista.com>
6233
6234 * breakpoint.h (struct breakpoint_ops): New.
6235 (struct breakpoint): Add ops member.
6236
6237 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6238 (mention): Use new breakpoint ops member.
6239 (set_raw_breakpoint): Initialize ops field to NULL.
6240 (print_exception_catchpoint, print_one_exception_catchpoint)
6241 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6242 (gnu_v3_exception_catchpoint_ops): New.
6243 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6244
1fbec6c3
AF
62452003-04-25 Adam Fedor <fedor@gnu.org>
6246
6247 * Makefile.in (COMMON_OBS): Add objc-lang.o
6248
0ef21242
AC
62492003-04-25 Andrew Cagney <cagney@redhat.com>
6250
6251 * d10v-tdep.c (print_insn): Delete function.
6252 (display_trace): Use TARGET_PRINT_INSN.
6253 (_initialize_d10v_tdep): Do not set tm_print_insn.
6254 (d10v_gdbarch_init): Set print_insn.
6255
f75493ed
AC
62562003-04-25 Andrew Cagney <cagney@redhat.com>
6257
6258 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6259 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6260 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6261 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6262 (nr_dmap_regs, a0_regnum): ... new functions.
6263 (d10v_print_registers_info): Use a0_regnum, use register_size.
6264 (d10v_register_byte): Delete function.
6265 (d10v_register_raw_size): Delete function.
6266 (d10v_register_type): Use a0_regnum.
6267 (d10v_print_registers_info): Use a0_regnum.
6268 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6269 (d10v_gdbarch_init): Do not set register_byte or
6270 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6271 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6272 extract_address.
6273 (trace_command): Use XCALLOC.
6274 (print_insn): Delete reference to tm_print_insn.
6275 (saved_regs_unwinder): Use store_unsigned_integer instead of
6276 store_address.
6277 * frame.h (FRAME_OBSTACK_CALLOC): Define
6278
2202b100
DC
62792003-04-25 David Carlton <carlton@bactrian.org>
6280
6281 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6282
4e45ca2e
AF
62832003-04-24 Adam Fedor <fedor@gnu.org>
6284
6285 * objc-lang.c: Include "valprint.h"
6286 * Makefile.in (objc-lang.o): Update dependencies.
6287
93de3e7f
AF
62882003-04-24 Adam Fedor <fedor@gnu.org>
6289
8ffd9b1b 6290 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
6291 architecture dependant compilation and mark as unimplemented
6292 (until they get put in the gdbarch vector).
6293
0f20eeea
DC
62942003-04-23 David Carlton <carlton@bactrian.org>
6295
6296 * cp-support.c (cp_find_first_component): Accept 'operator' in
6297 more locations.
6298
74cfe982
AC
62992003-04-23 Andrew Cagney <cagney@redhat.com>
6300
6301 * infcall.c (call_function_by_hand): Eliminate redundant
6302 indentation. Move "saved_async" and "old_cleanups" to where they
6303 are needed.
8ffd9b1b 6304
52557533
AC
63052003-04-23 Andrew Cagney <cagney@redhat.com>
6306
6307 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6308 and "buffer". Move the "name" code to where it is needed.
6309
158775de
AC
63102003-04-23 Andrew Cagney <cagney@redhat.com>
6311
6312 * infcall.c (call_function_by_hand): Move variables "start_sp",
6313 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6314 code to ON_STACK switch branch.
8ffd9b1b 6315
ebc7896c
AC
63162003-04-23 Andrew Cagney <cagney@redhat.com>
6317
6318 * infcall.c (call_function_by_hand): Make declaration of "i",
6319 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6320 lint.
6321
d727590f
AC
63222003-04-23 Andrew Cagney <cagney@redhat.com>
6323
6324 * infcall.c (call_function_by_hand): Delete variable
6325 "n_method_args". Localize "param_type"'s declaration to the loop
6326 that it is used. Reinstate code assigning to said variable -
6327 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6328 Rationalize code using "param_type".
6329
d585e13a
AC
63302003-04-22 Andrew Cagney <cagney@redhat.com>
6331
6332 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6333 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6334 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6335 to DEPRECATED_PUSH_RETURN_ADDRESS.
6336
051caad9
KB
63372003-04-22 Kevin Buettner <kevinb@redhat.com>
6338
6339 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6340 on the DWARF2 register number prior to fetching a register.
6341
77296879
JB
63422003-04-22 J. Brobecker <brobecker@gnat.com>
6343
6344 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6345 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 6346 this macro was always set to 0.
77296879
JB
6347 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6348 considering the fact that this macro was always set to 0.
6349 * hppa-tdep.h (hppa_store_return_value): Likewise.
6350 (hppa_extract_return_value): Likewise.
6351
4252f1df
JB
63522003-04-22 J. Brobecker <brobecker@gnat.com>
6353
6354 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6355 the hppa-pro target only.
6356
14604c6b
JB
63572003-04-21 J. Brobecker <brobecker@gnat.com>
6358
6359 Ongoing multi-arch conversion effort for HP/UX:
6360 * config/pa/tm-hppa.h: Move all macro that are no longer
6361 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6362 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6363
77eb01d1
JB
63642003-04-21 J. Brobecker <brobecker@gnat.com>
6365
6366 * config/pa/tm-hppa.h: Obsolete a section that was only used
6367 for hppa-pro.
6368
61995b3b
JB
63692003-04-21 J. Brobecker <brobecker@gnat.com>
6370
6371 Ongoing multi-arch conversion for HP/UX.
6372 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6373 if already defined (allows hppa64 to stay non-multiarched for now).
6374 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6375
4aa79dcc
AC
63762003-04-21 Andrew Cagney <cagney@redhat.com>
6377
6378 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6379
0f751ff2
AC
63802003-04-21 Andrew Cagney <cagney@redhat.com>
6381
6382 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6383 "i386_num_mmx_regs".
6384
04714b91
AC
63852003-04-21 Andrew Cagney <cagney@redhat.com>
6386
6387 * infcall.c: New file.
6388 * infcall.h: New file.
6389 * valarith.c: Include "infcall.h".
6390 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6391 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6392 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6393 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6394 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6395 (SFILES): Add "infcall.c"
6396 (COMMON_OBS): Add "infcall.o".
6397 (infcall.o): Specify dependencies.
6398 * value.h (call_function_by_hand): Delete declaration.
6399 * inferior.h (run_stack_dummy): Delete declaration.
6400 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6401 (run_stack_dummy): Move to "infcall.c", merged into
6402 call_function_by_hand.
6403 * valops.c (call_function_by_hand): Moved to "infcall.c".
6404 (find_function_addr, value_arg_coerce): Ditto.
6405 (unwindonsignal_p, coerce_float_to_double): Ditto.
6406 (_initialize_valops): Move "set/show coerce-float-to-double", and
6407 "set/show unwindonsignal" commands to "infcall.c".
6408 * v850-tdep.c, target.h: Update comments.
6409 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6410 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6411 (sh64_init_extra_frame_info): Update comments.
6412 * mn10300-tdep.c: Update comments.
6413 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6414 * config/sparc/tm-sparc.h: Update comments.
6415 * breakpoint.h: Update comments.
6416 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6417 * arm-tdep.c: Update comment.
6418
f9d3c2a8
MK
64192003-04-19 Mark Kettenis <kettenis@gnu.org>
6420
c40e1eab
MK
6421 * i386-tdep.c (i386_num_register_names): New variable.
6422 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6423 (MM0_REGNUM): Remove redundant parentheses in define.
6424 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6425 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6426 i386_mxcsr_regnum_p): Remove redundant parentheses.
6427 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 6428
94ea66b3
MK
6429 * i386-tdep.c (i386_extract_return_value,
6430 i386_store_return_value): Correct check for availability of
6431 floating-point registers.
6432
54299a1d
MK
6433 * i386-tdep.c (i386_frame_num_args): Remove function.
6434 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6435
c86c27af
MK
6436 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6437 mmx_regnum_to_fp_regnum. Adjust all callers.
6438
f9d3c2a8
MK
6439 * i386-tdep.c (i386_get_longjmp_target): Use
6440 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6441 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6442 extract_address.
6443
94ba74a9
MK
64442003-04-19 Mark Kettenis <kettenis@gnu.org>
6445
6446 * core-regset.c: Update comments to reflect reality. Re-order
6447 includes.
6448 (fetch_core_registers): Use switch instead of if. Remove
6449 redundant prototype.
6450
4074e13c
JB
64512003-04-18 Jim Blandy <jimb@redhat.com>
6452
6453 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 6454 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 6455
e3ab4aba
RH
64562003-04-17 Richard Henderson <rth@redhat.com>
6457
6458 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6459
627bf7c1
EZ
64602003-04-17 Michael Snyder <msnyder@redhat.com>
6461 Karen Bennet <bennet@redhat.com>
6462
6463 Committed by Elena Zannoni <ezannoni@redhat.com>
6464 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 6465
514621a9
EZ
64662003-04-17 Elena Zannoni <ezannoni@redhat.com>
6467
6468 * values.c (value_being_returned): Don't fetch the return
fbe586ae 6469 value if the return type is void.
514621a9 6470
b4acd559
JJ
64712003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6472
6473 * thread-db.c: Reindented.
8ffd9b1b 6474
530b167e 64752003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6476
6477 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6478 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
6479 as types.
6480
0a48e7e8
MS
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
8ffd9b1b 6504
ab9fe00e
KB
65052003-04-16 Kevin Buettner <kevinb@redhat.com>
6506
610a3745 6507 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
6508 the size of ``long double'' to 16, instead of 8.
6509
e64a344c
MK
65102003-04-16 Mark Kettenis <kettenis@gnu.org>
6511
6512 * i386-linux-nat.c: Add some whitespace to make things more
6513 readable.
6514 (fetch_register, store_register, fetch_inferior_registers,
6515 store_inferior_registers): Get rid of assignment in if-statement.
6516 (store_register): Fix typo in error message.
6517
25d41031
AC
65182003-04-16 Andrew Cagney <cagney@redhat.com>
6519
6520 * utils.c (xmmalloc): Always allocate something, matches
6521 libiberty/xmalloc's semantics.
6522 (xmrealloc, xmcalloc): Ditto.
6523
c50901fd
AC
65242003-04-16 Andrew Cagney <cagney@redhat.com>
6525
6526 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6527 update comments.
6528 (get_frame_type): Initialize unwind and type when needed.
6529 (get_frame_id, frame_register_unwind): Ditto.
6530
f81824a9
AC
65312003-04-16 Andrew Cagney <cagney@redhat.com>
6532
6533 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6534 obsolete.
6535 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6536 * sparcl-stub.c: Obsolete file.
6537 * config/sparc/tm-sparclet.h: Obsolete file.
6538 * sparclet-stub.c: Obsolete file.
6539 * sparclet-rom.c: Obsolete file.
6540 * sparcl-tdep.c: Obsolete file.
6541 * config/sparc/tm-sparclite.h: Obsolete file.
6542 * config/sparc/sparclite.mt: Obsolete file.
6543 * config/sparc/sparclet.mt: Obsolete file.
6544 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6545 sparc86x-*-* obsolete.
6546
9219021c
DC
65472003-04-15 David Carlton <carlton@math.stanford.edu>
6548
6549 * Makefile.in (SFILES): Add cp-namespace.c.
6550 (COMMON_OBS): Add cp-namespace.o.
6551 (block.o): Depend on gdb_obstack_h and cp_support_h.
6552 (buildsym.o): Depend on cp_support_h.
6553 (cp-namespace.o): New.
6554 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6555 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6556 (dwarf2read.o): Depend on cp_support_h.
6557 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6558 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6559 processing_current_namespace.
6560 (read_namespace): Update processing_current_namespace; check for
6561 anonymous namespaces.
6562 (dwarf2_name): New function.
6563 (dwarf2_extension): Ditto.
6564 * cp-support.h: Update copyright, contributors.
6565 Add inclusion guards.
6566 Add opaque declaration for structs obstack, block, symbol.
6567 (struct using_direct): New struct.
6568 Add declarations for cp_find_first_component,
6569 cp_entire_prefix_len, processing_has_namespace_info,
6570 processing_current_namespace, cp_is_anonymous,
6571 cp_add_using_directive, cp_initialize_namespace,
6572 cp_finalize_namespace, cp_set_block_scope,
6573 cp_scan_for_anonymous_namespaces.
6574 * cp-namespace.c: New file.
6575 * cp-support.c: Update copyright.
6576 Include ctype.h, gdb_assert.h, gdbcmd.h.
6577 New variable maint_cplus_cmd_list.
6578 (cp_find_first_component): New function.
6579 (cp_entire_prefix_len, maint_cplus_command)
6580 (first_component_command, _initialize_cp_support): Ditto.
6581 * buildsym.c: Include cp-support.h.
6582 New variable using_list.
6583 (add_symbol_to_list): Check for anonymous namespaces.
6584 (finish_block): Set block's scope.
6585 (start_symtab): Initialize C++ namespace support.
6586 (end_symtab): Finalize C++ namespace support.
6587 * block.h: Add opaque declarations for structs
6588 block_namespace_info, using_direct, and obstack.
6589 Add declarations for block_set_scope and block_set_using.
6590 (struct block): Add 'language_specific' member.
6591 (BLOCK_NAMESPACE): New macro.
6592 * block.c: Include gdb_obstack.h and cp-support.h.
6593 (struct block_namespace_info): New struct.
6594 (block_set_scope): New function.
6595 (block_set_using, block_initialize_namespace): Ditto.
6596
d5a921c9
KB
65972003-04-14 Kevin Buettner <kevinb@redhat.com>
6598
6599 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6600 (locate_base): Return early if there aren't any link map offsets.
6601 (svr4_solib_create_inferior_hook): Warn if shared library support
6602 is unavailable.
6603
d2a52b27
DC
66042003-04-14 David Carlton <carlton@math.stanford.edu>
6605
6606 * symtab.c (symbol_set_names): Add prefix when storing Java names
6607 in hash table. Fix for PR java/1039.
6608
980cae7a
DC
66092003-04-14 David Carlton <carlton@math.stanford.edu>
6610
6611 * symtab.c (symbol_set_names): Rename 'name' arg to
6612 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6613 * symtab.h: Change 'name' argument in declaration of
6614 symbol_set_names to 'linkage_name'.
6615 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6616
e227b13c
AC
66172003-04-14 Andrew Cagney <cagney@redhat.com>
6618
6619 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6620 return the fully sign-extended register value.
6621 (get_frame_pointer): Ditto.
6622 (mips_pop_frame): Initialize "proc_desc" after checking for a
6623 dummy frame.
6624
36712a20
AC
66252003-04-14 Andrew Cagney <cagney@redhat.com>
6626
6627 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6628 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6629 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6630 (mips_push_register): Delete function.
6631 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6632 PUSH_FP_REGNUM.
6633
44ea7b70
JB
66342003-04-14 Jim Blandy <jimb@redhat.com>
6635
6636 * symmisc.c: #include "gdb_regex.h".
6637 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6638 functions.
6639 * maint.c (maintenance_list_command): New function.
6640 (_initialize_maint_cmds): Register the above as commands.
6641 * symtab.h (maintenance_list_symtabs,
6642 maintenance_list_psymtabs): New declarations.
6643 * cli/cli-cmds.c (maintenancelistlist): New variable.
6644 (init_cmd_lists): Initialize it.
6645 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6646 * gdbcmd.h (maintenancelistlist): New declaration.
6647 * Makefile.in (symmisc.o): Update dependencies.
6648
2d0c7962
EZ
66492003-04-14 Elena Zannoni <ezannoni@redhat.com>
6650
6651 * s390-nat.c: Include asm/types.h for addr_t.
6652
1947a811
CV
66532003-04-14 Corinna Vinschen <vinschen@redhat.com>
6654
6655 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6656 actually incoming type.
6657
adb616d7
AC
66582003-04-13 Andrew Cagney <cagney@redhat.com>
6659
6660 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6661 get_next_frame and get_frame_saved_regs.
6662
9b5e151c
AC
66632003-04-13 Andrew Cagney <cagney@redhat.com>
6664
6665 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6666 of gdbarch_num_regs.
6667
ef6e7e13
AC
66682003-04-13 Andrew Cagney <cagney@redhat.com>
6669
6670 * frame.h: Mention what replaced what in "struct frame_info".
6671 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6672 deprecated_update_frame_base_hack and
6673 deprecated_update_frame_pc_hack.
6674 * hppa-tdep.c: Ditto.
6675
61fbb938
DJ
66762003-04-13 Daniel Jacobowitz <drow@mvista.com>
6677
6678 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6679 to read_reg and update its comment. Remove regnum member.
6680 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6681 Don't call read_reg when setting in_reg. Call read_reg to get
6682 the frame base if it's in a register. Return the register number
6683 on the stack instead of in the context. Remove extra arguments
6684 to read_reg.
6685 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6686 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6687 the register number on the expression stack.
6688 (needs_frame_read_reg): Remove extra arguments.
6689
0d53c4c4
DJ
66902003-04-13 Daniel Jacobowitz <drow@mvista.com>
6691
6692 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6693 made non-static.
6694 (execute_stack_op): All callers updated.
6695 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6696 * dwarf2loc.c (find_location_expression): New function.
6697 (dwarf_expr_frame_base): Call it.
6698 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6699 (dwarf2_tracepoint_var_ref): New function, broken out from
6700 locexpr_tracepoint_var_ref.
6701 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6702 Make static.
6703 (loclist_read_variable, loclist_read_needs_frame): New functions.
6704 (loclist_describe_location, loclist_tracepoint_var_ref): New
6705 functions.
6706 (dwarf2_loclist_funcs): New struct location_funcs.
6707 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6708 (struct dwarf2_locexpr_baton): Add comments.
6709 (dwarf2_loclist_funcs): New extern.
6710 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6711 base_address and base_known.
6712 (dwarf_loc_buffer): New variable.
6713 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6714 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6715 (dwarf2_has_info): Initialize dwarf_loc_offset.
6716 (dwarf2_build_psymtabs): Read in .debug_loc.
6717 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6718 DWARF_LOC_SIZE.
6719 (psymtab_to_symtab_1): Likewise. Move base address calculation
6720 here, from...
6721 (dwarf2_get_pc_bounds): ... here. Use the base address from
6722 cu_header.
6723 (dwarf2_symbol_mark_computed): Handle location lists.
6724
6aca59a3
DJ
67252003-04-13 Daniel Jacobowitz <drow@mvista.com>
6726
6727 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6728 if the linkage name demangled successfully.
6729
aca1fcd0
MK
67302003-04-13 Mark Kettenis <kettenis@gnu.org>
6731
97095916
MK
6732 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6733 disassmbly_flavour): Removed.
6734
aca1fcd0
MK
6735 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6736
562a961f
MK
67372003-04-13 Mark Kettenis <kettenis@gnu.org>
6738
6739 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6740
bd013d54
AC
67412003-04-12 Andrew Cagney <cagney@redhat.com>
6742
6743 * frame.h (struct frame_info): Move definition from here ...
6744 * frame.c (struct frame_info): ... to here.
6745
167ef8b1
AC
67462003-04-12 Andrew Cagney <cagney@redhat.com>
6747
6748 * gdbthread.h (save_infrun_state): Delete parameter
6749 "prev_func_start".
6750 (struct thread_info): Delete field "prev_func_start".
6751 (load_infrun_state): Ditto.
6752 * thread.c (load_infrun_state, save_infrun_state): Update.
6753 * infrun.c (prev_func_start): Delete variable.
6754 (context_switch, init_wait_for_inferior): Update.
6755 (stop_stepping, keep_going): Update.
6756
da3331ec
AC
67572003-04-12 Andrew Cagney <cagney@redhat.com>
6758
6759 * gdbarch.sh: Add missing opaque declarations.
6760 * gdbarch.h: Regnerate.
6761 * symtab.h: Add missing opaque declarations.
6762 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6763 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6764 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6765 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6766 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6767 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6768 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6769 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6770 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6771 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6772 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6773 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6774 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6775
18adea3f
AC
67762003-04-11 Andrew Cagney <cagney@redhat.com>
6777
6778 * frame.c (get_frame_id): Return this frame's "id".
6779 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6780 function start.
6781 (legacy_saved_regs_this_id): Replace function body with
6782 internal-error.
6783 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6784 FRAME_OBSTACK_ZALLOC.
6785 (create_new_frame): Mark the frame ID as valid.
6786
2252e863
AO
67872003-04-11 Alexandre Oliva <aoliva@redhat.com>
6788
6789 * Makefile.in (libbfd_h): Added missing setting.
6790 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6791 according to the selected ABI.
6792
a8245ab8
JJ
67932003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6794
6795 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6796
6913c89a
AC
67972003-04-11 Andrew Cagney <cagney@redhat.com>
6798
6799 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6800 SAVED_PC_AFTER_CALL.
6801 * gdbarch.h, gdbarch.c: Regenerate.
6802 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6803 * x86-64-tdep.c (x86_64_init_abi): Update.
6804 * vax-tdep.c (vax_gdbarch_init): Update.
6805 * v850-tdep.c (v850_gdbarch_init): Update.
6806 * sparc-tdep.c (sparc_gdbarch_init): Update.
6807 * sh-tdep.c (sh_gdbarch_init): Update.
6808 * s390-tdep.c (s390_gdbarch_init): Update.
6809 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6810 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6811 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6812 * mips-tdep.c (mips_gdbarch_init): Update.
6813 * mcore-tdep.c (mcore_gdbarch_init): Update.
6814 * m68k-tdep.c (m68k_gdbarch_init): Update.
6815 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6816 * ia64-tdep.c (ia64_gdbarch_init): Update.
6817 (ia64_saved_pc_after_call): Update declaration.
6818 * i386ly-tdep.c (i386lynx_init_abi): Update.
6819 * i386-tdep.c (i386_gdbarch_init): Update.
6820 * hppa-tdep.c (hppa_gdbarch_init): Update.
6821 * h8300-tdep.c (h8300_gdbarch_init): Update.
6822 * frv-tdep.c (frv_gdbarch_init): Update.
6823 * cris-tdep.c (cris_gdbarch_init): Update.
6824 * avr-tdep.c (avr_gdbarch_init): Update.
6825 * arm-tdep.c (arm_gdbarch_init): Update.
6826 * alpha-tdep.c (alpha_gdbarch_init): Update.
6827 * ns32knbsd-nat.c (frame_num_args): Update.
6828 * ns32k-tdep.c (umax_frame_num_args): Update.
6829 * mips-tdep.c (mips_init_frame_pc_first): Update.
6830 * infrun.c (step_over_function): Update.
6831 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6832 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6833 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6834 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6835 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6836 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6837 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6838 * arch-utils.c (init_frame_pc_default): Update.
6839 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6840 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6841 declaration.
8ffd9b1b 6842
38edeab8
AC
68432003-04-11 Andrew Cagney <cagney@redhat.com>
6844
6845 * i387-tdep.c: Update copyright.
6846 (i387_to_double): Delete function.
6847 (double_to_i387): Delete function.
6848
81f8a206
AC
68492003-04-10 Andrew Cagney <cagney@redhat.com>
6850
6851 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6852 frame's function's address. Simplify.
6853 (d10v_frame_unwind_cache): Check that the frame's function is
6854 non-zero.
6855
6e691f7a
JB
68562003-04-10 Jim Blandy <jimb@redhat.com>
6857
6858 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6859 call to set_gdbarch_deprecated_push_arguments.
6860
7f78e237
AC
68612003-04-10 Andrew Cagney <cagney@redhat.com>
6862
6863 * frame.c (fprint_frame_id): New function.
6864 (fprint_frame_type, fprint_frame): New function.
6865 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6866 (create_sentinel_frame, get_frame_id): Ditto.
6867 (frame_id_p, frame_id_eq): Ditto.
6868 (frame_id_inner, create_new_frame): Ditto.
6869 (legacy_get_prev_frame, get_prev_frame): Ditto.
6870 (deprecated_update_frame_pc_hack): Ditto.
6871 (frame_register_unwind): Ditto.
6872 (deprecated_update_frame_base_hack): Ditto.
6873
f870b49b
CV
68742003-04-10 Corinna Vinschen <vinschen@redhat.com>
6875
6876 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6877 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6878 frame_chain function.
6879 * Makefile.in: Add dependencies due to above change.
6880
7c86889b
CV
68812003-04-10 Corinna Vinschen <vinschen@redhat.com>
6882
6883 * blockframe.c (legacy_frame_chain_valid): Move call to
6884 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6885 inside_entry_file.
6886
d0a55772
AC
68872003-04-09 Andrew Cagney <cagney@redhat.com>
6888
6889 * frame.h (struct frame_id): Replace "pc" and "base" with
6890 "stack_addr" and "code_addr". Update comments.
6891 (frame_id_build): Update parameter names and comment.
6892 (struct frame_info): Replace "id_p" and "id" with "this_id".
6893 * dummy-frame.c (dummy_frame_this_id): Update.
6894 * breakpoint.c (print_one_breakpoint): Update.
6895 * frame.c (get_frame_id): Update.
6896 (get_frame_base, frame_id_build): Update.
6897 (create_sentinel_frame, legacy_get_prev_frame): Update.
6898 (deprecated_update_frame_base_hack): Update.
6899 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6900 (frame_id_inner): Ditto.
6901
ac16bf07
AC
69022003-04-09 Andrew Cagney <cagney@redhat.com>
6903
6904 * defs.h (gdb_print_host_address): Make "addr" parameter a
6905 pointer constant.
6906 * utils.c (gdb_print_host_address): Update.
6907
366cfc9e
KB
69082003-04-09 Kevin Buettner <kevinb@redhat.com>
6909
6910 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6911 register number for R0 is 0.
6912
cd983b5c
JB
69132003-04-09 J. Brobecker <brobecker@gnat.com>
6914
6915 * frame.h (struct gdbarch): Add opaque structure definition
6916 to avoid a compilation warning on LynxOS 4.0.
6917
d1340264
AC
69182003-04-09 Andrew Cagney <cagney@redhat.com>
6919
6920 * frame.h (struct frame_info): Delete field "pc". Replace
6921 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6922 structure.
6923 * frame.c (frame_pc_unwind): Update.
6924 (create_sentinel_frame): Do not set "pc".
6925 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6926 (get_frame_pc): Call frame_pc_unwind.
6927 (deprecated_update_frame_pc_hack): Update.
6928 (create_new_frame): Use "pc" not "->pc".
6929
90a6fffb
AC
69302003-04-09 Andrew Cagney <cagney@redhat.com>
6931
6932 * frame.c (get_frame_id): Eliminate code updating "frame".
6933 (legacy_get_prev_frame): Ditto.
6934 (get_frame_base): Return id.base directly.
6935 (deprecated_update_frame_base_hack): Update "id.base".
6936 * frame.h (struct frame_info): Delete field "frame".
6937
2fbce691
AC
69382003-04-09 Andrew Cagney <cagney@redhat.com>
6939
6940 * NEWS: Mention that the "Sequent family" is obsolete.
6941 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6942 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6943 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6944 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6945 * config/i386/tm-ptx4.h: Obsolete file.
6946 * config/i386/tm-ptx.h: Obsolete file.
6947 * symm-tdep.c: Obsolete file.
6948 * config/i386/symmetry.mt: Obsolete file.
6949 * config/i386/tm-symmetry.h: Obsolete file.
6950 * symm-nat.c: Obsolete file.
6951 * config/i386/nm-symmetry.h: Obsolete file.
6952 * config/i386/xm-symmetry.h: Obsolete file.
6953 * config/i386/symmetry.mh: Obsolete file.
6954 * config/i386/nm-ptx4.h: Obsolete file.
6955 * config/i386/ptx4.mh: Obsolete file.
6956 * config/i386/ptx.mt: Obsolete file.
6957 * config/i386/ptx.mh: Obsolete file.
6958 * config/i386/xm-ptx4.h: Obsolete file.
6959 * config/i386/xm-ptx.h: Obsolete file.
6960
78c43945
AC
69612003-04-09 Andrew Cagney <cagney@redhat.com>
6962
6963 Obsolete mips*-*-mach3*.
6964 * NEWS: Mention that mips*-*-mach3* is obsolete.
6965 * m3-nat.c: Obsolete file.
6966 * config/nm-m3.h: Obsolete file.
6967 * config/mips/tm-mipsm3.h: Obsolete file.
6968 * config/mips/mipsm3.mt: Obsolete file.
6969 * config/mips/mipsm3.mh: Obsolete file.
6970 * config/mips/xm-mipsm3.h: Obsolete file.
6971 * mipsm3-nat.c: Obsolete file.
6972 * configure.host: Obsolete mips-dec-mach3*.
6973 * configure.tgt: Obsolete mips*-*-mach3*.
6974
f1908289
AC
69752003-04-09 Andrew Cagney <cagney@redhat.com>
6976
6977 * doublest.h: Update copyright.
6978 (deprecated_store_floating, deprecated_extract_floating): Rename
6979 store_floating and extract_floating. Update comments.
6980 * doublest.c: Update copyright.
6981 (extract_floating_by_length): Replace extract_floating.
6982 (store_floating_by_length): Replace store_floating.
6983 (deprecated_extract_floating): New function.
6984 (deprecated_store_floating): New function.
6985 (extract_typed_floating): Call extract_floating_by_length.
6986 (store_typed_floating): Call store_floating_by_length.
6987 * x86-64-tdep.c (x86_64_store_return_value): Update.
6988 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6989 (sh64_extract_return_value): Update.
6990 (sh_sh4_register_convert_to_virtual): Update.
6991 (sh_sh64_register_convert_to_virtual): Update.
6992 (sh_sh4_register_convert_to_raw): Update.
6993 (sh_sh64_register_convert_to_raw): Update.
6994 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6995 (rs6000_register_convert_to_raw): Update.
6996 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6997 (ia64_register_convert_to_raw): Update.
6998 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6999 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7000 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7001 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7002 (alpha_register_convert_to_raw): Update.
7003
4443bd83
AC
70042003-04-08 Andrew Cagney <cagney@redhat.com>
7005
7006 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7007 * gdbarch.h, gdbarch.c: Re-generate.
7008 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7009 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7010 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7011 conditionally, use frame_pc_unwind as an alternative. Add
7012 comments.
7013 * arch-utils.c (init_frame_pc_default): Only call
7014 SAVED_PC_AFTER_CALL when available.
7015
c0236d92
EZ
70162003-04-08 Elena Zannoni <ezannoni@redhat.com>
7017
fbe586ae 7018 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7019 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7020 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7021 (start_remote): Ditto.
7022 (handle_inferior_event): Ditto.
7023 (save_inferior_status): Ditto.
7024 (restore_inferior_status): Ditto.
7025 * infcmd.c (attach_command): Ditto.
7026 * fork-child.c (startup_inferior): Ditto.
fbe586ae 7027 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7028 * alpha-tdep.c (heuristic_proc_start): Ditto.
7029 * mips-tdep.c (heuristic_proc_start): Ditto.
7030 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7031 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7032 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7033 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7034 * remote-vx.c (vx_create_inferior): Ditto.
7035
70362003-04-08 Elena Zannoni <ezannoni@redhat.com>
7037
7038 * infrun.c (stop_soon_quietly): Make it an enum, to better
7039 override the default behavior of handle_inferior_event.
7040 (clear_proceed_status): Update uses of stop_soon_quietly to
7041 reflect that it is now an enum.
7042 (start_remote): Ditto.
7043 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7044 is set to handle the new GNU/Linux kernel behavior for
7045 attach/sigstop. Update uses of stop_soon_quietly.
7046 * inferior.h (enum stop_kind): New enum.
7047 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7048 Reset normal handle_inferior_event behavior, afterwards.
7049 * fork-child.c (startup_inferior): Update.
7050 * alpha-tdep.c (heuristic_proc_start): Update.
7051 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7052 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7053 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7054 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7055 * remote-vx.c (vx_create_inferior): Update.
7056 * mips-tdep.c (heuristic_proc_start): Update.
7057
1211bce3
EZ
70582003-04-07 Elena Zannoni <ezannoni@redhat.com>
7059
7060 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 7061 be freed more than once, causing wild memory corruptions.
1211bce3 7062 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 7063 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 7064 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 7065 with the "core" target.
1211bce3 7066
f0ef6b29
KB
70672003-04-07 Kevin Buettner <kevinb@redhat.com>
7068
7069 * mips-tdep.c (mips_print_fp_register): New function, created from
7070 do_fp_register_row(). Registers are now (also) printed as hex.
7071 Only one register is printed per row.
7072 (mips_print_register, do_fp_register_row): Print floating point
7073 registers with mips_print_fp_register().
7074
8cf71652
AC
70752003-04-06 Andrew Cagney <cagney@redhat.com>
7076
5e488a7b
AC
7077 * valprint.h (inspect_it): Add extern declaration.
7078 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7079 (selectors_info, classes_info): Ditto.
7080 (find_objc_msgcall): Fix indentation.
7081 (objc_printstr): Delete extern declarations.
7082
8cf71652
AC
7083 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7084
e6ba3bc9
AC
70852003-04-06 Andrew Cagney <cagney@redhat.com>
7086
7087 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7088 Update comment.
7089 * frame.c (legacy_saved_regs_this_id): Update.
7090 (legacy_get_prev_frame): Update.
7091 * xstormy16-tdep.c: Update comment.
7092 * sparc-tdep.c (sparc_frame_chain): Update comment.
7093 * blockframe.c (legacy_frame_chain_valid): Update.
7094
55e1d7e7
AC
70952003-04-06 Andrew Cagney <cagney@redhat.com>
7096
996179ee
AC
7097 * valprint.c (val_print_type_code_int): Delete #ifdef
7098 PRINT_TYPELESS_INTEGER code.
7099
55e1d7e7
AC
7100 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7101 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7102 multi-arch definition.
7103 * gdbarch.h: Re-generate.
7104
43bd9a9e
AC
71052003-04-05 Andrew Cagney <cagney@redhat.com>
7106
7107 Eliminate FRAME_FIND_SAVED_REGS.
7108 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7109 Change FSR parameter to a pointer.
7110 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7111 Assume FSR parameter is a pointer.
7112 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7113 Make fsr a pointer.
7114 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7115 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7116 saved_regs a pointer.
7117 (hppa_frame_saved_pc): Ditto.
7118 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7119 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7120 pointer.
7121 (restore_pc_queue): Make fsr a pointer.
7122 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7123 (hppa_frame_chain): Make saved_regs a pointer, call
7124 hppa_frame_init_saved_regs.
7125 * sparc-tdep.c: Include "gdb_assert.h".
7126 (sparc_frame_find_saved_regs): Replace internal_error with
7127 gdb_assert.
7128 * remote-vxsparc.c (vx_read_register): Delete reference to
7129 FRAME_FIND_SAVED_REGS.
7130 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7131 * gdbarch.h: Regenerate.
7132 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7133 (deprecated_get_frame_saved_regs): Delete declaration.
7134 (struct frame_saved_regs): Delete definition.
7135 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7136 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7137 (hppa_frame_find_saved_regs): Delete declaration.
7138 (FRAME_FIND_SAVED_REGS): Delete macro.
7139 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7140 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7141 FRAME_FIND_SAVED_REGS in comment.
7142
be41e9f4
AC
71432003-04-05 Andrew Cagney <cagney@redhat.com>
7144
7145 * frame.c (frame_func_unwind, get_frame_func): New functions.
7146 * frame.h (get_frame_func, frame_func_unwind): Declare.
7147 (struct frame_info): Add field "prev_func" for caching the
7148 previous frame's function address.
7149 * arm-tdep.c (arm_frameless_function_invocation): Combine
7150 get_pc_function_start and get_frame_pc into get_frame_func.
7151 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7152 (sh64_nofp_frame_init_saved_regs): Ditto.
7153 * s390-tdep.c (s390_function_start): Ditto.
7154 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7155 (rs6000_frameless_function_invocation): Ditto.
7156 (rs6000_frame_saved_pc): Ditto.
7157 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7158 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7159 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7160 (i386_frame_init_saved_regs): Ditto.
7161 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7162 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7163 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7164 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7165 * blockframe.c (frameless_look_for_prologue): Ditto.
7166
a01dd7cc
AC
71672003-04-05 Andrew Cagney <cagney@redhat.com>
7168
7169 * frame.c (legacy_get_prev_frame): Link prev to next at the
7170 function start. Update comments.
7171
5e5592e6
AC
71722003-04-05 Andrew Cagney <cagney@redhat.com>
7173
7174 * frame.c (get_frame_id): Update comment.
7175 (legacy_get_prev_frame): Update comment.
7176 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7177 * gdbarch.h: Regenerate.
7178 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7179 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7180
6fba5002
AC
71812003-04-05 Andrew Cagney <cagney@redhat.com>
7182
7183 * stack.c (print_frame_info): Use get_frame_pc.
7184
7df05f2b
AC
71852003-04-04 Andrew Cagney <cagney@redhat.com>
7186
7187 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7188 the frame's type from the unwinder.
7189 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7190 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7191 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7192 (get_frame_base_address): Use get_frame_type.
7193 (get_frame_locals_address, get_frame_args_address): Ditto.
7194 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7195 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7196 (struct frame_info): Add comment explaining why the frame contains
7197 a "type" field.
7198 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7199 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7200 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7201 NORMAL_FRAME.
7202 * frame-unwind.h: Include "frame.h".
7203 (struct frame_unwind): Add "type" field.
7204 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 7205
11889732
AC
72062003-04-04 Andrew Cagney <cagney@redhat.com>
7207
7208 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7209 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7210 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7211 get_frame_base.
7212 (d10v_unwind_dummy_id): Use frame_id_build.
7213 * frame.c (find_frame_sal): Use get_frame_pc.
7214 (create_new_frame): Use deprecated_update_frame_pc_hack and
7215 deprecated_update_frame_base_hack.
7216 (create_sentinel_frame): Add comment about ->pc going away.
7217 (get_prev_frame): Add comment about ->pc going away.
7218 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7219 frame_id_build, deprecated_update_frame_pc_hack and
7220 deprecated_update_frame_base_hack.
7221 (select_frame): Use get_frame_pc.
7222 (legacy_saved_regs_this_id): Use frame_id_build.
7223
50c46a0d
EZ
72242003-04-04 Elena Zannoni <ezannoni@redhat.com>
7225
fbe586ae
RH
7226 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7227 signed integer case.
7228 (classify_argument): Handle enumerations and references.
50c46a0d 7229
50bbdbd9
AC
72302003-04-04 Andrew Cagney <cagney@redhat.com>
7231
7232 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7233 ID to NULL.
7234
36018d2e
AF
72352003-04-01 Adam Fedor <fedor@gnu.org>
7236
7237 * gdb/objc-lang.c (selectors_info): Replace calls to
7238 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7239 SYMBOL_NATURAL_NAME.
7240 (classes_info, find_methods): Likewise.
7241
35cec841
KB
72422003-04-03 Kevin Buettner <kevinb@redhat.com>
7243
7244 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7245 ``mach'' to the value determined by bfd_default_set_arch_mach().
7246
43136899
BR
72472003-04-02 Bob Rossi <bob_rossi@cox.net>
7248
7249 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7250 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7251 (mi-cmd-file.o): Update dependencies.
7252
040b99fd
KB
72532003-04-01 Kevin Buettner <kevinb@redhat.com>
7254
7255 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7256 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7257
9a3d7dfd
AF
72582003-04-01 Adam Fedor <fedor@gnu.org>
7259
7260 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7261 * language.h (struct language_defn): Add la_demangle.
7262 (language_demangle): Declare.
7263 * language.c (language_demangle): New function.
7264 (unk_lang_demangle): Likewise.
7265 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 7266 Add ukn_lang_demangle.
9a3d7dfd 7267 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 7268 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
7269 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7270 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7271 * jv-lang.c (java_demangle): New function
7272 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
7273 * objc-lang.c (objc_demangle): Add options argument
7274 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
7275 * maint.c (maintenance_demangle): Replace switch with
7276 call to language_demangle.
7277 * utils.c (fprintf_symbol_filtered): Likewise.
7278
5e074003
AC
72792003-04-01 Andrew Cagney <cagney@redhat.com>
7280
7281 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7282 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7283 PRINT_TYPELESS_INTEGER.
7284 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7285 PUSH_RETURN_ADDRESS.
7286
270cb5d6
AC
72872003-04-01 Andrew Cagney <cagney@redhat.com>
7288
7289 * Makefile.in (d10v-tdep.o): Update dependencies.
7290 * d10v-tdep.c: Include "frame-base.h".
7291 (d10v_frame_unwind): Make constant.
7292 (d10v_frame_base_address): New function.
7293 (d10v_frame_base): New variable.
7294 (d10v_gdbarch_init): Set frame_base default.
7295 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7296 comment for base.
7297 (d10v_frame_unwind_cache): Set and use "prev_sp".
7298 (d10v_frame_this_id): Use the previous frame's inner most stack
7299 address and this frame's func address for the frame ID. Use
7300 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 7301
6bfb3e36
AC
73022003-04-01 Andrew Cagney <cagney@redhat.com>
7303
7304 * frame.h (get_frame_locals_address, get_frame_args_address):
7305 Refer to the base address, instead of the address of the first
7306 local or parameter.
8ffd9b1b 7307
da62e633
AC
73082003-04-01 Andrew Cagney <cagney@redhat.com>
7309
7310 Add frame debug info addresses:
7311 * frame-base.c: New file.
7312 * frame-base.h: New file.
7313 * frame.h (struct frame_base): Add opaque declaration.
7314 (get_frame_base): Update comment.
7315 (get_frame_base_address): Declare.
7316 (get_frame_locals_address): Declare.
7317 (get_frame_args_address): Declare.
7318 (struct frame_info): Add "base" and "base_cache". Update
7319 comments on the unwinder.
7320 * frame.c: Include "frame-base.h".
7321 (get_frame_locals_address): New function.
7322 (get_frame_base_address): New function.
7323 (get_frame_args_address): New function.
7324 * findvar.c (read_var_value): Use get_frame_locals_address and
7325 get_frame_args_address.
7326 * stack.c (frame_info): Use get_frame_locals_address and
7327 get_frame_args_address.
7328 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7329 moved to "frame-base.c".
7330 * printcmd.c (print_frame_nameless_args): Ditto.
7331 * symtab.h (address_class): Update comments.
7332 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7333 get_frame_base_address.
7334 * dwarf2expr.c (execute_stack_op): Ditto.
7335 * Makefile.in (frame_base_h): Define.
7336 (frame.o): Update dependencies.
7337 (frame-base.o): Add dependencies.
7338 (SFILES): Add frame-base.c.
7339 (COMMON_OBS): Add frame-base.o.
7340
3d30e9c2
AC
73412003-04-01 Andrew Cagney <cagney@redhat.com>
7342
7343 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7344 CALL_DUMMY_LENGTH): Ditto.
7345 * gdbarch.c: Re-generate.
7346 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7347 (CALL_DUMMY_LENGTH): Delete macro.
7348 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7349 * arm-tdep.c (arm_gdbarch_init): Ditto.
7350 * avr-tdep.c (avr_gdbarch_init): Ditto.
7351 * cris-tdep.c (cris_gdbarch_init): Ditto.
7352 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7353 * frv-tdep.c (frv_gdbarch_init): Ditto.
7354 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7355 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7356 * i386-tdep.c (i386_gdbarch_init): Ditto.
7357 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7358 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7359 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7360 * mips-tdep.c (mips_gdbarch_init): Ditto.
7361 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7362 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7363 * s390-tdep.c (s390_gdbarch_init): Ditto.
7364 * sh-tdep.c (sh_gdbarch_init): Ditto.
7365 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7366 * v850-tdep.c (v850_gdbarch_init): Ditto.
7367 * vax-tdep.c (vax_gdbarch_init): Ditto.
7368 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7369
ce0c7262
CV
73702003-04-01 Corinna Vinschen <vinschen@redhat.com>
7371
7372 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7373
73dd234f
AC
73742003-04-01 Andrew Cagney <cagney@redhat.com>
7375
7376 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7377 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7378 * gdbarch.h, gdbarch.c: Re-generate.
7379 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7380 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7381 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7382 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7383 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7384 * infcmd.c (run_stack_dummy): Simplify assuming
7385 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7386 * infrun.c (handle_inferior_event): Ditto.
7387 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7388 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7389 * arm-tdep.c (arm_gdbarch_init): Ditto.
7390 * avr-tdep.c (avr_gdbarch_init): Ditto.
7391 * cris-tdep.c (cris_gdbarch_init): Ditto.
7392 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7393 * frv-tdep.c (frv_gdbarch_init): Ditto.
7394 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7395 * i386-tdep.c (i386_gdbarch_init): Ditto.
7396 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7397 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7398 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7399 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7400 * mips-tdep.c (mips_gdbarch_init): Ditto.
7401 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7402 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7403 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7404 * s390-tdep.c (s390_gdbarch_init): Ditto.
7405 * sh-tdep.c (sh_gdbarch_init): Ditto.
7406 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7407 * v850-tdep.c (v850_gdbarch_init): Ditto.
7408 * vax-tdep.c (vax_gdbarch_init): Ditto.
7409 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7410
97606a13
DJ
74112003-04-01 Daniel Jacobowitz <drow@mvista.com>
7412
7413 * symfile.c (symfile_relocate_debug_section): Update call to
7414 bfd_simple_get_relocated_section_contents.
7415
e8ab51f7
AC
74162003-03-31 Andrew Cagney <cagney@redhat.com>
7417
7418 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7419 * gdbarch.h, gdbarch.c: Regenerate.
7420 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7421 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7422 available.
7423 * frame.h (generic_fix_call_dummy): Delete declaration.
7424 * dummy-frame.h: Update comment.
7425 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7426 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7427 fix_call_dummy.
7428 * sh-tdep.c (sh_gdbarch_init): Ditto.
7429 * s390-tdep.c (s390_gdbarch_init): Ditto.
7430 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7431 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7432 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7433 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7434 * i386-tdep.c (i386_gdbarch_init): Ditto.
7435 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7436 * frv-tdep.c (frv_gdbarch_init): Ditto.
7437 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7438 * cris-tdep.c (cris_gdbarch_init): Ditto.
7439 * avr-tdep.c (avr_gdbarch_init): Ditto.
7440 * arm-tdep.c (arm_gdbarch_init): Ditto.
7441
018d1b48
JB
74422003-03-31 J. Brobecker <brobecker@gnat.com>
7443
7444 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7445 (INIT_FRAME_AP): Likewise.
7446 (EXTRA_FRAME_INFO): Likewise.
7447
e9a2674e
AC
74482003-03-31 Andrew Cagney <cagney@redhat.com>
7449
7450 * gdbarch.sh: Include "symfile.h".
7451 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7452 * gdbarch.h, gdbarch.c: Re-generate.
7453 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7454 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7455 call_dummy_address, the default is at entry_point_address.
7456 * v850-tdep.c (v850_gdbarch_init): Ditto.
7457 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7458 * sh-tdep.c (sh_gdbarch_init): Ditto.
7459 * s390-tdep.c (s390_gdbarch_init): Ditto.
7460 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7461 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7462 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7463 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7464 * i386-tdep.c (i386_gdbarch_init): Ditto.
7465 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7466 * frv-tdep.c (frv_gdbarch_init): Ditto.
7467 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7468 * cris-tdep.c (cris_gdbarch_init): Ditto.
7469 * arm-tdep.c (arm_gdbarch_init): Ditto.
7470
e8a8712a
AC
74712003-03-31 Andrew Cagney <cagney@redhat.com>
7472
7473 * gdbarch.sh (CALL_DUMMY_P): Delete.
7474 * gdbarch.h, gdbarch.c: Re-generate.
7475 * inferior.h (CALL_DUMMY_P): Delete macro.
7476 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7477 * vax-tdep.c (vax_gdbarch_init): Update.
7478 * v850-tdep.c (v850_gdbarch_init): Update.
7479 * sparc-tdep.c (sparc_gdbarch_init): Update.
7480 * sh-tdep.c (sh_gdbarch_init): Update.
7481 * s390-tdep.c (s390_gdbarch_init): Update.
7482 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7483 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7484 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7485 * mips-tdep.c (mips_gdbarch_init): Update.
7486 * mcore-tdep.c (mcore_gdbarch_init): Update.
7487 * m68k-tdep.c (m68k_gdbarch_init): Update.
7488 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7489 * ia64-tdep.c (ia64_gdbarch_init): Update.
7490 * i386-tdep.c (i386_gdbarch_init): Update.
7491 * h8300-tdep.c (h8300_gdbarch_init): Update.
7492 * frv-tdep.c (frv_gdbarch_init): Update.
7493 * d10v-tdep.c (d10v_gdbarch_init): Update.
7494 * cris-tdep.c (cris_gdbarch_init): Update.
7495 * breakpoint.c (deprecated_frame_in_dummy): Update.
7496 * avr-tdep.c (avr_gdbarch_init): Update.
7497 * alpha-tdep.c (alpha_gdbarch_init): Update.
7498 * arm-tdep.c (arm_gdbarch_init): Update.
7499 * dummy-frame.c (dummy_frame_this_id): Update comments.
7500 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7501 * frame.c (legacy_get_prev_frame): Ditto.
7502 * valops.c (call_function_by_hand): Delete function.
7503 (hand_function_call): Rename to call_function_by_hand
7504
ed234cf8
AC
75052003-03-30 Andrew Cagney <cagney@redhat.com>
7506
7507 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 7508 * value.h (struct value): Update comment.
ed234cf8 7509
06c77151
AC
75102003-03-30 Andrew Cagney <cagney@redhat.com>
7511
6c2b5168
AC
7512 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7513 D10V_FP_REGNUM.
7514 (d10v_gdbarch_init): Do not set fp_regnum.
7515
06c77151
AC
7516 * frame.c (get_frame_base): Force ID initialization.
7517 (get_prev_frame): Move computation of the frame ID from here ...
7518 (get_frame_id): ... to here.
7519 (legacy_get_prev_frame): Mark the frame ID as valid.
7520 * frame.h (struct frame_info): Add field "id_p".
7521
97a1a11c
MK
75222003-03-30 Mark Kettenis <kettenis@gnu.org>
7523
7524 * i386-tdep.c (i386_store_struct_return): Removed.
7525 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7526
6c0e89ed
AC
75272003-03-30 Andrew Cagney <cagney@redhat.com>
7528
7529 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7530 * gdbarch.h, gdbarch.c: Regenerate.
7531 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7532 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7533 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7534 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7535 * i386-tdep.c (i386_gdbarch_init): Ditto.
7536 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7537 * cris-tdep.c (cris_gdbarch_init): Ditto.
7538 * vax-tdep.c (vax_gdbarch_init): Ditto.
7539 * s390-tdep.c (s390_gdbarch_init): Ditto.
7540 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7541 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7542 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7543 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7544 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7545 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7546 * sparc-tdep.c (sparc_gdbarch_init): Update.
7547 * sh-tdep.c (sh_gdbarch_init): Update.
7548 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7549 * mips-tdep.c (mips_gdbarch_init): Update.
7550 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7551 * ia64-tdep.c (ia64_gdbarch_init): Update.
7552 * frv-tdep.c (frv_gdbarch_init): Update.
7553 * avr-tdep.c (avr_gdbarch_init): Update.
7554 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7555 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7556 instead of when push_dummy_call is not available.
8ffd9b1b 7557
f7dd6af2
AC
75582003-03-30 Andrew Cagney <cagney@redhat.com>
7559
7560 * infttrace.c: Include "gdbthread.h".
7561 (parent_attach_all): Fix function signature.
7562 (call_ptrace): Update call.
7563 * Makefile.in (infttrace.o): Update dependencies.
7564
28f617b3
AC
75652003-03-30 Andrew Cagney <cagney@redhat.com>
7566
7567 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7568 PUSH_RETURN_ADDRESS.
7569 * gdbarch.h, gdbarch.c: Regenerate.
7570 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7571 * x86-64-tdep.c (x86_64_init_abi): Update.
7572 * v850-tdep.c (v850_gdbarch_init): Update.
7573 * sparc-tdep.c (sparc_gdbarch_init): Update.
7574 * sh-tdep.c (sh_gdbarch_init): Update.
7575 * s390-tdep.c (s390_gdbarch_init): Update.
7576 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7577 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7578 * mips-tdep.c (mips_gdbarch_init): Update.
7579 * mcore-tdep.c (mcore_gdbarch_init): Update.
7580 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7581 * ia64-tdep.c (ia64_gdbarch_init): Update.
7582 * i386-tdep.c (i386_gdbarch_init): Update.
7583 * h8300-tdep.c (h8300_gdbarch_init): Update.
7584 * frv-tdep.c (frv_gdbarch_init): Update.
7585 * cris-tdep.c (cris_gdbarch_init): Update.
7586 * avr-tdep.c (avr_gdbarch_init): Update.
7587 * arm-tdep.c (arm_gdbarch_init): Update.
7588 * valops.c (hand_function_call): Update.
7589
4d628cd7
AC
75902003-03-29 Andrew Cagney <cagney@redhat.com>
7591
7592 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7593 sizeof_call_dummy_words.
7594 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7595 define.
7596 * gdbarch.h: Regenerate.
8ffd9b1b 7597
65e82032
AC
75982003-03-29 Andrew Cagney <cagney@redhat.com>
7599
7600 * infttrace.h: New file.
7601 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7602 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7603 (hpread_read_doc_function_type): Detect an initialized type1.
7604 (hpread_quick_traverse): Initialize mod_name_string.
7605 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7606 (som_solib_get_solib_by_pc): Declare.
7607 (so_lib_thread_start_addr): Declare.
7608 (no_shared_libraries): Declare.
7609 * somread.c (init_import_symbols): Make static. Add forward
7610 declaration.
7611 * config/pa/nm-hppah.h: Include "infttrace.h" for
7612 parent_attach_all.
7613 (hppa_insert_hw_watchpoint): Declare.
7614 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7615 * hppah-nat.c: Include "gdb_string.h".
7616 (parent_attach_all): Delete extern declaration, moved to
7617 "infttrace.h".
7618 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7619 int.
7620 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7621 * Makefile.in (infttrace_h): Define.
7622 (hpread.o): Update dependencies.
7623 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7624 * hppa-hpux-tdep.c: Include "gdb_string.h".
7625 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7626 * infrun.c (handle_inferior_event): Always initialize
7627 stepped_after_stopped_by_watchpoint. Add default and remove
7628 fallthrough in switch statement.
7629 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7630 parameter to int.
7631 (hppa_remove_hw_watchpoint): Ditto.
7632
2c3bbe77
AC
76332003-03-29 Andrew Cagney <cagney@redhat.com>
7634
7635 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7636 offset.
7637
2dd604e7
RE
76382003-03-29 Richard Earnshaw <rearnsha@arm.com>
7639
7640 * arm-tdep.c (arm_push_arguments): Delete.
7641 (struct stack_item): New type.
7642 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7643 (arm_store_struct_return): Delte.
7644 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7645 arm_push_arguments or arm_store_struct_return.
7646
e8933a55
AC
76472003-03-28 Andrew Cagney <cagney@redhat.com>
7648
7649 * Makefile.in (d10v-tdep.o): Update dependencies.
7650 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7651 * d10v-tdep.c: Include "remote.h".
7652 (target_resume_hook): Delete extern declaration.
7653 (target_wait_loop_hook): Ditto.
7654 (tdisassemble_command): Eliminate assignment in "if" conditional.
7655 (d10v_ts2_register_sim_regno): Eliminate call to
7656 legacy_register_sim_regno.
7657 (d10v_ts3_register_sim_regno): Ditto.
7658
6949171e
JJ
76592003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7660
7661 * thread.c: Reindented.
7662 * lin-lwp.c: Ditto.
7663 * linux-proc.c: Ditto.
7664
98c7071f
BR
76652003-03-28 Bob Rossi <bob_rossi@cox.net>
7666
fbe586ae 7667 * MAINTAINERS (write after approval): Add myself.
98c7071f 7668
5edc9ca6
TR
76692003-03-27 Theodore A. Roth <troth@openavr.org>
7670
7671 * objc-exp.y: Add missing semi-colons.
7672
378bfd1b
AC
76732003-03-27 Andrew Cagney <cagney@redhat.com>
7674
7675 * regcache.c (write_sp): Delete function and references.
7676 * inferior.h (write_sp): Delete declaration.
7677 * valops.c (hand_function_call): Replace write_sp with
7678 TARGET_WRITE_SP.
7679 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7680 (sparc_pop_frame): Ditto.
8ffd9b1b 7681
56056df7
AC
76822003-03-27 Andrew Cagney <cagney@redhat.com>
7683
7684 * NEWS: Mention removal of support for hppa*-*-bsd* and
7685 hppa*-*-osf* natives, and hppa*-*-pro* target.
7686 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7687 * config/pa/xm-pa.h: Obsolete file.
7688 * config/pa/xm-hppab.h: Obsolete file.
7689 * config/pa/nm-hppab.h: Obsolete file.
7690 * config/pa/tm-hppab.h: Obsolete file.
7691 * config/pa/tm-hppao.h: Obsolete file.
7692 * config/pa/nm-hppao.h: Obsolete file.
7693 * config/pa/tm-pro.h: Obsolete file.
7694 * config/pa/hppaosf.mt: Obsolete file.
7695 * config/pa/hppaosf.mh: Obsolete file.
7696 * config/pa/hppapro.mt: Obsolete file.
7697 * config/pa/hppabsd.mt: Obsolete file.
7698 * config/pa/hppabsd.mh: Obsolete file.
7699 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7700 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7701 hppa*-*-osf*.
7702
5873a88d
AC
77032003-03-27 Andrew Cagney <cagney@redhat.com>
7704
7705 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7706 push_arguments. Don't set push_return_address or write_sp.
7707 (d10v_push_dummy_call): Replace d10v_push_arguments.
7708 (d10v_push_return_address, d10v_write_sp): Delete function,
7709 handled by push_dummy_call.
7710
b81774d8
AC
77112003-03-26 Andrew Cagney <cagney@redhat.com>
7712
7713 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7714 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7715 regcache and dummy_addr parameters.
7716 * gdbarch.h, gdbarch.c: Re-generate.
7717 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7718 available; assume it will handle stack alignment and return
7719 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7720 legacy_push_arguments.
7721 (legacy_push_arguments): Rename default_push_arguments.
7722 * value.h (legacy_push_arguments): Rename default_push_arguments.
7723 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7724 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7725 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7726 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7727 * config/i386/tm-symmetry.h: Update.
7728 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7729 * x86-64-tdep.c (x86_64_init_abi): Update.
7730 * v850-tdep.c (v850_gdbarch_init): Update.
7731 * sparc-tdep.c (sparc_gdbarch_init): Update.
7732 * sh-tdep.c (sh_gdbarch_init): Update.
7733 * s390-tdep.c (s390_gdbarch_init): Update.
7734 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7735 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7736 * mips-tdep.c (mips_gdbarch_init): Update.
7737 * mcore-tdep.c (mcore_gdbarch_init): Update.
7738 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7739 * ia64-tdep.c (ia64_gdbarch_init): Update.
7740 * i386-tdep.c (i386_gdbarch_init): Update.
7741 * hppa-tdep.c (hppa_gdbarch_init): Update.
7742 * h8300-tdep.c (h8300_gdbarch_init): Update.
7743 * frv-tdep.c (frv_gdbarch_init): Update.
7744 * d10v-tdep.c (d10v_gdbarch_init): Update.
7745 * cris-tdep.c (cris_gdbarch_init): Update.
7746 * avr-tdep.c (avr_gdbarch_init): Update.
7747 * arm-tdep.c (arm_gdbarch_init): Update.
7748 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7749 * alpha-tdep.c (alpha_gdbarch_init): Update.
7750
f541410f
DJ
77512003-03-26 Daniel Jacobowitz <drow@mvista.com>
7752
7753 * signals/signals.c (do_target_signal_to_host): Correct realtime
7754 signal range test.
7755
69f567ae
DJ
77562003-03-26 Daniel Jacobowitz <drow@mvista.com>
7757
7758 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7759 (struct sal_chain, map_catch_names): Remove.
7760 (catch_exception_command_1): Don't call
7761 handle_gnu_4_16_catch_command.
7762
d5d14a5a
DJ
77632003-03-26 Daniel Jacobowitz <drow@mvista.com>
7764
7765 From Mark Dettinger <dettinge@de.ibm.com>:
7766 * dwarf2cfi.c (read_2u): Increment pointer by two.
7767
bdd73e22
DJ
77682003-03-26 Daniel Jacobowitz <drow@mvista.com>
7769
7770 * signals/signals.c: Fix typos in last change.
7771
960cb555
DJ
77722003-03-26 Daniel Jacobowitz <drow@mvista.com>
7773
7774 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7775 not already defined. Use __SIGRTMIN if available.
7776 (target_signal_from_host): Remove SIGRTMIN block.
7777 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7778 the signal is within the realtime range.
7779
f636b87d
AF
77802003-03-25 Adam Fedor <fedor@gnu.org>
7781
7782 * Makefile.in (infrun.o): Add $(language_h)
7783 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7784 for language specific trampolines.
7785 * language.h (struct language_defn): Add skip_trampoline.
7786 (skip_language_trampoline): Declare.
7787 * language.c (unk_lang_trampoline, skip_language_trampoline):
7788 New functions.
7789 (unknown_language_defn, auto_language_defn, local_language_defn):
7790 Add ukn_lang_trampoline.
7791 * ada-lang.c (ada_language_defn): Add NULL for language
7792 specific skip_trampoline.
7793 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7794 scm-lang.c: Likewise.
7795 * objc-lang.c (objc_skip_trampoline): New function.
7796 (objc_language_defn): Add objc_skip_trampoline.
7797
28f617b3 77982003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
7799
7800 * frame.c (get_prev_frame): Delay validating a frame's ID -
7801 non-NULL, didn't go backwards - until an attempt to unwind it to
7802 the previous frame.
7803
f933a9c5
AC
78042003-03-25 Andrew Cagney <cagney@redhat.com>
7805
7806 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7807 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7808 * gdbarch.h, gdbarch.c: Re-generate.
7809 * config/sparc/tm-sparc.h
7810 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7811 * sparc-tdep.c (sparc_gdbarch_init): Set
7812 deprecated_extra_stack_alignment_needed.
7813 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7814 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7815 extra_stack_alignment_needed.
7816 * v850-tdep.c (v850_gdbarch_init): Ditto.
7817 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7818 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7819 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7820 * cris-tdep.c (cris_gdbarch_init): Ditto.
7821 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7822 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7823
4183d812
AC
78242003-03-25 Andrew Cagney <cagney@redhat.com>
7825
7826 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7827 STORE_STRUCT_RETURN.
7828 * gdbarch.h, gdbarch.c: Regenerate.
7829 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7830 (d10v_push_arguments): Set the struct return register.
7831 (d10v_gdbarch_init): Update.
7832 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7833 * x86-64-tdep.c (x86_64_init_abi): Update.
7834 * vax-tdep.c (vax_gdbarch_init): Update.
7835 * v850-tdep.c (v850_gdbarch_init): Update.
7836 * sparc-tdep.c (sparc_gdbarch_init): Update.
7837 * sh-tdep.c (sh_gdbarch_init): Update.
7838 * s390-tdep.c (s390_gdbarch_init): Update.
7839 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7840 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7841 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7842 * mips-tdep.c (mips_gdbarch_init): Update.
7843 * mcore-tdep.c (mcore_gdbarch_init): Update.
7844 * m68k-tdep.c (m68k_gdbarch_init): Update.
7845 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7846 * ia64-tdep.c (ia64_gdbarch_init): Update.
7847 * i386-tdep.c (i386_gdbarch_init): Update.
7848 * hppa-tdep.c (hppa_gdbarch_init): Update.
7849 * h8300-tdep.c (h8300_gdbarch_init): Update.
7850 * frv-tdep.c (frv_gdbarch_init): Update.
7851 * cris-tdep.c (cris_gdbarch_init): Update.
7852 * avr-tdep.c (avr_gdbarch_init): Update.
7853 * arm-tdep.c (arm_gdbarch_init): Update.
7854 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 7855
1bf6d5cc
AC
78562003-03-25 Andrew Cagney <cagney@redhat.com>
7857
7858 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7859 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7860 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7861 * gdbarch.h, gdbarch.c: Regenerate.
7862 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7863 call_dummy_stack_adjust_p.
7864 * vax-tdep.c (vax_gdbarch_init): Ditto.
7865 * v850-tdep.c (v850_gdbarch_init): Ditto.
7866 * sh-tdep.c (sh_gdbarch_init): Ditto.
7867 * s390-tdep.c (s390_gdbarch_init): Ditto.
7868 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7869 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7870 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7871 * mips-tdep.c (mips_gdbarch_init): Ditto.
7872 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7873 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7874 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7875 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7876 * i386-tdep.c (i386_gdbarch_init): Ditto.
7877 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7878 * frv-tdep.c (frv_gdbarch_init): Ditto.
7879 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7880 * cris-tdep.c (cris_gdbarch_init): Ditto.
7881 * avr-tdep.c (avr_gdbarch_init): Ditto.
7882 * arm-tdep.c (arm_gdbarch_init): Ditto.
7883 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7884 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7885 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7886 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7887 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7888 call_dummy_stack_adjust_p.
7889 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7890 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7891 * sparc-tdep.c (sparc32_push_arguments): Update.
7892 * valops.c (hand_function_call): Update.
7893
71c08af0
CV
78942003-03-25 Corinna Vinschen <vinschen@redhat.com>
7895
7896 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7897 set_gdbarch_char_signed.
7898
30757f90
RE
78992003-03-25 Richard Earnshaw <rearnsha@arm.com>
7900
7901 PR cli/548
7902 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7903
03d48a7d
RE
79042003-03-25 Richard Earnshaw <rearnsha@arm.com>
7905
7906 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7907 (_initialize_arm_tdep): Don't set tm_print_insn.
7908
2cf6873c
AF
79092003-03-24 Adam Fedor <fedor@gnu.org>
7910
7911 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7912 * objc-lang.h: Add multiple inclusion protection.
7913 (start_msglist, add_msglist, end_msglist): Additional declarations.
7914
17c0759e
RE
79152003-03-24 Richard Earnshaw <rearnsha@arm.com>
7916
7917 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7918 value was renamed to ARM_FLOAT_SOFT_FPA.
7919
618ce49f
AC
79202003-03-23 Andrew Cagney <cagney@redhat.com>
7921
7922 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7923 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7924 * gdbarch.h, gdbarch.c: Regenerate.
7925 * valops.c (hand_function_call): Update.
7926 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7927 * frame.c (legacy_saved_regs_this_id): Update.
7928 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7929 * dummy-frame.h: Update.
7930 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7931 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7932 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7933 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7934 * config/m68k/tm-sun3.h: Update.
7935 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7936 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7937 * x86-64-tdep.c (x86_64_init_abi): Update.
7938 * vax-tdep.c (vax_gdbarch_init): Update.
7939 * v850-tdep.c (v850_gdbarch_init): Update.
7940 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7941 * sh-tdep.c (sh_gdbarch_init): Update.
7942 * s390-tdep.c (s390_gdbarch_init): Update.
7943 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7944 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7945 (frame_get_saved_regs): Update.
7946 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7947 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7948 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7949 * mips-tdep.c (mips_gdbarch_init): Update.
7950 * mcore-tdep.c (mcore_gdbarch_init): Update.
7951 * m68k-tdep.c (m68k_gdbarch_init): Update.
7952 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7953 * ia64-tdep.c (ia64_gdbarch_init): Update.
7954 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7955 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7956 (i386_interix_back_one_frame): Update.
7957 * hppa-tdep.c (hppa_gdbarch_init): Update.
7958 (hppa_init_extra_frame_info): Update.
7959 * h8300-tdep.c (h8300_gdbarch_init): Update.
7960 * frv-tdep.c (frv_gdbarch_init): Update.
7961 * cris-tdep.c (cris_gdbarch_init): Update.
7962 * avr-tdep.c (avr_gdbarch_init): Update.
7963 * arm-tdep.c (arm_gdbarch_init): Update.
7964 * alpha-tdep.c (alpha_gdbarch_init): Update.
7965
fd50bc42
RE
79662003-03-22 Richard Earnshaw <rearnsha@arm.com>
7967
7968 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7969 (arm_get_fp_model): Declare.
7970 * arm-tdep.c (fp_model_strings): New string array.
7971 (arm_fp_model, current_fp_model): New variables.
7972 (arm_get_fp_model): New function.
7973 (arm_set_fp): New function.
7974 (set_fp_model_sfunc): New function.
7975 (show_fp_model): New function.
7976 (_initialize_arm_tdep): Add new command to set/show the FPU.
7977 (arm_extract_return_value): Use arm_get_fp_model.
7978 (arm_store_return_value): Likewise.
7979 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7980 to initialize the floating-point data types.
7981 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7982 model is FPA.
7983
26304000
RE
79842003-03-22 Richard Earnshaw <rearnsha@arm.com>
7985
7986 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7987 the current setting of each value.
7988 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 7989 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
7990 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7991 commands and add new version as subcommands of "set/show arm".
7992
afd7eef0
RE
79932003-03-22 Richard Earnshaw <rearnsha@arm.com>
7994
7995 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7996 (set_arm_command, show_arm_command): New functions.
7997 (_initialize_arm_tdep): Add them.
7998 (num_disassembly_options): Renamed from num_flavor_options.
7999 (valid_disassembly_styles): Renamed from valid_flavors.
8000 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 8001 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
8002 set_disassembly_flavor_sfunc.
8003 (set_disassembly_style): Renamed from set_disassembly_flavor.
8004 (arm_othernames): Updated.
8005 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8006 command. Add "set/show arm disassembly" commands. Deprecate
8007 "othernames" command.
8008
299a7944
RE
80092003-03-22 Richard Earnshaw <rearnsha@arm.com>
8010
8011 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8012 (arm-tdep.o): Depend on elf_arm_h.
8013
c1dac9e6
RE
80142003-03-22 Richard Earnshaw <rearnsha@arm.com>
8015
8016 * Makefile.in (coff_internal_h): Define.
8017 (arm-tdep.o): Update dependencies.
8018
2702d96c
RE
80192003-03-22 Richard Earnshaw <rearnsha@arm.com>
8020
8021 * arm-tdep.c (prologue_cache): Delete.
8022 (check_prologue_cache, save_prologue_cache): Delete.
8023 (arm_scan_prologue): Don't check or update the prologue_cache.
8024 (arm_gdb_arch_init): Don't initialize it.
8025 (_initialize_arm_tdep): Likewise.
8026
27d5d74b
SC
80272003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8028
8029 * MAINTAINERS (tui): Maintainer of tui code.
8030
1762d96d
CV
80312003-03-21 Corinna Vinschen <vinschen@redhat.com>
8032
8033 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8034 (i386-cygwin-tdep.o): Add dependencies.
8035 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8036 * i386-cygwin-tdep.c: New file.
8037 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8038 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8039
4c2e2391
AC
80402003-03-20 Andrew Cagney <cagney@redhat.com>
8041
f20d38b7
AC
8042 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8043 (handle_inferior_event): Remove code calling
8044 DYNAMIC_TRAMPOLINE_NEXTPC.
8045
0022b738
AC
8046 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8047 already has a full path.
8048
864dbc90
AC
8049 * main.c (gdb_main): Return 1.
8050 (captured_main): Call error to report an invalid interpreter.
8051
4c2e2391
AC
8052 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8053 * alpha-osf1-tdep.c: Include "gdb_string.h".
8054
5ef7553b
JB
80552003-03-19 J. Brobecker <brobecker@gnat.com>
8056
8057 Continuing work to convert the hppa targets to multiarch partial.
8058
8059 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8060 method, now that hppa_push_dummy_frame has a conformant prototype.
8061 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8062 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8063 for the switch to multiarch partial.
8064
7bde8967
KB
80652003-03-19 Kevin Buettner <kevinb@redhat.com>
8066
8067 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8068 when iss is issNull.
8069
b006a9e9
KB
80702003-03-18 Kevin Buettner <kevinb@redhat.com>
8071
8072 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8073 NUM_REGS bounds check.
8074
5e2e9765
KB
80752003-03-18 Kevin Buettner <kevinb@redhat.com>
8076
8077 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8078 * mips-tdep.c (gdb_assert.h): Include.
8079 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8080 (mips_register_name): Handle integer registers explicitly. Add
8081 bounds checking.
8082 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8083 (mips_lsi33k_reg_names): Don't list integer registers; they're
8084 handled by mips_register_name() now.
8085 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8086 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8087 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8088 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8089 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8090
a2867626
AC
80912003-03-18 Andrew Cagney <cagney@redhat.com>
8092
8093 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8094 a void pointer.
8095 * gdbtypes.h (print_scalar_formatted): Update declaration.
8096 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8097
06600e06
JB
80982003-03-18 J. Brobecker <brobecker@gnat.com>
8099
8100 * infrun.c (observer.h): Add #include.
8101 (normal_stop): Add call to observer_notify_normal_stop.
8102 * Makefile.in (infrun.o): Add dependency on observer.h.
8103
7daf4f5b
JB
81042003-03-18 J. Brobecker <brobecker@gnat.com>
8105
8106 Continuing work to convert the hppa targets to multiarch partial.
8107 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8108 parameter. Reformat comment.
8109 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8110 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8111 to match new profile.
8112
3371ccc0
JB
81132003-03-18 J. Brobecker <brobecker@gnat.com>
8114
8115 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8116 appear to be working in any case.
8117
4fbe891e
JB
81182003-03-18 J. Brobecker <brobecker@gnat.com>
8119
8120 * observer.c (observer_test_first_observer): New static variable.
8121 (observer_test_second_observer): Likewise.
8122 (observer_test_third_observer): Likewise.
8123 (observer_test_first_notification_function): New static function.
8124 (observer_test_second_notification_function): Likewise.
8125 (observer_test_third_notification_function): Likewise.
8126
a7ff40e7
JB
81272003-03-17 J. Brobecker <brobecker@gnat.com>
8128
8129 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8130 * somsolib.c (gdb_assert.h): Likewise.
8131 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8132 (somsolib.o): Likewise.
8133
26ca4152
AC
81342003-03-17 Andrew Cagney <cagney@redhat.com>
8135
8136 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8137 BFD. Simplify setting of di.endian.
8138
0a613259
AC
81392003-03-17 Andrew Cagney <cagney@redhat.com>
8140
8141 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8142 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8143
8144 From Elena Zannoni <ezannoni@redhat.com>
8145 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8146 vector and floating-point parameters.
8147 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8148 convention.
8149 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8150
1132738f
FN
81512003-03-17 Fernando Nasser <fnasser@redhat.com>
8152
8153 * MAINTAINERS: Remove my name from several maintainership roles.
8154
6dc42492
AC
81552003-03-17 Andrew Cagney <cagney@redhat.com>
8156
8157 Fix frame off-by-one bug.
8158 * frame-unwind.h (frame_this_id_ftype): Replace
8159 frame_unwind_id_ftype.
8160 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8161 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8162 with "prev_register".
8163 * frame-unwind.c (frame_unwind_find_by_pc): Return
8164 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8165 comment.
8166 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8167 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8168 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8169 (dummy_frame_unwind): Update.
8170 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8171 sentinel_frame_register_unwind.
8172 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8173 (sentinel_frame_unwinder): Update.
8174 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8175 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8176 * frame.c (create_sentinel_frame): Update. Initialize
8177 "prologue_cache" instead of "unwind_cache".
8178 (frame_register_unwind): Call this frame's prev_register with the
8179 next frame and this frame's prologue cache.
8180 (get_prev_frame): Simplify. Always call prev frame's this_id with
8181 this frame and prev frame's prologue cache. Document that this
8182 call is shifted one to the left when compared to the
8183 frame_register_unwind call.
8184 (legacy_saved_regs_prev_register): Replace
8185 frame_saved_regs_register_unwind.
8186 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8187 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8188 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8189 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8190 (d10v_frame_unwind): Update.
8191 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8192 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8193 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8194 "saved_regs" with "this_saved_regs".
8195
efd710d6
AC
81962003-03-16 Andrew Cagney <cagney@redhat.com>
8197
8198 * frame.c (frame_pop): Don't call target_store_registers. Fix
8199 problem reported by Mark Kettenis.
8200
4e259f09
MK
82012003-03-16 Mark Kettenis <kettenis@gnu.org>
8202
8203 * i386-tdep.c (i386_register_type): Renamed from
8204 i386_register_virtual_type. Adjust function signature.
8205 (i386_gdbarch_init): Set register_type instead of
8206 deprecated_max_register_raw_size,
8207 deprecated_max_register_virtual_size and register_virtual_type.
8208
055bb976
AC
82092003-03-14 Andrew Cagney <cagney@redhat.com>
8210
8211 * frame.c (get_prev_frame): When a legacy frame, always call
8212 legacy_get_prev_frame. Simplify unwind code using assumption that
8213 the unwinder is new.
8214 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8215 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8216 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8217
ac2adee5
AC
82182003-03-14 Andrew Cagney <cagney@redhat.com>
8219
8220 * frame.c (get_saved_register): Delete function.
8221 * frame.h (get_saved_register): Delete declaration.
8222 * xstormy16-tdep.c: Update comment.
8223 * regcache.h: Update comments.
8224 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8225 get_saved_register and extract_address, use
8226 frame_read_unsigned_register.
8227 (sparc_frame_saved_pc): Ditto.
8228 (sparc_get_saved_register): Instead of get_saved_register, use
8229 frame_register.
8230 (sparc_pop_frame): Ditto.
8231 * findvar.c: Update comments.
8232 (value_of_register): Call frame_register instead of
8233 get_saved_register.
8234 (value_from_register): Ditto.
8235 * config/sparc/tm-sparc.h: Update comment.
8236 * breakpoint.c: Update comment.
8237
129c1cd6
AC
82382003-03-14 Andrew Cagney <cagney@redhat.com>
8239
8240 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8241 GET_SAVED_REGISTER.
8242 * gdbarch.h, gdbarch.c: Re-generate.
8243 * frame.h: Update comments.
8244 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8245 * x86-64-tdep.c (x86_64_init_abi): Update.
8246 * sparc-tdep.c (sparc_gdbarch_init): Update.
8247 * sh-tdep.c (sh_gdbarch_init): Update.
8248 * mips-tdep.c (mips_gdbarch_init): Update.
8249 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8250 * cris-tdep.c (cris_gdbarch_init): Update.
8251 * ia64-tdep.c (ia64_gdbarch_init): Update.
8252 * frame.c (frame_register): Update.
8253 (get_saved_register): Update.
8254 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 8255
749b82f6
AC
82562003-03-13 Andrew Cagney <cagney@redhat.com>
8257
8258 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8259 * gdbarch.h, gdbarch.c: Regenerate.
8260 * valops.c (hand_function_call): Update comment.
8261 * stack.c (return_command): Update comment.
8262 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8263 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8264 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8265 * x86-64-tdep.c (x86_64_init_abi): Update.
8266 * vax-tdep.c (vax_gdbarch_init): Update.
8267 * v850-tdep.c (v850_gdbarch_init): Update.
8268 * sparc-tdep.c (sparc_gdbarch_init): Update.
8269 * sh-tdep.c (sh_gdbarch_init): Update.
8270 * s390-tdep.c (s390_gdbarch_init): Update.
8271 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8272 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8273 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8274 * mips-tdep.c (mips_gdbarch_init): Update.
8275 * mcore-tdep.c (mcore_gdbarch_init): Update.
8276 * m68k-tdep.c (m68k_gdbarch_init): Update.
8277 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8278 * ia64-tdep.c (ia64_gdbarch_init): Update.
8279 * i386-tdep.c (i386_gdbarch_init): Update.
8280 * hppa-tdep.c (hppa_gdbarch_init): Update.
8281 * h8300-tdep.c (h8300_gdbarch_init): Update.
8282 * frv-tdep.c (frv_gdbarch_init): Update.
8283 * cris-tdep.c (cris_gdbarch_init): Update.
8284 * avr-tdep.c (avr_gdbarch_init): Update.
8285 * arm-tdep.c (arm_gdbarch_init): Update.
8286 * alpha-tdep.c (alpha_gdbarch_init): Update.
8287
1594fa56
AC
82882003-03-13 Andrew Cagney <cagney@redhat.com>
8289
8290 * frame.c (legacy_frame_p): New function.
8291 (get_prev_frame): Use legacy_frame_p.
8292 * frame.h (legacy_frame_p): Declare.
8293
7717fda3
V
82942003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8295
fbe586ae 8296 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
8297 listing corrected.
8298
0c67cbe9
V
82992003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8300
fbe586ae 8301 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 8302
03febf99
AC
83032003-03-12 Andrew Cagney <cagney@redhat.com>
8304
8305 * frame.c (get_prev_frame): Rename the frame parameter to
8306 "this_frame".
8307 (get_next_frame, legacy_get_prev_frame): Ditto.
8308
0a1e1ca1
AC
83092003-03-12 Andrew Cagney <cagney@redhat.com>
8310
8311 * frame.c (get_current_frame): Check target_has_registers before
8312 checking target_has_stack.
8313 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8314 instead of deprecated_selected_frame.
8315 * findvar.c (value_of_register): Pass "frame", not
8316 deprecated_selected_frame, to value_of_builtin_reg.
8317
a66a9c23
AC
83182003-03-12 Andrew Cagney <cagney@redhat.com>
8319
8320 * regcache.c (regcache_cooked_write_signed): New function.
8321 (regcache_cooked_write_unsigned): New function.
8322 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8323 (regcache_cooked_read_signed): Fix regnum in range assertion.
8324 * regcache.h (regcache_cooked_write_signed): Declare.
8325 (regcache_cooked_write_unsigned): Declare.
8326
8bedc050
AC
83272003-03-12 Andrew Cagney <cagney@redhat.com>
8328
8329 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8330 * gdbarch.h, gdbarch.c: Re-generate.
8331 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8332 * x86-64-tdep.h: Update.
8333 * x86-64-tdep.c (x86_64_init_abi): Update.
8334 * v850-tdep.c (v850_gdbarch_init): Update.
8335 * sparc-tdep.c (sparc_gdbarch_init): Update.
8336 * sh-tdep.c (sh_gdbarch_init): Update.
8337 * s390-tdep.c (s390_gdbarch_init): Update.
8338 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8339 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8340 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8341 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8342 * mips-tdep.c (mips_gdbarch_init): Update.
8343 * mcore-tdep.c (mcore_gdbarch_init): Update.
8344 * m68k-tdep.c (m68k_gdbarch_init): Update.
8345 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8346 * ia64-tdep.c (ia64_gdbarch_init): Update.
8347 * i386-tdep.c (i386_gdbarch_init): Update.
8348 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8349 * hppa-tdep.c (hppa_gdbarch_init): Update.
8350 * h8300-tdep.c (h8300_gdbarch_init): Update.
8351 * frv-tdep.c (frv_gdbarch_init): Update.
8352 * cris-tdep.c (cris_gdbarch_init): Update.
8353 * avr-tdep.c (avr_gdbarch_init): Update.
8354 * arm-tdep.c (arm_gdbarch_init): Update.
8355 * alpha-tdep.c (alpha_gdbarch_init): Update.
8356 * sh-tdep.c (sh_init_extra_frame_info): Update.
8357 (sh64_init_extra_frame_info): Update.
8358 * ns32knbsd-nat.c (frame_num_args): Update.
8359 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8360 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8361 (xstormy16_frame_chain_valid): Update.
8362 * vax-tdep.c (vax_saved_pc_after_call): Update.
8363 * v850-tdep.c (v850_frame_chain): Update.
8364 (v850_pop_frame): Update.
8365 (v850_init_extra_frame_info): Update.
8366 * sparc-tdep.c (setup_arbitrary_frame): Update.
8367 * ns32k-tdep.c (umax_frame_num_args): Update.
8368 * s390-tdep.c (s390_pop_frame_regular): Update.
8369 * mn10300-tdep.c (mn10300_frame_chain): Update.
8370 (mn10300_pop_frame_regular): Update.
8371 (mn10300_init_extra_frame_info): Update.
8372 * mips-tdep.c (mips_init_frame_pc_first): Update.
8373 (mips_frame_chain): Update.
8374 (mips_pop_frame): Update.
8375 * mcore-tdep.c (mcore_frame_chain): Update.
8376 (mcore_pop_frame): Update.
8377 (mcore_init_extra_frame_info): Update.
8378 * arch-utils.c (init_frame_pc_default): Update.
8379 * m68k-tdep.c (isi_frame_num_args): Update.
8380 (delta68_frame_num_args): Update.
8381 (news_frame_num_args): Update.
8382 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8383 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8384 (alpha_frame_chain): Update.
8385 (alpha_pop_frame): Update.
8386 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8387 (hppa_init_extra_frame_info): Update.
8388 (hppa_frame_chain): Update.
8389 (hppa_frame_chain_valid): Update.
8390 * cris-tdep.c (cris_init_extra_frame_info): Update.
8391 * avr-tdep.c (avr_init_extra_frame_info): Update.
8392 * arm-tdep.c (arm_frame_chain_valid): Update.
8393 (arm_init_extra_frame_info): Update.
8394 (arm_pop_frame): Update.
8395 * frame.c (frame_pc_unwind): Update.
8396 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8397 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8398 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8399 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8400 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8401 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8402
7a25a7c1
AC
84032003-03-12 Andrew Cagney <cagney@redhat.com>
8404
8405 Eliminate the need for POP_FRAME.
8406 * frame.c (do_frame_unwind_register): New function.
8407 (frame_pop): When no POP_FRAME, pop the frame using register
8408 unwind and a scratch regcache.
8409 (frame_saved_regs_pop): Delete function.
8410 (trad_frame_unwinder): Update.
8411 * d10v-tdep.c (d10v_frame_pop): Delete function.
8412 (d10v_frame_unwind): Update.
8413 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8414 (sentinel_frame_unwinder): Update.
8415 * dummy-frame.c (dummy_frame_pop): Delete function.
8416 (dummy_frame_unwind): Update.
8417 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8418 (struct frame_unwind): Update.
8419
2f38ef89
KB
84202003-03-11 Kevin Buettner <kevinb@redhat.com>
8421
8422 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8423 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8424 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8425 Do range checks on register number obtained from debugging info.
8426 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8427 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8428 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8429 mapping function.
8430 (do_fp_register_row): Fix typo which caused double type to be
8431 used when attempting to unpack a float.
8432
552f4abf
JB
84332003-03-11 J. Brobecker <brobecker@gnat.com>
8434
8435 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8436
e0d2ae16
AC
84372003-03-11 Andrew Cagney <cagney@redhat.com>
8438
8439 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8440 frame. Problem found by Corinna Vinschen.
8441
ddbfdd06
PM
84422003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8443
8444 * doublest.c (floatformat_from_length): Accept also
8445 the real size of 'long double' type.
8446
088b2ddc 84472003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 8448
088b2ddc 8449 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
8450 * breakpoint.c (bpstat_copy): Copy the command lines as well
8451 as the old value, to match what is freed in bpstat_clear.
8452
f56f77c1
DC
84532003-03-10 David Carlton <carlton@math.stanford.edu>
8454
8455 * minsyms.c (add_minsym_to_hash_table): Replace
8456 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8457 (compare_minimal_symbols, compact_minimal_symbols)
8458 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8459 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8460 of DEPRECATED_SYMBOL_MATCHES_NAME.
8461 (lookup_minimal_symbol_solib_trampoline): Ditto.
8462
5602984a
AC
84632003-03-10 Andrew Cagney <cagney@redhat.com>
8464
8465 * regcache.h (regcache_cooked_read_ftype): Define.
8466 (regcache_save, regcache_restore): Add a cooked_read parameter.
8467 * regcache.c (regcache_save, regcache_restore): Update.
8468 (do_cooked_read): New function.
8469 (regcache_cpy): Pass do_cooked_read to regcache_save and
8470 regcache_restore.
8471
8bedc050
AC
84722003-03-10 Andrew Cagney <cagney@redhat.com>
8473
8474 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8475 * gdbarch.h, gdbarch.c: Re-generate.
8476 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8477 * x86-64-tdep.h: Update.
8478 * x86-64-tdep.c (x86_64_init_abi): Update.
8479 * v850-tdep.c (v850_gdbarch_init): Update.
8480 * sparc-tdep.c (sparc_gdbarch_init): Update.
8481 * sh-tdep.c (sh_gdbarch_init): Update.
8482 * s390-tdep.c (s390_gdbarch_init): Update.
8483 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8484 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8485 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8486 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8487 * mips-tdep.c (mips_gdbarch_init): Update.
8488 * mcore-tdep.c (mcore_gdbarch_init): Update.
8489 * m68k-tdep.c (m68k_gdbarch_init): Update.
8490 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8491 * ia64-tdep.c (ia64_gdbarch_init): Update.
8492 * i386-tdep.c (i386_gdbarch_init): Update.
8493 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8494 * hppa-tdep.c (hppa_gdbarch_init): Update.
8495 * h8300-tdep.c (h8300_gdbarch_init): Update.
8496 * frv-tdep.c (frv_gdbarch_init): Update.
8497 * cris-tdep.c (cris_gdbarch_init): Update.
8498 * avr-tdep.c (avr_gdbarch_init): Update.
8499 * arm-tdep.c (arm_gdbarch_init): Update.
8500 * alpha-tdep.c (alpha_gdbarch_init): Update.
8501 * sh-tdep.c (sh_init_extra_frame_info): Update.
8502 (sh64_init_extra_frame_info): Update.
8503 * ns32knbsd-nat.c (frame_num_args): Update.
8504 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8505 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8506 (xstormy16_frame_chain_valid): Update.
8507 * vax-tdep.c (vax_saved_pc_after_call): Update.
8508 * v850-tdep.c (v850_frame_chain): Update.
8509 (v850_pop_frame): Update.
8510 (v850_init_extra_frame_info): Update.
8511 * sparc-tdep.c (setup_arbitrary_frame): Update.
8512 * ns32k-tdep.c (umax_frame_num_args): Update.
8513 * s390-tdep.c (s390_pop_frame_regular): Update.
8514 * mn10300-tdep.c (mn10300_frame_chain): Update.
8515 (mn10300_pop_frame_regular): Update.
8516 (mn10300_init_extra_frame_info): Update.
8517 * mips-tdep.c (mips_init_frame_pc_first): Update.
8518 (mips_frame_chain): Update.
8519 (mips_pop_frame): Update.
8520 * mcore-tdep.c (mcore_frame_chain): Update.
8521 (mcore_pop_frame): Update.
8522 (mcore_init_extra_frame_info): Update.
8523 * arch-utils.c (init_frame_pc_default): Update.
8524 * m68k-tdep.c (isi_frame_num_args): Update.
8525 (delta68_frame_num_args): Update.
8526 (news_frame_num_args): Update.
8527 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8528 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8529 (alpha_frame_chain): Update.
8530 (alpha_pop_frame): Update.
8531 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8532 (hppa_init_extra_frame_info): Update.
8533 (hppa_frame_chain): Update.
8534 (hppa_frame_chain_valid): Update.
8535 * cris-tdep.c (cris_init_extra_frame_info): Update.
8536 * avr-tdep.c (avr_init_extra_frame_info): Update.
8537 * arm-tdep.c (arm_frame_chain_valid): Update.
8538 (arm_init_extra_frame_info): Update.
8539 (arm_pop_frame): Update.
8540 * frame.c (frame_pc_unwind): Update.
8541 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8542 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8543 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8544 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8545 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8546 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8547
12cc2063
AC
85482003-03-10 Andrew Cagney <cagney@redhat.com>
8549
8550 * gdbarch.sh (gdbarch_unwind_pc): New method.
8551 * gdbarch.h, gdbarch.c: Regenerate.
8552 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8553 but use read_pc and FRAME_SAVED_PC as fall backs.
8554 (frame_saved_regs_pc_unwind): Delete function.
8555 (trad_frame_unwinder): Update.
8556 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8557 (struct frame_unwind): Update.
8558 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8559 (dummy_frame_unwind): Update.
8560 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8561 (sentinel_frame_unwinder): Update.
8562 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8563 (d10v_frame_unwind): Update.
8564 (d10v_unwind_pc): New function.
8565 (d10v_gdbarch_init): Set unwind_pc.
8566
ef840a37
AC
85672003-03-10 Andrew Cagney <cagney@redhat.com>
8568
a2ce2e56
AC
8569 * gdbarch.h: Re-generate.
8570
ef840a37
AC
8571 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8572 PC.
8573 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8574 the PC register.
8575
08f3424b
MK
85762003-03-08 Mark Kettenis <kettenis@gnu.org>
8577
8578 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8579
1248ede2
AC
85802003-03-08 Andrew Cagney <cagney@redhat.com>
8581
8582 * cli-out.c: Update copyright.
8583 (cli_out_data): Define typedef. Use instead of ui_out_data.
8584
f49bacc8
AC
85852003-03-08 Andrew Cagney <cagney@redhat.com>
8586
8587 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8588 the result.
8589
9b05f993
AC
85902003-03-07 Andrew Cagney <cagney@redhat.com>
8591
8592 * gdbarch.sh: Don't generate two macro definitions when an
8593 undefined macro taking no arguments.
8594 * gdbarch.h: Regenerate.
8ffd9b1b 8595
166f4c7b
ML
85962002-03-07 Michal Ludvig <mludvig@suse.cz>
8597
8598 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8599 (x86_64_unwind_dummy_id): New functions.
8600 (x86_64_init_abi): Register these two new functions.
8601
6d686a84
ML
86022003-03-07 Michal Ludvig <mludvig@suse.cz>
8603
8604 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 8605 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
8606 separate function.
8607 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8608
6314f104
AC
86092003-03-05 Andrew Cagney <cagney@redhat.com>
8610
8611 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8612 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8613 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8614 to use unwind_dummy_id when a dummy frame.
8615 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8616 predicate.
8617 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 8618
ceea5145
AC
86192003-03-05 Andrew Cagney <cagney@redhat.com>
8620
8621 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8622 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8623 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8624 values.
8625
0d843116
AC
86262003-03-05 Andrew Cagney <cagney@redhat.com>
8627
8628 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8629 (struct d10v_unwind_cache): Delete field "frameless". Replace
8630 "next_addr" with "sp_offset". Add "r11_offset".
8631 (d10v_frame_unwind_cache): Update.
8632 (prologue_find_regs): Update. When "mv r11, sp", save the
8633 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8634 RN was saved in r11_offset.
8635
b2579786
AC
86362003-03-05 Andrew Cagney <cagney@redhat.com>
8637
8638 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8639 cached PC value in the next frame.
8640
218e5956
AC
86412003-03-05 Andrew Cagney <cagney@redhat.com>
8642
8643 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8644 "id_unwind_cache" with "id".
8645 (frame_id_unwind): Delete declaration.
8646 * frame.c (frame_id_unwind): Delete function.
8647 (get_prev_frame): Call the frame id unwind method directly. Store
8648 the returned next frame's ID value in NEXT_FRAME. Note that there
8649 is a problem with the wrong unwind ID being called with the wrong
8650 unwind cache.
8651
ed363b1b
DJ
86522003-03-05 Daniel Jacobowitz <drow@mvista.com>
8653
8654 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8655
fe1f4a5e
DJ
86562003-03-05 James Ingham <jingham@apple.com>
8657 Daniel Jacobowitz <drow@mvista.com>
8658
8659 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8660 (auto_cp_abi): New variable.
8661 (current_cp_abi, num_cp_abis): Make static.
8662 (CP_ABI_MAX): Define.
8663 (cp_abis): Turn into an array.
8664 (value_virtual_fn_field): Fix formatting.
8665 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8666 takes a pointer.
8667 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8668 (list_cp_abis, _initialize_cp_abi): New functions.
8669 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8670 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8671 switch_to_cp_abi. Update prototype for register_cp_abi.
8672 * Makefile.in (cp-abi.o): Update dependencies.
8673 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8674 instead of switch_to_cp_abi.
8675 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8676 register_cp_abi.
8677 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8678 register_cp_abi.
8679 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8680
e4adbba9
DJ
86812003-03-05 Daniel Jacobowitz <drow@mvista.com>
8682
8683 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8684 * dwarf2loc.c: Include "regcache.h".
8685 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8686 register_size.
8687 * Makefile.in (dwarf2loc.o): Update dependencies.
8688
91ccbfc1
TR
86892003-03-04 Theodore A. Roth <troth@openavr.org>
8690
8691 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8692 number of io registers reported by remote target is not a multiple of
8693 step.
8694
3d4e8fd2
DC
86952003-03-04 David Carlton <carlton@math.stanford.edu>
8696
8697 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8698 (lookup_symbol_aux_psymtabs): Update call to
8699 lookup_partial_symbol.
8700 (lookup_transparent_type, find_main_psymtab)
8701 (make_symbol_overload_list): Ditto.
8702
ed42d87b
KH
87032003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8704
8705 * MAINTAINERS (Write after approval): Update my email address.
8706
a0ed5532
AC
87072003-03-03 Andrew Cagney <cagney@redhat.com>
8708
8709 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8710 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8711 predicate. Replace MAX_REGISTER_RAW_SIZE.
8712 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8713 MAX_REGISTER_VIRTUAL_SIZE.
8714 * regcache.c (legacy_max_register_raw_size): New function.
8715 (legacy_max_register_virtual_size): New function.
8716 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8717 (MAX_REGISTER_RAW_SIZE): Define.
8718 (legacy_max_register_raw_size): Declare.
8719 (legacy_max_register_virtual_size): Declare.
8720 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8721 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8722 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8723 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8724 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8725 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8726 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8727 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8728 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8729 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8730 * vax-tdep.c (vax_gdbarch_init): Update.
8731 * v850-tdep.c (v850_gdbarch_init): Update.
8732 * sparc-tdep.c (sparc_gdbarch_init): Update.
8733 * sh-tdep.c (sh_gdbarch_init): Update.
8734 * s390-tdep.c (s390_gdbarch_init): Update.
8735 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8736 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8737 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8738 * mips-tdep.c (mips_gdbarch_init): Update.
8739 * mcore-tdep.c (mcore_gdbarch_init): Update.
8740 * m68k-tdep.c (m68k_gdbarch_init): Update.
8741 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8742 * ia64-tdep.c (ia64_gdbarch_init): Update.
8743 * i386-tdep.c (i386_gdbarch_init): Update.
8744 * hppa-tdep.c (hppa_gdbarch_init): Update.
8745 * h8300-tdep.c (h8300_gdbarch_init): Update.
8746 * frv-tdep.c (frv_gdbarch_init): Update.
8747 * cris-tdep.c (cris_gdbarch_init): Update.
8748 * avr-tdep.c (avr_gdbarch_init): Update.
8749 * arm-tdep.c (arm_gdbarch_init): Update.
8750 * alpha-tdep.c (alpha_gdbarch_init): Update.
8751 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8752 max_register_raw_size or max_register_virtual_size.
8753
8e437497
DC
87542003-03-03 David Carlton <carlton@math.stanford.edu>
8755
8756 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8757 SYMBOL_MATCHES_NAME, add comment.
8758 (SYMBOL_MATCHES_NATURAL_NAME): New.
8759 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8760 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8761 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8762 * symtab.c (lookup_partial_symbol): Use
8763 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8764 unhelpful comment.
8765 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8766 SYMBOL_MATCHES_NAME.
8767 Fix for PR c++/33.
8768
25120b0d
DC
87692003-03-03 David Carlton <carlton@math.stanford.edu>
8770
8771 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8772 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8773 by regexp matching against SYMBOL_NATURAL_NAME.
8774
78a11fb4
DC
87752003-03-03 David Carlton <carlton@math.stanford.edu>
8776
8777 * linespec.c (find_method): Extract code into collect_methods.
8778 (collect_methods): New.
8779
645dd519
MK
87802003-03-02 Mark Kettenis <kettenis@gnu.org>
8781
b4700d91
MK
8782 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8783 get_frame_base.
8784
645dd519
MK
8785 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8786 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8787
0aa7e1aa
SC
87882003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8789
8ffd9b1b 8790 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
8791 and not regnum when summing the size of all registers up to regnum.
8792
f30ee0bc
AC
87932003-03-01 Andrew Cagney <cagney@redhat.com>
8794
8795 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8796 FRAME_INIT_SAVED_REGS.
8797 * gdbarch.h, gdbarch.c: Regenerate.
8798 * stack.c (frame_info): Update.
8799 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8800 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8801 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8802 * ns32k-tdep.c (ns32k_pop_frame): Update.
8803 * mips-tdep.c (mips_pop_frame): Update.
8804 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8805 * ia64-tdep.c (ia64_frame_chain): Update.
8806 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8807 (ia64_frameless_function_invocation): Update.
8808 (ia64_init_extra_frame_info): Update.
8809 (ia64_pop_frame_regular): Update.
8810 * frame.h (struct frame_info): Update comment.
8811 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8812 * frame.c (frame_saved_regs_register_unwind): Update.
8813 (frame_saved_regs_register_unwind): Update.
8814 (deprecated_generic_get_saved_register): Update.
8815 * cris-tdep.c: Update comment.
8816 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8817 Rename macro.
8818 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8819 * x86-64-tdep.c (x86_64_init_abi): Update.
8820 * vax-tdep.c (vax_gdbarch_init): Update.
8821 * v850-tdep.c (v850_gdbarch_init): Update.
8822 * sparc-tdep.c (sparc_gdbarch_init): Update.
8823 * sh-tdep.c (sh_gdbarch_init): Update.
8824 * s390-tdep.c (s390_gdbarch_init): Update.
8825 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8826 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8827 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8828 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8829 * mips-tdep.c (mips_gdbarch_init): Update.
8830 * mcore-tdep.c (mcore_gdbarch_init): Update.
8831 * m68k-tdep.c (m68k_gdbarch_init): Update.
8832 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8833 * ia64-tdep.c (ia64_gdbarch_init): Update.
8834 * i386-tdep.c (i386_gdbarch_init): Update.
8835 * frv-tdep.c (frv_gdbarch_init): Update.
8836 * avr-tdep.c (avr_gdbarch_init): Update.
8837 * arm-tdep.c (arm_gdbarch_init): Update.
8838 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8839
42fa7c0f
AC
88402003-03-01 Andrew Cagney <cagney@redhat.com>
8841
8842 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8843 option enum and switch. When no windows, set the interpreter to
8844 INTERP_CONSOLE.
8ffd9b1b 8845
49c7e338
AC
88462003-03-01 Andrew Cagney <cagney@redhat.com>
8847
8848 * main.c (captured_main): Replace magic option characters with an
8849 enum.
8850
e9582e71
AC
88512003-03-01 Andrew Cagney <cagney@redhat.com>
8852
8853 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8854 INIT_EXTRA_FRAME_INFO.
8855 * gdbarch.h, gdbarch.c: Regenerate.
8856 * arm-tdep.c: Update comments.
8857 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8858 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8859 * frame.h, avr-tdep.c: Ditto.
8860 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8861 (create_new_frame, legacy_get_prev_frame): Ditto.
8862 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8863 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8864 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8865 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8866 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8867 * v850-tdep.c (v850_gdbarch_init): Ditto.
8868 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8869 * sh-tdep.c (sh_gdbarch_init): Ditto.
8870 * s390-tdep.c (s390_gdbarch_init): Ditto.
8871 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8872 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8873 * mips-tdep.c (mips_gdbarch_init): Ditto.
8874 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8875 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8876 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8877 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8878 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8879 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8880 * frv-tdep.c (frv_gdbarch_init): Ditto.
8881 * cris-tdep.c (cris_gdbarch_init): Ditto.
8882 * avr-tdep.c (avr_gdbarch_init): Ditto.
8883 * arm-tdep.c (arm_gdbarch_init): Ditto.
8884 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8885 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8886
35cac7cf
AC
88872003-03-01 Andrew Cagney <cagney@redhat.com>
8888
8889 * gdbarch.sh (register_type): New function with predicate.
8890 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8891 * gdbarch.h, gdbarch.c: Re-generate.
8892 * arch-utils.c (generic_register_byte): Use generic_register_size.
8893 (generic_register_size): When available, use
8894 gdbarch_register_type.
8895 * regcache.c (init_regcache_descr): When available, initialize the
8896 register type array using gdbarch_register_type. If the
8897 architecture supplies gdbarch_register_type, do not use the legacy
8898 regcache layout.
8899 * d10v-tdep.c (d10v_register_type): Replace
8900 d10v_register_virtual_type.
8901 (d10v_gdbarch_init): Set register_type instead of
8902 register_virtual_type.
8903
7b83296f
AC
89042003-03-01 Andrew Cagney <cagney@redhat.com>
8905
8906 * Makefile.in (ax-gdb.o): Update dependencies.
8907 * ax-gdb.c: Include "regcache.h".
8908 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8909 * findvar.c (value_of_register): Ditto.
8910 * infcmd.c (default_print_registers_info): Ditto.
8911
eadc1c87
MK
89122003-03-01 Mark Kettenis <kettenis@gnu.org>
8913
8914 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8915 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8916
14143612
MK
89172003-03-01 Mark Kettenis <kettenis@gnu.org>
8918
8919 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8920 of STREQ.
8921
a55cc764
DJ
89222003-02-28 Daniel Jacobowitz <drow@mvista.com>
8923
8924 * Makefile.in (dwarf2loc.o): Update dependencies.
8925 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8926 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8927 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8928 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8929 (locexpr_tracepoint_var_ref): New function.
8930 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8931
08a617da
AC
89322003-02-28 Andrew Cagney <cagney@redhat.com>
8933
8934 * regcache.c (register_size): New function.
8935 * regcache.h (register_size): Declare
8936 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8937 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8938
4224873a
DC
89392003-02-28 David Carlton <carlton@math.stanford.edu>
8940
8941 * linespec.c (decode_compound): Extract code into find_method.
8942 (find_method): New.
8943
ccdc5d7f
JB
89442003-02-28 J. Brobecker <brobecker@gnat.com>
8945
8946 * Makefile.in: Add rules to build and link in observer.o.
8947
974e8ced
JB
89482003-02-27 J. Brobecker <brobecker@gnat.com>
8949
8950 * observer.c: Minor comments edits.
8951
7a28f973
JB
89522003-02-27 J. Brobecker <brobecker@gnat.com>
8953
8954 * observer.h, observer.c: New file.
8955
27cddce2
AC
89562003-02-27 Andrew Cagney <cagney@redhat.com>
8957
8958 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8959
b94a41a1
SC
89602003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8961
8962 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8963 (M6812_OP_STS_EXT): Likewise.
8964 (m6811_prologue): Use the above to recognize prologue.
8965 (m6812_prologue): Likewise.
8966
c8be8951
DC
89672003-02-27 David Carlton <carlton@math.stanford.edu>
8968
8969 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8970 SYMBOL_PRINT_NAME.
8971 (compare_psymbols): Ditto.
8972 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8973
d05bb1fc
MS
89742003-02-27 Michael Snyder <msnyder@redhat.com>
8975
4e845cd3
MS
8976 * f-lang.c (build_fortran_types): New function.
8977 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
8978 * doublest.c (extract_floating): Fix warning text.
8979
f3824013
AC
89802003-02-27 Andrew Cagney <cagney@redhat.com>
8981
8982 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8983 predicate. Replaces PUSH_DUMMY_FRAME.
8984 * gdbarch.h, gdbarch.c: Regnerate.
8985 * valops.c (hand_function_call): Update. Call
8986 generic_push_dummy_frame directly.
8987 * vax-tdep.c (vax_gdbarch_init): Update.
8988 * sparc-tdep.c (sparc_gdbarch_init): Update.
8989 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8990 * m68k-tdep.c (m68k_gdbarch_init): Update.
8991 * hppa-tdep.c (hppa_gdbarch_init): Update.
8992 * alpha-tdep.c (alpha_gdbarch_init): Update.
8993 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8994 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8995 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8996 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8997 push_dummy_frame to generic_push_dummy_frame.
8998 * v850-tdep.c (v850_gdbarch_init): Ditto.
8999 * sh-tdep.c (sh_gdbarch_init): Ditto.
9000 * s390-tdep.c (s390_gdbarch_init): Ditto.
9001 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9002 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9003 * mips-tdep.c (mips_gdbarch_init): Ditto.
9004 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9005 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9006 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9007 * i386-tdep.c (i386_gdbarch_init): Ditto.
9008 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9009 * frv-tdep.c (frv_gdbarch_init): Ditto.
9010 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9011 * cris-tdep.c (cris_gdbarch_init): Ditto.
9012 * avr-tdep.c (avr_gdbarch_init): Ditto.
9013 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 9014
ad188201
KB
90152003-02-26 Kevin Buettner <kevinb@redhat.com>
9016
9017 * mips-tdep.c (show_mips_abi): New function.
9018 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9019 command ``show mips abi''.
9020
6b37567a 90212003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9022
6b37567a 9023 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 9024 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
9025 more sline entries have been seen for the function.
9026
d3e0a5bf
MC
90272003-02-26 Michael Chastain <mec@shout.net>
9028
9029 * configure: Regenerate with autoconf 000227.
9030
18972eea
MC
90312003-02-26 Michael Chastain <mec@shout.net>
9032
9033 Close PR build/660.
9034 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9035 for old libc5/glibc.
9036 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9037
0bbde931
KW
90382003-02-26 Kris Warkentin <kewarken@qnx.com>
9039
9040 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9041 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9042
27ca5dad
MC
90432003-02-26 Michael Chastain <mec@shout.net>
9044
9045 * configure.in: New variable HAVE_UINTPTR_T.
9046 * configure, config.in: Regenerated.
9047
6f88d630
DJ
90482003-02-26 Daniel Jacobowitz <drow@mvista.com>
9049
9050 Fix PR build/1097.
9051 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9052
b14185ce
AC
90532003-02-25 Andrew Cagney <cagney@redhat.com>
9054
9055 * frame.c (get_prev_frame): Add comment on check for
9056 inside_entry_func. Only check for inside_entry_file when not a
9057 dummy and not a sentinel. Check that the new frame is not inner
9058 to the old frame.
9059
ac2bd0a9
AC
90602003-02-25 Andrew Cagney <cagney@redhat.com>
9061
9062 * frame.c (frame_debug): New variable.
9063 (_initialize_frame): Add "set/show debug frame" command.
9064 (get_prev_frame): When frame_debug, print reason why unwind
9065 failed.
9066
b18a0fd2
MC
90672003-02-25 Michael Chastain <mec@shout.net>
9068
9069 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9070 to avoid uintptr_t definition problems.
9071
22abf04a
DC
90722003-02-25 David Carlton <carlton@math.stanford.edu>
9073
9074 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9075 (SYMBOL_LINKAGE_NAME): Ditto.
9076 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9077 SYMBOL_LINKAGE_NAME.
9078 (struct general_symbol_info): Expand comment.
9079 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9080 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9081 (SYMBOL_MATCHES_REGEXP): Ditto.
9082 * symtab.c (symbol_natural_name): New function.
9083 * objfiles.h: Replace all uses of SYMBOL_NAME by
9084 DEPRECATED_SYMBOL_NAME.
9085 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9086 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9087 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9088 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9089 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9090 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9091 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9092 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9093 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9094 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9095 * ada-exp.y: Ditto.
9096 * ada-exp.y: Update copyright.
9097 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9098 * cp-valprint.c: Ditto.
9099
1a5848f6
JJ
91002003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9101
9102 * infptrace.c (detach): Do not flag error if ptrace detach fails
9103 and errno is set to ESRCH.
9104
7343d46a
AC
91052003-02-24 Andrew Cagney <cagney@redhat.com>
9106
9107 * infptrace.c (udot_info): Change type of udot_off to long. Use
9108 paddr when printing udot_off's value.
9109
49fa1dc2
DC
91102003-02-24 David Carlton <carlton@math.stanford.edu>
9111
9112 * symtab.c (make_symbol_overload_list): Only read in partial
9113 symtabs containing a matching partial symbol.
9114
0fe19209
DC
91152003-02-24 David Carlton <carlton@math.stanford.edu>
9116
9117 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9118 do the comparison, not strcmp.
9119 * symfile.c (compare_psymbols): Ditto.
9120 * defs.h: Declare strcmp_iw_ordered.
9121 * utils.c (strcmp_iw_ordered): New function.
9122
8e3ee7b5
JB
91232003-02-24 Jim Blandy <jimb@redhat.com>
9124
9125 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9126 support, shared libs): Remove my name from here, to better reflect
9127 reality.
9128
7df1a324
KW
91292003-02-24 Kris Warkentin <kewarken@qnx.com>
9130
9131 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9132 (target_ops): Add to_have_continuable_watchpoint.
9133 * target.c (update_current_target): Add INHERIT line for
9134 to_have_continuable_watchpoint.
9135 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9136 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9137 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9138 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9139
d1c76907
EZ
91402003-02-24 Elena Zannoni <ezannoni@redhat.com>
9141
9142 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9143 maintainership.
9144
2610b0bf
KW
91452003-02-24 Kris Warkentin <kewarken@qnx.com>
9146
f46169db
KW
9147 * solib.c (solib_open): Call target defined search function after
9148 failing with solib-search-path.
9149 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9150 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 9151
9a3c34fe
KW
91522003-02-24 Kris Warkentin <kewarken@qnx.com>
9153
f46169db 9154 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 9155
2417dd25
SC
91562003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9157
9158 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9159
b631436b
SC
91602003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9161
9162 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9163 (m68hc11_add_reggroups): New function.
9164 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9165 (m68hc11_gdbarch_init): Install the reggroups.
9166 (_initialize_m68hc11_tdep): Initialize them.
9167
0aa8c1e4
JW
91682003-02-21 James E Wilson <wilson@tuliptree.org>
9169
9170 * MAINTAINERS: Update my email address.
9171
50ceaba5
DC
91722003-02-21 David Carlton <carlton@math.stanford.edu>
9173
9174 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9175
4c2df51b
DJ
91762003-02-21 Daniel Jacobowitz <drow@mvista.com>
9177
9178 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9179 * symtab.h: Add opaque declarations of struct axs_value and
9180 struct agent_expr.
9181 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9182 (struct location_funcs): New type.
9183 (struct symbol): Add "loc" to aux_value.
9184 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9185 * dwarf2read.c: Include "dwarf2expr.h".
9186 (dwarf2_symbol_mark_computed): New function.
9187 (read_func_scope): Use it.
9188 (var_decode_location): New function.
9189 (new_symbol): Use it.
9190 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9191
9192 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9193 (dwarf2expr_h, dwarf2loc_h): New variables.
9194 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9195 (dwarf2expr.o, dwarf2loc.o): New rules.
9196 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9197 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9198 LOC_COMPUTED_ARG.
9199 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9200 * m2-exp.y (yylex): Likewise.
9201 * printcmd.c (address_info, print_frame_args): Likewise.
9202 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9203 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9204 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9205 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9206 * symtab.c (lookup_block_symbol): Likewise.
9207
5784d15e
AF
92082003-02-20 Adam Fedor <fedor@gnu.org>
9209
9210 * symtab.h: Remove objc_specific struct
9211 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9212 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9213 Have language_objc use cplus_specific struct.
9214
d4cad8db
TT
92152003-02-20 Tom Tromey <tromey@redhat.com>
9216
9217 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9218 TYPE_NAME, when printing a String value. PR java/1075.
9219
2f9a90b4
AF
92202003-02-20 Adam Fedor <fedor@gnu.org>
9221
d38074a8 9222 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 9223 * objc-lang.c (find_methods): Make static.
2f9a90b4 9224
6f17862b
CF
92252003-02-20 Christopher Faylor <cgf@redhat.com>
9226
9227 * win32-nat.c (get_image_name): Check return value from
9228 ReadProcessMemory.
9229 (child_xfer_memory): Ditto.
9230
715d1656
AO
92312003-02-20 Alexandre Oliva <aoliva@redhat.com>
9232
9233 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9234 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9235 '${exec_prefix}' (in addition to the expansion thereof) as
9236 relocatable.
9237 * configure: Rebuilt.
9238
b1262a02
DC
92392003-02-20 David Carlton <carlton@math.stanford.edu>
9240
9241 * symtab.c (search_symbols): Revert the search_symbols part of my
9242 2002-12-23 patch. Add comment.
9243
7134143f
DJ
92442002-02-20 Daniel Jacobowitz <drow@mvista.com>
9245
9246 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9247 * dbxread.c (elfstab_build_psymtabs): Don't call
9248 install_minimal_symbols.
9249 (stabsect_build_psymtabs): Likewise.
9250 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9251 earlier.
9252 * somread.c (som_symfile_read): Call install_minimal_symbols
9253 and do_cleanups earlier.
9254 * nlmread.c (nlm_symfile_read): Likewise.
9255 * mdebugread.c (elfmdebug_build_psymtabs): Call
9256 install_minimal_symbols and make appropriate cleanups.
9257
cf466558
KB
92582003-02-20 Kevin Buettner <kevinb@redhat.com>
9259
9260 * solib.c (reload_shared_libraries): New function.
9261 (_initialize_solib): Add callbacks for ``set solib-search-path''
9262 and ``set solib-absolute-prefix''.
9263
de5ad195
DC
92642003-02-20 David Carlton <carlton@math.stanford.edu>
9265
9266 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9267 expand comment.
9268 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9269 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9270 * ada-typeprint.c (ada_typedef_print): Ditto.
9271 * ax-gdb.c (gen_var_ref): Ditto.
9272 * breakpoint.c (print_one_breakpoint): Ditto.
9273 * buildsym.c (finish_block): Ditto.
9274 * c-valprint.c (c_val_print): Ditto.
9275 * expprint.c (print_subexp): Ditto.
9276 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
9277 * infcmd.c (jump_command): Ditto.
9278 * linespec.c (decode_line_2, decode_compound): Ditto.
9279 * maint.c (maintenance_translate_address): Ditto.
9280 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
9281 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9282 Ditto.
8ffd9b1b
AJ
9283 * p-valprint.c (pascal_val_print): Ditto.
9284 * stabsread.c (define_symbol): Ditto.
de5ad195 9285 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
9286 (print_frame_arg_vars, return_command): Ditto.
9287 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9288 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
9289 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9290 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
9291 (rbreak_command): Ditto.
9292 * tracepoint.c (tracepoints_info): Ditto.
9293 * typeprint.c (typedef_print): Ditto.
9294 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
9295 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9296 * ada-typeprint.c: Update Copyright.
9297 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9298 * tracepoint.c, cli/cli-cmds.c: Ditto.
9299
f796e4be
KB
93002003-02-20 Kevin Buettner <kevinb@redhat.com>
9301
9302 * frame.c (generic_unwind_get_saved_register): Make non-static.
9303 * frame.h (generic_unwind_get_saved_register): Declare.
9304 * mips-tdep.c (read_next_frame_reg): Fetch register from
9305 current regcache when frame is NULL.
9306 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9307 that must be NULL.
9308 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9309 instead of frame_register_unwind().
9310
836cc9f4
AC
93112003-02-20 Andrew Cagney <ac131313@redhat.com>
9312
9313 * remote-sim.c (gdbsim_insert_breakpoint)
9314 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9315 code.
9316
501eef12
AC
93172003-02-20 Andrew Cagney <ac131313@redhat.com>
9318
9319 * remote.c (_initialize_remote): Add commands "set/show remote
9320 hardware-watchpoint-limit" and "set/show remote
9321 hardware-breakpoint-limit".
9322 (remote_hw_watchpoint_limit): Initialize to -1.
9323 (remote_hw_breakpoint_limit): Ditto.
9324 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9325
1b6bc7e0
CF
93262003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9327
9328 * coff-pe-read.c: New file - support reading of minimal symbols from a
9329 portable executable using the export table.
9330 * coff-pe-read.h: New file.
9331 * coffread.c: Include coff-pe-read.h.
9332 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9333 debugging symbols found.
9334 * Makefile.in (SFILES): Add coff-pe-read.o.
9335 (coff_pe_read_h): Define.
9336 (COMMON_OBS): Add coff-pe-read.o.
9337 (coffread.o): Add coff_pe_read_h dependency.
9338 (coff-pe-read.o): New target.
9339
fe898f56
DC
93402003-02-19 David Carlton <carlton@math.stanford.edu>
9341
9342 * Makefile.in (SFILES): Add block.c.
9343 (block_h): New.
9344 (COMMON_OBS): Add block.o.
9345 (block.o): New.
9346 (x86-64-tdep.o): Add $(block_h).
9347 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9348 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9349 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9350 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9351 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9352 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9353 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9354 * value.h: Add opaque declaration for struct block.
9355 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9356 * ada-lang.h: Ditto.
9357 * x86-64-tdep.c: #include "block.h"
9358 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9359 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9360 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9361 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9362 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9363 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9364 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9365 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9366 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9367 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9368 * symtab.c (block_function): Ditto.
9369 (contained_in): Ditto.
9370 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9371 block.h. Add opaque declaration for struct block.
9372 * symtab.h: Move block_function and contained_in declarations to
9373 block.h. Add opaque declarations for struct block, struct
9374 blockvector.
9375 (struct block): Move to block.h.
9376 (struct blockvector): Ditto.
9377 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9378 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9379 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9380 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9381 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9382 Ditto.
9383 * block.c: New file.
9384 * block.h: New file.
9385
173345b5
TR
93862003-02-19 Theodore A. Roth <troth@openavr.org>
9387
9388 * avr-tdep.c (avr_extract_return_value): Remove function.
9389 (avr_store_return_value): Remove function.
9390 (avr_extract_struct_value_address): Remove function.
9391 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9392
338ef23d
AC
93932003-02-19 Andrew Cagney <ac131313@redhat.com>
9394
9395 * rs6000-tdep.c: Include "gdb_assert.h".
9396 (registers_e500): Add "acc" and "spefscr".
9397 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9398 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9399 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9400 really is "r0".
9401 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9402
5412f5f3
KS
94032003-02-18 Keith Seitz <keiths@redhat.com>
9404
9405 * Makefile.in: Add gdbtk-interps.c.
9406
881324eb
KB
94072003-02-18 Kevin Buettner <kevinb@redhat.com>
9408
9409 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9410 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9411
6a2f5abf
AC
94122003-02-18 Andrew Cagney <cagney@redhat.com>
9413
9414 * symtab.h (struct objfile): Add opaque declaration.
9415
54c7009d
EZ
94162003-02-18 Elena Zannoni <ezannoni@redhat.com>
9417
9418 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
9419 * dbxread.c (process_one_symbol): Use last_function_start rather
9420 than function_start_offset to find the real beginning of the
9421 current function. The latter is just the text section offset on
9422 some systems, the former is always the real function start.
54c7009d 9423
7ee6d7eb
AC
94242003-02-17 Andrew Cagney <cagney@redhat.com>
9425
9426 * configure.in: Revert ${target} != ${host}.
9427
2846da9b
AC
94282003-02-17 Andrew Cagney <ac131313@redhat.com>
9429
9430 * configure.in (Makefile): Use the test ${target} != ${host},
9431 instead of the absence of the "nm.h" file, to determine of the
9432 configuration non-native.
9433 * configure: Regenerate.
8ffd9b1b 9434
3b27aeea
EZ
94352003-02-14 Elena Zannoni <ezannoni@redhat.com>
9436
fbe586ae 9437 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
9438
9439 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9440 conditionalize tui_active test.
9441 (lookup_cmd_1): Ditto.
9442
b0b1c2c0
MK
94432003-02-14 Mark Kettenis <kettenis@gnu.org>
9444
9445 * configure.in: Add check for _etext.
9446 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9447 available.
9448 * config.in, configure: regenerated.
9449
8f05cde5
DJ
94502003-02-14 Daniel Jacobowitz <drow@mvista.com>
9451
9452 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9453
021e7609
AC
94542003-02-14 Andrew Cagney <ac131313@redhat.com>
9455
9456 * main.c (tui_version): Delete variable.
9457 (captured_main): When --tui, set interpreter_p to "tui" instead of
9458 enabling tui_version.
9459 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9460 tui_version.
9461 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9462 * cli/cli-cmds.c (disassemble_command): Ditto.
9463 * defs.h (tui_version): Delete declaration.
9464 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9465 (tui-interp.o): Add rules.
9466 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9467
e325dcec
CF
94682003-02-14 Christopher Faylor <cgf@redhat.com>
9469
36ffb041 9470 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
9471 just-loaded dll.
9472
c4f90d87
JM
94732003-02-12 Jason Molenda (jmolenda@apple.com)
9474
fbe586ae
RH
9475 * symmisc.c (print_objfile_statistics): Include information about
9476 the number of psymtabs and symtabs in each object file.
c4f90d87 9477
e46e5ccd
KS
94782003-02-13 Keith R Seitz <keiths@redhat.com>
9479
9480 * main.h (struct captured_main_args): Add interpreter_p.
9481 * main.c (captured_main): Initialize interpreter_p from context.
9482 * gdb.c (main): Set interpreter_p argument.
9483 * Makefile.in (gdb.o): Add dependency for interps.h.
9484
fe97fe9c
AC
94852003-02-12 Andrew Cagney <ac131313@redhat.com>
9486
9487 * event-top.c (cli_command_loop): Delete declaration.
9488 (_initialize_event_loop): Delete function setting event_loop_hook.
9489 * event-top.h (cli_command_loop): Declare. Update copyright.
9490 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9491 * interps.c (current_interp_command_loop): When event_loop_p, call
9492 cli_command_loop.
9493
1cdac4ef
AC
94942003-02-12 Andrew Cagney <ac131313@redhat.com>
9495
9496 * interps.h (interp_command_loop_ftype): Change return type to
9497 void.
9498
48037ead
ML
94992003-02-12 Michal Ludvig <mludvig@suse.cz>
9500
9501 * x86-64-tdep.c (x86_64_extract_return_value)
9502 (x86_64_store_return_value): Use regcache instead of regbuf.
9503 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9504 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9505
033afc63
AC
95062003-02-11 Andrew Cagney <ac131313@redhat.com>
9507
9508 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9509 * aclocal.m4: Regenerate.
9510 * configure: Regenerate.
9511
9512 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9513 TCL_LD_SEARCH_FLAGS.
9514
40d02bca
ML
95152003-02-10 Michal Ludvig <mludvig@suse.cz>
9516
9517 * dwarf2cfi.c: Reindented.
9518
11308a41
AC
95192003-02-09 Andrew Cagney <ac131313@redhat.com>
9520
9521 * interps.c (clear_interpreter_hooks): Convert function definition
9522 to ISO C.
9523
e1c1c0f6
DC
95242003-02-07 David Carlton <carlton@math.stanford.edu>
9525
9526 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9527
ab5d3da6
KB
95282003-02-07 Kevin Buettner <kevinb@redhat.com>
9529
9530 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9531 (struct type): ...to here.
9532 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9533 field.
9534 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9535 (replace_type): Set length on all type variants for a given type.
9536
b8a92b82
AC
95372003-02-07 Andrew Cagney <ac131313@redhat.com>
9538
9539 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9540 <sys/stat.h>.
9541 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 9542
5cb316ef
AC
95432003-02-06 Andrew Cagney <ac131313@redhat.com>
9544
2555fe1a
AC
9545 * Makefile.in (symm-nat.o): Update dependencies.
9546 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9547 (lynx-nat.o, ia64-linux-nat.): Ditto.
9548 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9549 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9550 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9551
44270758
AC
9552 * Makefile.in (inflow_h): Define.
9553 (procfs.o, inflow.o, procfs.o): Update dependencies.
9554 * inftarg.c (child_stop): Delete extern declaration of
9555 inferior_process_group. Include "inflow.h".
9556 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9557 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9558 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9559 (our_process_group, inferior_process_group): Extern declarations.
9560
df8f7274
AC
9561 * procfs.c: Include "gdb_assert.h".
9562
5cb316ef
AC
9563 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9564 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9565 * jv-typeprint.c (java_type_print_base): Ditto.
9566 * typeprint.c (typedef_print): Eliminate STREQ.
9567 * cli/cli-script.c (define_command, define_command): Ditto.
9568 * main.c (captured_main): Ditto.
9569 * values.c (lookup_internalvar): Ditto.
9570 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9571 within `if' conditional.
9572 * linespec.c (decode_line_2): Ditto.
9573 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9574 (bfd_openw_with_cleanup): Ditto.
9575
2a28ccea
MK
95762003-02-07 Mark Kettenis <kettenis@gnu.org>
9577
9578 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9579 legacy_extract_return_value and store_return_value to
9580 legacy_return_value.
9581
786b8124
CF
95822003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9583
9584 * win32-nat.c (get_relocated_section_addrs): New function. Find
9585 section load addresses for symbol handling in relocated DLLs.
9586 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9587
b871e4ec
FF
95882003-02-05 Fred Fish <fnf@intrinsity.com>
9589
9590 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9591 '=' and '!='.
9592 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9593 with '&' and '=='.
9594 (angel_RDI_info): Ditto.
9595 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9596 with '&' and '!='.
9597 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 9598
4389a95a 95992003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
9600 Keith Seitz <keiths@redhat.com>
9601 Elena Zannoni <ezannoni@redhat.com>
9602 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
9603
9604 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9605 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9606 (SUBDIR_MI_OBS): Add "mi-interp.o".
9607 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9608 (SFILES): Add "interps.c".
9609 (COMMON_OBS): Add "interps.o".
9610 (interps_h, mi_main_h): Define.
9611 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9612 (mi-main.o, main.o, event-top.o): Update dependencies.
9613 * cli/cli-interp.c: New file.
9614 * interps.h, interps.c: New files.
9615 * top.c: (gdb_init): Don't install the default interpreter, handed
9616 by captured_main.
9617 * main.c: Include "interps.h".
9618 (interpreter_p): Note that it should malloc'ed.
9619 (captured_command_loop): Call current_interp_command_loop.
9620 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9621 xfree and xstrdup when updating interpreter_p. Install the
9622 default interpreter. Add hack to stop mi1's copyright notice
9623 being encoded.
9624 * event-top.h (gdb_setup_readline): Declare.
9625 (gdb_disable_readline): Declare.
9626 * event-top.c: Include "interps.h".
9627 (display_gdb_prompt): Call current_interp_display_prompt_p.
9628 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9629 gdb_stdlog, and gdb_stdtarg.
9630 (_initialize_event_loop): Don't call gdb_setup_readline.
9631 * cli-out.c (cli_out_set_stream): New function.
9632 * cli-out.h (cli_out_set_stream): Declare.
9633
ff3b5810
MK
96342003-02-06 Mark Kettenis <kettenis@gnu.org>
9635
9636 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9637 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9638 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9639 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9640 config/i386/i386v42mp.mt: Removed.
9641
5b729aa5
MK
96422003-02-05 Mark Kettenis <kettenis@gnu.org>
9643
9644 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9645 GDB_OSABI_SOLARIS.
9646
8cc15142
MC
96472003-02-05 Michael Chastain <mec@shout.net>
9648
9649 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9650 2.12.1 and earlier versions.
9651
5aa5d4b9
AC
96522003-02-05 Andrew Cagney <ac131313@redhat.com>
9653
9654 Remove orphaned hosts, targets and files.
9655 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9656 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9657 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9658 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9659 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9660 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9661 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9662 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9663 * config/sparc/tm-sp64sim.h: Delete.
9664 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9665 hosts.
9666 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9667 mips*-dec-mach3* targets.
9668
b68767c1
MC
96692003-02-04 Michael Chastain <mec@shout.net>
9670
9671 * NEWS: Fix typo: sepcifying -> specifying.
9672
5ae7ca1d
MC
96732003-02-04 Michael Chastain <mec@shout.net>
9674
9675 * dwarfread.c: Add documentation on the state of dwarf-1,
9676 looking towards obsoletion.
9677
d08a4280
MC
96782003-02-03 Michael Chastain <mec@shout.net>
9679
9680 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9681 gdb/testsuite/gdb.c++/pr-1023.exp.
9682
e9be73e4
AC
96832003-02-04 Andrew Cagney <ac131313@redhat.com>
9684
9685 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9686 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9687
9688 * utils.c (init_page_info): Delete reference to MPW in comments.
9689 * main.c (captured_main): Delete #ifdef MPW.
9690
05d57f6f
AC
96912003-02-04 Andrew Cagney <ac131313@redhat.com>
9692
8ffd9b1b 9693 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
9694 * monitor.c (monitor_expect): Obsolete reference to m32r.
9695 * configure.tgt: Mark m32r-*-elf* as obsolete.
9696 * MAINTAINERS: Mark m32k as obsolete.
9697 * m32r-rom.c: Obsolete file.
9698 * config/m32r/m32r.mt: Obsolete file.
9699 * config/m32r/tm-m32r.h: Obsolete file.
9700 * m32r-stub.c: Obsolete file.
9701 * m32r-tdep.c: Obsolete file.
9702
8b0e5691
AC
97032003-02-04 Andrew Cagney <ac131313@redhat.com>
9704
9705 * NEWS: Mention that the z8k-zilog-none is obsolete.
9706 * MAINTAINERS: Mark z8k as obsolete.
9707 * configure.tgt: Obsolete the z8k-*-coff* target.
9708 * config/z8k/z8k.mt: Obsolete file.
9709 * config/z8k/tm-z8k.h: Obsolete file.
9710 * z8k-tdep.c: Obsolete file.
9711
67f16606
AC
97122003-02-04 Andrew Cagney <ac131313@redhat.com>
9713
9714 * NEWS: Mention that the mn10200-elf is obsolete.
9715 * configure.tgt: Obsolete mn10200-*-* target.
9716 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9717 mention that the mn10200 is obsolete.
9718 * breakpoint.h: Ditto.
9719 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9720 * config/mn10200/mn10200.mt: Obsolete file.
9721 * config/mn10200/tm-mn10200.h: Obsolete file.
9722 * mn10200-tdep.c: Obsolete file.
9723
fd2299bd
AC
97242003-02-04 Andrew Cagney <ac131313@redhat.com>
9725
9726 * MAINTAINERS: Mark h8500 as obsolete.
9727 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9728 * findvar.c (value_from_register): Ditto.
9729 * h8500-tdep.c: Mark file as obsolete.
9730 * config/h8500/h8500.mt: Ditto.
9731 * config/h8500/tm-h8500.h: Ditto.
9732 * NEWS: Mention that h8500 is obsolete.
9733
eb9a305d
DC
97342003-02-04 David Carlton <carlton@math.stanford.edu>
9735
9736 * objfiles.c (allocate_objfile): Always set name. Add comment at
9737 start of function.
9738 * jv-lang.c (get_dynamics_objfile): Add comment.
9739
406fc7fb
DC
97402003-02-04 David Carlton <carlton@math.stanford.edu>
9741
9742 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9743 * printcmd.c (build_address_symbolic): Replace uses of
9744 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9745 SYMBOL_NAME, and asm_demangle.
9746 Update copyright.
9747
93d91629
DC
97482003-02-04 David Carlton <carlton@math.stanford.edu>
9749
9750 * linespec.c (decode_compound): Extract code into
9751 lookup_prefix_sym.
9752 (lookup_prefix_sym): New function.
9753
1c5cb38e
DC
97542003-02-04 David Carlton <carlton@math.stanford.edu>
9755
9756 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9757 FLOAT_COERCION_BADNESS.
9758 * gdbtypes.c (rank_one_type): Replace all uses of
9759 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9760
0cf824c9
JB
97612003-02-04 Jim Blandy <jimb@redhat.com>
9762
9763 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9764 section, let dwarf_macinfo_section point to it, not
9765 dwarf_loc_section.
9766
a2d356b0
DJ
97672003-02-04 Daniel Jacobowitz <drow@mvista.com>
9768
9769 Pointed out by Anton Blanchard <anton@samba.org>.
9770 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9771 (ppc_linux_at_sigtramp_return_path): Use it.
9772
2de7ced7
DJ
97732003-02-04 Daniel Jacobowitz <drow@mvista.com>
9774
9775 * defs.h (streq): Add prototype.
9776 * utils.c (streq): New function.
9777
9778 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9779 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9780 * mdebugread.c (new_symbol): Likewise.
9781 * stabsread.c (define_symbol): Likewise.
9782 * coffread.c (process_coff_symbol): Likewise.
9783 * dwarfread.c (new_symbol): Likewise.
9784
9785 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9786 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9787 here.
9788 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9789 SYMBOL_INIT_DEMANGLED_NAME.
9790 * objfiles.c: Include "hashtab.h".
9791 (allocate_objfile): Call htab_set_functions_ex for the
9792 demangled_names_hash.
9793 (free_objfile): Call htab_delete for the demangled_names_hash.
9794 * objfiles.h (struct htab): Add declaration.
9795 (struct objfile): Add demangled_names_hash.
9796 * symfile.c: Include "hashtab.h".
9797 (reread_symbols): Call htab_delete for the demangled_names_hash.
9798 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9799 SYMBOL_NAME in the bcache.
9800 * symtab.c: Include "hashtab.h". Update comments.
9801 (create_demangled_names_hash, symbol_set_names): New functions.
9802 (symbol_find_demangled_name): New function, broken out from
9803 symbol_init_demangled_names.
9804 (symbol_init_demangled_names): Use it.
9805 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9806 (SYMBOL_SET_NAMES): New macro.
9807 (symbol_set_names): Add prototype.
9808
15831452
JB
98092003-02-03 Jim Blandy <jimb@redhat.com>
9810
9811 Use a single, consistent representation for an empty minimal
9812 symbol table in an objfile.
9813 * objfiles.c (terminate_minimal_symbol_table): New function.
9814 (allocate_objfile): Call it.
9815 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9816 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 9817 non-NULL.
15831452
JB
9818 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9819 objfile has minimal symbols, compare minimal_symbol_count to zero,
9820 instead of comparing msymbols with NULL.
9821 * objfiles.c (have_minimal_symbols): Same.
9822 * solib-sunos.c (solib_add_common_symbols): Call
9823 terminate_minimal_symbol_table.
9824 * symfile.c (reread_symbols): Same.
8ffd9b1b 9825
ffc65945
KB
98262003-02-03 Kevin Buettner <kevinb@redhat.com>
9827
9828 * s390-tdep.c (s390_address_class_type_flags)
9829 (s390_address_class_type_flags_to_name)
9830 (s390_address_class_name_to_type_flags): New functions.
9831 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9832 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9833
f211c6d4
MS
98342003-02-03 Michael Snyder <msnyder@redhat.com>
9835
9836 * arm-tdep.c: Fix spell-o in comment.
9837
659b0389
ML
98382003-02-03 Michal Ludvig <mludvig@suse.cz>
9839
9840 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9841 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 9842 error messages to contain BFD filename.
659b0389 9843
3b31d625
EZ
98442003-02-02 Elena Zannoni <ezannoni@redhat.com>
9845
997b089a 9846 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
9847 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9848 (do_mixed_source_and_assembly): Use
9849 make_cleanup_ui_out_tuple_begin_end and
9850 make_cleanup_ui_out_tuple_begin_end.
9851 (do_mixed_source_and_assembly): Ditto.
9852 * thread.c (do_captured_list_thread_ids): Ditto.
9853 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9854 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9855 ui_out_tuple_end): Delete prototypes.
9856 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9857 ui_out_list_end, ui_out_tuple_end): Delete.
9858
9859 From Kevin Buettner <kevinb@redhat.com>:
9860 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
9861 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9862 (do_cleanup_table_end): New functions.
9863 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9864 Use cleanups to invoke_ui_out_tuple_end().
9865 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
9866 * cli/cli-setshow.c (cmd_show_list): Use
9867 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 9868
5b181d62
AC
98692003-02-02 Andrew Cagney <ac131313@redhat.com>
9870
9871 * frame.c (frame_unwind_register): New function.
9872 (frame_unwind_unsigned_register): Use.
9873 (frame_unwind_signed_register): Use.
9874 (frame_read_register): New function.
9875 * frame.h (frame_unwind_register): Declare.
9876 (frame_read_register): Declare.
9877
9878 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9879 and frame_unwind_register instead of read_memory, write_register
9880 and deprecated_write_register_bytes.
9881
5f601589
AC
98822003-02-02 Andrew Cagney <ac131313@redhat.com>
9883
9884 * frame.h: Note that namelen can be negative.
9885 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9886 NAME's length.
9887
9888 * NEWS: Mention that the d10v's `regs' command is deprecated.
9889 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9890 (d10v_print_registers_info): New function.
9891 (show_regs): Call d10v_print_registers_info.
9892 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9893
6a3fe0a4
MK
98942003-02-02 Mark Kettenis <kettenis@gnu.org>
9895
9896 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9897 lost in the previous patch.
9898
075559bc
AC
98992003-02-01 Andrew Cagney <ac131313@redhat.com>
9900
9901 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
9902 * stack.c (print_frame_info_base): Output complete FRAME tuple
9903 for synthesized frames.
075559bc 9904
6789195b
AC
99052003-02-02 Andrew Cagney <ac131313@redhat.com>
9906
9907 * mips-nat.c (zerobuf): Delete.
9908 (fetch_inferior_registers): Alloc local zerobuf.
9909 (fetch_core_registers): Alloc local zerobuf.
9910 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9911 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9912 * thread-db.c (thread_db_store_registers): Ditto.
9913 * sh-tdep.c (sh_do_register): Ditto.
9914 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9915 * remote-sim.c (gdbsim_store_register): Ditto.
9916 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9917 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9918 * monitor.c (monitor_supply_register): Ditto.
9919 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9920 * mips-nat.c (fetch_inferior_registers): Ditto.
9921 * m68klinux-nat.c (fetch_register): Ditto.
9922 * lynx-nat.c (fetch_inferior_registers): Ditto.
9923 (fetch_inferior_registers): Ditto.
9924 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9925 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9926 (hpux_thread_store_registers): Ditto.
9927 * hppah-nat.c (fetch_register): Ditto.
9928 * hppab-nat.c (fetch_register): Ditto.
9929 * hppa-tdep.c (pa_register_look_aside): Ditto.
9930 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9931 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9932
e669114a
AC
99332003-02-01 Andrew Cagney <ac131313@redhat.com>
9934
9935 * gdbarch.sh: Explictly specify all method levels. When a
9936 variable with an empty level, provide a non-multi-arch default.
9937 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9938 * gdbarch.h: Re-generate.
9939 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9940 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9941
9a043c1d
AC
99422003-02-01 Andrew Cagney <ac131313@redhat.com>
9943
9944 * defs.h (host_pointer_to_address): Delete declaration.
9945 (address_to_host_pointer): Delete declaration.
9946 * utils.c (host_pointer_to_address): Delete function.
9947 (address_to_host_pointer): Delete function.
9948 * procfs.c (procfs_address_to_host_pointer): New function.
9949 * procfs.c (proc_set_watchpoint): Use.
9950 (procfs_can_use_hw_breakpoint): Update comments.
9951 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9952 (som_solib_add): Use.
9953 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9954 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 9955
7ca9f392
AC
99562003-02-01 Andrew Cagney <ac131313@redhat.com>
9957
94bbfd30
AC
9958 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9959 strlen d_name.
9960
7ca9f392
AC
9961 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9962 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9963 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9964 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9965 (define_symbol): Update.
9966 * symfile.c (generic_load): Remove references to nindy.
9967 * symtab.c: Remove references to nindy.
9968
31a85ea2
AC
99692003-02-01 Andrew Cagney <ac131313@redhat.com>
9970
9971 * infcmd.c (print_float_info): Delete code conditional on
9972 FLOAT_INFO.
9973 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9974 * config/m68k/nm-apollo68b.h: Ditto.
9975 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9976 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9977 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9978
f6e85fc8
MK
99792003-02-01 Mark Kettenis <kettenis@gnu.org>
9980
6015b6a0
MK
9981 * config/i386/tm-i386os9k.h: Removed.
9982
f7a30bdf
MK
9983 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9984 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9985 they're identical to i[3456]86-*-sysv* now.
9986 * config/i386/i386v32.mh: Removed.
9987 * config/i386/xm-i386v32.h: Removed.
9988 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9989
28d52111
MK
9990 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9991
4d3f6bce
MK
9992 * config/i386/i386dgux.mh: Removed.
9993 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9994
f6e85fc8
MK
9995 * configure.in: Fix typo.
9996 * configure: Regenerated.
9997
53955967
DC
99982003-01-31 David Carlton <carlton@math.stanford.edu>
9999
10000 * dwarf2read.c (dwarf2_locate_sections): Set
10001 dwarf_ranges_section.
10002
b1364885
AC
100032003-01-31 Andrew Cagney <ac131313@redhat.com>
10004
8dbb1c65
AC
10005 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10006 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 10007
8731e58e
AC
10008 * utils.c: Re-indent.
10009
b1364885
AC
10010 * config/djgpp/fnchange.lst: Delete nindy files.
10011 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10012 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10013 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10014 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10015 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10016 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10017 * Makefile.in (init.c): Remove nindy references.
10018 (saber_gdb): Delete rule.
10019 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10020 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10021 and a68v-nat.c.
10022 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10023 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10024 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10025 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10026 nindy-share/stop.h.
10027 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10028 * saber.suppress: Delete file.
10029
086df311
DJ
100302003-01-31 Daniel Jacobowitz <drow@mvista.com>
10031
10032 * dbxread.c (stabs_data): New static variable.
10033 (fill_symbuf): Support an in-memory buffer for stabs data.
10034 (stabs_seek): New function.
10035 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10036 (read_ofile_symtab): Use stabs_seek.
10037 (elfstab_build_psymtabs): Take an asection* instead of
10038 an offset and size. Relocate the stabs data if necessary.
10039 Save the section* for dbx_psymtab_to_symtab.
10040 * dwarf2read.c: Add section variables for each debug section.
10041 (dwarf2_locate_sections): Fill them in.
10042 (dwarf2_read_section): Take an asection* argument.
10043 Relocate the section contents if necessary.
10044 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10045 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10046 it to dwarf2_read_section.
10047 (dwarf2_build_frame_info): Update callers.
10048 * elfread.c (elf_symfile_read): Update call to
10049 elfstab_build_psymtabs.
10050 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10051 (DBX_STAB_SECTION): New macro.
8ffd9b1b 10052 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
10053 * symfile.c (symfile_dummy_outputs): New function.
10054 (symfile_relocate_debug_section): New function.
10055 * symfile.h (symfile_relocate_debug_section): Add prototype.
10056
87d1b352
RH
100572003-01-31 Richard Henderson <rth@redhat.com>
10058
10059 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10060 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10061 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10062 * alpha-tdep.c (alpha_register_name): Add "unique".
10063 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10064 (ALPHA_UNIQUE_REGNUM): New.
10065 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10066
c48861fb
AC
100672003-01-31 Andrew Cagney <ac131313@redhat.com>
10068
10069 * README: Remove reference to Ericsson 1800 monitor.
10070 * Makefile.in (remote-es.o): Delete rule.
10071 (ALLDEPFILES): Delete remote-es.c.
10072 * remote-es.c: Delete file.
10073 * config/m68k/es1800.mt: Delete file.
10074 * config/djgpp/fnchange.lst: Update.
10075 * configure.tgt: Delete m68*-ericsson-* target.
10076
d764a824
AF
100772003-01-31 Adam Fedor <fedor@gnu.org>
10078
10079 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10080 Remove duplicate/shadowing variable of same name.
10081
fe36c4f4
JB
100822003-01-30 Jim Blandy <jimb@redhat.com>
10083
10084 * symfile.c (find_separate_debug_file): Assert that the objfile's
10085 directory name we compute ends with a slash, and then assume that
10086 that's so everywhere we use it.
10087
cb741690
DJ
100882003-01-30 Daniel Jacobowitz <drow@mvista.com>
10089
10090 * valops.c (value_assign): Flush frame cache after stores to memory
10091 also.
10092
96ee5227
AC
100932003-01-30 Andrew Cagney <ac131313@redhat.com>
10094
10095 * Makefile.in (mon960-rom.o): Delete rule.
10096 * mon960-rom.c: Delete file.
10097
7f6104a9
AC
100982003-01-30 Andrew Cagney <ac131313@redhat.com>
10099
10100 * d10v-tdep.c: Include "frame-unwind.h".
10101 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10102 list.
10103 (next_addr, uses_frame): Delete.
10104 (struct d10v_unwind_cache): Define.
10105 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10106 Use info instead of next_addr and uses_frame globals.
10107 (d10v_frame_init_saved_regs): Delete function.
10108 (d10v_init_extra_frame_info): Delete function.
10109 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10110 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10111 init_frame_pc or frame_saved_pc.
10112 (d10v_pop_frame): Delete function.
10113 (do_d10v_pop_frame): Delete function.
10114 (d10v_frame_chain): Delete function.
10115 (d10v_frame_chain_valid): Delete function.
10116 (d10v_frame_pc_unwind): New function.
10117 (d10v_frame_id_unwind): New function.
10118 (saved_regs_unwinder): New function.
10119 (d10v_frame_register_unwind): New function.
10120 (d10v_frame_pop): New function.
10121 (d10v_frame_unwind): New variable.
10122 (d10v_frame_p): New function.
10123 (d10v_frame_saved_pc): Delete function.
10124 * Makefile.in (d10v-tdep.o): Update dependencies.
10125
cad2e848
JB
101262003-01-30 J. Brobecker <brobecker@gnat.com>
10127
10128 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10129 causing some regressions due to a change in the default value
10130 for this macro.
10131
af34e669
DJ
101322003-01-29 Richard Henderson <rth@redhat.com>
10133 Elena Zannoni <ezannoni@redhat.com>
10134 Daniel Jacobowitz <drow@mvista.com>
10135
10136 Fix PR gdb/961.
8ffd9b1b 10137 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
10138 variables.
10139 (RANGES_SECTION): New.
10140 (dwarf_ranges_buffer): New variable.
10141 (struct comp_unit_head): Add member "die".
10142 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10143 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10144 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10145 (dwarf2_locate_sections): Likewise.
10146 (dwarf2_build_psymtabs): Read .debug_ranges.
10147 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10148 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10149 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10150 Look for DW_AT_ranges and return the bounding box.
10151
baa93fa6
CF
101522003-01-29 Brian Ford <ford@vss.fsi.com>
10153
10154 * win32-nat.c (cygwin_pid): Removed as unused.
10155 (child_attach): Try fall back to Cygwin pid.
10156
c63f977f
JB
101572003-01-29 Jim Blandy <jimb@redhat.com>
10158
10159 * objfiles.h (struct objfile): Doc fix.
10160
d62d1979
AC
101612003-01-29 Andrew Cagney <ac131313@redhat.com>
10162
10163 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10164 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10165 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10166 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10167 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10168 (FRAME_SAVED_PC): Change to a function with predicate.
10169 * gdbarch.h, gdbarch.c: Re-generate.
10170
1ae18a04
AC
101712003-01-28 Andrew Cagney <ac131313@redhat.com>
10172
52287340
AC
10173 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10174
1ae18a04
AC
10175 * complaints.c (complain): Delete function.
10176 * complaints.h (struct deprecated_complaint): Delete definition.
10177 (complain): Delete declaration.
10178
f2c16bd6
KB
101792003-01-28 Kevin Buettner <kevinb@redhat.com>
10180
10181 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10182 dummy frames.
10183
a94dd1fd
AC
101842003-01-27 Andrew Cagney <ac131313@redhat.com>
10185
10186 * sentinel-frame.h, sentinel-frame.c: New files.
10187 * Makefile.in (frame.o): Update dependencies.
10188 (SFILES): Add sentinel-frame.c.
10189 (sentinel_frame_h): Define.
10190 (COMMON_OBS): Add sentinel-frame.o.
10191 (sentinel-frame.o): Specify dependencies.
10192 * frame.c: Include "sentinel-frame.h".
10193 (frame_register_unwind): Rewrite assuming that there is always a a
10194 ->next frame.
10195 (frame_register, generic_unwind_get_saved_register): Ditto.
10196 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10197 (create_sentinel_frame, unwind_to_current_frame): New functions.
10198 (get_current_frame): Rewrite using create_sentinel_frame and
10199 unwind_to_current_frame. When possible, always create a frame.
10200 (create_new_frame): Set next to the sentinel frame.
10201 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10202 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10203 ID cache when necessary.
10204 (frame_saved_regs_id_unwind): Use frame_relative_level.
10205 (deprecated_generic_get_saved_register): Use frame_relative_level,
10206 get_frame_saved_regs, get_frame_pc, get_frame_base and
10207 get_next_frame.
10208 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10209 frame_register.
10210
5378adc4
DJ
102112003-01-27 Daniel Jacobowitz <drow@mvista.com>
10212
10213 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10214
51ee2ddc
DJ
102152003-01-27 Daniel Jacobowitz <drow@mvista.com>
10216
10217 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10218 (maintenance_set_profile_cmd): Use error () instead of warning ().
10219
d9feb4e7
DJ
102202003-01-27 Daniel Jacobowitz <drow@mvista.com>
10221
10222 * configure.in: Check that -pg works if using --enable-profiling.
10223 Check for monstartup and _mcleanup regardless of --enable-profiling.
10224 * maint.c: Check for monstartup and _mcleanup before using them.
10225 * config.in: Regenerated.
10226 * configure: Regenerated.
10227
2d188dd3
NC
102282003-01-24 Nick Clifton <nickc@redhat.com>
10229
10230 * Add sh2e support:
10231
10232 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10233
10234 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10235 (sh2e_show_regs): New.
10236 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10237 * config/sh/tm-sh.h: Added sh2e to comments.
10238
cb3c37b2
JB
102392003-01-23 Jim Blandy <jimb@redhat.com>
10240
10241 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10242 symbols found)" message here; we haven't checked for a separate
10243 debug info file yet, so we don't know yet.
10244 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10245 we've looked everywhere. Also, there's no need to print a special
10246 message when we're loading the separate debug info file: the one
10247 symbol_file_add prints is fine.
10248
5b5d99cf
JB
102492003-01-23 Alexander Larsson <alexl@redhat.com>
10250 Jim Blandy <jimb@redhat.com>
10251
10252 Add support for executables whose debug info has been separated
10253 out into a separate file, leaving only a link behind.
10254 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10255 and separate_debug_objfile_backlink.
10256 (put_objfile_before): New declaration.
10257 * symfile.c: #include "filenames.h".
10258 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10259 debug info in a separate file, read that, too. Save the addrs
10260 argument, so we can use it again to read the separated debug info;
10261 syms_from_objfile modifies the table we pass it.
10262 (reread_symbols): After re-reading an objfile, call
10263 reread_separate_symbols to refresh its separate debug info
10264 objfile, if it has one.
10265 (reread_separate_symbols, find_separate_debug_file,
10266 get_debug_link_info, separate_debug_file_exists): New functions.
10267 (debug_file_directory): New global var.
10268 (_initialize_symfile): Initialize debug_file_directory, and
10269 provide the new `set debug-file-directory' command to let the user
10270 change it.
10271 * objfiles.c (free_objfile): If this objfile has its debug info in
10272 a separate objfile, free that one too. If this is itself a
10273 separate debug info objfile, clear our parent's backlink.
10274 (put_objfile_before): New function.
10275 * utils.c (gnu_debuglink_crc32): New function.
10276 * defs.h (gnu_debuglink_crc32): New declaration.
10277 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10278 * configure.in: Handle --with-separate-debug-dir config option.
10279 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10280 * acconfig.h (DEBUGDIR): New macro.
10281 * configure, aclocal.m4, config.in: Regenerated.
10282
7e8580c1
JB
102832003-01-22 Jim Blandy <jimb@redhat.com>
10284
7904e09f
JB
10285 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10286 like the old symbol_file_add, but taking new arguments: you can
10287 now pass in either a `struct section_addr_info' list to say where
10288 each section is loaded, or a `struct section_offsets' table. Pass
10289 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 10290 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
10291 with the appropriate quiescent values for the new arguments.
10292
7e8580c1
JB
10293 * symfile.c: #include "gdb_assert.h".
10294 (syms_from_objfile): Add the ability to pass in a section offset
10295 table directly, as an alternative to the section_addr_info table.
10296 Document arguments better.
10297 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10298 * symfile.h (syms_from_objfile): Update declaration.
10299 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10300 syms_from_objfile.
10301 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10302
d28f9cdf
DJ
103032003-01-22 Daniel Jacobowitz <drow@mvista.com>
10304
10305 Original patch by Tom Tromey <tromey@cygnus.com> and
10306 Jason Molenda <jmolenda@apple.com>.
10307 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10308 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10309 * NEWS: Mention profiling.
10310 * configure.in (--enable-gdbtk): Fix typo.
10311 (--enable-profiling): New. Set PROFILE_CFLAGS.
10312 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10313 Fill in function.
10314 (profiling_state): New variable.
10315 (mcleanup_wrapper): New function.
10316 (_initialize_maint): Remove NOTYET, fix call to
10317 add_setshow_boolean_cmd for "maint set profile".
10318 * configure: Regenerated.
10319
df21e465
MH
103202003-01-21 Martin M. Hunt <hunt@redhat.com>
10321
10322 * Makefile.in (install-gdbtk): Install PNG images too.
10323
73c1f219
AC
103242003-01-21 Andrew Cagney <ac131313@redhat.com>
10325
10326 * exec.c (text_start): Delete global variable.
10327 (exec_file_attach): Make text_start local to the function.
10328 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10329 * valops.c (hand_function_call): Delete code that handles
10330 BEFORE_TEXT_END and AFTER_TEXT_END.
10331 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10332 of CALL_DUMMY_LOCATION.
10333 * gdbarch.c: Regenerate.
10334 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10335 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10336 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10337 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10338 (text_end): Delete extern declaration.
10339
eb4f72c5
AC
103402003-01-21 Andrew Cagney <ac131313@redhat.com>
10341
10342 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10343 * blockframe.c (backtrace_below_main): Move to "frame.c".
10344 (frame_chain_valid): Delete check for backtrace_below_main.
10345 (_initialize_blockframe): Delete initialization, move ``set
10346 backtrace-below-main'' command to "frame.c".
10347 (do_flush_frames_sfunc): Delete function.
10348 * frame.c: Include "command.h" and "gdbcmd.h".
10349 (frame_type_from_pc): New function.
10350 (create_new_frame): Use frame_type_from_pc.
10351 (legacy_get_prev_frame): New function.
10352 (get_prev_frame): Rewrite. When an old style frame, call
10353 legacy_get_prev_frame. Otherwize, unwind the PC first.
10354 (_initialize_frame): Add ``set backtrace-below-main'' command.
10355 * Makefile.in (frame.o): Update dependencies.
10356
778ce8cc
AC
103572003-01-19 Andrew Cagney <ac131313@redhat.com>
10358
10359 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10360 DEPRECATED_REGISTERS_INFO.
10361
01c193c8
AC
103622003-01-19 Andrew Cagney <ac131313@redhat.com>
10363
10364 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10365 Maintainers'. Update `Various Maintainers'.
10366
dedc2a2b
AC
103672003-01-19 Andrew Cagney <ac131313@redhat.com>
10368
10369 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10370 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10371 Suppress actual parameters when `-'.
10372 * gdbarch.h, gdbarch.c: Regenerate.
10373
b7261c70
AC
103742003-01-19 Andrew Cagney <ac131313@redhat.com>
10375
10376 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10377 code handling dummy frames.
10378
dbe9fe58
AC
103792003-01-19 Andrew Cagney <ac131313@redhat.com>
10380
10381 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10382 (struct frame_unwind): Add field pop.
10383 * frame.h (frame_pop): Declare.
10384 * frame.c (frame_saved_regs_pop): New function.
10385 (trad_frame_unwinder): Add frame_saved_regs_pop.
10386 (frame_pop): New function.
10387 * dummy-frame.c (dummy_frame_pop): New function.
10388 (discard_innermost_dummy): New function.
10389 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10390 (dummy_frame_unwind): Add dummy_frame_pop.
10391 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10392 * valops.c (hand_function_call): Ditto.
10393 * stack.c (return_command): Ditto.
10394
570b8f7c
AC
103952003-01-18 Andrew Cagney <ac131313@redhat.com>
10396
10397 * cris-tdep.c: Fix function declaration indentation.
10398 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10399 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10400 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10401 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10402 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10403 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10404
104052003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
10406
10407 * README (Unpacking and Installation -- quick overview):
10408 Warn against ".../gdb-5.3/gdb/configure".
10409
494cca16
AC
104102003-01-18 Andrew Cagney <ac131313@redhat.com>
10411
10412 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10413 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10414 (struct frame_unwind): Declare opaque.
10415 (dummy_frame_p): Declare function.
10416 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10417 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10418 * dummy-frame.c: Include "frame-unwind.h".
10419 (dummy_frame_p): New function.
10420 (dummy_frame_unwind): New variable.
10421 * frame.c: Include "frame-unwind.h".
10422 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10423 to use the new unwind field.
10424 (set_unwind_by_pc): Delete function.
10425 (create_new_frame, get_prev_frame): Set unwind field using
10426 frame_unwind_find_by_pc.
10427 (trad_frame_unwind, trad_frame_unwinder): New variables.
10428 * frame.h (trad_frame_unwind): Declare variable.
10429 (frame_id_unwind_ftype): Delete declaration.
10430 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10431 (struct frame_unwind): Declare opaque.
10432 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10433 register_unwind with a single unwind pointer.
10434 * frame-unwind.h, frame-unwind.c: New files.
10435 * Makefile.in (SFILES): Add frame-unwind.c.
10436 (frame_unwind_h): Define.
10437 (COMMON_OBS): Add frame-unwind.o.
10438 (frame-unwind.o): Specify dependencies.
10439 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 10440
4efb68b1
AC
104412003-01-18 Andrew Cagney <ac131313@redhat.com>
10442
10443 * ada-valprint.c: Eliminate PTR.
10444 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10445 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10446 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10447 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10448 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10449 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10450 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 10451
a84d24ee
AC
104522003-01-17 Andrew Cagney <ac131313@redhat.com>
10453
762f08a3
AC
10454 * main.c (captured_main): Don't use PTR.
10455 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10456 * gdbtypes.c (lookup_primitive_typename): Ditto.
10457 (lookup_struct_elt_type): Ditto.
10458 * f-valprint.c (info_common_command): Ditto.
10459 (list_all_visible_commons): Ditto.
10460 * jv-typeprint.c (java_type_print_base): Ditto.
10461
a84d24ee
AC
10462 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10463 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10464 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10465 i386-interix-nat.c and i386-interix-tdep.c. Rename
10466 m68klinux-nat.c and m68klinux-tdep.c. Rename
10467 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10468 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10469 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10470 * main.c (captured_main): Use xfree, not free.
10471
c170fb60
AC
104722003-01-16 Andrew Cagney <ac131313@redhat.com>
10473
10474 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10475 ID back using a parameter.
10476 * frame.c (frame_id_unwind): Update call.
10477 (frame_saved_regs_id_unwind): Update.
10478 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10479 * dummy-frame.h (struct frame_id): Add opaque declaration.
10480 (dummy_frame_id_unwind): Update declaration.
10481
867f3898
AC
104822003-01-15 Andrew Cagney <ac131313@redhat.com>
10483
10484 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10485
40622be8 104862003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 10487
40622be8 10488 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 10489
ae66c1fc
EZ
104902003-01-14 Elena Zannoni <ezannoni@redhat.com>
10491
997b089a 10492 Fix PR gdb/898
ae66c1fc
EZ
10493 * breakpoint.c (until_break_command): Add new argument. Use it to
10494 decide whether to stop only at the current frame or not.
10495 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 10496 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
10497 call.
10498 (advance_command): New function.
10499 (_initialize_infcmd): Update help string for 'until' command.
10500 Add new 'advance' command.
10501
a04257e6
DC
105022003-01-14 David Carlton <carlton@math.stanford.edu>
10503
10504 * linespec.c (decode_line_1): Normalize comments.
10505 (set_flags): Ditto.
10506 (locate_first_half): Ditto.
10507 (decode_compound): Ditto.
10508 (symtab_from_filename): Ditto.
10509 (decode_all_digits): Ditto.
10510 (decode_dollar): Ditto.
10511 (find_methods): Ditto.
10512 (find_toplevel_char): Ditto.
10513
1bac305b
AC
105142003-01-13 Andrew Cagney <ac131313@redhat.com>
10515
10516 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10517 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10518 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10519 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10520 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10521 * language.c, language.h, m32r-tdep.c: Update copyright.
10522 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10523 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10524 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10525 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10526 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10527 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10528
25caa7a8
EZ
105292003-01-13 Elena Zannoni <ezannoni@redhat.com>
10530
10531 * stabsread.h (process_later, resolve_cfront_continuation):
10532 Obsolete.
10533 Update copyright years.
10534 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10535 Update copyright year.
10536 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 10537 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
10538 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10539 Update copyright year.
10540 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10541 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10542 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10543 (parse_partial_symbols): Obsolete cfront support.
10544 * stabsread.c
10545 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10546 macros.
10547 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10548 read_cfront_baseclasses, read_cfront_member_functions,
10549 resolve_cfront_continuation,read_cfront_static_fields,
10550 copy_cfront_struct_fields): Obsolete functions.
10551 (define_symbol, read_one_struct_field): Obsolete cfront support.
10552 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10553 Update Copyright year.
10554
7789c6f5
EZ
105552003-01-13 Elena Zannoni <ezannoni@redhat.com>
10556
10557 * stack.c (print_frame_info, print_stack_frame_base_stub,
10558 print_stack_frame_base, show_and_print_stack_frame_stub,
10559 show_and_print_stack_frame, print_only_stack_frame_stub,
10560 print_only_stack_frame): Delete functions.
10561 (print_stack_frame_stub): Call print_frame_info instead of
10562 print_frame_info_base.
10563 (print_frame_info_base): Rename to print_frame_info.
10564 (backtrace_command_1): Call print_frame_info, instead of
10565 print_frame_info_base.
10566 (current_frame_command): Call print_stack_frame, instead of
10567 print_only_stack_frame.
10568 (frame_command): Call print_stack_frame, instead of
10569 show_and_print_stack_frame.
10570 (up_command): Ditto.
10571 (down_command): Ditto.
10572 * frame.h (print_only_stack_frame): Delete prototype.
10573 * infrun.c (normal_stop): Call print_stack_frame, instead of
10574 show_and_print_stack_frame.
10575 * thread.c (info_threads_command): Call print_stack_frame, instead
10576 of print_only_stack_frame.
10577
3f5a3016
AC
105782003-01-13 Andrew Cagney <ac131313@redhat.com>
10579
d99ba314
AC
10580 * README (Graphical interface to GDB): Update URL. Point at
10581 gdb/links/.
10582
3f5a3016
AC
10583 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10584 version match.
10585
083ae935
DJ
105862003-01-13 Daniel Jacobowitz <drow@mvista.com>
10587
10588 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10589 lines.
10590
5365276c
DJ
105912003-01-13 Daniel Jacobowitz <drow@mvista.com>
10592
10593 * thread-db.c (attach_thread): Prototype.
10594 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10595 thread information (ti), and valid flags (th_valid, ti_valid).
10596 (attach_thread): Move target_pid_to_str call to after the thread
10597 is added to GDB's list. Initialize the cache.
10598 (thread_get_info_callback, thread_db_map_id2thr)
10599 (thread_db_get_info): New functions.
10600 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10601 (thread_db_store_registers, thread_db_thread_alive)
10602 (thread_db_get_thread_local_address): Use them.
10603 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10604 of calling error() for threads in unknown state.
10605
10606 (clear_lwpid_callback): New function.
10607 (thread_db_resume): Use it to clear the cache.
10608
9fc30b6b
DJ
106092003-01-13 Daniel Jacobowitz <drow@mvista.com>
10610
10611 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10612 (resume_callback): Remove dead code.
10613
8f871025
AC
106142003-01-13 Andrew Cagney <ac131313@redhat.com>
10615
10616 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10617 predicate.
10618 * gdbarch.h, gdbarch.c: Regenerate.
10619 * stack.c (frame_info): Only initialize the saved registers when
10620 FRAME_INIT_SAVED_REGS_P.
10621 * frame.c (frame_saved_regs_register_unwind): Assert
10622 FRAME_INIT_SAVED_REGS_P.
10623 (deprecated_generic_get_saved_register): Ditto.
10624
3f565f1e
DJ
106252003-01-13 Daniel Jacobowitz <drow@mvista.com>
10626
10627 * source.c (openp): Squelch warning about "filename".
10628
072b1022
DJ
106292003-01-13 Daniel Jacobowitz <drow@mvista.com>
10630
10631 * source.c (openp): If the file does not exist don't necessarily
10632 search the path.
10633
973ccf8b
DJ
106342003-01-13 Daniel Jacobowitz <drow@mvista.com>
10635
10636 Fix PR gdb/872.
10637 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10638 (integer_types_same_name_p): New function.
10639 (rank_one_type): Use it.
10640 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10641
030292b7
DJ
106422003-01-13 Daniel Jacobowitz <drow@mvista.com>
10643
10644 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10645 variables.
10646 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10647 * configure.in: Add --with-sysroot.
10648 * configure: Regenerated.
10649 * main.c (gdb_sysroot): New variable.
10650 (captured_main): Initialize gdb_sysroot.
10651 * defs.h (gdb_sysroot): New extern declaration.
10652 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10653
afb5d334
MC
106542003-01-12 Michael Chastain <mec@shout.net>
10655
10656 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10657
751ceeb4
MC
106582003-01-12 Michael Chastain <mec@shout.net>
10659
10660 * top.c (print_gdb_version): Bump copyright year to 2003.
10661
94cd26f8
DC
106622003-01-12 David Carlton <carlton@bactrian.org>
10663
10664 * linespec.c (symtab_from_filename): Rename variable 's' to
10665 'file_symtab'.
10666
1ce79225
AC
106672003-01-12 Andrew Cagney <ac131313@redhat.com>
10668
10669 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10670 dummy frame.
10671 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10672
fa1fd571
AC
106732003-01-12 Andrew Cagney <ac131313@redhat.com>
10674
10675 * d10v-tdep.c: Include "gdb_assert.h".
10676 (d10v_store_return_value): Rewrite to match current interface.
10677 (d10v_extract_struct_value_address): Ditto.
10678 (d10v_extract_return_value): Ditto.
10679 (d10v_gdbarch_init): Set store_restore_value,
10680 extract_struct_value_address and extract_return_value.
10681
68b8d23e
JB
106822003-01-12 J. Brobecker <brobecker@gnat.com>
10683
10684 * hpread.c (set_namestring): New procedure replacing the
10685 SET_NAMESTRING macro.
10686 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10687 by calls to set_namestring.
10688
106892003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
10690
10691 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10692 a compilation warning.
10693 (hpread_process_one_debug_symbol): Likewise.
10694
88d262ca
DC
106952003-01-10 David Carlton <carlton@math.stanford.edu>
10696
10697 * linespec.c (decode_line_1): Rename variable 's' to
10698 'file_symtab'.
10699 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10700 (decode_dollar): Ditto.
10701 (decode_variable): Ditto.
10702 (symbol_found): Ditto.
10703
86669319
MC
107042003-01-09 Michael Chastain <mec@shout.net>
10705
10706 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10707
616a9dc4
CV
107082003-01-07 Corinna Vinschen <vinschen@redhat.com>
10709
10710 * win32-nat.c (set_process_privilege): New function.
10711 (child_attach): Call set_process_privilege() to enable the
10712 SE_DEBUG_NAME user privilege if available in process token.
10713
3269bcfa
JB
107142003-01-10 J. Brobecker <brobecker@gnat.com>
10715
10716 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10717 compilation error in the previous revision.
10718
2b0ee454
DC
107192003-01-09 David Carlton <carlton@math.stanford.edu>
10720
10721 * linespec.c: Update copyright.
10722
b3ba1b44
DJ
107232003-01-09 Daniel Jacobowitz <drow@mvista.com>
10724
10725 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10726 than inferior_ptid.
10727 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10728
4ef3f3be
AC
107292003-01-09 Andrew Cagney <ac131313@redhat.com>
10730
479ab5a0
AC
10731 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10732 Update comments.
10733 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10734 (frame_saved_regs_zalloc): Update.
10735 (frame_saved_regs_register_unwind): Update.
10736 (create_new_frame): Update.
10737 (get_prev_frame): Update.
10738 (frame_extra_info_zalloc): Update.
10739 (deprecated_get_frame_saved_regs): Update.
10740 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10741 * cris-tdep.c: Update comment.
10742
bde58177
AC
10743 * somsolib.h: Fix function indentation.
10744 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10745 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10746 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10747 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10748 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10749
4ef3f3be
AC
10750 * infrun.c (follow_fork): Use ISO C definition.
10751 * expprint.c (print_subexp): Use xfree instead of free.
10752 * charset.c: Include "gdb_string.h" instead of <string.h>.
10753 (register_iconv_charsets): Use ISO C definition.
10754 (host_charset, target_charset): Ditto.
10755 * Makefile.in (charset.o): Update dependencies.
10756 (mi-cmd-env.o): Update dependencies.
10757
1c615f7a
AC
107582003-01-08 Andrew Cagney <cagney@redhat.com>
10759
10760 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10761 get_frame_base.
10762
c9a1dc08
AC
107632003-01-08 Andrew Cagney <ac131313@redhat.com>
10764
10765 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10766 build directories. Save edited gdb output in Mbuild.log. If a
10767 build fails, remove any final GDB executable.
10768
dbad9d94
AC
107692003-01-08 Andrew Cagney <ac131313@redhat.com>
10770
10771 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10772 replacing hex constants with function names and stripping leading
10773 file name directory prefixes.
10774
8d357cca
AC
107752003-01-08 Andrew Cagney <cagney@redhat.com>
10776
10777 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10778 get_frame_base.
10779
bca02a8a
DC
107802003-01-08 David Carlton <carlton@math.stanford.edu>
10781
10782 * linespec.c (decode_line_1): Move code into decode_variable.
10783 (decode_variable): New function.
10784
7f8ab3a0
AC
107852003-01-08 Andrew Cagney <ac131313@redhat.com>
10786
10787 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10788
7b5849cc
AC
107892003-01-08 Andrew Cagney <cagney@redhat.com>
10790
10791 * cris-tdep.c (cris_frame_init_saved_regs): Use
10792 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10793 saved_regs buffer.
10794 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10795 (sh64_nofp_frame_init_saved_regs): Ditto.
10796 (sh_fp_frame_init_saved_regs): Ditto.
10797 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10798 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10799 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10800 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10801
72a5efb3
DJ
108022003-01-08 Daniel Jacobowitz <drow@mvista.com>
10803
10804 * minsyms.c (lookup_minimal_symbol): Update comment.
10805 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10806 (lookup_minimal_symbol_solib_trampoline): Likewise.
10807
11c02a10
AC
108082003-01-08 Andrew Cagney <cagney@redhat.com>
10809
aab3ea25
AC
10810 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10811 frame_relative_level.
10812
da50a4b7
AC
10813 * alpha-tdep.c: Use get_frame_extra_info.
10814 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10815 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10816 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10817 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10818
11c02a10
AC
10819 * alpha-tdep.c: Use get_next_frame.
10820 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10821 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10822 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10823 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10824 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10825 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10826 * xstormy16-tdep.c: Ditto.
8ffd9b1b 10827
1e2330ba
AC
108282003-01-07 Andrew Cagney <cagney@redhat.com>
10829
10830 * alpha-tdep.c: Use get_frame_base.
10831 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10832 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10833 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10834 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10835 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10836 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10837 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10838 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 10839
2d75187b
AC
108402003-01-07 Andrew Cagney <cagney@redhat.com>
10841
10842 * frame.c (deprecated_get_frame_context): New function.
10843 (deprecated_set_frame_context): New function.
10844 * frame.h (deprecated_get_frame_context): Declare.
10845 (deprecated_set_frame_context): Declare.
10846 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10847 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 10848
483d36b2
AC
108492003-01-07 Andrew Cagney <cagney@redhat.com>
10850
10851 * frame.c (deprecated_set_frame_next_hack): New function.
10852 (deprecated_set_frame_prev_hack): New function.
10853 * frame.h (deprecated_set_frame_next_hack): Declare.
10854 (deprecated_set_frame_prev_hack): Declare.
10855 * mcore-tdep.c (analyze_dummy_frame): Use
10856 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10857 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10858
14e91ac5
DC
108592003-01-07 David Carlton <carlton@math.stanford.edu>
10860
10861 * linespec.c (decode_line_1): Move code into decode_dollar.
10862 (decode_dollar): New function.
10863
b0c6b05c
AC
108642003-01-07 Andrew Cagney <cagney@redhat.com>
10865
10866 * arm-tdep.c (arm_init_extra_frame_info): Use
10867 deprecated_update_frame_base_hack.
10868 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10869 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10870 (fix_frame_pointer): Ditto.
10871 (mn10300_analyze_prologue): Ditto.
10872
a00a19e9
AC
108732003-01-07 Andrew Cagney <cagney@redhat.com>
10874
10875 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10876 extra_info using frame_extra_info_zalloc.
10877 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10878 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10879 (sh64_init_extra_frame_info): Ditto.
10880 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10881 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10882 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10883 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10884 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10885 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10886 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10887 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10888 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10889 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10890 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10891 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10892
10893 * mn10300-tdep.c (analyze_dummy_frame): Use
10894 deprecated_set_frame_extra_info_hack.
10895 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10896
1fb4c65b
JB
108972003-01-07 J. Brobecker <brobecker@gnat.com>
10898
10899 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10900 class is not scText. These do not define "real" procedures.
10901 (parse_partial_symbols): Likewise.
10902
9fe7d6bf
MS
109032003-01-06 Michael Snyder <msnyder@redhat.com>
10904
10905 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10906
f6c609c4
AC
109072003-01-06 Andrew Cagney <ac131313@redhat.com>
10908
10909 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10910 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10911 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10912 deprecated_frame_xmalloc_with_cleanup.
10913 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10914 deprecated_frame_xmalloc.
10915 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10916 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10917
d995ff4b
AC
109182003-01-06 Andrew Cagney <cagney@redhat.com>
10919
84dc46cb
AC
10920 * x86-64-linux-tdep.c: Include "osabi.h".
10921 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10922
d995ff4b
AC
10923 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10924
66140c26
AC
109252003-01-06 Andrew Cagney <cagney@redhat.com>
10926
10927 * MAINTAINERS (Target Instruction Set Architectures): Update
10928 arm-elf. Can be built with -Werror, has been multiarched.
10929
10930 * value.h (unpack_long): Make buffer parameter constant.
10931 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10932 * scm-lang.h (scm_parse): Ditto.
10933 * defs.h (extract_typed_address, extract_address): Ditto.
10934 (extract_long_unsigned_integer): Ditto.
10935 * inferior.h (unsigned_pointer_to_address): Ditto.
10936 (signed_pointer_to_address): Ditto.
10937 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10938 * gdbarch.h, gdbarch.c: Regenerate.
10939 * findvar.c (extract_long_unsigned_integer): Update.
10940 (extract_address): Update.
10941 (extract_typed_address): Update.
10942 (unsigned_pointer_to_address): Update.
10943 * values.c (unpack_long): Update.
10944 (unpack_double): Update.
10945 (unpack_pointer): Update.
10946 (unpack_field_as_long): Update.
10947 * d10v-tdep.c (d10v_pointer_to_address): Update.
10948 * avr-tdep.c (avr_pointer_to_address): Update.
10949 * scm-lang.c (scm_unpack): Update.
10950 * findvar.c (signed_pointer_to_address): Update.
10951
b089b3da
ML
109522003-01-06 Michal Ludvig <mludvig@suse.cz>
10953
8ffd9b1b 10954 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
10955 since it is in i386-tdep.c.
10956
aff87235
JB
109572003-01-06 J. Brobecker <brobecker@gnat.com>
10958
10959 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10960 failure introduced in the previous change.
10961
34f5e845
MC
109622003-01-05 Michael Chastain <mec@shout.net>
10963
10964 * README: Remove references to deleted remote-*.c files:
10965 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10966 remote-nrom.c, remote-os9k.c, remote-udi.c.
10967
28bcfd30
MK
109682003-01-05 Mark Kettenis <kettenis@gnu.org>
10969
10970 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10971 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10972 i386_get_longjmp_target.
10973
15a5b3ee
AC
109742003-01-05 Andrew Cagney <ac131313@redhat.com>
10975
10976 * arm-tdep.c (prologue_cache): Change to a pointer.
10977 (_initialize_arm_tdep): Allocate prologue_cache.
10978 (check_prologue_cache): Update.
10979 (save_prologue_cache): Update.
10980 (arm_gdbarch_init): Update.
10981
c263362b
DJ
109822003-01-04 Daniel Jacobowitz <drow@mvista.com>
10983
10984 * stabsread.c (update_method_name_from_physname): Call complaint()
10985 instead of error.
10986
51603483
DJ
109872003-01-04 Daniel Jacobowitz <drow@mvista.com>
10988
10989 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10990 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10991 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10992
10993 * blockframe.c: Include "gdbcmd.h" and "command.h".
10994 (backtrace_below_main): New variable.
10995 (file_frame_chain_valid, func_frame_chain_valid)
10996 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10997 (generic_func_frame_chain_valid): Remove functions.
10998 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10999 (_initialize_blockframe): New function.
11000 * Makefile.in (blockframe.o): Update dependencies.
11001 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11002 comment. Call frame_chain_valid ().
11003 * frame.h: Remove old prototypes. Add prototype for
11004 frame_chain_valid and update comments to match.
11005 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11006 Remove old comment.
11007 * gdbarch.h: Regenerated.
11008 * gdbarch.c: Regenerated.
11009
11010 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11011 set_gdbarch_frame_chain_valid.
11012 * avr-tdep.c (avr_gdbarch_init): Likewise.
11013 * cris-tdep.c (cris_gdbarch_init): Likewise.
11014 * frv-tdep.c (frv_gdbarch_init): Likewise.
11015 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11016 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11017 (i386_nw_init_abi): Likewise.
11018 (i386_gdbarch_init): Likewise.
11019 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11020 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11021 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11022 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11023 * mips-tdep.c (mips_gdbarch_init): Likewise.
11024 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11025 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11026 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11027 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11028 * s390-tdep.c (s390_gdbarch_init): Likewise.
11029 * sh-tdep.c (sh_gdbarch_init): Likewise.
11030 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11031 * v850-tdep.c (v850_gdbarch_init): Likewise.
11032 * vax-tdep.c (vax_gdbarch_init): Likewise.
11033 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11034
11035 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11036 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11037 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11038 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11039 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11040 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11041 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11042 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11043
b00a8037
DJ
110442002-01-04 Daniel Jacobowitz <drow@mvista.com>
11045
11046 * Makefile.in (acconfig_h): Remove incorrect macro.
11047 (config_h): Define.
11048 (osabi.o): Update dependencies.
11049 * configure.tgt: Set gdb_osabi based on target triplet.
11050 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11051 * configure: Regenerated.
11052 * config.in: Regenerated.
11053 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11054 (GDB_OSABI_DEFAULT): Define if not already defined.
11055 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11056 (set_osabi_string): New variables.
11057 (gdbarch_register_osabi): Add new OS ABI to
11058 gdb_osabi_available_names.
11059 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11060 (set_osabi, show_osabi): New functions.
11061 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11062
4be87837
DJ
110632003-01-04 Daniel Jacobowitz <drow@mvista.com>
11064
11065 * arch-utils.c (gdbarch_info_init): Set osabi to
11066 GDB_OSABI_UNINITIALIZED.
11067 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11068 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11069 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11070 * gdbarch.c: Regenerated.
11071 * gdbarch.h: Regenerated.
11072 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11073 there's no BFD.
11074 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11075 * osabi.h (enum gdb_osabi): Move to defs.h.
11076 (gdbarch_init_osabi): Update prototype.
11077 * defs.h (enum gdb_osabi): Moved here.
11078 * Makefile.in: Update dependencies.
11079
11080 * alpha-tdep.h: Don't include "osabi.h".
11081 (struct gdbarch_tdep): Remove osabi member.
11082 * alpha-tdep.c: Include "osabi.h".
11083 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11084 iterate over arches. Update call to gdbarch_init_osabi.
11085 (alpha_dump_tdep): Don't dump osabi.
11086 * alpha-linux-tdep.c: Include "osabi.h".
11087 * alpha-osf1-tdep.c: Include "osabi.h".
11088 * alphafbsd-tdep.c: Include "osabi.h".
11089 * alphanbsd-tdep.c: Include "osabi.h".
11090
11091 * arm-tdep.h: Don't include "osabi.h".
11092 (struct gdbarch_tdep): Remove osabi member.
11093 * arm-tdep.c: Include "osabi.h".
11094 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11095 iterate over arches. Update call to gdbarch_init_osabi.
11096 (arm_dump_tdep): Don't dump osabi.
11097 * arm-linux-tdep.c: Include "osabi.h".
11098 * armnbsd-tdep.c: Include "osabi.h".
11099
11100 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11101 Update call to gdbarch_init_osabi.
11102
11103 * i386-tdep.h: Don't include "osabi.h".
11104 (struct gdbarch_tdep): Remove osabi member.
11105 * i386-tdep.c: Include "osabi.h".
11106 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11107 iterate over arches. Update call to gdbarch_init_osabi.
11108 (i386_dump_tdep): Don't dump osabi.
11109 * i386-linux-tdep.c: Include "osabi.h".
11110 * i386-sol2-tdep.c: Include "osabi.h".
11111 * i386bsd-tdep.c: Include "osabi.h".
11112 * i386gnu-tdep.c: Include "osabi.h".
11113 * i386ly-tdep.c: Include "osabi.h".
11114 * i386nbsd-tdep.c: Include "osabi.h".
11115 * i386obsd-tdep.c: Include "osabi.h".
11116
11117 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11118 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11119 check osabi when iterating over arches. Update call to
11120 gdbarch_init_osabi.
11121 (mips_dump_tdep): Don't dump osabi.
11122
11123 * ns32k-tdep.h: Don't include "osabi.h".
11124 (struct gdbarch_tdep): Remove.
11125 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11126 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11127 allocate tdep. Update call to gdbarch_init_osabi.
11128 (ns32k_dump_tdep): Remove.
11129 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11130 * ns32knbsd-tdep.c: Include "osabi.h".
11131
11132 * ppc-tdep.h: Don't include "osabi.h".
11133 (struct gdbarch_tdep): Remove osabi member.
11134 * rs6000-tdep.c: Include "osabi.h".
11135 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11136 osabi when iterating over arches. Update call to
11137 gdbarch_init_osabi.
11138 (rs6000_dump_tdep): Don't dump osabi.
11139 * ppc-linux-tdep.c: Include "osabi.h".
11140 * ppcnbsd-tdep.c: Include "osabi.h".
11141
11142 * sh-tdep.h: Don't include "osabi.h".
11143 (struct gdbarch_tdep): Remove osabi member.
11144 * sh-tdep.c: Include "osabi.h".
11145 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11146 iterate over arches. Update call to gdbarch_init_osabi.
11147 (sh_dump_tdep): Don't dump osabi.
11148 * shnbsd-tdep.c: Include "osabi.h".
11149
11150 * sparc-tdep.c: Include "osabi.h".
11151 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11152 iterate over arches. Update call to gdbarch_init_osabi.
11153 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11154 tdep structure.
11155
11156 * vax-tdep.h: Don't include "osabi.h".
11157 (struct gdbarch_tdep): Remove.
11158 * vax-tdep.c: Include "osabi.h".
11159 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11160 iterate over arches. Don't allocate tdep. Update call
11161 to gdbarch_init_osabi.
11162 (vax_dump_tdep): Remove.
11163 (_initialize_vax_tdep): Update call to gdbarch_register.
11164
a881cf8e
DJ
111652003-01-04 Daniel Jacobowitz <drow@mvista.com>
11166
11167 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11168 entirely.
11169 (breakpoint_re_set_one): Don't fetch the value for a disabled
11170 watchpoint.
11171
1e698235
DJ
111722003-01-04 Daniel Jacobowitz <drow@mvista.com>
11173
11174 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11175 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11176 (COERCE_FLOAT_TO_DOUBLE): Remove.
11177 * gdbarch.c: Regenerate.
11178 * gdbarch.h: Regenerate.
11179 * Makefile.in: Remove value_h from gdbarch_h.
11180 * valops.c (coerce_float_to_double): New variable.
11181 (default_coerce_float_to_double): Remove.
11182 (standard_coerce_float_to_double): Remove.
11183 (value_arg_coerce): Use coerce_float_to_double.
11184 (_initialize_valops): Add "set coerce-float-to-double".
11185 * value.h (default_coerce_float_to_double): Remove prototype.
11186 (standard_coerce_float_to_double): Remove prototype.
11187
11188 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11189 prototyped.
11190 * mdebugread.c (parse_symbol): Likewise.
11191 * stabsread.c (define_symbol): Mark all functions as prototyped.
11192
11193 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11194 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11195 set_gdbarch_coerce_float_to_double.
11196 * arm-tdep.c (arm_gdbarch_init): Likewise.
11197 * frv-tdep.c (frv_gdbarch_init): Likewise.
11198 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11199 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11200 * mips-tdep.c (mips_gdbarch_init): Likewise.
11201 (mips_coerce_float_to_double): Remove.
11202 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11203 (rs6000_coerce_float_to_double): Remove.
11204 * s390-tdep.c (s390_gdbarch_init): Likewise.
11205 * sh-tdep.c (sh_gdbarch_init): Likewise.
11206 (sh_coerce_float_to_double): Remove.
11207 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11208 (sparc_coerce_float_to_double): Remove.
11209 * v850-tdep.c (v850_gdbarch_init): Likewise.
11210 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11211 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11212 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11213 (hppa_coerce_float_to_double): Remove prototype.
11214 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11215
f436a26a
DJ
112162003-01-04 Daniel Jacobowitz <drow@mvista.com>
11217
11218 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11219
248f8055
DJ
112202003-01-04 Daniel Jacobowitz <drow@mvista.com>
11221
11222 Suggested by Stewart Brown <sb24@avaya.com>:
11223 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11224 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11225 (c_type_print_varspec_suffix): Likewise.
11226
72cfdc76
MK
112272003-01-04 Mark Kettenis <kettenis@gnu.org>
11228
bfd260bb
MK
11229 * configure.in: Don't set and AC_SUBST SUBDIRS.
11230 * configure: Regenerated.
11231
72cfdc76
MK
11232 * configure.in: Remove code dealing with shared libraries.
11233 * Makefile.in: Remove HLDFLAGS and HLDENV.
11234 * configure: Regenerated.
11235
c8b8a898
AC
112362003-01-04 Andrew Cagney <ac131313@redhat.com>
11237
11238 * frame.c (deprecated_frame_xmalloc): New function.
11239 (deprecated_set_frame_saved_regs_hack): New function.
11240 (deprecated_set_frame_extra_info_hack): New function.
11241 * frame.h (deprecated_frame_xmalloc): Declare.
11242 (deprecated_set_frame_saved_regs_hack): Declare.
11243 (deprecated_set_frame_extra_info_hack): Declare.
11244
14abd0fb
MK
112452003-01-04 Mark Kettenis <kettenis@gnu.org>
11246
8ee53726
MK
11247 * configure.in: Move code that provides the --enable-gdbtk option
11248 right after the code that handles the --enable-tui option, and
11249 polish it somewhat.
11250 * configure: Regenerated.
11251
14abd0fb
MK
11252 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11253 AC_CHECK_FUNCS and remove the old check for pread64.
11254 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11255 * acconfig.h (_GNU_SOURCE): Add.
11256 (HAVE_PREAD64): Remove.
11257 * configure, aclocal.m4, config.in: Regenerated.
11258
b2fb4676
AC
112592003-01-03 Andrew Cagney <ac131313@redhat.com>
11260
11261 * alpha-tdep.c: Use get_frame_saved_regs.
11262 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11263 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11264 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11265 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11266 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11267
8dcde887
MK
112682003-01-03 Mark Kettenis <kettenis@gnu.org>
11269
11270 * configure.in: Remove all use of the SUBDIRS variable; add
11271 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11272 code providing the --enable-multi-ice option, and move it right in
11273 front of the code that checks whether gdbserver is supported.
11274 Polish that too.
11275 * configure: Regenerated.
11276 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11277 @SUBDIRS@.
11278
8ccd593b
AC
112792003-01-03 Andrew Cagney <cagney@redhat.com>
11280
11281 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11282 * avr-tdep.c, cris-tdep.c: Ditto.
11283 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11284 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 11285
91151a06
MK
112862003-01-03 Mark Kettenis <kettenis@gnu.org>
11287
11288 * configure.in: Remove --enable-netrom option.
11289 * configure: Regenerated.
11290
8fe84d01
MK
112912003-01-03 Mark Kettenis <kettenis@gnu.org>
11292
11293 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11294 declaration for `struct re_pattern_buffer' instead.
11295 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11296
f0394be6
JB
112972003-01-03 J. Brobecker <brobecker@gnat.com>
11298
11299 * mdebugread.c (parse_symbol): Count until the stEnd matching
11300 the structure name.
11301
27e9bf90
MK
113022003-01-02 Mark Kettenis <kettenis@gnu.org>
11303
93d331ba
MK
11304 * configure.in: Remove --with-cpu option.
11305 subscripts. Remove evil changequotes here.
11306 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11307 * config.in, configure: Regenerated.
8ffd9b1b 11308
27e9bf90
MK
11309 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11310 * configure.in: Cleanup section that sources GDB and BFD configure
11311 subscripts. Remove evil changequotes here.
11312 * config.in, configure: Regenerated.
11313
50abf9e5
AC
113142003-01-02 Andrew Cagney <ac131313@redhat.com>
11315
11316 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11317 frame accessor methods.
11318 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11319 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11320 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11321 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11322 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11323 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11324 * z8k-tdep.c: Ditto.
8ffd9b1b 11325
287c1a40
MK
113262003-01-02 Mark Kettenis <kettenis@gnu.org>
11327
f5dbc56d
MK
11328 * configure.in: Remove UI_OUT configuration code.
11329 * ada-lang.c: Update assuming UI_OUT is always true.
11330 * Makefile.in (UIOUT_CFLAGS): Remove.
11331 * configure: Regenerated.
11332 * TODO: Remove blurb about elimination of -DUI_OUT.
11333
627af7ea
MK
11334 * configure.in: Move code that provides the --enable-gdbcli,
11335 --enable-gdbmi options right before the code that handles the
11336 --enable-tui option. Polish a bit.
11337 * configure: Regenerated.
11338
06825bd1
MK
11339 * configure.in: Rewrite check for GNU regex and the
11340 --without-included regex option, and move it into the "Checks for
11341 library functions" section. This makes us use the system regex
11342 again by default on systems with version 2 of the GNU C library.
11343 This was apparently broken.
11344 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11345 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11346 * config.in, configure: Regenerated.
11347
287c1a40
MK
11348 * configure.in: Move code that provides the --enable-tui option
11349 before the "Checks for libraries" section. Polish the code
11350 somewhat and set need_curses to yes if we build the TUI. Rewrite
11351 code that looks for a library providing termcap functionality to
11352 match more closely what's done in the Readline library, and move
11353 it into to the "Checks for libraries" section.
11354 * configure: Regenerated.
11355 * Makefile.in (TERMCAP): Remove variable.
11356 * config/i386/go32.mh (TERMCAP): Remove variable.
11357
684e56bf
AC
113582003-01-02 Andrew Cagney <ac131313@redhat.com>
11359
11360 * MAINTAINERS: Mention gdb_mbuild.sh.
11361 * gdb_mbuild.sh: Rewrite.
11362
e1ea1d75
MK
113632003-01-02 Mark Kettenis <kettenis@gnu.org>
11364
11365 * configure.in: Fix typo in last change.
11366 * config.in, configure: Regenerated.
11367
1b831c93
AC
113682003-01-02 Andrew Cagney <ac131313@redhat.com>
11369
11370 * valarith.c (value_binop): Delete obsolete code and comments.
11371 * configure.host: Ditto.
11372 * buildsym.h (make_blockvector): Ditto.
11373 * buildsym.c (make_blockvector): Ditto.
11374 * defs.h (enum language): Ditto.
11375 (chill_demangle): Ditto.
11376 * elfread.c (elf_symtab_read): Ditto.
11377 * dwarfread.c (CHILL_PRODUCER): Ditto.
11378 (set_cu_language): Ditto.
11379 (handle_producer): Ditto.
11380 * expprint.c (print_subexp): Ditto.
11381 * gdbtypes.c (chill_varying_type): Ditto.
11382 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11383 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11384 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11385 (chill_varying_type): Ditto.
11386 * language.h (_LANG_chill): Ditto.
11387 * language.c (binop_result_type, integral_type): Ditto.
11388 (character_type, string_type, structured_type): Ditto.
11389 (lang_bool_type, binop_type_check): Ditto.
11390 * stabsread.h (os9k_stabs): Ditto.
11391 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11392 (define_symbol, read_type, read_struct_fields): Ditto.
11393 (read_array_type, read_enum_type, read_huge_number): Ditto.
11394 (read_range_type, start_stabs): Ditto.
11395 * symfile.c (init_filename_language_table): Ditto.
11396 (add_psymbol_with_dem_name_to_list): Ditto.
11397 * symtab.c (symbol_init_language_specific): Ditto.
11398 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11399 * symtab.h (struct general_symbol_info): Ditto.
11400 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11401 * typeprint.c (typedef_print): Ditto.
11402 * utils.c (fprintf_symbol_filtered): Ditto.
11403 * valops.c (value_cast, search_struct_field, value_slice): Delete
11404 obsolete code.
11405 (varying_to_slice): Delete function.
11406 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11407 (varying_to_slice): Delete declaration.
11408 * MAINTAINERS: Update.
11409
8bb2c122
MK
114102003-01-02 Mark Kettenis <kettenis@gnu.org>
11411
97bf5e38
MK
11412 * configure.in: Reorganize "Checks for library functions section"
11413 a bit. Remove check for `btowc' and `isascii' functions.
11414 * configure: Regenerated.
11415
5ee754fc
MK
11416 * acconfig.h (_MSE_INT_H): Remove.
11417 * configure.in: Create "Checks for header files" section, and move
11418 appropriate tests there. Don't check for objlist.h, wchar.h,
11419 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11420 misdetection fix. Also add "Checks for types", "Checks for
11421 compiler characteristics" and "Checks for library functions"
11422 sections.
11423 * config.in, configure: Regenerated.
11424
8bb2c122
MK
11425 * configure.in: Create "Checks for programs" section, and move
11426 appropriate tests there.
11427
9a156167
MK
114282003-01-01 Mark Kettenis <kettenis@gnu.org>
11429
11430 * configure.in: Create "Checks for libraries" section, and move
11431 appropriate tests there. Cleanup check for wctype in libw. Use
11432 AC_SEARCH_LIBS to see whether we need libsocket.
11433 * configure: Regenerated.
11434
a80e2bcb 11435For older changes see ChangeLog-2002
c906108c
SS
11436\f
11437Local Variables:
11438mode: change-log
11439left-margin: 8
11440fill-column: 74
11441version-control: never
11442End:
This page took 0.997901 seconds and 4 git commands to generate.