2003-09-08 Michael Chastain <mec@shout.net>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
73b65bb0
DJ
12003-09-08 Daniel Jacobowitz <drow@mvista.com>
2
3 * infrun.c (normal_stop): Don't print a message if the inferior
4 has exited.
5
7c8a5605
JB
62003-09-08 Jim Blandy <jimb@redhat.com>
7
8 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
9 * dbxread.c: #include "gdb_assert.h".
10 (read_dbx_symtab): If the objfile has no .data section, use the
11 section index for the .bss section instead.
12
7dd88986
DJ
132003-09-08 Daniel Jacobowitz <drow@mvista.com>
14
15 * frame.c (deprecated_safe_get_selected_frame): New function.
16 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
17 * findvar.c (read_var_value): Call it.
18
55ff77ac
CV
192003-09-08 Corinna Vinschen <vinschen@redhat.com>
20
21 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
22 (sh64-tdep.o): Add dependencies.
23 * configure.tgt: Add FIXME to sh-*-linux*.
24 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
25 (sh_gdbarch_init): Always set correct sh_show_regs function
26 pointer. Call sh64_gdbarch_init() if machine type is sh5.
27 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
28 * sh64-tdep.c: New file, containing all sh64 related code from
29 sh-tdep.c.
30 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
31 * config/sh/linux.mt (TDEPFILES): Ditto.
32 * config/sh/nbsd.mt (TDEPFILES): Ditto.
33 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
34 * config/sh/wince.mt (TDEPFILES): Ditto.
35
bfb39158
DJ
362003-09-07 Daniel Jacobowitz <drow@mvista.com>
37
38 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
39 (stop_wait_callback): Handle !lp->signalled also.
40 (lin_lwp_has_pending, flush_callback): New functions.
41 (lin_lwp_wait): Call flush_callback.
42 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
43 (linux_proc_pending_signals): New function.
44 * linux-nat.h (linux_proc_pending_signals): Add prototype.
45
9407de8e
DJ
462003-09-07 Daniel Jacobowitz <drow@mvista.com>
47
48 From Nick Kelsey <nickk@ubicom.com>:
49 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
50 when the stop PC is at the beginning of a function also.
51
2ef47cd0
DJ
522003-09-06 Daniel Jacobowitz <drow@mvista.com>
53
54 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
55 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
56
6f4492c8
MK
572003-09-06 Mark Kettenis <kettenis@gnu.org>
58
59 * sol-thread.c: Include "gdb_string.h".
60
d3420b2f
MK
612003-09-03 Mark Kettenis <m.kettenis@osp.nl>
62
63 * gcore.c: Reorder include files in alphabetical order. Include
64 "gdb_assert.h". Various coding style fixes.
65 (derive_stack_segment, derive_heap_segment): Replace check for
66 non-null BOTTOM and TOP with gdb_assert.
67 (derive_heap_segment): Replace check for successful creation of
68 ZERO with gdb_assert.
69 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
70
5220ea4c
AC
712003-09-04 Andrew Cagney <cagney@redhat.com>
72
73 * thread-db.c (verbose_dlsym): New function.
74 (thread_db_load): Use verbose_dlsym
75 (thread_db_new_objfile): Print that libthread_db was loaded, and
76 that thread debugging was enabled.
77
6e8c2c06
AC
782003-09-04 Andrew Cagney <cagney@redhat.com>
79
80 * configure.tgt: Add "mips64*-*-*" target. Delete
81 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
82 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
83 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
84 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
85 mips*-sony-*, and mips64*-*-elf* targets.
86 * config/mips/embedl.mt: Delete file.
87 * config/mips/embedl64.mt: Delete file.
88 * config/mips/mips.mt: Delete file.
89 * config/mips/mips64.mt: Delete file.
90 * config/mips/tm-embed.h: Delete file.
91 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
92 * config/mips/embed64.mt: Delete out-of-date comment.
93
3a3bc038
AC
942003-09-04 Andrew Cagney <cagney@redhat.com>
95
96 * hppa-tdep.c (hppa_gdbarch_init): Set
97 "have_nonsteppable_watchpoint".
98 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
99 * mips-tdep.c (mips_dump_tdep): Do not print
100 HAVE_NONSTEPPABLE_WATCHPOINT.
101 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
102 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
103 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
104 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
105
a957e642
CV
1062003-09-04 Corinna Vinschen <vinschen@redhat.com>
107
108 * breakpoint.c (watchpoint_check): Remove accidentally checked in
109 unused code. Add comment.
110
a6fbcf2f
CV
1112003-09-04 Corinna Vinschen <vinschen@redhat.com>
112
113 * breakpoint.c (watchpoint_check): Check for pc being in an
114 epilogue if watchpoint frame couldn't be found.
115
c14a44d5
AC
1162003-09-04 Andrew Cagney <cagney@redhat.com>
117
118 * Makefile.in: Re-generate all dependencies.
119
f6c40618
AC
1202003-09-03 Andrew Cagney <cagney@redhat.com>
121
122 * arch-utils.h (legacy_print_insn): Delete declaration.
123 * arch-utils.c (legacy_print_insn): Delete function.
124 * disasm.c (deprecated_tm_print_insn_info): Delete.
125 (_initialize_disasm): Delete function, contained code initializing
126 deprecated_tm_print_insn_info.
127 * gdbarch.sh (deprecated_tm_print_insn): Delete.
128 (deprecated_tm_print_insn_info): Delete.
129 (TARGET_PRINT_INSN): Do not provide a default.
130 * gdbarch.h, gdbarch.c: Re-generate.
131
242e8be5
AC
1322003-09-03 Andrew Cagney <cagney@redhat.com>
133
134 * disasm.c (fprintf_disasm): New function.
135 (gdb_disassemble_info): Call "init_disassemble_info", instead of
136 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
137 reverts 2003-08-14 change.
138 (_initialize_disasm): Call "init_disassemble_info", instead of
139 INIT_DISASSEMBLE_INFO_NO_ARCH.
140
3ffc3dda
MS
1412003-09-03 Michael Snyder <msnyder@redhat.com>
142
143 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
144
52d16ba8
AC
1452003-09-03 Andrew Cagney <cagney@redhat.com>
146
147 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
148 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
149 * symfile.c (syms_from_objfile): Update.
150 (reread_symbols): `Update
151 * exec.c (exec_file_attach): Update.
152 (exec_file_attach): Update.
153 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
154 2003-08-29 change.
155 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
156
eb5492fa
DJ
1572003-09-03 Daniel Jacobowitz <drow@mvista.com>
158
159 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
160 trad-frame.h.
161 (arm_get_cache): Delete macro.
162 (struct arm_prologue_cache): Update comments. Make saved_regs into
163 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
164 to prev_sp.
165 (thumb_scan_prologue): Update for cache changes. Don't call
166 DEPRECATED_PC_IN_CALL_DUMMY.
167 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
168 argument and use it in desperation search for our prologue. Do not
169 search past the specified PC.
170 (arm_make_prologue_cache): Simplify.
171
172 (arm_prologue_this_id, arm_prologue_prev_register)
173 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
174 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
175 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
176 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
177 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
178
179 (arm_frame_chain_valid, arm_find_callers_reg)
180 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
181 (arm_pop_frame): Delete obsolete methods.
182 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
183
184 (arm_gdbarch_init): Update for new frame methods. Register prologue
185 and sigtramp unwinders. Set the default frame base method.
186
187 * Makefile.in (arm-tdep.o): Update dependencies.
188 * varobj.c (find_frame_addr_in_frame_chain): Call
189 get_frame_base_address.
190 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
191
24de872b
DJ
1922003-09-03 Daniel Jacobowitz <drow@mvista.com>
193
194 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
195 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
196 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
197 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
198 Take NEXT_FRAME and CACHE arguments. Call
199 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
200 Set unwound_pc in CACHE instead of modifying the frame argument.
201 Don't bother checking the frame type when looking for sigtramp
202 frames.
203 (arm_make_prologue_cache, arm_frame_chain)
204 (arm_init_extra_frame_info): New functions.
205
9b8d791a
DJ
2062003-09-03 Daniel Jacobowitz <drow@mvista.com>
207
208 * arm-tdep.c (arm_get_cache): Define.
209 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
210 unwound_sp, unwound_pc, and saved_regs.
211 (thumb_scan_prologue): Take a cache instead of the frame.
212 (arm_scan_prologue): Likewise.
213 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
214 instead of a temporary frame.
215 (arm_init_extra_frame_info): Allocate and use a cache.
216 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
217
7ee3275f
AC
2182003-09-03 Andrew Cagney <cagney@redhat.com>
219
220 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
221 * config/mips/wince.mt (TM_CLIBS): Ditto.
222 * config/sh/wince.mt (TM_CLIBS): Ditto.
223 * config/pa/hppa64.mt (TM_CLIBS): Delete.
224 * config/sparc/sp64.mt (CC): Delete.
225
57b29be7
AC
2262003-09-03 Andrew Cagney <cagney@redhat.com>
227
228 * defs.h: Do not include "arch-utils.h".
229 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
230 GDB_MULTI_ARCH_PURE.
231 * configure.in (GDB_MULTI_ARCH): Do not define.
232 * configure, config.in: Regenerate.
233 * configure.tgt: Do not set variable "gdb_multi_arch".
234 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
235 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
236 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
237 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
238 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
239 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
240 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
241 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
242 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
243 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
244 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
245 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
246 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
247 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
248 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
249 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
250 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
251 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
252
12e035e2
MC
2532003-08-30 Michael Chastain <mec@shout.net>
254
255 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
256 * config/m68k/nm-hp300hpux.h: Delete.
257 * config/m68k/tm-hp300hpux.h: Delete.
258 * config/m68k/xm-hp300hpux.h: Delete.
259 * config/m68k/xm-hp300bsd.h: Delete.
260 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
261 tm-hp300hpux.h, xm-hp300hpux.h.
262 * somsolib.c: Remove comment about hp300 shared libraries.
263
bda34dc2
MK
2642003-08-31 Mark Kettenis <kettenis@gnu.org>
265
5bca7895
MK
266 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
267 Only define PTRACE_GET_THREAD_AREA is not already defined.
268 Various style fixes in code and comments and some additional
269 spelling fixes in comments. Move after functions dealing with
270 debug registers.
271 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
272 Fix coding-style.
273
bda34dc2
MK
274 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
275 frame_unwind_register_unsigned instead of
276 frame_unwind_unsigned_register.
277
c890192f
MK
2782003-08-30 Mark Kettenis <kettenis@gnu.org>
279
280 * configure.in: Search for gethostbyname in libnsl.
281 * configure: Regenerated.
282
60fac5b8
MK
2832003-08-29 Mark Kettenis <kettenis@gnu.org>
284
e294916c
MK
285 * configure.in: Remove redundant AC_MSG_RESULT in check for
286 uintptr_t in stdint.h.
287 * configure: Regenerated.
288
c40d267a
MK
289 * amd64-nat.h (struct regcache): Add opaque declaration.
290
60fac5b8
MK
291 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
292 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
293 Change "register array" to "register cache" in comments.
294 (x86_64_linux_gregset64_reg_offset): New variable.
295 (GETREGS_SUPPLIES): Remove macro.
296 (supply_gregset): Call amd64_supply_native_gregset instead of
297 x86_64_linux_supply_gregset.
298 (fill_gregset): Rename `regno' to `regnum'. Call
299 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
300 (store_regs): Rename `regno' to `regnum'.
301 (store_fpregs): Rename `regno' to `regnum'.
302 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
303 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
304 Reorganize function a bit.
305 (store_inferior_registers): Rename `regno' to `regnum'. Use
306 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
307 Reorganize function a bit.
308 (_initialize_x86_64_linux_nat): New function.
309 * config/i386/x86-64linux.mh.
310
546143b6
AC
3112003-08-29 Andrew Cagney <cagney@redhat.com>
312
313 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
314 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
315 (target_remove_watchpoint): Delete macro.
316 (target_insert_watchpoint): Delete macro.
317 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
318 (remote_mips_stopped_by_watchpoint): Delete declaration.
319 (remote_mips_remove_watchpoint): Delete declaration.
320 (remote_mips_set_watchpoint): Delete declaration.
321 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
322 * remote-mips.c (_initialize_remote_mips): Set
323 "to_insert_watchpoint", "to_stopped_by_watchpoint",
324 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
325 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
326 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
327 (mips_stopped_by_watchpoint): Rename
328 remote_mips_stopped_by_watchpoint.
329 (mips_can_hardware_watchpoint): Rename
330 remote_mips_can_use_hardware_watchpoint, update function
331 signature.
332
7bace51b
MK
3332003-08-29 Mark Kettenis <kettenis@gnu.org>
334
b0f5c6f2
MK
335 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
336 USER_DS. We haven't given them a register number yet.
337
2a6d284d
MK
338 * amd64-nat.h: New file.
339 * amd64-nat.c: New file.
340 * amd64fbsd-nat.c: Include "amd64-nat.h".
341 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
342 (amd64fbsd32_r_reg_offset): New variable.
343 (supply_gregset): Simply call amd64_supply_native_gregset.
344 (fill_gregset): Rename `regno' to `regnum'. Simply call
345 amd64_collect_native_gregset.
346 (fill_fpregset): Rename `regno' to `regnum'.
347 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
348 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
349 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
350 `fpregset_t'. Call amd64_supply_native_gregset instead of
351 supply_gregset. Call x86_64_supply_fxsave instead of
352 supply_fpregset.
353 (store_inferior_registers): Rename `regno' to `regnum'. Replace
354 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
355 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
356 `fpregset_t'. Call amd64_collect_native_gregset instead of
357 fill_gregset. Call x86_64_collect_fxsave instead of
358 fill_fpregset.
359 (_initialize_am64fbsd_nat): Initialize
360 amd64_native_gregset32_reg_offset and
361 amd64_native_gregset64_reg_offset.
362 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
363
a16d75cc
MK
364 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
365 null pointer. Fix typo in comment.
366
7bace51b
MK
367 * regcache.c (supply_register): Reimplement to call
368 regcache_raw_supply.
369 (regcache_collect): Reimplement by calling regcache_raw_collect.
370
9a661b68
MK
3712003-08-28 Mark Kettenis <kettenis@gnu.org>
372
373 * regcache.c (register_buffer): Consitify first argument.
374 (regcache_raw_supply, regcache_raw_collect): New
375 functions.
376
e94cc8fa
DJ
3772003-08-28 Daniel Jacobowitz <drow@mvista.com>
378
379 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
380 by Nathan J. Williams.
381
c64bd0ce
DJ
3822003-08-28 Daniel Jacobowitz <drow@mvista.com>
383
384 * lin-lwp.c (wait_lwp): New function, copied from
385 stop_wait_callback. Clean up.
386 (stop_wait_callback): Use wait_lwp.
387
e5ab0dce
AC
3882003-08-28 Andrew Cagney <cagney@redhat.com>
389
390 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
391 flavour and disassembler options.
392 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
393 (mips_gdbarch_init): Set "print_insn". Delete initialization of
394 deprecated_tm_print_insn_info.
395
a788de9b
AC
3962003-08-27 Andrew Cagney <cagney@redhat.com>
397
398 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
399 Use target_read_memory.
400 (s390_get_frame_info): Update. Do not reference
401 deprecated_tm_print_insn_info.
402 (s390_check_function_end, s390_is_sigreturn): Ditto.
403
36482093
AC
4042003-08-27 Andrew Cagney <cagney@redhat.com>
405
406 * Makefile.in (cris-tdep.o): Update dependencies.
407 * cris-tdep.c: Include "gdb_assert.h".
408 (cris_gdbarch_init): Set print_insn.
409 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
410 (cris_delayed_get_disassembler): Simplify, directly call the
411 disassembler returned by cris_get_disassembler.
412 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
413 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
414 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
415 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
416 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
417 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
418 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
419 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
420 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
421 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
422 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
423 (gdb_print_insn_sparc): Delete function.
424 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
425 deprecated_tm_print_insn_info.
426 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
427 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
428 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
429 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
430 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
431 * s390-tdep.c (gdb_print_insn_s390): Delete function.
432 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
433 (s390_gdbarch_init): Set print_insn.
434
0285512f
AC
4352003-08-27 Andrew Cagney <cagney@redhat.com>
436
437 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
438 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
439 * infcall.c (call_function_by_hand): Convert the entry point
440 address into a code address.
441
cdcd5552
AC
4422003-08-27 Andrew Cagney <cagney@redhat.com>
443
444 * dsrec.c: Include "gdb_string.h".
445 * Makefile.in (dsrec.o): Update dependencies.
446
e85cddad
MC
4472003-08-27 Michael Chastain <mec@shout.net>
448
449 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
450
8bbfbb23
AC
4512003-08-27 Andrew Cagney <cagney@redhat.com>
452
453 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
454 (alpha_osf1_init_abi): Do not set call_dummy_address.
455
ba058b66
DC
4562003-08-27 David Carlton <carlton@kealia.com>
457
458 From Randolph Chung <tausq@debian.org>:
459 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
460 compiles with -Wformat-nonliteral -Werror.
461
87f84c9d
JB
4622003-08-26 Jim Blandy <jimb@redhat.com>
463
464 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
465 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
466 bfd_lookup_symbol, since we only want symbols in code sections.
467 (look_for_base): Pass zero as the SECT_FLAGS argument to
468 bfd_lookup_symbol, since we're not concerned about which section
469 the symbol is in.
470
102d615a
JJ
4712003-08-26 Jeff Johnston <jjohnstn@redhat.com>
472
473 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
474 we are frameless or the return address register is already known.
475
cc7ad3ea
AC
4762003-08-26 Andrew Cagney <cagney@redhat.com>
477
478 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
479 in size. Add comments.
480
af8b88dd
JJ
4812003-08-26 Jeff Johnston <jjohnstn@redhat.com>
482
483 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
484 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
485
e0a4f5a1
JM
4862003-08-26 Jason Merrill <jason@redhat.com>
487
488 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
489 case out of #ifdef MIPS block.
490
4ae9ee8e
DJ
4912003-08-25 Daniel Jacobowitz <drow@mvista.com>
492
493 PR java/1322
494 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
495 available before calling SECT_OFF_TEXT.
3c164570 496 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 497
004d836a
JJ
4982003-08-25 Jeff Johnston <jjohnstn@redhat.com>
499
500 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
501 bof, and nat0-nat127 as pseudo-registers.
502 (ia64_frame_cache): New struct used to cache frame info.
503 (ia64_register_reggroup_p): New routine used to override default
504 register grouping so registers without names are still saved and
505 restored.
506 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
507 pseudo values.
508 (ia64_pseudo_register_read): New routine to read pseudo-registers.
509 (ia64_pseudo_register_write): New routine to write pseudo-registers.
510 (ia64_alloc_frame_cache): New routine to create a new
511 ia64_frame_cache.
512 (examine_prologue): Change prototype to add next_frame pointer.
513 Assume frameless until otherwise proven. Verify that the cfm for
514 current frame matches the cfm that should occur for the prologues
515 alloc insn and if equal, mark as not frameless. At end of routine,
516 if not frameless, calculate registers for the previous frame and store
517 in the cache, if a cache is provided.
518 (ia64_skip_prologue): Use new prototype when calling examine_prologue
519 and pass 0 for next_frame.
520 (ia64_store_return_value): Change to use convert_typed_floating()
521 instead of calling ia64_convert_to_raw().
522 (ia64_extract_return_value): Change to use convert_typed_floating()
523 instead of calling ia64_convert_to_virtual().
524 (ia64_frame_cache): New routine to support new frame model.
525 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
526 (ia64_frame_sniffer): Ditto.
527 (ia64_sigtramp_frame_init_saved_regs): Ditto.
528 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
529 (ia64_sigtramp_frame_prev_register): Ditto.
530 (ia64_sigtramp_frame_sniffer): Ditto.
531 (ia64_frame_base_address): Ditto.
532 (ia64_extract_struct_value_address): Change to issue error message.
533 (ia64_frame_align): New routine to align sp.
534 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
535 (ia64_push_arguments): Removed. Logic moved to
536 ia64_push_dummy_call().
537 (ia64_push_return_address): Ditto.
538 (ia64_unwind_dummy_id): New function.
539 (ia64_unwind_pc): Ditto.
540 (ia64_convert_register_p): Ditto.
541 (ia64_register_to_value): Ditto.
542 (ia64_value_to_register): Ditto.
543 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
544 (ia64_register_byte, ia64_register_raw_size): Ditto.
545 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
546 (ia64_saved_pc_after_call): Ditto.
547 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
548 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
549 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
550 (ia64_register_convert_to_raw): Ditto.
551 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
552 (ia64_init_extra_frame_info): Ditto.
553 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
554 (ia64_gdbarch_init): Remove registering of deprecated functions that
555 are no longer used. Add registration of new gdbarch functions.
556 Remove registering deprecated_write_sp. Replace
557 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
558 Delete set_gdbarch_deprecated_register_convertible(),
559 set_gdbarch_deprecated_register_convert_to_virtual(), and
560 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
561 set_gdbarch_deprecated_register_size(),
562 set_gdbarch_deprecated_register_bytes(),
563 set_gdbarch_pcregnum(),
564 set_gdbarch_deprecated_register_byte(),
565 set_gdbarch_deprecated_register_raw_size(),
566 set_gdbarch_deprecated_max_register_raw_size(),
567 set_gdbarch_deprecated_register_virtual_size(),
568 and set_gdbarch_deprecated_max_register_virtual_size() calls.
569 Replace set_gdbarch_deprecated_extract_return_value() with
570 set_gdbarch_extract_return_value(). Remove calls to:
571 set_gdbarch_deprecated_saved_pc_after_call();
572 set_gdbarch_deprecated_frame_chain(),
573 set_gdbarch_deprecated_frame_saved_pc(),
574 set_gdbarch_deprecated_frame_init_saved_regs(),
575 set_gdbarch_deprecated_get_saved_register(),
576 set_gdbarch_deprecated_call_dummy_words(),
577 set_gdbarch_deprecated_sizeof_call_dummy_words(),
578 set_gdbarch_deprecated_init_extra_frame_info(),
579 set_gdbarch_deprecated_frame_args_address(),
580 set_gdbarch_deprecated_frame_locals_address(),
581 and set_gdbarch_deprecated_dummy_write_sp().
582 Add set_gdbarch_convert_register_p(),
583 set_gdbarch_register_to_value(),
584 set_gdbarch_value_to_register(),
585 set_gdbarch_push_dummy_call(),
586 set_gdbarch_frame_align(),
587 set_gdbarch_unwind_dummy_id(),
588 set_gdbarch_unwind_pc(),
589 frame_unwind_append_sniffer(),
590 frame_unwind_append_sniffer(),
591 and frame_base_set_default().
592
aede7613
CD
5932003-08-25 Chris Demetriou <cgd@broadcom.com>
594
595 * configure.tgt: Document need for special "mipsisa64" handling.
596 (mipsisa64*-*-linux64): Handle as target linux64.
597 (mipsisa64*-*-*): Handle as target embed64.
598
43c3a82e
MC
5992003-08-18 Michael Chastain <mec@shout.net>
600
601 * PROBLEMS: Document pr gdb/1322, the Java anonymous
602 objfile bug.
603
6564f77d
MK
6042003-08-24 Mark Kettenis <kettenis@gnu.org>
605
2de139ba
MK
606 * i387-tdep.h: Update copyright date.
607 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
608
6564f77d
MK
609 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
610 CFLAGS games to reflect reality.
611
42cf1509
AC
6122003-08-24 Andrew Cagney <cagney@redhat.com>
613
614 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
615 GDB_MULTI_ARCH is always non-zero.
616 * osabi.c (_initialize_gdb_osabi): Ditto.
617 (gdbarch_init_osabi): Ditto.
618 * sparc-tdep.c: Ditto for #if code.
619
0485f6ad
MK
6202003-08-23 Mark Kettenis <kettenis@gnu.org>
621
622 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
623 Update comments.
624 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
625 comments.
626 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
627 x86_64_supply_fxsave.
628 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
629 x86_64_supply_fxsave.
630 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
631 x86_64_supply_fxsave.
632
c7716133
AJ
6332003-08-23 Andreas Jaeger <aj@suse.de>
634
635 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
636 i387_supply_fxsave.
637
ed504bdf
MK
6382003-08-23 Mark Kettenis <kettenis@gnu.org>
639
640 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
641 i387_supply_register.
642 (go32_fetch_registers): Adjust call to i387_supply_fsave.
643 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
644 i387_supply_fsave.
645 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
646 i387_supply_fxsave.
647 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
648 i387_supply_fsave.
649 * i386bsd-nat.c (supply_fpregset): Adjust call to
650 i387_supply_fsave.
651 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
652 call to i387_supply_fxsave. Call i387_supply_fsave instead of
653 supply_fpregset.
654 (store_inferior_registers): Remove extraneous whitespace. Call
655 i387_fill_fsave instead of fill_fpregset.
656 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
657 (supply_fpregset): Likewise.
658 * i386v4-nat.c (supply_fpregset): Adjust call to
659 i387_supply_fsave.
660 * i386-interix-nat.c (supply_fpregset): Adjust call to
661 i387_supply_fsave.
662 * i386-linux-nat.c (supply_fpregset): Adjust call to
663 i387_supply_fsave.
664 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
665 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
666 i387supply_fsave and i387_supply_fxsave.
667 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
668 Incorporate code from `i387_supply_register.
669 (i387_supply_register): Remove.
670 (i387_supply_fxsave): Add `regnum' argument.
671 Update comments.
672 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
673 prototype.
674 (i387_supply_register): remove prototype.
675 Update comments.
676
4be5d520
MC
6772003-08-22 Michael Chastain <mec@shout.net>
678
679 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
680 Add lines for files in gdb/testsuite/gdb.cp/* that are
681 still not 8.3 unique.
682
7ed85d26
DJ
6832003-08-22 Daniel Jacobowitz <drow@mvista.com>
684
685 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
686 TYPE_VPTR_FIELDNO is valid.
687
eb0d3137
MK
6882003-08-19 Mark Kettenis <kettenis@gnu.org>
689
690 * utils.c (set_width_command): Remove prototypes.
691 (set_screen_size): New prototype.
692 (init_page_info): Simplify by fetching the screen size from
693 Readline. Call set_screen_size.
694 (set_screen_size): New function.
695 (set_width): Add missing whitespace in comment.
696 (set_width_command): Call set_screen_size.
697 (set_height_command): New function.
698 (initialize_utils): Fix formatting. Make "set height" command
699 call set_height_command. Remove redundant code that turns off
700 pagination if output isn't a terminal. Remove redundant call to
701 set_width_command.
702
7e6d0ac8
MK
7032003-08-22 Mark Kettenis <kettenis@gnu.org>
704
3567a8ea
MK
705 * sparc64-tdep.h (sparc64_regnum): Fix comment.
706 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
707 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
708 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
709 `case' keyword.
710 (sparc64_register_info): Give the reister with number
711 SPARC64_STATE_REGNUM a name.
712 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
713 %asi and %ccr.
714 (sparc64_push_dummy_call): Take BIAS into account when checking
715 stcak alignment.
716 (sparc_software_single_step): Remove assertions that check whether
717 NPC and NNPC were zero.
718 (sparc_supply_rwindow): Make public. Merge functionality with
719 sparc64_supply_rwindow.
720 (sparc_fill_rwindow): Make public. Merge functionality with
721 sparc64_fill_rwindow.
722 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
723 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
724 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
725 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
726 sparc_supply_rwindow instead of sparc64_supply_rwindow.
727
7e6d0ac8
MK
728 * reggroups.c: Add whitespace after declarations of local
729 variables in functions.
730
72e5f484
MC
7312003-08-21 Michael Chastain <mec@shout.net>
732
733 * gdbtypes.h: Change array bound type from an int to enum.
734
435ac228
AC
7352003-08-21 Andrew Cagney <cagney@redhat.com>
736
737 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
738 * config/sparc/tm-sparc.h: Ditto.
739 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
740 unconditionally.
741 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
742
0d0e1a63
MK
7432003-07-13 Mark Kettenis <kettenis@gnu.org>
744
745 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
746 (register_objfile_data, set_objfile_data, objfile_data): New
747 prototypes.
748 * objfiles.c (objfile_alloc_data, objfile_free_data): New
749 prototypes.
750 (allocate_objfile): Call objfile_alloc_data.
751 (free_objfile): Call objfile_free_data.
752 (struct objfile_data): New.
753 (struct objfile_data_registration): New.
754 (struct objfile_data_registry): New.
755 (objfile_data_registry): New variable.
756 (register_objfile_data): New function.
757 (objfile_alloc_data, objfile_free_data): New functions.
758 (set_objfile_data, objfile_data): New functions.
759 * dwarf2-frame.c (dwarf2_frame_data): New variable.
760 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
761 (_initialize_dwarf2_frame): New function and prototype.
762
d90cf509
AC
7632003-08-21 Andrew Cagney <cagney@redhat.com>
764
765 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
766 a specific architecture.
767 * arch-utils.h (set_architecture_from_arch_mach): Delete
768 declaration.
769 (target_architecture_hook): Delete declaration.
770 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
771 (default_float_format): Assume GDB_MULTI_ARCH.
772 (default_double_format): Assume GDB_MULTI_ARCH.
773 (set_endian_from_file): Delete function.
774 (arch_ok): Delete function.
775 (set_arch): Delete function.
776 (set_architecture_from_arch_mach): Delete function.
777 (set_architecture_from_file): Delete function.
778 (set_architecture): Assume GDB_MULTI_ARCH.
779 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
780
8b39fe56
MK
7812003-08-21 Mark Kettenis <kettenis@gnu.org>
782
783 Rewrite FreeBSD/sparc64 native configuration.
784 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
785 * sparc64fbsd-nat.c: New file.
786 * sparc64fbsd-tdep.c: New file.
787 * sparc64-tdep.c sparc64-tdep.h: New files.
788 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
789 sparc64fbsd-tdep.o): New dependencies.
790 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
791 and sparc64fbsd-tdep.c.
792 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
793 * config/sparc/fbsd.mh: Remove copyright notice.
794 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
795 sparcbsd-nat.o.
796 * config/sparc/fbsd.mt: Remove copyright notice.
797 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
798 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
799 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
800 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
801 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
802 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
803 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
804 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
805 "sparc/tm-sp64.h".
806 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
807 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
808
a7f19c79
MC
8092003-08-21 Michael Chastain <mec@shout.net>
810
811 * symtab.h: Add doco on the space critical structures and
812 some measurements of space usage.
813
da08ea5b
MS
8142003-08-21 Michael Snyder <msnyder@redhat.com>
815
816 * tracepoint.c (trace_dump_command): Trace break address
817 is subject to DECR_PC_AFTER_BREAK.
818 (set_traceframe_context): Make "trace_line" an int.
819 Fixes suggested by Mark Newman <mark.newman@lmco.com>
820
6df2bf50
MS
8212003-08-20 Michael Snyder <msnyder@redhat.com>
822
823 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
824 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
825 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
826 argument passing.
827 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
828 functions, replace sh_push_dummy_call.
829 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
830
0955bbf0
MC
8312003-08-20 Michael Chastain <mec@shout.net>
832
833 * gdbtypes.h (struct main_type): Rearrange to save space.
834
260a4188
MS
8352003-08-20 Michael Snyder <msnyder@redhat.com>
836
837 * trad-frame.c: Comment typo fix.
838
8baa6f92
KB
8392003-08-20 Michael Snyder <msnyder@redhat.com>
840 Kevin Buettner <kevinb@redhat.com>
841
842 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
843 (frv_frame_init_saved_regs): Add declaration.
844 (frame_extra_info): Add new field ``saved_regs''.
845 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
846 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
847 Update frame related code.
848 (frv_extract_struct_value_address): Adjust formatting.
849 * Makefile.in (frv-tdep.o): Update dependencies.
850 * config/frv/tm-frv.h (target_insert_watchpoint)
851 (target_remove_watchpoint, target_insert_hw_breakpoint)
852 (target_remove_hw_breakpoint): Delete these macros.
853 (remote_insert_watchpoint, remote_remove_watchpoint)
854 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
855 these declarations.
856
87193939
MC
8572003-08-20 Michael Chastain <mec@shout.net>
858
859 * defs.h (ENUM_BITFIELD): New macro.
860 * symtab.h (ENUM_BITFIELD): Use it.
861 (BYTE_BITFIELD): Remove old macro, which was already disabled.
862
062103ba
SA
8632003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
864
865 * MAINTAINERS (write after approval): Add myself.
866
8b148df9
AC
8672003-08-18 Andrew Cagney <cagney@redhat.com>
868
869 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
870 * gdbarch.h, gdbarch.c: Re-generate.
871 * infcall.c (call_function_by_hand): Adjust the SP by
872 frame_red_zone_size before allocating any stack space.
873 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
874 * x86-64-tdep.c (x86_64_frame_align): New function.
875 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
876
877 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
878 Remove code adjusting SP so that it skips over the Red Zone.
879
954a4db8
MK
8802003-08-18 Mark Kettenis <kettenis@gnu.org>
881
882 * NEWS (New native configurations): Mention FreeBSD/amd64.
883
1a241548
AC
8842003-08-18 Andrew Cagney <cagney@redhat.com>
885
886 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
887 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
888 "m68k_frame_p".
889 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
890
f82b2acd
MK
8912003-08-18 Mark Kettenis <kettenis@gnu.org>
892
893 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
894
4056d258
ML
8952003-08-18 Michal Ludvig <mludvig@suse.cz>
896
897 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
898 Define.
899 * i386-linux-nat.c: Include "linux-nat.h".
900 (child_post_startup_inferior): New function.
901
99ab4326
MK
9022003-08-18 Mark Kettenis <kettenis@gnu.org>
903
904 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
905 at the start of a frameless function. This probably fixes PR
906 backtrace/1338.
907
c8d5f0d6
MC
9082003-08-17 Michael Chastain <mec@shout.net>
909
910 * symfile.c (find_sym_fns): Remove special case for apollo target.
911
9016a515
DJ
9122003-08-17 Daniel Jacobowitz <drow@mvista.com>
913
914 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
915 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
916 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
917 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
918 (linux_supports_tracevforkdone): New function.
919 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
920 TRACEVFORKDONE.
921 (child_follow_fork): Handle vfork.
922 (linux_handle_extended_wait): Likewise. Also handle exec.
923 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
924 * NEWS: Mention fork tracing.
925
c538c11c
DJ
9262003-08-17 Daniel Jacobowitz <drow@mvista.com>
927
928 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
929
4de4c07c
DJ
9302003-08-17 Daniel Jacobowitz <drow@mvista.com>
931
932 * Makefile.in (i386-linux-nat.o): Update dependencies.
933 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
934 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
935 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
936 * i386-linux-nat.c: Include "linux-nat.h".
937 (child_post_startup_inferior): New function.
938 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
939 * infptrace.c (kill_inferior): Wrap in #ifdef.
940 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
941 attaching to each LWP.
942 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
943 (init_lin_lwp_ops): Fill in some more operations.
944 * linux-nat.h (linux_enable_event_reporting)
945 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
946 prototypes.
947 * linux-nat.c (linux_enable_event_reporting): New function.
948 (child_post_attach, linux_child_post_startup_inferior)
949 (child_post_startup_inferior, child_follow_fork)
950 (linux_handle_extended_wait, kill_inferior): New functions.
951
7996bcec
AC
9522003-08-16 Andrew Cagney <cagney@redhat.com>
953
954 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
955 * gdbarch.h, gdbarch.c: Re-generate.
956
3d48a7a0
MK
9572003-08-16 Mark Kettenis <kettenis@gnu.org>
958
959 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
960
7989c619
AC
9612003-08-16 Andrew Cagney <cagney@redhat.com>
962
963 * NEWS: Mention that "set prompt-escape-char" was deleted.
964 * top.c (get_prompt_1): Delete function.
965 (gdb_prompt_escape):
966 (init_main): Do not clear "gdb_prompt_escape". Delete "set
967 prompt-escape-char" command.
968 (MAX_PROMPT_SIZE): Delete macro.
969 (get_prompt): Simplify, do not call get_prompt_1.
970
07978cd8
AC
9712003-08-16 Andrew Cagney <cagney@redhat.com>
972
973 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
974 -Werror. -Wformat-nonliteral problems.
975
3ff7cf9e
JB
9762003-08-15 J. Brobecker <brobecker@gnat.com>
977
978 Further multiarching work mostly for hppa64-*-hpux11:
979 * hppa-tdep.h: New file.
980 * hppa-tdep.c: #include hppa-tdep.c.
981 (hppa32_num_regs): Renamed from hppa_num_regs.
982 (hppa64_num_regs): New constant.
983 (hppa64_call_dummy_breakpoint_offset): New constant.
984 (hppa32_call_dummy_length): New constant.
985 (hppa64_call_dummy_length): New constant.
986 (hppa32_stack_align): Make name 32bit explicit.
987 (hppa32_register_virtual_type): Likewise.
988 (hppa32_extract_return_value): Likewise.
989 (hppa32_use_struct_convention): Likewise.
990 (hppa32_store_return_value): Likewise.
991 (hppa64_register_virtual_type): New function.
992 (hppa64_extract_return_value): New function.
993 (hppa64_use_struct_convention): New function.
994 (hppa64_store_return_value): New function.
995 (hppa_frame_locals_address): Remove declaration, function does
996 not exist anymore.
997 (hppa_register_byte): Add support for PA64 ABI.
998 (hppa_gdbarch_init): Add support for PA64 ABI.
999 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1000 Make name 32bit explicit.
1001 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1002 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1003 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1004 (hppa64_hpux_frame_base_before_sigtramp): New function.
1005 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1006 * config/pa/tm-hppa64.h: Remove macros that are no longer
1007 necessary now that the gdbarch vector is properly setup.
1008 Transform some macros into function calls. Some minor cleanup.
1009 * config/pa/tm-hppah.h: Update function calls in macros
1010 following the function renaming in hppa-hpux-tdep.c.
1011 * Makefile.in (hppa_tdep_h): New variable.
1012 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1013
5d05ca6d
MS
10142003-08-14 Michael Snyder <msnyder@redhat.com>
1015
1016 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1017
37ba2569
JB
10182003-08-13 J. Brobecker <brobecker@gnat.com>
1019
1020 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1021 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1022 routine.
1023
aed7f26a
MS
10242003-08-13 Michael Snyder <msnyder@redhat.com>
1025
1026 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1027 (frv_saved_pc_after_call): Use deprecated ftype.
1028 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1029 (frv_remote_translate_xfer_address): Remove.
1030 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1031
752d4ac1
JB
10322003-08-13 J. Brobecker <brobecker@gnat.com>
1033
1034 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1035 initialization after the common gdbarch initialization, not before.
1036
1426ac1d
JB
10372003-08-13 J. Brobecker <brobecker@gnat.com>
1038
1039 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1040 (ADDR_BITS_REMOVE): Remove, redundant.
1041
b6fbdd1d
JB
10422003-08-13 J. Brobecker <brobecker@gnat.com>
1043
1044 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1045 gdbarch method to clear the 2 low bits of text addresses.
1046
44160db3
AC
10472003-08-12 Andrew Cagney <cagney@redhat.com>
1048
1049 * Makefile.in (dsrec.o): Update dependencies.
1050 * dsrec.c: Include "gdb_assert.h".
1051 (make_srec): Use snprintf instead of sprintf, use a literal format
1052 string.
1053
bcf7d3ca
AC
10542003-08-12 Andrew Cagney <cagney@redhat.com>
1055
1056 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1057 FRAME_OBSTACK_ZALLOC.
1058
49ed40de
KB
10592003-08-12 Kevin Buettner <kevinb@redhat.com>
1060
1061 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1062 SSE registers.
1063
b246147c
MK
10642003-08-10 Mark Kettenis <kettenis@gnu.org>
1065
1066 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1067 amd64fbsd_sc_reg_offset): Add extern declarations.
1068 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1069 declarations.
1070
d95fdc0d
BE
10712003-08-11 Ben Elliston <bje@wasabisystems.com>
1072
1073 * MAINTAINERS (write after approval): Update my mail address.
1074
cf6a0e73
AC
10752003-08-10 Andrew Cagney <cagney@redhat.com>
1076
1077 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1078
f837910f
MK
10792003-08-10 Mark Kettenis <kettenis@gnu.org>
1080
e2dbbd2d
MK
1081 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1082 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1083 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1084 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1085 i386bsd_sc_reg_offset): Add extern declarations.
1086 * i386obsd-nat.c: Include "i386-tdep.h"
1087 (_initialize_i386obsd_nat): Remove extern declarations.
1088 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1089 declarations.
1090 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1091 declarations.
1092
f837910f
MK
1093 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1094 instead of frame_read_register.
1095 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1096 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1097 SP_REGNUM.
1098 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1099 instead of frame_unwind_unsigned_register. Use
1100 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1101 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1102 instead of read_register. Use builtin_type_void_data_ptr instead
1103 of builtin_type_void_func_ptr when extracting the address of the
1104 jmp_buf.
1105 (i386_extract_return_value, i386_store_return_value,
1106 i386_pseudo_register_read, i386_pseudo_register_write): Use
1107 register_size instead REGISTER_RAW_SIZE.
1108
edcf254d
AC
11092003-08-10 Andrew Cagney <cagney@redhat.com>
1110
1111 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1112 sprintf. Make "name" constant.
1113
26604a34
MK
11142003-08-10 Mark Kettenis <kettenis@gnu.org>
1115
192285c6
MK
1116 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1117 instead of frame_read_register.
f837910f
MK
1118 (i387_print_float_info): Use get_frame_register and
1119 get_frame_register_unsigned instead of frame_register_read.
192285c6 1120
f0925262
MK
1121 * i386fbsd-nat.c: Include "i386-tdep.h".
1122 (child_resume): Make `eflags' an ULONGEST. Use
1123 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1124 instead of register_read and register_write.
1125
a144416f
MK
1126 * i386bsd-nat.c (fetch_inferior_registers,
1127 store_inferior_registers): Don't use && at the end of a line.
1128 (_initialize_i386bsd_nat): Fix typo.
1129
fec74868
MK
1130 * frame.c (_initialize_frame): Add missing backslash.
1131
87232496
MK
1132 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1133 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1134 and supply_register instead of manipulating the register buffer
1135 directly.
1136
c9b9de0b
MK
1137 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1138 * config/i386/nm-i386sol2.h
1139 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1140
26604a34
MK
1141 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1142 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1143 instructions that GCC likes to mingle into the prologue. Fixes
1144 gdb/1253 and gdb/1255.
1145
25d29d70
AC
11462003-08-09 Andrew Cagney <cagney@redhat.com>
1147
1148 Fix GDB PR cli/926.
1149 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1150 * command.h (add_setshow_uinteger_cmd): Declare.
1151 * frame.c (set_backtrace_cmd): New function.
1152 (show_backtrace_cmd): New function.
1153 * frame.c (_initialize_frame): Replace "set/show
1154 backtrace-below-main" with "set/show backtrace past-main". Add
1155 command "set/show backtrace limit".
1156 (backtrace_past_main): Rename "backtrace_below_main".
1157 (backtrace_limit): New variable.
1158 (get_prev_frame): Update. Check the backtrace_limit.
1159
9ebf4acf
AC
11602003-08-09 Andrew Cagney <cagney@redhat.com>
1161
1162 * defs.h (xstrprintf): Declare.
1163 * utils.c (xstrprintf): New function.
1164 * breakpoint.c (insert_breakpoints): Replace sprintf and
1165 non-literal format strings, with xstrprintf and cleanups.
1166 (delete_breakpoint,breakpoint_re_set): Ditto.
1167 (commands_command, insert_breakpoints): Ditto.
1168 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1169 (break_at_finish_command_1): Ditto.
1170
3771659b
AC
11712003-08-09 Andrew Cagney <cagney@redhat.com>
1172
1173 * MAINTAINERS (language support): List Adam Fedor as Objective C
1174 maintainer.
1175
b4263afa
JB
11762003-08-08 J. Brobecker <brobecker@gnat.com>
1177
1178 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1179 are now multiarched.
1180
d84defb1
JB
11812003-08-08 J. Brobecker <brobecker@gnat.com>
1182
1183 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1184 longer necessary now that hppa64 is partially multiarch'ed.
1185
f786f615
AC
11862003-08-08 Andrew Cagney <cagney@redhat.com>
1187
1188 * interps.c (interp_set): Check for a NULL "old_interp".
1189
c938e9b0
L
11902003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1191
1192 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1193 (install-only): Support DESTDIR.
1194 (uninstall): Likewise.
1195 (install-gdbtk): Likewise.
1196
9a146a11
EZ
11972003-08-08 Elena Zannoni <ezannoni@redhat.com>
1198
1199 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1200 contains something meaningful at all times.
1201
1202Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 1203
62599e99 1204 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 1205
56296155
BC
1206Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1207
62599e99 1208 * MAINTAINERS (write after approval): Added self.
56296155 1209
9710e734
AC
12102003-08-07 Andrew Cagney <cagney@redhat.com>
1211
1212 * inferior.h (AT_SYMBOL): Define.
1213 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1214 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1215 * mips-tdep.c (mips_call_dummy_address): Delete function.
1216 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1217 set call_dummy_address.
1218
98b3ab73
AC
12192003-08-07 Andrew Cagney <cagney@redhat.com>
1220
1221 * language.c (op_error): Delete function.
1222 (binop_type_check): Delete function.
1223 * language.h (type_op_error, range_op_error): Delete macros.
1224 (op_error): Delete declaration.
1225
2fcf52f0
AC
12262003-08-07 Andrew Cagney <cagney@redhat.com>
1227
1228 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1229
abd4220e 12302003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 1231
abd4220e 1232 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 1233 (x86_64_push_arguments): Skip the red zone.
abd4220e 1234
9dd5f34f
AC
12352003-08-05 Andrew Cagney <cagney@redhat.com>
1236
1237 * reggroups.c (reggroup_next): Check for the final entry.
1238
e5e78edc
AC
12392003-08-04 Andrew Cagney <cagney@redhat.com>
1240
ab4e3d93
AC
1241 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1242 * cli/cli-script.c (define_command): Call query directly, instead
1243 of passing it a buffer.
1244 * ocd.c (ocd_error): Pass error a constant format string.
1245 * remote-mips.c (mips_error): Use fputs_filtered.
1246
1062ca82
AC
1247 * solib-svr4.c (_initialize_svr4_solib): Update
1248 register_gdbarch_data call.
1249 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1250
fcc1c85c
AC
1251 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1252 (register_gdbarch_data): Delete "free" parameter. Update
1253 comments.
1254 * gdbarch.h, gdbarch.c: Re-generate.
1255 * reggroups.c (_initialize_reggroup): Update.
1256 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1257 * frame-base.c (_initialize_frame_base): Update.
1258 * frame-unwind.c (_initialize_frame_unwind): Update.
1259 * user-regs.c (_initialize_user_regs): Update.
1260 * remote.c (_initialize_remote): Update.
1261 * regcache.c (_initialize_regcache): Update.
1262
116f06ea
AC
1263 * regcache.c (xfree_regcache_descr): Delete function.
1264 (_initialize_regcache): Update call to register_gdbarch_data.
1265 (init_regcache_descr, init_legacy_regcache_descr): Use
1266 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1267
e5e78edc
AC
1268 * remote.c (free_remote_state): Delete function.
1269 (_initialize_remote): Update register_gdbarch_data.
1270 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1271 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1272
6c7d17ba
AC
12732003-08-04 Andrew Cagney <cagney@redhat.com>
1274
1275 * reggroups.c (struct reggroup_el): Define.
1276 (struct reggroups): Delete field "nr_group". Replace array
1277 "group" with a "first" to "last" linked list.
1278 (reggroups_init): Update. Allocate using gdbarch's obstack.
1279 (reggroups_free): Delete function.
1280 (add_group): Update. Add "el" parameter.
1281 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1282 (default_groups): Update.
1283 (reggroup_next): Replace reggroups.
1284 (reggroups_dump): Update.
1285 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1286 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1287 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1288
89b7795b
DJ
12892003-08-04 Daniel Jacobowitz <drow@mvista.com>
1290
1291 * Makefile.in (tui-interp.o): Update dependencies.
1292
306d9ac5
DC
12932003-08-04 David Carlton <carlton@kealia.com>
1294
1295 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1296 to internal_error call.
1297 * source.c (forward_search_command): Add "%s" format argument.
1298 (reverse_search_command): Ditto.
1299 * top.c (quit_confirm): Ditto.
1300 * cli/cli-setshow.c (do_setshow_command): Ditto.
1301 * cp-valprint.c (cp_print_class_method): Replace
1302 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1303 (cp_print_class_member): Ditto.
1304 * event-top.c (command_line_handler): Ditto.
1305 * linux-proc.c (linux_info_proc_cmd): Ditto.
1306 * p-typeprint.c (pascal_type_print_base): Ditto.
1307 * p-valprint.c (pascal_object_print_class_method): Ditto.
1308 (pascal_object_print_class_member): Ditto.
1309 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1310 * remote.c (remote_cisco_section_offsets): Ditto.
1311 * top.c (command_line_input): Ditto.
1312 * utils.c (vwarning,error_stream,quit): Ditto.
1313 * valprint.c (print_floating,print_binary_chars)
1314 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1315
57bfe177
AC
13162003-08-04 Andrew Cagney <cagney@redhat.com>
1317
1318 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1319
e546b999
AC
13202003-08-02 Andrew Cagney <cagney@redhat.com>
1321
1322 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1323 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1324 amd64fbsd-nat.c.
1325
91092ee5
AC
13262003-08-02 Andrew Cagney <cagney@redhat.com>
1327
1328 * Makefile.in: Update all dependencies and definitions.
1329
889f28e2
AF
13302003-08-02 Adam Fedor <fedor@gnu.org>
1331
1332 * linespec.c (is_objc_method_format): New function
1333 (decode_line_1, locate_first_half): Use it.
1334 Fixes PR objc/1298
1335
880bc914
AC
13362003-08-01 Andrew Cagney <cagney@redhat.com>
1337
1338 * NEWS: Mention that m32r is multi-arch.
1339 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1340 * configure.tgt: Recognize m32r-*-*.
1341 * config/m32r/tm-m32r.h: Delete file.
1342 * config/m32r/m32r.mt: New file.
1343 * m32r-rom.c (m32r_upload_command): Use hostent only when
1344 gethostname succeeds, in order to avoid a compilation
1345 warning.
1346 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1347 compiler warning.
1348
19f59343
MS
13492003-08-01 Michael Snyder <msnyder@redhat.com>
1350
1351 * sh-tdep.c (sh_frame_align): New gdbarch method.
1352 (sh_gdbarch_init): Set up frame_align method.
1353
4e7d7511
MS
13542003-07-31 Michael Snyder <msnyder@redhat.com>
1355
1356 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1357 which is already covered by the new frames infrastructure.
1358
63022984
AC
13592003-07-31 Andrew Cagney <cagney@redhat.com>
1360
1361 * user-regs.c (struct user_reg): Add "next" link.
1362 (struct user_regs): Replace "user" with "first" and "last" links.
1363 (append_user_reg): Add pre-allocated "reg" parameter.
1364 (builtin_user_regs): Provide initial value for "last".
1365 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1366 (user_regs_init): Allocate memory from the gdbarch obstack.
1367 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1368 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1369 linked list.
1370 (usernum_to_user_reg): New function.
1371 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1372 (value_of_user_reg): Use usernum_to_user_reg.
1373 (user_regs_free): Delete function.
1374 (_initialize_user_regs): Update register_gdbarch_data call.
1375
7cf6e574
DJ
13762003-07-31 Daniel Jacobowitz <drow@mvista.com>
1377
1378 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1379
c48a845b
MS
13802003-07-30 Michael Snyder <msnyder@redhat.com>
1381
4e7d7511 1382 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
1383 * infcall.c (call_function_by_hand): Pass struct_addr to
1384 value_being_returned.
1385 * infcmd.c (print_return_value): Pass zero as struct_addr.
1386 * values.c (value_being_returned): If struct_addr is passed,
1387 use it instead of trying to recover it from the inferior.
1388
f0d8db19
KB
13892003-07-30 Kevin Buettner <kevinb@redhat.com>
1390
1391 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1392 the prologue analyzer won't need to attempt to extract the pc
1393 value from the woefully incomplete dummy frame.
1394 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1395 possible. Disable code which modifies the frame.
1396
e5c113a1
AC
13972003-07-28 Andrew Cagney <cagney@redhat.com>
1398
1399 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1400 to level 2.
1401 (annotate_breakpoints_table, annotate_record): Ditto.
1402 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1403 (annotate_field_name_end, annotate_field_value): Ditto.
1404 (annotate_field_end, annotate_frame_source_begin): Ditto.
1405 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1406 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1407 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1408 (annotate_frame_address_end, annotate_frame_address): Ditto.
1409 (annotate_frame_args, annotate_frame_end): Ditto.
1410 (annotate_frame_where, annotate_arg_begin): Ditto.
1411 (annotate_arg_name_end, annotate_arg_value): Ditto.
1412 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1413 (annotate_function_call, annotate_signal_name): Ditto.
1414 (annotate_signal_string, annotate_signal_name_end): Ditto.
1415 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1416 (annotate_value_begin, annotate_value_history_value): Ditto.
1417 (annotate_value_history_end, annotate_value_end): Ditto.
1418 (annotate_display_begin, annotate_display_number_end): Ditto.
1419 (annotate_display_format, annotate_display_expression): Ditto.
1420 (annotate_display_expression_end, annotate_display_value): Ditto.
1421 (annotate_display_end, annotate_array_section_begin): Ditto.
1422 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1423 (annotate_elt, annotate_array_section_end): Ditto.
1424
bb1db049
AC
14252003-07-28 Andrew Cagney <cagney@redhat.com>
1426
1427 * regcache.c (struct regcache_descr): Update comments on
1428 nr_raw_registers.
1429 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1430 sizeof_raw_register_valid_p.
1431 (init_regcache_descr): Set nr_raw_registers and
1432 sizeof_raw_register_valid_p before calling
1433 init_legacy_regcache_descr.
1434
20e6603c
AC
14352003-07-28 Andrew Cagney <cagney@redhat.com>
1436
1437 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1438 MOD NUM_REGS.
1439
db742940
DJ
14402003-07-28 Daniel Jacobowitz <drow@mvista.com>
1441
1442 * thread.c (info_threads_command): Use get_selected_frame ().
1443 Check that there is at least one non-sentinel frame.
1444
ce7f4371
SC
14452003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1446
1447 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1448 (m68hc11_pop_frame): Remove.
1449 (m68hc11_frame_saved_pc): Remove.
1450 (m68hc11_frame_chain): Remove.
1451 (m68hc11_frame_init_saved_regs): Remove.
1452 (m68hc11_init_extra_frame_info): Remove.
1453 (m68hc11_store_struct_return): Remove.
1454 (m68hc11_saved_pc_after_call): Remove.
1455
1ea653ae
SC
14562003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1457
1458 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1459 frame unwind information.
1460 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1461 and adapted for frame unwinding.
1462 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1463 (m68hc11_unwind_pc): New function.
1464 (m68hc11_frame_unwind_cache): New function to analyze frames.
1465 (m68hc11_frame_this_id): New function to create new frame struct.
1466 (m68hc11_frame_prev_register): New function to unwind a register from
1467 the frame.
1468 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1469 (m68hc11_frame_p): New function for the above.
1470 (m68hc11_frame_base_address): New function to return fp of frame.
1471 (m68hc11_frame_args_address): Update for frame.
1472 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1473 (m68hc11_unwind_sp): New function.
1474 (m68hc11_unwind_dummy_id): New function.
1475 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1476 calls.
1477
c8a7f6ac
SC
14782003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1479
1480 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1481 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1482 when we are beyond the current pc.
1483
3dc990bf
SC
14842003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1485
1486 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1487 from m68hc11_push_arguments.
1488 (m68hc11_push_arguments): Remove.
1489 (m68hc11_push_return_address): Remove.
1490 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1491 handlers; remove deprecated_extra_stack_alignment_needed.
1492
222e5d1d
AC
14932003-07-27 Andrew Cagney <cagney@redhat.com>
1494
1495 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1496 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1497 REAL_PC and not the pointer.
1498 * hppa-hpux-tdep.c: Include frame.h
1499
a7e9a47e
AC
15002003-07-27 Andrew Cagney <cagney@redhat.com>
1501
1502 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1503 GDB_MULTI_ACH_PARTIAL.
1504
7e3dd49e
AC
15052003-07-27 Andrew Cagney <cagney@redhat.com>
1506
1507 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1508 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1509 operator at start and not end of line.
1510 (decode_prologue): Ditto.
1511 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1512 frame_unwind_register_unsigned instead of
1513 frame_unwind_unsigned_register.
1514 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1515 read_register.
1516 (m32r_push_dummy_call): Use register_size instead of
1517 REGISTER_RAW_SIZE.
1518 (m32r_frame_sniffer): Replace m32r_frame_p.
1519 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1520 * m32r-rom.c (report_transfer_performance): Delete extern
1521 declaration.
1522 (m32r_load, m32r_upload_command): Use print_transfer_performance
1523 instead of report_transfer_performance.
1524 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1525 / add_show_from_set.
1526
0880807f
AC
15272003-07-26 Andrew Cagney <cagney@redhat.com>
1528
1529 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1530 store_return_value and extract_struct_value_address.
1531
64ae9269
DJ
15322003-07-26 Daniel Jacobowitz <drow@mvista.com>
1533
1534 PR c++/1267
1535 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1536 NULL, default to the section containing PC.
1537
e286caf2
SC
15382003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1539
1540 * NEWS: Mention "regs" deprecated for m68hc11 too.
1541
1542 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1543 (m68hc11_print_register): New function to print out one register.
1544 (m68hc11_print_registers_info): New function to print registers.
1545 (show_regs): Deprecate and use the above.
1546 (m68hc11_gdbarch_init): Install the print_registers_info.
1547
705b278b
JJ
15482003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1549
1550 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1551 that we have a SIGTRAP before returning non-zero.
1552
63cd4198
EZ
15532003-07-23 Michal Ludvig <mludvig@suse.cz>
1554 Elena Zannoni <ezannoni@redhat.com>
1555
1556 * linespec.c (decode_line_2): Avoid crash if
1557 find_function_start_sal() returns empty record.
1558
6926787d
AS
15592003-07-23 Andreas Schwab <schwab@suse.de>
1560
1561 * ia64-tdep.c (ia64_print_insn): New function.
1562 (ia64_gdbarch_init): Set print_insn to it.
1563 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1564 deprecated_tm_print_insn_info.
1565
708cc1b6
MS
15662003-07-22 Michael Snyder <msnyder@redhat.com>
1567
1568 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1569 handle 8-bit returns (long long).
1570 (h8300h_extract_return_value): Ditto.
1571 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1572
aebd7893
AC
15732003-07-22 Andrew Cagney <cagney@redhat.com>
1574
1575 * gdbarch.c Include "gdb_obstack.h".
1576 (struct gdbarch): Add an "obstack".
1577 (alloc_gdbarch_data): Allocate the gdbarch data using
1578 GDBARCH_OBSTACK_CALLOC.
1579 (free_gdbarch_data): Delete function.
1580 (gdbarch_obstack_zalloc): New function.
1581 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1582 Assert that the architecture is not initialized.
1583 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1584 vector from the obstack.
1585 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1586 architecture obstack.
1587 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1588 (set_gdbarch_data): Assert that the data is not initialized.
1589 (struct gdbarch_data): Delete member "free".
1590 (register_gdbarch_data): Do not initialize "free".
1591 * gdbarch.h, gdbarch.c: Re-generate.
1592
153721e6
AC
15932003-07-22 Andrew Cagney <cagney@redhat.com>
1594
1595 * configure.in (build_warnings): Add -Wformat-nonliteral.
1596 * configure: Re-generate.
1597
c193f044 15982003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
1599
1600 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 1601
c3228f12
EZ
16022003-07-22 Elena Zannoni <ezannoni@redhat.com>
1603
1604 * findvar.c (read_var_value): Remove case for thread local storage
1605 variables. It is now entirely handled by the dwarf2 location
1606 expression code.
1607 * printcmd.c (address_info): Ditto.
1608 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1609 enumeration value.
1610 (struct symbol): Remove objfile field, which was used by
1611 LOC_THREAD_LOCAL_STATIC only.
1612 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1613 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1614 usage of objfile pointer.
1615 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1616 thread local variables.
1617 Add include of objfiles.h.
1618 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1619 storage variables.
1620 * Makefile.in (dwarf2loc.o): Update dependencies.
1621
aef9bcd2
AC
16222003-07-22 Andrew Cagney <cagney@redhat.com>
1623
1624 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1625 get_frame_base.
1626 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1627 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1628 (struct value): Add opaque declaration.
1629 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1630
d95a8903
AC
16312003-07-21 Andrew Cagney <cagney@redhat.com>
1632
1633 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1634 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1635
4db73d49
SC
16362003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1637
1638 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1639 regcache_cooked_read_unsigned instead of read_register.
1640 (m68hc11_saved_pc_after_call): Likewise.
1641 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1642 instead of write_register.
1643 (m68hc11_register_type): New function.
1644 (m68hc11_register_virtual_type): Remove.
1645 (m68hc11_store_return_value): Convert to use the regcache.
1646 (m68hc11_extract_struct_value_address): Likewise.
1647 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1648 m68hc11_register_type; undeprecate store_return_value and
1649 extract_struct_value_address.
1650
ef2b8fcd
SC
16512003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1652
1653 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1654 and translate to use regcache.
1655 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1656
625b0b97
AC
16572003-07-18 Andrew Cagney <cagney@redhat.com>
1658
1659 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1660 * gdbarch.h, gdbarch.c: Re-generate.
1661 * i386-tdep.c (i386_gdbarch_init): Do not set
1662 DWARF2_BUILD_FRAME_INFO.
1663 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1664 unconditionally.
1665 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1666 DWARF2_BUILD_FRAME_INFO.
1667
22b0d388
AC
16682003-07-18 Andrew Cagney <cagney@redhat.com>
1669
1670 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1671 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1672
1ce5d6dd
AC
16732003-07-18 Andrew Cagney <cagney@redhat.com>
1674
1675 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1676 frame_unwind_address_in_block, instead of frame_pc_unwind.
1677 (dwarf2_frame_cache): Ditto.
1678
e6e5e94c
AC
16792003-07-18 Andrew Cagney <cagney@redhat.com>
1680
1681 * user-regs.h (struct gdbarch): Declare opaque.
1682 * ui-out.h (struct ui_file): Declare opaque.
1683 * dwarf2-frame.h (struct frame_info): Declare opaque.
1684
5483d879
KW
16852003-07-18 Kris Warkentin <kewarken@qnx.com>
1686
1687 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1688 #include "...".
1689 (procfs_meminfo): Change strerror to safe_strerror.
1690 (procfs_can_run): Remove K&R badness.
1691
278a7cf7
MS
16922003-07-17 Michael Snyder <msnyder@redhat.com>
1693
1694 * remote-sim.c: Comment typo fix.
1695
606e3b82
AC
16962003-07-17 Andrew Cagney <cagney@redhat.com>
1697
1698 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1699 configure.
1700 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1701 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1702 GDB_MULTI_ARCH_PARTIAL.
1703
c43af07c
EZ
17042003-07-17 Elena Zannoni <ezannoni@redhat.com>
1705
1706 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1707 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1708 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1709
3b85b0f1
TR
17102003-07-16 Theodore A. Roth <troth@openavr.org>
1711
1712 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1713 found.
1714 (avr_frame_unwind_cache): Don't unwind FP for main.
1715 Update a comment.
1716 Save the computed prev_sp.
1717 (avr_saved_regs_unwinder): Remove function.
1718 (avr_frame_prev_register): Use PC unwind logic from
1719 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1720
336d1bba
AC
17212003-07-16 Andrew Cagney <cagney@redhat.com>
1722
1723 * frame-base.h (frame_base_p_ftype): Delete definition.
1724 (frame_base_append_predicate): Delete declaration.
1725 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1726 (frame_unwind_append_predicate): Delete declaration.
1727 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1728 (append_predicate): Delete parameter "p".
1729 (frame_unwind_append_predicate): Delete function.
1730 (frame_unwind_append_sniffer): Update call to append_predicate.
1731 (frame_unwind_free): Delete function.
1732 (_initialize_frame_unwind): Pass NULL as "free" to
1733 register_gdbarch_data.
1734 (frame_unwind_init): Append the dummy_frame_sniffer.
1735 (frame_unwind_find_by_frame): Simplify.
1736 * frame-base.c (struct frame_base_table): Delete field "p".
1737 (append_predicate): Delete parameter "p".
1738 (frame_base_append_predicate): Delete function.
1739 (frame_base_append_sniffer): Update call to append_predicate.
1740 (frame_base_free): Delete function.
1741 (frame_base_find_by_frame): Simplify.
1742 (_initialize_frame_base): Pass NULL as "free" to
1743 register_gdbarch_data.
1744 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1745 (x86_64_sigtramp_frame_sniffer): Replace
1746 "x86_64_sigtramp_frame_p".
1747 (x86_64_init_abi): Set the frame unwind sniffers.
1748 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1749 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1750 (m68k_gdbarch_init): Set the frame unwind sniffers.
1751 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1752 "i386_sigtramp_frame_p".
1753 (i386_frame_sniffer): Replace "i386_frame_p".
1754 (i386_gdbarch_init): Set the frame unwind sniffers.
1755 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1756 (avr_gdbarch_init): Set the frame unwind sniffers.
1757 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1758 "alpha_sigtramp_frame_p"
1759 (alpha_heuristic_frame_sniffer): Replace
1760 "alpha_heuristic_frame_p".
1761 (alpha_gdbarch_init): Set the frame unwind sniffers.
1762 (alpha_dwarf2_init_abi): Ditto.
1763 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1764 "alpha_debug_frame_p".
1765 (alpha_mdebug_frame_base_sniffer): Replace
1766 "alpha_mdebug_frame_base_p".
1767 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1768 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1769 (d10v_gdbarch_init): Set the frame unwind sniffer.
1770 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1771 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1772 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1773 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1774 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1775 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1776
48db5a3c
CV
17772003-07-16 Michael Snyder <msnyder@redhat.com>
1778
1779 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1780 should go thru sh_dsp_register_sim_regno, else the dsp regs
1781 will not get the right values.
1782
17832003-07-16 Corinna Vinschen <vinschen@redhat.com>
1784
1785 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1786 deprecated_store_floating by call to store_typed_floating.
1787 (sh_sh4_register_convert_to_raw): Substitute call to
1788 deprecated_extract_floating by call to extract_typed_floating.
1789
17902003-07-16 Corinna Vinschen <vinschen@redhat.com>
1791
1792 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1793
17942003-07-16 Corinna Vinschen <vinschen@redhat.com>
1795
1796 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1797 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1798 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1799 as possible.
1800 (do_pseudo_register): Remove.
1801 (sh_push_dummy_code): New function.
1802 (sh64_store_struct_return): Rename from sh_store_struct_return.
1803 Only called for sh64 now.
1804 (sh_extract_struct_value_address): Regcache'ify.
1805 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1806 and accomodate new tasks.
1807 (sh64_push_return_address): Rename from sh_push_return_address.
1808 Only called for sh64 now.
1809 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1810 Regcache'ify.
1811 (sh3e_sh4_extract_return_value): Regcache'ify.
1812 (sh_default_store_return_value): Ditto.
1813 (sh3e_sh4_store_return_value): Ditto.
1814 (sh_default_register_byte): Remove.
1815 (sh_sh4_register_byte): Remove.
1816 (sh_default_register_raw_size): Remove.
1817 (sh_sh4_register_raw_size): Remove.
1818 (sh_register_virtual_size): Remove.
1819 (sh_sh3e_register_virtual_type): Remove.
1820 (sh_sh3e_register_type): New function.
1821 (sh_sh4_register_virtual_type): Remove.
1822 (sh_sh4_register_type): New function.
1823 (sh_default_register_virtual_type): Remove.
1824 (sh_default_register_type): New function.
1825 (do_fv_register_info): Add parameters to accomodate call from
1826 sh_print_registers_info.
1827 (do_dr_register_info): Ditto.
1828 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1829 Add parameters to accomodate call from sh_print_registers_info.
1830 (sh_do_fp_register): Ditto.
1831 (sh64_do_pseudo_register): Call do_dr_register_info,
1832 do_fv_register_info and sh_do_fp_register with default parameters.
1833 (sh_do_register): Add parameters to accomodate call from
1834 sh_print_registers_info.
1835 (sh_print_register): Ditto.
1836 (sh_print_registers_info): Rename from sh_do_registers_info.
1837 Add parameters to be used as gdbarch_print_registers_info
1838 implementation. Accomodate removed do_pseudo_register function
1839 pointer.
1840 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1841 function pointer. Call sh_print_register with default parameters.
1842 (sh64_do_registers_info): Call sh_print_registers_info instead of
1843 sh_do_registers_info.
1844 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1845 detection of deprecated vs. non-deprecated functionality.
1846 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1847 function pointer assignments by direct function calls.
1848
e8a89fe2
AC
18492003-07-15 Andrew Cagney <cagney@redhat.com>
1850
1851 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1852 (frame_register_unwind, create_new_frame): Ditto.
1853 (legacy_get_prev_frame, get_frame_type): Ditto.
1854 (get_frame_base_address): Use frame_base_find_by_frame.
1855 (get_frame_locals_address): Use frame_base_find_by_frame.
1856 (get_frame_args_address): Use frame_base_find_by_frame.
1857 * frame-base.h (frame_base_sniffer_ftype): Declare.
1858 (frame_base_append_sniffer): Declare.
1859 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1860 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1861 (frame_base_append_sniffer): New function.
1862 (frame_base_append_predicate): Add a NULL sniffer.
1863 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1864 (struct frame_base_table): Add "sniffer".
1865 (frame_base_free): Free the "sniffer" table.
1866 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1867 (frame_unwind_append_sniffer): Declare.
1868 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1869 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1870 (struct frame_unwind_table): Add "sniffer", delete "middle".
1871 (append_predicate): Add "sniffer" parameter, append the sniffer.
1872 (frame_unwind_init): Update append_predicate call.
1873 (frame_unwind_append_sniffer): New function.
1874 (frame_unwind_append_predicate): Update append_predicate call.
1875 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1876
0714963c
AC
18772003-07-15 Andrew Cagney <cagney@redhat.com>
1878
1879 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1880 before code inhibiting repeated unwind attempts. Add to
1881 commentary on that test's problems.
1882 * blockframe.c (inside_main_func): Look for "main" in the minimal
1883 symbol table.
1884 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1885 identical.
1886
d9170e22
AC
18872003-07-15 Andrew Cagney <cagney@redhat.com>
1888
1889 * complaints.c (struct explanation): Define.
1890 (struct complaints): Change type of "explanation" to "struct
1891 explanation".
1892 (symfile_explanations): Convert to a "struct explanation" table.
1893 (vcomplaint): Update.
1894
eba29c8c
ML
18952003-07-15 Michal Ludvig <mludvig@suse.cz>
1896
1897 * x86-64-linux-nat.c (regmap): Removed.
1898 (supply_gregset, fill_gregset): Call
1899 x86_64_linux_(fill,supply)_gregset functions.
1900 * x86-64-linux-tdep.c (USER_*): New defines.
1901 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1902 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1903 New functions.
1904 (fetch_core_registers): Ditto.
1905 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1906 * x86-64-linux-tdep.h: New file.
1907 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1908 and core-regset.o.
1909 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1910
68cc0bfb
MK
19112003-07-13 Mark Kettenis <kettenis@gnu.org>
1912
88a115f7
MK
1913 * x86-64-tdep.c (x86_64_store_return_value): Use
1914 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 1915
68cc0bfb
MK
1916 * configure.host: Add x86_64-*-freebsd*.
1917 * configure.tgt: Add x86_64-*-freebsd*.
1918 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1919 * amd64fbsd-nat.c: New file.
1920 * amd64fbsd-tdep.c: New file.
1921 * config/i386/nm-fbsd64.h: New file.
1922 * config/i386/fbsd64.mh: New file.
1923 * config/i386/fbsd64.mt: New file.
1924
138e7be5
MK
19252003-07-11 Mark Kettenis <kettenis@gnu.org>
1926
1927 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1928 `sc_regs_offset' and `sc_fpregs_offset'.
1929 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1930 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1931 (alpha_sigtramp_register_address): Rewrite to use new members of
1932 `struct gdbarch_tdep'.
1933 (alpha_gdbarch_init): Initialize new members of struct
1934 gdbarch_tdep'.
1935 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1936 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1937 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1938 (alphafbsd_pc_in_sigtramp): Implement.
1939 (alphafbsd_sigtramp_offset): New function.
1940 (alphafbsd_sigcontext_addr): New function.
1941 (alphafbsd_init_abi): Initialize signal trampoline related members
1942 of `struct gdbarch_tdep'.
1943 (_initialize_alphafbsd_tdep): Add prototype.
1944
95303a68
TR
19452003-07-11 Theodore A. Roth <troth@openavr.org>
1946
ba292e4c
TR
1947 * Makefile.in (install-only): Quote sed expression when generating
1948 transformed_name.
95303a68 1949
6896c0c7
RH
19502003-07-11 Richard Henderson <rth@redhat.com>
1951
1952 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1953 * dwarf2-frame.c: Include complaints.h.
1954 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1955 variable initialization; return NULL on error.
1956 (decode_frame_entry): New.
1957
8edd5d01
AC
19582003-07-11 Andrew Cagney <cagney@redhat.com>
1959
c4a09524
AC
1960 * frame.h (frame_address_in_block): Delete declaration.
1961 * blockframe.c (frame_address_in_block): Delete function.
1962 (get_frame_block): Use get_frame_address_in_block.
1963 (block_innermost_frame): Ditto.
1964 * stack.c (print_frame, backtrace_command_1): Ditto.
1965
8edd5d01
AC
1966 * frame.h (get_frame_address_in_block): Declare.
1967 (frame_unwind_address_in_block): Declare.
1968 * frame.c (frame_unwind_address_in_block): New function.
1969 (get_frame_address_in_block): New function.
1970
f7968451
AC
19712003-07-10 Andrew Cagney <cagney@redhat.com>
1972
1973 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1974 pre-default. Note: re-generate has no effect.
1975
ae99b398
AC
19762003-07-10 Andrew Cagney <cagney@redhat.com>
1977
1978 * gdbarch.sh: When a variable, but not a function, compare against
1979 0. Fix problem in previous patch.
1980 * gdbarch.c: Re-generate.
1981
956ac328
AC
19822003-07-10 Andrew Cagney <cagney@redhat.com>
1983
1984 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1985 functions against NULL, not 0.
1986 * gdbarch.c: Re-generate.
1987
287c3240
FF
19882003-07-10 Fred Fish <fnf@ninemoons.com>
1989
1990 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1991 null string instead of a null pointer.
1992 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1993
32f63c4b
MS
19942003-07-09 Michael Snyder <msnyder@redhat.com>
1995
1996 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1997
402ecd56
MK
19982003-07-09 Mark Kettenis <kettenis@gnu.org>
1999
2000 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2001 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2002 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2003 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2004 * x86-64-tdep.c: ... from here.
2005
c481dac7
AS
20062003-07-09 Andreas Schwab <schwab@suse.de>
2007
2008 * m68k-tdep.h (enum struct_return): Define.
2009 (struct gdbarch_tdep): Add struct_return.
2010 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2011 bytes are padded to the right, not to the left. Pass struct value
2012 address in register %a1, not on stack.
2013 (m68k_use_struct_convention): New function.
2014 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2015 struct_return in tdep to pcc_struct_return.
2016 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2017 reg_struct_return.
2018
64176fa3
JB
20192003-07-09 Joel Brobecker <brobecker@gnat.com>
2020
2021 * somread.c (som_symfile_offsets): Fix compilation error.
2022
96a4ee76
AC
20232003-07-09 Andrew Cagney <cagney@redhat.com>
2024
2025 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2026 Add comments about the checks.
2027
1517c6d1
AC
20282003-07-08 Andrew Cagney <cagney@redhat.com>
2029
2030 * Makefile.in: Make dependency section headers consistent.
2031 (config_h): Move to $BUILD headers section.
2032 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2033 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2034 (ada-exp.tab.c): Move to YACC/LEX section.
2035 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2036 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2037
dc5dd1eb
KW
20382003-07-08 Kris Warkentin <kewarken@qnx.com>
2039
2040 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
2041 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2042 of strerror with safe_strerror, use ISO C function definitions,
2043 and replace instances of sprintf with snprintf.
dc5dd1eb 2044
612dde91
AC
20452003-07-07 Andrew Cagney <cagney@redhat.com>
2046
2047 * frame.c (get_prev_frame): Enable check for identical frames.
2048 Update comments. Update error messages.
2049
492c11d3
JB
20502003-07-07 Joel Brobecker <brobecker@gnat.com>
2051
2052 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2053
376a5a49
JB
20542003-07-07 Joel Brobecker <brobecker@gnat.com>
2055
2056 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2057 sort_symtab_syms, no longer necessary.
2058
22b4a9ad
JB
20592003-07-07 Joel Brobecker <brobecker@gnat.com>
2060
2061 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2062
5bbcb741
JB
20632003-07-07 Joel Brobecker <brobecker@gnat.com>
2064
2065 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2066 (mips_register_byte): Likewise.
2067
c139e7d9
DJ
20682003-07-07 Daniel Jacobowitz <drow@mvista.com>
2069
2070 * Makefile.in (sparc_tdep_h): New.
2071 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2072 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2073 * sparc-linux-nat.c: Include "sparc-tdep.h".
2074 * sparc-nat.c: Likewise.
2075 * sparc-tdep.c: Likewise.
2076 * sparc64nbsd-nat.c: Likewise.
2077 * sparcnbsd-nat.c: Likewise.
2078 * sparcnbsd-tdep.c: Likewise.
2079 * sparc-tdep.h: New file.
2080 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2081 and sparc_npc_regnum.
2082
fd8f87c5
DJ
20832003-07-07 Daniel Jacobowitz <drow@mvista.com>
2084
2085 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2086 (mips_linux_cannot_store_register): List supported instead of
2087 unsupported registers.
2088
13adf674
DJ
20892003-07-07 Daniel Jacobowitz <drow@mvista.com>
2090
2091 * disasm.c (dump_insns): Separate instructions from addresses.
2092
8de307e0
AS
20932003-07-07 Andreas Schwab <schwab@suse.de>
2094
2095 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2096 dependencies.
2097 * m68k-tdep.c (NUM_FREGS): Delete.
2098 (SIG_PC_FP_OFFSET): Delete.
2099 (TARGET_M68K): Delete.
2100 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2101 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2102 P_MOVEL_SP, P_MOVEML_SP): Define.
2103 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2104 P_TRAP): Delete.
2105 (m68k_register_raw_size): Delete.
2106 (m68k_register_virtual_size): Delete.
2107 (m68k_register_type): Renamed from m68k_register_virtual_type and
2108 add gdbarch argument.
2109 (m68k_store_struct_return): Delete.
2110 (m68k_deprecated_extract_return_value): Delete.
2111 (m68k_deprecated_extract_struct_value_address): Delete.
2112 (m68k_frame_chain): Delete.
2113 (m68k_frame_saved_pc): Delete.
2114 (m68k_fix_call_dummy): Delete.
2115 (m68k_push_dummy_frame): Delete.
2116 (m68k_pop_frame): Delete.
2117 (m68k_extract_return_value): New function.
2118 (m68k_store_return_value): Rewrite using regcache.
2119 (m68k_extract_struct_value_address): Rewrite using regcache.
2120 (m68k_push_dummy_call): New function.
2121 (struct m68k_frame_cache): Define.
2122 (m68k_alloc_frame_cache): New function.
2123 (m68k_analyze_frame_setup): New function.
2124 (m68k_analyze_register_saves): New function.
2125 (m68k_analyze_prologue): New function.
2126 (m68k_skip_prologue): Rewrite using above functions.
2127 (m68k_unwind_pc): New function.
2128 (m68k_frame_cache): New function.
2129 (m68k_frame_this_id): New function.
2130 (m68k_frame_prev_register): New function.
2131 (m68k_frame_unwind): New variable.
2132 (m68k_frame_p): New function.
2133 (m68k_sigtramp_frame_cache): New function.
2134 (m68k_sigtramp_frame_this_id): New function.
2135 (m68k_sigtramp_frame_prev_register): New function.
2136 (m68k_sigtramp_frame_unwind): New variable.
2137 (m68k_sigtramp_frame_p): New function.
2138 (m68k_frame_base_address): New function.
2139 (m68k_frame_base): New function.
2140 (m68k_unwind_dummy_id): New function.
2141 (fill_gregset): Use regcache_collect.
2142 (fill_fpregset): Likewise.
2143 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2144 defined.
2145 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2146 deprecated_init_frame_pc, deprecated_store_struct_return,
2147 deprecated_extract_return_value, deprecated_store_return_value,
2148 deprecated_frame_chain, deprecated_frame_saved_pc,
2149 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2150 deprecated_register_virtual_size,
2151 deprecated_max_register_raw_size,
2152 deprecated_max_register_virtual_size,
2153 deprecated_register_virtual_type, deprecated_register_size,
2154 deprecated_register_byte, deprecated_register_bytes,
2155 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2156 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2157 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2158 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2159 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2160 deprecated_push_dummy_frame, deprecated_pop_frame,
2161 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2162 only if SYSCALL_TRAP is defined. Set extract_return_value,
2163 store_return_value, extract_struct_value_address, register_type,
2164 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2165 predicates.
2166 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2167 M68K_MAX_REGISTER_SIZE): Define.
2168 (struct m68k_sigtramp_info): Define.
2169 (struct gdbarch_tdep): Add get_sigtramp_info.
2170 * m68klinux-nat.c (fetch_register): Use register_size instead of
2171 REGISTER_RAW_SIZE. Don't put assignment in if.
2172 (store_register): Likewise.
2173 (fetch_inferior_registers): Likewise.
2174 (store_inferior_registers): Likewise.
2175 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2176 (m68k_linux_frame_saved_pc): Delete.
2177 (m68k_linux_sigcontext_reg_offset,
2178 m68k_linux_ucontext_reg_offset): Define.
2179 (m68k_linux_get_sigtramp_info): New function.
2180 (m68k_linux_extract_return_value): Rewrite using regcache.
2181 (m68k_linux_store_return_value): Likewise.
2182 (m68k_linux_extract_struct_value_address): Likewise.
2183 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2184 Don't set deprecated_frame_saved_pc,
2185 deprecated_extract_return_value, deprecated_store_return_value,
2186 deprecated_extract_struct_value_address. Set
2187 extract_return_value, store_return_value,
2188 extract_struct_value_address.
2189
eb8bc282
AC
21902003-07-07 Andrew Cagney <cagney@redhat.com>
2191
2192 * expprint.c: Include "user-regs.h" instead of "frame.h".
2193 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2194 frame_map_regnum_to_name.
2195 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2196 (frame_map_name_to_regnum): Simplify, call
2197 user_reg_map_name_to_regnum.
2198 (frame_map_regnum_to_name): Simplify, call
2199 user_reg_map_regnum_to_name.
2200 (frame_register_unwind): Update.
2201 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2202 (_initialize_frame_reg): Call user_reg_add_builtin.
2203 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2204 (value_of_register): Use value_of_user_reg.
2205 * eval.c (evaluate_subexp_standard): Update.
2206 * parse.c (write_dollar_variable): Update.
2207 * d10v-tdep.c (d10v_print_registers_info): Update.
2208 * infcmd.c (registers_info): Update.
2209 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2210 (builtin_regs_h): Delete macro.
2211 (user_regs_h): Define.
2212 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2213 (builtin-regs.o): Delete target.
2214 (user-regs.o): Specify dependencies.
2215 (expprint.o): Update dependencies.
2216 (findvar.o): Update dependencies.
2217 (frame.o): Update dependencies.
2218 (std-regs.o): Update dependencies.
2219
9f476a01
CF
22202003-07-06 Christopher Faylor <cgf@redhat.com>
2221
2222 * win32-nat.c (solib_symbols_add): Use one variable for all section
2223 address stuff. Pass variable rather than address of variable to
2224 safe_symbol_file_add.
2225
a731b831
AS
22262003-07-06 Andreas Schwab <schwab@suse.de>
2227
2228 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2229
9f83329d
JB
22302003-07-04 Joel Brobecker <brobecker@gnat.com>
2231
2232 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2233
27e28cc5
KW
22342003-07-04 Kris Warkentin <kewarken@qnx.com>
2235
2236 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2237
22382003-07-04 Kris Warkentin <kewarken@qnx.com>
2239
2240 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2241 * config/i386/nto.mh: New file.
2242 * config/i386/nm-nto.h: New file.
2243 * configure.host: Add i[3456]86-*-nto*.
2244
100f2e98
JB
22452003-07-03 Joel Brobecker <brobecker@gnat.com>
2246
2247 * remote-vx.c (vx_add_symbols): Fix compilation error.
2248
e23457df
AC
22492003-07-03 Andrew Cagney <cagney@redhat.com>
2250
2251 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2252 * gdbarch.h, gdbarch.c: Re-generate.
2253 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2254 (legacy_register_name): Declare.
2255 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2256 (REGISTER_NAME): Define.
2257 * sparc-tdep.c (legacy_register_name): New function.
2258 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2259 (REGISTER_NAME): Define.
2260 (hppa64_register_name): Declare.
2261 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2262 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2263 (hppa64_register_name): New function.
2264 (hppa_register_name): New function.
2265 * arch-utils.c (legacy_register_name): Delete.
2266 * arch-utils.h (legacy_register_name): Delete.
2267
38caaeec
DJ
22682003-07-03 Daniel Jacobowitz <drow@mvista.com>
2269
2270 * cli/cli-interp.c (cli_interpreter_resume): Update the
2271 cli_uiout's stream to gdb_stdout.
2272
dadd712e
AC
22732003-07-03 Andrew Cagney <cagney@redhat.com>
2274
2275 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2276 predicate.
2277 * gdbarch.h, gdbarch.c: Re-generate.
2278 * regcache.c (init_regcache_descr): Use legacy code when either
2279 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2280
c7f1390e
DJ
22812003-07-02 Daniel Jacobowitz <drow@mvista.com>
2282
2283 * NEWS: Move "set logging" entry into GDB 6.0 section.
2284
4bc8c588
JB
22852003-07-02 Jim Blandy <jimb@redhat.com>
2286
a9dd42f1
JB
2287 * s390-tdep.c (struct frame_extra_info): new member:
2288 'stack_bought_valid'.
2289 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2290 initialize fextra_info->stack_bought.
2291 (s390_frameless_function_invocation): Don't trust the value of
2292 fextra_info_ptr->stack_bought unless
2293 fextra_info->stack_bought_valid is set.
2294
4bc8c588
JB
2295 New S390 prologue analyzer.
2296 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2297 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2298 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2299 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2300 compute_x_addr, s390_on_stack, s390_store,
2301 s390_get_signal_frame_info): New functions.
2302 (S390_NUM_SPILL_SLOTS): New macro.
2303 (s390_get_frame_info): Rewritten.
2304 (is_arg_reg): Deleted.
2305
2306 Break out the decoding of S/390 instructions into separate
2307 functions, to make it more legible, and easier to check
2308 against the spec.
2309 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2310 is_rx, is_rxe): New functions.
2311 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2312 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2313 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2314 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2315 enums for opcode values. (Is this an improvement?)
2316
fd13a04a
AC
23172003-07-02 Andrew Cagney <cagney@redhat.com>
2318
2319 * i386-tdep.c: Revert change committed as part of trad-frame code
2320 below.
2321
3f8091c1
DJ
23222003-07-02 Daniel Jacobowitz <drow@mvista.com>
2323
2324 * breakpoint.c (insert_catchpoint): Make static.
2325
8dd5115e
AS
23262003-07-02 Andreas Schwab <schwab@suse.de>
2327
2328 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2329 former ia64_push_arguments and ia64_push_return_address, and use
2330 regcache functions instead of read/write_register.
2331 (ia64_gdbarch_init): Set push_dummy_call instead of
2332 deprecated_push_arguments and deprecated_push_return_address.
2333
a2229c23
AJ
23342003-07-01 Andreas Jaeger <aj@suse.de>
2335
2336 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2337 before the call.
2338 Set %rax only to number of SSE registers used.
2339
3b3850e8
AC
23402003-07-01 Andrew Cagney <cagney@redhat.com>
2341
2342 * trad-frame.h: Update comments, a -1 .addr is reserved.
2343 (trad_frame_value_p, trad_frame_addr_p): Declare.
2344 (trad_frame_reg_p): Declare.
2345 (trad_frame_set_value): Rename trad_frame_register_value.
2346 (trad_frame_set_unknown): Declare.
2347 * trad-frame.c (trad_frame_realreg_p): New function.
2348 (trad_frame_addr_p, trad_frame_value_p): New function.
2349 (trad_frame_set_unknown): New function.
2350 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2351 (trad_frame_prev_register): Use trad_frame_realreg_p,
2352 trad_frame_addr_p and trad_frame_value_p.
2353 (trad_frame_set_value): Rename trad_frame_register_value.
2354 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2355 and trad_frame_set_value.
a2229c23 2356
4d819d0e
JB
23572003-06-30 Jim Blandy <jimb@redhat.com>
2358
2359 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2360 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2361 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2362 for 16 registers, and then 32 more bytes.
2363 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2364 New macros.
2365 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2366 Move up in the file, since it's now used by is_simple_arg.
2367 (is_simple_arg): Don't assume registers are four bytes long.
2368 Exclude all double arguments. Extended floats are not simple
2369 args.
2370 (is_power_of_two): New function.
2371 (pass_by_copy_ref): Call is_power_of_two, and check that the
2372 length fits in a register, rather than listing all the acceptable
2373 sizes. Extended floats are not passed by reference.
2374 (s390_push_arguments): Don't assume registers are four bytes long.
2375 Reserve an argument register to point to the buffer for structures
2376 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2377 S390_STACK_FRAME_OVERHEAD.
2378
1ad828f1
AS
23792003-06-30 Andreas Schwab <schwab@suse.de>
2380
2381 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2382 format error message.
2383
39b00981
JB
23842003-06-30 Joel Brobecker <brobecker@gnat.com>
2385
2386 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2387
b2a7f303
DC
23882003-06-30 David Carlton <carlton@kealia.com>
2389
2390 Band-aid for PR c++/1245.
2391 * Makefile.in (cp-support.o): Depend on complaints_h.
2392 * cp-support.c: Include complaints.h. Add declaration for
2393 find_last_component.
2394 (cp_find_first_component): Separate code into
2395 cp_find_first_component_aux.
2396 (cp_find_first_component_aux): Call demangled_name_complaint.
2397 (demangled_name_complaint): New.
2398
a257b5bb
AC
23992003-06-30 Andrew Cagney <cagney@redhat.com>
2400
2401 * remote.c (remote_write_bytes): Explicitly compute and then use
2402 the payload size. Update comments to reflect. Fixes problem of
2403 GDB not sending small packets as found by Fred Fish.
2404
0a2cfde4
AC
24052003-06-30 Andrew Cagney <cagney@redhat.com>
2406
2407 * remote.c (remote_async_wait): Fix -Wformat problem.
2408
3fcb8548
AC
24092003-06-29 Andrew Cagney <cagney@redhat.com>
2410
2411 * remote.c (remote_wait): Call error, and not warning, when the
2412 packet is corrupt.
2413 (remote_async_wait): Ditto.
2414
9f9970a3
DJ
24152003-06-29 Daniel Jacobowitz <drow@mvista.com>
2416
2417 * sparc-tdep.c (sparc_y_regnum): Make external again.
2418
83a8ccca
DJ
24192003-06-29 Daniel Jacobowitz <drow@mvista.com>
2420
2421 * cli/cli-logging.c (pop_output_files): Add void to function
2422 definition.
2423
d2cf594a
AC
24242003-06-29 Andrew Cagney <cagney@redhat.com>
2425
2426 * frame.c (frame_register_unwind): Use unsigned char when dumping
2427 the buffer contents.
2428
0fac0b41
DJ
24292003-06-28 Daniel Jacobowitz <drow@mvista.com>
2430
2431 * cli/cli-logging.c: New file.
2432 * cli-out.c (struct ui_out_data): Add original_stream.
2433 (cli_redirect): New function.
2434 (cli_ui_out_impl): Add cli_redirect.
2435 (cli_out_new): Initialize original_stream.
2436 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2437 (uo_redirect, ui_out_redirect): New.
2438 * ui-out.h (struct ui_out_impl): Add redirect member.
2439 (redirect_ftype): New.
2440 (ui_out_redirect): Add prototype.
2441 * Makefile.in: Add rules for cli-logging.c.
2442 * NEWS: Mention "set logging".
2443
88a07d7c
EZ
24442003-06-27 Elena Zannoni <ezannoni@redhat.com>
2445
2446 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2447
4eb58876
AC
24482003-06-27 Andrew Cagney <cagney@redhat.com>
2449
2450 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2451 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2452 * avr-tdep.c (avr_call_dummy_address): Delete function.
2453 (avr_gdbarch_init): Do not set call_dummy_address.
2454
1549f619
EZ
24552003-06-27 Elena Zannoni <ezannoni@redhat.com>
2456
2457 * symfile.c (syms_from_objfile): Move variables to inner block.
2458 Move the checks for the non-mainline case a bit earlier to avoid
2459 doing some useless computations.
2460
3cb3398d
EZ
24612003-06-27 Elena Zannoni <ezannoni@redhat.com>
2462
2463 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2464
3799ccc6
EZ
24652003-06-26 Elena Zannoni <ezannoni@redhat.com>
2466
2467 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2468 sections.
2469
ce1f6491
MC
24702003-06-26 Michael Chastain <mec@shout.net>
2471
2472 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2473 gdb/testsuite/gdb.c++/pr-1210.exp.
2474
d958dfd0
AC
24752003-06-26 Andrew Cagney <cagney@redhat.com>
2476
2477 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2478 altivec_expression.h and altivec_registers.h.
2479
d31431ed
AC
24802003-06-26 Andrew Cagney <cagney@redhat.com>
2481
2482 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2483 info->mach when MIPS16. Patch suggested by Fred Fish.
2484
714b1282
AC
24852003-06-26 Andrew Cagney <cagney@redhat.com>
2486
2487 * utils.c (internal_vproblem): Print the problem to a reason
2488 buffer and then pass to query. Make the msg variable more local.
2489
42efa47a
AC
24902003-06-26 Andrew Cagney <cagney@redhat.com>
2491
2492 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2493 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2494 * gdbarch.h, gdbarch.c: Re-generate.
2495 * frame-base.c (default_frame_args_address): Update. Use
2496 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2497 not available.
2498 (default_frame_locals_address): Ditto for
2499 DEPRECATED_FRAME_LOCALS_ADDRESS.
2500 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2501 (vax_frame_num_args): Update.
2502 (vax_gdbarch_init): Update.
2503 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2504 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2505 * mcore-tdep.c (mcore_gdbarch_init): Update.
2506 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2507 * ia64-tdep.c (ia64_gdbarch_init): Update.
2508 * symtab.h (address_class): Update comments.
2509 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2510 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2511 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2512 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2513 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2514 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2515 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2516 * alpha-mdebug-tdep.c: Update.
2517 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2518
8ffd9b1b
AJ
25192003-06-26 Andreas Jaeger <aj@suse.de>
2520
2521 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2522 of SSE registers so that varargs functions work. Rework handling
2523 of passing arguments on the stack.
2524 (x86_64_store_return_value): Return double and float values in SSE
2525 register.
2526
e8ac10a6
MC
25272003-06-24 Michael Chastain <mec@shout.net>
2528
2529 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2530 the "constructor breakpoints ignored" bug.
2531
986af8e6
DC
25322003-06-25 David Carlton <carlton@kealia.com>
2533
2534 * MAINTAINERS: Update e-mail address.
2535
d64558a5
JB
25362003-06-24 Jim Blandy <jimb@redhat.com>
2537
e538d2d7
JB
2538 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2539
02631ec0
JB
2540 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2541 function.
2542 (ppc_linux_init_abi): Register it as the
2543 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2544
e716d87a
JB
2545 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2546 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2547 method.
2548
d64558a5
JB
2549 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2550 (ppc64_standard_linkage_target): Use it.
2551
449a5da4
AC
25522003-06-23 Andrew Cagney <cagney@redhat.com>
2553
2554 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2555 for 0 "int0" and 4 "int32" sized registers.
2556 * gdbtypes.c (builtin_type_int0): Define.
2557 (build_gdbtypes): Initialize builtin_type_int0.
2558 * gdbtypes.h (builtin_type_int0): Declare.
2559
b2a02dda
SC
25602003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2561
2562 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2563 as characters are unsigned.
2564
fba3138e
DJ
25652003-06-22 Daniel Jacobowitz <drow@mvista.com>
2566
2567 PR gdb/1179
2568 * dwarfread.c (struct_type): Skip static fields without crashing.
2569
f6c8180b
AC
25702003-06-22 Andrew Cagney <cagney@redhat.com>
2571
2572 GDB 6.0 branch created.
f2c06f52
AC
2573 * README: Update.
2574 * PROBLEMS: Update. Empty.
2575 * NEWS: Update.
f6c8180b 2576
ae822768
DJ
25772003-06-22 Daniel Jacobowitz <drow@mvista.com>
2578
2579 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2580 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2581
261de166
AC
25822003-06-22 Andrew Cagney <cagney@redhat.com>
2583
2584 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2585 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2586 Velikov.
2587
30e94205
DJ
25882003-06-22 Daniel Jacobowitz <drow@mvista.com>
2589
2590 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2591 compilers.
2592
9e14d721
DJ
25932003-06-21 Daniel Jacobowitz <drow@mvista.com>
2594
2595 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2596 argument of val_print.
2597 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2598 to the address argument of baseclass_offset or target_read_memory.
2599 Do add it to the argument of cp_print_value_fields.
2600
a4b8ebc8
AC
26012003-06-21 Andrew Cagney <cagney@redhat.com>
2602
2603 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2604 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2605 instead of 0..NUM_REGS.
2606 (mips_register_reggroup_p): New function.
2607 (mips_pseudo_register_write): New function.
2608 (mips_pseudo_register_read): New function.
2609 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2610 based on the register's type.
2611 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2612 cooked.
2613 (mips_get_saved_register): Simplify. Assert that REGNO is a
2614 pseudo / cooked.
2615 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2616 (mips_register_type): Replace mips_register_virtual_type. Map
2617 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2618 when available.
2619 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2620 that the register is cooked / virtual.
2621 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2622 Only get the extra info when needed.
2623 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2624 (mips32_heuristic_proc_desc): Fetch the cooked register.
2625 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2626 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2627 (mips_print_register): Use gdbarch_register_type, instead of
2628 REGISTER_VIRTUAL_TYPE.
2629 (print_gp_register_row): Use gdbarch_register_type, instead of
2630 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2631 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2632 Print the pseudo / cooked registers.
2633 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2634 Print the pseudo / cooked registers.
2635 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2636 REG_NUM is pseudo / cooked.
2637 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2638 (mips_n32n64_xfer_return_value): Ditto.
2639 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2640 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2641 (mips_register_sim_regno): New function.
2642 (mips_gdbarch_init): Set deprecated_register_byte,
2643 register_group_p, pseudo_register_write, pseudo_register_read,
2644 register_sim_regno, and num_pseudo_regs. Set register_type,
2645 instead of register_virtual_type.
2646 * Makefile.in (mips-tdep.o): Update dependencies.
2647 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2648 REGISTER_VIRTUAL_TYPE.
2649 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2650 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2651 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2652 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2653 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2654
325ed089
DJ
26552003-06-21 Daniel Jacobowitz <drow@mvista.com>
2656
2657 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2658 * cli/cli-cmds.c: Include "gdb_vfork.h".
2659 (shell_escape): Use vfork.
2660
f0e7d0e8
AC
26612003-06-21 Andrew Cagney <cagney@redhat.com>
2662
c57bb9fa
AC
2663 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2664 32 bit floating-point register saves.
2665
6e51443a
AC
2666 * frame.h (deprecated_unwind_get_saved_register): Delete.
2667 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2668 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2669 and deprecated_get_next_frame_hack instead of
2670 deprecated_unwind_get_saved_register.
2671
ed183c7c
AC
2672 * mips-tdep.c (mips_dump_tdep): Do not print
2673 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2674
f0e7d0e8
AC
2675 * frame.c (get_frame_register): New function.
2676 (frame_unwind_register_signed): New function.
2677 (get_frame_register_signed): New function.
2678 (frame_unwind_register_unsigned): New function.
2679 (get_frame_register_unsigned): New function.
2680 * frame.h: Add comments on naming schema.
2681 (get_frame_register, frame_unwind_register_signed): Declare.
2682 (get_frame_register_signed, get_frame_register_signed): Declare.
2683 (frame_unwind_register_unsigned): Declare.
2684 (get_frame_register_unsigned): Declare.
2685
2224d941
TR
26862003-06-20 Theodore A. Roth <troth@openavr.org>
2687
2688 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2689
8619218d
TR
26902003-06-20 Theodore A. Roth <troth@openavr.org>
2691
2692 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2693 (avr_read_sp): Ditto.
2694
0b1b50c0
DJ
26952003-06-20 Daniel Jacobowitz <drow@mvista.com>
2696
2697 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2698 * config/arm/nm-linux.h: Likewise.
2699 * config/arm/tm-linux.h: Likewise.
2700 * config/ia64/nm-linux.h: Likewise.
2701 * config/ia64/tm-ia64.h: Likewise.
2702 * config/s390/tm-linux.h: Likewise.
2703 * config/s390/tm-s390.h: Likewise.
2704 * s390-nat.c: Likewise.
2705 * s390-tdep.c: Likewise.
2706
2707 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2708 * config/ia64/linux.mt: Likewise.
2709 * config/m68k/linux.mh: Likewise.
2710 * config/mips/linux.mt: Likewise.
2711 * config/powerpc/linux.mh: Likewise.
2712 * config/sh/linux.mt: Likewise.
2713
c8c18e65
KW
27142003-06-19 Kris Warkentin <kewarken@qnx.com>
2715
2716 * solib.c (solib_open): Change tests for whether to search
2717 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2718 comments.
2719
dcccef2e
TR
27202003-06-19 Theodore A. Roth <troth@openavr.org>
2721
2722 * avr-tdep.c (avr_frame_address): Delete function.
2723 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2724 set_gdbarch_frame_args_address.
2725
5861a190
AC
27262003-06-19 Andrew Cagney <cagney@redhat.com>
2727
2728 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2729 (REGISTER_CONVERT_FROM_TYPE): Delete.
2730 (mips_register_convert_to_type): Delete declaration.
2731 (mips_register_convert_from_type): Delete declaration.
2732 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2733 kernel/.
2734
0274a8ce
MS
27352003-06-19 Michael Snyder <msnyder@redhat.com>
2736
2737 * linux-nat.h: New file.
2738 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 2739 * lin-lwp.c: Include linux-nat.h.
0274a8ce 2740 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 2741 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
2742 (linux_make_note_section): Iterate over lwps instead of threads.
2743 (linux_do_thread_registers): Use lwp instead of merged pid.
2744 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 2745 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
2746 Add dependency on linux_nat_h.
2747
adf5f719
TR
27482003-06-19 Theodore A. Roth <troth@openavr.org>
2749
2750 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2751
6766a268
DJ
27522003-06-19 Daniel Jacobowitz <drow@mvista.com>
2753
2754 * varobj.c (get_type, get_target_type): Use check_typedef.
2755
1171114a
DJ
27562003-06-19 Daniel Jacobowitz <drow@mvista.com>
2757
2758 * breakpoint.c (insert_catchpoint): Call internal_error.
2759
adcf68a2
TR
27602003-06-19 Theodore A. Roth <troth@openavr.org>
2761
2762 * avr-tdep.c (avr_push_dummy_code): Delete function.
2763 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2764
ea67f13b
DJ
27652003-06-19 Daniel Jacobowitz <drow@mvista.com>
2766
2767 * arch-utils.c (default_prepare_to_proceed): Remove.
2768 (generic_prepare_to_proceed): Remove.
2769 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2770 (generic_prepare_to_proceed): Remove prototype.
2771 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2772 * gdbarch.c: Regenerate.
2773 * gdbarch.h: Regenerate.
2774 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2775 * hppah-nat.c (hppa_switched_threads): Remove.
2776 * infrun.c (prepare_to_proceed): New static function, copied from
2777 generic_prepare_to_proceed. Remove select_it argument.
2778 (proceed): Call prepare_to_proceed.
2779 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2780 variables.
2781 (ptrace_wait): Don't set the removed variables.
2782 (hppa_switched_threads): Remove.
2783 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2784 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2785 (lin_lwp_prepare_to_proceed): Remove prototype.
2786 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2787 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2788
4add8633
TR
27892003-06-18 Theodore A. Roth <troth@openavr.org>
2790
2791 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2792 trad-frame.h.
2793 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2794 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2795 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2796 (AVR_PROLOGUE_*): Enumerate prologue types.
2797 (struct frame_extra_info): Remove.
2798 (struct avr_unwind_cache): Define.
2799 (avr_write_sp): Delete function.
2800 (avr_read_fp): Ditto.
2801 (avr_init_extra_frame_info): Ditto.
2802 (avr_pop_frame): Ditto.
2803 (avr_frame_saved_pc): Ditto.
2804 (avr_saved_pc_after_call): Ditto.
2805 (avr_push_return_address): Ditto.
2806 (avr_frame_chain): Ditto.
2807 (avr_store_struct_return): Ditto.
2808 (avr_push_arguments): Ditto.
2809 (avr_scan_prologue): Update comments. Changed to set up the info for
2810 cache unwinding. Now returns end of prologue PC.
2811 (avr_skip_prologue): Better handling of functions lacking a prologue
2812 by using avr_scan_prologue.
2813 (avr_scan_arg_moves): New function.
2814 (avr_saved_regs_unwinder): Ditto.
2815 (avr_frame_unwind_cache): Ditto.
2816 (avr_unwind_pc): Ditto.
2817 (avr_frame_this_id): Ditto.
2818 (avr_frame_prev_register): Ditto.
2819 (avr_frame_p): Ditto.
2820 (avr_frame_base_address ): Ditto.
2821 (avr_unwind_dummy_id): Ditto.
2822 (avr_push_dummy_code): Ditto.
2823 (push_stack_item): Ditto.
2824 (pop_stack_item): Ditto.
2825 (avr_push_dummy_call): Ditto.
2826 (struct stack_item): Define.
2827 (avr_frame_unwind): Declare structure.
2828 (avr_frame_base): Ditto.
2829 (avr_gdbarch_init): Remove calls to
2830 set_gdbarch_deprecated_init_frame_pc,
2831 set_gdbarch_deprecated_target_read_fp,
2832 set_gdbarch_deprecated_dummy_write_sp,
2833 set_gdbarch_deprecated_fp_regnum,
2834 set_gdbarch_deprecated_push_arguments,
2835 set_gdbarch_deprecated_push_return_address,
2836 set_gdbarch_deprecated_pop_frame,
2837 set_gdbarch_deprecated_store_struct_return,
2838 set_gdbarch_deprecated_frame_init_saved_regs,
2839 set_gdbarch_deprecated_init_extra_frame_info,
2840 set_gdbarch_deprecated_frame_chain,
2841 set_gdbarch_deprecated_frame_saved_pc,
2842 set_gdbarch_deprecated_saved_pc_after_call.
2843 Add calls to set_gdbarch_push_dummy_call,
2844 set_gdbarch_push_dummy_code,
2845 frame_unwind_append_predicate,
2846 frame_base_set_default,
2847 set_gdbarch_unwind_dummy_id,
2848 set_gdbarch_unwind_pc.
2849 Wrap a long line.
2850
7be04a68
MS
28512003-06-18 Corinna Vinschen <vinschen@redhat.com>
2852
2853 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2854 registers for H8/300S.
2855 (h8300_print_registers_info): Ditto.
8ffd9b1b 2856 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 2857
ae087d01
DJ
28582003-06-18 Daniel Jacobowitz <drow@mvista.com>
2859
2860 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2861 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2862 (lin_lwp_wait): Likewise. Update comments.
2863 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2864 (pull_pid_from_list, linux_record_stopped_pid): New.
2865
07d8f827
SC
28662003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2867
2868 * ada-lang.c (scan_discrim_bound): Name first argument.
2869 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2870 declared by ALL_BLOCK_SYMBOLS.
2871
7cb47b14
SC
28722003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2873
2874 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2875 ("regcache.h"): Include it.
2876 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2877
6ad8ae5c
DJ
28782003-06-17 Daniel Jacobowitz <drow@mvista.com>
2879
2880 * NEWS: Mention gdbserver detach change and "disconnect" command.
2881 * infcmd.c (disconnect_command): New function.
2882 (_initialize_infcmd): Add ``disconnect'' command.
2883 * remote.c (remote_async_detach): Delete.
2884 (remote_detach): Merge remote_async_detach.
2885 (remote_disconnect): New.
2886 (init_remote_ops): Set to_disconnect.
2887 (init_remote_cisco_ops): Likewise.
2888 (init_remote_async_ops): Likewise. Use remote_detach.
2889 * target.c (cleanup_target): Default to_disconnect.
2890 (update_current_target): Inherit to_disconnect.
2891 (target_disconnect, debug_to_disconnect): New functions.
2892 (setup_target_debug): Set to_disconnect.
2893 * target.h (struct target_ops): Add to_disconnect.
2894 (target_disconnect): Add prototype.
2895
687595f9
DJ
28962003-06-17 Daniel Jacobowitz <drow@mvista.com>
2897
2898 * breakpoint.c (insert_catchpoint): New function.
2899 (insert_breakpoints): Use catch_exceptions to call
2900 insert_catchpoint. Disable catchpoints if they fail to insert.
2901
29239a8f
DJ
29022003-06-17 Daniel Jacobowitz <drow@mvista.com>
2903
2904 * symfile.c (reread_symbols): Clear sym_private.
2905
2cdf3c63
AC
29062003-06-17 Andrew Cagney <cagney@redhat.com>
2907
2908 * trad-frame.h (struct frame_info): Add opaque declaration.
2909 * remote-fileio.h (struct cmd_list_element): Add opaque
2910 declaration.
2911 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2912 comments.
2913
cf0e1e0d
DJ
29142003-06-17 Daniel Jacobowitz <drow@mvista.com>
2915
2916 * remote.c (remote_prepare_to_store): Replace call to
2917 deprecated_read_register_bytes with multiple regcache_raw_read
2918 calls.
2919
192cdb19
KW
29202003-06-17 Kris Warkentin <kewarken@qnx.com>
2921
2922 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2923 (nto_find_and_open_solib): Likewise.
2924 (nto_init_solib_absolute_prefix): Likewise.
2925 (_initialize_nto_tdep): Fix indentation.
2926
89929b45
KW
29272003-06-17 Kris Warkentin <kewarken@qnx.com>
2928
2929 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2930
46019f27
KW
29312003-06-17 Kris Warkentin <kewarken@qnx.com>
2932
2933 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2934
1a38736e
JB
29352003-06-17 Jim Blandy <jimb@redhat.com>
2936
2937 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2938
3605c34a
TR
29392003-06-16 Theodore A. Roth <troth@openavr.org>
2940
2941 * avr-tdep.c (avr_extract_return_value): New function.
2942 (avr_gdbarch_init): Set extract_return_value method.
2943
870b3035
AC
29442003-06-16 Andrew Cagney <cagney@redhat.com>
2945
2946 * frame.h (deprecated_get_next_frame_hack): Declare.
2947 * frame.c (legacy_saved_regs_prev_register): Only require
2948 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2949 there are always saved regs.
2950 (deprecated_generic_get_saved_register): Do not require
2951 DEPRECATED_FRAME_INIT_SAVED_REGS.
2952 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2953 use frame ID unwind instead.
2954 (deprecated_get_next_frame_hack): New function.
2955
63d47a7d
CV
29562003-06-16 Corinna Vinschen <vinschen@redhat.com>
2957
2958 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2959 (h8300_push_dummy_call): ...this function. Some minor optimization.
2960 (h8300_push_return_address): Remove.
2961 (h8300_gdbarch_init): Remove calls to
2962 set_gdbarch_deprecated_dummy_write_sp,
2963 set_gdbarch_deprecated_push_arguments and
2964 set_gdbarch_deprecated_push_return_address.
2965 Add call to set_gdbarch_push_dummy_call.
2966
4bb1dc5e
CV
29672003-06-16 Corinna Vinschen <vinschen@redhat.com>
2968
2969 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2970 (E_PSEUDO_EXR_REGNUM): Ditto.
2971 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 2972 registers into safe registers.
4bb1dc5e
CV
2973 (h8300_skip_prologue): Check for stm instruction to push registers
2974 used for register variables onto stack.
2975 (gdb_print_insn_h8300): Remove.
2976 (h8300_examine_prologue): Add a comment.
2977 (h8300_register_name): Take pseudo registers into account.
2978 (h8300s_register_name): Ditto.
2979 (h8300sx_register_name): Ditto.
2980 (h8300_print_register): Ditto.
2981 (h8300_print_registers_info): Define "nice" printing order.
2982 (h8300_saved_pc_after_call): Take pseudo registers into account.
2983 (h8300_register_type): Ditto. Return type used for remote connection
2984 when requesting real CCR or EXR register, return actual type when
2985 requesting pseudo CCR or EXR.
2986 (h8300_pseudo_register_read): New function.
2987 (h8300_pseudo_register_write): Ditto.
2988 (h8300_dbg_reg_to_regnum): Ditto.
2989 (h8300s_dbg_reg_to_regnum): Ditto.
2990 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2991 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2992 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2993 set_gdbarch_print_insn architecture dependent.
2994 Call set_gdbarch_pseudo_register_read and
2995 set_gdbarch_pseudo_register_write.
2996 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2997
a59fe496
AC
29982003-06-16 Andrew Cagney <cagney@redhat.com>
2999
3000 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3001 * gdbarch.h, gdbarch.c: Re-generate.
3002 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3003 * s390-tdep.c (s390_gdbarch_init): Update.
3004 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3005 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3006 * mips-tdep.c (mips_gdbarch_init): Update.
3007 * mcore-tdep.c (mcore_gdbarch_init): Update.
3008 * cris-tdep.c (cris_gdbarch_init): Update.
3009 * infcall.c (call_function_by_hand): Update.
3010 * ia64-tdep.c (ia64_push_arguments): Update comment.
3011 * frame.c (legacy_get_prev_frame): Do not assume
3012 SAVE_DUMMY_FRAME_TOS_P.
3013 * dummy-frame.c (find_dummy_frame): Update comment.
3014
6f4e5a41
AC
30152003-06-16 Andrew Cagney <cagney@redhat.com>
3016
3017 * regcache.c (do_cooked_read): Do not use register_valid_p.
3018
72fab697
TR
30192003-06-15 Theodore A. Roth <troth@openavr.org>
3020
3021 * avr-tdep.c (avr_register_type): Remove a blank line.
3022 (avr_scan_prologue): Correct some comments.
3023
e3d8b004
TR
30242003-06-15 Theodore A. Roth <troth@openavr.org>
3025
3026 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3027 prologue types.
8ffd9b1b 3028 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
3029 option.
3030 Add code to scan -mcall-prologues for mega devices.
3031
866b76ea
TR
30322003-06-15 Theodore A. Roth <troth@openavr.org>
3033
3034 * avr-tdep.c (avr_register_byte): Delete function.
3035 (avr_register_raw_size): Delete function.
3036 (avr_register_virtual_size): Delete function.
3037 (avr_register_virtual_type): Delete function.
3038 (avr_register_type): New function.
3039 (avr_address_to_pointer): Remove unused code.
3040 (avr_read_fp): Need to read FP as two separate bytes due to change to
3041 avr_register_type() usage.
3042 (avr_gdbarch_init): Don't set deprecated_register_size.
3043 Don't set deprecated_register_bytes.
3044 Don't set deprecated_register_byte.
3045 Don't set deprecated_register_raw_size.
3046 Don't set deprecated_max_register_raw_size.
3047 Don't set deprecated_register_virtual_size.
3048 Don't set deprecated_max_register_virtual_size.
3049 Don't set deprecated_register_virtual_type.
3050 Set register_type method.
3051
3993f6b1
DJ
30522003-06-15 Daniel Jacobowitz <drow@mvista.com>
3053
3054 * Makefile.in (linux-nat.o): Add rule.
3055 * linux-nat.c: New file.
3056 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3057 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3058 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3059 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3060 * config/arm/linux.mh (NATDEPFILES): Likewise.
3061 * config/i386/linux.mh (NATDEPFILES): Likewise.
3062 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3063 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3064 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3065 * config/mips/linux.mh (NATDEPFILES): Likewise.
3066 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3067 * config/s390/s390.mh (NATDEPFILES): Likewise.
3068 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3069
786a90bb
MK
30702003-06-15 Mark Kettenis <kettenis@gnu.org>
3071
3072 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3073 replace out-of-date comment.
3074
3bd3f01e
AC
30752003-06-15 Andrew Cagney <cagney@redhat.com>
3076
3077 * rdi-share/host.h (Fail): Change to a varargs function.
3078 * remote-rdi.c (Fail): Update.
8ffd9b1b 3079
de5b9bb9
MK
30802003-06-15 Mark Kettenis <kettenis@gnu.org>
3081
3082 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3083 (i386_convert_register_p, i386_register_to_value,
3084 i386_register_from_value): Handle types longer than 8 bytes.
3085
d532c08f
MK
30862003-06-15 Mark Kettenis <kettenis@gnu.org>
3087
3088 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3089 Move floating-point code to new function in i387-tdep.c.
3090 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3091 New functions containing code moved here from i386-tdep.c.
3092 * i387-tdep.h: Add opaque declaration for `struct type'.
3093 (i387_register_to_value, i387_value_to_register): New prototypes.
3094 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3095 (x86_64_init_abi): Set convert_register_p, register_to_value and
3096 value_to_register here.
8ffd9b1b 3097
42c466d7
AC
30982003-06-14 Andrew Cagney <cagney@redhat.com>
3099
3100 * mips-tdep.c (mips_register_to_value): Make static.
3101 (mips_value_to_register): Make static.
3102 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3103 * ia64-tdep.c (ia64_register_raw_size): Make static.
3104 (ia64_register_virtual_size): Make static.
3105 (ia64_register_byte): Make static.
3106 * i387-tdep.c: Include "i387-tdep.h".
3107 (print_387_control_word): Delete function.
3108 (print_387_status_word): Delete function.
3109 (print_387_status_bits): Delete function.
3110 (print_387_control_bits): Delete function.
3111 * Makefile.in (i387-tdep.o): Update dependencies.
3112 * rdi-share/host.h (Fail): Declare.
3113 * remote-rdi.c (Fail): Update to match declaration.
3114
2a9cda49
AC
31152003-06-14 Andrew Cagney <cagney@redhat.com>
3116
3117 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3118 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3119 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3120 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3121 * README: Delete reference to remote-array.
3122 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3123 (remote-array.o): Delete target.
3124 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3125 * remote-array.c: Delete file.
3126
ff2e87ac
AC
31272003-06-14 Andrew Cagney <cagney@redhat.com>
3128 Mark Kettenis <kettenis@gnu.org>
3129
3130 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3131 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3132 parameter with "frame".
3133 * gdbarch.h, gdbarch.c: Re-generate.
3134 * frame.h (put_frame_register): Declare.
3135 * frame.c (put_frame_register): New function.
3136 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3137 (legacy_register_to_value): Rewrite, use "frame" to get the
3138 register value.
3139 (legacy_value_to_register): Rewrite, use "frame" to find the
3140 register's location before storing.
3141 * arch-utils.h (legacy_convert_register_p): Update.
3142 (legacy_register_to_value, legacy_value_to_register): Update.
3143 * findvar.c (value_from_register): Rewrite, eliminate use of
3144 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3145 "frame" to REGISTER_TO_VALUE.
3146 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3147 lval_reg_frame_relative + lval_register branch of the switch. Do
3148 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3149 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3150 I386_EDI_REGNUM): New defines.
3151 (i386_next_regnum, i386_convert_register_p,
3152 i386_register_to_value, i386_value_to_register): New functions.
3153 (i386_register_convertible, i386_register_convert_to_virtual,
3154 i386_convert_to_raw): Remove functions.
3155 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3156 value_to_register instead of register_convertible,
3157 register_convert_to_virtual and register_convert_to_raw.
3158 * mips-tdep.c (mips_convert_register_p): New function.
3159 (mips_value_to_register): Replace mips_register_convert_from_type.
3160 (mips_register_to_value): Replace mips_register_convert_to_type.
3161 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3162 register_to_value.
3163 * alpha-tdep.c (alpha_convert_register_p): Update.
3164 (alpha_value_to_register): Update, store the register.
3165 (alpha_register_to_value): Update, fetch the register.
3166
98be1e77
TR
31672003-06-14 Theodore A. Roth <troth@openavr.org>
3168
3169 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3170 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3171 Don't set deprecated_call_dummy_words.
3172 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3173 Don't set remote_translate_xfer_address.
3174 (avr_io_reg_read_command): Remove commented out debug printf.
3175 Wrap a long line.
3176
57bc6122
TR
31772003-06-14 Theodore A. Roth <troth@openavr.org>
3178
3179 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3180 causes gdb to seg fault.
3181
eb01fc62
DJ
31822003-06-14 Daniel Jacobowitz <drow@mvista.com>
3183
3184 * sparc-nat.c (fetch_inferior_registers): Correct
3185 a reference to "registers".
3186
3b3e6bee
DJ
31872003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3188
3189 * Makefile.in (exc_request_U_h): Define
3190 (exc_request_S_h): Likewise.
3191 (msg_reply_S_h): Likewise.
3192 (msg_U_h): Likewise.
3193 (notify_S_h): Likewise.
3194 (process_reply_S_h): Likewise.
3195 (gnu-nat.o): Depend on gdb_obstack_h
3196 * gnu-nat.c: Include "gdb_obstack.h".
3197
b8de8283
AC
31982003-06-13 Andrew Cagney <cagney@redhat.com>
3199
3200 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3201 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 3202
f3be58bc
AC
32032003-06-13 Andrew Cagney <cagney@redhat.com>
3204
3205 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3206 when deprecated REGISTER macros can be deleted.
3207 * gdbarch.h, gdbarch.c: Re-generate.
3208
4c0122c8
JB
32092003-06-13 Jim Blandy <jimb@redhat.com>
3210
3211 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3212 Linux entry point symbols for _dl_debug_state, too.
3213
3e210248
AC
32142003-06-13 Andrew Cagney <cagney@redhat.com>
3215
3216 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3217 available, do not use the FP register, and always save the TOS.
3218 * dummy-frame.c (dummy_frame_this_id): Do not assert
3219 SAVE_DUMMY_FRAME_TOS.
3220 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3221 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3222 (i386_push_dummy_call): Add 8 to the returned SP.
3223 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3224 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3225 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3226 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3227 (x86_64_push_dummy_call): Return "sp + 16".
3228 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3229 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3230 save_dummy_frame_tos.
3231
0b65af49
JB
32322003-06-13 Jim Blandy <jimb@redhat.com>
3233
3234 * frv-tdep.c (frv_use_struct_convention): Delete static
3235 declaration for function deleted in my change of 2003-06-12.
3236
4ea2465e
TR
32372003-06-13 Theodore A. Roth <troth@openavr.org>
3238
3239 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3240 (avr_pointer_to_address): Shift code addrs left 1 bit.
3241 (avr_convert_from_func_ptr_addr): Delete function since operation is
3242 better handled by avr_address_to_pointer and avr_pointer_to_address.
3243 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3244
1581182a
MK
32452003-06-13 Mark Kettenis <kettenis@gnu.org>
3246
3247 From Kelley Cook <kelleycook@wideopenwest.com>:
3248 * configure.host: Accept i[34567]86 variants.
3249 * configure.tgt: Likewise.
3250 * nlm/configure.in: Likewise.
3251 * nlm/configure: Regenerated.
3252
7aa1783e
RE
32532003-06-13 Richard Earnshaw <rearnsha@arm.com>
3254
3255 * arm-tdep.c (solib-svr4.h): Dont' include it.
3256 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3257 * arm-linux-tdep.c: ... here. Make static.
3258 (arm_linux_init_abi): Register it.
3259 (solib-svr4.h): Include it.
3260 * Makefile.in: Update dependencies.
3261 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3262 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3263
0261a0d0
CV
32642003-06-13 Corinna Vinschen <vinschen@redhat.com>
3265
3266 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3267 indicate registers used for return values.
3268 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3269 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3270 members.
3271 (h8300_init_extra_frame_info): Ditto.
3272 (h8300_frame_locals_address): Removed.
3273 (h8300_frame_args_address): Removed.
3274 (h8300_extract_return_value): Use new regcache structure. Only care
3275 for 16 bit CPUs.
3276 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3277 (h8300_store_return_value): Use new regcache structure. Only care
3278 for 16 bit CPUs.
3279 (h8300h_store_return_value): Same function for 32 bit CPUs.
3280 (h8300_store_struct_return): Removed.
3281 (h8300_extract_struct_value_address): Use new regcache structure.
3282 (h8300h_extract_struct_value_address): Removed.
3283 (h8300_push_dummy_code): New function.
3284 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3285 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3286 set_gdbarch_store_return_value architecture dependent.
3287 Call set_gdbarch_push_dummy_code and
3288 set_gdbarch_extract_struct_value_address.
3289 Remove calls to set_gdbarch_frame_args_address,
3290 set_gdbarch_frame_locals_address,
3291 set_gdbarch_deprecated_store_struct_return,
3292 set_gdbarch_deprecated_extract_return_value,
3293 set_gdbarch_deprecated_extract_struct_value_address,
3294 set_gdbarch_deprecated_call_dummy_words and
3295 set_gdbarch_deprecated_sizeof_call_dummy_words.
3296
055c394a
CV
32972003-06-13 Corinna Vinschen <vinschen@redhat.com>
3298
3299 * h8300-tdep.c (h8300_register_byte): Remove.
3300 (h8300h_register_byte): Remove.
3301 (h8300_register_virtual_type): Remove. Substitute by...
3302 (h8300_register_type): New function.
3303 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3304 (h8300h_extract_struct_value_address): Ditto.
3305 (h8300_gdbarch_init): Drop calls to
3306 set_gdbarch_deprecated_register_byte and
3307 set_gdbarch_deprecated_register_virtual_type.
3308 Add call to set_gdbarch_register_type.
3309
9c04cab7
AC
33102003-06-13 Andrew Cagney <cagney@redhat.com>
3311
3312 * gdbarch.sh: Update comments on registers.
3313 (deprecated_register_byte): Rename register_byte.
3314 (deprecated_register_raw_size): Rename register_raw_size.
3315 (deprecated_register_virtual_size): Rename register_virtual_size.
3316 (deprecated_register_virtual_type): Rename register_virtual_type.
3317 * gdbarch.h, gdbarch.c: Re-generate.
3318 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3319 * vax-tdep.c (vax_gdbarch_init): Update.
3320 * v850-tdep.c (v850_gdbarch_init): Update.
3321 * sparc-tdep.c (sparc_gdbarch_init): Update.
3322 * sh-tdep.c (sh_gdbarch_init): Update.
3323 * s390-tdep.c (s390_gdbarch_init): Update.
3324 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3325 * ns32k-tdep.c: Update.
3326 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3327 * mips-tdep.c (mips_gdbarch_init): Update.
3328 * mcore-tdep.c (mcore_gdbarch_init): Update.
3329 * m68k-tdep.c (m68k_gdbarch_init): Update.
3330 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3331 * ia64-tdep.c (ia64_gdbarch_init): Update.
3332 * hppa-tdep.c (hppa_gdbarch_init): Update.
3333 * h8300-tdep.c (h8300_gdbarch_init): Update.
3334 * frv-tdep.c (frv_gdbarch_init): Update.
3335 * cris-tdep.c (cris_gdbarch_init): Update.
3336 * avr-tdep.c (avr_gdbarch_init): Update.
3337 * alpha-tdep.c (alpha_gdbarch_init): Update.
3338 * arm-tdep.c (arm_gdbarch_init): Update.
3339
b060cbea
AC
33402003-06-13 Andrew Cagney <cagney@redhat.com>
3341
3342 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3343 mips_o32_use_struct_convention with always_use_struct_convention.
3344
0fc9922a
DC
33452003-06-12 David Carlton <carlton@kealia.com>
3346
3347 * cp-namespace.c (cp_set_block_scope): Comment out
3348 processing_has_namespace_info branch.
3349
1fd35568
JB
33502003-06-12 Jim Blandy <jimb@redhat.com>
3351
f470a70a
JB
3352 Recognize and skip 64-bit PowerPC Linux linkage functions.
3353 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3354 insn_pattern, insns_match_pattern, d_field, ds_field): New
3355 functions, macros, and types for working with PPC instructions.
3356 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3357 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3358 ppc64_skip_trampoline_code): New functions, variables, and macros
3359 for recognizing and skipping linkage functions.
3360 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3361 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3362
49ff75ad
JB
3363 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3364 register offsets for both the 32- and 64-bit interfaces.
3365
bd918c83
JB
3366 Actually finish the job started by my change of 2003-05-29.
3367 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3368 other #definition of this.
3369 (ppc_linux_skip_trampoline_code): Remove declaration.
3370 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3371 static.
3372 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3373 method for GDBARCH.
3374
3375 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3376 'long' on ppc64-*-linux*.
3377
f8c59253
JB
3378 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3379 isn't #defined, assume the register doesn't exist: act as if
3380 tdep->ppc_mq_regnum were -1.
3381
8fbb30b1
JB
3382 * configure.host, configure.tgt: Add entries for
3383 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3384 powerpc/linux.mt.
3385 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3386 New files.
3387
1fd35568
JB
3388 * arch-utils.c (always_use_struct_convention): New function.
3389 * arch-utils.h (always_use_struct_convention): New prototype.
3390 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3391 (alpha_gdbarch_init): Register always_use_struct_convention,
3392 instead of alpha_use_struct_convention.
3393 * cris-tdep.c (cris_use_struct_convention): Delete.
3394 (cris_gdbarch_init): Register always_use_struct_convention,
3395 instead of cris_use_struct_convention.
3396 * frv-tdep.c (frv_use_struct_convention): Delete.
3397 (frv_gdbarch_init): Register always_use_struct_convention,
3398 instead of frv_use_struct_convention.
3399 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3400 (h8300_gdbarch_init): Register always_use_struct_convention,
3401 instead of h8300_use_struct_convention.
e3305dd9 3402 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
3403 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3404 instead of mips_o32_use_struct_convention.
3405
e14e6e9c
AC
34062003-06-12 Andrew Cagney <cagney@redhat.com>
3407
3408 * wince.c: Include "mips-tdep.h".
3409 * mips-tdep.h (mips_next_pc): Declare.
3410 * mcore-tdep.c: Make more local functions static.
3411 * Makefile.in (wince.o): Update dependencies.
3412
2335f48e
DC
34132003-06-12 David Carlton <carlton@kealia.com>
3414
3415 * symtab.c (lookup_symbol_aux_minsyms): Replace
3416 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3417 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3418 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3419 SYMBOL_NATURAL_NAME.
3420
f70a7d61
AS
34212003-06-12 Andreas Schwab <schwab@suse.de>
3422
3423 * Makefile.in (tuiDisassem.o): Update dependencies.
3424
b6429628
DC
34252003-06-12 David Carlton <carlton@bactrian.org>
3426
3427 * symtab.h: Delete declaration of make_symbol_overload_list.
3428 Add declaration of lookup_partial_symbol.
3429 * symtab.c (remove_params): Move to cp-support.c.
3430 (overload_list_add_symbol, make_symbol_overload_list)
3431 (sym_return_val_size, sym_return_val_index): Ditto.
3432 (lookup_partial_symbol): Make extern.
3433 * cp-support.h: Add declaration of make_symbol_overload_list.
3434 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3435 symtab.h, and block.h.
3436 (remove_params): Move here from symtab.c.
3437 (overload_list_add_symbol, make_symbol_overload_list)
3438 (sym_return_val_size, sym_return_val_index): Ditto.
3439 * valops.c: Include cp-support.h.
3440 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3441 frame_h, and block_h.
3442 (valops.o): Depend on cp_support_h.
3443
084edea5
CV
34442003-06-12 Corinna Vinschen <vinschen@redhat.com>
3445
3446 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3447 substitute by NUM_REGS throughout.
3448 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3449 (h8300s_register_name): New function for H8S registers.
3450 (h8300sx_register_name): Ditto for H8SX registers.
3451 (h8300_print_register): Revise register printing, avoid depending
3452 on 32 bit long.
0261a0d0 3453 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
3454 (h8300h_register_byte): New function for any other architecture.
3455 (h8300_register_raw_size): Remove.
3456 (h8300_register_virtual_type): Revise to return actually useful
3457 type.
3458 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3459 (h8300h_extract_struct_value_address): New function for any other
3460 architecture.
3461 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3462 set_gdbarch_register_name, set_gdbarch_register_byte,
3463 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3464 Remove calls to set_gdbarch_deprecated_register_size,
3465 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3466 set_gdbarch_deprecated_max_register_raw_size,
3467 set_gdbarch_register_virtual_size and
3468 set_gdbarch_deprecated_max_register_virtual_size entirely.
3469 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3470 set_gdbarch_long_double_bit.
3471
06194148
JJ
34722003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3473
8ffd9b1b
AJ
3474 * doublest.c (convert_doublest_to_floatformat): When dealing
3475 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
3476 processing a full 32 bits of mantissa.
3477
de4f826b
DC
34782003-06-11 David Carlton <carlton@bactrian.org>
3479
3480 * dictionary.h: New.
3481 * dictionary.c: New.
3482 * block.h: Add opaque declaration for struct dictionary.
3483 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3484 'sym' members.
3485 (BLOCK_DICT): New macro.
3486 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3487 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3488 BLOCK_SHOULD_SORT.
3489 (ALL_BLOCK_SYMBOLS): Update definition.
3490 * Makefile.in (SFILES): Add dictionary.c.
3491 (dictionary_h): New.
3492 (COMMON_OBS): Add dictionary.o.
3493 (dictionary.o): New.
3494 (ada-lang.o): Depend on dictionary_h.
3495 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3496 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3497 (mi-cmd-stack.o): Ditto.
3498 (gdbtk-cmds.o): Update dependencies.
3499 (gdbtk-stack.o): Ditto.
3500 * ada-lang.c: Include dictionary.h.
3501 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3502 (fill_in_ada_prototype, debug_print_block): Ditto.
3503 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3504 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3505 'is_sorted'.
3506 * mdebugread.c: Include dictionary.h.
3507 (struct parse_stack): Delete 'maxsyms' member.
3508 (parse_symbol): Update calls to new_block. Delete calls to
3509 shrink_block. Use dictionary methods.
3510 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3511 Update calls to new_symtab. Don't maintain maxsyms data.
3512 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3513 (add_symbol): Just call dict_add_symbol.
3514 (new_symtab): Delete 'maxsyms' argument.
3515 (new_symtab): Update calls to new_block.
3516 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3517 (shrink_block): Delete function.
3518 (fixup_sigtramp): Update call to new_block. Add symbol via
3519 dict_add_symbol.
3520 * jv-lang.c: Include dictionary.h.
3521 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3522 appropriately. Set class_symtab->free_func. Make sure the
3523 blockvector is big enough to hold two blocks.
3524 (add_class_symtab_symbol): Use dictionary methods.
3525 (free_class_block): New function.
3526 (type_from_class): Replace explicit iteration by
3527 ALL_BLOCK_SYMBOLS.
3528 * symtab.h (struct symtab): Replace 'free_ptr' method by
3529 'free_func'.
3530 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3531 sort_symtab_syms.
3532 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3533 sort_symtab_syms.
3534 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3535 Include dictionary.h.
3536 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3537 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3538 sort_symtab_syms.
3539 * objfiles.c: Include dictionary.h.
3540 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3541 * buildsym.c: Include dictionary.h.
3542 (finish_block): Use dictionary methods.
3543 (end_symtab): Set free_func to NULL, not free_ptr.
3544 * tracepoint.c: Include dictionary.h.
3545 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3546 (scope_info): Ditto.
3547 * stack.c: Include dictionary.h.
3548 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3549 (print_block_frame_labels, print_frame_arg_vars)
3550 (print_frame_args): Ditto.
3551 * symmisc.c (free_symtab_block): Use dictionary methods.
3552 (dump_symtab): Ditto.
3553 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3554 Include dictionary.h.
3555 * symfile.h: Delete declarations of sort_block_syms,
3556 sort_symtab_syms.
3557 * symfile.c (sort_block_syms): Delete.
3558 (sort_symtab_syms): Delete.
3559 * symtab.c: Include dictionary.h.
3560 (lookup_block_symbol): Use dictionary iterators.
3561 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3562 (search_symbols, make_symbol_completion_list): Ditto.
3563 (make_symbol_overload_list): Ditto.
3564 * valops.c (value_of_local): Use dict_empty.
3565 Include dictionary.h.
3566
a31f978c
JB
35672003-06-11 J. Brobecker <brobecker@gnat.com>
3568
3569 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3570
526e70c0
DC
35712003-06-11 David Carlton <carlton@bactrian.org>
3572
3573 * block.h (BLOCK_SHOULD_SORT): Delete.
3574 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3575 blocks.
3576 * ada-lang.c (ada_add_block_symbols): Ditto.
3577 * symfile.c (sort_block_syms): Delete.
3578 (sort_symtab_syms): Ditto.
3579 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3580 declarations.
3581 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3582 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3583 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3584 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3585 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3586 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3587 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3588
33c08150
JJ
35892003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3590
8ffd9b1b 3591 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
3592 bits to 128.
3593
781a750d
AC
35942003-06-11 Andrew Cagney <cagney@redhat.com>
3595
3596 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3597 REGISTER_CONVERTIBLE.
3598 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3599 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3600 * gdbarch.h, gdbarch.c: Re-generate.
3601 * arch-utils.h (deprecated_register_convertible_not): Rename
3602 generic_register_convertible_not.
3603 * arch-utils.c (deprecated_register_convertible_not): Rename
3604 generic_register_convertible.
3605 (legacy_convert_register_p, legacy_register_to_value): Update.
3606 * sh-tdep.c (sh64_push_arguments): Update.
3607 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3608 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3609 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3610 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3611 * arch-utils.c (legacy_value_to_register): Update.
3612 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3613 (rs6000_register_convert_to_raw): Make parameter "from" const.
3614 * mips-tdep.c (mips_gdbarch_init): Update.
3615 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3616 * infcmd.c (default_print_registers_info): Update.
3617 * ia64-tdep.c (ia64_gdbarch_init): Update.
3618 (ia64_register_convert_to_raw): Make parameter "from" const.
3619 * i386-tdep.c (i386_gdbarch_init): Update.
3620 (i386_register_convert_to_raw): Update.
3621
cd90e54f
AC
36222003-06-11 Andrew Cagney <cagney@redhat.com>
3623
3624 * remote-fileio.c: Include "remote-fileio.h".
3625 * Makefile.in (remote-fileio.o): Update dependencies.
3626 (remote_fileio_h): Fix typo.
3627
a78f21af
AC
36282003-06-11 Andrew Cagney <cagney@redhat.com>
3629
3630 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3631 (xstormy16_save_dummy_frame_tos): Make static.
3632 (_initialize_xstormy16_tdep): Add declaration.
3633 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3634 * v850-tdep.c: Make local functions static.
3635 (_initialize_v850_tdep): Add declaration.
3636 * sparc-tdep.c: Make local functions static.
3637 (_initialize_sparc_tdep): Add declaration.
3638 * sh-tdep.c: Make local functions static.
3639 (_initialize_sh_tdep): Add declaration.
3640 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3641 * s390-tdep.c: Make local functions static.
3642 (_initialize_s390_tdep): Add declaration.
3643 * dbxread.c (find_stab_function_addr): Make static.
3644 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3645 * ocd.c (_initialize_remote_ocd): Add declaration.
3646 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3647 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3648 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3649 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3650 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3651 * remote-array.c (_initialize_array): Add declaration.
3652 (_initialize_remote_monitors): Add declaration.
3653 * remote-mips.c: Make local functions static.
3654 (_initialize_remote_mips): Add declaration.
3655 * mcore-tdep.c: Make all local functions static.
3656 (_initialize_mcore_tdep): Add declaration.
3657 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3658 * abug-rom.c (_initialize_abug_rom): Add declaration.
3659 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3660 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3661 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3662 * remote-est.c (_initialize_est): Add declaration.
3663 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3664 (m68hc11_call_dummy_address): Make static.
3665 * ia64-tdep.c: Make local functions static.
3666 (_initialize_ia64_tdep): Add declaration.
3667 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3668 * monitor.c (monitor_wait_filter): Make static.
3669 (_initialize_remote_monitors): Add declaration.
3670 * remote-hms.c (_initialize_remote_hms): Add declaration.
3671 * remote-e7000.c (fetch_regs_from_dump): Make static.
3672 (expect_n): Make static.
3673 (_initialize_remote_e7000): Add declaration.
3674 * ser-e7kpc.c: Always include "defs.h".
3675 (_initialize_ser_e7000pc): Add declaration.
3676 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3677 * cris-tdep.c: Make all but one function static.
3678 (_initialize_cris_tdep): Add declaration.
3679 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3680 * solib.c (update_solib_list): Make static.
3681 (_initialize_solib): Add declaration.
3682 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3683 (_initialize_avr_tdep): Add declaration.
3684 * remote-rdi.c (voiddummy): Make static.
3685 (_initialize_remote_rdi): Add declaration.
3686 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3687 * remote-rdp.c (send_rdp): Make static.
3688 (_initialize_remote_rdp): Add declaration.
3689 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3690
cbcdb1f5
CV
36912003-06-11 Corinna Vinschen <vinschen@redhat.com>
3692
3693 * remote-fileio.c: Make ari happy.
3694
a191ea8d
JB
36952003-06-10 J. Brobecker <brobecker@gnat.com>
3696
3697 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3698 fetching the trailing bytes of the buffer we are about to write.
3699
0ef75e11
AC
37002003-06-10 Andrew Cagney <cagney@redhat.com>
3701
3702 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3703 * Makefile.in (remote-fileio.o): Update dependencies.
3704 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3705 include <setjmp.h>, or <sys/types.h> conditional on USG.
3706 (remote_fio_jmp_buf): Delete global variable.
3707
449092f6 37082003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 3709 Martin M. Hunt <hunt@redhat.com>
449092f6 3710
559fa028
AC
3711 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3712 (SFILES): Add remote-fileio.c.
3713 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3714 dependencies for building remote.o.
449092f6
CV
3715 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3716 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 3717 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
3718 static storage class.
3719 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3720 'F' packet.
3721 (_initialize_remote): Call initialize_remote_fileio().
3722 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
3723 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3724 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3725 (captured_main): Initialize new ui_files.
3726 * ui-file.c: Add read and fgets input functions.
3727 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3728 (null_file_read): New function.
3729 (ui_file_read): New function.
3730 (set_ui_file_read): New function.
3731 (stdio_file_read): New function.
3732 * ui-file.h: New type ui_file_read_ftype.
3733 (set_ui_file_read): Declare.
3734 (ui_file_read): Declare.
3735
248de703
AC
37362003-06-09 Andrew Cagney <cagney@redhat.com>
3737
3738 * frame.h (deprecated_unwind_get_saved_register): Rename
3739 generic_unwind_get_saved_register, update comments.
3740 * mips-tdep.c (mips_get_saved_register): Update.
3741 * frame.c (deprecated_unwind_get_saved_register): Update.
3742
0ed8aa57
AC
37432003-06-09 Andrew Cagney <cagney@redhat.com>
3744
3745 * vax-tdep.c (vax_frame_locals_address): Delete function.
3746 (vax_gdbarch_init): Do not set frame_locals_address.
3747 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3748 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3749 * s390-tdep.c (s390_frame_args_address): Delete function.
3750 (s390_gdbarch_init): Do not set frame_args_address or
3751 frame_locals_address.
3752 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3753 (ns32k_gdbarch_init): Do not set frame_locals_address.
3754 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3755 (hppa_frame_locals_address): Delete function.
3756 (hppa_gdbarch_init): Do not set frame_args_address, or
3757 frame_locals_address.
3758 * arm-tdep.c (arm_frame_args_address): Delete.
3759 (arm_frame_locals_address): Delete.
3760 (arm_gdbarch_init): Do not set frame_args_address, or
3761 frame_locals_address.
3762
983a287a
AC
37632003-06-09 Andrew Cagney <cagney@redhat.com>
3764
3765 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3766 * gdbarch.h, gdbarch.c: Re-generate.
3767 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3768 * arch-utils.c (frame_num_args_unknown): Delete function.
3769 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3770 (frame_info): Use FRAME_NUM_ARGS_P.
3771 * arm-tdep.c (arm_frame_num_args): Delete function.
3772 (arm_gdbarch_init): Do not set frame_num_args.
3773 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3774 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3775 (hppa_gdbarch_init): Do not set frame_num_args.
3776 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3777 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3778 frame_num_args to default frame_num_args_unknown.
3779 * v850-tdep.c (v850_gdbarch_init): Ditto.
3780 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3781 * sh-tdep.c (sh_gdbarch_init): Ditto.
3782 * s390-tdep.c (s390_gdbarch_init): Ditto.
3783 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3784 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3785 * mips-tdep.c (mips_gdbarch_init): Ditto.
3786 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3787 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3788 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3789 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3790 * i386-tdep.c (i386_gdbarch_init): Ditto.
3791 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3792 * frv-tdep.c (frv_gdbarch_init): Ditto.
3793 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3794 * cris-tdep.c (cris_gdbarch_init): Ditto.
3795 * avr-tdep.c (avr_gdbarch_init): Ditto.
3796 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3797
8d3b0994
AC
37982003-06-09 Andrew Cagney <cagney@redhat.com>
3799
3800 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3801 (print_frame_args): Moved to "stack.c".
3802 * stack.c: Include "gdb_assert.h".
3803 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3804 (print_frame_args): Moved from "printcmd.c".
3805 * frame.h (print_frame_args): Delete declaration.
3806 * Makefile.in (stack.o): Update dependencies.
3807
25e3a86b
AC
38082003-06-08 Andrew Cagney <cagney@redhat.com>
3809
3810 * frame.c (get_prev_frame): Remove reference to
3811 frame_args_address_correct in comments.
3812 * frame-base.c (default_frame_args_address): Delete code
3813 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3814 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3815 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3816 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3817 (vax_frame_args_address_correct): Delete declaration.
3818
a9e5fdc2
AC
38192003-06-08 Andrew Cagney <cagney@redhat.com>
3820
3821 * gdbarch.sh (UNWIND_SP): Add.
3822 * gdbarch.h, gdbarch.c: Re-generate.
3823 * frame.c (frame_sp_unwind): New function.
3824 (get_frame_sp): New function.
3825 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3826 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3827 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3828 value.
3829 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3830 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3831
8983bd83
AC
38322003-06-08 Andrew Cagney <cagney@redhat.com>
3833
7fec2c59
AC
3834 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3835 REMOTE_BREAKPOINT.
3836 * remote.c: Update.
3837 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3838 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3839 * config/m68k/tm-sun3.h: Update.
3840 * config/m68k/tm-m68klynx.h: Update.
3841 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3842
8983bd83
AC
3843 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3844 trad_frame". Update comments.
3845 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3846 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3847 (trad_frame_register_value, trad_frame_prev_register): Update.
3848
b9362cc7
AC
38492003-06-08 Andrew Cagney <cagney@redhat.com>
3850
3851 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3852 from GCC's acinclude.m4.
3853 * configure.in: Check for getopt's delcaration.
8ffd9b1b 3854 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
3855 * main.c (error_init): Delete declaration.
3856 * defs.h (error_init): Declare.
3857 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3858 (rs6000_convert_from_func_ptr_addr): Make static.
3859 (_initialize_rs6000_tdep): Add declaration.
3860 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3861 (show_commands, set_verbose, show_history): Delete declaration.
3862 * top.h (set_verbose): Add declaration.
3863 (show_history, set_history, show_commands): Add declaration.
3864 (do_restore_instream_cleanup): Add declaration.
3865 * objc-lang.c (specialcmp): Make static.
3866 (print_object_command): Make static.
3867 (find_objc_msgsend): Make static.
3868 (find_objc_msgcall_submethod_helper): Make static.
3869 (find_objc_msgcall_submethod): Make static.
3870 (_initialize_objc_language): Add declaration.
3871 (find_implementation_from_class): Make static.
3872 (find_implementation): Make static.
3873 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3874 * objc-lang.h (lookup_struct_typedef): Add declaration.
3875 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3876 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3877 (do_restore_user_call_depth): Make static.
3878 (do_restore_instream_cleanup): Delete declaration.
3879 (dont_repeat): Delete declaration.
3880 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3881 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3882 * reggroups.c (_initialize_reggroup): Add declaration.
3883 * cp-support.c (_initialize_cp_support): Add declaration.
3884 * cp-abi.c (_initialize_cp_abi): Add declaration.
3885 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3886 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3887 (_initialize_gnu_v3_abi): Add declaration.
3888 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3889 (_initialize_gnu_v2_abi): Add declaration.
3890 * frame-base.c (_initialize_frame_base): Add declaration.
3891 * doublest.c (floatformat_from_length): Make static.
3892 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3893 * frame.c (create_sentinel_frame): Make static.
3894 (_initialize_frame): Add declaration.
3895 * top.c (do_catch_errors): Make static.
3896 (gdb_rl_operate_and_get_next_completion): Make static.
3897 * typeprint.c: Include "typeprint.h".
3898 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3899 (sentinel_frame_this_id): Make static.
3900 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3901 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3902 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3903 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3904 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3905 * maint.c (maintenance_print_architecture): Make static.
3906 * signals/signals.c (_initialize_signals): Add declaration.
3907 * std-regs.c (_initialize_frame_reg): Add declaration.
3908 * jv-exp.y (push_variable): ISO C definition.
3909 (push_qualified_expression_name): Ditto.
3910 * memattr.c (_initialize_mem): Add declaration.
3911 * remote.c (remote_check_watch_resources): Make static.
3912 (remote_stopped_by_watchpoint): Make static.
3913 (remote_stopped_data_address): Make static.
3914 * d10v-tdep.c (nr_dmap_regs): Make static.
3915 (a0_regnum): Make static.
3916 (d10v_frame_unwind_cache): Make static.
3917 (d10v_frame_p): Make static.
3918 * osabi.c (show_osabi): Make static.
3919 (_initialize_gdb_osabi): Add extern declaration.
3920 * gdbtypes.c (make_qualified_type): Make static.
3921 (safe_parse_type): Make static.
3922 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3923 * macrotab.c (macro_bcache_free): Make static.
3924 * interps.c (interp_set_quiet): Make static.
3925 (interpreter_exec_cmd): Make static.
3926 * stack.h (select_frame_command): New file.
3927 * stack.c: Include "stack.h".
3928 (select_frame_command_wrapper): Delete function.
3929 (select_frame_command): Make global.
3930 * infcall.c: Include "infcall.h".
3931 * linespec.c: Include "linespec.h".
3932 * symfile.c (sections_overlap): Make static.
3933 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3934 * charset.c (_initialize_charset): Add missing prototype.
3935 * regcache.c (init_legacy_regcache_descr): Make static.
3936 (do_regcache_xfree): Make static.
3937 (regcache_xfer_part): Make static.
3938 (_initialize_regcache): Add missing prototype.
3939 * breakpoint.c (parse_breakpoint_sals): Make static.
3940 (breakpoint_sals_to_pc): Make static.
3941 * interps.h (clear_interpreter_hooks): ISO C declaration.
3942 * Makefile.in (stack_h): Define.
3943 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3944 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3945
a0f267c7
AC
39462003-06-08 Andrew Cagney <cagney@redhat.com>
3947
3948 * Makefile.in (d10v-tdep.o): Update dependencies.
3949 (SFILES): Add trad-frame.c.
3950 (trad_frame_h): Define.
3951 (COMMON_OBS): Add trad-frame.o.
3952 (trad-frame.o): Specify dependencies.
3953 * d10v-tdep.c: Include "trad-frame.h".
3954 (saved_regs_unwinder): Delete function.
3955 (d10v_frame_prev_register): Use trad_frame_prev_register.
3956 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3957 trad_frame", delete "regs" and "prev_sp".
3958 (prologue_find_regs): Use trad-frame.
3959 * trad-frame.h, trad-frame.c: New files.
3960
4538b4f4
MK
39612003-06-08 Mark Kettenis <kettenis@gnu.org>
3962
3963 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3964
a0273b2f
AF
39652003-06-07 Adam Fedor <fedor@gnu.org>
3966
3967 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3968 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3969 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3970 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 3971 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
3972 Use it.
3973
3a6c3343
AC
39742003-06-07 Andrew Cagney <cagney@redhat.com>
3975
3976 * symfile.h: Re-indent, clean up comments.
3977
b46e02f6
AC
39782003-06-07 Andrew Cagney <cagney@redhat.com>
3979
3980 * inferior.h (deprecated_write_sp): Replace
3981 generic_target_write_sp.
3982 * regcache.c (deprecated_write_sp): Replace
3983 generic_target_write_sp.
3984 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3985 * vax-tdep.c (vax_gdbarch_init): Update.
3986 * v850-tdep.c (v850_gdbarch_init): Update.
3987 * sparc-tdep.c (sparc_gdbarch_init): Update.
3988 * sh-tdep.c (sh_gdbarch_init): Update.
3989 * s390-tdep.c (s390_gdbarch_init): Update.
3990 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3991 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3992 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3993 * mcore-tdep.c (mcore_gdbarch_init): Update.
3994 * m68k-tdep.c (m68k_gdbarch_init): Update.
3995 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3996 * ia64-tdep.c (ia64_gdbarch_init): Update.
3997 * h8300-tdep.c (h8300_gdbarch_init): Update.
3998 * frv-tdep.c (frv_gdbarch_init): Update.
3999 * cris-tdep.c (cris_gdbarch_init): Update.
4000 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4001
a42e117c
AC
40022003-06-07 Andrew Cagney <cagney@redhat.com>
4003
4004 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4005 Assert that PC_REGNUM is valid.
4006 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4007
bd1ce8ba
AC
40082003-06-07 Andrew Cagney <cagney@redhat.com>
4009
4010 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4011 * gdbarch.h, gdbarch.c: Regenerate.
4012 * mn10300-tdep.c: Include "gdb_assert.h".
4013 (mn10300_read_fp): New function.
4014 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4015 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4016 * ia64-tdep.c: Include "gdb_assert.h".
4017 (ia64_read_fp): New function.
4018 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4019 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4020 * regcache.c (generic_target_read_sp): Delete function.
4021 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4022 * inferior.h (generic_target_read_sp): Delete declaration.
4023 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4024 generic_target_read_sp.
4025 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4026 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4027 * sh-tdep.c (sh_gdbarch_init): Ditto.
4028 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4029 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4030
ec5cbaec
AC
40312003-06-07 Andrew Cagney <cagney@redhat.com>
4032
4033 * gdbarch.sh: Comment each field of startup_gdbarch.
4034 * gdbarch.h, gdbarch.c: Re-generate.
4035
cde9ea48
AC
40362003-06-07 Andrew Cagney <cagney@redhat.com>
4037
4038 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4039 * gdbarch.h, gdbarch.c: Re-generate.
4040 * regcache.c: Update comments on read_pc et.al.
4041 (generic_target_read_pc): Delete function.
4042 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4043 * inferior.h (generic_target_read_pc): Delete declaration.
4044 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4045 generic_target_read_pc.
4046 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4047 * sh-tdep.c (sh_gdbarch_init): Ditto.
4048 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4049 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 4050
9a90a780
AC
40512003-06-07 Andrew Cagney <cagney@redhat.com>
4052
4053 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4054 "index" with "special_local_sect". Use strcmp instead of STREQ.
4055 Append period to coments.
4056
a39a16c4
MM
40572003-06-06 Mark Mitchell <mark@codesourcery.com>
4058
4059 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4060 (elfstab_offset_sections): Likewise.
4061 * gdb-stabs.h (stab_section_info): Likewise.
4062 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4063 * objfiles.c (objfile_relocate): Likewise.
4064 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4065 * remote.c (get_offsets): Likewise.
4066 (remote_cisco_objfile_relocate): Likewise.
4067 * somread.c (som_symfile_offsets): Likewise.
4068 * symfile.c (alloc_section_addr_info): New function.
4069 (build_section_addr_info_from_section_tab): Use it.
4070 (free_section_addr_info): Adjust.
4071 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4072 (syms_from_objfile): Allocate local_addr dynamically.
4073 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4074 dynamically.
4075 (add_symbol_file_command): Allocate sect_opts dynamically.
4076 (reread_symbols): Avoid use of SECT_OFF_MAX.
4077 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4078 (alloc_section_addr_info): Declare it.
4079 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4080 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4081 dynamically.
4082 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 4083
20c6c2f8
AC
40842003-06-06 Andrew Cagney <cagney@redhat.com>
4085
4086 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4087 (d10v_frame_unwind_cache): Do not set "return_pc".
4088
884a26c8
MS
40892003-06-06 Michael Snyder <msnyder@redhat.com>
4090
4091 * h8300-tdep.c: Make tidy (long lines).
4092
088ce440
ML
40932003-06-06 Michal Ludvig <mludvig@suse.cz>
4094
8ffd9b1b 4095 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
4096 to regcache_collect().
4097
7d773d96
JB
40982003-06-05 J. Brobecker <brobecker@gnat.com>
4099
4100 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4101 pc_in_sigtramp multiarch method.
4102 (hppa_hpux_som_init_abi): Use it.
4103 (hppa_hpux_elf_init_abi): Likewise.
4104 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4105 macro has been multiarched.
4106 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4107 macro here, as hppa64 isn't multiarched yet.
4108
1df6926e
AC
41092003-06-05 Andrew Cagney <cagney@redhat.com>
4110
4111 * Makefile.in (value_h): Add $(frame_h).
4112 * value.h: Include "frame.h".
4113 (struct value): Replace "frame_addr" with "frame_id".
4114 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4115 * values.c (allocate_value): Use VALUE_FRAME_ID.
4116 (value_copy): Use VALUE_FRAME_ID.
4117 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4118 * valops.c (value_assign): Update. Use frame_find_by_id.
4119
6b53acc6
ML
41202003-06-05 Michal Ludvig <mludvig@suse.cz>
4121
4122 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4123 in each pass.
4124
4d9850d3
JJ
41252003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4126
4127 * thread-db.c (check_event): For create/death event breakpoints,
4128 loop through all messages to ensure that we read the message
4129 corresponding to the breakpoint we are at.
4130
8efca6ba
MS
41312003-06-04 Michael Snyder <msnyder@redhat.com>
4132
4133 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4134
0912c7f2
MK
41352003-06-04 Mark Kettenis <kettenis@gnu.org>
4136
4137 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4138 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4139 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4140 when handling .eh_frame sections.
4141
4e370325
JB
41422003-06-04 J. Brobecker <brobecker@gnat.com>
4143
4144 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4145 prepare_to_proceed procedure instead of the hppa-specific one.
4146 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4147
b757528f 41482003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4149
b757528f
JJ
4150 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4151 * config.in: Regenerated.
4152 * configure.in: Add test for syscall function and check for
4153 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4154 * configure: Regenerated.
4155 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4156 <sys/syscall.h>.
4157 (kill_lwp): New function that uses tkill syscall or
4158 uses kill, depending on whether threading model is nptl or not.
4159 All callers of kill() changed to use kill_lwp().
4160 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4161 see if all threads have already exited in the nptl model.
4162 (stop_and_resume_callback): New callback function used by the
4163 lin_lwp_wait thread exit handling code.
4164 (stop_wait_callback): Check for threads already having exited and
4165 delete such threads fromt the lwp list when discovered.
4166 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 4167
b757528f
JJ
4168 Roland McGrath <roland@redhat.com>
4169 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4170 nptl libthread_db.
4171
087779b1
RH
41722003-06-03 Richard Henderson <rth@redhat.com>
4173
b21fd293
RH
4174 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4175 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4176 (alpha_sigtramp_frame_prev_register): Likewise.
4177 (alpha_heuristic_frame_prev_register): Likewise.
4178 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4179
8ffd9b1b 4180 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
4181 alpha-specific register id names.
4182 (alpha_mdebug_frame_unwind_cache): Likewise.
4183 (alpha_mdebug_frame_prev_register): Likewise.
4184
baa490c4
RH
41852003-06-03 Richard Henderson <rth@redhat.com>
4186
4187 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4188 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4189 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4190 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4191 unwind routines.
4192 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4193 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4194 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4195
4196 * alpha-linux-tdep.c: Remove unnecessary includes.
4197 * Makefile.in (alpha-linux-tdep.o): Update.
4198
41992003-06-03 Richard Henderson <rth@redhat.com>
4200
4201 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4202 (alphabsd_fill_fpreg): Likewise.
4203
f534e522
JB
42042003-06-03 J. Brobecker <brobecker@gnat.com>
4205
4206 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4207 references to struct frame_info fields by calls to the equivalent
4208 accessors. Necessary now that frame_info is opaque.
4209
4035536b
JB
42102003-06-03 J. Brobecker <brobecker@gnat.com>
4211
4212 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4213 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4214 structure, field no longer exists.
4215
0bd79c5c
JB
42162003-06-03 J. Brobecker <brobecker@gnat.com>
4217
4218 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4219 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4220
37bb6d9f
JB
42212003-06-03 J. Brobecker <brobecker@gnat.com>
4222
4223 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4224 references to struct frame_info fields by calls to the equivalent
4225 accessors. Necessary now that frame_info is opaque.
4226
852ee05c
JB
42272003-06-03 J. Brobecker <brobecker@gnat.com>
4228
4229 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4230 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4231 structure, field no longer exists.
4232
7d58c67d
TR
42332003-06-03 Theodore A. Roth <troth@openavr.org>
4234
8ffd9b1b 4235 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
4236 accumulation of the size of all registers instead of blindly using
4237 DEPRECATED_REGISTER_BYTES.
4238
0a48e7e8
MS
42392003-06-03 Michael Snyder <msnyder@redhat.com>
4240
4241 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4242 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4243 for h8300sx.
4244
9798ab0d
JB
42452003-06-03 J. Brobecker <brobecker@gnat.com>
4246
4247 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4248 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4249
00b037e2
AC
42502003-06-03 Andrew Cagney <cagney@redhat.com>
4251
4252 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4253 (sparc_convert_to_raw): Delete function.
4254 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4255 register_convert_to_virtual.
4256
043b2f77
JJ
42572003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4258
4259 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4260 layer if not dealing with a statically-linked threaded program.
4261
f43caff8
KW
42622003-06-03 Kris Warkentin <kewarken@qnx.com>
4263
4264 * solib.c (solib_open): Update comment to reflect actual search order.
4265
ae1e7417
AC
42662003-06-03 Andrew Cagney <cagney@redhat.com>
4267
4268 * frame.c (get_frame_memory_signed): New function.
4269 (get_frame_memory, get_frame_memory_unsigned): New function.
4270 (get_frame_arch): New function.
4271 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4272 (get_frame_memory, get_frame_unsigned_memory): Declare.
4273 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4274 get_frame_memory_unsigned and get_frame_arch.
4275 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4276
cb123844
RG
42772003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4278
4279 * MAINTAINERS (write after approval): Add myself.
4280
1bb792e9
JB
42812003-06-03 Jim Blandy <jimb@redhat.com>
4282
4283 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4284 elements of gregset_t are 64 bits each, but access registers
4285 are still 32 bits, so they're packed two per gregset_t
4286 element. Unpack/pack them properly.
4287
aee8d8ba
DC
42882003-06-02 David Carlton <carlton@bactrian.org>
4289
4290 * linespec.c (find_methods): Break out code into
4291 add_matching_methods and add_constructors.
4292 (add_matching_methods): New.
4293 (add_constructors): Ditto.
4294
bf7488d2
AC
42952003-06-02 Andrew Cagney <cagney@redhat.com>
4296
bf7488d2
AC
4297 * sparc-tdep.c (sparc_print_registers): Delete call to
4298 REGISTER_CONVERTIBLE.
4299 (sparc_gdbarch_init): Do not set register_convertible.
4300 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4301 * frv-tdep.c (frv_gdbarch_init): Ditto.
4302 * cris-tdep.c (cris_gdbarch_init): Ditto.
4303
adedef68
EZ
43042003-06-02 Elena Zannoni <ezannoni@redhat.com>
4305
8ffd9b1b 4306 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
4307 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4308 (syms_from_objfile): Ditto.
4309
650fcc91
AS
43102003-06-03 Andreas Schwab <schwab@suse.de>
4311
4312 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4313 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4314
df4a182b
RH
43152003-06-02 Richard Henderson <rth@redhat.com>
4316
4317 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4318 a member of all_reggroup.
4319
c483c494
RH
43202003-06-02 Richard Henderson <rth@redhat.com>
4321
4322 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4323 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4324 (alpha_lds, alpha_sts): New.
4325 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 4326 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
4327 restructure and fail for type sizes other than 4 or 8.
4328 (alpha_value_to_register): Similarly.
4329 (alpha_extract_return_value): Use alpha_sts.
4330 (alpha_store_return_value): Use alpha_lds.
4331 (alpha_gdbarch_init): Update hooks.
4332
b38b6be2
RH
43332003-06-02 Richard Henderson <rth@redhat.com>
4334
4335 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4336 regnum identifiers.
4337 (alpha_sigtramp_register_address): Likewise.
4338
98a8e1e5
RH
43392003-06-02 Richard Henderson <rth@redhat.com>
4340
4341 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4342 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4343 * alpha-tdep.h: Declare them.
4344
4345 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4346 Remove zerobuf. Don't error on UNIQUE.
4347 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4348 (ALPHA_REGSET_UNIQUE): Provide default.
4349 (supply_gregset): Use alpha_supply_int_regs.
4350 (fill_gregset): Use alpha_fill_int_regs.
4351 (supply_fpregset): Use alpha_supply_fp_regs.
4352 (fill_fpregset): Use alpha_fill_fp_regs.
4353 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4354 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4355 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4356 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4357 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4358 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4359
67dfac52
RH
43602003-06-02 Richard Henderson <rth@redhat.com>
4361
f75d70cc
RH
4362 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4363
67dfac52
RH
4364 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4365 (alpha_store_return_value): Likewise.
4366
0cf566ec
DC
43672003-06-02 David Carlton <carlton@math.stanford.edu>
4368
4369 * block.c (contained_in): Add 'const' to arguments.
4370 (block_function): Ditto.
4371 * block.h: Update declarations for block_function and
4372 contained_in.
4373
cdef89d0
DC
43742003-06-02 David Carlton <carlton@math.stanford.edu>
4375
4376 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4377 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4378 * p-valprint.c (pascal_val_print): Ditto.
4379 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4380
72667056
RH
43812003-06-02 Richard Henderson <rth@redhat.com>
4382
98a8e1e5
RH
4383 * alpha-tdep.c (alpha_push_dummy_call): Use
4384 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 4385
8ffd9b1b 4386 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
4387 sign-extension of 32-bit values.
4388 (alpha_store_return_value): Similarly.
0ede8eca 4389
98a8e1e5
RH
4390 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4391 (alpha_extract_return_value): Likewise.
4392 (alpha_store_return_value): Likewise.
7b5e1cb3 4393
98a8e1e5
RH
4394 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4395 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 4396
98a8e1e5
RH
4397 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4398 (alpha_extract_struct_value_address): Likewise.
4399 (alpha_store_return_value): Likewise.
4400 (alpha_store_struct_return): Remove.
4401 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 4402
98a8e1e5
RH
4403 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4404 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4405 macros where appropriate.
4406 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4407 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 4408
98a8e1e5
RH
4409 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4410 for SP, GP; void_func_ptr for PC; non-language-specific types
4411 for all others.
4412 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 4413
6dd77b81
RH
44142003-06-02 Richard Henderson <rth@redhat.com>
4415
4416 * top.h (lim_at_start): Declare.
4417 * main.c (captured_main): Set it.
4418 * top.c (lim_at_start): Define.
4419 (command_loop): Use it instead of &environ.
4420 * event-top.c (command_handler): Likewise.
4421
f4dbdb54
JT
44222003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4423
4424 * mipsnbsd-tdep.c: Update copyright years.
4425 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4426
8f285956
RH
44272003-06-01 Richard Henderson <rth@redhat.com>
4428
98a8e1e5
RH
4429 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4430 (alpha-linux-tdep.o): Update dependencies.
4431 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4432 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 4433
615967cb
RH
44342003-06-01 Richard Henderson <rth@redhat.com>
4435
98a8e1e5
RH
4436 * alpha-tdep.c (alpha_register_reggroup_p): New.
4437 (alpha_gdbarch_init): Register it.
615967cb 4438
b59661bd
AC
44392003-06-02 Andrew Cagney <cagney@redhat.com>
4440
4441 * dwarfread.c: Eliminate "register"
4442 (decode_die_type): Eliminate assignment within "if".
4443 (struct_type, decode_array_element_type): Ditto.
4444 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4445 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4446 (decode_modified_type, completedieinfo): Ditto.
4447 * block.c: Eliminate "register".
4448 (blockvector_for_pc_sect): Eliminate assignment within "if".
4449 * cp-support.h (struct symbol): Opaque declaration.
4450 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4451
5ef165c2
RH
44522003-06-01 Richard Henderson <rth@redhat.com>
4453
98a8e1e5
RH
4454 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4455 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 4456
143985b7
AF
44572003-06-01 Adam Fedor <fedor@gnu.org>
4458
4459 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4460 * gdbarch.[ch]: Regenerate.
4461 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4462 (hppa_gdbarch_init): Set it in the gdbarch vector.
4463 * i386-tdep.c (i386_fetch_pointer_argument): New
4464 (i386_gdbarch_init): Set it into gdbarch.
4465 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4466 (rs6000_gdbarch_init): Set it in gdbarch.
4467 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4468 (sparc_gdbarch_init): Set it in gdbarch.
4469
ae0167b9
AC
44702003-06-01 Andrew Cagney <cagney@redhat.com>
4471
7c0b4a20
AC
4472 * defs.h (extract_address): Delete declaration.
4473 * findvar.c (extract_address): Delete function.
4474 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4475 extract_address with the inline equivalent,
4476 extract_unsigned_integer.
4477 (xstormy16_extract_struct_value_address): Ditto.
4478 (xstormy16_pointer_to_address): Ditto.
4479 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4480 * v850-tdep.c (v850_push_arguments): Ditto.
4481 (v850_extract_return_value): Ditto.
4482 (v850_extract_struct_value_address): Ditto.
4483 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4484 (sparcnbsd_get_longjmp_target_64): Ditto.
4485 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4486 (get_longjmp_target): Ditto.
4487 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4488 (sh64_extract_struct_value_address): Ditto.
4489 (sh_push_arguments): Ditto.
4490 (sh64_push_arguments): Ditto.
4491 * remote-vxsparc.c (vx_read_register): Ditto.
4492 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4493 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4494 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4495 * mipsv4-nat.c (get_longjmp_target): Ditto.
4496 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4497 * mips-nat.c (get_longjmp_target): Ditto.
4498 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4499 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4500 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4501 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4502 * irix5-nat.c (get_longjmp_target): Ditto.
4503 * irix4-nat.c (get_longjmp_target): Ditto.
4504 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4505 (ia64_push_arguments): Ditto.
4506 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4507 * h8300-tdep.c (h8300_push_arguments): Ditto.
4508 (h8300_store_return_value): Ditto.
4509 (h8300_extract_struct_value_address): Ditto.
4510 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4511 (frv_push_arguments): Ditto.
4512 * avr-tdep.c (avr_pointer_to_address): Ditto.
4513 (avr_push_arguments): Ditto.
4514 * arm-tdep.c (arm_push_dummy_call): Ditto.
4515 (arm_get_longjmp_target): Ditto.
4516 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4517 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4518 (alpha_get_longjmp_target): Ditto.
4519
ae0167b9
AC
4520 * solib-irix.c (extract_mips_address): Inline extract_address,
4521 replacing it with extract_signed_integer.
4522 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4523 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4524 (first_link_map_member, open_symbol_file_object): Ditto.
4525 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4526 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4527 (LM_NEXT, LM_NAME): Ditto.
4528
44d88583
RH
45292003-06-01 Richard Henderson <rth@redhat.com>
4530
98a8e1e5
RH
4531 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4532 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4533 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4534 (alpha_cannot_store_register): Likewise.
4535 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4536 * alpha-nat.c (supply_gregset): Likewise.
4537 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 4538
310e9b6a
AC
45392003-06-01 Andrew Cagney <cagney@redhat.com>
4540
4541 * infcall.c (call_function_by_hand): Update comment on
4542 DEPRECATED_DUMMY_WRITE_SP.
4543
4544 * mips-tdep.c (mips_gdbarch_init): Do not set
4545 deprecated_dummy_write_sp.
4546 (mips_eabi_push_dummy_call): Set the SP register.
4547 (mips_o64_push_dummy_call): Set the SP register.
4548 (mips_o32_push_dummy_call): Set the SP register.
4549 (mips_n32n64_push_dummy_call): Set the SP register.
4550
5ab84872
RH
45512003-06-01 Richard Henderson <rth@redhat.com>
4552
98a8e1e5
RH
4553 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4554 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4555 (supply_gregset): Likewise.
4556 * alpha-tdep.c (alpha_store_return_value): Likewise.
4557 (alpha_get_longjmp_target): Likewise.
4558 (alpha_register_name): Constify array.
4559 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4560 deprecated_register_size, deprecated_register_bytes,
4561 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4562 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4563 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 4564
09cc52fd
RH
45652003-06-01 Richard Henderson <rth@redhat.com>
4566
4567 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4568 from arg_reg_buffer to regcache to avoid double conversion.
4569
c7f16359
MK
45702003-06-01 Mark Kettenis <kettenis@gnu.org>
4571
4572 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4573 SP_REGNUM.
4574 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4575 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4576
7131cb6e
RH
45772003-06-01 Richard Henderson <rth@redhat.com>
4578
98a8e1e5
RH
4579 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4580 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 4581
f3e0f90b
RH
45822003-06-01 Richard Henderson <rth@redhat.com>
4583
98a8e1e5
RH
4584 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4585 not overlapping PC_REGNUM.
f3e0f90b 4586
c88e30c0
RH
45872003-06-01 Richard Henderson <rth@redhat.com>
4588
98a8e1e5
RH
4589 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4590 alpha_push_arguments. Don't dump argument register data to
4591 the target stack. Fix float and 128-bit long double semantics.
4592 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4593 (alpha_fix_call_dummy): Remove.
4594 (alpha_call_dummy_words): Remove.
4595 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 4596
f1a559ae
RH
45972003-06-01 Richard Henderson <rth@redhat.com>
4598
4599 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4600
5e045346
AC
46012003-06-01 Andrew Cagney <cagney@redhat.com>
4602
95404a3e
AC
4603 * mips-tdep.c (is_mips16_addr): New function.
4604 (make_mips16_addr, unmake_mips16_addr): New functions.
4605 (pc_is_mips16, mips_fetch_instruction): Use.
4606 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4607 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4608 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4609 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4610 TARGET_MIPS.
4611 * config/mips/tm-mips.h: Update copyright.
4612 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4613 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4614 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4615 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4616 (TM_PRINT_INSN_MACH): Delete.
4617 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4618
5e045346
AC
4619 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4620 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4621 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4622 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4623 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4624 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4625 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4626 mips*-*-riscos* and mips*-*-sysv* onto mips.
4627 * config/mips/mips64.mt: New file.
4628 * config/mips/mips.mt: New file.
4629 * config/mips/littlemips.mt: Delete file.
4630 * config/mips/decstation.mt: Delete file.
4631 * config/mips/vr4300el.mt: Delete file.
4632 * config/mips/vr5000el.mt: Delete file.
4633 * config/mips/vr5000.mt: Delete file.
4634 * config/mips/vr4100.mt: Delete file.
4635 * config/mips/vr4xxxel.mt: Delete file.
4636 * config/mips/vr4300.mt: Delete file.
4637 * config/mips/vr4xxx.mt: Delete file.
4638 * config/mips/bigmips.mt: Delete file.
4639 * config/mips/bigmips64.mt: Delete file.
4640 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4641 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4642 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4643 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4644 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4645 "tm-bigmips.h".
4646 * config/mips/tm-irix3.h: Ditto.
4647 * config/mips/tm-mipsv4.h: Ditto.
4648 * config/mips/tm-embed.h: Ditto.
4649 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4650 "tm-bigmips64.h".
4651 * config/mips/tm-vr5000el.h: Delete file.
4652 * config/mips/tm-tx39l.h: Delete file.
4653 * config/mips/tm-vr4300el.h: Delete file.
4654 * config/mips/tm-vr4xxxel.h: Delete file.
4655 * config/mips/tm-vr4300.h: Delete file.
4656 * config/mips/tm-vr4100.h: Delete file.
4657 * config/mips/tm-vr4xxx.h: Delete file.
4658 * config/mips/tm-vr5000.h: Delete file.
4659 * config/mips/tm-embedl64.h: Delete file.
4660 * config/mips/tm-embedl.h: Delete file.
4661 * config/mips/tm-embed64.h: Delete file.
4662 * config/mips/tm-bigmips64.h: Delete file.
4663 * config/mips/tm-bigmips.h: Delete file.
4664
2473a4a9
MK
46652003-06-01 Mark Kettenis <kettenis@gnu.org>
4666
97a5b208
MK
4667 Fix gdb/1216.
4668 * shnbsd-nat.c: Include "sh-tdep.h".
4669
2473a4a9
MK
4670 From Richard Henderson <rth@redhat.com>:
4671 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4672
e0f7ec59
AC
46732003-05-31 Andrew Cagney <cagney@redhat.com>
4674
4675 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4676 forward declaration.
4677 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4678 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4679 (mips_find_saved_regs): Use set_reg_offset.
4680 (mips_frame_init_saved_regs): Delete function.
4681 (mips_pop_frame): Call mips_find_saved_regs instead of
4682 DEPRECATED_FRAME_INIT_SAVED_REGS.
4683
68dcc709
AC
46842003-05-31 Andrew Cagney <cagney@redhat.com>
4685
4686 * mips-tdep.c (mips_gdbarch_init): Do not set
4687 deprecated_max_register_raw_size, register_virtual_size, and
4688 deprecated_max_register_virtual_size.
4689
cfc14b3a
MK
46902003-05-31 Mark Kettenis <kettenis@gnu.org>
4691
6405b0a6
MK
4692 * i386-tdep.c: Include "dwarf2-frame.h".
4693 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4694 * Makefile.in (i386-tdep.o): Update dependencies.
4695
cfc14b3a
MK
4696 * dwarf2-frame.c, dwarf2-frame.h: New files.
4697 * Makefile.in (SFILES): Add dwarf2-frame.c.
4698 (dwarf2_frame_h): Define.
4699 (COMMON_OBS): Add dwarf2-frame.o.
4700 (dwarf2-frame.o): Add dependencies.
4701
6a2751d2
AJ
47022003-05-31 Andreas Jaeger <aj@suse.de>
4703
4704 * x86-64-linux-nat.c: Fix comment.
4705
1c3545ae
MK
47062003-05-31 Mark Kettenis <kettenis@gnu.org>
4707
10f93086
MK
4708 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4709 function signature.
4710
1c3545ae
MK
4711 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4712 have a sigcontext_addr handler.
4713 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4714 sigcontext_addr handler.
4715
e11c53d2
AC
47162003-05-31 Andrew Cagney <cagney@redhat.com>
4717
4718 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4719 (print_fp_register_row): Replace do_fp_register_row.
4720 (mips_print_fp_register): Add "file" and "frame" parameters.
4721 (mips_print_register): Add "file" and "frame" parameters.
4722 (mips_print_registers_info): Replace mips_do_registers_info.
4723 (mips_gdbarch_init): Set print_registers_info instead of
4724 deprecated_do_registers_info.
4725 (mips_read_fp_register_single): Add "frame" parameter.
4726 (mips_read_fp_register_double): Add "frame" parameter.
4727
a3386186
MK
47282003-05-31 Mark Kettenis <kettenis@gnu.org>
4729
70913449
MK
4730 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4731 Fixes a bug where GDB would print the wrong register names for
4732 targets without SSE.
4733
2b5e0749
MK
4734 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4735 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4736 registers.
4737
4738 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4739 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4740 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4741 TDEP->sc_sp_offset.
4742
a3386186
MK
4743 From Michal Ludvig <mludvig@suse.cz>:
4744 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4745 and `sc_num_regs'.
4746 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4747 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4748 I386_ST0_REGNUM): Move here from...
4749 * i386-tdep.c: ... here.
4750 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4751 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4752 registers if possible.
4753 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4754 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4755 Remove variables.
4756 (i386bsd_sc_reg_offset): New variable.
4757 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4758 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4759 TDEP->sc_sp_offset.
4760 (i386fbsd_sc_reg_offset): New variable.
4761 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4762 TDEP->sc_num_regs.
4763 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4764 variables.
4765 (i386fbsd4_sc_reg_offset): New variable.
4766 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4767 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4768 TDEP->sc_sp_offset.
4769 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4770 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4771 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4772 Remove variables.
4773 (i386nbsd_sc_reg_offset): New variable.
4774 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4775 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4776 TDEP->sc_sp_offset.
4777 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4778 Remove variables.
4779 (i386obsd_sc_reg_offset): New variable.
4780 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4781 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4782 TDEP->sc_sp_offset.
4783 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4784 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4785 for frame pointer offset in `struct sigcontext'.
4786
25ab4790
AC
47872003-05-31 Andrew Cagney <cagney@redhat.com>
4788
4789 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4790 architecture methods call_dummy_words, sizeof_call_dummy_words,
4791 push_return_address, store_struct_return, and fix_call_dummy. Set
4792 push_dummy_call instead of deprecated_push_arguments.
4793 (mips_store_struct_return): Delete function.
4794 (mips_fix_call_dummy): Delete function.
4795 (mips_push_return_address): Delete function.
4796 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4797 RA_REGNUM and T9_REGNUM.
4798 (mips_n32n64_push_dummy_call): Ditto for
4799 mips_n32n64_push_arguments.
4800 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4801 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4802
6a65450a
AC
48032003-05-31 Andrew Cagney <cagney@redhat.com>
4804
4805 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4806 "dummy_addr" to "bp_addr".
4807 * infcall.c (call_function_by_hand): Pass "funaddr" to
4808 gdbarch_push_dummy_call.
4809 * gdbarch.h, gdbarch.c: Re-generate.
4810 * i386-tdep.c (i386_push_dummy_call): Update.
4811 * arm-tdep.c (arm_push_dummy_call): Update.
4812 * d10v-tdep.c (d10v_push_dummy_call): Update.
4813
c4f35dd8
MK
48142003-05-31 Mark Kettenis <kettenis@gnu.org>
4815
4816 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4817 variable declarations.
4818 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4819 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4820 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4821 x86_64_init_frame_pc, x86_64_init_frame_pc,
4822 x86_64_function_has_prologue): Remove prototypes.
4823 (X86_64_NUM_GREGS): New define.
4824 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4825 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4826 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4827 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4828 XMM1_REGNUM): Remove defines.
4829 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4830 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4831 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4832 X86_64_XMM1_REGNUM): New defines.
4833 (struct x86_64_register_info): Renamed from `struct
4834 register_info'. Remove `size' member.
4835 (x86_64_register_info_table): Remove variable.
4836 (x86_64_register_info): New variable.
4837 (X86_64_NUM_REGS): New define.
4838 (X86_64_NUM_GREGS): Remove define.
4839 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4840 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4841 Remove variables.
4842 (x86_54_dwarf2_reg_to_regnum): Remove function.
4843 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4844 (x86_64_dwarf_reg_to_regnum): New function.
4845 (x86_64_register_name): Rewrite.
4846 (x86_64_register_raw_size): Remove function.
4847 (x86_64_register_byte_table): Remove variable.
4848 (x86_64_register_byte): Remove function.
4849 (x86_64_register_virtual_type): Remove function.
4850 (x86_64_register_type): New function.
4851 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4852 x86_64_register_convert_to_raw): Remove functions.
4853 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4854 (x86_64_use_struct_convention): Make static. Adjust for renamed
4855 defines.
4856 (x86_64_frame_init_saved_regs): Remove function.
4857 (x86_64_push_arguments): Make static. Change to accept a regcache
4858 as argument.
4859 (x86_64_store_return_value, x86_64_extract_return_value): Make
4860 static. Rewrite based on i386 counterparts.
4861 (x86_64_push_dummy_call): New function.
4862 (X86_64_NUM_SAVED_REGS): New define.
4863 (x86_64_register_number): Remove function.
4864 (x86_64_store_struct_return): Remove function.
4865 (x86_64_frameless_function_invocation,
4866 x86_64_function_has_prologue): Remove functions.
4867 (PROLOG_BUFSIZE): Remove define.
4868 (struct x86_64_frame_cache): New structure.
4869 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4870 x86_64_frame_cache, x86_64_frame_this_id,
4871 x86_64_frame_prev_register, x86_64_frame_p,
4872 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4873 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4874 functions.
4875 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4876 variables.
4877 (x86_64_skip_prologue): Rewrite in terms of
4878 x86_64_analyze_prologue.
4879 (x86_64_frame_base_address): New function.
4880 (x86_64_frame_base): New variable.
4881 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4882 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4883 set deprecated_fp_regnum, deprecated_register_size,
4884 deprecated_register_bytes, register_raw_size, register_byte,
4885 register_virtual_type, register_convertiable,
4886 register_convert_to_virtual, convert_to_raw,
4887 deprecated_get_saved_register, deprecated_target_read_fp,
4888 deprecated_push_arguments, deprecated_push_return_address,
4889 deprecated_pop_frame, deprecated_store_struct_return,
4890 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4891 frameless_function_invocation, deprecated_frame_saved_pc,
4892 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4893 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4894 deprecated_init_frame_pc and virtual_frame_pointer. Call
4895 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4896 and x86_64_frame_p. Call frame_base_set_default to register
4897 x86_64_frame_base.
4898 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4899 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4900 (_initialize_x86_64_tdep): Remove function.
4901 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4902 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4903 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4904 define.
4905 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4906 (x86_64_linux_sigcontext_addr): Rewrite.
4907 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4908 x86_64_linux_frame_saved_pc): Remove functions.
4909 (x86_64_linux_pc_in_sigtramp): Renamed from
4910 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4911 trampoline.
4912 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4913 Remove_functions.
4914 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4915 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4916 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4917 (x86_64_regmap): Rename to regmap.
4918 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4919 x86_64_num_gregs.
4920 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4921 x86_64_regmap.
4922 (x86_64_fxsave_offset): Remove function.
4923 (supply_fpregset): Simply call x86_64_supply_fxsave.
4924 (fill_fpregset): Simply call x86_64_fill_fxsave.
4925 (fetch_inferior_registers, store_inferior_registers): Avoid
4926 asignment in if-statement.
4927 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4928 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4929 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4930 (fetch_core_registers): Remove function.
4931 (linux_elf_core_fns): Remove.
4932 (offsetoff): Don't define.
4933 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4934 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4935 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4936 add core-regset.o.
4937 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4938 protection against multiple includes instead of NM_X86_64_h. Add
4939 various comments. Include "config/nm-linux.h". Don't include
4940 <signal.h>.
4941 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4942 GET_THREAD_SIGNALS): Remove defines.
4943 (x86_64_register_u_addr, kernel_u_size,
4944 lin_thread_get_thread_signals): Remove prototypes.
4945 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4946 [HAVE_LINK_H]: Don't include "solib.h".
4947 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4948 * config/i386/tm-x86-64linux.h: Fix comments.
4949 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4950 x86-64-tdep.o): Update dependencies.
4951
c25083af
AC
49522003-05-30 Andrew Cagney <cagney@redhat.com>
4953
c8f55a7b
AC
4954 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4955 Change parameter type to a "struct regcache *".
4956
c25083af
AC
4957 * gdbarch.sh: Regardless of the multi-arch level, always define
4958 the macro when not already defined.
4959 * gdbarch.h, gdbarch.c: Re-generate.
4960
fbe586ae
RH
49612003-05-30 Richard Henderson <rth@redhat.com>
4962
4963 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4964 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4965 (alpha_mdebug_frame_this_id): Likewise.
4966 (alpha_mdebug_frame_prev_register): Likewise.
4967 (alpha_mdebug_frame_base_address): Likewise.
4968 (alpha_mdebug_frame_locals_address): Likewise.
4969 (alpha_mdebug_frame_args_address): Likewise.
4970 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4971 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4972 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4973 loop increment.
4974 (alpha_heuristic_frame_this_id): Make static.
4975 (alpha_heuristic_frame_prev_register): Likewise.
4976 (alpha_heuristic_frame_base_address): Likewise.
4977 * alpha-tdep.h: Update.
4978
acd5c798
MK
49792003-05-30 Mark Kettenis <kettenis@gnu.org>
4980
4981 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4982 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4983 defenitions.
4984 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4985 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4986 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4987 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4988 I386_ST0_REGNUM): New defines.
4989 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4990 codestream_get): Remove define.
4991 (codestream_next_addr, condestream_addr, condestream_buf,
4992 codestream_off, codestream_cnt): Remove variables.
4993 (codestream_fill, codestream_seek, codestream_read): Remove
4994 functions.
4995 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4996 functionality.
4997 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4998 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4999 i386_frame_saved_pc, i386_saved_pc_after_call,
5000 i386_frame_num_args, i386_frame_init_saved_regs,
5001 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5002 i386_push_arguments): Remove functions.
5003 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5004 functionality. Use i386_analyze_prologue instead of
5005 i386_get_frame_setup.
5006 (I386_NUM_SAVED_REGS): New define.
5007 (struct i386_frame_cache): New structure.
5008 (i386_alloc_frame_cache, i386_analyze_struct_return,
5009 i386_skip_probe, i386_analyze_frame_setup,
5010 i386_analyze_register_saves, i386_analyze_prologue,
5011 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5012 i386_frame_prev_register, i386_sigtramp_frame_cache,
5013 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5014 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5015 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5016 New functions.
5017 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5018 New variables.
5019 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5020 I386_EAX_REGNUM and I386_EDX_REGNUM.
5021 (i386_extract_return_value, i386_store_return_value): Use
5022 I386_ST0_REGNUM where appropriate.
5023 (i386_extract_struct_value_address): Rewrite to use extract_address.
5024 (i386_svr4_pc_in_sigtramp): Add comment.
5025 (i386_svr4_sigcontext_addr): Rewrite.
5026 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5027 TDEP->sc_sp_offset.
5028 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5029 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5030 of new defines. Set push_dummy_call, don't set
5031 deprecated_push_arguments, deprecated_push_return_address,
5032 deprecated_pop_frame. Don't set parm_boundary. Don't set
5033 deprecated_frame_chain, deprecated_frame_saved_pc,
5034 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5035 save_dummy_frame_tos, unwind_pc. Call
5036 frame_unwind_append_predicate and frame_base_set_default. Don't
5037 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5038 Don't set frameless_function_invocation. Don't set
5039 deprecated_register_bytes, deprecated_register_size,
5040 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5041 * i386-linux-tdep.c: Fix formatting in some comments.
5042 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5043 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5044 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5045 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5046 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5047 redundant parentheses.
5048 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5049 (i386_linux_sigcontext_addr): Use it. Rewrite.
5050 (find_minsym_and_objfile): Change name of second argument.
5051 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5052 changed. Use frame_pc_unwind instead of
5053 DEPRECATED_SAVED_PC_AFTER_CALL.
5054 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5055 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5056 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5057 unwinder.
5058 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5059 "dummy-frame.h".
5060 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5061 (_initialize_i386_cygwin_tdep): New prototype.
5062 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5063 deprecated_frame_chain_valid.
5064 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5065 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5066 Rely on the SVR4 defaults.
5067 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5068 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5069
c89b70f1
AC
50702003-05-30 Andrew Cagney <cagney@redhat.com>
5071
5072 * infcall.c (call_function_by_hand): Always call
5073 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5074
85b32d22
RH
50752003-05-30 Richard Henderson <rth@redhat.com>
5076
c89b70f1
AC
5077 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5078 increment.
85b32d22 5079
bfe51b1e
JB
50802003-05-29 Jim Blandy <jimb@redhat.com>
5081
5082 Use gdbarch methods for solib stuff on PowerPC Linux.
5083 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5084 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5085 show through.
5086 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5087 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5088 giving the same effect as the #definitions above.
5089
1abf022c
AF
50902003-05-29 Adam Fedor <fedor@gnu.org>
5091
5092 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5093 (find_implementation_from_class): Replace it with the standard
5094 case i.e. do nothing.
5095
d2427a71
RH
50962003-05-29 Richard Henderson <rth@redhat.com>
5097
5098 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5099 (alpha_linux_sigtramp_offset): Use it. Make static.
5100 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5101 update for new frame model.
5102 * alpha-mdebug-tdep.c: New file.
5103 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5104 (alpha_osf1_init_abi): Install it.
5105 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5106 (linked_proc_desc_table): Remove.
5107 (alpha_frame_past_sigtramp_frame): Remove.
5108 (alpha_dynamic_sigtramp_offset): Remove.
5109 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5110 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5111 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5112 (push_sigtramp_desc): Remove.
5113 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5114 (alpha_cannot_store_register): Likewise.
5115 (alpha_sigcontext_addr): Remove.
5116 (alpha_find_saved_regs): Remove.
5117 (alpha_frame_init_saved_regs): Remove.
5118 (alpha_init_frame_pc_first): Remove.
5119 (read_next_frame_reg): Remove.
5120 (alpha_frame_saved_pc): Remove.
5121 (alpha_saved_pc_after_call): Remove.
5122 (temp_proc_desc, temp_saved_regs): Remove.
5123 (alpha_about_to_return): Remove.
5124 (cached_proc_desc): Remove.
5125 (alpha_frame_chain): Remove.
5126 (alpha_print_extra_frame_info): Remove.
5127 (alpha_init_extra_frame_info): Remove.
5128 (alpha_frame_locals_address): Remove.
5129 (alpha_frame_args_address): Remove.
5130 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5131 (alpha_push_dummy_frame): Remove.
5132 (alpha_pop_frame): Remove.
5133 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5134 (alpha_read_insn): New.
5135 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5136 for different insn encodings.
5137 (alpha_in_lenient_prologue): Remove.
5138 (struct alpha_sigtramp_unwind_cache): New.
5139 (alpha_sigtramp_frame_unwind_cache): New.
5140 (alpha_sigtramp_register_address): New.
5141 (alpha_sigtramp_frame_this_id): New.
5142 (alpha_sigtramp_frame_prev_register): New.
5143 (alpha_sigtramp_frame_unwind): New.
5144 (alpha_sigtramp_frame_p): New.
5145 (struct alpha_heuristic_unwind_cache): New.
5146 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5147 don't count nop insns that occur between functions.
5148 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5149 heuristic_proc_desc, but without the mdebug wrapping.
5150 (alpha_heuristic_frame_this_id): New.
5151 (alpha_heuristic_frame_prev_register): New.
5152 (alpha_heuristic_frame_unwind): New.
5153 (alpha_heuristic_frame_p): New.
5154 (alpha_heuristic_frame_base_address): New.
5155 (alpha_heuristic_frame_base): New.
5156 (alpha_unwind_dummy_id): New.
5157 (alpha_unwind_pc): New.
5158 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5159 frame related deprecated initializations; install replacements.
5160 (alpha_dump_tdep): Remove.
5161 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5162 (alpha_read_insn, alpha_after_prologue,
5163 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5164 alpha_heuristic_frame_prev_register,
5165 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5166 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5167 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5168 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5169
93ec1121
AC
51702003-05-29 Andrew Cagney <cagney@redhat.com>
5171
5172 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5173 dependant on the availability of ASSERT_FUNCTION.
5174 (ASSERT_FUNCTION): Do not define when there is no function name.
5175
98f08d3d
KB
51762003-05-29 Kevin Buettner <kevinb@redhat.com>
5177
5178 From Jimi X <jimix@watson.ibm.com>:
5179 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5180
0897f59b
JB
51812003-05-28 Jim Blandy <jimb@redhat.com>
5182
5183 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5184 argument to ptrace to int; the system headers should give it the
5185 right type, and pointers don't fit in ints on powerpc64-*-*.
5186
14898363
L
51872003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5188
5189 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5190 DW_TAG_catch_block.
5191
a7a48797
EZ
51922003-05-26 Elena Zannoni <ezannoni@redhat.com>
5193
5194 * stabsread.c (dbx_lookup_type): Make static.
5195 (read_type): Ditto.
5196 (add_undefined_type): Ditto.
5197 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5198 not export.
5199
f5479e9c
EZ
52002003-05-26 Elena Zannoni <ezannoni@redhat.com>
5201
5202 * hpread.c (hpread_has_name): Make static.
5203 (hpread_psymtab_to_symtab): Ditto.
5204 (file_exists): Ditto.
5205 (hpread_call_pxdb): Ditto.
5206 (hpread_pxdb_needed): Ditto.
5207 (hpread_quick_traverse): Ditto.
5208 (hpread_get_header): Ditto.
5209 (hpread_get_lntt): Ditto.
5210 (hpread_get_slt): Ditto.
5211 (class_of): Ditto.
5212
eb2e12d7
AS
52132003-05-25 Andreas Schwab <schwab@suse.de>
5214
78bf922a
AS
5215 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5216 stack_align and deprecated_extra_stack_alignment_needed.
5217 (m68k_stack_align): Delete.
5218
eb2e12d7
AS
5219 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5220 (m68k_register_virtual_size): Likewise.
5221 (altos_skip_prologue): Remove obsolete function.
5222 (isi_frame_num_args): Likewise.
5223 (news_frame_num_args): Likewise.
5224 (m68k_fix_call_dummy): Make static.
5225 (m68k_push_dummy_frame): Likewise.
5226 (m68k_pop_frame): Likewise.
5227 (m68k_skip_prologue): Likewise.
5228 (m68k_frame_init_saved_regs): Likewise.
5229 (m68k_saved_pc_after_call): Likewise.
5230 (m68k_get_longjmp_target): Make multi-arch.
5231 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5232 structure. Register m68k_get_longjmp_target if enabled.
5233 * m68k-tdep.h (struct gdbarch_tdep): Define.
5234 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5235
5236 * Makefile.in (config.status): Also depend on configure.tgt
5237 and configure.host.
5238 (m68klinux-tdep.o): Update dependencies.
5239 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5240 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5241 (M68K_LINUX_JB_PC): Define.
5242 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5243 and take additional parameter.
5244 (m68k_linux_sigtramp_saved_pc): Update.
5245 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5246 m68k_linux_pc_in_sigtramp, in_plt_section,
5247 find_solib_trampoline_target.
5248 * config/m68k/tm-linux.h: Don't include any tm headers.
5249 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5250 (JB_ELEMENT_SIZE): Likewise.
5251 (JB_PC): Likewise.
5252 (GET_LONGJMP_TARGET): Likewise.
5253 (IN_SIGTRAMP): Likewise.
5254 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5255
eb2c22dc
MK
52562003-05-25 Mark Kettenis <kettenis@gnu.org>
5257
5258 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5259 (sparc32_push_arguments): Re-implement by calling
5260 sparc32_do_push_arguments.
5261
44b7b84e
MK
52622003-05-25 Mark Kettenis <kettenis@gnu.org>
5263
5264 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5265 SPARC_O1_REGNUM): New defines.
5266 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5267 (sparc32_store_return_value): New function.
5268 (sparc_extract_struct_value_address): Rewrite to operate on a
5269 regcache.
5270 (sparc_gdbarch_init): Don't set
5271 deprecated_extract_struct_value_address. Set
5272 extract_struct_value_address instead. Don't set
5273 deprecated_extract_return_value and deprecated_store_return_value
5274 for 32-bit targets. Set extract_return_value and
5275 store_return_value instead.
5276 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5277 DEPRECTAED_EXTRACT_RETURN_VALUE,
5278 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5279 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5280 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5281 (sparc_store_return_value): Remove prototype.
5282 (sparc32_store_return_value): New prototype.
5283 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5284 Adjust prototypes.
5285
f6ad61e3
MK
52862003-05-24 Mark Kettenis <kettenis@gnu.org>
5287
5288 * sparcnbsd-tdep.c: Include "gdb_string.h".
5289
b276f1bb
AC
52902003-05-23 Andrew Cagney <cagney@redhat.com>
5291
5292 * p-valprint.c (pascal_val_print): Replace extract_address with
5293 the inline equivalent extract_unsigned_integer.
5294 * jv-valprint.c (java_value_print): Ditto.
5295 * ada-valprint.c (ada_val_print_1): Ditto.
5296 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5297
e76c5fcc
TR
52982003-05-23 Theodore A. Roth <troth@openavr.org>
5299
5300 * blockframe.c (frameless_look_for_prologue): Remove unused
5301 after_prologue variable.
5302
2cdd89cb
MK
53032003-05-23 Mark Kettenis <kettenis@gnu.org>
5304
5305 * blockframe.c (get_pc_function_start): Rewrite to avoid
5306 asignments in if-statements.
5307
182d43bc
EZ
53082003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5309
5310 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 5311 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
5312 files, don't relocate absolute symbols (and do use mst_abs).
5313
e8f3fcdd
AC
53142003-05-23 Andrew Cagney <cagney@redhat.com>
5315
5316 * objc-lang.c: Include "gdb_assert.h".
5317 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5318 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5319 (gdb_check, gdb_check_fatal): Delete functions.
5320 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5321 gdb_assert.
5322 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5323 * Makefile.in (objc-lang.o): Update dependencies.
5324
3c23e6fb
ILT
53252003-05-22 Ian Lance Taylor <ian@airs.com>
5326
5327 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5328 with fprintf_filtered, not fprintf_unfiltered.
5329
af1342ab
AC
53302003-05-22 Andrew Cagney <cagney@redhat.com>
5331
5332 * stack.c (frame_info): Inline extract_address, replacing it with
5333 extract_unsigned_integer.
5334 * findvar.c (unsigned_pointer_to_address): Ditto.
5335 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5336 * dwarf2expr.c (dwarf2_read_address): Ditto.
5337 * frame.c (frame_pc_unwind): Update comment.
5338 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5339
47e242ec
JJ
53402003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5341
5342 * infptrace.c (detach): Call print_sys_errmsg rather than
5343 perror_with_name to issue warning message when errno is non-zero
5344 after calling ptrace detach.
5345
e2ac8128
JB
53462003-05-21 J. Brobecker <brobecker@gnat.com>
5347
5348 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5349 macro definitions from here...
5350 * hppa-tdep.c: ...to there.
5351
92b3541e
KB
53522003-05-20 Kevin Buettner <kevinb@redhat.com>
5353
5354 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5355 register_ptrace_addr(). Fix all callers.
5356
55809acb
AS
53572003-05-21 Andreas Schwab <schwab@suse.de>
5358
5359 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5360 dependencies.
5361 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5362 end.
5363 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5364 (_initialize_m68k_linux_tdep): New function.
5365 (m68k_linux_frame_saved_pc): Make static.
5366 (m68k_linux_extract_return_value): Likewise.
5367 (m68k_linux_store_return_value): Likewise.
5368 (m68k_linux_extract_struct_value_address): Likewise.
5369 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5370 Remove.
5371 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5372 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5373 (DEPRECATED_FRAME_SAVED_PC): Remove.
5374
0fbc10f7
KW
53752003-05-20 Kris Warkentin <kewarken@qnx.com>
5376
5377 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5378 regset numbering rather than our own.
5379
58da2eb2
DC
53802003-05-19 David Carlton <carlton@bactrian.org>
5381
5382 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5383
1fcb5155
DC
53842003-05-19 David Carlton <carlton@bactrian.org>
5385
5386 Partial fix for PR c++/827.
5387 * cp-support.h: Include symtab.h.
5388 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5389 * cp-namespace.c: Update contributors.
5390 (cp_lookup_symbol_nonlocal): New.
5391 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5392 (lookup_symbol_file): Ditto.
5393 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5394 * block.h: Declare block_scope, block_using, block_global_block.
5395 * block.c (block_scope): New.
5396 (block_using, block_global_block): Ditto.
5397 * Makefile.in (cp_support_h): Depend on symtab_h.
5398 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5399
5f9a71c3
DC
54002003-05-19 David Carlton <carlton@bactrian.org>
5401
5402 * language.h (struct language_defn): Add 'la_value_of_this'
5403 and 'la_lookup_symbol_nonlocal' members.
5404 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5405 lookup_symbol_static, lookup_symbol_global,
5406 lookup_symbol_aux_block.
5407 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5408 if we should search fields of this and how to do static/global
5409 lookup.
5410 (lookup_symbol_aux_block): Make extern.
5411 (basic_lookup_symbol_nonlocal): New.
5412 (lookup_symbol_static, lookup_symbol_global): Ditto.
5413 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5414 'la_lookup_symbol_nonlocal' members.
5415 * c-lang.c (c_language_defn, cplus_language_defn)
5416 (asm_language_defn, minimal_language_defn): Ditto.
5417 * jv-lang.c (java_language_defn): Ditto.
5418 * language.c (unknown_language_defn, auto_language_defn)
5419 (local_language_defn): Ditto.
5420 * m2-lang.c (m2_language_defn): Ditto.
5421 * objc-lang.c (objc_language_defn): Ditto.
5422 * scm-lang.c (scm_language_defn): Ditto.
5423 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5424 * p-lang.c (pascal_language_defn): Ditto for both.
5425 * Makefile.in (f-lang.o): Depend on value_h.
5426 (p-lang.o): Ditto.
5427
89a9d1b1
DC
54282003-05-19 David Carlton <carlton@bactrian.org>
5429
5430 * block.h: Declare block_static_block.
5431 * block.c (block_static_block): New.
5432 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5433 lookup_symbol_aux_local, calling block_static_block instead.
5434 (lookup_symbol_aux_local): Delete 'static_block' argument.
5435
eed3f8ab
DC
54362003-05-19 David Carlton <carlton@bactrian.org>
5437
5438 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5439
a09d8bda
ML
54402003-05-19 Michal Ludvig <mludvig@suse.cz>
5441
5442 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5443 register numbers mapping.
5444
69636828
AF
54452003-05-18 Adam Fedor <fedor@gnu.org>
5446
5447 * symtab.c (completion_list_objc_symbol): New function.
5448 (make_symbol_completion_list): Use it to add ObjC symbols
5449 when looking though the list.
5450 (language_search_unquoted_string): New function.
5451 (make_file_symbol_completion_list): Use it.
5452
55baeb84
AS
54532003-05-18 Andreas Schwab <schwab@suse.de>
5454
d0b45d99
AS
5455 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5456 dependencies.
5457 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5458 as m68k_linux_extract_return_value.
5459 (DEPRECATED_STORE_RETURN_VALUE): Define as
5460 m68k_linux_store_return_value.
5461 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5462 m68k_linux_extract_struct_value_address.
5463 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5464 get_next_frame, get_frame_base, get_frame_pc.
5465 (m68k_linux_frame_saved_pc): Use get_frame_base.
5466 (m68k_linux_extract_return_value): New function.
5467 (m68k_linux_store_return_value): New function.
5468 (m68k_linux_extract_struct_value_address): New function.
5469 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5470
55baeb84
AS
5471 * c-exp.y (typebase): Remove duplicate occurence of
5472 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 5473 of lookup_signed_typename.
55baeb84 5474
b6b08ebf
MK
54752003-05-18 Mark Kettenis <kettenis@gnu.org>
5476
5477 * dwarf2loc.c (find_location_expression): Change type of second
5478 argument to `size_t *'.
5479 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5480 for size variable.
5481
5ad1c190
DC
54822003-05-18 David Carlton <carlton@bactrian.org>
5483
5484 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5485 'linkage_name'. Add comment.
5486 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5487 'linkage_name'.
5488 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5489 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5490 (lookup_block_symbol): Ditto.
5491
b8b527c5
AC
54922003-05-16 Andrew Cagney <cagney@redhat.com>
5493
5494 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5495 * gdbarch.h, gdbarch.c: Re-generate.
5496 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5497 * TODO (REGISTER_BYTES): Delete reference.
5498 * alpha-tdep.c (alpha_gdbarch_init): Update.
5499 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5500 * x86-64-tdep.c (x86_64_init_abi): Update.
5501 * vax-tdep.c (vax_gdbarch_init): Update.
5502 * v850-tdep.c (v850_gdbarch_init): Update.
5503 * sparc-tdep.c (sparc_gdbarch_init): Update.
5504 * sh-tdep.c (sh_gdbarch_init): Update.
5505 * s390-tdep.c (s390_gdbarch_init): Update.
5506 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5507 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5508 (ns32k_gdbarch_init_32382): Update.
5509 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5510 * mcore-tdep.c (mcore_gdbarch_init): Update.
5511 * m68k-tdep.c (m68k_gdbarch_init): Update.
5512 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5513 * ia64-tdep.c (ia64_gdbarch_init): Update.
5514 * i386-tdep.c (i386_gdbarch_init): Update.
5515 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5516 * hppa-tdep.c (hppa_gdbarch_init): Update.
5517 * h8300-tdep.c (h8300_gdbarch_init): Update.
5518 * frv-tdep.c (frv_gdbarch_init): Update.
5519 * cris-tdep.c (cris_gdbarch_init): Update.
5520 * avr-tdep.c (avr_gdbarch_init): Update.
5521 * arm-tdep.c (arm_gdbarch_init): Update.
5522 * sparc-tdep.c (sparc_pop_frame): Update.
5523 * rs6000-tdep.c (rs6000_pop_frame): Update.
5524 * remote.c (init_remote_state): Update.
5525 (remote_prepare_to_store): Update.
5526 * remote-vx.c (vx_prepare_to_store): Update.
5527 * remote-sds.c (sds_fetch_registers): Update.
5528 (sds_prepare_to_store): Update.
5529 * remote-array.c: Update.
5530 * regcache.c (init_legacy_regcache_descr): Update.
5531 (init_regcache_descr): Update.
5532 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5533 (mips_o64_extract_return_value): Update.
5534 * irix5-nat.c (fetch_core_registers): Update.
5535 * irix4-nat.c (fetch_core_registers): Update.
5536 * i386-tdep.h: Update.
5537 * hppa-tdep.c (pa_do_registers_info): Update.
5538 (pa_do_strcat_registers_info): Update.
5539 * cris-tdep.c (cris_register_bytes_ok): Update.
5540 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5541 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5542 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5543 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5544 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5545 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5546 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5547 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5548 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5549 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5550 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5551 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5552 (REGISTER_BYTES_OK): Update.
5553 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5554 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5555
ee2842e2
ILT
55562003-05-16 Ian Lance Taylor <ian@airs.com>
5557
5558 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5559 (vax_print_insn, print_insn_arg): Remove static functions.
5560 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5561 print_insn_vax from opcodes library.
5562 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5563
973177d3
AC
55642003-05-15 Andrew Cagney <cagney@redhat.com>
5565
aaab4dba
AC
5566 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5567 * target.h (memory_breakpoint_from_pc): Delete declaration.
5568 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5569 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5570 * monitor.c (monitor_insert_breakpoint): Use
5571 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5572 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5573 * gdbarch.h, gdbarch.c: Re-generate.
5574 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5575 (sparc_gdbarch_init): Set breakpoint_from_pc to
5576 sparc_breakpoint_from_pc.
5577 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5578 (BREAKPOINT_FROM_PC): Define.
5579 (sparc_breakpoint_from_pc): Declare.
5580 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5581 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5582 (BREAKPOINT_FROM_PC): Define.
5583 (BREAKPOINT): Delete macro.
5584 * target.h: Update comment.
5585 * s390-tdep.c (s390_gdbarch_init): Update comments.
5586 * remote.c: Update comments.
5587 * remote-mips.c: Update comments.
5588 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5589 * mem-break.c: Update comment.
5590 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5591 (ia64_memory_insert_breakpoint): Update.
5592 * config/sparc/tm-sparc.h: Update comment.
5593 * config/pa/tm-hppa64.h: Update comment.
5594 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5595 (rs6000_breakpoint_from_pc): Update.
5596 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5597 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5598 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5599 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5600 (mips_breakpoint_from_pc): Update.
5601 (mips_dump_tdep): Update.
5602
e06963ff
AC
5603 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5604 * minsyms.c (lookup_minimal_symbol): Inline
5605 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5606
973177d3
AC
5607 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5608 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5609 * p-lang.c (pascal_printstr): Ditto.
5610 * objc-lang.c (objc_printstr): Ditto.
5611 * m2-lang.c (m2_printstr): Ditto.
5612 * jv-valprint.c (java_print_value_fields): Ditto.
5613 * f-lang.c (f_printstr): Ditto.
5614 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5615 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5616 for repeat_count_threshold.
5617 * Makefile.in (cp-valprint.o): Update dependencies.
5618
5ea2bd7f 56192003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5620
5ea2bd7f
JJ
5621 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5622 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
5623 they start with mov r2,r12. Support skipping over indirect stores
5624 of the input registers. Upon hitting a non-nop branch instruction
5625 or predicated instruction, bail out by setting lim_pc to the current
5626 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
5627 beyond our calculated value and we have trust_limit set,
5628 use the lim_pc value.
5629
cc8c88f3
AC
56302003-05-15 Andrew Cagney <cagney@redhat.com>
5631
5632 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5633 generic_find_dummy_frame.
5634 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5635 (deprecated_generic_find_dummy_frame): Update.
5636 (deprecated_read_register_dummy): Update.
5637 * frame.c (deprecated_generic_get_saved_register): Update.
5638
909cd28e
TR
56392003-05-15 Theodore A. Roth <troth@openavr.org>
5640
5641 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5642 (avr_gdbarch_init): Set breakpoint_from_pc method.
5643
b923b08d
AC
56442003-05-15 Andrew Cagney <cagney@redhat.com>
5645
5646 * regcache.c (build_regcache): Set deprecated_register_valid
5647 directly.
5648 (deprecated_grub_regcache_for_register_valid): Delete function.
5649 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5650 declaration.
5651
ae2f03ac 56522003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
5653
5654 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
5655 * symtab.c (lookup_symbol_aux): Delete calls to
5656 lookup_symbol_aux_minsyms.
5657 (lookup_symbol_aux_minsyms): Comment out function and
5658 prototype. Delete lookup by mangled name.
ae2f03ac 5659
18ec9831
KB
56602003-05-14 Kevin Buettner <kevinb@redhat.com>
5661
5662 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5663 correctly indicate an empty stack and ``stack_allocated'' to the
5664 indicate the number of elements initially allocated.
5665 (dwarf_expr_grow_stack): Simplify method for computing new
5666 stack size. Don't loop infinitely if ``stack_len'' is zero.
5667 (execute_stack_op): Move ``ctx->in_reg'' initialization
5668 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5669 be used in conjuction with DW_OP_piece. Revise error message
5670 accordingly.
5671
de18ac1f
TR
56722003-05-14 Theodore A. Roth <troth@openavr.org>
5673
5674 * MAINTAINERS: Update my email address.
5675 * avr-tdep.c: Ditto.
5676
176620f1
EZ
56772003-05-14 Elena Zannoni <ezannoni@redhat.com>
5678
5679 * symtab.h (enum domain_enum): Rename from namespace_enum.
5680 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5681 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5682 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5683 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5684 TYPES_NAMESPACE, METHODS_NAMESPACE.
5685 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5686 (struct symbol, struct partial_symbol): Rename field
5687 'namespace_enum namespace' to 'domain_enum domain'.
5688 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5689 Delete old define kludge for namespace.
5690
5691 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5692 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5693 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5694 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5695 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5696 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5697 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5698 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5699 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5700 occurrences of the above.
5701
b7f31508
ILT
57022003-05-14 Ian Lance Taylor <ian@airs.com>
5703
5704 * Makefile.in (install-only): Use $(SHELL) when running
5705 mkinstalldirs.
5706
2fdbdd39
ILT
57072003-05-13 Ian Lance Taylor <ian@airs.com>
5708
a208d82c
ILT
5709 * MAINTAINERS (write after approval): Add myself.
5710
2fdbdd39
ILT
5711 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5712 second and third arguments.
5713 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5714 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5715
fbd9dcd3
AC
57162003-05-13 Andrew Cagney <cagney@redhat.com>
5717
5718 * defs.h (store_address): Delete declaration.
5719 findvar.c (store_address): Delete function.
5720 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5721 store_unsigned_integer.
5722 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5723 * v850-tdep.c (v850_push_arguments): Ditto.
5724 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5725 * sh-tdep.c (sh64_get_saved_register): Ditto.
5726 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5727 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5728 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5729 (mips_get_saved_register): Ditto.
5730 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5731 (find_func_descr, ia64_push_arguments): Ditto.
5732 * i386-tdep.c (i386_push_arguments): Ditto.
5733 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5734 * frv-tdep.c (frv_push_arguments): Ditto.
5735 * frame.c (legacy_saved_regs_prev_register): Ditto.
5736 (deprecated_generic_get_saved_register): Ditto.
5737 * findvar.c (unsigned_address_to_pointer): Ditto.
5738 * dwarf2read.c (dwarf2_const_value): Ditto.
5739 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5740 * alpha-tdep.c (alpha_push_arguments): Ditto.
5741
6760f9e6
JB
57422003-05-12 J. Brobecker <brobecker@gnat.com>
5743
5744 * NEWS: Mention that the hppa-hpux port has been partially
5745 multiarched (32bit ABIT only, so far).
5746
30e221b4
AC
57472003-05-11 Andrew Cagney <cagney@redhat.com>
5748
5749 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5750 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5751 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5752 sim/testsuite/sim/arm/misaligned2.ms, and
5753 sim/testsuite/sim/arm/misaligned3.ms.
5754 * disasm.h (struct ui_file): Add opaque struct declaration.
5755 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5756 * frame.h (struct ui_file): Ditto.
5757
dea7f9ba
MK
57582003-05-11 Mark Kettenis <kettenis@gnu.org>
5759
5760 * value.h: Pretty print.
5761
01986c48
MK
57622003-05-10 Mark Kettenis <kettenis@gnu.org>
5763
5764 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5765
123a958e
AC
57662003-05-08 Andrew Cagney <cagney@redhat.com>
5767
5768 * regcache.h (max_register_size): Delete declaration.
5769 * regcache.c (max_register_size): Delete function.
5770 (struct regcache_descr): Delete field "max_register_size".
5771 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5772 registers fit in MAX_REGISTER_SIZE.
5773 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5774 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5775 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5776 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5777 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5778 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5779 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5780 * dve3900-rom.c, hppa-tdep.c: Ditto.
5781
eb294659
DC
57822003-05-08 David Carlton <carlton@math.stanford.edu>
5783
5784 * valops.c (push_word): Fix typo.
5785
d9d9c31f
AC
57862003-05-08 Andrew Cagney <cagney@redhat.com>
5787
5788 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5789 * gdbarch.h: Re-generate.
5790 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5791 (legacy_max_register_raw_size): Delete declaration.
5792 * regcache.c (legacy_max_register_raw_size): Delete function.
5793 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5794 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5795 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5796 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5797 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5798 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5799 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5800 * findvar.c, dwarf2cfi.c: Ditto.
5801
22540ece
AC
58022003-05-08 Andrew Cagney <cagney@redhat.com>
5803
5804 * mips-tdep.c (read_signed_register): New function, moved to here
5805 from "regcache.c".
5806 (read_signed_register_pid): Ditto.
5807 * regcache.c (read_signed_register_pid): Delete function, moved to
5808 "mips-tdep.c".
5809 (read_signed_register): Ditto.
5810 * regcache.h (read_signed_register): Delete declaration.
5811 (read_signed_register_pid): Delete declaration.
5812
0c92afe8
AC
58132003-05-08 Andrew Cagney <cagney@redhat.com>
5814
5815 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5816 * gdbarch.h: Re-generate.
5817 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5818 (legacy_max_register_virtual_size): Delete declaration.
5819 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5820 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5821 * tracepoint.c (memrange_sortmerge): Ditto.
5822 * sparc-tdep.c (sparc_print_registers): Ditto.
5823 * regcache.c (legacy_max_register_virtual_size): Delete function.
5824
6037b830
JB
58252002-05-08 J. Brobecker <brobecker@gnat.com>
5826
5827 * fork-child.c (escape_bang_in_quoted_argument): New function.
5828 (fork_inferior): Escape '!' characters in quoted arguments
5829 only when needed.
5830
5d62c8b1
JB
58312003-05-08 J. Brobecker <brobecker@gnat.com>
5832
5833 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5834 the language of the CU is not currently supported by GDB.
5835
20a0e81d
JB
58362003-05-08 J. Brobecker <brobecker@gnat.com>
5837
5838 * defs.h (language): Add language_minimal enum value.
5839 * c-lang.c (minimal_language_defn): New language definition.
5840 (_initialize_c_language): Add the new minimal language to the list
5841 of languages known to GDB.
5842
710ee10a
KB
58432003-05-08 Kevin Buettner <kevinb@redhat.com>
5844
5845 * frame.c (get_frame_type): Don't attempt to lazily initialize
5846 frame's unwinder for legacy frames.
5847
1750fa04
AC
58482003-05-07 Andrew Cagney <cagney@redhat.com>
5849
5850 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5851 and "regcache" parameters.
5852 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5853
ddf9f258 58542003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
5855
5856 * dwarf2read.c (dwarf_decode_lines): Only use output of
5857 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
5858 the current address.
5859
87767c29
AC
58602003-05-07 Andrew Cagney <cagney@redhat.com>
5861
5862 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5863 code.
5864
5e7b2f39
JB
58652003-05-07 Jim Blandy <jimb@redhat.com>
5866
5867 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5868 'maint info symtabs' and 'maint info psymtabs'.
5869 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5870 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5871 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5872 Declarations updated.
5873 * maint.c (maintenance_list_command): Delete.
5874 (_initialize_maint_cmds): Update calls to add_cmd.
5875 * gdbcmd.h (maintenancelistlist): Delete declaration.
5876 * cli/cli-cmds.c (maintenancelistlist): Delete.
5877 (init_cmd_lists): Don't initialize it.
5878 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5879
f6684c31
AC
58802003-05-07 Andrew Cagney <cagney@redhat.com>
5881
5882 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5883 "regcache".
5884 (d10v_print_registers_info): Update.
5885 (d10v_dmap_register, d10v_imap_register): Delete functions.
5886 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5887 and "imap_register".
5888 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5889 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5890 * arch-utils.c (generic_remote_translate_xfer_address): Add
5891 "regcache" and "gdbarch" parameters.
5892 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5893 parameter. Change class to multi-arch.
5894 * gdbarch.h, gdbarch.c: Re-generate.
5895 * remote.c (remote_xfer_memory): Use
5896 gdbarch_remote_translate_xfer_address.
8ffd9b1b 5897
e4846b08
JJ
58982003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5899
5900 * infrun.c (prev_pc): Move declaration ahead of proceed().
5901 (proceed): Refresh prev_pc value before resuming.
5902 (stop_stepping): Remove code to refresh prev_pc.
5903
6b71b8ac
KW
59042003-05-06 Kris Warkentin <kewarken@qnx.com>
5905
5906 * nto-tdep.c: Removed stray comment.
5907
47979a4b
KW
59082003-05-06 Kris Warkentin <kewarken@qnx.com>
5909
5910 * i386-nto-tdep.c: Fix old K&R function definitions.
5911 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5912 Also change add_show_from_set() call to add_setshow_cmd().
5913 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5914
00905d52
AC
59152003-05-05 Andrew Cagney <cagney@redhat.com>
5916
5917 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5918 (fprint_dummy_frames): New function.
5919 (maintenance_print_dummy_frames): New function.
5920 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5921 * frame.c (fprint_frame_id): Make global.
5922 * frame.h (fprint_frame_id): Declare.
5923 * Makefile.in (dummy-frame.o): Update dependencies.
5924
b1e29e33
AC
59252003-05-05 Andrew Cagney <cagney@redhat.com>
5926
5927 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5928 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5929 SIZEOF_CALL_DUMMY_WORDS.
5930 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5931 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5932 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5933 CALL_DUMMY_BREAKPOINT_OFFSET.
5934 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5935 CALL_DUMMY_START_OFFSET.
5936 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5937 * gdbarch.h, gdbarch.c: Re-generate.
5938 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5939 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5940 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5941 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5942 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5943 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5944 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5945 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5946 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5947 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5948 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5949 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5950 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5951 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5952 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
5953
59542003-05-05 Kris Warkentin <kewarken@qnx.com>
5955
5956 * configure.tgt: Add i[3456]86-*-nto*.
5957 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5958 * nto-tdep.c: New file. Neutrino target support routines.
5959 * nto-tdep.h: New file. Neutrino target header.
5960 * config/tm-qnxnto.h: New file.
5961 * config/i386/i386nto.mt: New file.
5962 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 5963
0ce3d317
AC
59642003-05-04 Andrew Cagney <cagney@redhat.com>
5965
5966 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5967 (load_infrun_state): Ditto.
5968 (struct thread_info): Drop "prev_func_name" field.
5969 * thread.c (load_infrun_state): Update.
5970 (save_infrun_state): Update.
5971 * infrun.c (prev_func_name): Delete variable.
5972 (init_wait_for_inferior): Do not clear prev_func_name.
5973 (stop_stepping, keep_going, context_switch): Do not swap
5974 prev_func_name.
5975 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5976 instead of PC_IN_SIGTRAMP.
5977
46654a5b
AC
59782003-05-04 Andrew Cagney <cagney@redhat.com>
5979
5980 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5981 REGISTER_BYTE with register_offset_hack.
5982 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5983 that REGISTER_BYTE is consistent with the regcache.
5984 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5985 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 5986
14b08c1b
MK
59872003-05-04 Mark Kettenis <kettenis@gnu.org>
5988
04c8243f
MK
5989 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5990 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5991
14b08c1b
MK
5992 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5993
c7a11e01
JB
59942003-05-03 J. Brobecker <brobecker@gnat.com>
5995
5996 From Thierry Schneider <tpschneider1@yahoo.com>
5997 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5998 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5999 (mi-cmd-symbol.o): Add rule.
6000
7043d8dc
AC
60012003-05-03 Andrew Cagney <cagney@redhat.com>
6002
6003 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6004 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6005 * gdbarch.h, gdbarch.c: Re-generate.
6006 * d10v-tdep.c (d10v_push_dummy_code): New function.
6007 (d10v_gdbarch_init): Set push_dummy_code.
6008 * infcall.c (legacy_push_dummy_code): New function.
6009 (generic_push_dummy_code): New function.
6010 (push_dummy_code): New function.
6011 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6012 instead of dummy_addr, to push_dummy_call. Move call to
6013 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6014 switch.
6015 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6016
92bf2b80
AC
60172003-05-03 Andrew Cagney <cagney@redhat.com>
6018
6019 * disasm.h (print_insn): Declare.
6020 * disasm.c (init_gdb_disassemble_info): New function.
6021 (gdb_disassembly): Call init_gdb_disassemble_info.
6022 (gdb_print_insn): New function.
6023 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6024 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6025 * mcore-tdep.c: Include "disasm.h"
6026 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6027 * d10v-tdep.c: Include "disasm.h".
6028 (display_trace): Call gdb_print_insn, instead of print_insn.
6029 (print_insn): Delete function.
6030 * printcmd.c: Include "disasm.h".
6031 (print_insn): Delete function.
6032 (print_formatted): Call gdb_print_insn, instead of print_insn.
6033 * Makefile.in (printcmd.o): Update dependencies.
6034 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 6035
27d94c49
AC
60362003-05-02 Andrew Cagney <cagney@redhat.com>
6037
82de1e5b
AC
6038 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6039 PC_REGNUM, re-indent.
6040 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6041 PC_REGNUM isn't set.
6042
27d94c49
AC
6043 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6044 * gdbarch.h, gdbarch.c: Re-generate.
6045 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6046 register_virtual_size, pc_regnum, or register_bytes.
6047 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6048 (d10v_register_type): Use D10V_PC_REGNUM.
6049 (d10v_print_registers_info, d10v_read_pc): Ditto.
6050 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6051 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6052
a9c0dc7f
DC
60532003-05-02 David Carlton <carlton@bactrian.org>
6054
6055 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6056 the name with mstrsave.
6057
e33d66ec
EZ
60582003-05-02 Elena Zannoni <ezannoni@redhat.com>
6059
6060 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6061 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6062 (host_charset_name, target_charset_name): New vars for use by
6063 set/show commands.
6064 (host_charset_enum, target_charset_enum): New enums for set/show
6065 commands.
6066 (set_charset_sfunc, set_host_charset_sfunc,
6067 set_target_charset_sfunc): New functions.
6068 (set_host_charset, set_target_charset): Make static.
6069 (list_charsets, set_host_charset_command,
6070 set_target_charset_command): Delete functions.
6071 (show_charset_command): Rewrite as....
6072 (show_charset): Hook this up with the set/show command mechanism.
6073 (_initialize_charset): Change names of charsets to match the
6074 set/show enums. Use host_charset_name and target_charset_name.
6075 Use set/show mechanism for charset, host-charset, target-charset
6076 commands. Do not make 'show host-charset' and 'show
6077 target-charset' be aliases of 'show charset'.
6078
6079 * charset.h (set_host_charset, set_target_charset): Don't export,
6080 they are not used outside the file.
6081
2b6fd0d8
AC
60822003-05-01 Andrew Cagney <cagney@redhat.com>
6083
6084 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6085 (gdb_disassembly): Make "di" non static, always initialize and
6086 cleanup. Always use dis_asm_read_memory.
6087 (gdb_dis_asm_read_memory): Delete function.
6088
6ae2f580
AC
60892003-05-01 Andrew Cagney <cagney@redhat.com>
6090
6091 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6092 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6093
810ecf9f
AC
60942003-04-30 Andrew Cagney <cagney@redhat.com>
6095
6096 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6097 "tm_print_insn_info".
6098 (TARGET_PRINT_INSN_INFO): Delete macro.
6099 (dis_asm_read_memory): Delete function declaration.
6100 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6101 (tm_print_insn_info): Delete variable definition.
6102 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6103 * gdbarch.h, gdbarch.c: Re-generate.
6104 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6105 "deprecated_tm_print_insn_info".
6106 * mcore-tdep.c (mcore_dump_insn): Ditto.
6107 * mips-tdep.c (mips_gdbarch_init): Ditto.
6108 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6109 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6110 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6111 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6112 instead of TARGET_PRINT_INSN_INFO, add comment.
6113 * s390-tdep.c (s390_get_frame_info): Instead of
6114 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6115 (s390_check_function_end, s390_is_sigreturn): Ditto.
6116 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6117 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6118 * disasm.c: Include "gdbcore.h".
6119 (_initialize_disasm): New function, initialize
6120 "deprecated_tm_print_insn_info".
6121 (deprecated_tm_print_insn_info): New variable.
6122 (dis_asm_read_memory): Moved from "corefile.c", made static.
6123 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6124 * Makefile.in (disasm.o): Update dependencies.
6125
07020390
AC
61262003-04-30 Andrew Cagney <cagney@redhat.com>
6127
6128 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6129
a9fa03de
AF
61302003-04-29 Adam Fedor <fedor@gnu.org>
6131
6132 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6133 * infcall.c (find_function_addr): Make non-static.
6134 * infcall.h (find_function_addr): Declare.
6135 * Makefile.in (eval.o): Update dependencies.
6136
1bae87b9
AF
61372003-04-28 Adam Fedor <fedor@gnu.org>
6138
6139 * symtab.c (symbol_find_demangled_name): Check for and demangle
6140 ObjC symbols.
6141 (symbol_init_demangled_name): Init for language_objc as well.
6142
0ba6dca9
AC
61432003-04-28 Andrew Cagney <cagney@redhat.com>
6144
6145 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6146 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6147 * gdbarch.h, gdbarch.c: Re-generate.
6148 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6149 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6150 * inferior.h (deprecated_read_fp): Rename read_fp.
6151 (generic_target_read_fp): Delete declaration.
6152 * regcache.c (generic_target_read_fp): Delete function.
6153 (deprecated_read_fp): Replace read_fp, use
6154 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6155 * d10v-tdep.c (d10v_read_fp): Delete function.
6156 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6157
6158 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6159 deprecated_target_read_fp to generic_target_read_fp.
6160 * sh-tdep.c (sh_gdbarch_init): Ditto.
6161 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6162 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6163 * frv-tdep.c (frv_gdbarch_init): Ditto.
6164
6165 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6166 deprecated_fp_regnum.
6167 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6168 * vax-tdep.c (vax_gdbarch_init): Ditto.
6169 * v850-tdep.c (v850_gdbarch_init): Ditto.
6170 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6171 * sh-tdep.c (sh_gdbarch_init): Ditto.
6172 * s390-tdep.c (s390_gdbarch_init): Ditto.
6173 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6174 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6175 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6176 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6177 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6178 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6179 * i386-tdep.c (i386_gdbarch_init): Ditto.
6180 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6181 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6182 * frv-tdep.c (frv_gdbarch_init): Ditto.
6183 * cris-tdep.c (cris_gdbarch_init): Ditto.
6184 * avr-tdep.c (avr_gdbarch_init): Ditto.
6185 * arm-tdep.c (arm_gdbarch_init): Ditto.
6186 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6187
6188 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6189 * v850-tdep.c (v850_gdbarch_init): Ditto.
6190 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6191 * sh-tdep.c (sh_gdbarch_init): Ditto.
6192 * s390-tdep.c (s390_gdbarch_init): Ditto.
6193 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6194 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6195 * mips-tdep.c (mips_gdbarch_init): Ditto.
6196 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6197 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6198 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6199 * frv-tdep.c (frv_gdbarch_init): Ditto.
6200 * avr-tdep.c (avr_gdbarch_init): Ditto.
6201 * arm-tdep.c (arm_gdbarch_init): Ditto.
6202
6203 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6204 DEPRECATED_FP_REGNUM.
6205 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6206 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6207 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6208 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6209 (sparc32_register_virtual_type): Ditto.
6210 * sh-tdep.c (sh64_frame_chain): Ditto.
6211 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6212 (sh_nofp_frame_init_saved_regs): Ditto.
6213 (sh64_nofp_frame_init_saved_regs): Ditto.
6214 (sh_fp_frame_init_saved_regs): Ditto.
6215 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6216 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6217 * procfs.c (procfs_fetch_registers): Ditto.
6218 (procfs_store_registers): Ditto.
6219 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6220 (store_inferior_registers, fetch_core_registers): Ditto.
6221 (fetch_kcore_registers, clear_regs): Ditto.
6222 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6223 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6224 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6225 * nlm/i386.c (do_status): Ditto.
6226 * mipsv4-nat.c (supply_gregset): Ditto.
6227 * mips-tdep.c: Ditto for comments.
6228 * mips-nat.c (fetch_inferior_registers): Ditto.
6229 (store_inferior_registers, fetch_core_registers): Ditto.
6230 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6231 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6232 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6233 (i386_do_pop_frame, i386_register_type): Ditto.
6234 * hppa-tdep.c (hppa_frame_chain): Ditto.
6235 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6236 (hppa_pop_frame, hppa_read_fp): Ditto.
6237 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6238 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6239 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6240 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6241 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6242 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6243 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6244 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6245 * blockframe.c: Ditto for comments.
6246 * arch-utils.h: Ditto for comments.
6247 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6248 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6249 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6250 * alpha-tdep.h: Ditto for comments.
6251 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6252 (alpha_cannot_store_register): Ditto.
6253 (alpha_push_dummy_frame): Ditto.
6254 * alpha-nat.c (supply_gregset): Ditto.
6255
6256 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6257 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6258 * config/sparc/tm-sparc.h: Update comment.
6259
6260 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6261 deprecated_read_fp instead of TARGET_READ_FP.
6262 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6263 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6264 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6265 deprecated_read_fp instead of read_fp.
6266 * s390-tdep.c (s390_push_arguments): Ditto.
6267 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6268 * frame.h: Ditto in comments.
6269 * frame.c (legacy_get_prev_frame): Ditto.
6270 * dummy-frame.c (dummy_frame_this_id): Ditto.
6271 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6272
d7a27068
AC
62732003-04-28 Andrew Cagney <cagney@redhat.com>
6274
6275 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6276 * gdbarch.h, gdbarch.c: Re-generate.
6277 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6278 * vax-tdep.c (_initialize_vax_tdep): Update.
6279 * v850-tdep.c (_initialize_v850_tdep): Update.
6280 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6281 * s390-tdep.c (_initialize_s390_tdep): Update.
6282 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6283 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6284 * mips-tdep.c (_initialize_mips_tdep): Update.
6285 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6286 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6287 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6288 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6289 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6290 * frv-tdep.c (_initialize_frv_tdep): Update.
6291 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6292 (_initialize_cris_tdep): Update.
6293 * arch-utils.c (legacy_print_insn): Update.
6294 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6295
d2630e69
AF
62962003-04-26 Adam Fedor <fedor@gnu.org>
6297
6298 * linespec.c (decode_objc): New function to decode ObjC calls
6299 (decode_line_1): Check for ObjC calls (using decode_objc)
6300 * Makefile (linespec.o): Update dependencies.
6301
3086aeae
DJ
63022003-04-26 Daniel Jacobowitz <drow@mvista.com>
6303
6304 * breakpoint.h (struct breakpoint_ops): New.
6305 (struct breakpoint): Add ops member.
6306
6307 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6308 (mention): Use new breakpoint ops member.
6309 (set_raw_breakpoint): Initialize ops field to NULL.
6310 (print_exception_catchpoint, print_one_exception_catchpoint)
6311 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6312 (gnu_v3_exception_catchpoint_ops): New.
6313 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6314
1fbec6c3
AF
63152003-04-25 Adam Fedor <fedor@gnu.org>
6316
6317 * Makefile.in (COMMON_OBS): Add objc-lang.o
6318
0ef21242
AC
63192003-04-25 Andrew Cagney <cagney@redhat.com>
6320
6321 * d10v-tdep.c (print_insn): Delete function.
6322 (display_trace): Use TARGET_PRINT_INSN.
6323 (_initialize_d10v_tdep): Do not set tm_print_insn.
6324 (d10v_gdbarch_init): Set print_insn.
6325
f75493ed
AC
63262003-04-25 Andrew Cagney <cagney@redhat.com>
6327
6328 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6329 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6330 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6331 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6332 (nr_dmap_regs, a0_regnum): ... new functions.
6333 (d10v_print_registers_info): Use a0_regnum, use register_size.
6334 (d10v_register_byte): Delete function.
6335 (d10v_register_raw_size): Delete function.
6336 (d10v_register_type): Use a0_regnum.
6337 (d10v_print_registers_info): Use a0_regnum.
6338 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6339 (d10v_gdbarch_init): Do not set register_byte or
6340 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6341 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6342 extract_address.
6343 (trace_command): Use XCALLOC.
6344 (print_insn): Delete reference to tm_print_insn.
6345 (saved_regs_unwinder): Use store_unsigned_integer instead of
6346 store_address.
6347 * frame.h (FRAME_OBSTACK_CALLOC): Define
6348
2202b100
DC
63492003-04-25 David Carlton <carlton@bactrian.org>
6350
6351 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6352
4e45ca2e
AF
63532003-04-24 Adam Fedor <fedor@gnu.org>
6354
6355 * objc-lang.c: Include "valprint.h"
6356 * Makefile.in (objc-lang.o): Update dependencies.
6357
93de3e7f
AF
63582003-04-24 Adam Fedor <fedor@gnu.org>
6359
8ffd9b1b 6360 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
6361 architecture dependant compilation and mark as unimplemented
6362 (until they get put in the gdbarch vector).
6363
0f20eeea
DC
63642003-04-23 David Carlton <carlton@bactrian.org>
6365
6366 * cp-support.c (cp_find_first_component): Accept 'operator' in
6367 more locations.
6368
74cfe982
AC
63692003-04-23 Andrew Cagney <cagney@redhat.com>
6370
6371 * infcall.c (call_function_by_hand): Eliminate redundant
6372 indentation. Move "saved_async" and "old_cleanups" to where they
6373 are needed.
8ffd9b1b 6374
52557533
AC
63752003-04-23 Andrew Cagney <cagney@redhat.com>
6376
6377 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6378 and "buffer". Move the "name" code to where it is needed.
6379
158775de
AC
63802003-04-23 Andrew Cagney <cagney@redhat.com>
6381
6382 * infcall.c (call_function_by_hand): Move variables "start_sp",
6383 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6384 code to ON_STACK switch branch.
8ffd9b1b 6385
ebc7896c
AC
63862003-04-23 Andrew Cagney <cagney@redhat.com>
6387
6388 * infcall.c (call_function_by_hand): Make declaration of "i",
6389 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6390 lint.
6391
d727590f
AC
63922003-04-23 Andrew Cagney <cagney@redhat.com>
6393
6394 * infcall.c (call_function_by_hand): Delete variable
6395 "n_method_args". Localize "param_type"'s declaration to the loop
6396 that it is used. Reinstate code assigning to said variable -
6397 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6398 Rationalize code using "param_type".
6399
d585e13a
AC
64002003-04-22 Andrew Cagney <cagney@redhat.com>
6401
6402 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6403 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6404 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6405 to DEPRECATED_PUSH_RETURN_ADDRESS.
6406
051caad9
KB
64072003-04-22 Kevin Buettner <kevinb@redhat.com>
6408
6409 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6410 on the DWARF2 register number prior to fetching a register.
6411
77296879
JB
64122003-04-22 J. Brobecker <brobecker@gnat.com>
6413
6414 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6415 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 6416 this macro was always set to 0.
77296879
JB
6417 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6418 considering the fact that this macro was always set to 0.
6419 * hppa-tdep.h (hppa_store_return_value): Likewise.
6420 (hppa_extract_return_value): Likewise.
6421
4252f1df
JB
64222003-04-22 J. Brobecker <brobecker@gnat.com>
6423
6424 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6425 the hppa-pro target only.
6426
14604c6b
JB
64272003-04-21 J. Brobecker <brobecker@gnat.com>
6428
6429 Ongoing multi-arch conversion effort for HP/UX:
6430 * config/pa/tm-hppa.h: Move all macro that are no longer
6431 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6432 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6433
77eb01d1
JB
64342003-04-21 J. Brobecker <brobecker@gnat.com>
6435
6436 * config/pa/tm-hppa.h: Obsolete a section that was only used
6437 for hppa-pro.
6438
61995b3b
JB
64392003-04-21 J. Brobecker <brobecker@gnat.com>
6440
6441 Ongoing multi-arch conversion for HP/UX.
6442 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6443 if already defined (allows hppa64 to stay non-multiarched for now).
6444 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6445
4aa79dcc
AC
64462003-04-21 Andrew Cagney <cagney@redhat.com>
6447
6448 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6449
0f751ff2
AC
64502003-04-21 Andrew Cagney <cagney@redhat.com>
6451
6452 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6453 "i386_num_mmx_regs".
6454
04714b91
AC
64552003-04-21 Andrew Cagney <cagney@redhat.com>
6456
6457 * infcall.c: New file.
6458 * infcall.h: New file.
6459 * valarith.c: Include "infcall.h".
6460 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6461 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6462 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6463 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6464 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6465 (SFILES): Add "infcall.c"
6466 (COMMON_OBS): Add "infcall.o".
6467 (infcall.o): Specify dependencies.
6468 * value.h (call_function_by_hand): Delete declaration.
6469 * inferior.h (run_stack_dummy): Delete declaration.
6470 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6471 (run_stack_dummy): Move to "infcall.c", merged into
6472 call_function_by_hand.
6473 * valops.c (call_function_by_hand): Moved to "infcall.c".
6474 (find_function_addr, value_arg_coerce): Ditto.
6475 (unwindonsignal_p, coerce_float_to_double): Ditto.
6476 (_initialize_valops): Move "set/show coerce-float-to-double", and
6477 "set/show unwindonsignal" commands to "infcall.c".
6478 * v850-tdep.c, target.h: Update comments.
6479 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6480 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6481 (sh64_init_extra_frame_info): Update comments.
6482 * mn10300-tdep.c: Update comments.
6483 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6484 * config/sparc/tm-sparc.h: Update comments.
6485 * breakpoint.h: Update comments.
6486 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6487 * arm-tdep.c: Update comment.
6488
f9d3c2a8
MK
64892003-04-19 Mark Kettenis <kettenis@gnu.org>
6490
c40e1eab
MK
6491 * i386-tdep.c (i386_num_register_names): New variable.
6492 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6493 (MM0_REGNUM): Remove redundant parentheses in define.
6494 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6495 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6496 i386_mxcsr_regnum_p): Remove redundant parentheses.
6497 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 6498
94ea66b3
MK
6499 * i386-tdep.c (i386_extract_return_value,
6500 i386_store_return_value): Correct check for availability of
6501 floating-point registers.
6502
54299a1d
MK
6503 * i386-tdep.c (i386_frame_num_args): Remove function.
6504 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6505
c86c27af
MK
6506 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6507 mmx_regnum_to_fp_regnum. Adjust all callers.
6508
f9d3c2a8
MK
6509 * i386-tdep.c (i386_get_longjmp_target): Use
6510 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6511 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6512 extract_address.
6513
94ba74a9
MK
65142003-04-19 Mark Kettenis <kettenis@gnu.org>
6515
6516 * core-regset.c: Update comments to reflect reality. Re-order
6517 includes.
6518 (fetch_core_registers): Use switch instead of if. Remove
6519 redundant prototype.
6520
4074e13c
JB
65212003-04-18 Jim Blandy <jimb@redhat.com>
6522
6523 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 6524 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 6525
e3ab4aba
RH
65262003-04-17 Richard Henderson <rth@redhat.com>
6527
6528 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6529
627bf7c1
EZ
65302003-04-17 Michael Snyder <msnyder@redhat.com>
6531 Karen Bennet <bennet@redhat.com>
6532
6533 Committed by Elena Zannoni <ezannoni@redhat.com>
6534 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 6535
514621a9
EZ
65362003-04-17 Elena Zannoni <ezannoni@redhat.com>
6537
6538 * values.c (value_being_returned): Don't fetch the return
fbe586ae 6539 value if the return type is void.
514621a9 6540
b4acd559
JJ
65412003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6542
6543 * thread-db.c: Reindented.
8ffd9b1b 6544
530b167e 65452003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6546
6547 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6548 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
6549 as types.
6550
0a48e7e8
MS
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
8ffd9b1b 6574
ab9fe00e
KB
65752003-04-16 Kevin Buettner <kevinb@redhat.com>
6576
610a3745 6577 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
6578 the size of ``long double'' to 16, instead of 8.
6579
e64a344c
MK
65802003-04-16 Mark Kettenis <kettenis@gnu.org>
6581
6582 * i386-linux-nat.c: Add some whitespace to make things more
6583 readable.
6584 (fetch_register, store_register, fetch_inferior_registers,
6585 store_inferior_registers): Get rid of assignment in if-statement.
6586 (store_register): Fix typo in error message.
6587
25d41031
AC
65882003-04-16 Andrew Cagney <cagney@redhat.com>
6589
6590 * utils.c (xmmalloc): Always allocate something, matches
6591 libiberty/xmalloc's semantics.
6592 (xmrealloc, xmcalloc): Ditto.
6593
c50901fd
AC
65942003-04-16 Andrew Cagney <cagney@redhat.com>
6595
6596 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6597 update comments.
6598 (get_frame_type): Initialize unwind and type when needed.
6599 (get_frame_id, frame_register_unwind): Ditto.
6600
f81824a9
AC
66012003-04-16 Andrew Cagney <cagney@redhat.com>
6602
6603 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6604 obsolete.
6605 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6606 * sparcl-stub.c: Obsolete file.
6607 * config/sparc/tm-sparclet.h: Obsolete file.
6608 * sparclet-stub.c: Obsolete file.
6609 * sparclet-rom.c: Obsolete file.
6610 * sparcl-tdep.c: Obsolete file.
6611 * config/sparc/tm-sparclite.h: Obsolete file.
6612 * config/sparc/sparclite.mt: Obsolete file.
6613 * config/sparc/sparclet.mt: Obsolete file.
6614 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6615 sparc86x-*-* obsolete.
6616
9219021c
DC
66172003-04-15 David Carlton <carlton@math.stanford.edu>
6618
6619 * Makefile.in (SFILES): Add cp-namespace.c.
6620 (COMMON_OBS): Add cp-namespace.o.
6621 (block.o): Depend on gdb_obstack_h and cp_support_h.
6622 (buildsym.o): Depend on cp_support_h.
6623 (cp-namespace.o): New.
6624 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6625 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6626 (dwarf2read.o): Depend on cp_support_h.
6627 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6628 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6629 processing_current_namespace.
6630 (read_namespace): Update processing_current_namespace; check for
6631 anonymous namespaces.
6632 (dwarf2_name): New function.
6633 (dwarf2_extension): Ditto.
6634 * cp-support.h: Update copyright, contributors.
6635 Add inclusion guards.
6636 Add opaque declaration for structs obstack, block, symbol.
6637 (struct using_direct): New struct.
6638 Add declarations for cp_find_first_component,
6639 cp_entire_prefix_len, processing_has_namespace_info,
6640 processing_current_namespace, cp_is_anonymous,
6641 cp_add_using_directive, cp_initialize_namespace,
6642 cp_finalize_namespace, cp_set_block_scope,
6643 cp_scan_for_anonymous_namespaces.
6644 * cp-namespace.c: New file.
6645 * cp-support.c: Update copyright.
6646 Include ctype.h, gdb_assert.h, gdbcmd.h.
6647 New variable maint_cplus_cmd_list.
6648 (cp_find_first_component): New function.
6649 (cp_entire_prefix_len, maint_cplus_command)
6650 (first_component_command, _initialize_cp_support): Ditto.
6651 * buildsym.c: Include cp-support.h.
6652 New variable using_list.
6653 (add_symbol_to_list): Check for anonymous namespaces.
6654 (finish_block): Set block's scope.
6655 (start_symtab): Initialize C++ namespace support.
6656 (end_symtab): Finalize C++ namespace support.
6657 * block.h: Add opaque declarations for structs
6658 block_namespace_info, using_direct, and obstack.
6659 Add declarations for block_set_scope and block_set_using.
6660 (struct block): Add 'language_specific' member.
6661 (BLOCK_NAMESPACE): New macro.
6662 * block.c: Include gdb_obstack.h and cp-support.h.
6663 (struct block_namespace_info): New struct.
6664 (block_set_scope): New function.
6665 (block_set_using, block_initialize_namespace): Ditto.
6666
d5a921c9
KB
66672003-04-14 Kevin Buettner <kevinb@redhat.com>
6668
6669 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6670 (locate_base): Return early if there aren't any link map offsets.
6671 (svr4_solib_create_inferior_hook): Warn if shared library support
6672 is unavailable.
6673
d2a52b27
DC
66742003-04-14 David Carlton <carlton@math.stanford.edu>
6675
6676 * symtab.c (symbol_set_names): Add prefix when storing Java names
6677 in hash table. Fix for PR java/1039.
6678
980cae7a
DC
66792003-04-14 David Carlton <carlton@math.stanford.edu>
6680
6681 * symtab.c (symbol_set_names): Rename 'name' arg to
6682 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6683 * symtab.h: Change 'name' argument in declaration of
6684 symbol_set_names to 'linkage_name'.
6685 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6686
e227b13c
AC
66872003-04-14 Andrew Cagney <cagney@redhat.com>
6688
6689 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6690 return the fully sign-extended register value.
6691 (get_frame_pointer): Ditto.
6692 (mips_pop_frame): Initialize "proc_desc" after checking for a
6693 dummy frame.
6694
36712a20
AC
66952003-04-14 Andrew Cagney <cagney@redhat.com>
6696
6697 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6698 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6699 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6700 (mips_push_register): Delete function.
6701 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6702 PUSH_FP_REGNUM.
6703
44ea7b70
JB
67042003-04-14 Jim Blandy <jimb@redhat.com>
6705
6706 * symmisc.c: #include "gdb_regex.h".
6707 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6708 functions.
6709 * maint.c (maintenance_list_command): New function.
6710 (_initialize_maint_cmds): Register the above as commands.
6711 * symtab.h (maintenance_list_symtabs,
6712 maintenance_list_psymtabs): New declarations.
6713 * cli/cli-cmds.c (maintenancelistlist): New variable.
6714 (init_cmd_lists): Initialize it.
6715 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6716 * gdbcmd.h (maintenancelistlist): New declaration.
6717 * Makefile.in (symmisc.o): Update dependencies.
6718
2d0c7962
EZ
67192003-04-14 Elena Zannoni <ezannoni@redhat.com>
6720
6721 * s390-nat.c: Include asm/types.h for addr_t.
6722
1947a811
CV
67232003-04-14 Corinna Vinschen <vinschen@redhat.com>
6724
6725 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6726 actually incoming type.
6727
adb616d7
AC
67282003-04-13 Andrew Cagney <cagney@redhat.com>
6729
6730 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6731 get_next_frame and get_frame_saved_regs.
6732
9b5e151c
AC
67332003-04-13 Andrew Cagney <cagney@redhat.com>
6734
6735 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6736 of gdbarch_num_regs.
6737
ef6e7e13
AC
67382003-04-13 Andrew Cagney <cagney@redhat.com>
6739
6740 * frame.h: Mention what replaced what in "struct frame_info".
6741 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6742 deprecated_update_frame_base_hack and
6743 deprecated_update_frame_pc_hack.
6744 * hppa-tdep.c: Ditto.
6745
61fbb938
DJ
67462003-04-13 Daniel Jacobowitz <drow@mvista.com>
6747
6748 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6749 to read_reg and update its comment. Remove regnum member.
6750 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6751 Don't call read_reg when setting in_reg. Call read_reg to get
6752 the frame base if it's in a register. Return the register number
6753 on the stack instead of in the context. Remove extra arguments
6754 to read_reg.
6755 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6756 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6757 the register number on the expression stack.
6758 (needs_frame_read_reg): Remove extra arguments.
6759
0d53c4c4
DJ
67602003-04-13 Daniel Jacobowitz <drow@mvista.com>
6761
6762 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6763 made non-static.
6764 (execute_stack_op): All callers updated.
6765 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6766 * dwarf2loc.c (find_location_expression): New function.
6767 (dwarf_expr_frame_base): Call it.
6768 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6769 (dwarf2_tracepoint_var_ref): New function, broken out from
6770 locexpr_tracepoint_var_ref.
6771 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6772 Make static.
6773 (loclist_read_variable, loclist_read_needs_frame): New functions.
6774 (loclist_describe_location, loclist_tracepoint_var_ref): New
6775 functions.
6776 (dwarf2_loclist_funcs): New struct location_funcs.
6777 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6778 (struct dwarf2_locexpr_baton): Add comments.
6779 (dwarf2_loclist_funcs): New extern.
6780 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6781 base_address and base_known.
6782 (dwarf_loc_buffer): New variable.
6783 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6784 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6785 (dwarf2_has_info): Initialize dwarf_loc_offset.
6786 (dwarf2_build_psymtabs): Read in .debug_loc.
6787 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6788 DWARF_LOC_SIZE.
6789 (psymtab_to_symtab_1): Likewise. Move base address calculation
6790 here, from...
6791 (dwarf2_get_pc_bounds): ... here. Use the base address from
6792 cu_header.
6793 (dwarf2_symbol_mark_computed): Handle location lists.
6794
6aca59a3
DJ
67952003-04-13 Daniel Jacobowitz <drow@mvista.com>
6796
6797 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6798 if the linkage name demangled successfully.
6799
aca1fcd0
MK
68002003-04-13 Mark Kettenis <kettenis@gnu.org>
6801
97095916
MK
6802 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6803 disassmbly_flavour): Removed.
6804
aca1fcd0
MK
6805 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6806
562a961f
MK
68072003-04-13 Mark Kettenis <kettenis@gnu.org>
6808
6809 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6810
bd013d54
AC
68112003-04-12 Andrew Cagney <cagney@redhat.com>
6812
6813 * frame.h (struct frame_info): Move definition from here ...
6814 * frame.c (struct frame_info): ... to here.
6815
167ef8b1
AC
68162003-04-12 Andrew Cagney <cagney@redhat.com>
6817
6818 * gdbthread.h (save_infrun_state): Delete parameter
6819 "prev_func_start".
6820 (struct thread_info): Delete field "prev_func_start".
6821 (load_infrun_state): Ditto.
6822 * thread.c (load_infrun_state, save_infrun_state): Update.
6823 * infrun.c (prev_func_start): Delete variable.
6824 (context_switch, init_wait_for_inferior): Update.
6825 (stop_stepping, keep_going): Update.
6826
da3331ec
AC
68272003-04-12 Andrew Cagney <cagney@redhat.com>
6828
6829 * gdbarch.sh: Add missing opaque declarations.
6830 * gdbarch.h: Regnerate.
6831 * symtab.h: Add missing opaque declarations.
6832 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6833 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6834 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6835 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6836 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6837 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6838 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6839 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6840 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6841 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6842 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6843 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6844 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6845
18adea3f
AC
68462003-04-11 Andrew Cagney <cagney@redhat.com>
6847
6848 * frame.c (get_frame_id): Return this frame's "id".
6849 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6850 function start.
6851 (legacy_saved_regs_this_id): Replace function body with
6852 internal-error.
6853 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6854 FRAME_OBSTACK_ZALLOC.
6855 (create_new_frame): Mark the frame ID as valid.
6856
2252e863
AO
68572003-04-11 Alexandre Oliva <aoliva@redhat.com>
6858
6859 * Makefile.in (libbfd_h): Added missing setting.
6860 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6861 according to the selected ABI.
6862
a8245ab8
JJ
68632003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6864
6865 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6866
6913c89a
AC
68672003-04-11 Andrew Cagney <cagney@redhat.com>
6868
6869 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6870 SAVED_PC_AFTER_CALL.
6871 * gdbarch.h, gdbarch.c: Regenerate.
6872 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6873 * x86-64-tdep.c (x86_64_init_abi): Update.
6874 * vax-tdep.c (vax_gdbarch_init): Update.
6875 * v850-tdep.c (v850_gdbarch_init): Update.
6876 * sparc-tdep.c (sparc_gdbarch_init): Update.
6877 * sh-tdep.c (sh_gdbarch_init): Update.
6878 * s390-tdep.c (s390_gdbarch_init): Update.
6879 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6880 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6881 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6882 * mips-tdep.c (mips_gdbarch_init): Update.
6883 * mcore-tdep.c (mcore_gdbarch_init): Update.
6884 * m68k-tdep.c (m68k_gdbarch_init): Update.
6885 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6886 * ia64-tdep.c (ia64_gdbarch_init): Update.
6887 (ia64_saved_pc_after_call): Update declaration.
6888 * i386ly-tdep.c (i386lynx_init_abi): Update.
6889 * i386-tdep.c (i386_gdbarch_init): Update.
6890 * hppa-tdep.c (hppa_gdbarch_init): Update.
6891 * h8300-tdep.c (h8300_gdbarch_init): Update.
6892 * frv-tdep.c (frv_gdbarch_init): Update.
6893 * cris-tdep.c (cris_gdbarch_init): Update.
6894 * avr-tdep.c (avr_gdbarch_init): Update.
6895 * arm-tdep.c (arm_gdbarch_init): Update.
6896 * alpha-tdep.c (alpha_gdbarch_init): Update.
6897 * ns32knbsd-nat.c (frame_num_args): Update.
6898 * ns32k-tdep.c (umax_frame_num_args): Update.
6899 * mips-tdep.c (mips_init_frame_pc_first): Update.
6900 * infrun.c (step_over_function): Update.
6901 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6902 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6903 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6904 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6905 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6906 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6907 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6908 * arch-utils.c (init_frame_pc_default): Update.
6909 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6910 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6911 declaration.
8ffd9b1b 6912
38edeab8
AC
69132003-04-11 Andrew Cagney <cagney@redhat.com>
6914
6915 * i387-tdep.c: Update copyright.
6916 (i387_to_double): Delete function.
6917 (double_to_i387): Delete function.
6918
81f8a206
AC
69192003-04-10 Andrew Cagney <cagney@redhat.com>
6920
6921 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6922 frame's function's address. Simplify.
6923 (d10v_frame_unwind_cache): Check that the frame's function is
6924 non-zero.
6925
6e691f7a
JB
69262003-04-10 Jim Blandy <jimb@redhat.com>
6927
6928 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6929 call to set_gdbarch_deprecated_push_arguments.
6930
7f78e237
AC
69312003-04-10 Andrew Cagney <cagney@redhat.com>
6932
6933 * frame.c (fprint_frame_id): New function.
6934 (fprint_frame_type, fprint_frame): New function.
6935 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6936 (create_sentinel_frame, get_frame_id): Ditto.
6937 (frame_id_p, frame_id_eq): Ditto.
6938 (frame_id_inner, create_new_frame): Ditto.
6939 (legacy_get_prev_frame, get_prev_frame): Ditto.
6940 (deprecated_update_frame_pc_hack): Ditto.
6941 (frame_register_unwind): Ditto.
6942 (deprecated_update_frame_base_hack): Ditto.
6943
f870b49b
CV
69442003-04-10 Corinna Vinschen <vinschen@redhat.com>
6945
6946 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6947 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6948 frame_chain function.
6949 * Makefile.in: Add dependencies due to above change.
6950
7c86889b
CV
69512003-04-10 Corinna Vinschen <vinschen@redhat.com>
6952
6953 * blockframe.c (legacy_frame_chain_valid): Move call to
6954 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6955 inside_entry_file.
6956
d0a55772
AC
69572003-04-09 Andrew Cagney <cagney@redhat.com>
6958
6959 * frame.h (struct frame_id): Replace "pc" and "base" with
6960 "stack_addr" and "code_addr". Update comments.
6961 (frame_id_build): Update parameter names and comment.
6962 (struct frame_info): Replace "id_p" and "id" with "this_id".
6963 * dummy-frame.c (dummy_frame_this_id): Update.
6964 * breakpoint.c (print_one_breakpoint): Update.
6965 * frame.c (get_frame_id): Update.
6966 (get_frame_base, frame_id_build): Update.
6967 (create_sentinel_frame, legacy_get_prev_frame): Update.
6968 (deprecated_update_frame_base_hack): Update.
6969 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6970 (frame_id_inner): Ditto.
6971
ac16bf07
AC
69722003-04-09 Andrew Cagney <cagney@redhat.com>
6973
6974 * defs.h (gdb_print_host_address): Make "addr" parameter a
6975 pointer constant.
6976 * utils.c (gdb_print_host_address): Update.
6977
366cfc9e
KB
69782003-04-09 Kevin Buettner <kevinb@redhat.com>
6979
6980 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6981 register number for R0 is 0.
6982
cd983b5c
JB
69832003-04-09 J. Brobecker <brobecker@gnat.com>
6984
6985 * frame.h (struct gdbarch): Add opaque structure definition
6986 to avoid a compilation warning on LynxOS 4.0.
6987
d1340264
AC
69882003-04-09 Andrew Cagney <cagney@redhat.com>
6989
6990 * frame.h (struct frame_info): Delete field "pc". Replace
6991 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6992 structure.
6993 * frame.c (frame_pc_unwind): Update.
6994 (create_sentinel_frame): Do not set "pc".
6995 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6996 (get_frame_pc): Call frame_pc_unwind.
6997 (deprecated_update_frame_pc_hack): Update.
6998 (create_new_frame): Use "pc" not "->pc".
6999
90a6fffb
AC
70002003-04-09 Andrew Cagney <cagney@redhat.com>
7001
7002 * frame.c (get_frame_id): Eliminate code updating "frame".
7003 (legacy_get_prev_frame): Ditto.
7004 (get_frame_base): Return id.base directly.
7005 (deprecated_update_frame_base_hack): Update "id.base".
7006 * frame.h (struct frame_info): Delete field "frame".
7007
2fbce691
AC
70082003-04-09 Andrew Cagney <cagney@redhat.com>
7009
7010 * NEWS: Mention that the "Sequent family" is obsolete.
7011 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7012 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7013 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7014 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7015 * config/i386/tm-ptx4.h: Obsolete file.
7016 * config/i386/tm-ptx.h: Obsolete file.
7017 * symm-tdep.c: Obsolete file.
7018 * config/i386/symmetry.mt: Obsolete file.
7019 * config/i386/tm-symmetry.h: Obsolete file.
7020 * symm-nat.c: Obsolete file.
7021 * config/i386/nm-symmetry.h: Obsolete file.
7022 * config/i386/xm-symmetry.h: Obsolete file.
7023 * config/i386/symmetry.mh: Obsolete file.
7024 * config/i386/nm-ptx4.h: Obsolete file.
7025 * config/i386/ptx4.mh: Obsolete file.
7026 * config/i386/ptx.mt: Obsolete file.
7027 * config/i386/ptx.mh: Obsolete file.
7028 * config/i386/xm-ptx4.h: Obsolete file.
7029 * config/i386/xm-ptx.h: Obsolete file.
7030
78c43945
AC
70312003-04-09 Andrew Cagney <cagney@redhat.com>
7032
7033 Obsolete mips*-*-mach3*.
7034 * NEWS: Mention that mips*-*-mach3* is obsolete.
7035 * m3-nat.c: Obsolete file.
7036 * config/nm-m3.h: Obsolete file.
7037 * config/mips/tm-mipsm3.h: Obsolete file.
7038 * config/mips/mipsm3.mt: Obsolete file.
7039 * config/mips/mipsm3.mh: Obsolete file.
7040 * config/mips/xm-mipsm3.h: Obsolete file.
7041 * mipsm3-nat.c: Obsolete file.
7042 * configure.host: Obsolete mips-dec-mach3*.
7043 * configure.tgt: Obsolete mips*-*-mach3*.
7044
f1908289
AC
70452003-04-09 Andrew Cagney <cagney@redhat.com>
7046
7047 * doublest.h: Update copyright.
7048 (deprecated_store_floating, deprecated_extract_floating): Rename
7049 store_floating and extract_floating. Update comments.
7050 * doublest.c: Update copyright.
7051 (extract_floating_by_length): Replace extract_floating.
7052 (store_floating_by_length): Replace store_floating.
7053 (deprecated_extract_floating): New function.
7054 (deprecated_store_floating): New function.
7055 (extract_typed_floating): Call extract_floating_by_length.
7056 (store_typed_floating): Call store_floating_by_length.
7057 * x86-64-tdep.c (x86_64_store_return_value): Update.
7058 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7059 (sh64_extract_return_value): Update.
7060 (sh_sh4_register_convert_to_virtual): Update.
7061 (sh_sh64_register_convert_to_virtual): Update.
7062 (sh_sh4_register_convert_to_raw): Update.
7063 (sh_sh64_register_convert_to_raw): Update.
7064 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7065 (rs6000_register_convert_to_raw): Update.
7066 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7067 (ia64_register_convert_to_raw): Update.
7068 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7069 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7070 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7071 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7072 (alpha_register_convert_to_raw): Update.
7073
4443bd83
AC
70742003-04-08 Andrew Cagney <cagney@redhat.com>
7075
7076 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7077 * gdbarch.h, gdbarch.c: Re-generate.
7078 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7079 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7080 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7081 conditionally, use frame_pc_unwind as an alternative. Add
7082 comments.
7083 * arch-utils.c (init_frame_pc_default): Only call
7084 SAVED_PC_AFTER_CALL when available.
7085
c0236d92
EZ
70862003-04-08 Elena Zannoni <ezannoni@redhat.com>
7087
fbe586ae 7088 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7089 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7090 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7091 (start_remote): Ditto.
7092 (handle_inferior_event): Ditto.
7093 (save_inferior_status): Ditto.
7094 (restore_inferior_status): Ditto.
7095 * infcmd.c (attach_command): Ditto.
7096 * fork-child.c (startup_inferior): Ditto.
fbe586ae 7097 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7098 * alpha-tdep.c (heuristic_proc_start): Ditto.
7099 * mips-tdep.c (heuristic_proc_start): Ditto.
7100 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7101 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7102 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7103 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7104 * remote-vx.c (vx_create_inferior): Ditto.
7105
71062003-04-08 Elena Zannoni <ezannoni@redhat.com>
7107
7108 * infrun.c (stop_soon_quietly): Make it an enum, to better
7109 override the default behavior of handle_inferior_event.
7110 (clear_proceed_status): Update uses of stop_soon_quietly to
7111 reflect that it is now an enum.
7112 (start_remote): Ditto.
7113 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7114 is set to handle the new GNU/Linux kernel behavior for
7115 attach/sigstop. Update uses of stop_soon_quietly.
7116 * inferior.h (enum stop_kind): New enum.
7117 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7118 Reset normal handle_inferior_event behavior, afterwards.
7119 * fork-child.c (startup_inferior): Update.
7120 * alpha-tdep.c (heuristic_proc_start): Update.
7121 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7122 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7123 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7124 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7125 * remote-vx.c (vx_create_inferior): Update.
7126 * mips-tdep.c (heuristic_proc_start): Update.
7127
1211bce3
EZ
71282003-04-07 Elena Zannoni <ezannoni@redhat.com>
7129
7130 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 7131 be freed more than once, causing wild memory corruptions.
1211bce3 7132 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 7133 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 7134 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 7135 with the "core" target.
1211bce3 7136
f0ef6b29
KB
71372003-04-07 Kevin Buettner <kevinb@redhat.com>
7138
7139 * mips-tdep.c (mips_print_fp_register): New function, created from
7140 do_fp_register_row(). Registers are now (also) printed as hex.
7141 Only one register is printed per row.
7142 (mips_print_register, do_fp_register_row): Print floating point
7143 registers with mips_print_fp_register().
7144
8cf71652
AC
71452003-04-06 Andrew Cagney <cagney@redhat.com>
7146
5e488a7b
AC
7147 * valprint.h (inspect_it): Add extern declaration.
7148 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7149 (selectors_info, classes_info): Ditto.
7150 (find_objc_msgcall): Fix indentation.
7151 (objc_printstr): Delete extern declarations.
7152
8cf71652
AC
7153 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7154
e6ba3bc9
AC
71552003-04-06 Andrew Cagney <cagney@redhat.com>
7156
7157 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7158 Update comment.
7159 * frame.c (legacy_saved_regs_this_id): Update.
7160 (legacy_get_prev_frame): Update.
7161 * xstormy16-tdep.c: Update comment.
7162 * sparc-tdep.c (sparc_frame_chain): Update comment.
7163 * blockframe.c (legacy_frame_chain_valid): Update.
7164
55e1d7e7
AC
71652003-04-06 Andrew Cagney <cagney@redhat.com>
7166
996179ee
AC
7167 * valprint.c (val_print_type_code_int): Delete #ifdef
7168 PRINT_TYPELESS_INTEGER code.
7169
55e1d7e7
AC
7170 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7171 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7172 multi-arch definition.
7173 * gdbarch.h: Re-generate.
7174
43bd9a9e
AC
71752003-04-05 Andrew Cagney <cagney@redhat.com>
7176
7177 Eliminate FRAME_FIND_SAVED_REGS.
7178 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7179 Change FSR parameter to a pointer.
7180 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7181 Assume FSR parameter is a pointer.
7182 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7183 Make fsr a pointer.
7184 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7185 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7186 saved_regs a pointer.
7187 (hppa_frame_saved_pc): Ditto.
7188 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7189 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7190 pointer.
7191 (restore_pc_queue): Make fsr a pointer.
7192 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7193 (hppa_frame_chain): Make saved_regs a pointer, call
7194 hppa_frame_init_saved_regs.
7195 * sparc-tdep.c: Include "gdb_assert.h".
7196 (sparc_frame_find_saved_regs): Replace internal_error with
7197 gdb_assert.
7198 * remote-vxsparc.c (vx_read_register): Delete reference to
7199 FRAME_FIND_SAVED_REGS.
7200 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7201 * gdbarch.h: Regenerate.
7202 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7203 (deprecated_get_frame_saved_regs): Delete declaration.
7204 (struct frame_saved_regs): Delete definition.
7205 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7206 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7207 (hppa_frame_find_saved_regs): Delete declaration.
7208 (FRAME_FIND_SAVED_REGS): Delete macro.
7209 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7210 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7211 FRAME_FIND_SAVED_REGS in comment.
7212
be41e9f4
AC
72132003-04-05 Andrew Cagney <cagney@redhat.com>
7214
7215 * frame.c (frame_func_unwind, get_frame_func): New functions.
7216 * frame.h (get_frame_func, frame_func_unwind): Declare.
7217 (struct frame_info): Add field "prev_func" for caching the
7218 previous frame's function address.
7219 * arm-tdep.c (arm_frameless_function_invocation): Combine
7220 get_pc_function_start and get_frame_pc into get_frame_func.
7221 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7222 (sh64_nofp_frame_init_saved_regs): Ditto.
7223 * s390-tdep.c (s390_function_start): Ditto.
7224 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7225 (rs6000_frameless_function_invocation): Ditto.
7226 (rs6000_frame_saved_pc): Ditto.
7227 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7228 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7229 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7230 (i386_frame_init_saved_regs): Ditto.
7231 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7232 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7233 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7234 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7235 * blockframe.c (frameless_look_for_prologue): Ditto.
7236
a01dd7cc
AC
72372003-04-05 Andrew Cagney <cagney@redhat.com>
7238
7239 * frame.c (legacy_get_prev_frame): Link prev to next at the
7240 function start. Update comments.
7241
5e5592e6
AC
72422003-04-05 Andrew Cagney <cagney@redhat.com>
7243
7244 * frame.c (get_frame_id): Update comment.
7245 (legacy_get_prev_frame): Update comment.
7246 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7247 * gdbarch.h: Regenerate.
7248 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7249 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7250
6fba5002
AC
72512003-04-05 Andrew Cagney <cagney@redhat.com>
7252
7253 * stack.c (print_frame_info): Use get_frame_pc.
7254
7df05f2b
AC
72552003-04-04 Andrew Cagney <cagney@redhat.com>
7256
7257 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7258 the frame's type from the unwinder.
7259 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7260 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7261 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7262 (get_frame_base_address): Use get_frame_type.
7263 (get_frame_locals_address, get_frame_args_address): Ditto.
7264 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7265 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7266 (struct frame_info): Add comment explaining why the frame contains
7267 a "type" field.
7268 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7269 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7270 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7271 NORMAL_FRAME.
7272 * frame-unwind.h: Include "frame.h".
7273 (struct frame_unwind): Add "type" field.
7274 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 7275
11889732
AC
72762003-04-04 Andrew Cagney <cagney@redhat.com>
7277
7278 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7279 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7280 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7281 get_frame_base.
7282 (d10v_unwind_dummy_id): Use frame_id_build.
7283 * frame.c (find_frame_sal): Use get_frame_pc.
7284 (create_new_frame): Use deprecated_update_frame_pc_hack and
7285 deprecated_update_frame_base_hack.
7286 (create_sentinel_frame): Add comment about ->pc going away.
7287 (get_prev_frame): Add comment about ->pc going away.
7288 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7289 frame_id_build, deprecated_update_frame_pc_hack and
7290 deprecated_update_frame_base_hack.
7291 (select_frame): Use get_frame_pc.
7292 (legacy_saved_regs_this_id): Use frame_id_build.
7293
50c46a0d
EZ
72942003-04-04 Elena Zannoni <ezannoni@redhat.com>
7295
fbe586ae
RH
7296 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7297 signed integer case.
7298 (classify_argument): Handle enumerations and references.
50c46a0d 7299
50bbdbd9
AC
73002003-04-04 Andrew Cagney <cagney@redhat.com>
7301
7302 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7303 ID to NULL.
7304
36018d2e
AF
73052003-04-01 Adam Fedor <fedor@gnu.org>
7306
7307 * gdb/objc-lang.c (selectors_info): Replace calls to
7308 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7309 SYMBOL_NATURAL_NAME.
7310 (classes_info, find_methods): Likewise.
7311
35cec841
KB
73122003-04-03 Kevin Buettner <kevinb@redhat.com>
7313
7314 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7315 ``mach'' to the value determined by bfd_default_set_arch_mach().
7316
43136899
BR
73172003-04-02 Bob Rossi <bob_rossi@cox.net>
7318
7319 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7320 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7321 (mi-cmd-file.o): Update dependencies.
7322
040b99fd
KB
73232003-04-01 Kevin Buettner <kevinb@redhat.com>
7324
7325 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7326 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7327
9a3d7dfd
AF
73282003-04-01 Adam Fedor <fedor@gnu.org>
7329
7330 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7331 * language.h (struct language_defn): Add la_demangle.
7332 (language_demangle): Declare.
7333 * language.c (language_demangle): New function.
7334 (unk_lang_demangle): Likewise.
7335 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 7336 Add ukn_lang_demangle.
9a3d7dfd 7337 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 7338 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
7339 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7340 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7341 * jv-lang.c (java_demangle): New function
7342 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
7343 * objc-lang.c (objc_demangle): Add options argument
7344 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
7345 * maint.c (maintenance_demangle): Replace switch with
7346 call to language_demangle.
7347 * utils.c (fprintf_symbol_filtered): Likewise.
7348
5e074003
AC
73492003-04-01 Andrew Cagney <cagney@redhat.com>
7350
7351 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7352 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7353 PRINT_TYPELESS_INTEGER.
7354 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7355 PUSH_RETURN_ADDRESS.
7356
270cb5d6
AC
73572003-04-01 Andrew Cagney <cagney@redhat.com>
7358
7359 * Makefile.in (d10v-tdep.o): Update dependencies.
7360 * d10v-tdep.c: Include "frame-base.h".
7361 (d10v_frame_unwind): Make constant.
7362 (d10v_frame_base_address): New function.
7363 (d10v_frame_base): New variable.
7364 (d10v_gdbarch_init): Set frame_base default.
7365 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7366 comment for base.
7367 (d10v_frame_unwind_cache): Set and use "prev_sp".
7368 (d10v_frame_this_id): Use the previous frame's inner most stack
7369 address and this frame's func address for the frame ID. Use
7370 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 7371
6bfb3e36
AC
73722003-04-01 Andrew Cagney <cagney@redhat.com>
7373
7374 * frame.h (get_frame_locals_address, get_frame_args_address):
7375 Refer to the base address, instead of the address of the first
7376 local or parameter.
8ffd9b1b 7377
da62e633
AC
73782003-04-01 Andrew Cagney <cagney@redhat.com>
7379
7380 Add frame debug info addresses:
7381 * frame-base.c: New file.
7382 * frame-base.h: New file.
7383 * frame.h (struct frame_base): Add opaque declaration.
7384 (get_frame_base): Update comment.
7385 (get_frame_base_address): Declare.
7386 (get_frame_locals_address): Declare.
7387 (get_frame_args_address): Declare.
7388 (struct frame_info): Add "base" and "base_cache". Update
7389 comments on the unwinder.
7390 * frame.c: Include "frame-base.h".
7391 (get_frame_locals_address): New function.
7392 (get_frame_base_address): New function.
7393 (get_frame_args_address): New function.
7394 * findvar.c (read_var_value): Use get_frame_locals_address and
7395 get_frame_args_address.
7396 * stack.c (frame_info): Use get_frame_locals_address and
7397 get_frame_args_address.
7398 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7399 moved to "frame-base.c".
7400 * printcmd.c (print_frame_nameless_args): Ditto.
7401 * symtab.h (address_class): Update comments.
7402 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7403 get_frame_base_address.
7404 * dwarf2expr.c (execute_stack_op): Ditto.
7405 * Makefile.in (frame_base_h): Define.
7406 (frame.o): Update dependencies.
7407 (frame-base.o): Add dependencies.
7408 (SFILES): Add frame-base.c.
7409 (COMMON_OBS): Add frame-base.o.
7410
3d30e9c2
AC
74112003-04-01 Andrew Cagney <cagney@redhat.com>
7412
7413 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7414 CALL_DUMMY_LENGTH): Ditto.
7415 * gdbarch.c: Re-generate.
7416 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7417 (CALL_DUMMY_LENGTH): Delete macro.
7418 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7419 * arm-tdep.c (arm_gdbarch_init): Ditto.
7420 * avr-tdep.c (avr_gdbarch_init): Ditto.
7421 * cris-tdep.c (cris_gdbarch_init): Ditto.
7422 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7423 * frv-tdep.c (frv_gdbarch_init): Ditto.
7424 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7425 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7426 * i386-tdep.c (i386_gdbarch_init): Ditto.
7427 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7428 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7429 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7430 * mips-tdep.c (mips_gdbarch_init): Ditto.
7431 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7432 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7433 * s390-tdep.c (s390_gdbarch_init): Ditto.
7434 * sh-tdep.c (sh_gdbarch_init): Ditto.
7435 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7436 * v850-tdep.c (v850_gdbarch_init): Ditto.
7437 * vax-tdep.c (vax_gdbarch_init): Ditto.
7438 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7439
ce0c7262
CV
74402003-04-01 Corinna Vinschen <vinschen@redhat.com>
7441
7442 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7443
73dd234f
AC
74442003-04-01 Andrew Cagney <cagney@redhat.com>
7445
7446 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7447 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7448 * gdbarch.h, gdbarch.c: Re-generate.
7449 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7450 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7451 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7452 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7453 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7454 * infcmd.c (run_stack_dummy): Simplify assuming
7455 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7456 * infrun.c (handle_inferior_event): Ditto.
7457 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7458 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7459 * arm-tdep.c (arm_gdbarch_init): Ditto.
7460 * avr-tdep.c (avr_gdbarch_init): Ditto.
7461 * cris-tdep.c (cris_gdbarch_init): Ditto.
7462 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7463 * frv-tdep.c (frv_gdbarch_init): Ditto.
7464 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7465 * i386-tdep.c (i386_gdbarch_init): Ditto.
7466 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7467 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7468 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7469 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7470 * mips-tdep.c (mips_gdbarch_init): Ditto.
7471 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7472 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7473 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7474 * s390-tdep.c (s390_gdbarch_init): Ditto.
7475 * sh-tdep.c (sh_gdbarch_init): Ditto.
7476 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7477 * v850-tdep.c (v850_gdbarch_init): Ditto.
7478 * vax-tdep.c (vax_gdbarch_init): Ditto.
7479 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7480
97606a13
DJ
74812003-04-01 Daniel Jacobowitz <drow@mvista.com>
7482
7483 * symfile.c (symfile_relocate_debug_section): Update call to
7484 bfd_simple_get_relocated_section_contents.
7485
e8ab51f7
AC
74862003-03-31 Andrew Cagney <cagney@redhat.com>
7487
7488 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7489 * gdbarch.h, gdbarch.c: Regenerate.
7490 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7491 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7492 available.
7493 * frame.h (generic_fix_call_dummy): Delete declaration.
7494 * dummy-frame.h: Update comment.
7495 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7496 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7497 fix_call_dummy.
7498 * sh-tdep.c (sh_gdbarch_init): Ditto.
7499 * s390-tdep.c (s390_gdbarch_init): Ditto.
7500 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7501 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7502 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7503 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7504 * i386-tdep.c (i386_gdbarch_init): Ditto.
7505 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7506 * frv-tdep.c (frv_gdbarch_init): Ditto.
7507 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7508 * cris-tdep.c (cris_gdbarch_init): Ditto.
7509 * avr-tdep.c (avr_gdbarch_init): Ditto.
7510 * arm-tdep.c (arm_gdbarch_init): Ditto.
7511
018d1b48
JB
75122003-03-31 J. Brobecker <brobecker@gnat.com>
7513
7514 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7515 (INIT_FRAME_AP): Likewise.
7516 (EXTRA_FRAME_INFO): Likewise.
7517
e9a2674e
AC
75182003-03-31 Andrew Cagney <cagney@redhat.com>
7519
7520 * gdbarch.sh: Include "symfile.h".
7521 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7522 * gdbarch.h, gdbarch.c: Re-generate.
7523 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7524 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7525 call_dummy_address, the default is at entry_point_address.
7526 * v850-tdep.c (v850_gdbarch_init): Ditto.
7527 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7528 * sh-tdep.c (sh_gdbarch_init): Ditto.
7529 * s390-tdep.c (s390_gdbarch_init): Ditto.
7530 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7531 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7532 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7533 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7534 * i386-tdep.c (i386_gdbarch_init): Ditto.
7535 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7536 * frv-tdep.c (frv_gdbarch_init): Ditto.
7537 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7538 * cris-tdep.c (cris_gdbarch_init): Ditto.
7539 * arm-tdep.c (arm_gdbarch_init): Ditto.
7540
e8a8712a
AC
75412003-03-31 Andrew Cagney <cagney@redhat.com>
7542
7543 * gdbarch.sh (CALL_DUMMY_P): Delete.
7544 * gdbarch.h, gdbarch.c: Re-generate.
7545 * inferior.h (CALL_DUMMY_P): Delete macro.
7546 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7547 * vax-tdep.c (vax_gdbarch_init): Update.
7548 * v850-tdep.c (v850_gdbarch_init): Update.
7549 * sparc-tdep.c (sparc_gdbarch_init): Update.
7550 * sh-tdep.c (sh_gdbarch_init): Update.
7551 * s390-tdep.c (s390_gdbarch_init): Update.
7552 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7553 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7554 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7555 * mips-tdep.c (mips_gdbarch_init): Update.
7556 * mcore-tdep.c (mcore_gdbarch_init): Update.
7557 * m68k-tdep.c (m68k_gdbarch_init): Update.
7558 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7559 * ia64-tdep.c (ia64_gdbarch_init): Update.
7560 * i386-tdep.c (i386_gdbarch_init): Update.
7561 * h8300-tdep.c (h8300_gdbarch_init): Update.
7562 * frv-tdep.c (frv_gdbarch_init): Update.
7563 * d10v-tdep.c (d10v_gdbarch_init): Update.
7564 * cris-tdep.c (cris_gdbarch_init): Update.
7565 * breakpoint.c (deprecated_frame_in_dummy): Update.
7566 * avr-tdep.c (avr_gdbarch_init): Update.
7567 * alpha-tdep.c (alpha_gdbarch_init): Update.
7568 * arm-tdep.c (arm_gdbarch_init): Update.
7569 * dummy-frame.c (dummy_frame_this_id): Update comments.
7570 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7571 * frame.c (legacy_get_prev_frame): Ditto.
7572 * valops.c (call_function_by_hand): Delete function.
7573 (hand_function_call): Rename to call_function_by_hand
7574
ed234cf8
AC
75752003-03-30 Andrew Cagney <cagney@redhat.com>
7576
7577 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 7578 * value.h (struct value): Update comment.
ed234cf8 7579
06c77151
AC
75802003-03-30 Andrew Cagney <cagney@redhat.com>
7581
6c2b5168
AC
7582 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7583 D10V_FP_REGNUM.
7584 (d10v_gdbarch_init): Do not set fp_regnum.
7585
06c77151
AC
7586 * frame.c (get_frame_base): Force ID initialization.
7587 (get_prev_frame): Move computation of the frame ID from here ...
7588 (get_frame_id): ... to here.
7589 (legacy_get_prev_frame): Mark the frame ID as valid.
7590 * frame.h (struct frame_info): Add field "id_p".
7591
97a1a11c
MK
75922003-03-30 Mark Kettenis <kettenis@gnu.org>
7593
7594 * i386-tdep.c (i386_store_struct_return): Removed.
7595 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7596
6c0e89ed
AC
75972003-03-30 Andrew Cagney <cagney@redhat.com>
7598
7599 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7600 * gdbarch.h, gdbarch.c: Regenerate.
7601 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7602 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7603 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7604 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7605 * i386-tdep.c (i386_gdbarch_init): Ditto.
7606 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7607 * cris-tdep.c (cris_gdbarch_init): Ditto.
7608 * vax-tdep.c (vax_gdbarch_init): Ditto.
7609 * s390-tdep.c (s390_gdbarch_init): Ditto.
7610 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7611 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7612 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7613 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7614 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7615 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7616 * sparc-tdep.c (sparc_gdbarch_init): Update.
7617 * sh-tdep.c (sh_gdbarch_init): Update.
7618 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7619 * mips-tdep.c (mips_gdbarch_init): Update.
7620 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7621 * ia64-tdep.c (ia64_gdbarch_init): Update.
7622 * frv-tdep.c (frv_gdbarch_init): Update.
7623 * avr-tdep.c (avr_gdbarch_init): Update.
7624 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7625 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7626 instead of when push_dummy_call is not available.
8ffd9b1b 7627
f7dd6af2
AC
76282003-03-30 Andrew Cagney <cagney@redhat.com>
7629
7630 * infttrace.c: Include "gdbthread.h".
7631 (parent_attach_all): Fix function signature.
7632 (call_ptrace): Update call.
7633 * Makefile.in (infttrace.o): Update dependencies.
7634
28f617b3
AC
76352003-03-30 Andrew Cagney <cagney@redhat.com>
7636
7637 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7638 PUSH_RETURN_ADDRESS.
7639 * gdbarch.h, gdbarch.c: Regenerate.
7640 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7641 * x86-64-tdep.c (x86_64_init_abi): Update.
7642 * v850-tdep.c (v850_gdbarch_init): Update.
7643 * sparc-tdep.c (sparc_gdbarch_init): Update.
7644 * sh-tdep.c (sh_gdbarch_init): Update.
7645 * s390-tdep.c (s390_gdbarch_init): Update.
7646 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7647 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7648 * mips-tdep.c (mips_gdbarch_init): Update.
7649 * mcore-tdep.c (mcore_gdbarch_init): Update.
7650 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7651 * ia64-tdep.c (ia64_gdbarch_init): Update.
7652 * i386-tdep.c (i386_gdbarch_init): Update.
7653 * h8300-tdep.c (h8300_gdbarch_init): Update.
7654 * frv-tdep.c (frv_gdbarch_init): Update.
7655 * cris-tdep.c (cris_gdbarch_init): Update.
7656 * avr-tdep.c (avr_gdbarch_init): Update.
7657 * arm-tdep.c (arm_gdbarch_init): Update.
7658 * valops.c (hand_function_call): Update.
7659
4d628cd7
AC
76602003-03-29 Andrew Cagney <cagney@redhat.com>
7661
7662 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7663 sizeof_call_dummy_words.
7664 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7665 define.
7666 * gdbarch.h: Regenerate.
8ffd9b1b 7667
65e82032
AC
76682003-03-29 Andrew Cagney <cagney@redhat.com>
7669
7670 * infttrace.h: New file.
7671 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7672 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7673 (hpread_read_doc_function_type): Detect an initialized type1.
7674 (hpread_quick_traverse): Initialize mod_name_string.
7675 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7676 (som_solib_get_solib_by_pc): Declare.
7677 (so_lib_thread_start_addr): Declare.
7678 (no_shared_libraries): Declare.
7679 * somread.c (init_import_symbols): Make static. Add forward
7680 declaration.
7681 * config/pa/nm-hppah.h: Include "infttrace.h" for
7682 parent_attach_all.
7683 (hppa_insert_hw_watchpoint): Declare.
7684 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7685 * hppah-nat.c: Include "gdb_string.h".
7686 (parent_attach_all): Delete extern declaration, moved to
7687 "infttrace.h".
7688 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7689 int.
7690 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7691 * Makefile.in (infttrace_h): Define.
7692 (hpread.o): Update dependencies.
7693 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7694 * hppa-hpux-tdep.c: Include "gdb_string.h".
7695 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7696 * infrun.c (handle_inferior_event): Always initialize
7697 stepped_after_stopped_by_watchpoint. Add default and remove
7698 fallthrough in switch statement.
7699 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7700 parameter to int.
7701 (hppa_remove_hw_watchpoint): Ditto.
7702
2c3bbe77
AC
77032003-03-29 Andrew Cagney <cagney@redhat.com>
7704
7705 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7706 offset.
7707
2dd604e7
RE
77082003-03-29 Richard Earnshaw <rearnsha@arm.com>
7709
7710 * arm-tdep.c (arm_push_arguments): Delete.
7711 (struct stack_item): New type.
7712 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7713 (arm_store_struct_return): Delte.
7714 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7715 arm_push_arguments or arm_store_struct_return.
7716
e8933a55
AC
77172003-03-28 Andrew Cagney <cagney@redhat.com>
7718
7719 * Makefile.in (d10v-tdep.o): Update dependencies.
7720 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7721 * d10v-tdep.c: Include "remote.h".
7722 (target_resume_hook): Delete extern declaration.
7723 (target_wait_loop_hook): Ditto.
7724 (tdisassemble_command): Eliminate assignment in "if" conditional.
7725 (d10v_ts2_register_sim_regno): Eliminate call to
7726 legacy_register_sim_regno.
7727 (d10v_ts3_register_sim_regno): Ditto.
7728
6949171e
JJ
77292003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7730
7731 * thread.c: Reindented.
7732 * lin-lwp.c: Ditto.
7733 * linux-proc.c: Ditto.
7734
98c7071f
BR
77352003-03-28 Bob Rossi <bob_rossi@cox.net>
7736
fbe586ae 7737 * MAINTAINERS (write after approval): Add myself.
98c7071f 7738
5edc9ca6
TR
77392003-03-27 Theodore A. Roth <troth@openavr.org>
7740
7741 * objc-exp.y: Add missing semi-colons.
7742
378bfd1b
AC
77432003-03-27 Andrew Cagney <cagney@redhat.com>
7744
7745 * regcache.c (write_sp): Delete function and references.
7746 * inferior.h (write_sp): Delete declaration.
7747 * valops.c (hand_function_call): Replace write_sp with
7748 TARGET_WRITE_SP.
7749 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7750 (sparc_pop_frame): Ditto.
8ffd9b1b 7751
56056df7
AC
77522003-03-27 Andrew Cagney <cagney@redhat.com>
7753
7754 * NEWS: Mention removal of support for hppa*-*-bsd* and
7755 hppa*-*-osf* natives, and hppa*-*-pro* target.
7756 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7757 * config/pa/xm-pa.h: Obsolete file.
7758 * config/pa/xm-hppab.h: Obsolete file.
7759 * config/pa/nm-hppab.h: Obsolete file.
7760 * config/pa/tm-hppab.h: Obsolete file.
7761 * config/pa/tm-hppao.h: Obsolete file.
7762 * config/pa/nm-hppao.h: Obsolete file.
7763 * config/pa/tm-pro.h: Obsolete file.
7764 * config/pa/hppaosf.mt: Obsolete file.
7765 * config/pa/hppaosf.mh: Obsolete file.
7766 * config/pa/hppapro.mt: Obsolete file.
7767 * config/pa/hppabsd.mt: Obsolete file.
7768 * config/pa/hppabsd.mh: Obsolete file.
7769 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7770 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7771 hppa*-*-osf*.
7772
5873a88d
AC
77732003-03-27 Andrew Cagney <cagney@redhat.com>
7774
7775 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7776 push_arguments. Don't set push_return_address or write_sp.
7777 (d10v_push_dummy_call): Replace d10v_push_arguments.
7778 (d10v_push_return_address, d10v_write_sp): Delete function,
7779 handled by push_dummy_call.
7780
b81774d8
AC
77812003-03-26 Andrew Cagney <cagney@redhat.com>
7782
7783 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7784 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7785 regcache and dummy_addr parameters.
7786 * gdbarch.h, gdbarch.c: Re-generate.
7787 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7788 available; assume it will handle stack alignment and return
7789 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7790 legacy_push_arguments.
7791 (legacy_push_arguments): Rename default_push_arguments.
7792 * value.h (legacy_push_arguments): Rename default_push_arguments.
7793 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7794 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7795 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7796 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7797 * config/i386/tm-symmetry.h: Update.
7798 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7799 * x86-64-tdep.c (x86_64_init_abi): Update.
7800 * v850-tdep.c (v850_gdbarch_init): Update.
7801 * sparc-tdep.c (sparc_gdbarch_init): Update.
7802 * sh-tdep.c (sh_gdbarch_init): Update.
7803 * s390-tdep.c (s390_gdbarch_init): Update.
7804 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7805 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7806 * mips-tdep.c (mips_gdbarch_init): Update.
7807 * mcore-tdep.c (mcore_gdbarch_init): Update.
7808 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7809 * ia64-tdep.c (ia64_gdbarch_init): Update.
7810 * i386-tdep.c (i386_gdbarch_init): Update.
7811 * hppa-tdep.c (hppa_gdbarch_init): Update.
7812 * h8300-tdep.c (h8300_gdbarch_init): Update.
7813 * frv-tdep.c (frv_gdbarch_init): Update.
7814 * d10v-tdep.c (d10v_gdbarch_init): Update.
7815 * cris-tdep.c (cris_gdbarch_init): Update.
7816 * avr-tdep.c (avr_gdbarch_init): Update.
7817 * arm-tdep.c (arm_gdbarch_init): Update.
7818 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7819 * alpha-tdep.c (alpha_gdbarch_init): Update.
7820
f541410f
DJ
78212003-03-26 Daniel Jacobowitz <drow@mvista.com>
7822
7823 * signals/signals.c (do_target_signal_to_host): Correct realtime
7824 signal range test.
7825
69f567ae
DJ
78262003-03-26 Daniel Jacobowitz <drow@mvista.com>
7827
7828 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7829 (struct sal_chain, map_catch_names): Remove.
7830 (catch_exception_command_1): Don't call
7831 handle_gnu_4_16_catch_command.
7832
d5d14a5a
DJ
78332003-03-26 Daniel Jacobowitz <drow@mvista.com>
7834
7835 From Mark Dettinger <dettinge@de.ibm.com>:
7836 * dwarf2cfi.c (read_2u): Increment pointer by two.
7837
bdd73e22
DJ
78382003-03-26 Daniel Jacobowitz <drow@mvista.com>
7839
7840 * signals/signals.c: Fix typos in last change.
7841
960cb555
DJ
78422003-03-26 Daniel Jacobowitz <drow@mvista.com>
7843
7844 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7845 not already defined. Use __SIGRTMIN if available.
7846 (target_signal_from_host): Remove SIGRTMIN block.
7847 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7848 the signal is within the realtime range.
7849
f636b87d
AF
78502003-03-25 Adam Fedor <fedor@gnu.org>
7851
7852 * Makefile.in (infrun.o): Add $(language_h)
7853 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7854 for language specific trampolines.
7855 * language.h (struct language_defn): Add skip_trampoline.
7856 (skip_language_trampoline): Declare.
7857 * language.c (unk_lang_trampoline, skip_language_trampoline):
7858 New functions.
7859 (unknown_language_defn, auto_language_defn, local_language_defn):
7860 Add ukn_lang_trampoline.
7861 * ada-lang.c (ada_language_defn): Add NULL for language
7862 specific skip_trampoline.
7863 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7864 scm-lang.c: Likewise.
7865 * objc-lang.c (objc_skip_trampoline): New function.
7866 (objc_language_defn): Add objc_skip_trampoline.
7867
28f617b3 78682003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
7869
7870 * frame.c (get_prev_frame): Delay validating a frame's ID -
7871 non-NULL, didn't go backwards - until an attempt to unwind it to
7872 the previous frame.
7873
f933a9c5
AC
78742003-03-25 Andrew Cagney <cagney@redhat.com>
7875
7876 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7877 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7878 * gdbarch.h, gdbarch.c: Re-generate.
7879 * config/sparc/tm-sparc.h
7880 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7881 * sparc-tdep.c (sparc_gdbarch_init): Set
7882 deprecated_extra_stack_alignment_needed.
7883 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7884 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7885 extra_stack_alignment_needed.
7886 * v850-tdep.c (v850_gdbarch_init): Ditto.
7887 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7888 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7889 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7890 * cris-tdep.c (cris_gdbarch_init): Ditto.
7891 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7892 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7893
4183d812
AC
78942003-03-25 Andrew Cagney <cagney@redhat.com>
7895
7896 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7897 STORE_STRUCT_RETURN.
7898 * gdbarch.h, gdbarch.c: Regenerate.
7899 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7900 (d10v_push_arguments): Set the struct return register.
7901 (d10v_gdbarch_init): Update.
7902 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7903 * x86-64-tdep.c (x86_64_init_abi): Update.
7904 * vax-tdep.c (vax_gdbarch_init): Update.
7905 * v850-tdep.c (v850_gdbarch_init): Update.
7906 * sparc-tdep.c (sparc_gdbarch_init): Update.
7907 * sh-tdep.c (sh_gdbarch_init): Update.
7908 * s390-tdep.c (s390_gdbarch_init): Update.
7909 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7910 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7911 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7912 * mips-tdep.c (mips_gdbarch_init): Update.
7913 * mcore-tdep.c (mcore_gdbarch_init): Update.
7914 * m68k-tdep.c (m68k_gdbarch_init): Update.
7915 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7916 * ia64-tdep.c (ia64_gdbarch_init): Update.
7917 * i386-tdep.c (i386_gdbarch_init): Update.
7918 * hppa-tdep.c (hppa_gdbarch_init): Update.
7919 * h8300-tdep.c (h8300_gdbarch_init): Update.
7920 * frv-tdep.c (frv_gdbarch_init): Update.
7921 * cris-tdep.c (cris_gdbarch_init): Update.
7922 * avr-tdep.c (avr_gdbarch_init): Update.
7923 * arm-tdep.c (arm_gdbarch_init): Update.
7924 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 7925
1bf6d5cc
AC
79262003-03-25 Andrew Cagney <cagney@redhat.com>
7927
7928 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7929 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7930 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7931 * gdbarch.h, gdbarch.c: Regenerate.
7932 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7933 call_dummy_stack_adjust_p.
7934 * vax-tdep.c (vax_gdbarch_init): Ditto.
7935 * v850-tdep.c (v850_gdbarch_init): Ditto.
7936 * sh-tdep.c (sh_gdbarch_init): Ditto.
7937 * s390-tdep.c (s390_gdbarch_init): Ditto.
7938 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7939 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7940 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7941 * mips-tdep.c (mips_gdbarch_init): Ditto.
7942 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7943 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7944 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7945 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7946 * i386-tdep.c (i386_gdbarch_init): Ditto.
7947 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7948 * frv-tdep.c (frv_gdbarch_init): Ditto.
7949 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7950 * cris-tdep.c (cris_gdbarch_init): Ditto.
7951 * avr-tdep.c (avr_gdbarch_init): Ditto.
7952 * arm-tdep.c (arm_gdbarch_init): Ditto.
7953 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7954 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7955 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7956 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7957 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7958 call_dummy_stack_adjust_p.
7959 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7960 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7961 * sparc-tdep.c (sparc32_push_arguments): Update.
7962 * valops.c (hand_function_call): Update.
7963
71c08af0
CV
79642003-03-25 Corinna Vinschen <vinschen@redhat.com>
7965
7966 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7967 set_gdbarch_char_signed.
7968
30757f90
RE
79692003-03-25 Richard Earnshaw <rearnsha@arm.com>
7970
7971 PR cli/548
7972 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7973
03d48a7d
RE
79742003-03-25 Richard Earnshaw <rearnsha@arm.com>
7975
7976 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7977 (_initialize_arm_tdep): Don't set tm_print_insn.
7978
2cf6873c
AF
79792003-03-24 Adam Fedor <fedor@gnu.org>
7980
7981 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7982 * objc-lang.h: Add multiple inclusion protection.
7983 (start_msglist, add_msglist, end_msglist): Additional declarations.
7984
17c0759e
RE
79852003-03-24 Richard Earnshaw <rearnsha@arm.com>
7986
7987 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7988 value was renamed to ARM_FLOAT_SOFT_FPA.
7989
618ce49f
AC
79902003-03-23 Andrew Cagney <cagney@redhat.com>
7991
7992 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7993 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7994 * gdbarch.h, gdbarch.c: Regenerate.
7995 * valops.c (hand_function_call): Update.
7996 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7997 * frame.c (legacy_saved_regs_this_id): Update.
7998 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7999 * dummy-frame.h: Update.
8000 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8001 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8002 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8003 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8004 * config/m68k/tm-sun3.h: Update.
8005 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8006 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8007 * x86-64-tdep.c (x86_64_init_abi): Update.
8008 * vax-tdep.c (vax_gdbarch_init): Update.
8009 * v850-tdep.c (v850_gdbarch_init): Update.
8010 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8011 * sh-tdep.c (sh_gdbarch_init): Update.
8012 * s390-tdep.c (s390_gdbarch_init): Update.
8013 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8014 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8015 (frame_get_saved_regs): Update.
8016 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8017 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8018 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8019 * mips-tdep.c (mips_gdbarch_init): Update.
8020 * mcore-tdep.c (mcore_gdbarch_init): Update.
8021 * m68k-tdep.c (m68k_gdbarch_init): Update.
8022 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8023 * ia64-tdep.c (ia64_gdbarch_init): Update.
8024 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8025 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8026 (i386_interix_back_one_frame): Update.
8027 * hppa-tdep.c (hppa_gdbarch_init): Update.
8028 (hppa_init_extra_frame_info): Update.
8029 * h8300-tdep.c (h8300_gdbarch_init): Update.
8030 * frv-tdep.c (frv_gdbarch_init): Update.
8031 * cris-tdep.c (cris_gdbarch_init): Update.
8032 * avr-tdep.c (avr_gdbarch_init): Update.
8033 * arm-tdep.c (arm_gdbarch_init): Update.
8034 * alpha-tdep.c (alpha_gdbarch_init): Update.
8035
fd50bc42
RE
80362003-03-22 Richard Earnshaw <rearnsha@arm.com>
8037
8038 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8039 (arm_get_fp_model): Declare.
8040 * arm-tdep.c (fp_model_strings): New string array.
8041 (arm_fp_model, current_fp_model): New variables.
8042 (arm_get_fp_model): New function.
8043 (arm_set_fp): New function.
8044 (set_fp_model_sfunc): New function.
8045 (show_fp_model): New function.
8046 (_initialize_arm_tdep): Add new command to set/show the FPU.
8047 (arm_extract_return_value): Use arm_get_fp_model.
8048 (arm_store_return_value): Likewise.
8049 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8050 to initialize the floating-point data types.
8051 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8052 model is FPA.
8053
26304000
RE
80542003-03-22 Richard Earnshaw <rearnsha@arm.com>
8055
8056 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8057 the current setting of each value.
8058 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 8059 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
8060 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8061 commands and add new version as subcommands of "set/show arm".
8062
afd7eef0
RE
80632003-03-22 Richard Earnshaw <rearnsha@arm.com>
8064
8065 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8066 (set_arm_command, show_arm_command): New functions.
8067 (_initialize_arm_tdep): Add them.
8068 (num_disassembly_options): Renamed from num_flavor_options.
8069 (valid_disassembly_styles): Renamed from valid_flavors.
8070 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 8071 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
8072 set_disassembly_flavor_sfunc.
8073 (set_disassembly_style): Renamed from set_disassembly_flavor.
8074 (arm_othernames): Updated.
8075 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8076 command. Add "set/show arm disassembly" commands. Deprecate
8077 "othernames" command.
8078
299a7944
RE
80792003-03-22 Richard Earnshaw <rearnsha@arm.com>
8080
8081 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8082 (arm-tdep.o): Depend on elf_arm_h.
8083
c1dac9e6
RE
80842003-03-22 Richard Earnshaw <rearnsha@arm.com>
8085
8086 * Makefile.in (coff_internal_h): Define.
8087 (arm-tdep.o): Update dependencies.
8088
2702d96c
RE
80892003-03-22 Richard Earnshaw <rearnsha@arm.com>
8090
8091 * arm-tdep.c (prologue_cache): Delete.
8092 (check_prologue_cache, save_prologue_cache): Delete.
8093 (arm_scan_prologue): Don't check or update the prologue_cache.
8094 (arm_gdb_arch_init): Don't initialize it.
8095 (_initialize_arm_tdep): Likewise.
8096
27d5d74b
SC
80972003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8098
8099 * MAINTAINERS (tui): Maintainer of tui code.
8100
1762d96d
CV
81012003-03-21 Corinna Vinschen <vinschen@redhat.com>
8102
8103 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8104 (i386-cygwin-tdep.o): Add dependencies.
8105 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8106 * i386-cygwin-tdep.c: New file.
8107 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8108 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8109
4c2e2391
AC
81102003-03-20 Andrew Cagney <cagney@redhat.com>
8111
f20d38b7
AC
8112 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8113 (handle_inferior_event): Remove code calling
8114 DYNAMIC_TRAMPOLINE_NEXTPC.
8115
0022b738
AC
8116 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8117 already has a full path.
8118
864dbc90
AC
8119 * main.c (gdb_main): Return 1.
8120 (captured_main): Call error to report an invalid interpreter.
8121
4c2e2391
AC
8122 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8123 * alpha-osf1-tdep.c: Include "gdb_string.h".
8124
5ef7553b
JB
81252003-03-19 J. Brobecker <brobecker@gnat.com>
8126
8127 Continuing work to convert the hppa targets to multiarch partial.
8128
8129 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8130 method, now that hppa_push_dummy_frame has a conformant prototype.
8131 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8132 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8133 for the switch to multiarch partial.
8134
7bde8967
KB
81352003-03-19 Kevin Buettner <kevinb@redhat.com>
8136
8137 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8138 when iss is issNull.
8139
b006a9e9
KB
81402003-03-18 Kevin Buettner <kevinb@redhat.com>
8141
8142 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8143 NUM_REGS bounds check.
8144
5e2e9765
KB
81452003-03-18 Kevin Buettner <kevinb@redhat.com>
8146
8147 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8148 * mips-tdep.c (gdb_assert.h): Include.
8149 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8150 (mips_register_name): Handle integer registers explicitly. Add
8151 bounds checking.
8152 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8153 (mips_lsi33k_reg_names): Don't list integer registers; they're
8154 handled by mips_register_name() now.
8155 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8156 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8157 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8158 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8159 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8160
a2867626
AC
81612003-03-18 Andrew Cagney <cagney@redhat.com>
8162
8163 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8164 a void pointer.
8165 * gdbtypes.h (print_scalar_formatted): Update declaration.
8166 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8167
06600e06
JB
81682003-03-18 J. Brobecker <brobecker@gnat.com>
8169
8170 * infrun.c (observer.h): Add #include.
8171 (normal_stop): Add call to observer_notify_normal_stop.
8172 * Makefile.in (infrun.o): Add dependency on observer.h.
8173
7daf4f5b
JB
81742003-03-18 J. Brobecker <brobecker@gnat.com>
8175
8176 Continuing work to convert the hppa targets to multiarch partial.
8177 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8178 parameter. Reformat comment.
8179 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8180 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8181 to match new profile.
8182
3371ccc0
JB
81832003-03-18 J. Brobecker <brobecker@gnat.com>
8184
8185 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8186 appear to be working in any case.
8187
4fbe891e
JB
81882003-03-18 J. Brobecker <brobecker@gnat.com>
8189
8190 * observer.c (observer_test_first_observer): New static variable.
8191 (observer_test_second_observer): Likewise.
8192 (observer_test_third_observer): Likewise.
8193 (observer_test_first_notification_function): New static function.
8194 (observer_test_second_notification_function): Likewise.
8195 (observer_test_third_notification_function): Likewise.
8196
a7ff40e7
JB
81972003-03-17 J. Brobecker <brobecker@gnat.com>
8198
8199 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8200 * somsolib.c (gdb_assert.h): Likewise.
8201 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8202 (somsolib.o): Likewise.
8203
26ca4152
AC
82042003-03-17 Andrew Cagney <cagney@redhat.com>
8205
8206 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8207 BFD. Simplify setting of di.endian.
8208
0a613259
AC
82092003-03-17 Andrew Cagney <cagney@redhat.com>
8210
8211 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8212 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8213
8214 From Elena Zannoni <ezannoni@redhat.com>
8215 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8216 vector and floating-point parameters.
8217 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8218 convention.
8219 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8220
1132738f
FN
82212003-03-17 Fernando Nasser <fnasser@redhat.com>
8222
8223 * MAINTAINERS: Remove my name from several maintainership roles.
8224
6dc42492
AC
82252003-03-17 Andrew Cagney <cagney@redhat.com>
8226
8227 Fix frame off-by-one bug.
8228 * frame-unwind.h (frame_this_id_ftype): Replace
8229 frame_unwind_id_ftype.
8230 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8231 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8232 with "prev_register".
8233 * frame-unwind.c (frame_unwind_find_by_pc): Return
8234 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8235 comment.
8236 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8237 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8238 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8239 (dummy_frame_unwind): Update.
8240 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8241 sentinel_frame_register_unwind.
8242 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8243 (sentinel_frame_unwinder): Update.
8244 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8245 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8246 * frame.c (create_sentinel_frame): Update. Initialize
8247 "prologue_cache" instead of "unwind_cache".
8248 (frame_register_unwind): Call this frame's prev_register with the
8249 next frame and this frame's prologue cache.
8250 (get_prev_frame): Simplify. Always call prev frame's this_id with
8251 this frame and prev frame's prologue cache. Document that this
8252 call is shifted one to the left when compared to the
8253 frame_register_unwind call.
8254 (legacy_saved_regs_prev_register): Replace
8255 frame_saved_regs_register_unwind.
8256 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8257 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8258 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8259 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8260 (d10v_frame_unwind): Update.
8261 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8262 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8263 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8264 "saved_regs" with "this_saved_regs".
8265
efd710d6
AC
82662003-03-16 Andrew Cagney <cagney@redhat.com>
8267
8268 * frame.c (frame_pop): Don't call target_store_registers. Fix
8269 problem reported by Mark Kettenis.
8270
4e259f09
MK
82712003-03-16 Mark Kettenis <kettenis@gnu.org>
8272
8273 * i386-tdep.c (i386_register_type): Renamed from
8274 i386_register_virtual_type. Adjust function signature.
8275 (i386_gdbarch_init): Set register_type instead of
8276 deprecated_max_register_raw_size,
8277 deprecated_max_register_virtual_size and register_virtual_type.
8278
055bb976
AC
82792003-03-14 Andrew Cagney <cagney@redhat.com>
8280
8281 * frame.c (get_prev_frame): When a legacy frame, always call
8282 legacy_get_prev_frame. Simplify unwind code using assumption that
8283 the unwinder is new.
8284 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8285 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8286 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8287
ac2adee5
AC
82882003-03-14 Andrew Cagney <cagney@redhat.com>
8289
8290 * frame.c (get_saved_register): Delete function.
8291 * frame.h (get_saved_register): Delete declaration.
8292 * xstormy16-tdep.c: Update comment.
8293 * regcache.h: Update comments.
8294 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8295 get_saved_register and extract_address, use
8296 frame_read_unsigned_register.
8297 (sparc_frame_saved_pc): Ditto.
8298 (sparc_get_saved_register): Instead of get_saved_register, use
8299 frame_register.
8300 (sparc_pop_frame): Ditto.
8301 * findvar.c: Update comments.
8302 (value_of_register): Call frame_register instead of
8303 get_saved_register.
8304 (value_from_register): Ditto.
8305 * config/sparc/tm-sparc.h: Update comment.
8306 * breakpoint.c: Update comment.
8307
129c1cd6
AC
83082003-03-14 Andrew Cagney <cagney@redhat.com>
8309
8310 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8311 GET_SAVED_REGISTER.
8312 * gdbarch.h, gdbarch.c: Re-generate.
8313 * frame.h: Update comments.
8314 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8315 * x86-64-tdep.c (x86_64_init_abi): Update.
8316 * sparc-tdep.c (sparc_gdbarch_init): Update.
8317 * sh-tdep.c (sh_gdbarch_init): Update.
8318 * mips-tdep.c (mips_gdbarch_init): Update.
8319 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8320 * cris-tdep.c (cris_gdbarch_init): Update.
8321 * ia64-tdep.c (ia64_gdbarch_init): Update.
8322 * frame.c (frame_register): Update.
8323 (get_saved_register): Update.
8324 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 8325
749b82f6
AC
83262003-03-13 Andrew Cagney <cagney@redhat.com>
8327
8328 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8329 * gdbarch.h, gdbarch.c: Regenerate.
8330 * valops.c (hand_function_call): Update comment.
8331 * stack.c (return_command): Update comment.
8332 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8333 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8334 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8335 * x86-64-tdep.c (x86_64_init_abi): Update.
8336 * vax-tdep.c (vax_gdbarch_init): Update.
8337 * v850-tdep.c (v850_gdbarch_init): Update.
8338 * sparc-tdep.c (sparc_gdbarch_init): Update.
8339 * sh-tdep.c (sh_gdbarch_init): Update.
8340 * s390-tdep.c (s390_gdbarch_init): Update.
8341 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8342 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8343 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8344 * mips-tdep.c (mips_gdbarch_init): Update.
8345 * mcore-tdep.c (mcore_gdbarch_init): Update.
8346 * m68k-tdep.c (m68k_gdbarch_init): Update.
8347 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8348 * ia64-tdep.c (ia64_gdbarch_init): Update.
8349 * i386-tdep.c (i386_gdbarch_init): Update.
8350 * hppa-tdep.c (hppa_gdbarch_init): Update.
8351 * h8300-tdep.c (h8300_gdbarch_init): Update.
8352 * frv-tdep.c (frv_gdbarch_init): Update.
8353 * cris-tdep.c (cris_gdbarch_init): Update.
8354 * avr-tdep.c (avr_gdbarch_init): Update.
8355 * arm-tdep.c (arm_gdbarch_init): Update.
8356 * alpha-tdep.c (alpha_gdbarch_init): Update.
8357
1594fa56
AC
83582003-03-13 Andrew Cagney <cagney@redhat.com>
8359
8360 * frame.c (legacy_frame_p): New function.
8361 (get_prev_frame): Use legacy_frame_p.
8362 * frame.h (legacy_frame_p): Declare.
8363
7717fda3
V
83642003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8365
fbe586ae 8366 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
8367 listing corrected.
8368
0c67cbe9
V
83692003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8370
fbe586ae 8371 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 8372
03febf99
AC
83732003-03-12 Andrew Cagney <cagney@redhat.com>
8374
8375 * frame.c (get_prev_frame): Rename the frame parameter to
8376 "this_frame".
8377 (get_next_frame, legacy_get_prev_frame): Ditto.
8378
0a1e1ca1
AC
83792003-03-12 Andrew Cagney <cagney@redhat.com>
8380
8381 * frame.c (get_current_frame): Check target_has_registers before
8382 checking target_has_stack.
8383 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8384 instead of deprecated_selected_frame.
8385 * findvar.c (value_of_register): Pass "frame", not
8386 deprecated_selected_frame, to value_of_builtin_reg.
8387
a66a9c23
AC
83882003-03-12 Andrew Cagney <cagney@redhat.com>
8389
8390 * regcache.c (regcache_cooked_write_signed): New function.
8391 (regcache_cooked_write_unsigned): New function.
8392 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8393 (regcache_cooked_read_signed): Fix regnum in range assertion.
8394 * regcache.h (regcache_cooked_write_signed): Declare.
8395 (regcache_cooked_write_unsigned): Declare.
8396
8bedc050
AC
83972003-03-12 Andrew Cagney <cagney@redhat.com>
8398
8399 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8400 * gdbarch.h, gdbarch.c: Re-generate.
8401 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8402 * x86-64-tdep.h: Update.
8403 * x86-64-tdep.c (x86_64_init_abi): Update.
8404 * v850-tdep.c (v850_gdbarch_init): Update.
8405 * sparc-tdep.c (sparc_gdbarch_init): Update.
8406 * sh-tdep.c (sh_gdbarch_init): Update.
8407 * s390-tdep.c (s390_gdbarch_init): Update.
8408 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8409 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8410 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8411 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8412 * mips-tdep.c (mips_gdbarch_init): Update.
8413 * mcore-tdep.c (mcore_gdbarch_init): Update.
8414 * m68k-tdep.c (m68k_gdbarch_init): Update.
8415 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8416 * ia64-tdep.c (ia64_gdbarch_init): Update.
8417 * i386-tdep.c (i386_gdbarch_init): Update.
8418 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8419 * hppa-tdep.c (hppa_gdbarch_init): Update.
8420 * h8300-tdep.c (h8300_gdbarch_init): Update.
8421 * frv-tdep.c (frv_gdbarch_init): Update.
8422 * cris-tdep.c (cris_gdbarch_init): Update.
8423 * avr-tdep.c (avr_gdbarch_init): Update.
8424 * arm-tdep.c (arm_gdbarch_init): Update.
8425 * alpha-tdep.c (alpha_gdbarch_init): Update.
8426 * sh-tdep.c (sh_init_extra_frame_info): Update.
8427 (sh64_init_extra_frame_info): Update.
8428 * ns32knbsd-nat.c (frame_num_args): Update.
8429 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8430 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8431 (xstormy16_frame_chain_valid): Update.
8432 * vax-tdep.c (vax_saved_pc_after_call): Update.
8433 * v850-tdep.c (v850_frame_chain): Update.
8434 (v850_pop_frame): Update.
8435 (v850_init_extra_frame_info): Update.
8436 * sparc-tdep.c (setup_arbitrary_frame): Update.
8437 * ns32k-tdep.c (umax_frame_num_args): Update.
8438 * s390-tdep.c (s390_pop_frame_regular): Update.
8439 * mn10300-tdep.c (mn10300_frame_chain): Update.
8440 (mn10300_pop_frame_regular): Update.
8441 (mn10300_init_extra_frame_info): Update.
8442 * mips-tdep.c (mips_init_frame_pc_first): Update.
8443 (mips_frame_chain): Update.
8444 (mips_pop_frame): Update.
8445 * mcore-tdep.c (mcore_frame_chain): Update.
8446 (mcore_pop_frame): Update.
8447 (mcore_init_extra_frame_info): Update.
8448 * arch-utils.c (init_frame_pc_default): Update.
8449 * m68k-tdep.c (isi_frame_num_args): Update.
8450 (delta68_frame_num_args): Update.
8451 (news_frame_num_args): Update.
8452 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8453 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8454 (alpha_frame_chain): Update.
8455 (alpha_pop_frame): Update.
8456 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8457 (hppa_init_extra_frame_info): Update.
8458 (hppa_frame_chain): Update.
8459 (hppa_frame_chain_valid): Update.
8460 * cris-tdep.c (cris_init_extra_frame_info): Update.
8461 * avr-tdep.c (avr_init_extra_frame_info): Update.
8462 * arm-tdep.c (arm_frame_chain_valid): Update.
8463 (arm_init_extra_frame_info): Update.
8464 (arm_pop_frame): Update.
8465 * frame.c (frame_pc_unwind): Update.
8466 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8467 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8468 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8469 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8470 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8471 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8472
7a25a7c1
AC
84732003-03-12 Andrew Cagney <cagney@redhat.com>
8474
8475 Eliminate the need for POP_FRAME.
8476 * frame.c (do_frame_unwind_register): New function.
8477 (frame_pop): When no POP_FRAME, pop the frame using register
8478 unwind and a scratch regcache.
8479 (frame_saved_regs_pop): Delete function.
8480 (trad_frame_unwinder): Update.
8481 * d10v-tdep.c (d10v_frame_pop): Delete function.
8482 (d10v_frame_unwind): Update.
8483 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8484 (sentinel_frame_unwinder): Update.
8485 * dummy-frame.c (dummy_frame_pop): Delete function.
8486 (dummy_frame_unwind): Update.
8487 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8488 (struct frame_unwind): Update.
8489
2f38ef89
KB
84902003-03-11 Kevin Buettner <kevinb@redhat.com>
8491
8492 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8493 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8494 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8495 Do range checks on register number obtained from debugging info.
8496 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8497 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8498 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8499 mapping function.
8500 (do_fp_register_row): Fix typo which caused double type to be
8501 used when attempting to unpack a float.
8502
552f4abf
JB
85032003-03-11 J. Brobecker <brobecker@gnat.com>
8504
8505 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8506
e0d2ae16
AC
85072003-03-11 Andrew Cagney <cagney@redhat.com>
8508
8509 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8510 frame. Problem found by Corinna Vinschen.
8511
ddbfdd06
PM
85122003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8513
8514 * doublest.c (floatformat_from_length): Accept also
8515 the real size of 'long double' type.
8516
088b2ddc 85172003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 8518
088b2ddc 8519 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
8520 * breakpoint.c (bpstat_copy): Copy the command lines as well
8521 as the old value, to match what is freed in bpstat_clear.
8522
f56f77c1
DC
85232003-03-10 David Carlton <carlton@math.stanford.edu>
8524
8525 * minsyms.c (add_minsym_to_hash_table): Replace
8526 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8527 (compare_minimal_symbols, compact_minimal_symbols)
8528 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8529 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8530 of DEPRECATED_SYMBOL_MATCHES_NAME.
8531 (lookup_minimal_symbol_solib_trampoline): Ditto.
8532
5602984a
AC
85332003-03-10 Andrew Cagney <cagney@redhat.com>
8534
8535 * regcache.h (regcache_cooked_read_ftype): Define.
8536 (regcache_save, regcache_restore): Add a cooked_read parameter.
8537 * regcache.c (regcache_save, regcache_restore): Update.
8538 (do_cooked_read): New function.
8539 (regcache_cpy): Pass do_cooked_read to regcache_save and
8540 regcache_restore.
8541
8bedc050
AC
85422003-03-10 Andrew Cagney <cagney@redhat.com>
8543
8544 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8545 * gdbarch.h, gdbarch.c: Re-generate.
8546 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8547 * x86-64-tdep.h: Update.
8548 * x86-64-tdep.c (x86_64_init_abi): Update.
8549 * v850-tdep.c (v850_gdbarch_init): Update.
8550 * sparc-tdep.c (sparc_gdbarch_init): Update.
8551 * sh-tdep.c (sh_gdbarch_init): Update.
8552 * s390-tdep.c (s390_gdbarch_init): Update.
8553 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8554 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8555 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8556 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8557 * mips-tdep.c (mips_gdbarch_init): Update.
8558 * mcore-tdep.c (mcore_gdbarch_init): Update.
8559 * m68k-tdep.c (m68k_gdbarch_init): Update.
8560 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8561 * ia64-tdep.c (ia64_gdbarch_init): Update.
8562 * i386-tdep.c (i386_gdbarch_init): Update.
8563 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8564 * hppa-tdep.c (hppa_gdbarch_init): Update.
8565 * h8300-tdep.c (h8300_gdbarch_init): Update.
8566 * frv-tdep.c (frv_gdbarch_init): Update.
8567 * cris-tdep.c (cris_gdbarch_init): Update.
8568 * avr-tdep.c (avr_gdbarch_init): Update.
8569 * arm-tdep.c (arm_gdbarch_init): Update.
8570 * alpha-tdep.c (alpha_gdbarch_init): Update.
8571 * sh-tdep.c (sh_init_extra_frame_info): Update.
8572 (sh64_init_extra_frame_info): Update.
8573 * ns32knbsd-nat.c (frame_num_args): Update.
8574 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8575 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8576 (xstormy16_frame_chain_valid): Update.
8577 * vax-tdep.c (vax_saved_pc_after_call): Update.
8578 * v850-tdep.c (v850_frame_chain): Update.
8579 (v850_pop_frame): Update.
8580 (v850_init_extra_frame_info): Update.
8581 * sparc-tdep.c (setup_arbitrary_frame): Update.
8582 * ns32k-tdep.c (umax_frame_num_args): Update.
8583 * s390-tdep.c (s390_pop_frame_regular): Update.
8584 * mn10300-tdep.c (mn10300_frame_chain): Update.
8585 (mn10300_pop_frame_regular): Update.
8586 (mn10300_init_extra_frame_info): Update.
8587 * mips-tdep.c (mips_init_frame_pc_first): Update.
8588 (mips_frame_chain): Update.
8589 (mips_pop_frame): Update.
8590 * mcore-tdep.c (mcore_frame_chain): Update.
8591 (mcore_pop_frame): Update.
8592 (mcore_init_extra_frame_info): Update.
8593 * arch-utils.c (init_frame_pc_default): Update.
8594 * m68k-tdep.c (isi_frame_num_args): Update.
8595 (delta68_frame_num_args): Update.
8596 (news_frame_num_args): Update.
8597 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8598 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8599 (alpha_frame_chain): Update.
8600 (alpha_pop_frame): Update.
8601 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8602 (hppa_init_extra_frame_info): Update.
8603 (hppa_frame_chain): Update.
8604 (hppa_frame_chain_valid): Update.
8605 * cris-tdep.c (cris_init_extra_frame_info): Update.
8606 * avr-tdep.c (avr_init_extra_frame_info): Update.
8607 * arm-tdep.c (arm_frame_chain_valid): Update.
8608 (arm_init_extra_frame_info): Update.
8609 (arm_pop_frame): Update.
8610 * frame.c (frame_pc_unwind): Update.
8611 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8612 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8613 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8614 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8615 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8616 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8617
12cc2063
AC
86182003-03-10 Andrew Cagney <cagney@redhat.com>
8619
8620 * gdbarch.sh (gdbarch_unwind_pc): New method.
8621 * gdbarch.h, gdbarch.c: Regenerate.
8622 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8623 but use read_pc and FRAME_SAVED_PC as fall backs.
8624 (frame_saved_regs_pc_unwind): Delete function.
8625 (trad_frame_unwinder): Update.
8626 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8627 (struct frame_unwind): Update.
8628 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8629 (dummy_frame_unwind): Update.
8630 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8631 (sentinel_frame_unwinder): Update.
8632 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8633 (d10v_frame_unwind): Update.
8634 (d10v_unwind_pc): New function.
8635 (d10v_gdbarch_init): Set unwind_pc.
8636
ef840a37
AC
86372003-03-10 Andrew Cagney <cagney@redhat.com>
8638
a2ce2e56
AC
8639 * gdbarch.h: Re-generate.
8640
ef840a37
AC
8641 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8642 PC.
8643 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8644 the PC register.
8645
08f3424b
MK
86462003-03-08 Mark Kettenis <kettenis@gnu.org>
8647
8648 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8649
1248ede2
AC
86502003-03-08 Andrew Cagney <cagney@redhat.com>
8651
8652 * cli-out.c: Update copyright.
8653 (cli_out_data): Define typedef. Use instead of ui_out_data.
8654
f49bacc8
AC
86552003-03-08 Andrew Cagney <cagney@redhat.com>
8656
8657 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8658 the result.
8659
9b05f993
AC
86602003-03-07 Andrew Cagney <cagney@redhat.com>
8661
8662 * gdbarch.sh: Don't generate two macro definitions when an
8663 undefined macro taking no arguments.
8664 * gdbarch.h: Regenerate.
8ffd9b1b 8665
166f4c7b
ML
86662002-03-07 Michal Ludvig <mludvig@suse.cz>
8667
8668 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8669 (x86_64_unwind_dummy_id): New functions.
8670 (x86_64_init_abi): Register these two new functions.
8671
6d686a84
ML
86722003-03-07 Michal Ludvig <mludvig@suse.cz>
8673
8674 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 8675 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
8676 separate function.
8677 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8678
6314f104
AC
86792003-03-05 Andrew Cagney <cagney@redhat.com>
8680
8681 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8682 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8683 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8684 to use unwind_dummy_id when a dummy frame.
8685 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8686 predicate.
8687 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 8688
ceea5145
AC
86892003-03-05 Andrew Cagney <cagney@redhat.com>
8690
8691 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8692 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8693 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8694 values.
8695
0d843116
AC
86962003-03-05 Andrew Cagney <cagney@redhat.com>
8697
8698 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8699 (struct d10v_unwind_cache): Delete field "frameless". Replace
8700 "next_addr" with "sp_offset". Add "r11_offset".
8701 (d10v_frame_unwind_cache): Update.
8702 (prologue_find_regs): Update. When "mv r11, sp", save the
8703 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8704 RN was saved in r11_offset.
8705
b2579786
AC
87062003-03-05 Andrew Cagney <cagney@redhat.com>
8707
8708 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8709 cached PC value in the next frame.
8710
218e5956
AC
87112003-03-05 Andrew Cagney <cagney@redhat.com>
8712
8713 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8714 "id_unwind_cache" with "id".
8715 (frame_id_unwind): Delete declaration.
8716 * frame.c (frame_id_unwind): Delete function.
8717 (get_prev_frame): Call the frame id unwind method directly. Store
8718 the returned next frame's ID value in NEXT_FRAME. Note that there
8719 is a problem with the wrong unwind ID being called with the wrong
8720 unwind cache.
8721
ed363b1b
DJ
87222003-03-05 Daniel Jacobowitz <drow@mvista.com>
8723
8724 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8725
fe1f4a5e
DJ
87262003-03-05 James Ingham <jingham@apple.com>
8727 Daniel Jacobowitz <drow@mvista.com>
8728
8729 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8730 (auto_cp_abi): New variable.
8731 (current_cp_abi, num_cp_abis): Make static.
8732 (CP_ABI_MAX): Define.
8733 (cp_abis): Turn into an array.
8734 (value_virtual_fn_field): Fix formatting.
8735 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8736 takes a pointer.
8737 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8738 (list_cp_abis, _initialize_cp_abi): New functions.
8739 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8740 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8741 switch_to_cp_abi. Update prototype for register_cp_abi.
8742 * Makefile.in (cp-abi.o): Update dependencies.
8743 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8744 instead of switch_to_cp_abi.
8745 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8746 register_cp_abi.
8747 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8748 register_cp_abi.
8749 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8750
e4adbba9
DJ
87512003-03-05 Daniel Jacobowitz <drow@mvista.com>
8752
8753 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8754 * dwarf2loc.c: Include "regcache.h".
8755 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8756 register_size.
8757 * Makefile.in (dwarf2loc.o): Update dependencies.
8758
91ccbfc1
TR
87592003-03-04 Theodore A. Roth <troth@openavr.org>
8760
8761 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8762 number of io registers reported by remote target is not a multiple of
8763 step.
8764
3d4e8fd2
DC
87652003-03-04 David Carlton <carlton@math.stanford.edu>
8766
8767 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8768 (lookup_symbol_aux_psymtabs): Update call to
8769 lookup_partial_symbol.
8770 (lookup_transparent_type, find_main_psymtab)
8771 (make_symbol_overload_list): Ditto.
8772
ed42d87b
KH
87732003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8774
8775 * MAINTAINERS (Write after approval): Update my email address.
8776
a0ed5532
AC
87772003-03-03 Andrew Cagney <cagney@redhat.com>
8778
8779 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8780 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8781 predicate. Replace MAX_REGISTER_RAW_SIZE.
8782 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8783 MAX_REGISTER_VIRTUAL_SIZE.
8784 * regcache.c (legacy_max_register_raw_size): New function.
8785 (legacy_max_register_virtual_size): New function.
8786 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8787 (MAX_REGISTER_RAW_SIZE): Define.
8788 (legacy_max_register_raw_size): Declare.
8789 (legacy_max_register_virtual_size): Declare.
8790 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8791 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8792 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8793 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8794 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8795 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8796 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8797 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8798 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8799 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8800 * vax-tdep.c (vax_gdbarch_init): Update.
8801 * v850-tdep.c (v850_gdbarch_init): Update.
8802 * sparc-tdep.c (sparc_gdbarch_init): Update.
8803 * sh-tdep.c (sh_gdbarch_init): Update.
8804 * s390-tdep.c (s390_gdbarch_init): Update.
8805 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8806 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8807 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8808 * mips-tdep.c (mips_gdbarch_init): Update.
8809 * mcore-tdep.c (mcore_gdbarch_init): Update.
8810 * m68k-tdep.c (m68k_gdbarch_init): Update.
8811 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8812 * ia64-tdep.c (ia64_gdbarch_init): Update.
8813 * i386-tdep.c (i386_gdbarch_init): Update.
8814 * hppa-tdep.c (hppa_gdbarch_init): Update.
8815 * h8300-tdep.c (h8300_gdbarch_init): Update.
8816 * frv-tdep.c (frv_gdbarch_init): Update.
8817 * cris-tdep.c (cris_gdbarch_init): Update.
8818 * avr-tdep.c (avr_gdbarch_init): Update.
8819 * arm-tdep.c (arm_gdbarch_init): Update.
8820 * alpha-tdep.c (alpha_gdbarch_init): Update.
8821 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8822 max_register_raw_size or max_register_virtual_size.
8823
8e437497
DC
88242003-03-03 David Carlton <carlton@math.stanford.edu>
8825
8826 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8827 SYMBOL_MATCHES_NAME, add comment.
8828 (SYMBOL_MATCHES_NATURAL_NAME): New.
8829 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8830 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8831 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8832 * symtab.c (lookup_partial_symbol): Use
8833 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8834 unhelpful comment.
8835 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8836 SYMBOL_MATCHES_NAME.
8837 Fix for PR c++/33.
8838
25120b0d
DC
88392003-03-03 David Carlton <carlton@math.stanford.edu>
8840
8841 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8842 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8843 by regexp matching against SYMBOL_NATURAL_NAME.
8844
78a11fb4
DC
88452003-03-03 David Carlton <carlton@math.stanford.edu>
8846
8847 * linespec.c (find_method): Extract code into collect_methods.
8848 (collect_methods): New.
8849
645dd519
MK
88502003-03-02 Mark Kettenis <kettenis@gnu.org>
8851
b4700d91
MK
8852 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8853 get_frame_base.
8854
645dd519
MK
8855 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8856 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8857
0aa7e1aa
SC
88582003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8859
8ffd9b1b 8860 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
8861 and not regnum when summing the size of all registers up to regnum.
8862
f30ee0bc
AC
88632003-03-01 Andrew Cagney <cagney@redhat.com>
8864
8865 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8866 FRAME_INIT_SAVED_REGS.
8867 * gdbarch.h, gdbarch.c: Regenerate.
8868 * stack.c (frame_info): Update.
8869 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8870 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8871 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8872 * ns32k-tdep.c (ns32k_pop_frame): Update.
8873 * mips-tdep.c (mips_pop_frame): Update.
8874 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8875 * ia64-tdep.c (ia64_frame_chain): Update.
8876 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8877 (ia64_frameless_function_invocation): Update.
8878 (ia64_init_extra_frame_info): Update.
8879 (ia64_pop_frame_regular): Update.
8880 * frame.h (struct frame_info): Update comment.
8881 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8882 * frame.c (frame_saved_regs_register_unwind): Update.
8883 (frame_saved_regs_register_unwind): Update.
8884 (deprecated_generic_get_saved_register): Update.
8885 * cris-tdep.c: Update comment.
8886 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8887 Rename macro.
8888 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8889 * x86-64-tdep.c (x86_64_init_abi): Update.
8890 * vax-tdep.c (vax_gdbarch_init): Update.
8891 * v850-tdep.c (v850_gdbarch_init): Update.
8892 * sparc-tdep.c (sparc_gdbarch_init): Update.
8893 * sh-tdep.c (sh_gdbarch_init): Update.
8894 * s390-tdep.c (s390_gdbarch_init): Update.
8895 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8896 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8897 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8898 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8899 * mips-tdep.c (mips_gdbarch_init): Update.
8900 * mcore-tdep.c (mcore_gdbarch_init): Update.
8901 * m68k-tdep.c (m68k_gdbarch_init): Update.
8902 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8903 * ia64-tdep.c (ia64_gdbarch_init): Update.
8904 * i386-tdep.c (i386_gdbarch_init): Update.
8905 * frv-tdep.c (frv_gdbarch_init): Update.
8906 * avr-tdep.c (avr_gdbarch_init): Update.
8907 * arm-tdep.c (arm_gdbarch_init): Update.
8908 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8909
42fa7c0f
AC
89102003-03-01 Andrew Cagney <cagney@redhat.com>
8911
8912 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8913 option enum and switch. When no windows, set the interpreter to
8914 INTERP_CONSOLE.
8ffd9b1b 8915
49c7e338
AC
89162003-03-01 Andrew Cagney <cagney@redhat.com>
8917
8918 * main.c (captured_main): Replace magic option characters with an
8919 enum.
8920
e9582e71
AC
89212003-03-01 Andrew Cagney <cagney@redhat.com>
8922
8923 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8924 INIT_EXTRA_FRAME_INFO.
8925 * gdbarch.h, gdbarch.c: Regenerate.
8926 * arm-tdep.c: Update comments.
8927 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8928 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8929 * frame.h, avr-tdep.c: Ditto.
8930 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8931 (create_new_frame, legacy_get_prev_frame): Ditto.
8932 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8933 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8934 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8935 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8936 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8937 * v850-tdep.c (v850_gdbarch_init): Ditto.
8938 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8939 * sh-tdep.c (sh_gdbarch_init): Ditto.
8940 * s390-tdep.c (s390_gdbarch_init): Ditto.
8941 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8942 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8943 * mips-tdep.c (mips_gdbarch_init): Ditto.
8944 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8945 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8946 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8947 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8948 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8949 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8950 * frv-tdep.c (frv_gdbarch_init): Ditto.
8951 * cris-tdep.c (cris_gdbarch_init): Ditto.
8952 * avr-tdep.c (avr_gdbarch_init): Ditto.
8953 * arm-tdep.c (arm_gdbarch_init): Ditto.
8954 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8955 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8956
35cac7cf
AC
89572003-03-01 Andrew Cagney <cagney@redhat.com>
8958
8959 * gdbarch.sh (register_type): New function with predicate.
8960 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8961 * gdbarch.h, gdbarch.c: Re-generate.
8962 * arch-utils.c (generic_register_byte): Use generic_register_size.
8963 (generic_register_size): When available, use
8964 gdbarch_register_type.
8965 * regcache.c (init_regcache_descr): When available, initialize the
8966 register type array using gdbarch_register_type. If the
8967 architecture supplies gdbarch_register_type, do not use the legacy
8968 regcache layout.
8969 * d10v-tdep.c (d10v_register_type): Replace
8970 d10v_register_virtual_type.
8971 (d10v_gdbarch_init): Set register_type instead of
8972 register_virtual_type.
8973
7b83296f
AC
89742003-03-01 Andrew Cagney <cagney@redhat.com>
8975
8976 * Makefile.in (ax-gdb.o): Update dependencies.
8977 * ax-gdb.c: Include "regcache.h".
8978 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8979 * findvar.c (value_of_register): Ditto.
8980 * infcmd.c (default_print_registers_info): Ditto.
8981
eadc1c87
MK
89822003-03-01 Mark Kettenis <kettenis@gnu.org>
8983
8984 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8985 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8986
14143612
MK
89872003-03-01 Mark Kettenis <kettenis@gnu.org>
8988
8989 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8990 of STREQ.
8991
a55cc764
DJ
89922003-02-28 Daniel Jacobowitz <drow@mvista.com>
8993
8994 * Makefile.in (dwarf2loc.o): Update dependencies.
8995 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8996 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8997 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8998 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8999 (locexpr_tracepoint_var_ref): New function.
9000 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9001
08a617da
AC
90022003-02-28 Andrew Cagney <cagney@redhat.com>
9003
9004 * regcache.c (register_size): New function.
9005 * regcache.h (register_size): Declare
9006 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9007 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9008
4224873a
DC
90092003-02-28 David Carlton <carlton@math.stanford.edu>
9010
9011 * linespec.c (decode_compound): Extract code into find_method.
9012 (find_method): New.
9013
ccdc5d7f
JB
90142003-02-28 J. Brobecker <brobecker@gnat.com>
9015
9016 * Makefile.in: Add rules to build and link in observer.o.
9017
974e8ced
JB
90182003-02-27 J. Brobecker <brobecker@gnat.com>
9019
9020 * observer.c: Minor comments edits.
9021
7a28f973
JB
90222003-02-27 J. Brobecker <brobecker@gnat.com>
9023
9024 * observer.h, observer.c: New file.
9025
27cddce2
AC
90262003-02-27 Andrew Cagney <cagney@redhat.com>
9027
9028 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9029
b94a41a1
SC
90302003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9031
9032 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9033 (M6812_OP_STS_EXT): Likewise.
9034 (m6811_prologue): Use the above to recognize prologue.
9035 (m6812_prologue): Likewise.
9036
c8be8951
DC
90372003-02-27 David Carlton <carlton@math.stanford.edu>
9038
9039 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9040 SYMBOL_PRINT_NAME.
9041 (compare_psymbols): Ditto.
9042 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9043
d05bb1fc
MS
90442003-02-27 Michael Snyder <msnyder@redhat.com>
9045
4e845cd3
MS
9046 * f-lang.c (build_fortran_types): New function.
9047 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
9048 * doublest.c (extract_floating): Fix warning text.
9049
f3824013
AC
90502003-02-27 Andrew Cagney <cagney@redhat.com>
9051
9052 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9053 predicate. Replaces PUSH_DUMMY_FRAME.
9054 * gdbarch.h, gdbarch.c: Regnerate.
9055 * valops.c (hand_function_call): Update. Call
9056 generic_push_dummy_frame directly.
9057 * vax-tdep.c (vax_gdbarch_init): Update.
9058 * sparc-tdep.c (sparc_gdbarch_init): Update.
9059 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9060 * m68k-tdep.c (m68k_gdbarch_init): Update.
9061 * hppa-tdep.c (hppa_gdbarch_init): Update.
9062 * alpha-tdep.c (alpha_gdbarch_init): Update.
9063 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9064 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9065 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9066 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9067 push_dummy_frame to generic_push_dummy_frame.
9068 * v850-tdep.c (v850_gdbarch_init): Ditto.
9069 * sh-tdep.c (sh_gdbarch_init): Ditto.
9070 * s390-tdep.c (s390_gdbarch_init): Ditto.
9071 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9072 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9073 * mips-tdep.c (mips_gdbarch_init): Ditto.
9074 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9075 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9076 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9077 * i386-tdep.c (i386_gdbarch_init): Ditto.
9078 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9079 * frv-tdep.c (frv_gdbarch_init): Ditto.
9080 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9081 * cris-tdep.c (cris_gdbarch_init): Ditto.
9082 * avr-tdep.c (avr_gdbarch_init): Ditto.
9083 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 9084
ad188201
KB
90852003-02-26 Kevin Buettner <kevinb@redhat.com>
9086
9087 * mips-tdep.c (show_mips_abi): New function.
9088 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9089 command ``show mips abi''.
9090
6b37567a 90912003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9092
6b37567a 9093 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 9094 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
9095 more sline entries have been seen for the function.
9096
d3e0a5bf
MC
90972003-02-26 Michael Chastain <mec@shout.net>
9098
9099 * configure: Regenerate with autoconf 000227.
9100
18972eea
MC
91012003-02-26 Michael Chastain <mec@shout.net>
9102
9103 Close PR build/660.
9104 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9105 for old libc5/glibc.
9106 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9107
0bbde931
KW
91082003-02-26 Kris Warkentin <kewarken@qnx.com>
9109
9110 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9111 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9112
27ca5dad
MC
91132003-02-26 Michael Chastain <mec@shout.net>
9114
9115 * configure.in: New variable HAVE_UINTPTR_T.
9116 * configure, config.in: Regenerated.
9117
6f88d630
DJ
91182003-02-26 Daniel Jacobowitz <drow@mvista.com>
9119
9120 Fix PR build/1097.
9121 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9122
b14185ce
AC
91232003-02-25 Andrew Cagney <cagney@redhat.com>
9124
9125 * frame.c (get_prev_frame): Add comment on check for
9126 inside_entry_func. Only check for inside_entry_file when not a
9127 dummy and not a sentinel. Check that the new frame is not inner
9128 to the old frame.
9129
ac2bd0a9
AC
91302003-02-25 Andrew Cagney <cagney@redhat.com>
9131
9132 * frame.c (frame_debug): New variable.
9133 (_initialize_frame): Add "set/show debug frame" command.
9134 (get_prev_frame): When frame_debug, print reason why unwind
9135 failed.
9136
b18a0fd2
MC
91372003-02-25 Michael Chastain <mec@shout.net>
9138
9139 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9140 to avoid uintptr_t definition problems.
9141
22abf04a
DC
91422003-02-25 David Carlton <carlton@math.stanford.edu>
9143
9144 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9145 (SYMBOL_LINKAGE_NAME): Ditto.
9146 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9147 SYMBOL_LINKAGE_NAME.
9148 (struct general_symbol_info): Expand comment.
9149 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9150 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9151 (SYMBOL_MATCHES_REGEXP): Ditto.
9152 * symtab.c (symbol_natural_name): New function.
9153 * objfiles.h: Replace all uses of SYMBOL_NAME by
9154 DEPRECATED_SYMBOL_NAME.
9155 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9156 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9157 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9158 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9159 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9160 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9161 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9162 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9163 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9164 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9165 * ada-exp.y: Ditto.
9166 * ada-exp.y: Update copyright.
9167 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9168 * cp-valprint.c: Ditto.
9169
1a5848f6
JJ
91702003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9171
9172 * infptrace.c (detach): Do not flag error if ptrace detach fails
9173 and errno is set to ESRCH.
9174
7343d46a
AC
91752003-02-24 Andrew Cagney <cagney@redhat.com>
9176
9177 * infptrace.c (udot_info): Change type of udot_off to long. Use
9178 paddr when printing udot_off's value.
9179
49fa1dc2
DC
91802003-02-24 David Carlton <carlton@math.stanford.edu>
9181
9182 * symtab.c (make_symbol_overload_list): Only read in partial
9183 symtabs containing a matching partial symbol.
9184
0fe19209
DC
91852003-02-24 David Carlton <carlton@math.stanford.edu>
9186
9187 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9188 do the comparison, not strcmp.
9189 * symfile.c (compare_psymbols): Ditto.
9190 * defs.h: Declare strcmp_iw_ordered.
9191 * utils.c (strcmp_iw_ordered): New function.
9192
8e3ee7b5
JB
91932003-02-24 Jim Blandy <jimb@redhat.com>
9194
9195 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9196 support, shared libs): Remove my name from here, to better reflect
9197 reality.
9198
7df1a324
KW
91992003-02-24 Kris Warkentin <kewarken@qnx.com>
9200
9201 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9202 (target_ops): Add to_have_continuable_watchpoint.
9203 * target.c (update_current_target): Add INHERIT line for
9204 to_have_continuable_watchpoint.
9205 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9206 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9207 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9208 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9209
d1c76907
EZ
92102003-02-24 Elena Zannoni <ezannoni@redhat.com>
9211
9212 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9213 maintainership.
9214
2610b0bf
KW
92152003-02-24 Kris Warkentin <kewarken@qnx.com>
9216
f46169db
KW
9217 * solib.c (solib_open): Call target defined search function after
9218 failing with solib-search-path.
9219 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9220 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 9221
9a3c34fe
KW
92222003-02-24 Kris Warkentin <kewarken@qnx.com>
9223
f46169db 9224 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 9225
2417dd25
SC
92262003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9227
9228 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9229
b631436b
SC
92302003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9231
9232 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9233 (m68hc11_add_reggroups): New function.
9234 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9235 (m68hc11_gdbarch_init): Install the reggroups.
9236 (_initialize_m68hc11_tdep): Initialize them.
9237
0aa8c1e4
JW
92382003-02-21 James E Wilson <wilson@tuliptree.org>
9239
9240 * MAINTAINERS: Update my email address.
9241
50ceaba5
DC
92422003-02-21 David Carlton <carlton@math.stanford.edu>
9243
9244 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9245
4c2df51b
DJ
92462003-02-21 Daniel Jacobowitz <drow@mvista.com>
9247
9248 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9249 * symtab.h: Add opaque declarations of struct axs_value and
9250 struct agent_expr.
9251 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9252 (struct location_funcs): New type.
9253 (struct symbol): Add "loc" to aux_value.
9254 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9255 * dwarf2read.c: Include "dwarf2expr.h".
9256 (dwarf2_symbol_mark_computed): New function.
9257 (read_func_scope): Use it.
9258 (var_decode_location): New function.
9259 (new_symbol): Use it.
9260 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9261
9262 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9263 (dwarf2expr_h, dwarf2loc_h): New variables.
9264 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9265 (dwarf2expr.o, dwarf2loc.o): New rules.
9266 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9267 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9268 LOC_COMPUTED_ARG.
9269 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9270 * m2-exp.y (yylex): Likewise.
9271 * printcmd.c (address_info, print_frame_args): Likewise.
9272 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9273 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9274 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9275 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9276 * symtab.c (lookup_block_symbol): Likewise.
9277
5784d15e
AF
92782003-02-20 Adam Fedor <fedor@gnu.org>
9279
9280 * symtab.h: Remove objc_specific struct
9281 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9282 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9283 Have language_objc use cplus_specific struct.
9284
d4cad8db
TT
92852003-02-20 Tom Tromey <tromey@redhat.com>
9286
9287 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9288 TYPE_NAME, when printing a String value. PR java/1075.
9289
2f9a90b4
AF
92902003-02-20 Adam Fedor <fedor@gnu.org>
9291
d38074a8 9292 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 9293 * objc-lang.c (find_methods): Make static.
2f9a90b4 9294
6f17862b
CF
92952003-02-20 Christopher Faylor <cgf@redhat.com>
9296
9297 * win32-nat.c (get_image_name): Check return value from
9298 ReadProcessMemory.
9299 (child_xfer_memory): Ditto.
9300
715d1656
AO
93012003-02-20 Alexandre Oliva <aoliva@redhat.com>
9302
9303 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9304 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9305 '${exec_prefix}' (in addition to the expansion thereof) as
9306 relocatable.
9307 * configure: Rebuilt.
9308
b1262a02
DC
93092003-02-20 David Carlton <carlton@math.stanford.edu>
9310
9311 * symtab.c (search_symbols): Revert the search_symbols part of my
9312 2002-12-23 patch. Add comment.
9313
7134143f
DJ
93142002-02-20 Daniel Jacobowitz <drow@mvista.com>
9315
9316 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9317 * dbxread.c (elfstab_build_psymtabs): Don't call
9318 install_minimal_symbols.
9319 (stabsect_build_psymtabs): Likewise.
9320 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9321 earlier.
9322 * somread.c (som_symfile_read): Call install_minimal_symbols
9323 and do_cleanups earlier.
9324 * nlmread.c (nlm_symfile_read): Likewise.
9325 * mdebugread.c (elfmdebug_build_psymtabs): Call
9326 install_minimal_symbols and make appropriate cleanups.
9327
cf466558
KB
93282003-02-20 Kevin Buettner <kevinb@redhat.com>
9329
9330 * solib.c (reload_shared_libraries): New function.
9331 (_initialize_solib): Add callbacks for ``set solib-search-path''
9332 and ``set solib-absolute-prefix''.
9333
de5ad195
DC
93342003-02-20 David Carlton <carlton@math.stanford.edu>
9335
9336 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9337 expand comment.
9338 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9339 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9340 * ada-typeprint.c (ada_typedef_print): Ditto.
9341 * ax-gdb.c (gen_var_ref): Ditto.
9342 * breakpoint.c (print_one_breakpoint): Ditto.
9343 * buildsym.c (finish_block): Ditto.
9344 * c-valprint.c (c_val_print): Ditto.
9345 * expprint.c (print_subexp): Ditto.
9346 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
9347 * infcmd.c (jump_command): Ditto.
9348 * linespec.c (decode_line_2, decode_compound): Ditto.
9349 * maint.c (maintenance_translate_address): Ditto.
9350 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
9351 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9352 Ditto.
8ffd9b1b
AJ
9353 * p-valprint.c (pascal_val_print): Ditto.
9354 * stabsread.c (define_symbol): Ditto.
de5ad195 9355 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
9356 (print_frame_arg_vars, return_command): Ditto.
9357 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9358 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
9359 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9360 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
9361 (rbreak_command): Ditto.
9362 * tracepoint.c (tracepoints_info): Ditto.
9363 * typeprint.c (typedef_print): Ditto.
9364 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
9365 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9366 * ada-typeprint.c: Update Copyright.
9367 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9368 * tracepoint.c, cli/cli-cmds.c: Ditto.
9369
f796e4be
KB
93702003-02-20 Kevin Buettner <kevinb@redhat.com>
9371
9372 * frame.c (generic_unwind_get_saved_register): Make non-static.
9373 * frame.h (generic_unwind_get_saved_register): Declare.
9374 * mips-tdep.c (read_next_frame_reg): Fetch register from
9375 current regcache when frame is NULL.
9376 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9377 that must be NULL.
9378 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9379 instead of frame_register_unwind().
9380
836cc9f4
AC
93812003-02-20 Andrew Cagney <ac131313@redhat.com>
9382
9383 * remote-sim.c (gdbsim_insert_breakpoint)
9384 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9385 code.
9386
501eef12
AC
93872003-02-20 Andrew Cagney <ac131313@redhat.com>
9388
9389 * remote.c (_initialize_remote): Add commands "set/show remote
9390 hardware-watchpoint-limit" and "set/show remote
9391 hardware-breakpoint-limit".
9392 (remote_hw_watchpoint_limit): Initialize to -1.
9393 (remote_hw_breakpoint_limit): Ditto.
9394 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9395
1b6bc7e0
CF
93962003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9397
9398 * coff-pe-read.c: New file - support reading of minimal symbols from a
9399 portable executable using the export table.
9400 * coff-pe-read.h: New file.
9401 * coffread.c: Include coff-pe-read.h.
9402 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9403 debugging symbols found.
9404 * Makefile.in (SFILES): Add coff-pe-read.o.
9405 (coff_pe_read_h): Define.
9406 (COMMON_OBS): Add coff-pe-read.o.
9407 (coffread.o): Add coff_pe_read_h dependency.
9408 (coff-pe-read.o): New target.
9409
fe898f56
DC
94102003-02-19 David Carlton <carlton@math.stanford.edu>
9411
9412 * Makefile.in (SFILES): Add block.c.
9413 (block_h): New.
9414 (COMMON_OBS): Add block.o.
9415 (block.o): New.
9416 (x86-64-tdep.o): Add $(block_h).
9417 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9418 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9419 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9420 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9421 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9422 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9423 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9424 * value.h: Add opaque declaration for struct block.
9425 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9426 * ada-lang.h: Ditto.
9427 * x86-64-tdep.c: #include "block.h"
9428 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9429 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9430 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9431 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9432 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9433 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9434 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9435 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9436 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9437 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9438 * symtab.c (block_function): Ditto.
9439 (contained_in): Ditto.
9440 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9441 block.h. Add opaque declaration for struct block.
9442 * symtab.h: Move block_function and contained_in declarations to
9443 block.h. Add opaque declarations for struct block, struct
9444 blockvector.
9445 (struct block): Move to block.h.
9446 (struct blockvector): Ditto.
9447 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9448 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9449 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9450 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9451 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9452 Ditto.
9453 * block.c: New file.
9454 * block.h: New file.
9455
173345b5
TR
94562003-02-19 Theodore A. Roth <troth@openavr.org>
9457
9458 * avr-tdep.c (avr_extract_return_value): Remove function.
9459 (avr_store_return_value): Remove function.
9460 (avr_extract_struct_value_address): Remove function.
9461 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9462
338ef23d
AC
94632003-02-19 Andrew Cagney <ac131313@redhat.com>
9464
9465 * rs6000-tdep.c: Include "gdb_assert.h".
9466 (registers_e500): Add "acc" and "spefscr".
9467 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9468 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9469 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9470 really is "r0".
9471 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9472
5412f5f3
KS
94732003-02-18 Keith Seitz <keiths@redhat.com>
9474
9475 * Makefile.in: Add gdbtk-interps.c.
9476
881324eb
KB
94772003-02-18 Kevin Buettner <kevinb@redhat.com>
9478
9479 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9480 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9481
6a2f5abf
AC
94822003-02-18 Andrew Cagney <cagney@redhat.com>
9483
9484 * symtab.h (struct objfile): Add opaque declaration.
9485
54c7009d
EZ
94862003-02-18 Elena Zannoni <ezannoni@redhat.com>
9487
9488 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
9489 * dbxread.c (process_one_symbol): Use last_function_start rather
9490 than function_start_offset to find the real beginning of the
9491 current function. The latter is just the text section offset on
9492 some systems, the former is always the real function start.
54c7009d 9493
7ee6d7eb
AC
94942003-02-17 Andrew Cagney <cagney@redhat.com>
9495
9496 * configure.in: Revert ${target} != ${host}.
9497
2846da9b
AC
94982003-02-17 Andrew Cagney <ac131313@redhat.com>
9499
9500 * configure.in (Makefile): Use the test ${target} != ${host},
9501 instead of the absence of the "nm.h" file, to determine of the
9502 configuration non-native.
9503 * configure: Regenerate.
8ffd9b1b 9504
3b27aeea
EZ
95052003-02-14 Elena Zannoni <ezannoni@redhat.com>
9506
fbe586ae 9507 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
9508
9509 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9510 conditionalize tui_active test.
9511 (lookup_cmd_1): Ditto.
9512
b0b1c2c0
MK
95132003-02-14 Mark Kettenis <kettenis@gnu.org>
9514
9515 * configure.in: Add check for _etext.
9516 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9517 available.
9518 * config.in, configure: regenerated.
9519
8f05cde5
DJ
95202003-02-14 Daniel Jacobowitz <drow@mvista.com>
9521
9522 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9523
021e7609
AC
95242003-02-14 Andrew Cagney <ac131313@redhat.com>
9525
9526 * main.c (tui_version): Delete variable.
9527 (captured_main): When --tui, set interpreter_p to "tui" instead of
9528 enabling tui_version.
9529 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9530 tui_version.
9531 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9532 * cli/cli-cmds.c (disassemble_command): Ditto.
9533 * defs.h (tui_version): Delete declaration.
9534 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9535 (tui-interp.o): Add rules.
9536 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9537
e325dcec
CF
95382003-02-14 Christopher Faylor <cgf@redhat.com>
9539
36ffb041 9540 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
9541 just-loaded dll.
9542
c4f90d87
JM
95432003-02-12 Jason Molenda (jmolenda@apple.com)
9544
fbe586ae
RH
9545 * symmisc.c (print_objfile_statistics): Include information about
9546 the number of psymtabs and symtabs in each object file.
c4f90d87 9547
e46e5ccd
KS
95482003-02-13 Keith R Seitz <keiths@redhat.com>
9549
9550 * main.h (struct captured_main_args): Add interpreter_p.
9551 * main.c (captured_main): Initialize interpreter_p from context.
9552 * gdb.c (main): Set interpreter_p argument.
9553 * Makefile.in (gdb.o): Add dependency for interps.h.
9554
fe97fe9c
AC
95552003-02-12 Andrew Cagney <ac131313@redhat.com>
9556
9557 * event-top.c (cli_command_loop): Delete declaration.
9558 (_initialize_event_loop): Delete function setting event_loop_hook.
9559 * event-top.h (cli_command_loop): Declare. Update copyright.
9560 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9561 * interps.c (current_interp_command_loop): When event_loop_p, call
9562 cli_command_loop.
9563
1cdac4ef
AC
95642003-02-12 Andrew Cagney <ac131313@redhat.com>
9565
9566 * interps.h (interp_command_loop_ftype): Change return type to
9567 void.
9568
48037ead
ML
95692003-02-12 Michal Ludvig <mludvig@suse.cz>
9570
9571 * x86-64-tdep.c (x86_64_extract_return_value)
9572 (x86_64_store_return_value): Use regcache instead of regbuf.
9573 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9574 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9575
033afc63
AC
95762003-02-11 Andrew Cagney <ac131313@redhat.com>
9577
9578 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9579 * aclocal.m4: Regenerate.
9580 * configure: Regenerate.
9581
9582 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9583 TCL_LD_SEARCH_FLAGS.
9584
40d02bca
ML
95852003-02-10 Michal Ludvig <mludvig@suse.cz>
9586
9587 * dwarf2cfi.c: Reindented.
9588
11308a41
AC
95892003-02-09 Andrew Cagney <ac131313@redhat.com>
9590
9591 * interps.c (clear_interpreter_hooks): Convert function definition
9592 to ISO C.
9593
e1c1c0f6
DC
95942003-02-07 David Carlton <carlton@math.stanford.edu>
9595
9596 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9597
ab5d3da6
KB
95982003-02-07 Kevin Buettner <kevinb@redhat.com>
9599
9600 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9601 (struct type): ...to here.
9602 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9603 field.
9604 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9605 (replace_type): Set length on all type variants for a given type.
9606
b8a92b82
AC
96072003-02-07 Andrew Cagney <ac131313@redhat.com>
9608
9609 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9610 <sys/stat.h>.
9611 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 9612
5cb316ef
AC
96132003-02-06 Andrew Cagney <ac131313@redhat.com>
9614
2555fe1a
AC
9615 * Makefile.in (symm-nat.o): Update dependencies.
9616 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9617 (lynx-nat.o, ia64-linux-nat.): Ditto.
9618 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9619 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9620 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9621
44270758
AC
9622 * Makefile.in (inflow_h): Define.
9623 (procfs.o, inflow.o, procfs.o): Update dependencies.
9624 * inftarg.c (child_stop): Delete extern declaration of
9625 inferior_process_group. Include "inflow.h".
9626 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9627 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9628 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9629 (our_process_group, inferior_process_group): Extern declarations.
9630
df8f7274
AC
9631 * procfs.c: Include "gdb_assert.h".
9632
5cb316ef
AC
9633 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9634 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9635 * jv-typeprint.c (java_type_print_base): Ditto.
9636 * typeprint.c (typedef_print): Eliminate STREQ.
9637 * cli/cli-script.c (define_command, define_command): Ditto.
9638 * main.c (captured_main): Ditto.
9639 * values.c (lookup_internalvar): Ditto.
9640 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9641 within `if' conditional.
9642 * linespec.c (decode_line_2): Ditto.
9643 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9644 (bfd_openw_with_cleanup): Ditto.
9645
2a28ccea
MK
96462003-02-07 Mark Kettenis <kettenis@gnu.org>
9647
9648 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9649 legacy_extract_return_value and store_return_value to
9650 legacy_return_value.
9651
786b8124
CF
96522003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9653
9654 * win32-nat.c (get_relocated_section_addrs): New function. Find
9655 section load addresses for symbol handling in relocated DLLs.
9656 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9657
b871e4ec
FF
96582003-02-05 Fred Fish <fnf@intrinsity.com>
9659
9660 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9661 '=' and '!='.
9662 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9663 with '&' and '=='.
9664 (angel_RDI_info): Ditto.
9665 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9666 with '&' and '!='.
9667 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 9668
4389a95a 96692003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
9670 Keith Seitz <keiths@redhat.com>
9671 Elena Zannoni <ezannoni@redhat.com>
9672 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
9673
9674 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9675 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9676 (SUBDIR_MI_OBS): Add "mi-interp.o".
9677 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9678 (SFILES): Add "interps.c".
9679 (COMMON_OBS): Add "interps.o".
9680 (interps_h, mi_main_h): Define.
9681 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9682 (mi-main.o, main.o, event-top.o): Update dependencies.
9683 * cli/cli-interp.c: New file.
9684 * interps.h, interps.c: New files.
9685 * top.c: (gdb_init): Don't install the default interpreter, handed
9686 by captured_main.
9687 * main.c: Include "interps.h".
9688 (interpreter_p): Note that it should malloc'ed.
9689 (captured_command_loop): Call current_interp_command_loop.
9690 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9691 xfree and xstrdup when updating interpreter_p. Install the
9692 default interpreter. Add hack to stop mi1's copyright notice
9693 being encoded.
9694 * event-top.h (gdb_setup_readline): Declare.
9695 (gdb_disable_readline): Declare.
9696 * event-top.c: Include "interps.h".
9697 (display_gdb_prompt): Call current_interp_display_prompt_p.
9698 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9699 gdb_stdlog, and gdb_stdtarg.
9700 (_initialize_event_loop): Don't call gdb_setup_readline.
9701 * cli-out.c (cli_out_set_stream): New function.
9702 * cli-out.h (cli_out_set_stream): Declare.
9703
ff3b5810
MK
97042003-02-06 Mark Kettenis <kettenis@gnu.org>
9705
9706 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9707 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9708 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9709 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9710 config/i386/i386v42mp.mt: Removed.
9711
5b729aa5
MK
97122003-02-05 Mark Kettenis <kettenis@gnu.org>
9713
9714 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9715 GDB_OSABI_SOLARIS.
9716
8cc15142
MC
97172003-02-05 Michael Chastain <mec@shout.net>
9718
9719 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9720 2.12.1 and earlier versions.
9721
5aa5d4b9
AC
97222003-02-05 Andrew Cagney <ac131313@redhat.com>
9723
9724 Remove orphaned hosts, targets and files.
9725 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9726 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9727 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9728 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9729 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9730 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9731 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9732 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9733 * config/sparc/tm-sp64sim.h: Delete.
9734 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9735 hosts.
9736 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9737 mips*-dec-mach3* targets.
9738
b68767c1
MC
97392003-02-04 Michael Chastain <mec@shout.net>
9740
9741 * NEWS: Fix typo: sepcifying -> specifying.
9742
5ae7ca1d
MC
97432003-02-04 Michael Chastain <mec@shout.net>
9744
9745 * dwarfread.c: Add documentation on the state of dwarf-1,
9746 looking towards obsoletion.
9747
d08a4280
MC
97482003-02-03 Michael Chastain <mec@shout.net>
9749
9750 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9751 gdb/testsuite/gdb.c++/pr-1023.exp.
9752
e9be73e4
AC
97532003-02-04 Andrew Cagney <ac131313@redhat.com>
9754
9755 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9756 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9757
9758 * utils.c (init_page_info): Delete reference to MPW in comments.
9759 * main.c (captured_main): Delete #ifdef MPW.
9760
05d57f6f
AC
97612003-02-04 Andrew Cagney <ac131313@redhat.com>
9762
8ffd9b1b 9763 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
9764 * monitor.c (monitor_expect): Obsolete reference to m32r.
9765 * configure.tgt: Mark m32r-*-elf* as obsolete.
9766 * MAINTAINERS: Mark m32k as obsolete.
9767 * m32r-rom.c: Obsolete file.
9768 * config/m32r/m32r.mt: Obsolete file.
9769 * config/m32r/tm-m32r.h: Obsolete file.
9770 * m32r-stub.c: Obsolete file.
9771 * m32r-tdep.c: Obsolete file.
9772
8b0e5691
AC
97732003-02-04 Andrew Cagney <ac131313@redhat.com>
9774
9775 * NEWS: Mention that the z8k-zilog-none is obsolete.
9776 * MAINTAINERS: Mark z8k as obsolete.
9777 * configure.tgt: Obsolete the z8k-*-coff* target.
9778 * config/z8k/z8k.mt: Obsolete file.
9779 * config/z8k/tm-z8k.h: Obsolete file.
9780 * z8k-tdep.c: Obsolete file.
9781
67f16606
AC
97822003-02-04 Andrew Cagney <ac131313@redhat.com>
9783
9784 * NEWS: Mention that the mn10200-elf is obsolete.
9785 * configure.tgt: Obsolete mn10200-*-* target.
9786 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9787 mention that the mn10200 is obsolete.
9788 * breakpoint.h: Ditto.
9789 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9790 * config/mn10200/mn10200.mt: Obsolete file.
9791 * config/mn10200/tm-mn10200.h: Obsolete file.
9792 * mn10200-tdep.c: Obsolete file.
9793
fd2299bd
AC
97942003-02-04 Andrew Cagney <ac131313@redhat.com>
9795
9796 * MAINTAINERS: Mark h8500 as obsolete.
9797 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9798 * findvar.c (value_from_register): Ditto.
9799 * h8500-tdep.c: Mark file as obsolete.
9800 * config/h8500/h8500.mt: Ditto.
9801 * config/h8500/tm-h8500.h: Ditto.
9802 * NEWS: Mention that h8500 is obsolete.
9803
eb9a305d
DC
98042003-02-04 David Carlton <carlton@math.stanford.edu>
9805
9806 * objfiles.c (allocate_objfile): Always set name. Add comment at
9807 start of function.
9808 * jv-lang.c (get_dynamics_objfile): Add comment.
9809
406fc7fb
DC
98102003-02-04 David Carlton <carlton@math.stanford.edu>
9811
9812 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9813 * printcmd.c (build_address_symbolic): Replace uses of
9814 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9815 SYMBOL_NAME, and asm_demangle.
9816 Update copyright.
9817
93d91629
DC
98182003-02-04 David Carlton <carlton@math.stanford.edu>
9819
9820 * linespec.c (decode_compound): Extract code into
9821 lookup_prefix_sym.
9822 (lookup_prefix_sym): New function.
9823
1c5cb38e
DC
98242003-02-04 David Carlton <carlton@math.stanford.edu>
9825
9826 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9827 FLOAT_COERCION_BADNESS.
9828 * gdbtypes.c (rank_one_type): Replace all uses of
9829 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9830
0cf824c9
JB
98312003-02-04 Jim Blandy <jimb@redhat.com>
9832
9833 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9834 section, let dwarf_macinfo_section point to it, not
9835 dwarf_loc_section.
9836
a2d356b0
DJ
98372003-02-04 Daniel Jacobowitz <drow@mvista.com>
9838
9839 Pointed out by Anton Blanchard <anton@samba.org>.
9840 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9841 (ppc_linux_at_sigtramp_return_path): Use it.
9842
2de7ced7
DJ
98432003-02-04 Daniel Jacobowitz <drow@mvista.com>
9844
9845 * defs.h (streq): Add prototype.
9846 * utils.c (streq): New function.
9847
9848 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9849 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9850 * mdebugread.c (new_symbol): Likewise.
9851 * stabsread.c (define_symbol): Likewise.
9852 * coffread.c (process_coff_symbol): Likewise.
9853 * dwarfread.c (new_symbol): Likewise.
9854
9855 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9856 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9857 here.
9858 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9859 SYMBOL_INIT_DEMANGLED_NAME.
9860 * objfiles.c: Include "hashtab.h".
9861 (allocate_objfile): Call htab_set_functions_ex for the
9862 demangled_names_hash.
9863 (free_objfile): Call htab_delete for the demangled_names_hash.
9864 * objfiles.h (struct htab): Add declaration.
9865 (struct objfile): Add demangled_names_hash.
9866 * symfile.c: Include "hashtab.h".
9867 (reread_symbols): Call htab_delete for the demangled_names_hash.
9868 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9869 SYMBOL_NAME in the bcache.
9870 * symtab.c: Include "hashtab.h". Update comments.
9871 (create_demangled_names_hash, symbol_set_names): New functions.
9872 (symbol_find_demangled_name): New function, broken out from
9873 symbol_init_demangled_names.
9874 (symbol_init_demangled_names): Use it.
9875 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9876 (SYMBOL_SET_NAMES): New macro.
9877 (symbol_set_names): Add prototype.
9878
15831452
JB
98792003-02-03 Jim Blandy <jimb@redhat.com>
9880
9881 Use a single, consistent representation for an empty minimal
9882 symbol table in an objfile.
9883 * objfiles.c (terminate_minimal_symbol_table): New function.
9884 (allocate_objfile): Call it.
9885 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9886 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 9887 non-NULL.
15831452
JB
9888 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9889 objfile has minimal symbols, compare minimal_symbol_count to zero,
9890 instead of comparing msymbols with NULL.
9891 * objfiles.c (have_minimal_symbols): Same.
9892 * solib-sunos.c (solib_add_common_symbols): Call
9893 terminate_minimal_symbol_table.
9894 * symfile.c (reread_symbols): Same.
8ffd9b1b 9895
ffc65945
KB
98962003-02-03 Kevin Buettner <kevinb@redhat.com>
9897
9898 * s390-tdep.c (s390_address_class_type_flags)
9899 (s390_address_class_type_flags_to_name)
9900 (s390_address_class_name_to_type_flags): New functions.
9901 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9902 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9903
f211c6d4
MS
99042003-02-03 Michael Snyder <msnyder@redhat.com>
9905
9906 * arm-tdep.c: Fix spell-o in comment.
9907
659b0389
ML
99082003-02-03 Michal Ludvig <mludvig@suse.cz>
9909
9910 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9911 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 9912 error messages to contain BFD filename.
659b0389 9913
3b31d625
EZ
99142003-02-02 Elena Zannoni <ezannoni@redhat.com>
9915
997b089a 9916 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
9917 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9918 (do_mixed_source_and_assembly): Use
9919 make_cleanup_ui_out_tuple_begin_end and
9920 make_cleanup_ui_out_tuple_begin_end.
9921 (do_mixed_source_and_assembly): Ditto.
9922 * thread.c (do_captured_list_thread_ids): Ditto.
9923 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9924 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9925 ui_out_tuple_end): Delete prototypes.
9926 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9927 ui_out_list_end, ui_out_tuple_end): Delete.
9928
9929 From Kevin Buettner <kevinb@redhat.com>:
9930 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
9931 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9932 (do_cleanup_table_end): New functions.
9933 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9934 Use cleanups to invoke_ui_out_tuple_end().
9935 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
9936 * cli/cli-setshow.c (cmd_show_list): Use
9937 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 9938
5b181d62
AC
99392003-02-02 Andrew Cagney <ac131313@redhat.com>
9940
9941 * frame.c (frame_unwind_register): New function.
9942 (frame_unwind_unsigned_register): Use.
9943 (frame_unwind_signed_register): Use.
9944 (frame_read_register): New function.
9945 * frame.h (frame_unwind_register): Declare.
9946 (frame_read_register): Declare.
9947
9948 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9949 and frame_unwind_register instead of read_memory, write_register
9950 and deprecated_write_register_bytes.
9951
5f601589
AC
99522003-02-02 Andrew Cagney <ac131313@redhat.com>
9953
9954 * frame.h: Note that namelen can be negative.
9955 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9956 NAME's length.
9957
9958 * NEWS: Mention that the d10v's `regs' command is deprecated.
9959 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9960 (d10v_print_registers_info): New function.
9961 (show_regs): Call d10v_print_registers_info.
9962 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9963
6a3fe0a4
MK
99642003-02-02 Mark Kettenis <kettenis@gnu.org>
9965
9966 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9967 lost in the previous patch.
9968
075559bc
AC
99692003-02-01 Andrew Cagney <ac131313@redhat.com>
9970
9971 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
9972 * stack.c (print_frame_info_base): Output complete FRAME tuple
9973 for synthesized frames.
075559bc 9974
6789195b
AC
99752003-02-02 Andrew Cagney <ac131313@redhat.com>
9976
9977 * mips-nat.c (zerobuf): Delete.
9978 (fetch_inferior_registers): Alloc local zerobuf.
9979 (fetch_core_registers): Alloc local zerobuf.
9980 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9981 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9982 * thread-db.c (thread_db_store_registers): Ditto.
9983 * sh-tdep.c (sh_do_register): Ditto.
9984 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9985 * remote-sim.c (gdbsim_store_register): Ditto.
9986 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9987 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9988 * monitor.c (monitor_supply_register): Ditto.
9989 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9990 * mips-nat.c (fetch_inferior_registers): Ditto.
9991 * m68klinux-nat.c (fetch_register): Ditto.
9992 * lynx-nat.c (fetch_inferior_registers): Ditto.
9993 (fetch_inferior_registers): Ditto.
9994 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9995 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9996 (hpux_thread_store_registers): Ditto.
9997 * hppah-nat.c (fetch_register): Ditto.
9998 * hppab-nat.c (fetch_register): Ditto.
9999 * hppa-tdep.c (pa_register_look_aside): Ditto.
10000 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10001 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10002
e669114a
AC
100032003-02-01 Andrew Cagney <ac131313@redhat.com>
10004
10005 * gdbarch.sh: Explictly specify all method levels. When a
10006 variable with an empty level, provide a non-multi-arch default.
10007 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10008 * gdbarch.h: Re-generate.
10009 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10010 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10011
9a043c1d
AC
100122003-02-01 Andrew Cagney <ac131313@redhat.com>
10013
10014 * defs.h (host_pointer_to_address): Delete declaration.
10015 (address_to_host_pointer): Delete declaration.
10016 * utils.c (host_pointer_to_address): Delete function.
10017 (address_to_host_pointer): Delete function.
10018 * procfs.c (procfs_address_to_host_pointer): New function.
10019 * procfs.c (proc_set_watchpoint): Use.
10020 (procfs_can_use_hw_breakpoint): Update comments.
10021 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10022 (som_solib_add): Use.
10023 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10024 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 10025
7ca9f392
AC
100262003-02-01 Andrew Cagney <ac131313@redhat.com>
10027
94bbfd30
AC
10028 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10029 strlen d_name.
10030
7ca9f392
AC
10031 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10032 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10033 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10034 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10035 (define_symbol): Update.
10036 * symfile.c (generic_load): Remove references to nindy.
10037 * symtab.c: Remove references to nindy.
10038
31a85ea2
AC
100392003-02-01 Andrew Cagney <ac131313@redhat.com>
10040
10041 * infcmd.c (print_float_info): Delete code conditional on
10042 FLOAT_INFO.
10043 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10044 * config/m68k/nm-apollo68b.h: Ditto.
10045 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10046 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10047 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10048
f6e85fc8
MK
100492003-02-01 Mark Kettenis <kettenis@gnu.org>
10050
6015b6a0
MK
10051 * config/i386/tm-i386os9k.h: Removed.
10052
f7a30bdf
MK
10053 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10054 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10055 they're identical to i[3456]86-*-sysv* now.
10056 * config/i386/i386v32.mh: Removed.
10057 * config/i386/xm-i386v32.h: Removed.
10058 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10059
28d52111
MK
10060 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10061
4d3f6bce
MK
10062 * config/i386/i386dgux.mh: Removed.
10063 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10064
f6e85fc8
MK
10065 * configure.in: Fix typo.
10066 * configure: Regenerated.
10067
53955967
DC
100682003-01-31 David Carlton <carlton@math.stanford.edu>
10069
10070 * dwarf2read.c (dwarf2_locate_sections): Set
10071 dwarf_ranges_section.
10072
b1364885
AC
100732003-01-31 Andrew Cagney <ac131313@redhat.com>
10074
8dbb1c65
AC
10075 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10076 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 10077
8731e58e
AC
10078 * utils.c: Re-indent.
10079
b1364885
AC
10080 * config/djgpp/fnchange.lst: Delete nindy files.
10081 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10082 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10083 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10084 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10085 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10086 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10087 * Makefile.in (init.c): Remove nindy references.
10088 (saber_gdb): Delete rule.
10089 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10090 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10091 and a68v-nat.c.
10092 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10093 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10094 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10095 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10096 nindy-share/stop.h.
10097 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10098 * saber.suppress: Delete file.
10099
086df311
DJ
101002003-01-31 Daniel Jacobowitz <drow@mvista.com>
10101
10102 * dbxread.c (stabs_data): New static variable.
10103 (fill_symbuf): Support an in-memory buffer for stabs data.
10104 (stabs_seek): New function.
10105 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10106 (read_ofile_symtab): Use stabs_seek.
10107 (elfstab_build_psymtabs): Take an asection* instead of
10108 an offset and size. Relocate the stabs data if necessary.
10109 Save the section* for dbx_psymtab_to_symtab.
10110 * dwarf2read.c: Add section variables for each debug section.
10111 (dwarf2_locate_sections): Fill them in.
10112 (dwarf2_read_section): Take an asection* argument.
10113 Relocate the section contents if necessary.
10114 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10115 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10116 it to dwarf2_read_section.
10117 (dwarf2_build_frame_info): Update callers.
10118 * elfread.c (elf_symfile_read): Update call to
10119 elfstab_build_psymtabs.
10120 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10121 (DBX_STAB_SECTION): New macro.
8ffd9b1b 10122 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
10123 * symfile.c (symfile_dummy_outputs): New function.
10124 (symfile_relocate_debug_section): New function.
10125 * symfile.h (symfile_relocate_debug_section): Add prototype.
10126
87d1b352
RH
101272003-01-31 Richard Henderson <rth@redhat.com>
10128
10129 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10130 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10131 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10132 * alpha-tdep.c (alpha_register_name): Add "unique".
10133 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10134 (ALPHA_UNIQUE_REGNUM): New.
10135 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10136
c48861fb
AC
101372003-01-31 Andrew Cagney <ac131313@redhat.com>
10138
10139 * README: Remove reference to Ericsson 1800 monitor.
10140 * Makefile.in (remote-es.o): Delete rule.
10141 (ALLDEPFILES): Delete remote-es.c.
10142 * remote-es.c: Delete file.
10143 * config/m68k/es1800.mt: Delete file.
10144 * config/djgpp/fnchange.lst: Update.
10145 * configure.tgt: Delete m68*-ericsson-* target.
10146
d764a824
AF
101472003-01-31 Adam Fedor <fedor@gnu.org>
10148
10149 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10150 Remove duplicate/shadowing variable of same name.
10151
fe36c4f4
JB
101522003-01-30 Jim Blandy <jimb@redhat.com>
10153
10154 * symfile.c (find_separate_debug_file): Assert that the objfile's
10155 directory name we compute ends with a slash, and then assume that
10156 that's so everywhere we use it.
10157
cb741690
DJ
101582003-01-30 Daniel Jacobowitz <drow@mvista.com>
10159
10160 * valops.c (value_assign): Flush frame cache after stores to memory
10161 also.
10162
96ee5227
AC
101632003-01-30 Andrew Cagney <ac131313@redhat.com>
10164
10165 * Makefile.in (mon960-rom.o): Delete rule.
10166 * mon960-rom.c: Delete file.
10167
7f6104a9
AC
101682003-01-30 Andrew Cagney <ac131313@redhat.com>
10169
10170 * d10v-tdep.c: Include "frame-unwind.h".
10171 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10172 list.
10173 (next_addr, uses_frame): Delete.
10174 (struct d10v_unwind_cache): Define.
10175 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10176 Use info instead of next_addr and uses_frame globals.
10177 (d10v_frame_init_saved_regs): Delete function.
10178 (d10v_init_extra_frame_info): Delete function.
10179 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10180 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10181 init_frame_pc or frame_saved_pc.
10182 (d10v_pop_frame): Delete function.
10183 (do_d10v_pop_frame): Delete function.
10184 (d10v_frame_chain): Delete function.
10185 (d10v_frame_chain_valid): Delete function.
10186 (d10v_frame_pc_unwind): New function.
10187 (d10v_frame_id_unwind): New function.
10188 (saved_regs_unwinder): New function.
10189 (d10v_frame_register_unwind): New function.
10190 (d10v_frame_pop): New function.
10191 (d10v_frame_unwind): New variable.
10192 (d10v_frame_p): New function.
10193 (d10v_frame_saved_pc): Delete function.
10194 * Makefile.in (d10v-tdep.o): Update dependencies.
10195
cad2e848
JB
101962003-01-30 J. Brobecker <brobecker@gnat.com>
10197
10198 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10199 causing some regressions due to a change in the default value
10200 for this macro.
10201
af34e669
DJ
102022003-01-29 Richard Henderson <rth@redhat.com>
10203 Elena Zannoni <ezannoni@redhat.com>
10204 Daniel Jacobowitz <drow@mvista.com>
10205
10206 Fix PR gdb/961.
8ffd9b1b 10207 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
10208 variables.
10209 (RANGES_SECTION): New.
10210 (dwarf_ranges_buffer): New variable.
10211 (struct comp_unit_head): Add member "die".
10212 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10213 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10214 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10215 (dwarf2_locate_sections): Likewise.
10216 (dwarf2_build_psymtabs): Read .debug_ranges.
10217 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10218 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10219 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10220 Look for DW_AT_ranges and return the bounding box.
10221
baa93fa6
CF
102222003-01-29 Brian Ford <ford@vss.fsi.com>
10223
10224 * win32-nat.c (cygwin_pid): Removed as unused.
10225 (child_attach): Try fall back to Cygwin pid.
10226
c63f977f
JB
102272003-01-29 Jim Blandy <jimb@redhat.com>
10228
10229 * objfiles.h (struct objfile): Doc fix.
10230
d62d1979
AC
102312003-01-29 Andrew Cagney <ac131313@redhat.com>
10232
10233 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10234 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10235 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10236 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10237 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10238 (FRAME_SAVED_PC): Change to a function with predicate.
10239 * gdbarch.h, gdbarch.c: Re-generate.
10240
1ae18a04
AC
102412003-01-28 Andrew Cagney <ac131313@redhat.com>
10242
52287340
AC
10243 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10244
1ae18a04
AC
10245 * complaints.c (complain): Delete function.
10246 * complaints.h (struct deprecated_complaint): Delete definition.
10247 (complain): Delete declaration.
10248
f2c16bd6
KB
102492003-01-28 Kevin Buettner <kevinb@redhat.com>
10250
10251 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10252 dummy frames.
10253
a94dd1fd
AC
102542003-01-27 Andrew Cagney <ac131313@redhat.com>
10255
10256 * sentinel-frame.h, sentinel-frame.c: New files.
10257 * Makefile.in (frame.o): Update dependencies.
10258 (SFILES): Add sentinel-frame.c.
10259 (sentinel_frame_h): Define.
10260 (COMMON_OBS): Add sentinel-frame.o.
10261 (sentinel-frame.o): Specify dependencies.
10262 * frame.c: Include "sentinel-frame.h".
10263 (frame_register_unwind): Rewrite assuming that there is always a a
10264 ->next frame.
10265 (frame_register, generic_unwind_get_saved_register): Ditto.
10266 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10267 (create_sentinel_frame, unwind_to_current_frame): New functions.
10268 (get_current_frame): Rewrite using create_sentinel_frame and
10269 unwind_to_current_frame. When possible, always create a frame.
10270 (create_new_frame): Set next to the sentinel frame.
10271 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10272 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10273 ID cache when necessary.
10274 (frame_saved_regs_id_unwind): Use frame_relative_level.
10275 (deprecated_generic_get_saved_register): Use frame_relative_level,
10276 get_frame_saved_regs, get_frame_pc, get_frame_base and
10277 get_next_frame.
10278 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10279 frame_register.
10280
5378adc4
DJ
102812003-01-27 Daniel Jacobowitz <drow@mvista.com>
10282
10283 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10284
51ee2ddc
DJ
102852003-01-27 Daniel Jacobowitz <drow@mvista.com>
10286
10287 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10288 (maintenance_set_profile_cmd): Use error () instead of warning ().
10289
d9feb4e7
DJ
102902003-01-27 Daniel Jacobowitz <drow@mvista.com>
10291
10292 * configure.in: Check that -pg works if using --enable-profiling.
10293 Check for monstartup and _mcleanup regardless of --enable-profiling.
10294 * maint.c: Check for monstartup and _mcleanup before using them.
10295 * config.in: Regenerated.
10296 * configure: Regenerated.
10297
2d188dd3
NC
102982003-01-24 Nick Clifton <nickc@redhat.com>
10299
10300 * Add sh2e support:
10301
10302 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10303
10304 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10305 (sh2e_show_regs): New.
10306 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10307 * config/sh/tm-sh.h: Added sh2e to comments.
10308
cb3c37b2
JB
103092003-01-23 Jim Blandy <jimb@redhat.com>
10310
10311 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10312 symbols found)" message here; we haven't checked for a separate
10313 debug info file yet, so we don't know yet.
10314 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10315 we've looked everywhere. Also, there's no need to print a special
10316 message when we're loading the separate debug info file: the one
10317 symbol_file_add prints is fine.
10318
5b5d99cf
JB
103192003-01-23 Alexander Larsson <alexl@redhat.com>
10320 Jim Blandy <jimb@redhat.com>
10321
10322 Add support for executables whose debug info has been separated
10323 out into a separate file, leaving only a link behind.
10324 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10325 and separate_debug_objfile_backlink.
10326 (put_objfile_before): New declaration.
10327 * symfile.c: #include "filenames.h".
10328 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10329 debug info in a separate file, read that, too. Save the addrs
10330 argument, so we can use it again to read the separated debug info;
10331 syms_from_objfile modifies the table we pass it.
10332 (reread_symbols): After re-reading an objfile, call
10333 reread_separate_symbols to refresh its separate debug info
10334 objfile, if it has one.
10335 (reread_separate_symbols, find_separate_debug_file,
10336 get_debug_link_info, separate_debug_file_exists): New functions.
10337 (debug_file_directory): New global var.
10338 (_initialize_symfile): Initialize debug_file_directory, and
10339 provide the new `set debug-file-directory' command to let the user
10340 change it.
10341 * objfiles.c (free_objfile): If this objfile has its debug info in
10342 a separate objfile, free that one too. If this is itself a
10343 separate debug info objfile, clear our parent's backlink.
10344 (put_objfile_before): New function.
10345 * utils.c (gnu_debuglink_crc32): New function.
10346 * defs.h (gnu_debuglink_crc32): New declaration.
10347 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10348 * configure.in: Handle --with-separate-debug-dir config option.
10349 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10350 * acconfig.h (DEBUGDIR): New macro.
10351 * configure, aclocal.m4, config.in: Regenerated.
10352
7e8580c1
JB
103532003-01-22 Jim Blandy <jimb@redhat.com>
10354
7904e09f
JB
10355 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10356 like the old symbol_file_add, but taking new arguments: you can
10357 now pass in either a `struct section_addr_info' list to say where
10358 each section is loaded, or a `struct section_offsets' table. Pass
10359 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 10360 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
10361 with the appropriate quiescent values for the new arguments.
10362
7e8580c1
JB
10363 * symfile.c: #include "gdb_assert.h".
10364 (syms_from_objfile): Add the ability to pass in a section offset
10365 table directly, as an alternative to the section_addr_info table.
10366 Document arguments better.
10367 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10368 * symfile.h (syms_from_objfile): Update declaration.
10369 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10370 syms_from_objfile.
10371 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10372
d28f9cdf
DJ
103732003-01-22 Daniel Jacobowitz <drow@mvista.com>
10374
10375 Original patch by Tom Tromey <tromey@cygnus.com> and
10376 Jason Molenda <jmolenda@apple.com>.
10377 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10378 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10379 * NEWS: Mention profiling.
10380 * configure.in (--enable-gdbtk): Fix typo.
10381 (--enable-profiling): New. Set PROFILE_CFLAGS.
10382 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10383 Fill in function.
10384 (profiling_state): New variable.
10385 (mcleanup_wrapper): New function.
10386 (_initialize_maint): Remove NOTYET, fix call to
10387 add_setshow_boolean_cmd for "maint set profile".
10388 * configure: Regenerated.
10389
df21e465
MH
103902003-01-21 Martin M. Hunt <hunt@redhat.com>
10391
10392 * Makefile.in (install-gdbtk): Install PNG images too.
10393
73c1f219
AC
103942003-01-21 Andrew Cagney <ac131313@redhat.com>
10395
10396 * exec.c (text_start): Delete global variable.
10397 (exec_file_attach): Make text_start local to the function.
10398 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10399 * valops.c (hand_function_call): Delete code that handles
10400 BEFORE_TEXT_END and AFTER_TEXT_END.
10401 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10402 of CALL_DUMMY_LOCATION.
10403 * gdbarch.c: Regenerate.
10404 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10405 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10406 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10407 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10408 (text_end): Delete extern declaration.
10409
eb4f72c5
AC
104102003-01-21 Andrew Cagney <ac131313@redhat.com>
10411
10412 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10413 * blockframe.c (backtrace_below_main): Move to "frame.c".
10414 (frame_chain_valid): Delete check for backtrace_below_main.
10415 (_initialize_blockframe): Delete initialization, move ``set
10416 backtrace-below-main'' command to "frame.c".
10417 (do_flush_frames_sfunc): Delete function.
10418 * frame.c: Include "command.h" and "gdbcmd.h".
10419 (frame_type_from_pc): New function.
10420 (create_new_frame): Use frame_type_from_pc.
10421 (legacy_get_prev_frame): New function.
10422 (get_prev_frame): Rewrite. When an old style frame, call
10423 legacy_get_prev_frame. Otherwize, unwind the PC first.
10424 (_initialize_frame): Add ``set backtrace-below-main'' command.
10425 * Makefile.in (frame.o): Update dependencies.
10426
778ce8cc
AC
104272003-01-19 Andrew Cagney <ac131313@redhat.com>
10428
10429 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10430 DEPRECATED_REGISTERS_INFO.
10431
01c193c8
AC
104322003-01-19 Andrew Cagney <ac131313@redhat.com>
10433
10434 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10435 Maintainers'. Update `Various Maintainers'.
10436
dedc2a2b
AC
104372003-01-19 Andrew Cagney <ac131313@redhat.com>
10438
10439 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10440 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10441 Suppress actual parameters when `-'.
10442 * gdbarch.h, gdbarch.c: Regenerate.
10443
b7261c70
AC
104442003-01-19 Andrew Cagney <ac131313@redhat.com>
10445
10446 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10447 code handling dummy frames.
10448
dbe9fe58
AC
104492003-01-19 Andrew Cagney <ac131313@redhat.com>
10450
10451 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10452 (struct frame_unwind): Add field pop.
10453 * frame.h (frame_pop): Declare.
10454 * frame.c (frame_saved_regs_pop): New function.
10455 (trad_frame_unwinder): Add frame_saved_regs_pop.
10456 (frame_pop): New function.
10457 * dummy-frame.c (dummy_frame_pop): New function.
10458 (discard_innermost_dummy): New function.
10459 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10460 (dummy_frame_unwind): Add dummy_frame_pop.
10461 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10462 * valops.c (hand_function_call): Ditto.
10463 * stack.c (return_command): Ditto.
10464
570b8f7c
AC
104652003-01-18 Andrew Cagney <ac131313@redhat.com>
10466
10467 * cris-tdep.c: Fix function declaration indentation.
10468 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10469 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10470 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10471 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10472 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10473 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10474
104752003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
10476
10477 * README (Unpacking and Installation -- quick overview):
10478 Warn against ".../gdb-5.3/gdb/configure".
10479
494cca16
AC
104802003-01-18 Andrew Cagney <ac131313@redhat.com>
10481
10482 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10483 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10484 (struct frame_unwind): Declare opaque.
10485 (dummy_frame_p): Declare function.
10486 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10487 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10488 * dummy-frame.c: Include "frame-unwind.h".
10489 (dummy_frame_p): New function.
10490 (dummy_frame_unwind): New variable.
10491 * frame.c: Include "frame-unwind.h".
10492 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10493 to use the new unwind field.
10494 (set_unwind_by_pc): Delete function.
10495 (create_new_frame, get_prev_frame): Set unwind field using
10496 frame_unwind_find_by_pc.
10497 (trad_frame_unwind, trad_frame_unwinder): New variables.
10498 * frame.h (trad_frame_unwind): Declare variable.
10499 (frame_id_unwind_ftype): Delete declaration.
10500 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10501 (struct frame_unwind): Declare opaque.
10502 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10503 register_unwind with a single unwind pointer.
10504 * frame-unwind.h, frame-unwind.c: New files.
10505 * Makefile.in (SFILES): Add frame-unwind.c.
10506 (frame_unwind_h): Define.
10507 (COMMON_OBS): Add frame-unwind.o.
10508 (frame-unwind.o): Specify dependencies.
10509 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 10510
4efb68b1
AC
105112003-01-18 Andrew Cagney <ac131313@redhat.com>
10512
10513 * ada-valprint.c: Eliminate PTR.
10514 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10515 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10516 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10517 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10518 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10519 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10520 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 10521
a84d24ee
AC
105222003-01-17 Andrew Cagney <ac131313@redhat.com>
10523
762f08a3
AC
10524 * main.c (captured_main): Don't use PTR.
10525 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10526 * gdbtypes.c (lookup_primitive_typename): Ditto.
10527 (lookup_struct_elt_type): Ditto.
10528 * f-valprint.c (info_common_command): Ditto.
10529 (list_all_visible_commons): Ditto.
10530 * jv-typeprint.c (java_type_print_base): Ditto.
10531
a84d24ee
AC
10532 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10533 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10534 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10535 i386-interix-nat.c and i386-interix-tdep.c. Rename
10536 m68klinux-nat.c and m68klinux-tdep.c. Rename
10537 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10538 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10539 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10540 * main.c (captured_main): Use xfree, not free.
10541
c170fb60
AC
105422003-01-16 Andrew Cagney <ac131313@redhat.com>
10543
10544 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10545 ID back using a parameter.
10546 * frame.c (frame_id_unwind): Update call.
10547 (frame_saved_regs_id_unwind): Update.
10548 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10549 * dummy-frame.h (struct frame_id): Add opaque declaration.
10550 (dummy_frame_id_unwind): Update declaration.
10551
867f3898
AC
105522003-01-15 Andrew Cagney <ac131313@redhat.com>
10553
10554 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10555
40622be8 105562003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 10557
40622be8 10558 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 10559
ae66c1fc
EZ
105602003-01-14 Elena Zannoni <ezannoni@redhat.com>
10561
997b089a 10562 Fix PR gdb/898
ae66c1fc
EZ
10563 * breakpoint.c (until_break_command): Add new argument. Use it to
10564 decide whether to stop only at the current frame or not.
10565 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 10566 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
10567 call.
10568 (advance_command): New function.
10569 (_initialize_infcmd): Update help string for 'until' command.
10570 Add new 'advance' command.
10571
a04257e6
DC
105722003-01-14 David Carlton <carlton@math.stanford.edu>
10573
10574 * linespec.c (decode_line_1): Normalize comments.
10575 (set_flags): Ditto.
10576 (locate_first_half): Ditto.
10577 (decode_compound): Ditto.
10578 (symtab_from_filename): Ditto.
10579 (decode_all_digits): Ditto.
10580 (decode_dollar): Ditto.
10581 (find_methods): Ditto.
10582 (find_toplevel_char): Ditto.
10583
1bac305b
AC
105842003-01-13 Andrew Cagney <ac131313@redhat.com>
10585
10586 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10587 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10588 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10589 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10590 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10591 * language.c, language.h, m32r-tdep.c: Update copyright.
10592 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10593 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10594 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10595 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10596 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10597 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10598
25caa7a8
EZ
105992003-01-13 Elena Zannoni <ezannoni@redhat.com>
10600
10601 * stabsread.h (process_later, resolve_cfront_continuation):
10602 Obsolete.
10603 Update copyright years.
10604 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10605 Update copyright year.
10606 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 10607 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
10608 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10609 Update copyright year.
10610 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10611 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10612 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10613 (parse_partial_symbols): Obsolete cfront support.
10614 * stabsread.c
10615 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10616 macros.
10617 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10618 read_cfront_baseclasses, read_cfront_member_functions,
10619 resolve_cfront_continuation,read_cfront_static_fields,
10620 copy_cfront_struct_fields): Obsolete functions.
10621 (define_symbol, read_one_struct_field): Obsolete cfront support.
10622 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10623 Update Copyright year.
10624
7789c6f5
EZ
106252003-01-13 Elena Zannoni <ezannoni@redhat.com>
10626
10627 * stack.c (print_frame_info, print_stack_frame_base_stub,
10628 print_stack_frame_base, show_and_print_stack_frame_stub,
10629 show_and_print_stack_frame, print_only_stack_frame_stub,
10630 print_only_stack_frame): Delete functions.
10631 (print_stack_frame_stub): Call print_frame_info instead of
10632 print_frame_info_base.
10633 (print_frame_info_base): Rename to print_frame_info.
10634 (backtrace_command_1): Call print_frame_info, instead of
10635 print_frame_info_base.
10636 (current_frame_command): Call print_stack_frame, instead of
10637 print_only_stack_frame.
10638 (frame_command): Call print_stack_frame, instead of
10639 show_and_print_stack_frame.
10640 (up_command): Ditto.
10641 (down_command): Ditto.
10642 * frame.h (print_only_stack_frame): Delete prototype.
10643 * infrun.c (normal_stop): Call print_stack_frame, instead of
10644 show_and_print_stack_frame.
10645 * thread.c (info_threads_command): Call print_stack_frame, instead
10646 of print_only_stack_frame.
10647
3f5a3016
AC
106482003-01-13 Andrew Cagney <ac131313@redhat.com>
10649
d99ba314
AC
10650 * README (Graphical interface to GDB): Update URL. Point at
10651 gdb/links/.
10652
3f5a3016
AC
10653 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10654 version match.
10655
083ae935
DJ
106562003-01-13 Daniel Jacobowitz <drow@mvista.com>
10657
10658 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10659 lines.
10660
5365276c
DJ
106612003-01-13 Daniel Jacobowitz <drow@mvista.com>
10662
10663 * thread-db.c (attach_thread): Prototype.
10664 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10665 thread information (ti), and valid flags (th_valid, ti_valid).
10666 (attach_thread): Move target_pid_to_str call to after the thread
10667 is added to GDB's list. Initialize the cache.
10668 (thread_get_info_callback, thread_db_map_id2thr)
10669 (thread_db_get_info): New functions.
10670 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10671 (thread_db_store_registers, thread_db_thread_alive)
10672 (thread_db_get_thread_local_address): Use them.
10673 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10674 of calling error() for threads in unknown state.
10675
10676 (clear_lwpid_callback): New function.
10677 (thread_db_resume): Use it to clear the cache.
10678
9fc30b6b
DJ
106792003-01-13 Daniel Jacobowitz <drow@mvista.com>
10680
10681 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10682 (resume_callback): Remove dead code.
10683
8f871025
AC
106842003-01-13 Andrew Cagney <ac131313@redhat.com>
10685
10686 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10687 predicate.
10688 * gdbarch.h, gdbarch.c: Regenerate.
10689 * stack.c (frame_info): Only initialize the saved registers when
10690 FRAME_INIT_SAVED_REGS_P.
10691 * frame.c (frame_saved_regs_register_unwind): Assert
10692 FRAME_INIT_SAVED_REGS_P.
10693 (deprecated_generic_get_saved_register): Ditto.
10694
3f565f1e
DJ
106952003-01-13 Daniel Jacobowitz <drow@mvista.com>
10696
10697 * source.c (openp): Squelch warning about "filename".
10698
072b1022
DJ
106992003-01-13 Daniel Jacobowitz <drow@mvista.com>
10700
10701 * source.c (openp): If the file does not exist don't necessarily
10702 search the path.
10703
973ccf8b
DJ
107042003-01-13 Daniel Jacobowitz <drow@mvista.com>
10705
10706 Fix PR gdb/872.
10707 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10708 (integer_types_same_name_p): New function.
10709 (rank_one_type): Use it.
10710 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10711
030292b7
DJ
107122003-01-13 Daniel Jacobowitz <drow@mvista.com>
10713
10714 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10715 variables.
10716 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10717 * configure.in: Add --with-sysroot.
10718 * configure: Regenerated.
10719 * main.c (gdb_sysroot): New variable.
10720 (captured_main): Initialize gdb_sysroot.
10721 * defs.h (gdb_sysroot): New extern declaration.
10722 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10723
afb5d334
MC
107242003-01-12 Michael Chastain <mec@shout.net>
10725
10726 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10727
751ceeb4
MC
107282003-01-12 Michael Chastain <mec@shout.net>
10729
10730 * top.c (print_gdb_version): Bump copyright year to 2003.
10731
94cd26f8
DC
107322003-01-12 David Carlton <carlton@bactrian.org>
10733
10734 * linespec.c (symtab_from_filename): Rename variable 's' to
10735 'file_symtab'.
10736
1ce79225
AC
107372003-01-12 Andrew Cagney <ac131313@redhat.com>
10738
10739 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10740 dummy frame.
10741 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10742
fa1fd571
AC
107432003-01-12 Andrew Cagney <ac131313@redhat.com>
10744
10745 * d10v-tdep.c: Include "gdb_assert.h".
10746 (d10v_store_return_value): Rewrite to match current interface.
10747 (d10v_extract_struct_value_address): Ditto.
10748 (d10v_extract_return_value): Ditto.
10749 (d10v_gdbarch_init): Set store_restore_value,
10750 extract_struct_value_address and extract_return_value.
10751
68b8d23e
JB
107522003-01-12 J. Brobecker <brobecker@gnat.com>
10753
10754 * hpread.c (set_namestring): New procedure replacing the
10755 SET_NAMESTRING macro.
10756 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10757 by calls to set_namestring.
10758
107592003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
10760
10761 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10762 a compilation warning.
10763 (hpread_process_one_debug_symbol): Likewise.
10764
88d262ca
DC
107652003-01-10 David Carlton <carlton@math.stanford.edu>
10766
10767 * linespec.c (decode_line_1): Rename variable 's' to
10768 'file_symtab'.
10769 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10770 (decode_dollar): Ditto.
10771 (decode_variable): Ditto.
10772 (symbol_found): Ditto.
10773
86669319
MC
107742003-01-09 Michael Chastain <mec@shout.net>
10775
10776 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10777
616a9dc4
CV
107782003-01-07 Corinna Vinschen <vinschen@redhat.com>
10779
10780 * win32-nat.c (set_process_privilege): New function.
10781 (child_attach): Call set_process_privilege() to enable the
10782 SE_DEBUG_NAME user privilege if available in process token.
10783
3269bcfa
JB
107842003-01-10 J. Brobecker <brobecker@gnat.com>
10785
10786 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10787 compilation error in the previous revision.
10788
2b0ee454
DC
107892003-01-09 David Carlton <carlton@math.stanford.edu>
10790
10791 * linespec.c: Update copyright.
10792
b3ba1b44
DJ
107932003-01-09 Daniel Jacobowitz <drow@mvista.com>
10794
10795 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10796 than inferior_ptid.
10797 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10798
4ef3f3be
AC
107992003-01-09 Andrew Cagney <ac131313@redhat.com>
10800
479ab5a0
AC
10801 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10802 Update comments.
10803 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10804 (frame_saved_regs_zalloc): Update.
10805 (frame_saved_regs_register_unwind): Update.
10806 (create_new_frame): Update.
10807 (get_prev_frame): Update.
10808 (frame_extra_info_zalloc): Update.
10809 (deprecated_get_frame_saved_regs): Update.
10810 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10811 * cris-tdep.c: Update comment.
10812
bde58177
AC
10813 * somsolib.h: Fix function indentation.
10814 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10815 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10816 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10817 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10818 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10819
4ef3f3be
AC
10820 * infrun.c (follow_fork): Use ISO C definition.
10821 * expprint.c (print_subexp): Use xfree instead of free.
10822 * charset.c: Include "gdb_string.h" instead of <string.h>.
10823 (register_iconv_charsets): Use ISO C definition.
10824 (host_charset, target_charset): Ditto.
10825 * Makefile.in (charset.o): Update dependencies.
10826 (mi-cmd-env.o): Update dependencies.
10827
1c615f7a
AC
108282003-01-08 Andrew Cagney <cagney@redhat.com>
10829
10830 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10831 get_frame_base.
10832
c9a1dc08
AC
108332003-01-08 Andrew Cagney <ac131313@redhat.com>
10834
10835 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10836 build directories. Save edited gdb output in Mbuild.log. If a
10837 build fails, remove any final GDB executable.
10838
dbad9d94
AC
108392003-01-08 Andrew Cagney <ac131313@redhat.com>
10840
10841 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10842 replacing hex constants with function names and stripping leading
10843 file name directory prefixes.
10844
8d357cca
AC
108452003-01-08 Andrew Cagney <cagney@redhat.com>
10846
10847 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10848 get_frame_base.
10849
bca02a8a
DC
108502003-01-08 David Carlton <carlton@math.stanford.edu>
10851
10852 * linespec.c (decode_line_1): Move code into decode_variable.
10853 (decode_variable): New function.
10854
7f8ab3a0
AC
108552003-01-08 Andrew Cagney <ac131313@redhat.com>
10856
10857 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10858
7b5849cc
AC
108592003-01-08 Andrew Cagney <cagney@redhat.com>
10860
10861 * cris-tdep.c (cris_frame_init_saved_regs): Use
10862 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10863 saved_regs buffer.
10864 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10865 (sh64_nofp_frame_init_saved_regs): Ditto.
10866 (sh_fp_frame_init_saved_regs): Ditto.
10867 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10868 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10869 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10870 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10871
72a5efb3
DJ
108722003-01-08 Daniel Jacobowitz <drow@mvista.com>
10873
10874 * minsyms.c (lookup_minimal_symbol): Update comment.
10875 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10876 (lookup_minimal_symbol_solib_trampoline): Likewise.
10877
11c02a10
AC
108782003-01-08 Andrew Cagney <cagney@redhat.com>
10879
aab3ea25
AC
10880 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10881 frame_relative_level.
10882
da50a4b7
AC
10883 * alpha-tdep.c: Use get_frame_extra_info.
10884 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10885 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10886 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10887 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10888
11c02a10
AC
10889 * alpha-tdep.c: Use get_next_frame.
10890 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10891 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10892 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10893 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10894 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10895 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10896 * xstormy16-tdep.c: Ditto.
8ffd9b1b 10897
1e2330ba
AC
108982003-01-07 Andrew Cagney <cagney@redhat.com>
10899
10900 * alpha-tdep.c: Use get_frame_base.
10901 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10902 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10903 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10904 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10905 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10906 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10907 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10908 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 10909
2d75187b
AC
109102003-01-07 Andrew Cagney <cagney@redhat.com>
10911
10912 * frame.c (deprecated_get_frame_context): New function.
10913 (deprecated_set_frame_context): New function.
10914 * frame.h (deprecated_get_frame_context): Declare.
10915 (deprecated_set_frame_context): Declare.
10916 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10917 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 10918
483d36b2
AC
109192003-01-07 Andrew Cagney <cagney@redhat.com>
10920
10921 * frame.c (deprecated_set_frame_next_hack): New function.
10922 (deprecated_set_frame_prev_hack): New function.
10923 * frame.h (deprecated_set_frame_next_hack): Declare.
10924 (deprecated_set_frame_prev_hack): Declare.
10925 * mcore-tdep.c (analyze_dummy_frame): Use
10926 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10927 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10928
14e91ac5
DC
109292003-01-07 David Carlton <carlton@math.stanford.edu>
10930
10931 * linespec.c (decode_line_1): Move code into decode_dollar.
10932 (decode_dollar): New function.
10933
b0c6b05c
AC
109342003-01-07 Andrew Cagney <cagney@redhat.com>
10935
10936 * arm-tdep.c (arm_init_extra_frame_info): Use
10937 deprecated_update_frame_base_hack.
10938 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10939 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10940 (fix_frame_pointer): Ditto.
10941 (mn10300_analyze_prologue): Ditto.
10942
a00a19e9
AC
109432003-01-07 Andrew Cagney <cagney@redhat.com>
10944
10945 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10946 extra_info using frame_extra_info_zalloc.
10947 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10948 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10949 (sh64_init_extra_frame_info): Ditto.
10950 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10951 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10952 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10953 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10954 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10955 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10956 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10957 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10958 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10959 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10960 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10961 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10962
10963 * mn10300-tdep.c (analyze_dummy_frame): Use
10964 deprecated_set_frame_extra_info_hack.
10965 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10966
1fb4c65b
JB
109672003-01-07 J. Brobecker <brobecker@gnat.com>
10968
10969 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10970 class is not scText. These do not define "real" procedures.
10971 (parse_partial_symbols): Likewise.
10972
9fe7d6bf
MS
109732003-01-06 Michael Snyder <msnyder@redhat.com>
10974
10975 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10976
f6c609c4
AC
109772003-01-06 Andrew Cagney <ac131313@redhat.com>
10978
10979 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10980 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10981 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10982 deprecated_frame_xmalloc_with_cleanup.
10983 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10984 deprecated_frame_xmalloc.
10985 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10986 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10987
d995ff4b
AC
109882003-01-06 Andrew Cagney <cagney@redhat.com>
10989
84dc46cb
AC
10990 * x86-64-linux-tdep.c: Include "osabi.h".
10991 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10992
d995ff4b
AC
10993 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10994
66140c26
AC
109952003-01-06 Andrew Cagney <cagney@redhat.com>
10996
10997 * MAINTAINERS (Target Instruction Set Architectures): Update
10998 arm-elf. Can be built with -Werror, has been multiarched.
10999
11000 * value.h (unpack_long): Make buffer parameter constant.
11001 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11002 * scm-lang.h (scm_parse): Ditto.
11003 * defs.h (extract_typed_address, extract_address): Ditto.
11004 (extract_long_unsigned_integer): Ditto.
11005 * inferior.h (unsigned_pointer_to_address): Ditto.
11006 (signed_pointer_to_address): Ditto.
11007 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11008 * gdbarch.h, gdbarch.c: Regenerate.
11009 * findvar.c (extract_long_unsigned_integer): Update.
11010 (extract_address): Update.
11011 (extract_typed_address): Update.
11012 (unsigned_pointer_to_address): Update.
11013 * values.c (unpack_long): Update.
11014 (unpack_double): Update.
11015 (unpack_pointer): Update.
11016 (unpack_field_as_long): Update.
11017 * d10v-tdep.c (d10v_pointer_to_address): Update.
11018 * avr-tdep.c (avr_pointer_to_address): Update.
11019 * scm-lang.c (scm_unpack): Update.
11020 * findvar.c (signed_pointer_to_address): Update.
11021
b089b3da
ML
110222003-01-06 Michal Ludvig <mludvig@suse.cz>
11023
8ffd9b1b 11024 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
11025 since it is in i386-tdep.c.
11026
aff87235
JB
110272003-01-06 J. Brobecker <brobecker@gnat.com>
11028
11029 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11030 failure introduced in the previous change.
11031
34f5e845
MC
110322003-01-05 Michael Chastain <mec@shout.net>
11033
11034 * README: Remove references to deleted remote-*.c files:
11035 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11036 remote-nrom.c, remote-os9k.c, remote-udi.c.
11037
28bcfd30
MK
110382003-01-05 Mark Kettenis <kettenis@gnu.org>
11039
11040 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11041 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11042 i386_get_longjmp_target.
11043
15a5b3ee
AC
110442003-01-05 Andrew Cagney <ac131313@redhat.com>
11045
11046 * arm-tdep.c (prologue_cache): Change to a pointer.
11047 (_initialize_arm_tdep): Allocate prologue_cache.
11048 (check_prologue_cache): Update.
11049 (save_prologue_cache): Update.
11050 (arm_gdbarch_init): Update.
11051
c263362b
DJ
110522003-01-04 Daniel Jacobowitz <drow@mvista.com>
11053
11054 * stabsread.c (update_method_name_from_physname): Call complaint()
11055 instead of error.
11056
51603483
DJ
110572003-01-04 Daniel Jacobowitz <drow@mvista.com>
11058
11059 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11060 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11061 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11062
11063 * blockframe.c: Include "gdbcmd.h" and "command.h".
11064 (backtrace_below_main): New variable.
11065 (file_frame_chain_valid, func_frame_chain_valid)
11066 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11067 (generic_func_frame_chain_valid): Remove functions.
11068 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11069 (_initialize_blockframe): New function.
11070 * Makefile.in (blockframe.o): Update dependencies.
11071 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11072 comment. Call frame_chain_valid ().
11073 * frame.h: Remove old prototypes. Add prototype for
11074 frame_chain_valid and update comments to match.
11075 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11076 Remove old comment.
11077 * gdbarch.h: Regenerated.
11078 * gdbarch.c: Regenerated.
11079
11080 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11081 set_gdbarch_frame_chain_valid.
11082 * avr-tdep.c (avr_gdbarch_init): Likewise.
11083 * cris-tdep.c (cris_gdbarch_init): Likewise.
11084 * frv-tdep.c (frv_gdbarch_init): Likewise.
11085 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11086 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11087 (i386_nw_init_abi): Likewise.
11088 (i386_gdbarch_init): Likewise.
11089 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11090 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11091 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11092 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11093 * mips-tdep.c (mips_gdbarch_init): Likewise.
11094 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11095 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11096 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11097 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11098 * s390-tdep.c (s390_gdbarch_init): Likewise.
11099 * sh-tdep.c (sh_gdbarch_init): Likewise.
11100 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11101 * v850-tdep.c (v850_gdbarch_init): Likewise.
11102 * vax-tdep.c (vax_gdbarch_init): Likewise.
11103 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11104
11105 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11106 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11107 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11108 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11109 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11110 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11111 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11112 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11113
b00a8037
DJ
111142002-01-04 Daniel Jacobowitz <drow@mvista.com>
11115
11116 * Makefile.in (acconfig_h): Remove incorrect macro.
11117 (config_h): Define.
11118 (osabi.o): Update dependencies.
11119 * configure.tgt: Set gdb_osabi based on target triplet.
11120 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11121 * configure: Regenerated.
11122 * config.in: Regenerated.
11123 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11124 (GDB_OSABI_DEFAULT): Define if not already defined.
11125 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11126 (set_osabi_string): New variables.
11127 (gdbarch_register_osabi): Add new OS ABI to
11128 gdb_osabi_available_names.
11129 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11130 (set_osabi, show_osabi): New functions.
11131 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11132
4be87837
DJ
111332003-01-04 Daniel Jacobowitz <drow@mvista.com>
11134
11135 * arch-utils.c (gdbarch_info_init): Set osabi to
11136 GDB_OSABI_UNINITIALIZED.
11137 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11138 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11139 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11140 * gdbarch.c: Regenerated.
11141 * gdbarch.h: Regenerated.
11142 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11143 there's no BFD.
11144 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11145 * osabi.h (enum gdb_osabi): Move to defs.h.
11146 (gdbarch_init_osabi): Update prototype.
11147 * defs.h (enum gdb_osabi): Moved here.
11148 * Makefile.in: Update dependencies.
11149
11150 * alpha-tdep.h: Don't include "osabi.h".
11151 (struct gdbarch_tdep): Remove osabi member.
11152 * alpha-tdep.c: Include "osabi.h".
11153 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11154 iterate over arches. Update call to gdbarch_init_osabi.
11155 (alpha_dump_tdep): Don't dump osabi.
11156 * alpha-linux-tdep.c: Include "osabi.h".
11157 * alpha-osf1-tdep.c: Include "osabi.h".
11158 * alphafbsd-tdep.c: Include "osabi.h".
11159 * alphanbsd-tdep.c: Include "osabi.h".
11160
11161 * arm-tdep.h: Don't include "osabi.h".
11162 (struct gdbarch_tdep): Remove osabi member.
11163 * arm-tdep.c: Include "osabi.h".
11164 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11165 iterate over arches. Update call to gdbarch_init_osabi.
11166 (arm_dump_tdep): Don't dump osabi.
11167 * arm-linux-tdep.c: Include "osabi.h".
11168 * armnbsd-tdep.c: Include "osabi.h".
11169
11170 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11171 Update call to gdbarch_init_osabi.
11172
11173 * i386-tdep.h: Don't include "osabi.h".
11174 (struct gdbarch_tdep): Remove osabi member.
11175 * i386-tdep.c: Include "osabi.h".
11176 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11177 iterate over arches. Update call to gdbarch_init_osabi.
11178 (i386_dump_tdep): Don't dump osabi.
11179 * i386-linux-tdep.c: Include "osabi.h".
11180 * i386-sol2-tdep.c: Include "osabi.h".
11181 * i386bsd-tdep.c: Include "osabi.h".
11182 * i386gnu-tdep.c: Include "osabi.h".
11183 * i386ly-tdep.c: Include "osabi.h".
11184 * i386nbsd-tdep.c: Include "osabi.h".
11185 * i386obsd-tdep.c: Include "osabi.h".
11186
11187 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11188 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11189 check osabi when iterating over arches. Update call to
11190 gdbarch_init_osabi.
11191 (mips_dump_tdep): Don't dump osabi.
11192
11193 * ns32k-tdep.h: Don't include "osabi.h".
11194 (struct gdbarch_tdep): Remove.
11195 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11196 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11197 allocate tdep. Update call to gdbarch_init_osabi.
11198 (ns32k_dump_tdep): Remove.
11199 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11200 * ns32knbsd-tdep.c: Include "osabi.h".
11201
11202 * ppc-tdep.h: Don't include "osabi.h".
11203 (struct gdbarch_tdep): Remove osabi member.
11204 * rs6000-tdep.c: Include "osabi.h".
11205 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11206 osabi when iterating over arches. Update call to
11207 gdbarch_init_osabi.
11208 (rs6000_dump_tdep): Don't dump osabi.
11209 * ppc-linux-tdep.c: Include "osabi.h".
11210 * ppcnbsd-tdep.c: Include "osabi.h".
11211
11212 * sh-tdep.h: Don't include "osabi.h".
11213 (struct gdbarch_tdep): Remove osabi member.
11214 * sh-tdep.c: Include "osabi.h".
11215 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11216 iterate over arches. Update call to gdbarch_init_osabi.
11217 (sh_dump_tdep): Don't dump osabi.
11218 * shnbsd-tdep.c: Include "osabi.h".
11219
11220 * sparc-tdep.c: Include "osabi.h".
11221 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11222 iterate over arches. Update call to gdbarch_init_osabi.
11223 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11224 tdep structure.
11225
11226 * vax-tdep.h: Don't include "osabi.h".
11227 (struct gdbarch_tdep): Remove.
11228 * vax-tdep.c: Include "osabi.h".
11229 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11230 iterate over arches. Don't allocate tdep. Update call
11231 to gdbarch_init_osabi.
11232 (vax_dump_tdep): Remove.
11233 (_initialize_vax_tdep): Update call to gdbarch_register.
11234
a881cf8e
DJ
112352003-01-04 Daniel Jacobowitz <drow@mvista.com>
11236
11237 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11238 entirely.
11239 (breakpoint_re_set_one): Don't fetch the value for a disabled
11240 watchpoint.
11241
1e698235
DJ
112422003-01-04 Daniel Jacobowitz <drow@mvista.com>
11243
11244 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11245 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11246 (COERCE_FLOAT_TO_DOUBLE): Remove.
11247 * gdbarch.c: Regenerate.
11248 * gdbarch.h: Regenerate.
11249 * Makefile.in: Remove value_h from gdbarch_h.
11250 * valops.c (coerce_float_to_double): New variable.
11251 (default_coerce_float_to_double): Remove.
11252 (standard_coerce_float_to_double): Remove.
11253 (value_arg_coerce): Use coerce_float_to_double.
11254 (_initialize_valops): Add "set coerce-float-to-double".
11255 * value.h (default_coerce_float_to_double): Remove prototype.
11256 (standard_coerce_float_to_double): Remove prototype.
11257
11258 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11259 prototyped.
11260 * mdebugread.c (parse_symbol): Likewise.
11261 * stabsread.c (define_symbol): Mark all functions as prototyped.
11262
11263 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11264 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11265 set_gdbarch_coerce_float_to_double.
11266 * arm-tdep.c (arm_gdbarch_init): Likewise.
11267 * frv-tdep.c (frv_gdbarch_init): Likewise.
11268 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11269 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11270 * mips-tdep.c (mips_gdbarch_init): Likewise.
11271 (mips_coerce_float_to_double): Remove.
11272 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11273 (rs6000_coerce_float_to_double): Remove.
11274 * s390-tdep.c (s390_gdbarch_init): Likewise.
11275 * sh-tdep.c (sh_gdbarch_init): Likewise.
11276 (sh_coerce_float_to_double): Remove.
11277 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11278 (sparc_coerce_float_to_double): Remove.
11279 * v850-tdep.c (v850_gdbarch_init): Likewise.
11280 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11281 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11282 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11283 (hppa_coerce_float_to_double): Remove prototype.
11284 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11285
f436a26a
DJ
112862003-01-04 Daniel Jacobowitz <drow@mvista.com>
11287
11288 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11289
248f8055
DJ
112902003-01-04 Daniel Jacobowitz <drow@mvista.com>
11291
11292 Suggested by Stewart Brown <sb24@avaya.com>:
11293 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11294 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11295 (c_type_print_varspec_suffix): Likewise.
11296
72cfdc76
MK
112972003-01-04 Mark Kettenis <kettenis@gnu.org>
11298
bfd260bb
MK
11299 * configure.in: Don't set and AC_SUBST SUBDIRS.
11300 * configure: Regenerated.
11301
72cfdc76
MK
11302 * configure.in: Remove code dealing with shared libraries.
11303 * Makefile.in: Remove HLDFLAGS and HLDENV.
11304 * configure: Regenerated.
11305
c8b8a898
AC
113062003-01-04 Andrew Cagney <ac131313@redhat.com>
11307
11308 * frame.c (deprecated_frame_xmalloc): New function.
11309 (deprecated_set_frame_saved_regs_hack): New function.
11310 (deprecated_set_frame_extra_info_hack): New function.
11311 * frame.h (deprecated_frame_xmalloc): Declare.
11312 (deprecated_set_frame_saved_regs_hack): Declare.
11313 (deprecated_set_frame_extra_info_hack): Declare.
11314
14abd0fb
MK
113152003-01-04 Mark Kettenis <kettenis@gnu.org>
11316
8ee53726
MK
11317 * configure.in: Move code that provides the --enable-gdbtk option
11318 right after the code that handles the --enable-tui option, and
11319 polish it somewhat.
11320 * configure: Regenerated.
11321
14abd0fb
MK
11322 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11323 AC_CHECK_FUNCS and remove the old check for pread64.
11324 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11325 * acconfig.h (_GNU_SOURCE): Add.
11326 (HAVE_PREAD64): Remove.
11327 * configure, aclocal.m4, config.in: Regenerated.
11328
b2fb4676
AC
113292003-01-03 Andrew Cagney <ac131313@redhat.com>
11330
11331 * alpha-tdep.c: Use get_frame_saved_regs.
11332 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11333 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11334 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11335 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11336 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11337
8dcde887
MK
113382003-01-03 Mark Kettenis <kettenis@gnu.org>
11339
11340 * configure.in: Remove all use of the SUBDIRS variable; add
11341 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11342 code providing the --enable-multi-ice option, and move it right in
11343 front of the code that checks whether gdbserver is supported.
11344 Polish that too.
11345 * configure: Regenerated.
11346 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11347 @SUBDIRS@.
11348
8ccd593b
AC
113492003-01-03 Andrew Cagney <cagney@redhat.com>
11350
11351 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11352 * avr-tdep.c, cris-tdep.c: Ditto.
11353 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11354 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 11355
91151a06
MK
113562003-01-03 Mark Kettenis <kettenis@gnu.org>
11357
11358 * configure.in: Remove --enable-netrom option.
11359 * configure: Regenerated.
11360
8fe84d01
MK
113612003-01-03 Mark Kettenis <kettenis@gnu.org>
11362
11363 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11364 declaration for `struct re_pattern_buffer' instead.
11365 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11366
f0394be6
JB
113672003-01-03 J. Brobecker <brobecker@gnat.com>
11368
11369 * mdebugread.c (parse_symbol): Count until the stEnd matching
11370 the structure name.
11371
27e9bf90
MK
113722003-01-02 Mark Kettenis <kettenis@gnu.org>
11373
93d331ba
MK
11374 * configure.in: Remove --with-cpu option.
11375 subscripts. Remove evil changequotes here.
11376 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11377 * config.in, configure: Regenerated.
8ffd9b1b 11378
27e9bf90
MK
11379 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11380 * configure.in: Cleanup section that sources GDB and BFD configure
11381 subscripts. Remove evil changequotes here.
11382 * config.in, configure: Regenerated.
11383
50abf9e5
AC
113842003-01-02 Andrew Cagney <ac131313@redhat.com>
11385
11386 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11387 frame accessor methods.
11388 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11389 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11390 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11391 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11392 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11393 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11394 * z8k-tdep.c: Ditto.
8ffd9b1b 11395
287c1a40
MK
113962003-01-02 Mark Kettenis <kettenis@gnu.org>
11397
f5dbc56d
MK
11398 * configure.in: Remove UI_OUT configuration code.
11399 * ada-lang.c: Update assuming UI_OUT is always true.
11400 * Makefile.in (UIOUT_CFLAGS): Remove.
11401 * configure: Regenerated.
11402 * TODO: Remove blurb about elimination of -DUI_OUT.
11403
627af7ea
MK
11404 * configure.in: Move code that provides the --enable-gdbcli,
11405 --enable-gdbmi options right before the code that handles the
11406 --enable-tui option. Polish a bit.
11407 * configure: Regenerated.
11408
06825bd1
MK
11409 * configure.in: Rewrite check for GNU regex and the
11410 --without-included regex option, and move it into the "Checks for
11411 library functions" section. This makes us use the system regex
11412 again by default on systems with version 2 of the GNU C library.
11413 This was apparently broken.
11414 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11415 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11416 * config.in, configure: Regenerated.
11417
287c1a40
MK
11418 * configure.in: Move code that provides the --enable-tui option
11419 before the "Checks for libraries" section. Polish the code
11420 somewhat and set need_curses to yes if we build the TUI. Rewrite
11421 code that looks for a library providing termcap functionality to
11422 match more closely what's done in the Readline library, and move
11423 it into to the "Checks for libraries" section.
11424 * configure: Regenerated.
11425 * Makefile.in (TERMCAP): Remove variable.
11426 * config/i386/go32.mh (TERMCAP): Remove variable.
11427
684e56bf
AC
114282003-01-02 Andrew Cagney <ac131313@redhat.com>
11429
11430 * MAINTAINERS: Mention gdb_mbuild.sh.
11431 * gdb_mbuild.sh: Rewrite.
11432
e1ea1d75
MK
114332003-01-02 Mark Kettenis <kettenis@gnu.org>
11434
11435 * configure.in: Fix typo in last change.
11436 * config.in, configure: Regenerated.
11437
1b831c93
AC
114382003-01-02 Andrew Cagney <ac131313@redhat.com>
11439
11440 * valarith.c (value_binop): Delete obsolete code and comments.
11441 * configure.host: Ditto.
11442 * buildsym.h (make_blockvector): Ditto.
11443 * buildsym.c (make_blockvector): Ditto.
11444 * defs.h (enum language): Ditto.
11445 (chill_demangle): Ditto.
11446 * elfread.c (elf_symtab_read): Ditto.
11447 * dwarfread.c (CHILL_PRODUCER): Ditto.
11448 (set_cu_language): Ditto.
11449 (handle_producer): Ditto.
11450 * expprint.c (print_subexp): Ditto.
11451 * gdbtypes.c (chill_varying_type): Ditto.
11452 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11453 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11454 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11455 (chill_varying_type): Ditto.
11456 * language.h (_LANG_chill): Ditto.
11457 * language.c (binop_result_type, integral_type): Ditto.
11458 (character_type, string_type, structured_type): Ditto.
11459 (lang_bool_type, binop_type_check): Ditto.
11460 * stabsread.h (os9k_stabs): Ditto.
11461 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11462 (define_symbol, read_type, read_struct_fields): Ditto.
11463 (read_array_type, read_enum_type, read_huge_number): Ditto.
11464 (read_range_type, start_stabs): Ditto.
11465 * symfile.c (init_filename_language_table): Ditto.
11466 (add_psymbol_with_dem_name_to_list): Ditto.
11467 * symtab.c (symbol_init_language_specific): Ditto.
11468 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11469 * symtab.h (struct general_symbol_info): Ditto.
11470 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11471 * typeprint.c (typedef_print): Ditto.
11472 * utils.c (fprintf_symbol_filtered): Ditto.
11473 * valops.c (value_cast, search_struct_field, value_slice): Delete
11474 obsolete code.
11475 (varying_to_slice): Delete function.
11476 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11477 (varying_to_slice): Delete declaration.
11478 * MAINTAINERS: Update.
11479
8bb2c122
MK
114802003-01-02 Mark Kettenis <kettenis@gnu.org>
11481
97bf5e38
MK
11482 * configure.in: Reorganize "Checks for library functions section"
11483 a bit. Remove check for `btowc' and `isascii' functions.
11484 * configure: Regenerated.
11485
5ee754fc
MK
11486 * acconfig.h (_MSE_INT_H): Remove.
11487 * configure.in: Create "Checks for header files" section, and move
11488 appropriate tests there. Don't check for objlist.h, wchar.h,
11489 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11490 misdetection fix. Also add "Checks for types", "Checks for
11491 compiler characteristics" and "Checks for library functions"
11492 sections.
11493 * config.in, configure: Regenerated.
11494
8bb2c122
MK
11495 * configure.in: Create "Checks for programs" section, and move
11496 appropriate tests there.
11497
9a156167
MK
114982003-01-01 Mark Kettenis <kettenis@gnu.org>
11499
11500 * configure.in: Create "Checks for libraries" section, and move
11501 appropriate tests there. Cleanup check for wctype in libw. Use
11502 AC_SEARCH_LIBS to see whether we need libsocket.
11503 * configure: Regenerated.
11504
a80e2bcb 11505For older changes see ChangeLog-2002
c906108c
SS
11506\f
11507Local Variables:
11508mode: change-log
11509left-margin: 8
11510fill-column: 74
11511version-control: never
11512End:
This page took 1.039814 seconds and 4 git commands to generate.