* Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7c8a5605
JB
12003-09-08 Jim Blandy <jimb@redhat.com>
2
3 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
4 * dbxread.c: #include "gdb_assert.h".
5 (read_dbx_symtab): If the objfile has no .data section, use the
6 section index for the .bss section instead.
7
7dd88986
DJ
82003-09-08 Daniel Jacobowitz <drow@mvista.com>
9
10 * frame.c (deprecated_safe_get_selected_frame): New function.
11 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
12 * findvar.c (read_var_value): Call it.
13
55ff77ac
CV
142003-09-08 Corinna Vinschen <vinschen@redhat.com>
15
16 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
17 (sh64-tdep.o): Add dependencies.
18 * configure.tgt: Add FIXME to sh-*-linux*.
19 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
20 (sh_gdbarch_init): Always set correct sh_show_regs function
21 pointer. Call sh64_gdbarch_init() if machine type is sh5.
22 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
23 * sh64-tdep.c: New file, containing all sh64 related code from
24 sh-tdep.c.
25 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
26 * config/sh/linux.mt (TDEPFILES): Ditto.
27 * config/sh/nbsd.mt (TDEPFILES): Ditto.
28 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
29 * config/sh/wince.mt (TDEPFILES): Ditto.
30
bfb39158
DJ
312003-09-07 Daniel Jacobowitz <drow@mvista.com>
32
33 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
34 (stop_wait_callback): Handle !lp->signalled also.
35 (lin_lwp_has_pending, flush_callback): New functions.
36 (lin_lwp_wait): Call flush_callback.
37 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
38 (linux_proc_pending_signals): New function.
39 * linux-nat.h (linux_proc_pending_signals): Add prototype.
40
9407de8e
DJ
412003-09-07 Daniel Jacobowitz <drow@mvista.com>
42
43 From Nick Kelsey <nickk@ubicom.com>:
44 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
45 when the stop PC is at the beginning of a function also.
46
2ef47cd0
DJ
472003-09-06 Daniel Jacobowitz <drow@mvista.com>
48
49 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
50 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
51
6f4492c8
MK
522003-09-06 Mark Kettenis <kettenis@gnu.org>
53
54 * sol-thread.c: Include "gdb_string.h".
55
d3420b2f
MK
562003-09-03 Mark Kettenis <m.kettenis@osp.nl>
57
58 * gcore.c: Reorder include files in alphabetical order. Include
59 "gdb_assert.h". Various coding style fixes.
60 (derive_stack_segment, derive_heap_segment): Replace check for
61 non-null BOTTOM and TOP with gdb_assert.
62 (derive_heap_segment): Replace check for successful creation of
63 ZERO with gdb_assert.
64 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
65
5220ea4c
AC
662003-09-04 Andrew Cagney <cagney@redhat.com>
67
68 * thread-db.c (verbose_dlsym): New function.
69 (thread_db_load): Use verbose_dlsym
70 (thread_db_new_objfile): Print that libthread_db was loaded, and
71 that thread debugging was enabled.
72
6e8c2c06
AC
732003-09-04 Andrew Cagney <cagney@redhat.com>
74
75 * configure.tgt: Add "mips64*-*-*" target. Delete
76 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
77 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
78 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
79 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
80 mips*-sony-*, and mips64*-*-elf* targets.
81 * config/mips/embedl.mt: Delete file.
82 * config/mips/embedl64.mt: Delete file.
83 * config/mips/mips.mt: Delete file.
84 * config/mips/mips64.mt: Delete file.
85 * config/mips/tm-embed.h: Delete file.
86 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
87 * config/mips/embed64.mt: Delete out-of-date comment.
88
3a3bc038
AC
892003-09-04 Andrew Cagney <cagney@redhat.com>
90
91 * hppa-tdep.c (hppa_gdbarch_init): Set
92 "have_nonsteppable_watchpoint".
93 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
94 * mips-tdep.c (mips_dump_tdep): Do not print
95 HAVE_NONSTEPPABLE_WATCHPOINT.
96 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
97 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
98 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
99 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
100
a957e642
CV
1012003-09-04 Corinna Vinschen <vinschen@redhat.com>
102
103 * breakpoint.c (watchpoint_check): Remove accidentally checked in
104 unused code. Add comment.
105
a6fbcf2f
CV
1062003-09-04 Corinna Vinschen <vinschen@redhat.com>
107
108 * breakpoint.c (watchpoint_check): Check for pc being in an
109 epilogue if watchpoint frame couldn't be found.
110
c14a44d5
AC
1112003-09-04 Andrew Cagney <cagney@redhat.com>
112
113 * Makefile.in: Re-generate all dependencies.
114
f6c40618
AC
1152003-09-03 Andrew Cagney <cagney@redhat.com>
116
117 * arch-utils.h (legacy_print_insn): Delete declaration.
118 * arch-utils.c (legacy_print_insn): Delete function.
119 * disasm.c (deprecated_tm_print_insn_info): Delete.
120 (_initialize_disasm): Delete function, contained code initializing
121 deprecated_tm_print_insn_info.
122 * gdbarch.sh (deprecated_tm_print_insn): Delete.
123 (deprecated_tm_print_insn_info): Delete.
124 (TARGET_PRINT_INSN): Do not provide a default.
125 * gdbarch.h, gdbarch.c: Re-generate.
126
242e8be5
AC
1272003-09-03 Andrew Cagney <cagney@redhat.com>
128
129 * disasm.c (fprintf_disasm): New function.
130 (gdb_disassemble_info): Call "init_disassemble_info", instead of
131 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
132 reverts 2003-08-14 change.
133 (_initialize_disasm): Call "init_disassemble_info", instead of
134 INIT_DISASSEMBLE_INFO_NO_ARCH.
135
3ffc3dda
MS
1362003-09-03 Michael Snyder <msnyder@redhat.com>
137
138 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
139
52d16ba8
AC
1402003-09-03 Andrew Cagney <cagney@redhat.com>
141
142 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
143 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
144 * symfile.c (syms_from_objfile): Update.
145 (reread_symbols): `Update
146 * exec.c (exec_file_attach): Update.
147 (exec_file_attach): Update.
148 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
149 2003-08-29 change.
150 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
151
eb5492fa
DJ
1522003-09-03 Daniel Jacobowitz <drow@mvista.com>
153
154 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
155 trad-frame.h.
156 (arm_get_cache): Delete macro.
157 (struct arm_prologue_cache): Update comments. Make saved_regs into
158 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
159 to prev_sp.
160 (thumb_scan_prologue): Update for cache changes. Don't call
161 DEPRECATED_PC_IN_CALL_DUMMY.
162 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
163 argument and use it in desperation search for our prologue. Do not
164 search past the specified PC.
165 (arm_make_prologue_cache): Simplify.
166
167 (arm_prologue_this_id, arm_prologue_prev_register)
168 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
169 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
170 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
171 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
172 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
173
174 (arm_frame_chain_valid, arm_find_callers_reg)
175 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
176 (arm_pop_frame): Delete obsolete methods.
177 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
178
179 (arm_gdbarch_init): Update for new frame methods. Register prologue
180 and sigtramp unwinders. Set the default frame base method.
181
182 * Makefile.in (arm-tdep.o): Update dependencies.
183 * varobj.c (find_frame_addr_in_frame_chain): Call
184 get_frame_base_address.
185 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
186
24de872b
DJ
1872003-09-03 Daniel Jacobowitz <drow@mvista.com>
188
189 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
190 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
191 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
192 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
193 Take NEXT_FRAME and CACHE arguments. Call
194 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
195 Set unwound_pc in CACHE instead of modifying the frame argument.
196 Don't bother checking the frame type when looking for sigtramp
197 frames.
198 (arm_make_prologue_cache, arm_frame_chain)
199 (arm_init_extra_frame_info): New functions.
200
9b8d791a
DJ
2012003-09-03 Daniel Jacobowitz <drow@mvista.com>
202
203 * arm-tdep.c (arm_get_cache): Define.
204 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
205 unwound_sp, unwound_pc, and saved_regs.
206 (thumb_scan_prologue): Take a cache instead of the frame.
207 (arm_scan_prologue): Likewise.
208 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
209 instead of a temporary frame.
210 (arm_init_extra_frame_info): Allocate and use a cache.
211 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
212
7ee3275f
AC
2132003-09-03 Andrew Cagney <cagney@redhat.com>
214
215 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
216 * config/mips/wince.mt (TM_CLIBS): Ditto.
217 * config/sh/wince.mt (TM_CLIBS): Ditto.
218 * config/pa/hppa64.mt (TM_CLIBS): Delete.
219 * config/sparc/sp64.mt (CC): Delete.
220
57b29be7
AC
2212003-09-03 Andrew Cagney <cagney@redhat.com>
222
223 * defs.h: Do not include "arch-utils.h".
224 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
225 GDB_MULTI_ARCH_PURE.
226 * configure.in (GDB_MULTI_ARCH): Do not define.
227 * configure, config.in: Regenerate.
228 * configure.tgt: Do not set variable "gdb_multi_arch".
229 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
230 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
231 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
232 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
233 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
234 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
235 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
236 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
237 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
238 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
239 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
240 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
241 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
242 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
243 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
244 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
245 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
246 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
247
12e035e2
MC
2482003-08-30 Michael Chastain <mec@shout.net>
249
250 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
251 * config/m68k/nm-hp300hpux.h: Delete.
252 * config/m68k/tm-hp300hpux.h: Delete.
253 * config/m68k/xm-hp300hpux.h: Delete.
254 * config/m68k/xm-hp300bsd.h: Delete.
255 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
256 tm-hp300hpux.h, xm-hp300hpux.h.
257 * somsolib.c: Remove comment about hp300 shared libraries.
258
bda34dc2
MK
2592003-08-31 Mark Kettenis <kettenis@gnu.org>
260
5bca7895
MK
261 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
262 Only define PTRACE_GET_THREAD_AREA is not already defined.
263 Various style fixes in code and comments and some additional
264 spelling fixes in comments. Move after functions dealing with
265 debug registers.
266 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
267 Fix coding-style.
268
bda34dc2
MK
269 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
270 frame_unwind_register_unsigned instead of
271 frame_unwind_unsigned_register.
272
c890192f
MK
2732003-08-30 Mark Kettenis <kettenis@gnu.org>
274
275 * configure.in: Search for gethostbyname in libnsl.
276 * configure: Regenerated.
277
60fac5b8
MK
2782003-08-29 Mark Kettenis <kettenis@gnu.org>
279
e294916c
MK
280 * configure.in: Remove redundant AC_MSG_RESULT in check for
281 uintptr_t in stdint.h.
282 * configure: Regenerated.
283
c40d267a
MK
284 * amd64-nat.h (struct regcache): Add opaque declaration.
285
60fac5b8
MK
286 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
287 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
288 Change "register array" to "register cache" in comments.
289 (x86_64_linux_gregset64_reg_offset): New variable.
290 (GETREGS_SUPPLIES): Remove macro.
291 (supply_gregset): Call amd64_supply_native_gregset instead of
292 x86_64_linux_supply_gregset.
293 (fill_gregset): Rename `regno' to `regnum'. Call
294 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
295 (store_regs): Rename `regno' to `regnum'.
296 (store_fpregs): Rename `regno' to `regnum'.
297 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
298 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
299 Reorganize function a bit.
300 (store_inferior_registers): Rename `regno' to `regnum'. Use
301 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
302 Reorganize function a bit.
303 (_initialize_x86_64_linux_nat): New function.
304 * config/i386/x86-64linux.mh.
305
546143b6
AC
3062003-08-29 Andrew Cagney <cagney@redhat.com>
307
308 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
309 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
310 (target_remove_watchpoint): Delete macro.
311 (target_insert_watchpoint): Delete macro.
312 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
313 (remote_mips_stopped_by_watchpoint): Delete declaration.
314 (remote_mips_remove_watchpoint): Delete declaration.
315 (remote_mips_set_watchpoint): Delete declaration.
316 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
317 * remote-mips.c (_initialize_remote_mips): Set
318 "to_insert_watchpoint", "to_stopped_by_watchpoint",
319 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
320 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
321 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
322 (mips_stopped_by_watchpoint): Rename
323 remote_mips_stopped_by_watchpoint.
324 (mips_can_hardware_watchpoint): Rename
325 remote_mips_can_use_hardware_watchpoint, update function
326 signature.
327
7bace51b
MK
3282003-08-29 Mark Kettenis <kettenis@gnu.org>
329
b0f5c6f2
MK
330 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
331 USER_DS. We haven't given them a register number yet.
332
2a6d284d
MK
333 * amd64-nat.h: New file.
334 * amd64-nat.c: New file.
335 * amd64fbsd-nat.c: Include "amd64-nat.h".
336 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
337 (amd64fbsd32_r_reg_offset): New variable.
338 (supply_gregset): Simply call amd64_supply_native_gregset.
339 (fill_gregset): Rename `regno' to `regnum'. Simply call
340 amd64_collect_native_gregset.
341 (fill_fpregset): Rename `regno' to `regnum'.
342 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
343 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
344 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
345 `fpregset_t'. Call amd64_supply_native_gregset instead of
346 supply_gregset. Call x86_64_supply_fxsave instead of
347 supply_fpregset.
348 (store_inferior_registers): Rename `regno' to `regnum'. Replace
349 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
350 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
351 `fpregset_t'. Call amd64_collect_native_gregset instead of
352 fill_gregset. Call x86_64_collect_fxsave instead of
353 fill_fpregset.
354 (_initialize_am64fbsd_nat): Initialize
355 amd64_native_gregset32_reg_offset and
356 amd64_native_gregset64_reg_offset.
357 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
358
a16d75cc
MK
359 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
360 null pointer. Fix typo in comment.
361
7bace51b
MK
362 * regcache.c (supply_register): Reimplement to call
363 regcache_raw_supply.
364 (regcache_collect): Reimplement by calling regcache_raw_collect.
365
9a661b68
MK
3662003-08-28 Mark Kettenis <kettenis@gnu.org>
367
368 * regcache.c (register_buffer): Consitify first argument.
369 (regcache_raw_supply, regcache_raw_collect): New
370 functions.
371
e94cc8fa
DJ
3722003-08-28 Daniel Jacobowitz <drow@mvista.com>
373
374 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
375 by Nathan J. Williams.
376
c64bd0ce
DJ
3772003-08-28 Daniel Jacobowitz <drow@mvista.com>
378
379 * lin-lwp.c (wait_lwp): New function, copied from
380 stop_wait_callback. Clean up.
381 (stop_wait_callback): Use wait_lwp.
382
e5ab0dce
AC
3832003-08-28 Andrew Cagney <cagney@redhat.com>
384
385 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
386 flavour and disassembler options.
387 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
388 (mips_gdbarch_init): Set "print_insn". Delete initialization of
389 deprecated_tm_print_insn_info.
390
a788de9b
AC
3912003-08-27 Andrew Cagney <cagney@redhat.com>
392
393 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
394 Use target_read_memory.
395 (s390_get_frame_info): Update. Do not reference
396 deprecated_tm_print_insn_info.
397 (s390_check_function_end, s390_is_sigreturn): Ditto.
398
36482093
AC
3992003-08-27 Andrew Cagney <cagney@redhat.com>
400
401 * Makefile.in (cris-tdep.o): Update dependencies.
402 * cris-tdep.c: Include "gdb_assert.h".
403 (cris_gdbarch_init): Set print_insn.
404 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
405 (cris_delayed_get_disassembler): Simplify, directly call the
406 disassembler returned by cris_get_disassembler.
407 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
408 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
409 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
410 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
411 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
412 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
413 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
414 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
415 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
416 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
417 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
418 (gdb_print_insn_sparc): Delete function.
419 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
420 deprecated_tm_print_insn_info.
421 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
422 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
423 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
424 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
425 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
426 * s390-tdep.c (gdb_print_insn_s390): Delete function.
427 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
428 (s390_gdbarch_init): Set print_insn.
429
0285512f
AC
4302003-08-27 Andrew Cagney <cagney@redhat.com>
431
432 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
433 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
434 * infcall.c (call_function_by_hand): Convert the entry point
435 address into a code address.
436
cdcd5552
AC
4372003-08-27 Andrew Cagney <cagney@redhat.com>
438
439 * dsrec.c: Include "gdb_string.h".
440 * Makefile.in (dsrec.o): Update dependencies.
441
e85cddad
MC
4422003-08-27 Michael Chastain <mec@shout.net>
443
444 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
445
8bbfbb23
AC
4462003-08-27 Andrew Cagney <cagney@redhat.com>
447
448 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
449 (alpha_osf1_init_abi): Do not set call_dummy_address.
450
ba058b66
DC
4512003-08-27 David Carlton <carlton@kealia.com>
452
453 From Randolph Chung <tausq@debian.org>:
454 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
455 compiles with -Wformat-nonliteral -Werror.
456
87f84c9d
JB
4572003-08-26 Jim Blandy <jimb@redhat.com>
458
459 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
460 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
461 bfd_lookup_symbol, since we only want symbols in code sections.
462 (look_for_base): Pass zero as the SECT_FLAGS argument to
463 bfd_lookup_symbol, since we're not concerned about which section
464 the symbol is in.
465
102d615a
JJ
4662003-08-26 Jeff Johnston <jjohnstn@redhat.com>
467
468 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
469 we are frameless or the return address register is already known.
470
cc7ad3ea
AC
4712003-08-26 Andrew Cagney <cagney@redhat.com>
472
473 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
474 in size. Add comments.
475
af8b88dd
JJ
4762003-08-26 Jeff Johnston <jjohnstn@redhat.com>
477
478 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
479 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
480
e0a4f5a1
JM
4812003-08-26 Jason Merrill <jason@redhat.com>
482
483 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
484 case out of #ifdef MIPS block.
485
4ae9ee8e
DJ
4862003-08-25 Daniel Jacobowitz <drow@mvista.com>
487
488 PR java/1322
489 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
490 available before calling SECT_OFF_TEXT.
3c164570 491 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 492
004d836a
JJ
4932003-08-25 Jeff Johnston <jjohnstn@redhat.com>
494
495 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
496 bof, and nat0-nat127 as pseudo-registers.
497 (ia64_frame_cache): New struct used to cache frame info.
498 (ia64_register_reggroup_p): New routine used to override default
499 register grouping so registers without names are still saved and
500 restored.
501 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
502 pseudo values.
503 (ia64_pseudo_register_read): New routine to read pseudo-registers.
504 (ia64_pseudo_register_write): New routine to write pseudo-registers.
505 (ia64_alloc_frame_cache): New routine to create a new
506 ia64_frame_cache.
507 (examine_prologue): Change prototype to add next_frame pointer.
508 Assume frameless until otherwise proven. Verify that the cfm for
509 current frame matches the cfm that should occur for the prologues
510 alloc insn and if equal, mark as not frameless. At end of routine,
511 if not frameless, calculate registers for the previous frame and store
512 in the cache, if a cache is provided.
513 (ia64_skip_prologue): Use new prototype when calling examine_prologue
514 and pass 0 for next_frame.
515 (ia64_store_return_value): Change to use convert_typed_floating()
516 instead of calling ia64_convert_to_raw().
517 (ia64_extract_return_value): Change to use convert_typed_floating()
518 instead of calling ia64_convert_to_virtual().
519 (ia64_frame_cache): New routine to support new frame model.
520 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
521 (ia64_frame_sniffer): Ditto.
522 (ia64_sigtramp_frame_init_saved_regs): Ditto.
523 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
524 (ia64_sigtramp_frame_prev_register): Ditto.
525 (ia64_sigtramp_frame_sniffer): Ditto.
526 (ia64_frame_base_address): Ditto.
527 (ia64_extract_struct_value_address): Change to issue error message.
528 (ia64_frame_align): New routine to align sp.
529 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
530 (ia64_push_arguments): Removed. Logic moved to
531 ia64_push_dummy_call().
532 (ia64_push_return_address): Ditto.
533 (ia64_unwind_dummy_id): New function.
534 (ia64_unwind_pc): Ditto.
535 (ia64_convert_register_p): Ditto.
536 (ia64_register_to_value): Ditto.
537 (ia64_value_to_register): Ditto.
538 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
539 (ia64_register_byte, ia64_register_raw_size): Ditto.
540 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
541 (ia64_saved_pc_after_call): Ditto.
542 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
543 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
544 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
545 (ia64_register_convert_to_raw): Ditto.
546 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
547 (ia64_init_extra_frame_info): Ditto.
548 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
549 (ia64_gdbarch_init): Remove registering of deprecated functions that
550 are no longer used. Add registration of new gdbarch functions.
551 Remove registering deprecated_write_sp. Replace
552 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
553 Delete set_gdbarch_deprecated_register_convertible(),
554 set_gdbarch_deprecated_register_convert_to_virtual(), and
555 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
556 set_gdbarch_deprecated_register_size(),
557 set_gdbarch_deprecated_register_bytes(),
558 set_gdbarch_pcregnum(),
559 set_gdbarch_deprecated_register_byte(),
560 set_gdbarch_deprecated_register_raw_size(),
561 set_gdbarch_deprecated_max_register_raw_size(),
562 set_gdbarch_deprecated_register_virtual_size(),
563 and set_gdbarch_deprecated_max_register_virtual_size() calls.
564 Replace set_gdbarch_deprecated_extract_return_value() with
565 set_gdbarch_extract_return_value(). Remove calls to:
566 set_gdbarch_deprecated_saved_pc_after_call();
567 set_gdbarch_deprecated_frame_chain(),
568 set_gdbarch_deprecated_frame_saved_pc(),
569 set_gdbarch_deprecated_frame_init_saved_regs(),
570 set_gdbarch_deprecated_get_saved_register(),
571 set_gdbarch_deprecated_call_dummy_words(),
572 set_gdbarch_deprecated_sizeof_call_dummy_words(),
573 set_gdbarch_deprecated_init_extra_frame_info(),
574 set_gdbarch_deprecated_frame_args_address(),
575 set_gdbarch_deprecated_frame_locals_address(),
576 and set_gdbarch_deprecated_dummy_write_sp().
577 Add set_gdbarch_convert_register_p(),
578 set_gdbarch_register_to_value(),
579 set_gdbarch_value_to_register(),
580 set_gdbarch_push_dummy_call(),
581 set_gdbarch_frame_align(),
582 set_gdbarch_unwind_dummy_id(),
583 set_gdbarch_unwind_pc(),
584 frame_unwind_append_sniffer(),
585 frame_unwind_append_sniffer(),
586 and frame_base_set_default().
587
aede7613
CD
5882003-08-25 Chris Demetriou <cgd@broadcom.com>
589
590 * configure.tgt: Document need for special "mipsisa64" handling.
591 (mipsisa64*-*-linux64): Handle as target linux64.
592 (mipsisa64*-*-*): Handle as target embed64.
593
43c3a82e
MC
5942003-08-18 Michael Chastain <mec@shout.net>
595
596 * PROBLEMS: Document pr gdb/1322, the Java anonymous
597 objfile bug.
598
6564f77d
MK
5992003-08-24 Mark Kettenis <kettenis@gnu.org>
600
2de139ba
MK
601 * i387-tdep.h: Update copyright date.
602 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
603
6564f77d
MK
604 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
605 CFLAGS games to reflect reality.
606
42cf1509
AC
6072003-08-24 Andrew Cagney <cagney@redhat.com>
608
609 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
610 GDB_MULTI_ARCH is always non-zero.
611 * osabi.c (_initialize_gdb_osabi): Ditto.
612 (gdbarch_init_osabi): Ditto.
613 * sparc-tdep.c: Ditto for #if code.
614
0485f6ad
MK
6152003-08-23 Mark Kettenis <kettenis@gnu.org>
616
617 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
618 Update comments.
619 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
620 comments.
621 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
622 x86_64_supply_fxsave.
623 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
624 x86_64_supply_fxsave.
625 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
626 x86_64_supply_fxsave.
627
c7716133
AJ
6282003-08-23 Andreas Jaeger <aj@suse.de>
629
630 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
631 i387_supply_fxsave.
632
ed504bdf
MK
6332003-08-23 Mark Kettenis <kettenis@gnu.org>
634
635 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
636 i387_supply_register.
637 (go32_fetch_registers): Adjust call to i387_supply_fsave.
638 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
639 i387_supply_fsave.
640 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
641 i387_supply_fxsave.
642 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
643 i387_supply_fsave.
644 * i386bsd-nat.c (supply_fpregset): Adjust call to
645 i387_supply_fsave.
646 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
647 call to i387_supply_fxsave. Call i387_supply_fsave instead of
648 supply_fpregset.
649 (store_inferior_registers): Remove extraneous whitespace. Call
650 i387_fill_fsave instead of fill_fpregset.
651 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
652 (supply_fpregset): Likewise.
653 * i386v4-nat.c (supply_fpregset): Adjust call to
654 i387_supply_fsave.
655 * i386-interix-nat.c (supply_fpregset): Adjust call to
656 i387_supply_fsave.
657 * i386-linux-nat.c (supply_fpregset): Adjust call to
658 i387_supply_fsave.
659 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
660 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
661 i387supply_fsave and i387_supply_fxsave.
662 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
663 Incorporate code from `i387_supply_register.
664 (i387_supply_register): Remove.
665 (i387_supply_fxsave): Add `regnum' argument.
666 Update comments.
667 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
668 prototype.
669 (i387_supply_register): remove prototype.
670 Update comments.
671
4be5d520
MC
6722003-08-22 Michael Chastain <mec@shout.net>
673
674 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
675 Add lines for files in gdb/testsuite/gdb.cp/* that are
676 still not 8.3 unique.
677
7ed85d26
DJ
6782003-08-22 Daniel Jacobowitz <drow@mvista.com>
679
680 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
681 TYPE_VPTR_FIELDNO is valid.
682
eb0d3137
MK
6832003-08-19 Mark Kettenis <kettenis@gnu.org>
684
685 * utils.c (set_width_command): Remove prototypes.
686 (set_screen_size): New prototype.
687 (init_page_info): Simplify by fetching the screen size from
688 Readline. Call set_screen_size.
689 (set_screen_size): New function.
690 (set_width): Add missing whitespace in comment.
691 (set_width_command): Call set_screen_size.
692 (set_height_command): New function.
693 (initialize_utils): Fix formatting. Make "set height" command
694 call set_height_command. Remove redundant code that turns off
695 pagination if output isn't a terminal. Remove redundant call to
696 set_width_command.
697
7e6d0ac8
MK
6982003-08-22 Mark Kettenis <kettenis@gnu.org>
699
3567a8ea
MK
700 * sparc64-tdep.h (sparc64_regnum): Fix comment.
701 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
702 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
703 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
704 `case' keyword.
705 (sparc64_register_info): Give the reister with number
706 SPARC64_STATE_REGNUM a name.
707 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
708 %asi and %ccr.
709 (sparc64_push_dummy_call): Take BIAS into account when checking
710 stcak alignment.
711 (sparc_software_single_step): Remove assertions that check whether
712 NPC and NNPC were zero.
713 (sparc_supply_rwindow): Make public. Merge functionality with
714 sparc64_supply_rwindow.
715 (sparc_fill_rwindow): Make public. Merge functionality with
716 sparc64_fill_rwindow.
717 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
718 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
719 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
720 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
721 sparc_supply_rwindow instead of sparc64_supply_rwindow.
722
7e6d0ac8
MK
723 * reggroups.c: Add whitespace after declarations of local
724 variables in functions.
725
72e5f484
MC
7262003-08-21 Michael Chastain <mec@shout.net>
727
728 * gdbtypes.h: Change array bound type from an int to enum.
729
435ac228
AC
7302003-08-21 Andrew Cagney <cagney@redhat.com>
731
732 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
733 * config/sparc/tm-sparc.h: Ditto.
734 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
735 unconditionally.
736 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
737
0d0e1a63
MK
7382003-07-13 Mark Kettenis <kettenis@gnu.org>
739
740 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
741 (register_objfile_data, set_objfile_data, objfile_data): New
742 prototypes.
743 * objfiles.c (objfile_alloc_data, objfile_free_data): New
744 prototypes.
745 (allocate_objfile): Call objfile_alloc_data.
746 (free_objfile): Call objfile_free_data.
747 (struct objfile_data): New.
748 (struct objfile_data_registration): New.
749 (struct objfile_data_registry): New.
750 (objfile_data_registry): New variable.
751 (register_objfile_data): New function.
752 (objfile_alloc_data, objfile_free_data): New functions.
753 (set_objfile_data, objfile_data): New functions.
754 * dwarf2-frame.c (dwarf2_frame_data): New variable.
755 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
756 (_initialize_dwarf2_frame): New function and prototype.
757
d90cf509
AC
7582003-08-21 Andrew Cagney <cagney@redhat.com>
759
760 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
761 a specific architecture.
762 * arch-utils.h (set_architecture_from_arch_mach): Delete
763 declaration.
764 (target_architecture_hook): Delete declaration.
765 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
766 (default_float_format): Assume GDB_MULTI_ARCH.
767 (default_double_format): Assume GDB_MULTI_ARCH.
768 (set_endian_from_file): Delete function.
769 (arch_ok): Delete function.
770 (set_arch): Delete function.
771 (set_architecture_from_arch_mach): Delete function.
772 (set_architecture_from_file): Delete function.
773 (set_architecture): Assume GDB_MULTI_ARCH.
774 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
775
8b39fe56
MK
7762003-08-21 Mark Kettenis <kettenis@gnu.org>
777
778 Rewrite FreeBSD/sparc64 native configuration.
779 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
780 * sparc64fbsd-nat.c: New file.
781 * sparc64fbsd-tdep.c: New file.
782 * sparc64-tdep.c sparc64-tdep.h: New files.
783 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
784 sparc64fbsd-tdep.o): New dependencies.
785 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
786 and sparc64fbsd-tdep.c.
787 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
788 * config/sparc/fbsd.mh: Remove copyright notice.
789 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
790 sparcbsd-nat.o.
791 * config/sparc/fbsd.mt: Remove copyright notice.
792 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
793 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
794 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
795 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
796 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
797 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
798 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
799 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
800 "sparc/tm-sp64.h".
801 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
802 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
803
a7f19c79
MC
8042003-08-21 Michael Chastain <mec@shout.net>
805
806 * symtab.h: Add doco on the space critical structures and
807 some measurements of space usage.
808
da08ea5b
MS
8092003-08-21 Michael Snyder <msnyder@redhat.com>
810
811 * tracepoint.c (trace_dump_command): Trace break address
812 is subject to DECR_PC_AFTER_BREAK.
813 (set_traceframe_context): Make "trace_line" an int.
814 Fixes suggested by Mark Newman <mark.newman@lmco.com>
815
6df2bf50
MS
8162003-08-20 Michael Snyder <msnyder@redhat.com>
817
818 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
819 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
820 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
821 argument passing.
822 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
823 functions, replace sh_push_dummy_call.
824 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
825
0955bbf0
MC
8262003-08-20 Michael Chastain <mec@shout.net>
827
828 * gdbtypes.h (struct main_type): Rearrange to save space.
829
260a4188
MS
8302003-08-20 Michael Snyder <msnyder@redhat.com>
831
832 * trad-frame.c: Comment typo fix.
833
8baa6f92
KB
8342003-08-20 Michael Snyder <msnyder@redhat.com>
835 Kevin Buettner <kevinb@redhat.com>
836
837 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
838 (frv_frame_init_saved_regs): Add declaration.
839 (frame_extra_info): Add new field ``saved_regs''.
840 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
841 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
842 Update frame related code.
843 (frv_extract_struct_value_address): Adjust formatting.
844 * Makefile.in (frv-tdep.o): Update dependencies.
845 * config/frv/tm-frv.h (target_insert_watchpoint)
846 (target_remove_watchpoint, target_insert_hw_breakpoint)
847 (target_remove_hw_breakpoint): Delete these macros.
848 (remote_insert_watchpoint, remote_remove_watchpoint)
849 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
850 these declarations.
851
87193939
MC
8522003-08-20 Michael Chastain <mec@shout.net>
853
854 * defs.h (ENUM_BITFIELD): New macro.
855 * symtab.h (ENUM_BITFIELD): Use it.
856 (BYTE_BITFIELD): Remove old macro, which was already disabled.
857
062103ba
SA
8582003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
859
860 * MAINTAINERS (write after approval): Add myself.
861
8b148df9
AC
8622003-08-18 Andrew Cagney <cagney@redhat.com>
863
864 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
865 * gdbarch.h, gdbarch.c: Re-generate.
866 * infcall.c (call_function_by_hand): Adjust the SP by
867 frame_red_zone_size before allocating any stack space.
868 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
869 * x86-64-tdep.c (x86_64_frame_align): New function.
870 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
871
872 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
873 Remove code adjusting SP so that it skips over the Red Zone.
874
954a4db8
MK
8752003-08-18 Mark Kettenis <kettenis@gnu.org>
876
877 * NEWS (New native configurations): Mention FreeBSD/amd64.
878
1a241548
AC
8792003-08-18 Andrew Cagney <cagney@redhat.com>
880
881 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
882 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
883 "m68k_frame_p".
884 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
885
f82b2acd
MK
8862003-08-18 Mark Kettenis <kettenis@gnu.org>
887
888 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
889
4056d258
ML
8902003-08-18 Michal Ludvig <mludvig@suse.cz>
891
892 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
893 Define.
894 * i386-linux-nat.c: Include "linux-nat.h".
895 (child_post_startup_inferior): New function.
896
99ab4326
MK
8972003-08-18 Mark Kettenis <kettenis@gnu.org>
898
899 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
900 at the start of a frameless function. This probably fixes PR
901 backtrace/1338.
902
c8d5f0d6
MC
9032003-08-17 Michael Chastain <mec@shout.net>
904
905 * symfile.c (find_sym_fns): Remove special case for apollo target.
906
9016a515
DJ
9072003-08-17 Daniel Jacobowitz <drow@mvista.com>
908
909 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
910 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
911 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
912 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
913 (linux_supports_tracevforkdone): New function.
914 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
915 TRACEVFORKDONE.
916 (child_follow_fork): Handle vfork.
917 (linux_handle_extended_wait): Likewise. Also handle exec.
918 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
919 * NEWS: Mention fork tracing.
920
c538c11c
DJ
9212003-08-17 Daniel Jacobowitz <drow@mvista.com>
922
923 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
924
4de4c07c
DJ
9252003-08-17 Daniel Jacobowitz <drow@mvista.com>
926
927 * Makefile.in (i386-linux-nat.o): Update dependencies.
928 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
929 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
930 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
931 * i386-linux-nat.c: Include "linux-nat.h".
932 (child_post_startup_inferior): New function.
933 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
934 * infptrace.c (kill_inferior): Wrap in #ifdef.
935 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
936 attaching to each LWP.
937 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
938 (init_lin_lwp_ops): Fill in some more operations.
939 * linux-nat.h (linux_enable_event_reporting)
940 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
941 prototypes.
942 * linux-nat.c (linux_enable_event_reporting): New function.
943 (child_post_attach, linux_child_post_startup_inferior)
944 (child_post_startup_inferior, child_follow_fork)
945 (linux_handle_extended_wait, kill_inferior): New functions.
946
7996bcec
AC
9472003-08-16 Andrew Cagney <cagney@redhat.com>
948
949 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
950 * gdbarch.h, gdbarch.c: Re-generate.
951
3d48a7a0
MK
9522003-08-16 Mark Kettenis <kettenis@gnu.org>
953
954 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
955
7989c619
AC
9562003-08-16 Andrew Cagney <cagney@redhat.com>
957
958 * NEWS: Mention that "set prompt-escape-char" was deleted.
959 * top.c (get_prompt_1): Delete function.
960 (gdb_prompt_escape):
961 (init_main): Do not clear "gdb_prompt_escape". Delete "set
962 prompt-escape-char" command.
963 (MAX_PROMPT_SIZE): Delete macro.
964 (get_prompt): Simplify, do not call get_prompt_1.
965
07978cd8
AC
9662003-08-16 Andrew Cagney <cagney@redhat.com>
967
968 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
969 -Werror. -Wformat-nonliteral problems.
970
3ff7cf9e
JB
9712003-08-15 J. Brobecker <brobecker@gnat.com>
972
973 Further multiarching work mostly for hppa64-*-hpux11:
974 * hppa-tdep.h: New file.
975 * hppa-tdep.c: #include hppa-tdep.c.
976 (hppa32_num_regs): Renamed from hppa_num_regs.
977 (hppa64_num_regs): New constant.
978 (hppa64_call_dummy_breakpoint_offset): New constant.
979 (hppa32_call_dummy_length): New constant.
980 (hppa64_call_dummy_length): New constant.
981 (hppa32_stack_align): Make name 32bit explicit.
982 (hppa32_register_virtual_type): Likewise.
983 (hppa32_extract_return_value): Likewise.
984 (hppa32_use_struct_convention): Likewise.
985 (hppa32_store_return_value): Likewise.
986 (hppa64_register_virtual_type): New function.
987 (hppa64_extract_return_value): New function.
988 (hppa64_use_struct_convention): New function.
989 (hppa64_store_return_value): New function.
990 (hppa_frame_locals_address): Remove declaration, function does
991 not exist anymore.
992 (hppa_register_byte): Add support for PA64 ABI.
993 (hppa_gdbarch_init): Add support for PA64 ABI.
994 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
995 Make name 32bit explicit.
996 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
997 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
998 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
999 (hppa64_hpux_frame_base_before_sigtramp): New function.
1000 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1001 * config/pa/tm-hppa64.h: Remove macros that are no longer
1002 necessary now that the gdbarch vector is properly setup.
1003 Transform some macros into function calls. Some minor cleanup.
1004 * config/pa/tm-hppah.h: Update function calls in macros
1005 following the function renaming in hppa-hpux-tdep.c.
1006 * Makefile.in (hppa_tdep_h): New variable.
1007 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1008
5d05ca6d
MS
10092003-08-14 Michael Snyder <msnyder@redhat.com>
1010
1011 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1012
37ba2569
JB
10132003-08-13 J. Brobecker <brobecker@gnat.com>
1014
1015 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1016 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1017 routine.
1018
aed7f26a
MS
10192003-08-13 Michael Snyder <msnyder@redhat.com>
1020
1021 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1022 (frv_saved_pc_after_call): Use deprecated ftype.
1023 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1024 (frv_remote_translate_xfer_address): Remove.
1025 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1026
752d4ac1
JB
10272003-08-13 J. Brobecker <brobecker@gnat.com>
1028
1029 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1030 initialization after the common gdbarch initialization, not before.
1031
1426ac1d
JB
10322003-08-13 J. Brobecker <brobecker@gnat.com>
1033
1034 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1035 (ADDR_BITS_REMOVE): Remove, redundant.
1036
b6fbdd1d
JB
10372003-08-13 J. Brobecker <brobecker@gnat.com>
1038
1039 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1040 gdbarch method to clear the 2 low bits of text addresses.
1041
44160db3
AC
10422003-08-12 Andrew Cagney <cagney@redhat.com>
1043
1044 * Makefile.in (dsrec.o): Update dependencies.
1045 * dsrec.c: Include "gdb_assert.h".
1046 (make_srec): Use snprintf instead of sprintf, use a literal format
1047 string.
1048
bcf7d3ca
AC
10492003-08-12 Andrew Cagney <cagney@redhat.com>
1050
1051 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1052 FRAME_OBSTACK_ZALLOC.
1053
49ed40de
KB
10542003-08-12 Kevin Buettner <kevinb@redhat.com>
1055
1056 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1057 SSE registers.
1058
b246147c
MK
10592003-08-10 Mark Kettenis <kettenis@gnu.org>
1060
1061 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1062 amd64fbsd_sc_reg_offset): Add extern declarations.
1063 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1064 declarations.
1065
d95fdc0d
BE
10662003-08-11 Ben Elliston <bje@wasabisystems.com>
1067
1068 * MAINTAINERS (write after approval): Update my mail address.
1069
cf6a0e73
AC
10702003-08-10 Andrew Cagney <cagney@redhat.com>
1071
1072 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1073
f837910f
MK
10742003-08-10 Mark Kettenis <kettenis@gnu.org>
1075
e2dbbd2d
MK
1076 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1077 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1078 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1079 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1080 i386bsd_sc_reg_offset): Add extern declarations.
1081 * i386obsd-nat.c: Include "i386-tdep.h"
1082 (_initialize_i386obsd_nat): Remove extern declarations.
1083 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1084 declarations.
1085 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1086 declarations.
1087
f837910f
MK
1088 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1089 instead of frame_read_register.
1090 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1091 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1092 SP_REGNUM.
1093 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1094 instead of frame_unwind_unsigned_register. Use
1095 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1096 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1097 instead of read_register. Use builtin_type_void_data_ptr instead
1098 of builtin_type_void_func_ptr when extracting the address of the
1099 jmp_buf.
1100 (i386_extract_return_value, i386_store_return_value,
1101 i386_pseudo_register_read, i386_pseudo_register_write): Use
1102 register_size instead REGISTER_RAW_SIZE.
1103
edcf254d
AC
11042003-08-10 Andrew Cagney <cagney@redhat.com>
1105
1106 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1107 sprintf. Make "name" constant.
1108
26604a34
MK
11092003-08-10 Mark Kettenis <kettenis@gnu.org>
1110
192285c6
MK
1111 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1112 instead of frame_read_register.
f837910f
MK
1113 (i387_print_float_info): Use get_frame_register and
1114 get_frame_register_unsigned instead of frame_register_read.
192285c6 1115
f0925262
MK
1116 * i386fbsd-nat.c: Include "i386-tdep.h".
1117 (child_resume): Make `eflags' an ULONGEST. Use
1118 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1119 instead of register_read and register_write.
1120
a144416f
MK
1121 * i386bsd-nat.c (fetch_inferior_registers,
1122 store_inferior_registers): Don't use && at the end of a line.
1123 (_initialize_i386bsd_nat): Fix typo.
1124
fec74868
MK
1125 * frame.c (_initialize_frame): Add missing backslash.
1126
87232496
MK
1127 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1128 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1129 and supply_register instead of manipulating the register buffer
1130 directly.
1131
c9b9de0b
MK
1132 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1133 * config/i386/nm-i386sol2.h
1134 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1135
26604a34
MK
1136 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1137 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1138 instructions that GCC likes to mingle into the prologue. Fixes
1139 gdb/1253 and gdb/1255.
1140
25d29d70
AC
11412003-08-09 Andrew Cagney <cagney@redhat.com>
1142
1143 Fix GDB PR cli/926.
1144 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1145 * command.h (add_setshow_uinteger_cmd): Declare.
1146 * frame.c (set_backtrace_cmd): New function.
1147 (show_backtrace_cmd): New function.
1148 * frame.c (_initialize_frame): Replace "set/show
1149 backtrace-below-main" with "set/show backtrace past-main". Add
1150 command "set/show backtrace limit".
1151 (backtrace_past_main): Rename "backtrace_below_main".
1152 (backtrace_limit): New variable.
1153 (get_prev_frame): Update. Check the backtrace_limit.
1154
9ebf4acf
AC
11552003-08-09 Andrew Cagney <cagney@redhat.com>
1156
1157 * defs.h (xstrprintf): Declare.
1158 * utils.c (xstrprintf): New function.
1159 * breakpoint.c (insert_breakpoints): Replace sprintf and
1160 non-literal format strings, with xstrprintf and cleanups.
1161 (delete_breakpoint,breakpoint_re_set): Ditto.
1162 (commands_command, insert_breakpoints): Ditto.
1163 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1164 (break_at_finish_command_1): Ditto.
1165
3771659b
AC
11662003-08-09 Andrew Cagney <cagney@redhat.com>
1167
1168 * MAINTAINERS (language support): List Adam Fedor as Objective C
1169 maintainer.
1170
b4263afa
JB
11712003-08-08 J. Brobecker <brobecker@gnat.com>
1172
1173 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1174 are now multiarched.
1175
d84defb1
JB
11762003-08-08 J. Brobecker <brobecker@gnat.com>
1177
1178 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1179 longer necessary now that hppa64 is partially multiarch'ed.
1180
f786f615
AC
11812003-08-08 Andrew Cagney <cagney@redhat.com>
1182
1183 * interps.c (interp_set): Check for a NULL "old_interp".
1184
c938e9b0
L
11852003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1186
1187 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1188 (install-only): Support DESTDIR.
1189 (uninstall): Likewise.
1190 (install-gdbtk): Likewise.
1191
9a146a11
EZ
11922003-08-08 Elena Zannoni <ezannoni@redhat.com>
1193
1194 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1195 contains something meaningful at all times.
1196
1197Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 1198
62599e99 1199 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 1200
56296155
BC
1201Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1202
62599e99 1203 * MAINTAINERS (write after approval): Added self.
56296155 1204
9710e734
AC
12052003-08-07 Andrew Cagney <cagney@redhat.com>
1206
1207 * inferior.h (AT_SYMBOL): Define.
1208 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1209 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1210 * mips-tdep.c (mips_call_dummy_address): Delete function.
1211 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1212 set call_dummy_address.
1213
98b3ab73
AC
12142003-08-07 Andrew Cagney <cagney@redhat.com>
1215
1216 * language.c (op_error): Delete function.
1217 (binop_type_check): Delete function.
1218 * language.h (type_op_error, range_op_error): Delete macros.
1219 (op_error): Delete declaration.
1220
2fcf52f0
AC
12212003-08-07 Andrew Cagney <cagney@redhat.com>
1222
1223 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1224
abd4220e 12252003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 1226
abd4220e 1227 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 1228 (x86_64_push_arguments): Skip the red zone.
abd4220e 1229
9dd5f34f
AC
12302003-08-05 Andrew Cagney <cagney@redhat.com>
1231
1232 * reggroups.c (reggroup_next): Check for the final entry.
1233
e5e78edc
AC
12342003-08-04 Andrew Cagney <cagney@redhat.com>
1235
ab4e3d93
AC
1236 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1237 * cli/cli-script.c (define_command): Call query directly, instead
1238 of passing it a buffer.
1239 * ocd.c (ocd_error): Pass error a constant format string.
1240 * remote-mips.c (mips_error): Use fputs_filtered.
1241
1062ca82
AC
1242 * solib-svr4.c (_initialize_svr4_solib): Update
1243 register_gdbarch_data call.
1244 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1245
fcc1c85c
AC
1246 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1247 (register_gdbarch_data): Delete "free" parameter. Update
1248 comments.
1249 * gdbarch.h, gdbarch.c: Re-generate.
1250 * reggroups.c (_initialize_reggroup): Update.
1251 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1252 * frame-base.c (_initialize_frame_base): Update.
1253 * frame-unwind.c (_initialize_frame_unwind): Update.
1254 * user-regs.c (_initialize_user_regs): Update.
1255 * remote.c (_initialize_remote): Update.
1256 * regcache.c (_initialize_regcache): Update.
1257
116f06ea
AC
1258 * regcache.c (xfree_regcache_descr): Delete function.
1259 (_initialize_regcache): Update call to register_gdbarch_data.
1260 (init_regcache_descr, init_legacy_regcache_descr): Use
1261 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1262
e5e78edc
AC
1263 * remote.c (free_remote_state): Delete function.
1264 (_initialize_remote): Update register_gdbarch_data.
1265 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1266 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1267
6c7d17ba
AC
12682003-08-04 Andrew Cagney <cagney@redhat.com>
1269
1270 * reggroups.c (struct reggroup_el): Define.
1271 (struct reggroups): Delete field "nr_group". Replace array
1272 "group" with a "first" to "last" linked list.
1273 (reggroups_init): Update. Allocate using gdbarch's obstack.
1274 (reggroups_free): Delete function.
1275 (add_group): Update. Add "el" parameter.
1276 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1277 (default_groups): Update.
1278 (reggroup_next): Replace reggroups.
1279 (reggroups_dump): Update.
1280 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1281 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1282 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1283
89b7795b
DJ
12842003-08-04 Daniel Jacobowitz <drow@mvista.com>
1285
1286 * Makefile.in (tui-interp.o): Update dependencies.
1287
306d9ac5
DC
12882003-08-04 David Carlton <carlton@kealia.com>
1289
1290 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1291 to internal_error call.
1292 * source.c (forward_search_command): Add "%s" format argument.
1293 (reverse_search_command): Ditto.
1294 * top.c (quit_confirm): Ditto.
1295 * cli/cli-setshow.c (do_setshow_command): Ditto.
1296 * cp-valprint.c (cp_print_class_method): Replace
1297 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1298 (cp_print_class_member): Ditto.
1299 * event-top.c (command_line_handler): Ditto.
1300 * linux-proc.c (linux_info_proc_cmd): Ditto.
1301 * p-typeprint.c (pascal_type_print_base): Ditto.
1302 * p-valprint.c (pascal_object_print_class_method): Ditto.
1303 (pascal_object_print_class_member): Ditto.
1304 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1305 * remote.c (remote_cisco_section_offsets): Ditto.
1306 * top.c (command_line_input): Ditto.
1307 * utils.c (vwarning,error_stream,quit): Ditto.
1308 * valprint.c (print_floating,print_binary_chars)
1309 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1310
57bfe177
AC
13112003-08-04 Andrew Cagney <cagney@redhat.com>
1312
1313 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1314
e546b999
AC
13152003-08-02 Andrew Cagney <cagney@redhat.com>
1316
1317 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1318 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1319 amd64fbsd-nat.c.
1320
91092ee5
AC
13212003-08-02 Andrew Cagney <cagney@redhat.com>
1322
1323 * Makefile.in: Update all dependencies and definitions.
1324
889f28e2
AF
13252003-08-02 Adam Fedor <fedor@gnu.org>
1326
1327 * linespec.c (is_objc_method_format): New function
1328 (decode_line_1, locate_first_half): Use it.
1329 Fixes PR objc/1298
1330
880bc914
AC
13312003-08-01 Andrew Cagney <cagney@redhat.com>
1332
1333 * NEWS: Mention that m32r is multi-arch.
1334 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1335 * configure.tgt: Recognize m32r-*-*.
1336 * config/m32r/tm-m32r.h: Delete file.
1337 * config/m32r/m32r.mt: New file.
1338 * m32r-rom.c (m32r_upload_command): Use hostent only when
1339 gethostname succeeds, in order to avoid a compilation
1340 warning.
1341 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1342 compiler warning.
1343
19f59343
MS
13442003-08-01 Michael Snyder <msnyder@redhat.com>
1345
1346 * sh-tdep.c (sh_frame_align): New gdbarch method.
1347 (sh_gdbarch_init): Set up frame_align method.
1348
4e7d7511
MS
13492003-07-31 Michael Snyder <msnyder@redhat.com>
1350
1351 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1352 which is already covered by the new frames infrastructure.
1353
63022984
AC
13542003-07-31 Andrew Cagney <cagney@redhat.com>
1355
1356 * user-regs.c (struct user_reg): Add "next" link.
1357 (struct user_regs): Replace "user" with "first" and "last" links.
1358 (append_user_reg): Add pre-allocated "reg" parameter.
1359 (builtin_user_regs): Provide initial value for "last".
1360 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1361 (user_regs_init): Allocate memory from the gdbarch obstack.
1362 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1363 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1364 linked list.
1365 (usernum_to_user_reg): New function.
1366 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1367 (value_of_user_reg): Use usernum_to_user_reg.
1368 (user_regs_free): Delete function.
1369 (_initialize_user_regs): Update register_gdbarch_data call.
1370
7cf6e574
DJ
13712003-07-31 Daniel Jacobowitz <drow@mvista.com>
1372
1373 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1374
c48a845b
MS
13752003-07-30 Michael Snyder <msnyder@redhat.com>
1376
4e7d7511 1377 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
1378 * infcall.c (call_function_by_hand): Pass struct_addr to
1379 value_being_returned.
1380 * infcmd.c (print_return_value): Pass zero as struct_addr.
1381 * values.c (value_being_returned): If struct_addr is passed,
1382 use it instead of trying to recover it from the inferior.
1383
f0d8db19
KB
13842003-07-30 Kevin Buettner <kevinb@redhat.com>
1385
1386 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1387 the prologue analyzer won't need to attempt to extract the pc
1388 value from the woefully incomplete dummy frame.
1389 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1390 possible. Disable code which modifies the frame.
1391
e5c113a1
AC
13922003-07-28 Andrew Cagney <cagney@redhat.com>
1393
1394 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1395 to level 2.
1396 (annotate_breakpoints_table, annotate_record): Ditto.
1397 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1398 (annotate_field_name_end, annotate_field_value): Ditto.
1399 (annotate_field_end, annotate_frame_source_begin): Ditto.
1400 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1401 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1402 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1403 (annotate_frame_address_end, annotate_frame_address): Ditto.
1404 (annotate_frame_args, annotate_frame_end): Ditto.
1405 (annotate_frame_where, annotate_arg_begin): Ditto.
1406 (annotate_arg_name_end, annotate_arg_value): Ditto.
1407 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1408 (annotate_function_call, annotate_signal_name): Ditto.
1409 (annotate_signal_string, annotate_signal_name_end): Ditto.
1410 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1411 (annotate_value_begin, annotate_value_history_value): Ditto.
1412 (annotate_value_history_end, annotate_value_end): Ditto.
1413 (annotate_display_begin, annotate_display_number_end): Ditto.
1414 (annotate_display_format, annotate_display_expression): Ditto.
1415 (annotate_display_expression_end, annotate_display_value): Ditto.
1416 (annotate_display_end, annotate_array_section_begin): Ditto.
1417 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1418 (annotate_elt, annotate_array_section_end): Ditto.
1419
bb1db049
AC
14202003-07-28 Andrew Cagney <cagney@redhat.com>
1421
1422 * regcache.c (struct regcache_descr): Update comments on
1423 nr_raw_registers.
1424 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1425 sizeof_raw_register_valid_p.
1426 (init_regcache_descr): Set nr_raw_registers and
1427 sizeof_raw_register_valid_p before calling
1428 init_legacy_regcache_descr.
1429
20e6603c
AC
14302003-07-28 Andrew Cagney <cagney@redhat.com>
1431
1432 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1433 MOD NUM_REGS.
1434
db742940
DJ
14352003-07-28 Daniel Jacobowitz <drow@mvista.com>
1436
1437 * thread.c (info_threads_command): Use get_selected_frame ().
1438 Check that there is at least one non-sentinel frame.
1439
ce7f4371
SC
14402003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1441
1442 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1443 (m68hc11_pop_frame): Remove.
1444 (m68hc11_frame_saved_pc): Remove.
1445 (m68hc11_frame_chain): Remove.
1446 (m68hc11_frame_init_saved_regs): Remove.
1447 (m68hc11_init_extra_frame_info): Remove.
1448 (m68hc11_store_struct_return): Remove.
1449 (m68hc11_saved_pc_after_call): Remove.
1450
1ea653ae
SC
14512003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1452
1453 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1454 frame unwind information.
1455 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1456 and adapted for frame unwinding.
1457 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1458 (m68hc11_unwind_pc): New function.
1459 (m68hc11_frame_unwind_cache): New function to analyze frames.
1460 (m68hc11_frame_this_id): New function to create new frame struct.
1461 (m68hc11_frame_prev_register): New function to unwind a register from
1462 the frame.
1463 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1464 (m68hc11_frame_p): New function for the above.
1465 (m68hc11_frame_base_address): New function to return fp of frame.
1466 (m68hc11_frame_args_address): Update for frame.
1467 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1468 (m68hc11_unwind_sp): New function.
1469 (m68hc11_unwind_dummy_id): New function.
1470 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1471 calls.
1472
c8a7f6ac
SC
14732003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1474
1475 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1476 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1477 when we are beyond the current pc.
1478
3dc990bf
SC
14792003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1480
1481 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1482 from m68hc11_push_arguments.
1483 (m68hc11_push_arguments): Remove.
1484 (m68hc11_push_return_address): Remove.
1485 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1486 handlers; remove deprecated_extra_stack_alignment_needed.
1487
222e5d1d
AC
14882003-07-27 Andrew Cagney <cagney@redhat.com>
1489
1490 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1491 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1492 REAL_PC and not the pointer.
1493 * hppa-hpux-tdep.c: Include frame.h
1494
a7e9a47e
AC
14952003-07-27 Andrew Cagney <cagney@redhat.com>
1496
1497 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1498 GDB_MULTI_ACH_PARTIAL.
1499
7e3dd49e
AC
15002003-07-27 Andrew Cagney <cagney@redhat.com>
1501
1502 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1503 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1504 operator at start and not end of line.
1505 (decode_prologue): Ditto.
1506 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1507 frame_unwind_register_unsigned instead of
1508 frame_unwind_unsigned_register.
1509 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1510 read_register.
1511 (m32r_push_dummy_call): Use register_size instead of
1512 REGISTER_RAW_SIZE.
1513 (m32r_frame_sniffer): Replace m32r_frame_p.
1514 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1515 * m32r-rom.c (report_transfer_performance): Delete extern
1516 declaration.
1517 (m32r_load, m32r_upload_command): Use print_transfer_performance
1518 instead of report_transfer_performance.
1519 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1520 / add_show_from_set.
1521
0880807f
AC
15222003-07-26 Andrew Cagney <cagney@redhat.com>
1523
1524 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1525 store_return_value and extract_struct_value_address.
1526
64ae9269
DJ
15272003-07-26 Daniel Jacobowitz <drow@mvista.com>
1528
1529 PR c++/1267
1530 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1531 NULL, default to the section containing PC.
1532
e286caf2
SC
15332003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1534
1535 * NEWS: Mention "regs" deprecated for m68hc11 too.
1536
1537 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1538 (m68hc11_print_register): New function to print out one register.
1539 (m68hc11_print_registers_info): New function to print registers.
1540 (show_regs): Deprecate and use the above.
1541 (m68hc11_gdbarch_init): Install the print_registers_info.
1542
705b278b
JJ
15432003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1544
1545 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1546 that we have a SIGTRAP before returning non-zero.
1547
63cd4198
EZ
15482003-07-23 Michal Ludvig <mludvig@suse.cz>
1549 Elena Zannoni <ezannoni@redhat.com>
1550
1551 * linespec.c (decode_line_2): Avoid crash if
1552 find_function_start_sal() returns empty record.
1553
6926787d
AS
15542003-07-23 Andreas Schwab <schwab@suse.de>
1555
1556 * ia64-tdep.c (ia64_print_insn): New function.
1557 (ia64_gdbarch_init): Set print_insn to it.
1558 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1559 deprecated_tm_print_insn_info.
1560
708cc1b6
MS
15612003-07-22 Michael Snyder <msnyder@redhat.com>
1562
1563 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1564 handle 8-bit returns (long long).
1565 (h8300h_extract_return_value): Ditto.
1566 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1567
aebd7893
AC
15682003-07-22 Andrew Cagney <cagney@redhat.com>
1569
1570 * gdbarch.c Include "gdb_obstack.h".
1571 (struct gdbarch): Add an "obstack".
1572 (alloc_gdbarch_data): Allocate the gdbarch data using
1573 GDBARCH_OBSTACK_CALLOC.
1574 (free_gdbarch_data): Delete function.
1575 (gdbarch_obstack_zalloc): New function.
1576 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1577 Assert that the architecture is not initialized.
1578 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1579 vector from the obstack.
1580 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1581 architecture obstack.
1582 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1583 (set_gdbarch_data): Assert that the data is not initialized.
1584 (struct gdbarch_data): Delete member "free".
1585 (register_gdbarch_data): Do not initialize "free".
1586 * gdbarch.h, gdbarch.c: Re-generate.
1587
153721e6
AC
15882003-07-22 Andrew Cagney <cagney@redhat.com>
1589
1590 * configure.in (build_warnings): Add -Wformat-nonliteral.
1591 * configure: Re-generate.
1592
c193f044 15932003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
1594
1595 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 1596
c3228f12
EZ
15972003-07-22 Elena Zannoni <ezannoni@redhat.com>
1598
1599 * findvar.c (read_var_value): Remove case for thread local storage
1600 variables. It is now entirely handled by the dwarf2 location
1601 expression code.
1602 * printcmd.c (address_info): Ditto.
1603 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1604 enumeration value.
1605 (struct symbol): Remove objfile field, which was used by
1606 LOC_THREAD_LOCAL_STATIC only.
1607 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1608 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1609 usage of objfile pointer.
1610 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1611 thread local variables.
1612 Add include of objfiles.h.
1613 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1614 storage variables.
1615 * Makefile.in (dwarf2loc.o): Update dependencies.
1616
aef9bcd2
AC
16172003-07-22 Andrew Cagney <cagney@redhat.com>
1618
1619 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1620 get_frame_base.
1621 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1622 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1623 (struct value): Add opaque declaration.
1624 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1625
d95a8903
AC
16262003-07-21 Andrew Cagney <cagney@redhat.com>
1627
1628 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1629 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1630
4db73d49
SC
16312003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1632
1633 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1634 regcache_cooked_read_unsigned instead of read_register.
1635 (m68hc11_saved_pc_after_call): Likewise.
1636 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1637 instead of write_register.
1638 (m68hc11_register_type): New function.
1639 (m68hc11_register_virtual_type): Remove.
1640 (m68hc11_store_return_value): Convert to use the regcache.
1641 (m68hc11_extract_struct_value_address): Likewise.
1642 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1643 m68hc11_register_type; undeprecate store_return_value and
1644 extract_struct_value_address.
1645
ef2b8fcd
SC
16462003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1647
1648 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1649 and translate to use regcache.
1650 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1651
625b0b97
AC
16522003-07-18 Andrew Cagney <cagney@redhat.com>
1653
1654 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1655 * gdbarch.h, gdbarch.c: Re-generate.
1656 * i386-tdep.c (i386_gdbarch_init): Do not set
1657 DWARF2_BUILD_FRAME_INFO.
1658 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1659 unconditionally.
1660 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1661 DWARF2_BUILD_FRAME_INFO.
1662
22b0d388
AC
16632003-07-18 Andrew Cagney <cagney@redhat.com>
1664
1665 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1666 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1667
1ce5d6dd
AC
16682003-07-18 Andrew Cagney <cagney@redhat.com>
1669
1670 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1671 frame_unwind_address_in_block, instead of frame_pc_unwind.
1672 (dwarf2_frame_cache): Ditto.
1673
e6e5e94c
AC
16742003-07-18 Andrew Cagney <cagney@redhat.com>
1675
1676 * user-regs.h (struct gdbarch): Declare opaque.
1677 * ui-out.h (struct ui_file): Declare opaque.
1678 * dwarf2-frame.h (struct frame_info): Declare opaque.
1679
5483d879
KW
16802003-07-18 Kris Warkentin <kewarken@qnx.com>
1681
1682 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1683 #include "...".
1684 (procfs_meminfo): Change strerror to safe_strerror.
1685 (procfs_can_run): Remove K&R badness.
1686
278a7cf7
MS
16872003-07-17 Michael Snyder <msnyder@redhat.com>
1688
1689 * remote-sim.c: Comment typo fix.
1690
606e3b82
AC
16912003-07-17 Andrew Cagney <cagney@redhat.com>
1692
1693 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1694 configure.
1695 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1696 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1697 GDB_MULTI_ARCH_PARTIAL.
1698
c43af07c
EZ
16992003-07-17 Elena Zannoni <ezannoni@redhat.com>
1700
1701 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1702 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1703 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1704
3b85b0f1
TR
17052003-07-16 Theodore A. Roth <troth@openavr.org>
1706
1707 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1708 found.
1709 (avr_frame_unwind_cache): Don't unwind FP for main.
1710 Update a comment.
1711 Save the computed prev_sp.
1712 (avr_saved_regs_unwinder): Remove function.
1713 (avr_frame_prev_register): Use PC unwind logic from
1714 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1715
336d1bba
AC
17162003-07-16 Andrew Cagney <cagney@redhat.com>
1717
1718 * frame-base.h (frame_base_p_ftype): Delete definition.
1719 (frame_base_append_predicate): Delete declaration.
1720 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1721 (frame_unwind_append_predicate): Delete declaration.
1722 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1723 (append_predicate): Delete parameter "p".
1724 (frame_unwind_append_predicate): Delete function.
1725 (frame_unwind_append_sniffer): Update call to append_predicate.
1726 (frame_unwind_free): Delete function.
1727 (_initialize_frame_unwind): Pass NULL as "free" to
1728 register_gdbarch_data.
1729 (frame_unwind_init): Append the dummy_frame_sniffer.
1730 (frame_unwind_find_by_frame): Simplify.
1731 * frame-base.c (struct frame_base_table): Delete field "p".
1732 (append_predicate): Delete parameter "p".
1733 (frame_base_append_predicate): Delete function.
1734 (frame_base_append_sniffer): Update call to append_predicate.
1735 (frame_base_free): Delete function.
1736 (frame_base_find_by_frame): Simplify.
1737 (_initialize_frame_base): Pass NULL as "free" to
1738 register_gdbarch_data.
1739 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1740 (x86_64_sigtramp_frame_sniffer): Replace
1741 "x86_64_sigtramp_frame_p".
1742 (x86_64_init_abi): Set the frame unwind sniffers.
1743 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1744 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1745 (m68k_gdbarch_init): Set the frame unwind sniffers.
1746 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1747 "i386_sigtramp_frame_p".
1748 (i386_frame_sniffer): Replace "i386_frame_p".
1749 (i386_gdbarch_init): Set the frame unwind sniffers.
1750 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1751 (avr_gdbarch_init): Set the frame unwind sniffers.
1752 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1753 "alpha_sigtramp_frame_p"
1754 (alpha_heuristic_frame_sniffer): Replace
1755 "alpha_heuristic_frame_p".
1756 (alpha_gdbarch_init): Set the frame unwind sniffers.
1757 (alpha_dwarf2_init_abi): Ditto.
1758 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1759 "alpha_debug_frame_p".
1760 (alpha_mdebug_frame_base_sniffer): Replace
1761 "alpha_mdebug_frame_base_p".
1762 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1763 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1764 (d10v_gdbarch_init): Set the frame unwind sniffer.
1765 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1766 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1767 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1768 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1769 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1770 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1771
48db5a3c
CV
17722003-07-16 Michael Snyder <msnyder@redhat.com>
1773
1774 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1775 should go thru sh_dsp_register_sim_regno, else the dsp regs
1776 will not get the right values.
1777
17782003-07-16 Corinna Vinschen <vinschen@redhat.com>
1779
1780 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1781 deprecated_store_floating by call to store_typed_floating.
1782 (sh_sh4_register_convert_to_raw): Substitute call to
1783 deprecated_extract_floating by call to extract_typed_floating.
1784
17852003-07-16 Corinna Vinschen <vinschen@redhat.com>
1786
1787 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1788
17892003-07-16 Corinna Vinschen <vinschen@redhat.com>
1790
1791 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1792 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1793 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1794 as possible.
1795 (do_pseudo_register): Remove.
1796 (sh_push_dummy_code): New function.
1797 (sh64_store_struct_return): Rename from sh_store_struct_return.
1798 Only called for sh64 now.
1799 (sh_extract_struct_value_address): Regcache'ify.
1800 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1801 and accomodate new tasks.
1802 (sh64_push_return_address): Rename from sh_push_return_address.
1803 Only called for sh64 now.
1804 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1805 Regcache'ify.
1806 (sh3e_sh4_extract_return_value): Regcache'ify.
1807 (sh_default_store_return_value): Ditto.
1808 (sh3e_sh4_store_return_value): Ditto.
1809 (sh_default_register_byte): Remove.
1810 (sh_sh4_register_byte): Remove.
1811 (sh_default_register_raw_size): Remove.
1812 (sh_sh4_register_raw_size): Remove.
1813 (sh_register_virtual_size): Remove.
1814 (sh_sh3e_register_virtual_type): Remove.
1815 (sh_sh3e_register_type): New function.
1816 (sh_sh4_register_virtual_type): Remove.
1817 (sh_sh4_register_type): New function.
1818 (sh_default_register_virtual_type): Remove.
1819 (sh_default_register_type): New function.
1820 (do_fv_register_info): Add parameters to accomodate call from
1821 sh_print_registers_info.
1822 (do_dr_register_info): Ditto.
1823 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1824 Add parameters to accomodate call from sh_print_registers_info.
1825 (sh_do_fp_register): Ditto.
1826 (sh64_do_pseudo_register): Call do_dr_register_info,
1827 do_fv_register_info and sh_do_fp_register with default parameters.
1828 (sh_do_register): Add parameters to accomodate call from
1829 sh_print_registers_info.
1830 (sh_print_register): Ditto.
1831 (sh_print_registers_info): Rename from sh_do_registers_info.
1832 Add parameters to be used as gdbarch_print_registers_info
1833 implementation. Accomodate removed do_pseudo_register function
1834 pointer.
1835 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1836 function pointer. Call sh_print_register with default parameters.
1837 (sh64_do_registers_info): Call sh_print_registers_info instead of
1838 sh_do_registers_info.
1839 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1840 detection of deprecated vs. non-deprecated functionality.
1841 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1842 function pointer assignments by direct function calls.
1843
e8a89fe2
AC
18442003-07-15 Andrew Cagney <cagney@redhat.com>
1845
1846 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1847 (frame_register_unwind, create_new_frame): Ditto.
1848 (legacy_get_prev_frame, get_frame_type): Ditto.
1849 (get_frame_base_address): Use frame_base_find_by_frame.
1850 (get_frame_locals_address): Use frame_base_find_by_frame.
1851 (get_frame_args_address): Use frame_base_find_by_frame.
1852 * frame-base.h (frame_base_sniffer_ftype): Declare.
1853 (frame_base_append_sniffer): Declare.
1854 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1855 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1856 (frame_base_append_sniffer): New function.
1857 (frame_base_append_predicate): Add a NULL sniffer.
1858 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1859 (struct frame_base_table): Add "sniffer".
1860 (frame_base_free): Free the "sniffer" table.
1861 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1862 (frame_unwind_append_sniffer): Declare.
1863 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1864 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1865 (struct frame_unwind_table): Add "sniffer", delete "middle".
1866 (append_predicate): Add "sniffer" parameter, append the sniffer.
1867 (frame_unwind_init): Update append_predicate call.
1868 (frame_unwind_append_sniffer): New function.
1869 (frame_unwind_append_predicate): Update append_predicate call.
1870 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1871
0714963c
AC
18722003-07-15 Andrew Cagney <cagney@redhat.com>
1873
1874 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1875 before code inhibiting repeated unwind attempts. Add to
1876 commentary on that test's problems.
1877 * blockframe.c (inside_main_func): Look for "main" in the minimal
1878 symbol table.
1879 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1880 identical.
1881
d9170e22
AC
18822003-07-15 Andrew Cagney <cagney@redhat.com>
1883
1884 * complaints.c (struct explanation): Define.
1885 (struct complaints): Change type of "explanation" to "struct
1886 explanation".
1887 (symfile_explanations): Convert to a "struct explanation" table.
1888 (vcomplaint): Update.
1889
eba29c8c
ML
18902003-07-15 Michal Ludvig <mludvig@suse.cz>
1891
1892 * x86-64-linux-nat.c (regmap): Removed.
1893 (supply_gregset, fill_gregset): Call
1894 x86_64_linux_(fill,supply)_gregset functions.
1895 * x86-64-linux-tdep.c (USER_*): New defines.
1896 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1897 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1898 New functions.
1899 (fetch_core_registers): Ditto.
1900 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1901 * x86-64-linux-tdep.h: New file.
1902 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1903 and core-regset.o.
1904 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1905
68cc0bfb
MK
19062003-07-13 Mark Kettenis <kettenis@gnu.org>
1907
88a115f7
MK
1908 * x86-64-tdep.c (x86_64_store_return_value): Use
1909 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 1910
68cc0bfb
MK
1911 * configure.host: Add x86_64-*-freebsd*.
1912 * configure.tgt: Add x86_64-*-freebsd*.
1913 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1914 * amd64fbsd-nat.c: New file.
1915 * amd64fbsd-tdep.c: New file.
1916 * config/i386/nm-fbsd64.h: New file.
1917 * config/i386/fbsd64.mh: New file.
1918 * config/i386/fbsd64.mt: New file.
1919
138e7be5
MK
19202003-07-11 Mark Kettenis <kettenis@gnu.org>
1921
1922 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1923 `sc_regs_offset' and `sc_fpregs_offset'.
1924 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1925 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1926 (alpha_sigtramp_register_address): Rewrite to use new members of
1927 `struct gdbarch_tdep'.
1928 (alpha_gdbarch_init): Initialize new members of struct
1929 gdbarch_tdep'.
1930 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1931 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1932 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1933 (alphafbsd_pc_in_sigtramp): Implement.
1934 (alphafbsd_sigtramp_offset): New function.
1935 (alphafbsd_sigcontext_addr): New function.
1936 (alphafbsd_init_abi): Initialize signal trampoline related members
1937 of `struct gdbarch_tdep'.
1938 (_initialize_alphafbsd_tdep): Add prototype.
1939
95303a68
TR
19402003-07-11 Theodore A. Roth <troth@openavr.org>
1941
ba292e4c
TR
1942 * Makefile.in (install-only): Quote sed expression when generating
1943 transformed_name.
95303a68 1944
6896c0c7
RH
19452003-07-11 Richard Henderson <rth@redhat.com>
1946
1947 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1948 * dwarf2-frame.c: Include complaints.h.
1949 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1950 variable initialization; return NULL on error.
1951 (decode_frame_entry): New.
1952
8edd5d01
AC
19532003-07-11 Andrew Cagney <cagney@redhat.com>
1954
c4a09524
AC
1955 * frame.h (frame_address_in_block): Delete declaration.
1956 * blockframe.c (frame_address_in_block): Delete function.
1957 (get_frame_block): Use get_frame_address_in_block.
1958 (block_innermost_frame): Ditto.
1959 * stack.c (print_frame, backtrace_command_1): Ditto.
1960
8edd5d01
AC
1961 * frame.h (get_frame_address_in_block): Declare.
1962 (frame_unwind_address_in_block): Declare.
1963 * frame.c (frame_unwind_address_in_block): New function.
1964 (get_frame_address_in_block): New function.
1965
f7968451
AC
19662003-07-10 Andrew Cagney <cagney@redhat.com>
1967
1968 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1969 pre-default. Note: re-generate has no effect.
1970
ae99b398
AC
19712003-07-10 Andrew Cagney <cagney@redhat.com>
1972
1973 * gdbarch.sh: When a variable, but not a function, compare against
1974 0. Fix problem in previous patch.
1975 * gdbarch.c: Re-generate.
1976
956ac328
AC
19772003-07-10 Andrew Cagney <cagney@redhat.com>
1978
1979 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1980 functions against NULL, not 0.
1981 * gdbarch.c: Re-generate.
1982
287c3240
FF
19832003-07-10 Fred Fish <fnf@ninemoons.com>
1984
1985 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1986 null string instead of a null pointer.
1987 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1988
32f63c4b
MS
19892003-07-09 Michael Snyder <msnyder@redhat.com>
1990
1991 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1992
402ecd56
MK
19932003-07-09 Mark Kettenis <kettenis@gnu.org>
1994
1995 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1996 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1997 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1998 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1999 * x86-64-tdep.c: ... from here.
2000
c481dac7
AS
20012003-07-09 Andreas Schwab <schwab@suse.de>
2002
2003 * m68k-tdep.h (enum struct_return): Define.
2004 (struct gdbarch_tdep): Add struct_return.
2005 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2006 bytes are padded to the right, not to the left. Pass struct value
2007 address in register %a1, not on stack.
2008 (m68k_use_struct_convention): New function.
2009 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2010 struct_return in tdep to pcc_struct_return.
2011 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2012 reg_struct_return.
2013
64176fa3
JB
20142003-07-09 Joel Brobecker <brobecker@gnat.com>
2015
2016 * somread.c (som_symfile_offsets): Fix compilation error.
2017
96a4ee76
AC
20182003-07-09 Andrew Cagney <cagney@redhat.com>
2019
2020 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2021 Add comments about the checks.
2022
1517c6d1
AC
20232003-07-08 Andrew Cagney <cagney@redhat.com>
2024
2025 * Makefile.in: Make dependency section headers consistent.
2026 (config_h): Move to $BUILD headers section.
2027 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2028 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2029 (ada-exp.tab.c): Move to YACC/LEX section.
2030 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2031 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2032
dc5dd1eb
KW
20332003-07-08 Kris Warkentin <kewarken@qnx.com>
2034
2035 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
2036 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2037 of strerror with safe_strerror, use ISO C function definitions,
2038 and replace instances of sprintf with snprintf.
dc5dd1eb 2039
612dde91
AC
20402003-07-07 Andrew Cagney <cagney@redhat.com>
2041
2042 * frame.c (get_prev_frame): Enable check for identical frames.
2043 Update comments. Update error messages.
2044
492c11d3
JB
20452003-07-07 Joel Brobecker <brobecker@gnat.com>
2046
2047 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2048
376a5a49
JB
20492003-07-07 Joel Brobecker <brobecker@gnat.com>
2050
2051 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2052 sort_symtab_syms, no longer necessary.
2053
22b4a9ad
JB
20542003-07-07 Joel Brobecker <brobecker@gnat.com>
2055
2056 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2057
5bbcb741
JB
20582003-07-07 Joel Brobecker <brobecker@gnat.com>
2059
2060 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2061 (mips_register_byte): Likewise.
2062
c139e7d9
DJ
20632003-07-07 Daniel Jacobowitz <drow@mvista.com>
2064
2065 * Makefile.in (sparc_tdep_h): New.
2066 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2067 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2068 * sparc-linux-nat.c: Include "sparc-tdep.h".
2069 * sparc-nat.c: Likewise.
2070 * sparc-tdep.c: Likewise.
2071 * sparc64nbsd-nat.c: Likewise.
2072 * sparcnbsd-nat.c: Likewise.
2073 * sparcnbsd-tdep.c: Likewise.
2074 * sparc-tdep.h: New file.
2075 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2076 and sparc_npc_regnum.
2077
fd8f87c5
DJ
20782003-07-07 Daniel Jacobowitz <drow@mvista.com>
2079
2080 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2081 (mips_linux_cannot_store_register): List supported instead of
2082 unsupported registers.
2083
13adf674
DJ
20842003-07-07 Daniel Jacobowitz <drow@mvista.com>
2085
2086 * disasm.c (dump_insns): Separate instructions from addresses.
2087
8de307e0
AS
20882003-07-07 Andreas Schwab <schwab@suse.de>
2089
2090 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2091 dependencies.
2092 * m68k-tdep.c (NUM_FREGS): Delete.
2093 (SIG_PC_FP_OFFSET): Delete.
2094 (TARGET_M68K): Delete.
2095 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2096 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2097 P_MOVEL_SP, P_MOVEML_SP): Define.
2098 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2099 P_TRAP): Delete.
2100 (m68k_register_raw_size): Delete.
2101 (m68k_register_virtual_size): Delete.
2102 (m68k_register_type): Renamed from m68k_register_virtual_type and
2103 add gdbarch argument.
2104 (m68k_store_struct_return): Delete.
2105 (m68k_deprecated_extract_return_value): Delete.
2106 (m68k_deprecated_extract_struct_value_address): Delete.
2107 (m68k_frame_chain): Delete.
2108 (m68k_frame_saved_pc): Delete.
2109 (m68k_fix_call_dummy): Delete.
2110 (m68k_push_dummy_frame): Delete.
2111 (m68k_pop_frame): Delete.
2112 (m68k_extract_return_value): New function.
2113 (m68k_store_return_value): Rewrite using regcache.
2114 (m68k_extract_struct_value_address): Rewrite using regcache.
2115 (m68k_push_dummy_call): New function.
2116 (struct m68k_frame_cache): Define.
2117 (m68k_alloc_frame_cache): New function.
2118 (m68k_analyze_frame_setup): New function.
2119 (m68k_analyze_register_saves): New function.
2120 (m68k_analyze_prologue): New function.
2121 (m68k_skip_prologue): Rewrite using above functions.
2122 (m68k_unwind_pc): New function.
2123 (m68k_frame_cache): New function.
2124 (m68k_frame_this_id): New function.
2125 (m68k_frame_prev_register): New function.
2126 (m68k_frame_unwind): New variable.
2127 (m68k_frame_p): New function.
2128 (m68k_sigtramp_frame_cache): New function.
2129 (m68k_sigtramp_frame_this_id): New function.
2130 (m68k_sigtramp_frame_prev_register): New function.
2131 (m68k_sigtramp_frame_unwind): New variable.
2132 (m68k_sigtramp_frame_p): New function.
2133 (m68k_frame_base_address): New function.
2134 (m68k_frame_base): New function.
2135 (m68k_unwind_dummy_id): New function.
2136 (fill_gregset): Use regcache_collect.
2137 (fill_fpregset): Likewise.
2138 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2139 defined.
2140 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2141 deprecated_init_frame_pc, deprecated_store_struct_return,
2142 deprecated_extract_return_value, deprecated_store_return_value,
2143 deprecated_frame_chain, deprecated_frame_saved_pc,
2144 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2145 deprecated_register_virtual_size,
2146 deprecated_max_register_raw_size,
2147 deprecated_max_register_virtual_size,
2148 deprecated_register_virtual_type, deprecated_register_size,
2149 deprecated_register_byte, deprecated_register_bytes,
2150 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2151 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2152 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2153 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2154 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2155 deprecated_push_dummy_frame, deprecated_pop_frame,
2156 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2157 only if SYSCALL_TRAP is defined. Set extract_return_value,
2158 store_return_value, extract_struct_value_address, register_type,
2159 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2160 predicates.
2161 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2162 M68K_MAX_REGISTER_SIZE): Define.
2163 (struct m68k_sigtramp_info): Define.
2164 (struct gdbarch_tdep): Add get_sigtramp_info.
2165 * m68klinux-nat.c (fetch_register): Use register_size instead of
2166 REGISTER_RAW_SIZE. Don't put assignment in if.
2167 (store_register): Likewise.
2168 (fetch_inferior_registers): Likewise.
2169 (store_inferior_registers): Likewise.
2170 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2171 (m68k_linux_frame_saved_pc): Delete.
2172 (m68k_linux_sigcontext_reg_offset,
2173 m68k_linux_ucontext_reg_offset): Define.
2174 (m68k_linux_get_sigtramp_info): New function.
2175 (m68k_linux_extract_return_value): Rewrite using regcache.
2176 (m68k_linux_store_return_value): Likewise.
2177 (m68k_linux_extract_struct_value_address): Likewise.
2178 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2179 Don't set deprecated_frame_saved_pc,
2180 deprecated_extract_return_value, deprecated_store_return_value,
2181 deprecated_extract_struct_value_address. Set
2182 extract_return_value, store_return_value,
2183 extract_struct_value_address.
2184
eb8bc282
AC
21852003-07-07 Andrew Cagney <cagney@redhat.com>
2186
2187 * expprint.c: Include "user-regs.h" instead of "frame.h".
2188 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2189 frame_map_regnum_to_name.
2190 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2191 (frame_map_name_to_regnum): Simplify, call
2192 user_reg_map_name_to_regnum.
2193 (frame_map_regnum_to_name): Simplify, call
2194 user_reg_map_regnum_to_name.
2195 (frame_register_unwind): Update.
2196 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2197 (_initialize_frame_reg): Call user_reg_add_builtin.
2198 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2199 (value_of_register): Use value_of_user_reg.
2200 * eval.c (evaluate_subexp_standard): Update.
2201 * parse.c (write_dollar_variable): Update.
2202 * d10v-tdep.c (d10v_print_registers_info): Update.
2203 * infcmd.c (registers_info): Update.
2204 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2205 (builtin_regs_h): Delete macro.
2206 (user_regs_h): Define.
2207 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2208 (builtin-regs.o): Delete target.
2209 (user-regs.o): Specify dependencies.
2210 (expprint.o): Update dependencies.
2211 (findvar.o): Update dependencies.
2212 (frame.o): Update dependencies.
2213 (std-regs.o): Update dependencies.
2214
9f476a01
CF
22152003-07-06 Christopher Faylor <cgf@redhat.com>
2216
2217 * win32-nat.c (solib_symbols_add): Use one variable for all section
2218 address stuff. Pass variable rather than address of variable to
2219 safe_symbol_file_add.
2220
a731b831
AS
22212003-07-06 Andreas Schwab <schwab@suse.de>
2222
2223 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2224
9f83329d
JB
22252003-07-04 Joel Brobecker <brobecker@gnat.com>
2226
2227 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2228
27e28cc5
KW
22292003-07-04 Kris Warkentin <kewarken@qnx.com>
2230
2231 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2232
22332003-07-04 Kris Warkentin <kewarken@qnx.com>
2234
2235 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2236 * config/i386/nto.mh: New file.
2237 * config/i386/nm-nto.h: New file.
2238 * configure.host: Add i[3456]86-*-nto*.
2239
100f2e98
JB
22402003-07-03 Joel Brobecker <brobecker@gnat.com>
2241
2242 * remote-vx.c (vx_add_symbols): Fix compilation error.
2243
e23457df
AC
22442003-07-03 Andrew Cagney <cagney@redhat.com>
2245
2246 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2247 * gdbarch.h, gdbarch.c: Re-generate.
2248 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2249 (legacy_register_name): Declare.
2250 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2251 (REGISTER_NAME): Define.
2252 * sparc-tdep.c (legacy_register_name): New function.
2253 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2254 (REGISTER_NAME): Define.
2255 (hppa64_register_name): Declare.
2256 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2257 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2258 (hppa64_register_name): New function.
2259 (hppa_register_name): New function.
2260 * arch-utils.c (legacy_register_name): Delete.
2261 * arch-utils.h (legacy_register_name): Delete.
2262
38caaeec
DJ
22632003-07-03 Daniel Jacobowitz <drow@mvista.com>
2264
2265 * cli/cli-interp.c (cli_interpreter_resume): Update the
2266 cli_uiout's stream to gdb_stdout.
2267
dadd712e
AC
22682003-07-03 Andrew Cagney <cagney@redhat.com>
2269
2270 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2271 predicate.
2272 * gdbarch.h, gdbarch.c: Re-generate.
2273 * regcache.c (init_regcache_descr): Use legacy code when either
2274 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2275
c7f1390e
DJ
22762003-07-02 Daniel Jacobowitz <drow@mvista.com>
2277
2278 * NEWS: Move "set logging" entry into GDB 6.0 section.
2279
4bc8c588
JB
22802003-07-02 Jim Blandy <jimb@redhat.com>
2281
a9dd42f1
JB
2282 * s390-tdep.c (struct frame_extra_info): new member:
2283 'stack_bought_valid'.
2284 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2285 initialize fextra_info->stack_bought.
2286 (s390_frameless_function_invocation): Don't trust the value of
2287 fextra_info_ptr->stack_bought unless
2288 fextra_info->stack_bought_valid is set.
2289
4bc8c588
JB
2290 New S390 prologue analyzer.
2291 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2292 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2293 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2294 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2295 compute_x_addr, s390_on_stack, s390_store,
2296 s390_get_signal_frame_info): New functions.
2297 (S390_NUM_SPILL_SLOTS): New macro.
2298 (s390_get_frame_info): Rewritten.
2299 (is_arg_reg): Deleted.
2300
2301 Break out the decoding of S/390 instructions into separate
2302 functions, to make it more legible, and easier to check
2303 against the spec.
2304 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2305 is_rx, is_rxe): New functions.
2306 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2307 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2308 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2309 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2310 enums for opcode values. (Is this an improvement?)
2311
fd13a04a
AC
23122003-07-02 Andrew Cagney <cagney@redhat.com>
2313
2314 * i386-tdep.c: Revert change committed as part of trad-frame code
2315 below.
2316
3f8091c1
DJ
23172003-07-02 Daniel Jacobowitz <drow@mvista.com>
2318
2319 * breakpoint.c (insert_catchpoint): Make static.
2320
8dd5115e
AS
23212003-07-02 Andreas Schwab <schwab@suse.de>
2322
2323 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2324 former ia64_push_arguments and ia64_push_return_address, and use
2325 regcache functions instead of read/write_register.
2326 (ia64_gdbarch_init): Set push_dummy_call instead of
2327 deprecated_push_arguments and deprecated_push_return_address.
2328
a2229c23
AJ
23292003-07-01 Andreas Jaeger <aj@suse.de>
2330
2331 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2332 before the call.
2333 Set %rax only to number of SSE registers used.
2334
3b3850e8
AC
23352003-07-01 Andrew Cagney <cagney@redhat.com>
2336
2337 * trad-frame.h: Update comments, a -1 .addr is reserved.
2338 (trad_frame_value_p, trad_frame_addr_p): Declare.
2339 (trad_frame_reg_p): Declare.
2340 (trad_frame_set_value): Rename trad_frame_register_value.
2341 (trad_frame_set_unknown): Declare.
2342 * trad-frame.c (trad_frame_realreg_p): New function.
2343 (trad_frame_addr_p, trad_frame_value_p): New function.
2344 (trad_frame_set_unknown): New function.
2345 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2346 (trad_frame_prev_register): Use trad_frame_realreg_p,
2347 trad_frame_addr_p and trad_frame_value_p.
2348 (trad_frame_set_value): Rename trad_frame_register_value.
2349 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2350 and trad_frame_set_value.
a2229c23 2351
4d819d0e
JB
23522003-06-30 Jim Blandy <jimb@redhat.com>
2353
2354 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2355 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2356 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2357 for 16 registers, and then 32 more bytes.
2358 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2359 New macros.
2360 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2361 Move up in the file, since it's now used by is_simple_arg.
2362 (is_simple_arg): Don't assume registers are four bytes long.
2363 Exclude all double arguments. Extended floats are not simple
2364 args.
2365 (is_power_of_two): New function.
2366 (pass_by_copy_ref): Call is_power_of_two, and check that the
2367 length fits in a register, rather than listing all the acceptable
2368 sizes. Extended floats are not passed by reference.
2369 (s390_push_arguments): Don't assume registers are four bytes long.
2370 Reserve an argument register to point to the buffer for structures
2371 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2372 S390_STACK_FRAME_OVERHEAD.
2373
1ad828f1
AS
23742003-06-30 Andreas Schwab <schwab@suse.de>
2375
2376 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2377 format error message.
2378
39b00981
JB
23792003-06-30 Joel Brobecker <brobecker@gnat.com>
2380
2381 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2382
b2a7f303
DC
23832003-06-30 David Carlton <carlton@kealia.com>
2384
2385 Band-aid for PR c++/1245.
2386 * Makefile.in (cp-support.o): Depend on complaints_h.
2387 * cp-support.c: Include complaints.h. Add declaration for
2388 find_last_component.
2389 (cp_find_first_component): Separate code into
2390 cp_find_first_component_aux.
2391 (cp_find_first_component_aux): Call demangled_name_complaint.
2392 (demangled_name_complaint): New.
2393
a257b5bb
AC
23942003-06-30 Andrew Cagney <cagney@redhat.com>
2395
2396 * remote.c (remote_write_bytes): Explicitly compute and then use
2397 the payload size. Update comments to reflect. Fixes problem of
2398 GDB not sending small packets as found by Fred Fish.
2399
0a2cfde4
AC
24002003-06-30 Andrew Cagney <cagney@redhat.com>
2401
2402 * remote.c (remote_async_wait): Fix -Wformat problem.
2403
3fcb8548
AC
24042003-06-29 Andrew Cagney <cagney@redhat.com>
2405
2406 * remote.c (remote_wait): Call error, and not warning, when the
2407 packet is corrupt.
2408 (remote_async_wait): Ditto.
2409
9f9970a3
DJ
24102003-06-29 Daniel Jacobowitz <drow@mvista.com>
2411
2412 * sparc-tdep.c (sparc_y_regnum): Make external again.
2413
83a8ccca
DJ
24142003-06-29 Daniel Jacobowitz <drow@mvista.com>
2415
2416 * cli/cli-logging.c (pop_output_files): Add void to function
2417 definition.
2418
d2cf594a
AC
24192003-06-29 Andrew Cagney <cagney@redhat.com>
2420
2421 * frame.c (frame_register_unwind): Use unsigned char when dumping
2422 the buffer contents.
2423
0fac0b41
DJ
24242003-06-28 Daniel Jacobowitz <drow@mvista.com>
2425
2426 * cli/cli-logging.c: New file.
2427 * cli-out.c (struct ui_out_data): Add original_stream.
2428 (cli_redirect): New function.
2429 (cli_ui_out_impl): Add cli_redirect.
2430 (cli_out_new): Initialize original_stream.
2431 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2432 (uo_redirect, ui_out_redirect): New.
2433 * ui-out.h (struct ui_out_impl): Add redirect member.
2434 (redirect_ftype): New.
2435 (ui_out_redirect): Add prototype.
2436 * Makefile.in: Add rules for cli-logging.c.
2437 * NEWS: Mention "set logging".
2438
88a07d7c
EZ
24392003-06-27 Elena Zannoni <ezannoni@redhat.com>
2440
2441 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2442
4eb58876
AC
24432003-06-27 Andrew Cagney <cagney@redhat.com>
2444
2445 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2446 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2447 * avr-tdep.c (avr_call_dummy_address): Delete function.
2448 (avr_gdbarch_init): Do not set call_dummy_address.
2449
1549f619
EZ
24502003-06-27 Elena Zannoni <ezannoni@redhat.com>
2451
2452 * symfile.c (syms_from_objfile): Move variables to inner block.
2453 Move the checks for the non-mainline case a bit earlier to avoid
2454 doing some useless computations.
2455
3cb3398d
EZ
24562003-06-27 Elena Zannoni <ezannoni@redhat.com>
2457
2458 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2459
3799ccc6
EZ
24602003-06-26 Elena Zannoni <ezannoni@redhat.com>
2461
2462 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2463 sections.
2464
ce1f6491
MC
24652003-06-26 Michael Chastain <mec@shout.net>
2466
2467 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2468 gdb/testsuite/gdb.c++/pr-1210.exp.
2469
d958dfd0
AC
24702003-06-26 Andrew Cagney <cagney@redhat.com>
2471
2472 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2473 altivec_expression.h and altivec_registers.h.
2474
d31431ed
AC
24752003-06-26 Andrew Cagney <cagney@redhat.com>
2476
2477 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2478 info->mach when MIPS16. Patch suggested by Fred Fish.
2479
714b1282
AC
24802003-06-26 Andrew Cagney <cagney@redhat.com>
2481
2482 * utils.c (internal_vproblem): Print the problem to a reason
2483 buffer and then pass to query. Make the msg variable more local.
2484
42efa47a
AC
24852003-06-26 Andrew Cagney <cagney@redhat.com>
2486
2487 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2488 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2489 * gdbarch.h, gdbarch.c: Re-generate.
2490 * frame-base.c (default_frame_args_address): Update. Use
2491 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2492 not available.
2493 (default_frame_locals_address): Ditto for
2494 DEPRECATED_FRAME_LOCALS_ADDRESS.
2495 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2496 (vax_frame_num_args): Update.
2497 (vax_gdbarch_init): Update.
2498 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2499 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2500 * mcore-tdep.c (mcore_gdbarch_init): Update.
2501 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2502 * ia64-tdep.c (ia64_gdbarch_init): Update.
2503 * symtab.h (address_class): Update comments.
2504 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2505 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2506 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2507 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2508 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2509 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2510 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2511 * alpha-mdebug-tdep.c: Update.
2512 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2513
8ffd9b1b
AJ
25142003-06-26 Andreas Jaeger <aj@suse.de>
2515
2516 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2517 of SSE registers so that varargs functions work. Rework handling
2518 of passing arguments on the stack.
2519 (x86_64_store_return_value): Return double and float values in SSE
2520 register.
2521
e8ac10a6
MC
25222003-06-24 Michael Chastain <mec@shout.net>
2523
2524 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2525 the "constructor breakpoints ignored" bug.
2526
986af8e6
DC
25272003-06-25 David Carlton <carlton@kealia.com>
2528
2529 * MAINTAINERS: Update e-mail address.
2530
d64558a5
JB
25312003-06-24 Jim Blandy <jimb@redhat.com>
2532
e538d2d7
JB
2533 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2534
02631ec0
JB
2535 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2536 function.
2537 (ppc_linux_init_abi): Register it as the
2538 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2539
e716d87a
JB
2540 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2541 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2542 method.
2543
d64558a5
JB
2544 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2545 (ppc64_standard_linkage_target): Use it.
2546
449a5da4
AC
25472003-06-23 Andrew Cagney <cagney@redhat.com>
2548
2549 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2550 for 0 "int0" and 4 "int32" sized registers.
2551 * gdbtypes.c (builtin_type_int0): Define.
2552 (build_gdbtypes): Initialize builtin_type_int0.
2553 * gdbtypes.h (builtin_type_int0): Declare.
2554
b2a02dda
SC
25552003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2556
2557 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2558 as characters are unsigned.
2559
fba3138e
DJ
25602003-06-22 Daniel Jacobowitz <drow@mvista.com>
2561
2562 PR gdb/1179
2563 * dwarfread.c (struct_type): Skip static fields without crashing.
2564
f6c8180b
AC
25652003-06-22 Andrew Cagney <cagney@redhat.com>
2566
2567 GDB 6.0 branch created.
f2c06f52
AC
2568 * README: Update.
2569 * PROBLEMS: Update. Empty.
2570 * NEWS: Update.
f6c8180b 2571
ae822768
DJ
25722003-06-22 Daniel Jacobowitz <drow@mvista.com>
2573
2574 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2575 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2576
261de166
AC
25772003-06-22 Andrew Cagney <cagney@redhat.com>
2578
2579 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2580 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2581 Velikov.
2582
30e94205
DJ
25832003-06-22 Daniel Jacobowitz <drow@mvista.com>
2584
2585 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2586 compilers.
2587
9e14d721
DJ
25882003-06-21 Daniel Jacobowitz <drow@mvista.com>
2589
2590 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2591 argument of val_print.
2592 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2593 to the address argument of baseclass_offset or target_read_memory.
2594 Do add it to the argument of cp_print_value_fields.
2595
a4b8ebc8
AC
25962003-06-21 Andrew Cagney <cagney@redhat.com>
2597
2598 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2599 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2600 instead of 0..NUM_REGS.
2601 (mips_register_reggroup_p): New function.
2602 (mips_pseudo_register_write): New function.
2603 (mips_pseudo_register_read): New function.
2604 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2605 based on the register's type.
2606 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2607 cooked.
2608 (mips_get_saved_register): Simplify. Assert that REGNO is a
2609 pseudo / cooked.
2610 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2611 (mips_register_type): Replace mips_register_virtual_type. Map
2612 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2613 when available.
2614 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2615 that the register is cooked / virtual.
2616 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2617 Only get the extra info when needed.
2618 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2619 (mips32_heuristic_proc_desc): Fetch the cooked register.
2620 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2621 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2622 (mips_print_register): Use gdbarch_register_type, instead of
2623 REGISTER_VIRTUAL_TYPE.
2624 (print_gp_register_row): Use gdbarch_register_type, instead of
2625 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2626 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2627 Print the pseudo / cooked registers.
2628 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2629 Print the pseudo / cooked registers.
2630 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2631 REG_NUM is pseudo / cooked.
2632 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2633 (mips_n32n64_xfer_return_value): Ditto.
2634 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2635 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2636 (mips_register_sim_regno): New function.
2637 (mips_gdbarch_init): Set deprecated_register_byte,
2638 register_group_p, pseudo_register_write, pseudo_register_read,
2639 register_sim_regno, and num_pseudo_regs. Set register_type,
2640 instead of register_virtual_type.
2641 * Makefile.in (mips-tdep.o): Update dependencies.
2642 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2643 REGISTER_VIRTUAL_TYPE.
2644 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2645 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2646 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2647 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2648 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2649
325ed089
DJ
26502003-06-21 Daniel Jacobowitz <drow@mvista.com>
2651
2652 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2653 * cli/cli-cmds.c: Include "gdb_vfork.h".
2654 (shell_escape): Use vfork.
2655
f0e7d0e8
AC
26562003-06-21 Andrew Cagney <cagney@redhat.com>
2657
c57bb9fa
AC
2658 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2659 32 bit floating-point register saves.
2660
6e51443a
AC
2661 * frame.h (deprecated_unwind_get_saved_register): Delete.
2662 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2663 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2664 and deprecated_get_next_frame_hack instead of
2665 deprecated_unwind_get_saved_register.
2666
ed183c7c
AC
2667 * mips-tdep.c (mips_dump_tdep): Do not print
2668 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2669
f0e7d0e8
AC
2670 * frame.c (get_frame_register): New function.
2671 (frame_unwind_register_signed): New function.
2672 (get_frame_register_signed): New function.
2673 (frame_unwind_register_unsigned): New function.
2674 (get_frame_register_unsigned): New function.
2675 * frame.h: Add comments on naming schema.
2676 (get_frame_register, frame_unwind_register_signed): Declare.
2677 (get_frame_register_signed, get_frame_register_signed): Declare.
2678 (frame_unwind_register_unsigned): Declare.
2679 (get_frame_register_unsigned): Declare.
2680
2224d941
TR
26812003-06-20 Theodore A. Roth <troth@openavr.org>
2682
2683 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2684
8619218d
TR
26852003-06-20 Theodore A. Roth <troth@openavr.org>
2686
2687 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2688 (avr_read_sp): Ditto.
2689
0b1b50c0
DJ
26902003-06-20 Daniel Jacobowitz <drow@mvista.com>
2691
2692 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2693 * config/arm/nm-linux.h: Likewise.
2694 * config/arm/tm-linux.h: Likewise.
2695 * config/ia64/nm-linux.h: Likewise.
2696 * config/ia64/tm-ia64.h: Likewise.
2697 * config/s390/tm-linux.h: Likewise.
2698 * config/s390/tm-s390.h: Likewise.
2699 * s390-nat.c: Likewise.
2700 * s390-tdep.c: Likewise.
2701
2702 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2703 * config/ia64/linux.mt: Likewise.
2704 * config/m68k/linux.mh: Likewise.
2705 * config/mips/linux.mt: Likewise.
2706 * config/powerpc/linux.mh: Likewise.
2707 * config/sh/linux.mt: Likewise.
2708
c8c18e65
KW
27092003-06-19 Kris Warkentin <kewarken@qnx.com>
2710
2711 * solib.c (solib_open): Change tests for whether to search
2712 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2713 comments.
2714
dcccef2e
TR
27152003-06-19 Theodore A. Roth <troth@openavr.org>
2716
2717 * avr-tdep.c (avr_frame_address): Delete function.
2718 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2719 set_gdbarch_frame_args_address.
2720
5861a190
AC
27212003-06-19 Andrew Cagney <cagney@redhat.com>
2722
2723 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2724 (REGISTER_CONVERT_FROM_TYPE): Delete.
2725 (mips_register_convert_to_type): Delete declaration.
2726 (mips_register_convert_from_type): Delete declaration.
2727 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2728 kernel/.
2729
0274a8ce
MS
27302003-06-19 Michael Snyder <msnyder@redhat.com>
2731
2732 * linux-nat.h: New file.
2733 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 2734 * lin-lwp.c: Include linux-nat.h.
0274a8ce 2735 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 2736 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
2737 (linux_make_note_section): Iterate over lwps instead of threads.
2738 (linux_do_thread_registers): Use lwp instead of merged pid.
2739 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 2740 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
2741 Add dependency on linux_nat_h.
2742
adf5f719
TR
27432003-06-19 Theodore A. Roth <troth@openavr.org>
2744
2745 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2746
6766a268
DJ
27472003-06-19 Daniel Jacobowitz <drow@mvista.com>
2748
2749 * varobj.c (get_type, get_target_type): Use check_typedef.
2750
1171114a
DJ
27512003-06-19 Daniel Jacobowitz <drow@mvista.com>
2752
2753 * breakpoint.c (insert_catchpoint): Call internal_error.
2754
adcf68a2
TR
27552003-06-19 Theodore A. Roth <troth@openavr.org>
2756
2757 * avr-tdep.c (avr_push_dummy_code): Delete function.
2758 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2759
ea67f13b
DJ
27602003-06-19 Daniel Jacobowitz <drow@mvista.com>
2761
2762 * arch-utils.c (default_prepare_to_proceed): Remove.
2763 (generic_prepare_to_proceed): Remove.
2764 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2765 (generic_prepare_to_proceed): Remove prototype.
2766 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2767 * gdbarch.c: Regenerate.
2768 * gdbarch.h: Regenerate.
2769 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2770 * hppah-nat.c (hppa_switched_threads): Remove.
2771 * infrun.c (prepare_to_proceed): New static function, copied from
2772 generic_prepare_to_proceed. Remove select_it argument.
2773 (proceed): Call prepare_to_proceed.
2774 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2775 variables.
2776 (ptrace_wait): Don't set the removed variables.
2777 (hppa_switched_threads): Remove.
2778 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2779 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2780 (lin_lwp_prepare_to_proceed): Remove prototype.
2781 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2782 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2783
4add8633
TR
27842003-06-18 Theodore A. Roth <troth@openavr.org>
2785
2786 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2787 trad-frame.h.
2788 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2789 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2790 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2791 (AVR_PROLOGUE_*): Enumerate prologue types.
2792 (struct frame_extra_info): Remove.
2793 (struct avr_unwind_cache): Define.
2794 (avr_write_sp): Delete function.
2795 (avr_read_fp): Ditto.
2796 (avr_init_extra_frame_info): Ditto.
2797 (avr_pop_frame): Ditto.
2798 (avr_frame_saved_pc): Ditto.
2799 (avr_saved_pc_after_call): Ditto.
2800 (avr_push_return_address): Ditto.
2801 (avr_frame_chain): Ditto.
2802 (avr_store_struct_return): Ditto.
2803 (avr_push_arguments): Ditto.
2804 (avr_scan_prologue): Update comments. Changed to set up the info for
2805 cache unwinding. Now returns end of prologue PC.
2806 (avr_skip_prologue): Better handling of functions lacking a prologue
2807 by using avr_scan_prologue.
2808 (avr_scan_arg_moves): New function.
2809 (avr_saved_regs_unwinder): Ditto.
2810 (avr_frame_unwind_cache): Ditto.
2811 (avr_unwind_pc): Ditto.
2812 (avr_frame_this_id): Ditto.
2813 (avr_frame_prev_register): Ditto.
2814 (avr_frame_p): Ditto.
2815 (avr_frame_base_address ): Ditto.
2816 (avr_unwind_dummy_id): Ditto.
2817 (avr_push_dummy_code): Ditto.
2818 (push_stack_item): Ditto.
2819 (pop_stack_item): Ditto.
2820 (avr_push_dummy_call): Ditto.
2821 (struct stack_item): Define.
2822 (avr_frame_unwind): Declare structure.
2823 (avr_frame_base): Ditto.
2824 (avr_gdbarch_init): Remove calls to
2825 set_gdbarch_deprecated_init_frame_pc,
2826 set_gdbarch_deprecated_target_read_fp,
2827 set_gdbarch_deprecated_dummy_write_sp,
2828 set_gdbarch_deprecated_fp_regnum,
2829 set_gdbarch_deprecated_push_arguments,
2830 set_gdbarch_deprecated_push_return_address,
2831 set_gdbarch_deprecated_pop_frame,
2832 set_gdbarch_deprecated_store_struct_return,
2833 set_gdbarch_deprecated_frame_init_saved_regs,
2834 set_gdbarch_deprecated_init_extra_frame_info,
2835 set_gdbarch_deprecated_frame_chain,
2836 set_gdbarch_deprecated_frame_saved_pc,
2837 set_gdbarch_deprecated_saved_pc_after_call.
2838 Add calls to set_gdbarch_push_dummy_call,
2839 set_gdbarch_push_dummy_code,
2840 frame_unwind_append_predicate,
2841 frame_base_set_default,
2842 set_gdbarch_unwind_dummy_id,
2843 set_gdbarch_unwind_pc.
2844 Wrap a long line.
2845
7be04a68
MS
28462003-06-18 Corinna Vinschen <vinschen@redhat.com>
2847
2848 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2849 registers for H8/300S.
2850 (h8300_print_registers_info): Ditto.
8ffd9b1b 2851 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 2852
ae087d01
DJ
28532003-06-18 Daniel Jacobowitz <drow@mvista.com>
2854
2855 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2856 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2857 (lin_lwp_wait): Likewise. Update comments.
2858 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2859 (pull_pid_from_list, linux_record_stopped_pid): New.
2860
07d8f827
SC
28612003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2862
2863 * ada-lang.c (scan_discrim_bound): Name first argument.
2864 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2865 declared by ALL_BLOCK_SYMBOLS.
2866
7cb47b14
SC
28672003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2868
2869 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2870 ("regcache.h"): Include it.
2871 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2872
6ad8ae5c
DJ
28732003-06-17 Daniel Jacobowitz <drow@mvista.com>
2874
2875 * NEWS: Mention gdbserver detach change and "disconnect" command.
2876 * infcmd.c (disconnect_command): New function.
2877 (_initialize_infcmd): Add ``disconnect'' command.
2878 * remote.c (remote_async_detach): Delete.
2879 (remote_detach): Merge remote_async_detach.
2880 (remote_disconnect): New.
2881 (init_remote_ops): Set to_disconnect.
2882 (init_remote_cisco_ops): Likewise.
2883 (init_remote_async_ops): Likewise. Use remote_detach.
2884 * target.c (cleanup_target): Default to_disconnect.
2885 (update_current_target): Inherit to_disconnect.
2886 (target_disconnect, debug_to_disconnect): New functions.
2887 (setup_target_debug): Set to_disconnect.
2888 * target.h (struct target_ops): Add to_disconnect.
2889 (target_disconnect): Add prototype.
2890
687595f9
DJ
28912003-06-17 Daniel Jacobowitz <drow@mvista.com>
2892
2893 * breakpoint.c (insert_catchpoint): New function.
2894 (insert_breakpoints): Use catch_exceptions to call
2895 insert_catchpoint. Disable catchpoints if they fail to insert.
2896
29239a8f
DJ
28972003-06-17 Daniel Jacobowitz <drow@mvista.com>
2898
2899 * symfile.c (reread_symbols): Clear sym_private.
2900
2cdf3c63
AC
29012003-06-17 Andrew Cagney <cagney@redhat.com>
2902
2903 * trad-frame.h (struct frame_info): Add opaque declaration.
2904 * remote-fileio.h (struct cmd_list_element): Add opaque
2905 declaration.
2906 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2907 comments.
2908
cf0e1e0d
DJ
29092003-06-17 Daniel Jacobowitz <drow@mvista.com>
2910
2911 * remote.c (remote_prepare_to_store): Replace call to
2912 deprecated_read_register_bytes with multiple regcache_raw_read
2913 calls.
2914
192cdb19
KW
29152003-06-17 Kris Warkentin <kewarken@qnx.com>
2916
2917 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2918 (nto_find_and_open_solib): Likewise.
2919 (nto_init_solib_absolute_prefix): Likewise.
2920 (_initialize_nto_tdep): Fix indentation.
2921
89929b45
KW
29222003-06-17 Kris Warkentin <kewarken@qnx.com>
2923
2924 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2925
46019f27
KW
29262003-06-17 Kris Warkentin <kewarken@qnx.com>
2927
2928 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2929
1a38736e
JB
29302003-06-17 Jim Blandy <jimb@redhat.com>
2931
2932 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2933
3605c34a
TR
29342003-06-16 Theodore A. Roth <troth@openavr.org>
2935
2936 * avr-tdep.c (avr_extract_return_value): New function.
2937 (avr_gdbarch_init): Set extract_return_value method.
2938
870b3035
AC
29392003-06-16 Andrew Cagney <cagney@redhat.com>
2940
2941 * frame.h (deprecated_get_next_frame_hack): Declare.
2942 * frame.c (legacy_saved_regs_prev_register): Only require
2943 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2944 there are always saved regs.
2945 (deprecated_generic_get_saved_register): Do not require
2946 DEPRECATED_FRAME_INIT_SAVED_REGS.
2947 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2948 use frame ID unwind instead.
2949 (deprecated_get_next_frame_hack): New function.
2950
63d47a7d
CV
29512003-06-16 Corinna Vinschen <vinschen@redhat.com>
2952
2953 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2954 (h8300_push_dummy_call): ...this function. Some minor optimization.
2955 (h8300_push_return_address): Remove.
2956 (h8300_gdbarch_init): Remove calls to
2957 set_gdbarch_deprecated_dummy_write_sp,
2958 set_gdbarch_deprecated_push_arguments and
2959 set_gdbarch_deprecated_push_return_address.
2960 Add call to set_gdbarch_push_dummy_call.
2961
4bb1dc5e
CV
29622003-06-16 Corinna Vinschen <vinschen@redhat.com>
2963
2964 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2965 (E_PSEUDO_EXR_REGNUM): Ditto.
2966 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 2967 registers into safe registers.
4bb1dc5e
CV
2968 (h8300_skip_prologue): Check for stm instruction to push registers
2969 used for register variables onto stack.
2970 (gdb_print_insn_h8300): Remove.
2971 (h8300_examine_prologue): Add a comment.
2972 (h8300_register_name): Take pseudo registers into account.
2973 (h8300s_register_name): Ditto.
2974 (h8300sx_register_name): Ditto.
2975 (h8300_print_register): Ditto.
2976 (h8300_print_registers_info): Define "nice" printing order.
2977 (h8300_saved_pc_after_call): Take pseudo registers into account.
2978 (h8300_register_type): Ditto. Return type used for remote connection
2979 when requesting real CCR or EXR register, return actual type when
2980 requesting pseudo CCR or EXR.
2981 (h8300_pseudo_register_read): New function.
2982 (h8300_pseudo_register_write): Ditto.
2983 (h8300_dbg_reg_to_regnum): Ditto.
2984 (h8300s_dbg_reg_to_regnum): Ditto.
2985 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2986 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2987 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2988 set_gdbarch_print_insn architecture dependent.
2989 Call set_gdbarch_pseudo_register_read and
2990 set_gdbarch_pseudo_register_write.
2991 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2992
a59fe496
AC
29932003-06-16 Andrew Cagney <cagney@redhat.com>
2994
2995 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2996 * gdbarch.h, gdbarch.c: Re-generate.
2997 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2998 * s390-tdep.c (s390_gdbarch_init): Update.
2999 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3000 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3001 * mips-tdep.c (mips_gdbarch_init): Update.
3002 * mcore-tdep.c (mcore_gdbarch_init): Update.
3003 * cris-tdep.c (cris_gdbarch_init): Update.
3004 * infcall.c (call_function_by_hand): Update.
3005 * ia64-tdep.c (ia64_push_arguments): Update comment.
3006 * frame.c (legacy_get_prev_frame): Do not assume
3007 SAVE_DUMMY_FRAME_TOS_P.
3008 * dummy-frame.c (find_dummy_frame): Update comment.
3009
6f4e5a41
AC
30102003-06-16 Andrew Cagney <cagney@redhat.com>
3011
3012 * regcache.c (do_cooked_read): Do not use register_valid_p.
3013
72fab697
TR
30142003-06-15 Theodore A. Roth <troth@openavr.org>
3015
3016 * avr-tdep.c (avr_register_type): Remove a blank line.
3017 (avr_scan_prologue): Correct some comments.
3018
e3d8b004
TR
30192003-06-15 Theodore A. Roth <troth@openavr.org>
3020
3021 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3022 prologue types.
8ffd9b1b 3023 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
3024 option.
3025 Add code to scan -mcall-prologues for mega devices.
3026
866b76ea
TR
30272003-06-15 Theodore A. Roth <troth@openavr.org>
3028
3029 * avr-tdep.c (avr_register_byte): Delete function.
3030 (avr_register_raw_size): Delete function.
3031 (avr_register_virtual_size): Delete function.
3032 (avr_register_virtual_type): Delete function.
3033 (avr_register_type): New function.
3034 (avr_address_to_pointer): Remove unused code.
3035 (avr_read_fp): Need to read FP as two separate bytes due to change to
3036 avr_register_type() usage.
3037 (avr_gdbarch_init): Don't set deprecated_register_size.
3038 Don't set deprecated_register_bytes.
3039 Don't set deprecated_register_byte.
3040 Don't set deprecated_register_raw_size.
3041 Don't set deprecated_max_register_raw_size.
3042 Don't set deprecated_register_virtual_size.
3043 Don't set deprecated_max_register_virtual_size.
3044 Don't set deprecated_register_virtual_type.
3045 Set register_type method.
3046
3993f6b1
DJ
30472003-06-15 Daniel Jacobowitz <drow@mvista.com>
3048
3049 * Makefile.in (linux-nat.o): Add rule.
3050 * linux-nat.c: New file.
3051 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3052 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3053 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3054 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3055 * config/arm/linux.mh (NATDEPFILES): Likewise.
3056 * config/i386/linux.mh (NATDEPFILES): Likewise.
3057 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3058 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3059 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3060 * config/mips/linux.mh (NATDEPFILES): Likewise.
3061 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3062 * config/s390/s390.mh (NATDEPFILES): Likewise.
3063 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3064
786a90bb
MK
30652003-06-15 Mark Kettenis <kettenis@gnu.org>
3066
3067 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3068 replace out-of-date comment.
3069
3bd3f01e
AC
30702003-06-15 Andrew Cagney <cagney@redhat.com>
3071
3072 * rdi-share/host.h (Fail): Change to a varargs function.
3073 * remote-rdi.c (Fail): Update.
8ffd9b1b 3074
de5b9bb9
MK
30752003-06-15 Mark Kettenis <kettenis@gnu.org>
3076
3077 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3078 (i386_convert_register_p, i386_register_to_value,
3079 i386_register_from_value): Handle types longer than 8 bytes.
3080
d532c08f
MK
30812003-06-15 Mark Kettenis <kettenis@gnu.org>
3082
3083 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3084 Move floating-point code to new function in i387-tdep.c.
3085 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3086 New functions containing code moved here from i386-tdep.c.
3087 * i387-tdep.h: Add opaque declaration for `struct type'.
3088 (i387_register_to_value, i387_value_to_register): New prototypes.
3089 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3090 (x86_64_init_abi): Set convert_register_p, register_to_value and
3091 value_to_register here.
8ffd9b1b 3092
42c466d7
AC
30932003-06-14 Andrew Cagney <cagney@redhat.com>
3094
3095 * mips-tdep.c (mips_register_to_value): Make static.
3096 (mips_value_to_register): Make static.
3097 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3098 * ia64-tdep.c (ia64_register_raw_size): Make static.
3099 (ia64_register_virtual_size): Make static.
3100 (ia64_register_byte): Make static.
3101 * i387-tdep.c: Include "i387-tdep.h".
3102 (print_387_control_word): Delete function.
3103 (print_387_status_word): Delete function.
3104 (print_387_status_bits): Delete function.
3105 (print_387_control_bits): Delete function.
3106 * Makefile.in (i387-tdep.o): Update dependencies.
3107 * rdi-share/host.h (Fail): Declare.
3108 * remote-rdi.c (Fail): Update to match declaration.
3109
2a9cda49
AC
31102003-06-14 Andrew Cagney <cagney@redhat.com>
3111
3112 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3113 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3114 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3115 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3116 * README: Delete reference to remote-array.
3117 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3118 (remote-array.o): Delete target.
3119 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3120 * remote-array.c: Delete file.
3121
ff2e87ac
AC
31222003-06-14 Andrew Cagney <cagney@redhat.com>
3123 Mark Kettenis <kettenis@gnu.org>
3124
3125 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3126 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3127 parameter with "frame".
3128 * gdbarch.h, gdbarch.c: Re-generate.
3129 * frame.h (put_frame_register): Declare.
3130 * frame.c (put_frame_register): New function.
3131 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3132 (legacy_register_to_value): Rewrite, use "frame" to get the
3133 register value.
3134 (legacy_value_to_register): Rewrite, use "frame" to find the
3135 register's location before storing.
3136 * arch-utils.h (legacy_convert_register_p): Update.
3137 (legacy_register_to_value, legacy_value_to_register): Update.
3138 * findvar.c (value_from_register): Rewrite, eliminate use of
3139 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3140 "frame" to REGISTER_TO_VALUE.
3141 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3142 lval_reg_frame_relative + lval_register branch of the switch. Do
3143 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3144 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3145 I386_EDI_REGNUM): New defines.
3146 (i386_next_regnum, i386_convert_register_p,
3147 i386_register_to_value, i386_value_to_register): New functions.
3148 (i386_register_convertible, i386_register_convert_to_virtual,
3149 i386_convert_to_raw): Remove functions.
3150 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3151 value_to_register instead of register_convertible,
3152 register_convert_to_virtual and register_convert_to_raw.
3153 * mips-tdep.c (mips_convert_register_p): New function.
3154 (mips_value_to_register): Replace mips_register_convert_from_type.
3155 (mips_register_to_value): Replace mips_register_convert_to_type.
3156 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3157 register_to_value.
3158 * alpha-tdep.c (alpha_convert_register_p): Update.
3159 (alpha_value_to_register): Update, store the register.
3160 (alpha_register_to_value): Update, fetch the register.
3161
98be1e77
TR
31622003-06-14 Theodore A. Roth <troth@openavr.org>
3163
3164 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3165 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3166 Don't set deprecated_call_dummy_words.
3167 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3168 Don't set remote_translate_xfer_address.
3169 (avr_io_reg_read_command): Remove commented out debug printf.
3170 Wrap a long line.
3171
57bc6122
TR
31722003-06-14 Theodore A. Roth <troth@openavr.org>
3173
3174 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3175 causes gdb to seg fault.
3176
eb01fc62
DJ
31772003-06-14 Daniel Jacobowitz <drow@mvista.com>
3178
3179 * sparc-nat.c (fetch_inferior_registers): Correct
3180 a reference to "registers".
3181
3b3e6bee
DJ
31822003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3183
3184 * Makefile.in (exc_request_U_h): Define
3185 (exc_request_S_h): Likewise.
3186 (msg_reply_S_h): Likewise.
3187 (msg_U_h): Likewise.
3188 (notify_S_h): Likewise.
3189 (process_reply_S_h): Likewise.
3190 (gnu-nat.o): Depend on gdb_obstack_h
3191 * gnu-nat.c: Include "gdb_obstack.h".
3192
b8de8283
AC
31932003-06-13 Andrew Cagney <cagney@redhat.com>
3194
3195 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3196 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 3197
f3be58bc
AC
31982003-06-13 Andrew Cagney <cagney@redhat.com>
3199
3200 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3201 when deprecated REGISTER macros can be deleted.
3202 * gdbarch.h, gdbarch.c: Re-generate.
3203
4c0122c8
JB
32042003-06-13 Jim Blandy <jimb@redhat.com>
3205
3206 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3207 Linux entry point symbols for _dl_debug_state, too.
3208
3e210248
AC
32092003-06-13 Andrew Cagney <cagney@redhat.com>
3210
3211 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3212 available, do not use the FP register, and always save the TOS.
3213 * dummy-frame.c (dummy_frame_this_id): Do not assert
3214 SAVE_DUMMY_FRAME_TOS.
3215 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3216 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3217 (i386_push_dummy_call): Add 8 to the returned SP.
3218 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3219 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3220 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3221 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3222 (x86_64_push_dummy_call): Return "sp + 16".
3223 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3224 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3225 save_dummy_frame_tos.
3226
0b65af49
JB
32272003-06-13 Jim Blandy <jimb@redhat.com>
3228
3229 * frv-tdep.c (frv_use_struct_convention): Delete static
3230 declaration for function deleted in my change of 2003-06-12.
3231
4ea2465e
TR
32322003-06-13 Theodore A. Roth <troth@openavr.org>
3233
3234 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3235 (avr_pointer_to_address): Shift code addrs left 1 bit.
3236 (avr_convert_from_func_ptr_addr): Delete function since operation is
3237 better handled by avr_address_to_pointer and avr_pointer_to_address.
3238 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3239
1581182a
MK
32402003-06-13 Mark Kettenis <kettenis@gnu.org>
3241
3242 From Kelley Cook <kelleycook@wideopenwest.com>:
3243 * configure.host: Accept i[34567]86 variants.
3244 * configure.tgt: Likewise.
3245 * nlm/configure.in: Likewise.
3246 * nlm/configure: Regenerated.
3247
7aa1783e
RE
32482003-06-13 Richard Earnshaw <rearnsha@arm.com>
3249
3250 * arm-tdep.c (solib-svr4.h): Dont' include it.
3251 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3252 * arm-linux-tdep.c: ... here. Make static.
3253 (arm_linux_init_abi): Register it.
3254 (solib-svr4.h): Include it.
3255 * Makefile.in: Update dependencies.
3256 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3257 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3258
0261a0d0
CV
32592003-06-13 Corinna Vinschen <vinschen@redhat.com>
3260
3261 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3262 indicate registers used for return values.
3263 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3264 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3265 members.
3266 (h8300_init_extra_frame_info): Ditto.
3267 (h8300_frame_locals_address): Removed.
3268 (h8300_frame_args_address): Removed.
3269 (h8300_extract_return_value): Use new regcache structure. Only care
3270 for 16 bit CPUs.
3271 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3272 (h8300_store_return_value): Use new regcache structure. Only care
3273 for 16 bit CPUs.
3274 (h8300h_store_return_value): Same function for 32 bit CPUs.
3275 (h8300_store_struct_return): Removed.
3276 (h8300_extract_struct_value_address): Use new regcache structure.
3277 (h8300h_extract_struct_value_address): Removed.
3278 (h8300_push_dummy_code): New function.
3279 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3280 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3281 set_gdbarch_store_return_value architecture dependent.
3282 Call set_gdbarch_push_dummy_code and
3283 set_gdbarch_extract_struct_value_address.
3284 Remove calls to set_gdbarch_frame_args_address,
3285 set_gdbarch_frame_locals_address,
3286 set_gdbarch_deprecated_store_struct_return,
3287 set_gdbarch_deprecated_extract_return_value,
3288 set_gdbarch_deprecated_extract_struct_value_address,
3289 set_gdbarch_deprecated_call_dummy_words and
3290 set_gdbarch_deprecated_sizeof_call_dummy_words.
3291
055c394a
CV
32922003-06-13 Corinna Vinschen <vinschen@redhat.com>
3293
3294 * h8300-tdep.c (h8300_register_byte): Remove.
3295 (h8300h_register_byte): Remove.
3296 (h8300_register_virtual_type): Remove. Substitute by...
3297 (h8300_register_type): New function.
3298 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3299 (h8300h_extract_struct_value_address): Ditto.
3300 (h8300_gdbarch_init): Drop calls to
3301 set_gdbarch_deprecated_register_byte and
3302 set_gdbarch_deprecated_register_virtual_type.
3303 Add call to set_gdbarch_register_type.
3304
9c04cab7
AC
33052003-06-13 Andrew Cagney <cagney@redhat.com>
3306
3307 * gdbarch.sh: Update comments on registers.
3308 (deprecated_register_byte): Rename register_byte.
3309 (deprecated_register_raw_size): Rename register_raw_size.
3310 (deprecated_register_virtual_size): Rename register_virtual_size.
3311 (deprecated_register_virtual_type): Rename register_virtual_type.
3312 * gdbarch.h, gdbarch.c: Re-generate.
3313 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3314 * vax-tdep.c (vax_gdbarch_init): Update.
3315 * v850-tdep.c (v850_gdbarch_init): Update.
3316 * sparc-tdep.c (sparc_gdbarch_init): Update.
3317 * sh-tdep.c (sh_gdbarch_init): Update.
3318 * s390-tdep.c (s390_gdbarch_init): Update.
3319 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3320 * ns32k-tdep.c: Update.
3321 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3322 * mips-tdep.c (mips_gdbarch_init): Update.
3323 * mcore-tdep.c (mcore_gdbarch_init): Update.
3324 * m68k-tdep.c (m68k_gdbarch_init): Update.
3325 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3326 * ia64-tdep.c (ia64_gdbarch_init): Update.
3327 * hppa-tdep.c (hppa_gdbarch_init): Update.
3328 * h8300-tdep.c (h8300_gdbarch_init): Update.
3329 * frv-tdep.c (frv_gdbarch_init): Update.
3330 * cris-tdep.c (cris_gdbarch_init): Update.
3331 * avr-tdep.c (avr_gdbarch_init): Update.
3332 * alpha-tdep.c (alpha_gdbarch_init): Update.
3333 * arm-tdep.c (arm_gdbarch_init): Update.
3334
b060cbea
AC
33352003-06-13 Andrew Cagney <cagney@redhat.com>
3336
3337 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3338 mips_o32_use_struct_convention with always_use_struct_convention.
3339
0fc9922a
DC
33402003-06-12 David Carlton <carlton@kealia.com>
3341
3342 * cp-namespace.c (cp_set_block_scope): Comment out
3343 processing_has_namespace_info branch.
3344
1fd35568
JB
33452003-06-12 Jim Blandy <jimb@redhat.com>
3346
f470a70a
JB
3347 Recognize and skip 64-bit PowerPC Linux linkage functions.
3348 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3349 insn_pattern, insns_match_pattern, d_field, ds_field): New
3350 functions, macros, and types for working with PPC instructions.
3351 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3352 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3353 ppc64_skip_trampoline_code): New functions, variables, and macros
3354 for recognizing and skipping linkage functions.
3355 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3356 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3357
49ff75ad
JB
3358 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3359 register offsets for both the 32- and 64-bit interfaces.
3360
bd918c83
JB
3361 Actually finish the job started by my change of 2003-05-29.
3362 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3363 other #definition of this.
3364 (ppc_linux_skip_trampoline_code): Remove declaration.
3365 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3366 static.
3367 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3368 method for GDBARCH.
3369
3370 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3371 'long' on ppc64-*-linux*.
3372
f8c59253
JB
3373 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3374 isn't #defined, assume the register doesn't exist: act as if
3375 tdep->ppc_mq_regnum were -1.
3376
8fbb30b1
JB
3377 * configure.host, configure.tgt: Add entries for
3378 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3379 powerpc/linux.mt.
3380 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3381 New files.
3382
1fd35568
JB
3383 * arch-utils.c (always_use_struct_convention): New function.
3384 * arch-utils.h (always_use_struct_convention): New prototype.
3385 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3386 (alpha_gdbarch_init): Register always_use_struct_convention,
3387 instead of alpha_use_struct_convention.
3388 * cris-tdep.c (cris_use_struct_convention): Delete.
3389 (cris_gdbarch_init): Register always_use_struct_convention,
3390 instead of cris_use_struct_convention.
3391 * frv-tdep.c (frv_use_struct_convention): Delete.
3392 (frv_gdbarch_init): Register always_use_struct_convention,
3393 instead of frv_use_struct_convention.
3394 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3395 (h8300_gdbarch_init): Register always_use_struct_convention,
3396 instead of h8300_use_struct_convention.
e3305dd9 3397 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
3398 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3399 instead of mips_o32_use_struct_convention.
3400
e14e6e9c
AC
34012003-06-12 Andrew Cagney <cagney@redhat.com>
3402
3403 * wince.c: Include "mips-tdep.h".
3404 * mips-tdep.h (mips_next_pc): Declare.
3405 * mcore-tdep.c: Make more local functions static.
3406 * Makefile.in (wince.o): Update dependencies.
3407
2335f48e
DC
34082003-06-12 David Carlton <carlton@kealia.com>
3409
3410 * symtab.c (lookup_symbol_aux_minsyms): Replace
3411 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3412 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3413 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3414 SYMBOL_NATURAL_NAME.
3415
f70a7d61
AS
34162003-06-12 Andreas Schwab <schwab@suse.de>
3417
3418 * Makefile.in (tuiDisassem.o): Update dependencies.
3419
b6429628
DC
34202003-06-12 David Carlton <carlton@bactrian.org>
3421
3422 * symtab.h: Delete declaration of make_symbol_overload_list.
3423 Add declaration of lookup_partial_symbol.
3424 * symtab.c (remove_params): Move to cp-support.c.
3425 (overload_list_add_symbol, make_symbol_overload_list)
3426 (sym_return_val_size, sym_return_val_index): Ditto.
3427 (lookup_partial_symbol): Make extern.
3428 * cp-support.h: Add declaration of make_symbol_overload_list.
3429 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3430 symtab.h, and block.h.
3431 (remove_params): Move here from symtab.c.
3432 (overload_list_add_symbol, make_symbol_overload_list)
3433 (sym_return_val_size, sym_return_val_index): Ditto.
3434 * valops.c: Include cp-support.h.
3435 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3436 frame_h, and block_h.
3437 (valops.o): Depend on cp_support_h.
3438
084edea5
CV
34392003-06-12 Corinna Vinschen <vinschen@redhat.com>
3440
3441 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3442 substitute by NUM_REGS throughout.
3443 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3444 (h8300s_register_name): New function for H8S registers.
3445 (h8300sx_register_name): Ditto for H8SX registers.
3446 (h8300_print_register): Revise register printing, avoid depending
3447 on 32 bit long.
0261a0d0 3448 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
3449 (h8300h_register_byte): New function for any other architecture.
3450 (h8300_register_raw_size): Remove.
3451 (h8300_register_virtual_type): Revise to return actually useful
3452 type.
3453 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3454 (h8300h_extract_struct_value_address): New function for any other
3455 architecture.
3456 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3457 set_gdbarch_register_name, set_gdbarch_register_byte,
3458 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3459 Remove calls to set_gdbarch_deprecated_register_size,
3460 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3461 set_gdbarch_deprecated_max_register_raw_size,
3462 set_gdbarch_register_virtual_size and
3463 set_gdbarch_deprecated_max_register_virtual_size entirely.
3464 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3465 set_gdbarch_long_double_bit.
3466
06194148
JJ
34672003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3468
8ffd9b1b
AJ
3469 * doublest.c (convert_doublest_to_floatformat): When dealing
3470 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
3471 processing a full 32 bits of mantissa.
3472
de4f826b
DC
34732003-06-11 David Carlton <carlton@bactrian.org>
3474
3475 * dictionary.h: New.
3476 * dictionary.c: New.
3477 * block.h: Add opaque declaration for struct dictionary.
3478 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3479 'sym' members.
3480 (BLOCK_DICT): New macro.
3481 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3482 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3483 BLOCK_SHOULD_SORT.
3484 (ALL_BLOCK_SYMBOLS): Update definition.
3485 * Makefile.in (SFILES): Add dictionary.c.
3486 (dictionary_h): New.
3487 (COMMON_OBS): Add dictionary.o.
3488 (dictionary.o): New.
3489 (ada-lang.o): Depend on dictionary_h.
3490 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3491 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3492 (mi-cmd-stack.o): Ditto.
3493 (gdbtk-cmds.o): Update dependencies.
3494 (gdbtk-stack.o): Ditto.
3495 * ada-lang.c: Include dictionary.h.
3496 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3497 (fill_in_ada_prototype, debug_print_block): Ditto.
3498 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3499 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3500 'is_sorted'.
3501 * mdebugread.c: Include dictionary.h.
3502 (struct parse_stack): Delete 'maxsyms' member.
3503 (parse_symbol): Update calls to new_block. Delete calls to
3504 shrink_block. Use dictionary methods.
3505 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3506 Update calls to new_symtab. Don't maintain maxsyms data.
3507 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3508 (add_symbol): Just call dict_add_symbol.
3509 (new_symtab): Delete 'maxsyms' argument.
3510 (new_symtab): Update calls to new_block.
3511 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3512 (shrink_block): Delete function.
3513 (fixup_sigtramp): Update call to new_block. Add symbol via
3514 dict_add_symbol.
3515 * jv-lang.c: Include dictionary.h.
3516 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3517 appropriately. Set class_symtab->free_func. Make sure the
3518 blockvector is big enough to hold two blocks.
3519 (add_class_symtab_symbol): Use dictionary methods.
3520 (free_class_block): New function.
3521 (type_from_class): Replace explicit iteration by
3522 ALL_BLOCK_SYMBOLS.
3523 * symtab.h (struct symtab): Replace 'free_ptr' method by
3524 'free_func'.
3525 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3526 sort_symtab_syms.
3527 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3528 sort_symtab_syms.
3529 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3530 Include dictionary.h.
3531 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3532 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3533 sort_symtab_syms.
3534 * objfiles.c: Include dictionary.h.
3535 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3536 * buildsym.c: Include dictionary.h.
3537 (finish_block): Use dictionary methods.
3538 (end_symtab): Set free_func to NULL, not free_ptr.
3539 * tracepoint.c: Include dictionary.h.
3540 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3541 (scope_info): Ditto.
3542 * stack.c: Include dictionary.h.
3543 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3544 (print_block_frame_labels, print_frame_arg_vars)
3545 (print_frame_args): Ditto.
3546 * symmisc.c (free_symtab_block): Use dictionary methods.
3547 (dump_symtab): Ditto.
3548 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3549 Include dictionary.h.
3550 * symfile.h: Delete declarations of sort_block_syms,
3551 sort_symtab_syms.
3552 * symfile.c (sort_block_syms): Delete.
3553 (sort_symtab_syms): Delete.
3554 * symtab.c: Include dictionary.h.
3555 (lookup_block_symbol): Use dictionary iterators.
3556 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3557 (search_symbols, make_symbol_completion_list): Ditto.
3558 (make_symbol_overload_list): Ditto.
3559 * valops.c (value_of_local): Use dict_empty.
3560 Include dictionary.h.
3561
a31f978c
JB
35622003-06-11 J. Brobecker <brobecker@gnat.com>
3563
3564 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3565
526e70c0
DC
35662003-06-11 David Carlton <carlton@bactrian.org>
3567
3568 * block.h (BLOCK_SHOULD_SORT): Delete.
3569 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3570 blocks.
3571 * ada-lang.c (ada_add_block_symbols): Ditto.
3572 * symfile.c (sort_block_syms): Delete.
3573 (sort_symtab_syms): Ditto.
3574 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3575 declarations.
3576 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3577 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3578 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3579 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3580 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3581 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3582 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3583
33c08150
JJ
35842003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3585
8ffd9b1b 3586 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
3587 bits to 128.
3588
781a750d
AC
35892003-06-11 Andrew Cagney <cagney@redhat.com>
3590
3591 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3592 REGISTER_CONVERTIBLE.
3593 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3594 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3595 * gdbarch.h, gdbarch.c: Re-generate.
3596 * arch-utils.h (deprecated_register_convertible_not): Rename
3597 generic_register_convertible_not.
3598 * arch-utils.c (deprecated_register_convertible_not): Rename
3599 generic_register_convertible.
3600 (legacy_convert_register_p, legacy_register_to_value): Update.
3601 * sh-tdep.c (sh64_push_arguments): Update.
3602 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3603 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3604 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3605 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3606 * arch-utils.c (legacy_value_to_register): Update.
3607 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3608 (rs6000_register_convert_to_raw): Make parameter "from" const.
3609 * mips-tdep.c (mips_gdbarch_init): Update.
3610 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3611 * infcmd.c (default_print_registers_info): Update.
3612 * ia64-tdep.c (ia64_gdbarch_init): Update.
3613 (ia64_register_convert_to_raw): Make parameter "from" const.
3614 * i386-tdep.c (i386_gdbarch_init): Update.
3615 (i386_register_convert_to_raw): Update.
3616
cd90e54f
AC
36172003-06-11 Andrew Cagney <cagney@redhat.com>
3618
3619 * remote-fileio.c: Include "remote-fileio.h".
3620 * Makefile.in (remote-fileio.o): Update dependencies.
3621 (remote_fileio_h): Fix typo.
3622
a78f21af
AC
36232003-06-11 Andrew Cagney <cagney@redhat.com>
3624
3625 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3626 (xstormy16_save_dummy_frame_tos): Make static.
3627 (_initialize_xstormy16_tdep): Add declaration.
3628 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3629 * v850-tdep.c: Make local functions static.
3630 (_initialize_v850_tdep): Add declaration.
3631 * sparc-tdep.c: Make local functions static.
3632 (_initialize_sparc_tdep): Add declaration.
3633 * sh-tdep.c: Make local functions static.
3634 (_initialize_sh_tdep): Add declaration.
3635 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3636 * s390-tdep.c: Make local functions static.
3637 (_initialize_s390_tdep): Add declaration.
3638 * dbxread.c (find_stab_function_addr): Make static.
3639 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3640 * ocd.c (_initialize_remote_ocd): Add declaration.
3641 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3642 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3643 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3644 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3645 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3646 * remote-array.c (_initialize_array): Add declaration.
3647 (_initialize_remote_monitors): Add declaration.
3648 * remote-mips.c: Make local functions static.
3649 (_initialize_remote_mips): Add declaration.
3650 * mcore-tdep.c: Make all local functions static.
3651 (_initialize_mcore_tdep): Add declaration.
3652 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3653 * abug-rom.c (_initialize_abug_rom): Add declaration.
3654 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3655 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3656 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3657 * remote-est.c (_initialize_est): Add declaration.
3658 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3659 (m68hc11_call_dummy_address): Make static.
3660 * ia64-tdep.c: Make local functions static.
3661 (_initialize_ia64_tdep): Add declaration.
3662 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3663 * monitor.c (monitor_wait_filter): Make static.
3664 (_initialize_remote_monitors): Add declaration.
3665 * remote-hms.c (_initialize_remote_hms): Add declaration.
3666 * remote-e7000.c (fetch_regs_from_dump): Make static.
3667 (expect_n): Make static.
3668 (_initialize_remote_e7000): Add declaration.
3669 * ser-e7kpc.c: Always include "defs.h".
3670 (_initialize_ser_e7000pc): Add declaration.
3671 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3672 * cris-tdep.c: Make all but one function static.
3673 (_initialize_cris_tdep): Add declaration.
3674 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3675 * solib.c (update_solib_list): Make static.
3676 (_initialize_solib): Add declaration.
3677 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3678 (_initialize_avr_tdep): Add declaration.
3679 * remote-rdi.c (voiddummy): Make static.
3680 (_initialize_remote_rdi): Add declaration.
3681 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3682 * remote-rdp.c (send_rdp): Make static.
3683 (_initialize_remote_rdp): Add declaration.
3684 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3685
cbcdb1f5
CV
36862003-06-11 Corinna Vinschen <vinschen@redhat.com>
3687
3688 * remote-fileio.c: Make ari happy.
3689
a191ea8d
JB
36902003-06-10 J. Brobecker <brobecker@gnat.com>
3691
3692 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3693 fetching the trailing bytes of the buffer we are about to write.
3694
0ef75e11
AC
36952003-06-10 Andrew Cagney <cagney@redhat.com>
3696
3697 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3698 * Makefile.in (remote-fileio.o): Update dependencies.
3699 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3700 include <setjmp.h>, or <sys/types.h> conditional on USG.
3701 (remote_fio_jmp_buf): Delete global variable.
3702
449092f6 37032003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 3704 Martin M. Hunt <hunt@redhat.com>
449092f6 3705
559fa028
AC
3706 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3707 (SFILES): Add remote-fileio.c.
3708 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3709 dependencies for building remote.o.
449092f6
CV
3710 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3711 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 3712 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
3713 static storage class.
3714 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3715 'F' packet.
3716 (_initialize_remote): Call initialize_remote_fileio().
3717 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
3718 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3719 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3720 (captured_main): Initialize new ui_files.
3721 * ui-file.c: Add read and fgets input functions.
3722 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3723 (null_file_read): New function.
3724 (ui_file_read): New function.
3725 (set_ui_file_read): New function.
3726 (stdio_file_read): New function.
3727 * ui-file.h: New type ui_file_read_ftype.
3728 (set_ui_file_read): Declare.
3729 (ui_file_read): Declare.
3730
248de703
AC
37312003-06-09 Andrew Cagney <cagney@redhat.com>
3732
3733 * frame.h (deprecated_unwind_get_saved_register): Rename
3734 generic_unwind_get_saved_register, update comments.
3735 * mips-tdep.c (mips_get_saved_register): Update.
3736 * frame.c (deprecated_unwind_get_saved_register): Update.
3737
0ed8aa57
AC
37382003-06-09 Andrew Cagney <cagney@redhat.com>
3739
3740 * vax-tdep.c (vax_frame_locals_address): Delete function.
3741 (vax_gdbarch_init): Do not set frame_locals_address.
3742 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3743 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3744 * s390-tdep.c (s390_frame_args_address): Delete function.
3745 (s390_gdbarch_init): Do not set frame_args_address or
3746 frame_locals_address.
3747 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3748 (ns32k_gdbarch_init): Do not set frame_locals_address.
3749 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3750 (hppa_frame_locals_address): Delete function.
3751 (hppa_gdbarch_init): Do not set frame_args_address, or
3752 frame_locals_address.
3753 * arm-tdep.c (arm_frame_args_address): Delete.
3754 (arm_frame_locals_address): Delete.
3755 (arm_gdbarch_init): Do not set frame_args_address, or
3756 frame_locals_address.
3757
983a287a
AC
37582003-06-09 Andrew Cagney <cagney@redhat.com>
3759
3760 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3761 * gdbarch.h, gdbarch.c: Re-generate.
3762 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3763 * arch-utils.c (frame_num_args_unknown): Delete function.
3764 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3765 (frame_info): Use FRAME_NUM_ARGS_P.
3766 * arm-tdep.c (arm_frame_num_args): Delete function.
3767 (arm_gdbarch_init): Do not set frame_num_args.
3768 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3769 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3770 (hppa_gdbarch_init): Do not set frame_num_args.
3771 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3772 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3773 frame_num_args to default frame_num_args_unknown.
3774 * v850-tdep.c (v850_gdbarch_init): Ditto.
3775 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3776 * sh-tdep.c (sh_gdbarch_init): Ditto.
3777 * s390-tdep.c (s390_gdbarch_init): Ditto.
3778 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3779 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3780 * mips-tdep.c (mips_gdbarch_init): Ditto.
3781 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3782 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3783 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3784 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3785 * i386-tdep.c (i386_gdbarch_init): Ditto.
3786 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3787 * frv-tdep.c (frv_gdbarch_init): Ditto.
3788 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3789 * cris-tdep.c (cris_gdbarch_init): Ditto.
3790 * avr-tdep.c (avr_gdbarch_init): Ditto.
3791 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3792
8d3b0994
AC
37932003-06-09 Andrew Cagney <cagney@redhat.com>
3794
3795 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3796 (print_frame_args): Moved to "stack.c".
3797 * stack.c: Include "gdb_assert.h".
3798 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3799 (print_frame_args): Moved from "printcmd.c".
3800 * frame.h (print_frame_args): Delete declaration.
3801 * Makefile.in (stack.o): Update dependencies.
3802
25e3a86b
AC
38032003-06-08 Andrew Cagney <cagney@redhat.com>
3804
3805 * frame.c (get_prev_frame): Remove reference to
3806 frame_args_address_correct in comments.
3807 * frame-base.c (default_frame_args_address): Delete code
3808 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3809 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3810 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3811 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3812 (vax_frame_args_address_correct): Delete declaration.
3813
a9e5fdc2
AC
38142003-06-08 Andrew Cagney <cagney@redhat.com>
3815
3816 * gdbarch.sh (UNWIND_SP): Add.
3817 * gdbarch.h, gdbarch.c: Re-generate.
3818 * frame.c (frame_sp_unwind): New function.
3819 (get_frame_sp): New function.
3820 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3821 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3822 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3823 value.
3824 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3825 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3826
8983bd83
AC
38272003-06-08 Andrew Cagney <cagney@redhat.com>
3828
7fec2c59
AC
3829 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3830 REMOTE_BREAKPOINT.
3831 * remote.c: Update.
3832 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3833 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3834 * config/m68k/tm-sun3.h: Update.
3835 * config/m68k/tm-m68klynx.h: Update.
3836 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3837
8983bd83
AC
3838 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3839 trad_frame". Update comments.
3840 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3841 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3842 (trad_frame_register_value, trad_frame_prev_register): Update.
3843
b9362cc7
AC
38442003-06-08 Andrew Cagney <cagney@redhat.com>
3845
3846 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3847 from GCC's acinclude.m4.
3848 * configure.in: Check for getopt's delcaration.
8ffd9b1b 3849 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
3850 * main.c (error_init): Delete declaration.
3851 * defs.h (error_init): Declare.
3852 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3853 (rs6000_convert_from_func_ptr_addr): Make static.
3854 (_initialize_rs6000_tdep): Add declaration.
3855 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3856 (show_commands, set_verbose, show_history): Delete declaration.
3857 * top.h (set_verbose): Add declaration.
3858 (show_history, set_history, show_commands): Add declaration.
3859 (do_restore_instream_cleanup): Add declaration.
3860 * objc-lang.c (specialcmp): Make static.
3861 (print_object_command): Make static.
3862 (find_objc_msgsend): Make static.
3863 (find_objc_msgcall_submethod_helper): Make static.
3864 (find_objc_msgcall_submethod): Make static.
3865 (_initialize_objc_language): Add declaration.
3866 (find_implementation_from_class): Make static.
3867 (find_implementation): Make static.
3868 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3869 * objc-lang.h (lookup_struct_typedef): Add declaration.
3870 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3871 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3872 (do_restore_user_call_depth): Make static.
3873 (do_restore_instream_cleanup): Delete declaration.
3874 (dont_repeat): Delete declaration.
3875 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3876 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3877 * reggroups.c (_initialize_reggroup): Add declaration.
3878 * cp-support.c (_initialize_cp_support): Add declaration.
3879 * cp-abi.c (_initialize_cp_abi): Add declaration.
3880 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3881 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3882 (_initialize_gnu_v3_abi): Add declaration.
3883 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3884 (_initialize_gnu_v2_abi): Add declaration.
3885 * frame-base.c (_initialize_frame_base): Add declaration.
3886 * doublest.c (floatformat_from_length): Make static.
3887 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3888 * frame.c (create_sentinel_frame): Make static.
3889 (_initialize_frame): Add declaration.
3890 * top.c (do_catch_errors): Make static.
3891 (gdb_rl_operate_and_get_next_completion): Make static.
3892 * typeprint.c: Include "typeprint.h".
3893 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3894 (sentinel_frame_this_id): Make static.
3895 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3896 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3897 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3898 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3899 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3900 * maint.c (maintenance_print_architecture): Make static.
3901 * signals/signals.c (_initialize_signals): Add declaration.
3902 * std-regs.c (_initialize_frame_reg): Add declaration.
3903 * jv-exp.y (push_variable): ISO C definition.
3904 (push_qualified_expression_name): Ditto.
3905 * memattr.c (_initialize_mem): Add declaration.
3906 * remote.c (remote_check_watch_resources): Make static.
3907 (remote_stopped_by_watchpoint): Make static.
3908 (remote_stopped_data_address): Make static.
3909 * d10v-tdep.c (nr_dmap_regs): Make static.
3910 (a0_regnum): Make static.
3911 (d10v_frame_unwind_cache): Make static.
3912 (d10v_frame_p): Make static.
3913 * osabi.c (show_osabi): Make static.
3914 (_initialize_gdb_osabi): Add extern declaration.
3915 * gdbtypes.c (make_qualified_type): Make static.
3916 (safe_parse_type): Make static.
3917 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3918 * macrotab.c (macro_bcache_free): Make static.
3919 * interps.c (interp_set_quiet): Make static.
3920 (interpreter_exec_cmd): Make static.
3921 * stack.h (select_frame_command): New file.
3922 * stack.c: Include "stack.h".
3923 (select_frame_command_wrapper): Delete function.
3924 (select_frame_command): Make global.
3925 * infcall.c: Include "infcall.h".
3926 * linespec.c: Include "linespec.h".
3927 * symfile.c (sections_overlap): Make static.
3928 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3929 * charset.c (_initialize_charset): Add missing prototype.
3930 * regcache.c (init_legacy_regcache_descr): Make static.
3931 (do_regcache_xfree): Make static.
3932 (regcache_xfer_part): Make static.
3933 (_initialize_regcache): Add missing prototype.
3934 * breakpoint.c (parse_breakpoint_sals): Make static.
3935 (breakpoint_sals_to_pc): Make static.
3936 * interps.h (clear_interpreter_hooks): ISO C declaration.
3937 * Makefile.in (stack_h): Define.
3938 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3939 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3940
a0f267c7
AC
39412003-06-08 Andrew Cagney <cagney@redhat.com>
3942
3943 * Makefile.in (d10v-tdep.o): Update dependencies.
3944 (SFILES): Add trad-frame.c.
3945 (trad_frame_h): Define.
3946 (COMMON_OBS): Add trad-frame.o.
3947 (trad-frame.o): Specify dependencies.
3948 * d10v-tdep.c: Include "trad-frame.h".
3949 (saved_regs_unwinder): Delete function.
3950 (d10v_frame_prev_register): Use trad_frame_prev_register.
3951 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3952 trad_frame", delete "regs" and "prev_sp".
3953 (prologue_find_regs): Use trad-frame.
3954 * trad-frame.h, trad-frame.c: New files.
3955
4538b4f4
MK
39562003-06-08 Mark Kettenis <kettenis@gnu.org>
3957
3958 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3959
a0273b2f
AF
39602003-06-07 Adam Fedor <fedor@gnu.org>
3961
3962 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3963 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3964 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3965 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 3966 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
3967 Use it.
3968
3a6c3343
AC
39692003-06-07 Andrew Cagney <cagney@redhat.com>
3970
3971 * symfile.h: Re-indent, clean up comments.
3972
b46e02f6
AC
39732003-06-07 Andrew Cagney <cagney@redhat.com>
3974
3975 * inferior.h (deprecated_write_sp): Replace
3976 generic_target_write_sp.
3977 * regcache.c (deprecated_write_sp): Replace
3978 generic_target_write_sp.
3979 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3980 * vax-tdep.c (vax_gdbarch_init): Update.
3981 * v850-tdep.c (v850_gdbarch_init): Update.
3982 * sparc-tdep.c (sparc_gdbarch_init): Update.
3983 * sh-tdep.c (sh_gdbarch_init): Update.
3984 * s390-tdep.c (s390_gdbarch_init): Update.
3985 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3986 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3987 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3988 * mcore-tdep.c (mcore_gdbarch_init): Update.
3989 * m68k-tdep.c (m68k_gdbarch_init): Update.
3990 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3991 * ia64-tdep.c (ia64_gdbarch_init): Update.
3992 * h8300-tdep.c (h8300_gdbarch_init): Update.
3993 * frv-tdep.c (frv_gdbarch_init): Update.
3994 * cris-tdep.c (cris_gdbarch_init): Update.
3995 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3996
a42e117c
AC
39972003-06-07 Andrew Cagney <cagney@redhat.com>
3998
3999 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4000 Assert that PC_REGNUM is valid.
4001 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4002
bd1ce8ba
AC
40032003-06-07 Andrew Cagney <cagney@redhat.com>
4004
4005 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4006 * gdbarch.h, gdbarch.c: Regenerate.
4007 * mn10300-tdep.c: Include "gdb_assert.h".
4008 (mn10300_read_fp): New function.
4009 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4010 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4011 * ia64-tdep.c: Include "gdb_assert.h".
4012 (ia64_read_fp): New function.
4013 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4014 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4015 * regcache.c (generic_target_read_sp): Delete function.
4016 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4017 * inferior.h (generic_target_read_sp): Delete declaration.
4018 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4019 generic_target_read_sp.
4020 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4021 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4022 * sh-tdep.c (sh_gdbarch_init): Ditto.
4023 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4024 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4025
ec5cbaec
AC
40262003-06-07 Andrew Cagney <cagney@redhat.com>
4027
4028 * gdbarch.sh: Comment each field of startup_gdbarch.
4029 * gdbarch.h, gdbarch.c: Re-generate.
4030
cde9ea48
AC
40312003-06-07 Andrew Cagney <cagney@redhat.com>
4032
4033 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4034 * gdbarch.h, gdbarch.c: Re-generate.
4035 * regcache.c: Update comments on read_pc et.al.
4036 (generic_target_read_pc): Delete function.
4037 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4038 * inferior.h (generic_target_read_pc): Delete declaration.
4039 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4040 generic_target_read_pc.
4041 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4042 * sh-tdep.c (sh_gdbarch_init): Ditto.
4043 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4044 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 4045
9a90a780
AC
40462003-06-07 Andrew Cagney <cagney@redhat.com>
4047
4048 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4049 "index" with "special_local_sect". Use strcmp instead of STREQ.
4050 Append period to coments.
4051
a39a16c4
MM
40522003-06-06 Mark Mitchell <mark@codesourcery.com>
4053
4054 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4055 (elfstab_offset_sections): Likewise.
4056 * gdb-stabs.h (stab_section_info): Likewise.
4057 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4058 * objfiles.c (objfile_relocate): Likewise.
4059 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4060 * remote.c (get_offsets): Likewise.
4061 (remote_cisco_objfile_relocate): Likewise.
4062 * somread.c (som_symfile_offsets): Likewise.
4063 * symfile.c (alloc_section_addr_info): New function.
4064 (build_section_addr_info_from_section_tab): Use it.
4065 (free_section_addr_info): Adjust.
4066 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4067 (syms_from_objfile): Allocate local_addr dynamically.
4068 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4069 dynamically.
4070 (add_symbol_file_command): Allocate sect_opts dynamically.
4071 (reread_symbols): Avoid use of SECT_OFF_MAX.
4072 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4073 (alloc_section_addr_info): Declare it.
4074 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4075 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4076 dynamically.
4077 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 4078
20c6c2f8
AC
40792003-06-06 Andrew Cagney <cagney@redhat.com>
4080
4081 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4082 (d10v_frame_unwind_cache): Do not set "return_pc".
4083
884a26c8
MS
40842003-06-06 Michael Snyder <msnyder@redhat.com>
4085
4086 * h8300-tdep.c: Make tidy (long lines).
4087
088ce440
ML
40882003-06-06 Michal Ludvig <mludvig@suse.cz>
4089
8ffd9b1b 4090 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
4091 to regcache_collect().
4092
7d773d96
JB
40932003-06-05 J. Brobecker <brobecker@gnat.com>
4094
4095 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4096 pc_in_sigtramp multiarch method.
4097 (hppa_hpux_som_init_abi): Use it.
4098 (hppa_hpux_elf_init_abi): Likewise.
4099 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4100 macro has been multiarched.
4101 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4102 macro here, as hppa64 isn't multiarched yet.
4103
1df6926e
AC
41042003-06-05 Andrew Cagney <cagney@redhat.com>
4105
4106 * Makefile.in (value_h): Add $(frame_h).
4107 * value.h: Include "frame.h".
4108 (struct value): Replace "frame_addr" with "frame_id".
4109 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4110 * values.c (allocate_value): Use VALUE_FRAME_ID.
4111 (value_copy): Use VALUE_FRAME_ID.
4112 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4113 * valops.c (value_assign): Update. Use frame_find_by_id.
4114
6b53acc6
ML
41152003-06-05 Michal Ludvig <mludvig@suse.cz>
4116
4117 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4118 in each pass.
4119
4d9850d3
JJ
41202003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4121
4122 * thread-db.c (check_event): For create/death event breakpoints,
4123 loop through all messages to ensure that we read the message
4124 corresponding to the breakpoint we are at.
4125
8efca6ba
MS
41262003-06-04 Michael Snyder <msnyder@redhat.com>
4127
4128 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4129
0912c7f2
MK
41302003-06-04 Mark Kettenis <kettenis@gnu.org>
4131
4132 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4133 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4134 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4135 when handling .eh_frame sections.
4136
4e370325
JB
41372003-06-04 J. Brobecker <brobecker@gnat.com>
4138
4139 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4140 prepare_to_proceed procedure instead of the hppa-specific one.
4141 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4142
b757528f 41432003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4144
b757528f
JJ
4145 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4146 * config.in: Regenerated.
4147 * configure.in: Add test for syscall function and check for
4148 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4149 * configure: Regenerated.
4150 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4151 <sys/syscall.h>.
4152 (kill_lwp): New function that uses tkill syscall or
4153 uses kill, depending on whether threading model is nptl or not.
4154 All callers of kill() changed to use kill_lwp().
4155 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4156 see if all threads have already exited in the nptl model.
4157 (stop_and_resume_callback): New callback function used by the
4158 lin_lwp_wait thread exit handling code.
4159 (stop_wait_callback): Check for threads already having exited and
4160 delete such threads fromt the lwp list when discovered.
4161 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 4162
b757528f
JJ
4163 Roland McGrath <roland@redhat.com>
4164 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4165 nptl libthread_db.
4166
087779b1
RH
41672003-06-03 Richard Henderson <rth@redhat.com>
4168
b21fd293
RH
4169 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4170 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4171 (alpha_sigtramp_frame_prev_register): Likewise.
4172 (alpha_heuristic_frame_prev_register): Likewise.
4173 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4174
8ffd9b1b 4175 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
4176 alpha-specific register id names.
4177 (alpha_mdebug_frame_unwind_cache): Likewise.
4178 (alpha_mdebug_frame_prev_register): Likewise.
4179
baa490c4
RH
41802003-06-03 Richard Henderson <rth@redhat.com>
4181
4182 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4183 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4184 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4185 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4186 unwind routines.
4187 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4188 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4189 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4190
4191 * alpha-linux-tdep.c: Remove unnecessary includes.
4192 * Makefile.in (alpha-linux-tdep.o): Update.
4193
41942003-06-03 Richard Henderson <rth@redhat.com>
4195
4196 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4197 (alphabsd_fill_fpreg): Likewise.
4198
f534e522
JB
41992003-06-03 J. Brobecker <brobecker@gnat.com>
4200
4201 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4202 references to struct frame_info fields by calls to the equivalent
4203 accessors. Necessary now that frame_info is opaque.
4204
4035536b
JB
42052003-06-03 J. Brobecker <brobecker@gnat.com>
4206
4207 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4208 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4209 structure, field no longer exists.
4210
0bd79c5c
JB
42112003-06-03 J. Brobecker <brobecker@gnat.com>
4212
4213 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4214 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4215
37bb6d9f
JB
42162003-06-03 J. Brobecker <brobecker@gnat.com>
4217
4218 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4219 references to struct frame_info fields by calls to the equivalent
4220 accessors. Necessary now that frame_info is opaque.
4221
852ee05c
JB
42222003-06-03 J. Brobecker <brobecker@gnat.com>
4223
4224 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4225 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4226 structure, field no longer exists.
4227
7d58c67d
TR
42282003-06-03 Theodore A. Roth <troth@openavr.org>
4229
8ffd9b1b 4230 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
4231 accumulation of the size of all registers instead of blindly using
4232 DEPRECATED_REGISTER_BYTES.
4233
0a48e7e8
MS
42342003-06-03 Michael Snyder <msnyder@redhat.com>
4235
4236 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4237 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4238 for h8300sx.
4239
9798ab0d
JB
42402003-06-03 J. Brobecker <brobecker@gnat.com>
4241
4242 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4243 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4244
00b037e2
AC
42452003-06-03 Andrew Cagney <cagney@redhat.com>
4246
4247 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4248 (sparc_convert_to_raw): Delete function.
4249 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4250 register_convert_to_virtual.
4251
043b2f77
JJ
42522003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4253
4254 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4255 layer if not dealing with a statically-linked threaded program.
4256
f43caff8
KW
42572003-06-03 Kris Warkentin <kewarken@qnx.com>
4258
4259 * solib.c (solib_open): Update comment to reflect actual search order.
4260
ae1e7417
AC
42612003-06-03 Andrew Cagney <cagney@redhat.com>
4262
4263 * frame.c (get_frame_memory_signed): New function.
4264 (get_frame_memory, get_frame_memory_unsigned): New function.
4265 (get_frame_arch): New function.
4266 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4267 (get_frame_memory, get_frame_unsigned_memory): Declare.
4268 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4269 get_frame_memory_unsigned and get_frame_arch.
4270 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4271
cb123844
RG
42722003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4273
4274 * MAINTAINERS (write after approval): Add myself.
4275
1bb792e9
JB
42762003-06-03 Jim Blandy <jimb@redhat.com>
4277
4278 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4279 elements of gregset_t are 64 bits each, but access registers
4280 are still 32 bits, so they're packed two per gregset_t
4281 element. Unpack/pack them properly.
4282
aee8d8ba
DC
42832003-06-02 David Carlton <carlton@bactrian.org>
4284
4285 * linespec.c (find_methods): Break out code into
4286 add_matching_methods and add_constructors.
4287 (add_matching_methods): New.
4288 (add_constructors): Ditto.
4289
bf7488d2
AC
42902003-06-02 Andrew Cagney <cagney@redhat.com>
4291
bf7488d2
AC
4292 * sparc-tdep.c (sparc_print_registers): Delete call to
4293 REGISTER_CONVERTIBLE.
4294 (sparc_gdbarch_init): Do not set register_convertible.
4295 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4296 * frv-tdep.c (frv_gdbarch_init): Ditto.
4297 * cris-tdep.c (cris_gdbarch_init): Ditto.
4298
adedef68
EZ
42992003-06-02 Elena Zannoni <ezannoni@redhat.com>
4300
8ffd9b1b 4301 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
4302 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4303 (syms_from_objfile): Ditto.
4304
650fcc91
AS
43052003-06-03 Andreas Schwab <schwab@suse.de>
4306
4307 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4308 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4309
df4a182b
RH
43102003-06-02 Richard Henderson <rth@redhat.com>
4311
4312 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4313 a member of all_reggroup.
4314
c483c494
RH
43152003-06-02 Richard Henderson <rth@redhat.com>
4316
4317 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4318 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4319 (alpha_lds, alpha_sts): New.
4320 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 4321 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
4322 restructure and fail for type sizes other than 4 or 8.
4323 (alpha_value_to_register): Similarly.
4324 (alpha_extract_return_value): Use alpha_sts.
4325 (alpha_store_return_value): Use alpha_lds.
4326 (alpha_gdbarch_init): Update hooks.
4327
b38b6be2
RH
43282003-06-02 Richard Henderson <rth@redhat.com>
4329
4330 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4331 regnum identifiers.
4332 (alpha_sigtramp_register_address): Likewise.
4333
98a8e1e5
RH
43342003-06-02 Richard Henderson <rth@redhat.com>
4335
4336 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4337 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4338 * alpha-tdep.h: Declare them.
4339
4340 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4341 Remove zerobuf. Don't error on UNIQUE.
4342 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4343 (ALPHA_REGSET_UNIQUE): Provide default.
4344 (supply_gregset): Use alpha_supply_int_regs.
4345 (fill_gregset): Use alpha_fill_int_regs.
4346 (supply_fpregset): Use alpha_supply_fp_regs.
4347 (fill_fpregset): Use alpha_fill_fp_regs.
4348 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4349 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4350 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4351 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4352 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4353 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4354
67dfac52
RH
43552003-06-02 Richard Henderson <rth@redhat.com>
4356
f75d70cc
RH
4357 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4358
67dfac52
RH
4359 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4360 (alpha_store_return_value): Likewise.
4361
0cf566ec
DC
43622003-06-02 David Carlton <carlton@math.stanford.edu>
4363
4364 * block.c (contained_in): Add 'const' to arguments.
4365 (block_function): Ditto.
4366 * block.h: Update declarations for block_function and
4367 contained_in.
4368
cdef89d0
DC
43692003-06-02 David Carlton <carlton@math.stanford.edu>
4370
4371 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4372 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4373 * p-valprint.c (pascal_val_print): Ditto.
4374 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4375
72667056
RH
43762003-06-02 Richard Henderson <rth@redhat.com>
4377
98a8e1e5
RH
4378 * alpha-tdep.c (alpha_push_dummy_call): Use
4379 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 4380
8ffd9b1b 4381 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
4382 sign-extension of 32-bit values.
4383 (alpha_store_return_value): Similarly.
0ede8eca 4384
98a8e1e5
RH
4385 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4386 (alpha_extract_return_value): Likewise.
4387 (alpha_store_return_value): Likewise.
7b5e1cb3 4388
98a8e1e5
RH
4389 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4390 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 4391
98a8e1e5
RH
4392 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4393 (alpha_extract_struct_value_address): Likewise.
4394 (alpha_store_return_value): Likewise.
4395 (alpha_store_struct_return): Remove.
4396 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 4397
98a8e1e5
RH
4398 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4399 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4400 macros where appropriate.
4401 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4402 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 4403
98a8e1e5
RH
4404 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4405 for SP, GP; void_func_ptr for PC; non-language-specific types
4406 for all others.
4407 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 4408
6dd77b81
RH
44092003-06-02 Richard Henderson <rth@redhat.com>
4410
4411 * top.h (lim_at_start): Declare.
4412 * main.c (captured_main): Set it.
4413 * top.c (lim_at_start): Define.
4414 (command_loop): Use it instead of &environ.
4415 * event-top.c (command_handler): Likewise.
4416
f4dbdb54
JT
44172003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4418
4419 * mipsnbsd-tdep.c: Update copyright years.
4420 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4421
8f285956
RH
44222003-06-01 Richard Henderson <rth@redhat.com>
4423
98a8e1e5
RH
4424 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4425 (alpha-linux-tdep.o): Update dependencies.
4426 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4427 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 4428
615967cb
RH
44292003-06-01 Richard Henderson <rth@redhat.com>
4430
98a8e1e5
RH
4431 * alpha-tdep.c (alpha_register_reggroup_p): New.
4432 (alpha_gdbarch_init): Register it.
615967cb 4433
b59661bd
AC
44342003-06-02 Andrew Cagney <cagney@redhat.com>
4435
4436 * dwarfread.c: Eliminate "register"
4437 (decode_die_type): Eliminate assignment within "if".
4438 (struct_type, decode_array_element_type): Ditto.
4439 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4440 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4441 (decode_modified_type, completedieinfo): Ditto.
4442 * block.c: Eliminate "register".
4443 (blockvector_for_pc_sect): Eliminate assignment within "if".
4444 * cp-support.h (struct symbol): Opaque declaration.
4445 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4446
5ef165c2
RH
44472003-06-01 Richard Henderson <rth@redhat.com>
4448
98a8e1e5
RH
4449 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4450 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 4451
143985b7
AF
44522003-06-01 Adam Fedor <fedor@gnu.org>
4453
4454 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4455 * gdbarch.[ch]: Regenerate.
4456 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4457 (hppa_gdbarch_init): Set it in the gdbarch vector.
4458 * i386-tdep.c (i386_fetch_pointer_argument): New
4459 (i386_gdbarch_init): Set it into gdbarch.
4460 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4461 (rs6000_gdbarch_init): Set it in gdbarch.
4462 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4463 (sparc_gdbarch_init): Set it in gdbarch.
4464
ae0167b9
AC
44652003-06-01 Andrew Cagney <cagney@redhat.com>
4466
7c0b4a20
AC
4467 * defs.h (extract_address): Delete declaration.
4468 * findvar.c (extract_address): Delete function.
4469 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4470 extract_address with the inline equivalent,
4471 extract_unsigned_integer.
4472 (xstormy16_extract_struct_value_address): Ditto.
4473 (xstormy16_pointer_to_address): Ditto.
4474 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4475 * v850-tdep.c (v850_push_arguments): Ditto.
4476 (v850_extract_return_value): Ditto.
4477 (v850_extract_struct_value_address): Ditto.
4478 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4479 (sparcnbsd_get_longjmp_target_64): Ditto.
4480 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4481 (get_longjmp_target): Ditto.
4482 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4483 (sh64_extract_struct_value_address): Ditto.
4484 (sh_push_arguments): Ditto.
4485 (sh64_push_arguments): Ditto.
4486 * remote-vxsparc.c (vx_read_register): Ditto.
4487 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4488 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4489 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4490 * mipsv4-nat.c (get_longjmp_target): Ditto.
4491 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4492 * mips-nat.c (get_longjmp_target): Ditto.
4493 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4494 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4495 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4496 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4497 * irix5-nat.c (get_longjmp_target): Ditto.
4498 * irix4-nat.c (get_longjmp_target): Ditto.
4499 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4500 (ia64_push_arguments): Ditto.
4501 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4502 * h8300-tdep.c (h8300_push_arguments): Ditto.
4503 (h8300_store_return_value): Ditto.
4504 (h8300_extract_struct_value_address): Ditto.
4505 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4506 (frv_push_arguments): Ditto.
4507 * avr-tdep.c (avr_pointer_to_address): Ditto.
4508 (avr_push_arguments): Ditto.
4509 * arm-tdep.c (arm_push_dummy_call): Ditto.
4510 (arm_get_longjmp_target): Ditto.
4511 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4512 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4513 (alpha_get_longjmp_target): Ditto.
4514
ae0167b9
AC
4515 * solib-irix.c (extract_mips_address): Inline extract_address,
4516 replacing it with extract_signed_integer.
4517 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4518 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4519 (first_link_map_member, open_symbol_file_object): Ditto.
4520 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4521 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4522 (LM_NEXT, LM_NAME): Ditto.
4523
44d88583
RH
45242003-06-01 Richard Henderson <rth@redhat.com>
4525
98a8e1e5
RH
4526 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4527 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4528 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4529 (alpha_cannot_store_register): Likewise.
4530 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4531 * alpha-nat.c (supply_gregset): Likewise.
4532 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 4533
310e9b6a
AC
45342003-06-01 Andrew Cagney <cagney@redhat.com>
4535
4536 * infcall.c (call_function_by_hand): Update comment on
4537 DEPRECATED_DUMMY_WRITE_SP.
4538
4539 * mips-tdep.c (mips_gdbarch_init): Do not set
4540 deprecated_dummy_write_sp.
4541 (mips_eabi_push_dummy_call): Set the SP register.
4542 (mips_o64_push_dummy_call): Set the SP register.
4543 (mips_o32_push_dummy_call): Set the SP register.
4544 (mips_n32n64_push_dummy_call): Set the SP register.
4545
5ab84872
RH
45462003-06-01 Richard Henderson <rth@redhat.com>
4547
98a8e1e5
RH
4548 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4549 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4550 (supply_gregset): Likewise.
4551 * alpha-tdep.c (alpha_store_return_value): Likewise.
4552 (alpha_get_longjmp_target): Likewise.
4553 (alpha_register_name): Constify array.
4554 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4555 deprecated_register_size, deprecated_register_bytes,
4556 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4557 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4558 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 4559
09cc52fd
RH
45602003-06-01 Richard Henderson <rth@redhat.com>
4561
4562 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4563 from arg_reg_buffer to regcache to avoid double conversion.
4564
c7f16359
MK
45652003-06-01 Mark Kettenis <kettenis@gnu.org>
4566
4567 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4568 SP_REGNUM.
4569 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4570 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4571
7131cb6e
RH
45722003-06-01 Richard Henderson <rth@redhat.com>
4573
98a8e1e5
RH
4574 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4575 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 4576
f3e0f90b
RH
45772003-06-01 Richard Henderson <rth@redhat.com>
4578
98a8e1e5
RH
4579 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4580 not overlapping PC_REGNUM.
f3e0f90b 4581
c88e30c0
RH
45822003-06-01 Richard Henderson <rth@redhat.com>
4583
98a8e1e5
RH
4584 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4585 alpha_push_arguments. Don't dump argument register data to
4586 the target stack. Fix float and 128-bit long double semantics.
4587 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4588 (alpha_fix_call_dummy): Remove.
4589 (alpha_call_dummy_words): Remove.
4590 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 4591
f1a559ae
RH
45922003-06-01 Richard Henderson <rth@redhat.com>
4593
4594 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4595
5e045346
AC
45962003-06-01 Andrew Cagney <cagney@redhat.com>
4597
95404a3e
AC
4598 * mips-tdep.c (is_mips16_addr): New function.
4599 (make_mips16_addr, unmake_mips16_addr): New functions.
4600 (pc_is_mips16, mips_fetch_instruction): Use.
4601 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4602 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4603 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4604 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4605 TARGET_MIPS.
4606 * config/mips/tm-mips.h: Update copyright.
4607 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4608 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4609 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4610 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4611 (TM_PRINT_INSN_MACH): Delete.
4612 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4613
5e045346
AC
4614 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4615 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4616 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4617 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4618 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4619 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4620 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4621 mips*-*-riscos* and mips*-*-sysv* onto mips.
4622 * config/mips/mips64.mt: New file.
4623 * config/mips/mips.mt: New file.
4624 * config/mips/littlemips.mt: Delete file.
4625 * config/mips/decstation.mt: Delete file.
4626 * config/mips/vr4300el.mt: Delete file.
4627 * config/mips/vr5000el.mt: Delete file.
4628 * config/mips/vr5000.mt: Delete file.
4629 * config/mips/vr4100.mt: Delete file.
4630 * config/mips/vr4xxxel.mt: Delete file.
4631 * config/mips/vr4300.mt: Delete file.
4632 * config/mips/vr4xxx.mt: Delete file.
4633 * config/mips/bigmips.mt: Delete file.
4634 * config/mips/bigmips64.mt: Delete file.
4635 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4636 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4637 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4638 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4639 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4640 "tm-bigmips.h".
4641 * config/mips/tm-irix3.h: Ditto.
4642 * config/mips/tm-mipsv4.h: Ditto.
4643 * config/mips/tm-embed.h: Ditto.
4644 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4645 "tm-bigmips64.h".
4646 * config/mips/tm-vr5000el.h: Delete file.
4647 * config/mips/tm-tx39l.h: Delete file.
4648 * config/mips/tm-vr4300el.h: Delete file.
4649 * config/mips/tm-vr4xxxel.h: Delete file.
4650 * config/mips/tm-vr4300.h: Delete file.
4651 * config/mips/tm-vr4100.h: Delete file.
4652 * config/mips/tm-vr4xxx.h: Delete file.
4653 * config/mips/tm-vr5000.h: Delete file.
4654 * config/mips/tm-embedl64.h: Delete file.
4655 * config/mips/tm-embedl.h: Delete file.
4656 * config/mips/tm-embed64.h: Delete file.
4657 * config/mips/tm-bigmips64.h: Delete file.
4658 * config/mips/tm-bigmips.h: Delete file.
4659
2473a4a9
MK
46602003-06-01 Mark Kettenis <kettenis@gnu.org>
4661
97a5b208
MK
4662 Fix gdb/1216.
4663 * shnbsd-nat.c: Include "sh-tdep.h".
4664
2473a4a9
MK
4665 From Richard Henderson <rth@redhat.com>:
4666 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4667
e0f7ec59
AC
46682003-05-31 Andrew Cagney <cagney@redhat.com>
4669
4670 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4671 forward declaration.
4672 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4673 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4674 (mips_find_saved_regs): Use set_reg_offset.
4675 (mips_frame_init_saved_regs): Delete function.
4676 (mips_pop_frame): Call mips_find_saved_regs instead of
4677 DEPRECATED_FRAME_INIT_SAVED_REGS.
4678
68dcc709
AC
46792003-05-31 Andrew Cagney <cagney@redhat.com>
4680
4681 * mips-tdep.c (mips_gdbarch_init): Do not set
4682 deprecated_max_register_raw_size, register_virtual_size, and
4683 deprecated_max_register_virtual_size.
4684
cfc14b3a
MK
46852003-05-31 Mark Kettenis <kettenis@gnu.org>
4686
6405b0a6
MK
4687 * i386-tdep.c: Include "dwarf2-frame.h".
4688 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4689 * Makefile.in (i386-tdep.o): Update dependencies.
4690
cfc14b3a
MK
4691 * dwarf2-frame.c, dwarf2-frame.h: New files.
4692 * Makefile.in (SFILES): Add dwarf2-frame.c.
4693 (dwarf2_frame_h): Define.
4694 (COMMON_OBS): Add dwarf2-frame.o.
4695 (dwarf2-frame.o): Add dependencies.
4696
6a2751d2
AJ
46972003-05-31 Andreas Jaeger <aj@suse.de>
4698
4699 * x86-64-linux-nat.c: Fix comment.
4700
1c3545ae
MK
47012003-05-31 Mark Kettenis <kettenis@gnu.org>
4702
10f93086
MK
4703 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4704 function signature.
4705
1c3545ae
MK
4706 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4707 have a sigcontext_addr handler.
4708 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4709 sigcontext_addr handler.
4710
e11c53d2
AC
47112003-05-31 Andrew Cagney <cagney@redhat.com>
4712
4713 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4714 (print_fp_register_row): Replace do_fp_register_row.
4715 (mips_print_fp_register): Add "file" and "frame" parameters.
4716 (mips_print_register): Add "file" and "frame" parameters.
4717 (mips_print_registers_info): Replace mips_do_registers_info.
4718 (mips_gdbarch_init): Set print_registers_info instead of
4719 deprecated_do_registers_info.
4720 (mips_read_fp_register_single): Add "frame" parameter.
4721 (mips_read_fp_register_double): Add "frame" parameter.
4722
a3386186
MK
47232003-05-31 Mark Kettenis <kettenis@gnu.org>
4724
70913449
MK
4725 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4726 Fixes a bug where GDB would print the wrong register names for
4727 targets without SSE.
4728
2b5e0749
MK
4729 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4730 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4731 registers.
4732
4733 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4734 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4735 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4736 TDEP->sc_sp_offset.
4737
a3386186
MK
4738 From Michal Ludvig <mludvig@suse.cz>:
4739 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4740 and `sc_num_regs'.
4741 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4742 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4743 I386_ST0_REGNUM): Move here from...
4744 * i386-tdep.c: ... here.
4745 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4746 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4747 registers if possible.
4748 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4749 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4750 Remove variables.
4751 (i386bsd_sc_reg_offset): New variable.
4752 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4753 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4754 TDEP->sc_sp_offset.
4755 (i386fbsd_sc_reg_offset): New variable.
4756 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4757 TDEP->sc_num_regs.
4758 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4759 variables.
4760 (i386fbsd4_sc_reg_offset): New variable.
4761 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4762 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4763 TDEP->sc_sp_offset.
4764 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4765 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4766 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4767 Remove variables.
4768 (i386nbsd_sc_reg_offset): New variable.
4769 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4770 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4771 TDEP->sc_sp_offset.
4772 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4773 Remove variables.
4774 (i386obsd_sc_reg_offset): New variable.
4775 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4776 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4777 TDEP->sc_sp_offset.
4778 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4779 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4780 for frame pointer offset in `struct sigcontext'.
4781
25ab4790
AC
47822003-05-31 Andrew Cagney <cagney@redhat.com>
4783
4784 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4785 architecture methods call_dummy_words, sizeof_call_dummy_words,
4786 push_return_address, store_struct_return, and fix_call_dummy. Set
4787 push_dummy_call instead of deprecated_push_arguments.
4788 (mips_store_struct_return): Delete function.
4789 (mips_fix_call_dummy): Delete function.
4790 (mips_push_return_address): Delete function.
4791 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4792 RA_REGNUM and T9_REGNUM.
4793 (mips_n32n64_push_dummy_call): Ditto for
4794 mips_n32n64_push_arguments.
4795 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4796 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4797
6a65450a
AC
47982003-05-31 Andrew Cagney <cagney@redhat.com>
4799
4800 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4801 "dummy_addr" to "bp_addr".
4802 * infcall.c (call_function_by_hand): Pass "funaddr" to
4803 gdbarch_push_dummy_call.
4804 * gdbarch.h, gdbarch.c: Re-generate.
4805 * i386-tdep.c (i386_push_dummy_call): Update.
4806 * arm-tdep.c (arm_push_dummy_call): Update.
4807 * d10v-tdep.c (d10v_push_dummy_call): Update.
4808
c4f35dd8
MK
48092003-05-31 Mark Kettenis <kettenis@gnu.org>
4810
4811 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4812 variable declarations.
4813 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4814 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4815 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4816 x86_64_init_frame_pc, x86_64_init_frame_pc,
4817 x86_64_function_has_prologue): Remove prototypes.
4818 (X86_64_NUM_GREGS): New define.
4819 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4820 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4821 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4822 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4823 XMM1_REGNUM): Remove defines.
4824 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4825 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4826 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4827 X86_64_XMM1_REGNUM): New defines.
4828 (struct x86_64_register_info): Renamed from `struct
4829 register_info'. Remove `size' member.
4830 (x86_64_register_info_table): Remove variable.
4831 (x86_64_register_info): New variable.
4832 (X86_64_NUM_REGS): New define.
4833 (X86_64_NUM_GREGS): Remove define.
4834 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4835 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4836 Remove variables.
4837 (x86_54_dwarf2_reg_to_regnum): Remove function.
4838 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4839 (x86_64_dwarf_reg_to_regnum): New function.
4840 (x86_64_register_name): Rewrite.
4841 (x86_64_register_raw_size): Remove function.
4842 (x86_64_register_byte_table): Remove variable.
4843 (x86_64_register_byte): Remove function.
4844 (x86_64_register_virtual_type): Remove function.
4845 (x86_64_register_type): New function.
4846 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4847 x86_64_register_convert_to_raw): Remove functions.
4848 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4849 (x86_64_use_struct_convention): Make static. Adjust for renamed
4850 defines.
4851 (x86_64_frame_init_saved_regs): Remove function.
4852 (x86_64_push_arguments): Make static. Change to accept a regcache
4853 as argument.
4854 (x86_64_store_return_value, x86_64_extract_return_value): Make
4855 static. Rewrite based on i386 counterparts.
4856 (x86_64_push_dummy_call): New function.
4857 (X86_64_NUM_SAVED_REGS): New define.
4858 (x86_64_register_number): Remove function.
4859 (x86_64_store_struct_return): Remove function.
4860 (x86_64_frameless_function_invocation,
4861 x86_64_function_has_prologue): Remove functions.
4862 (PROLOG_BUFSIZE): Remove define.
4863 (struct x86_64_frame_cache): New structure.
4864 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4865 x86_64_frame_cache, x86_64_frame_this_id,
4866 x86_64_frame_prev_register, x86_64_frame_p,
4867 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4868 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4869 functions.
4870 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4871 variables.
4872 (x86_64_skip_prologue): Rewrite in terms of
4873 x86_64_analyze_prologue.
4874 (x86_64_frame_base_address): New function.
4875 (x86_64_frame_base): New variable.
4876 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4877 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4878 set deprecated_fp_regnum, deprecated_register_size,
4879 deprecated_register_bytes, register_raw_size, register_byte,
4880 register_virtual_type, register_convertiable,
4881 register_convert_to_virtual, convert_to_raw,
4882 deprecated_get_saved_register, deprecated_target_read_fp,
4883 deprecated_push_arguments, deprecated_push_return_address,
4884 deprecated_pop_frame, deprecated_store_struct_return,
4885 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4886 frameless_function_invocation, deprecated_frame_saved_pc,
4887 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4888 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4889 deprecated_init_frame_pc and virtual_frame_pointer. Call
4890 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4891 and x86_64_frame_p. Call frame_base_set_default to register
4892 x86_64_frame_base.
4893 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4894 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4895 (_initialize_x86_64_tdep): Remove function.
4896 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4897 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4898 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4899 define.
4900 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4901 (x86_64_linux_sigcontext_addr): Rewrite.
4902 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4903 x86_64_linux_frame_saved_pc): Remove functions.
4904 (x86_64_linux_pc_in_sigtramp): Renamed from
4905 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4906 trampoline.
4907 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4908 Remove_functions.
4909 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4910 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4911 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4912 (x86_64_regmap): Rename to regmap.
4913 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4914 x86_64_num_gregs.
4915 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4916 x86_64_regmap.
4917 (x86_64_fxsave_offset): Remove function.
4918 (supply_fpregset): Simply call x86_64_supply_fxsave.
4919 (fill_fpregset): Simply call x86_64_fill_fxsave.
4920 (fetch_inferior_registers, store_inferior_registers): Avoid
4921 asignment in if-statement.
4922 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4923 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4924 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4925 (fetch_core_registers): Remove function.
4926 (linux_elf_core_fns): Remove.
4927 (offsetoff): Don't define.
4928 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4929 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4930 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4931 add core-regset.o.
4932 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4933 protection against multiple includes instead of NM_X86_64_h. Add
4934 various comments. Include "config/nm-linux.h". Don't include
4935 <signal.h>.
4936 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4937 GET_THREAD_SIGNALS): Remove defines.
4938 (x86_64_register_u_addr, kernel_u_size,
4939 lin_thread_get_thread_signals): Remove prototypes.
4940 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4941 [HAVE_LINK_H]: Don't include "solib.h".
4942 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4943 * config/i386/tm-x86-64linux.h: Fix comments.
4944 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4945 x86-64-tdep.o): Update dependencies.
4946
c25083af
AC
49472003-05-30 Andrew Cagney <cagney@redhat.com>
4948
c8f55a7b
AC
4949 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4950 Change parameter type to a "struct regcache *".
4951
c25083af
AC
4952 * gdbarch.sh: Regardless of the multi-arch level, always define
4953 the macro when not already defined.
4954 * gdbarch.h, gdbarch.c: Re-generate.
4955
fbe586ae
RH
49562003-05-30 Richard Henderson <rth@redhat.com>
4957
4958 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4959 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4960 (alpha_mdebug_frame_this_id): Likewise.
4961 (alpha_mdebug_frame_prev_register): Likewise.
4962 (alpha_mdebug_frame_base_address): Likewise.
4963 (alpha_mdebug_frame_locals_address): Likewise.
4964 (alpha_mdebug_frame_args_address): Likewise.
4965 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4966 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4967 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4968 loop increment.
4969 (alpha_heuristic_frame_this_id): Make static.
4970 (alpha_heuristic_frame_prev_register): Likewise.
4971 (alpha_heuristic_frame_base_address): Likewise.
4972 * alpha-tdep.h: Update.
4973
acd5c798
MK
49742003-05-30 Mark Kettenis <kettenis@gnu.org>
4975
4976 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4977 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4978 defenitions.
4979 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4980 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4981 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4982 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4983 I386_ST0_REGNUM): New defines.
4984 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4985 codestream_get): Remove define.
4986 (codestream_next_addr, condestream_addr, condestream_buf,
4987 codestream_off, codestream_cnt): Remove variables.
4988 (codestream_fill, codestream_seek, codestream_read): Remove
4989 functions.
4990 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4991 functionality.
4992 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4993 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4994 i386_frame_saved_pc, i386_saved_pc_after_call,
4995 i386_frame_num_args, i386_frame_init_saved_regs,
4996 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4997 i386_push_arguments): Remove functions.
4998 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4999 functionality. Use i386_analyze_prologue instead of
5000 i386_get_frame_setup.
5001 (I386_NUM_SAVED_REGS): New define.
5002 (struct i386_frame_cache): New structure.
5003 (i386_alloc_frame_cache, i386_analyze_struct_return,
5004 i386_skip_probe, i386_analyze_frame_setup,
5005 i386_analyze_register_saves, i386_analyze_prologue,
5006 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5007 i386_frame_prev_register, i386_sigtramp_frame_cache,
5008 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5009 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5010 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5011 New functions.
5012 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5013 New variables.
5014 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5015 I386_EAX_REGNUM and I386_EDX_REGNUM.
5016 (i386_extract_return_value, i386_store_return_value): Use
5017 I386_ST0_REGNUM where appropriate.
5018 (i386_extract_struct_value_address): Rewrite to use extract_address.
5019 (i386_svr4_pc_in_sigtramp): Add comment.
5020 (i386_svr4_sigcontext_addr): Rewrite.
5021 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5022 TDEP->sc_sp_offset.
5023 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5024 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5025 of new defines. Set push_dummy_call, don't set
5026 deprecated_push_arguments, deprecated_push_return_address,
5027 deprecated_pop_frame. Don't set parm_boundary. Don't set
5028 deprecated_frame_chain, deprecated_frame_saved_pc,
5029 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5030 save_dummy_frame_tos, unwind_pc. Call
5031 frame_unwind_append_predicate and frame_base_set_default. Don't
5032 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5033 Don't set frameless_function_invocation. Don't set
5034 deprecated_register_bytes, deprecated_register_size,
5035 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5036 * i386-linux-tdep.c: Fix formatting in some comments.
5037 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5038 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5039 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5040 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5041 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5042 redundant parentheses.
5043 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5044 (i386_linux_sigcontext_addr): Use it. Rewrite.
5045 (find_minsym_and_objfile): Change name of second argument.
5046 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5047 changed. Use frame_pc_unwind instead of
5048 DEPRECATED_SAVED_PC_AFTER_CALL.
5049 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5050 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5051 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5052 unwinder.
5053 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5054 "dummy-frame.h".
5055 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5056 (_initialize_i386_cygwin_tdep): New prototype.
5057 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5058 deprecated_frame_chain_valid.
5059 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5060 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5061 Rely on the SVR4 defaults.
5062 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5063 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5064
c89b70f1
AC
50652003-05-30 Andrew Cagney <cagney@redhat.com>
5066
5067 * infcall.c (call_function_by_hand): Always call
5068 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5069
85b32d22
RH
50702003-05-30 Richard Henderson <rth@redhat.com>
5071
c89b70f1
AC
5072 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5073 increment.
85b32d22 5074
bfe51b1e
JB
50752003-05-29 Jim Blandy <jimb@redhat.com>
5076
5077 Use gdbarch methods for solib stuff on PowerPC Linux.
5078 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5079 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5080 show through.
5081 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5082 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5083 giving the same effect as the #definitions above.
5084
1abf022c
AF
50852003-05-29 Adam Fedor <fedor@gnu.org>
5086
5087 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5088 (find_implementation_from_class): Replace it with the standard
5089 case i.e. do nothing.
5090
d2427a71
RH
50912003-05-29 Richard Henderson <rth@redhat.com>
5092
5093 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5094 (alpha_linux_sigtramp_offset): Use it. Make static.
5095 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5096 update for new frame model.
5097 * alpha-mdebug-tdep.c: New file.
5098 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5099 (alpha_osf1_init_abi): Install it.
5100 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5101 (linked_proc_desc_table): Remove.
5102 (alpha_frame_past_sigtramp_frame): Remove.
5103 (alpha_dynamic_sigtramp_offset): Remove.
5104 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5105 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5106 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5107 (push_sigtramp_desc): Remove.
5108 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5109 (alpha_cannot_store_register): Likewise.
5110 (alpha_sigcontext_addr): Remove.
5111 (alpha_find_saved_regs): Remove.
5112 (alpha_frame_init_saved_regs): Remove.
5113 (alpha_init_frame_pc_first): Remove.
5114 (read_next_frame_reg): Remove.
5115 (alpha_frame_saved_pc): Remove.
5116 (alpha_saved_pc_after_call): Remove.
5117 (temp_proc_desc, temp_saved_regs): Remove.
5118 (alpha_about_to_return): Remove.
5119 (cached_proc_desc): Remove.
5120 (alpha_frame_chain): Remove.
5121 (alpha_print_extra_frame_info): Remove.
5122 (alpha_init_extra_frame_info): Remove.
5123 (alpha_frame_locals_address): Remove.
5124 (alpha_frame_args_address): Remove.
5125 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5126 (alpha_push_dummy_frame): Remove.
5127 (alpha_pop_frame): Remove.
5128 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5129 (alpha_read_insn): New.
5130 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5131 for different insn encodings.
5132 (alpha_in_lenient_prologue): Remove.
5133 (struct alpha_sigtramp_unwind_cache): New.
5134 (alpha_sigtramp_frame_unwind_cache): New.
5135 (alpha_sigtramp_register_address): New.
5136 (alpha_sigtramp_frame_this_id): New.
5137 (alpha_sigtramp_frame_prev_register): New.
5138 (alpha_sigtramp_frame_unwind): New.
5139 (alpha_sigtramp_frame_p): New.
5140 (struct alpha_heuristic_unwind_cache): New.
5141 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5142 don't count nop insns that occur between functions.
5143 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5144 heuristic_proc_desc, but without the mdebug wrapping.
5145 (alpha_heuristic_frame_this_id): New.
5146 (alpha_heuristic_frame_prev_register): New.
5147 (alpha_heuristic_frame_unwind): New.
5148 (alpha_heuristic_frame_p): New.
5149 (alpha_heuristic_frame_base_address): New.
5150 (alpha_heuristic_frame_base): New.
5151 (alpha_unwind_dummy_id): New.
5152 (alpha_unwind_pc): New.
5153 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5154 frame related deprecated initializations; install replacements.
5155 (alpha_dump_tdep): Remove.
5156 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5157 (alpha_read_insn, alpha_after_prologue,
5158 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5159 alpha_heuristic_frame_prev_register,
5160 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5161 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5162 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5163 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5164
93ec1121
AC
51652003-05-29 Andrew Cagney <cagney@redhat.com>
5166
5167 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5168 dependant on the availability of ASSERT_FUNCTION.
5169 (ASSERT_FUNCTION): Do not define when there is no function name.
5170
98f08d3d
KB
51712003-05-29 Kevin Buettner <kevinb@redhat.com>
5172
5173 From Jimi X <jimix@watson.ibm.com>:
5174 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5175
0897f59b
JB
51762003-05-28 Jim Blandy <jimb@redhat.com>
5177
5178 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5179 argument to ptrace to int; the system headers should give it the
5180 right type, and pointers don't fit in ints on powerpc64-*-*.
5181
14898363
L
51822003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5183
5184 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5185 DW_TAG_catch_block.
5186
a7a48797
EZ
51872003-05-26 Elena Zannoni <ezannoni@redhat.com>
5188
5189 * stabsread.c (dbx_lookup_type): Make static.
5190 (read_type): Ditto.
5191 (add_undefined_type): Ditto.
5192 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5193 not export.
5194
f5479e9c
EZ
51952003-05-26 Elena Zannoni <ezannoni@redhat.com>
5196
5197 * hpread.c (hpread_has_name): Make static.
5198 (hpread_psymtab_to_symtab): Ditto.
5199 (file_exists): Ditto.
5200 (hpread_call_pxdb): Ditto.
5201 (hpread_pxdb_needed): Ditto.
5202 (hpread_quick_traverse): Ditto.
5203 (hpread_get_header): Ditto.
5204 (hpread_get_lntt): Ditto.
5205 (hpread_get_slt): Ditto.
5206 (class_of): Ditto.
5207
eb2e12d7
AS
52082003-05-25 Andreas Schwab <schwab@suse.de>
5209
78bf922a
AS
5210 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5211 stack_align and deprecated_extra_stack_alignment_needed.
5212 (m68k_stack_align): Delete.
5213
eb2e12d7
AS
5214 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5215 (m68k_register_virtual_size): Likewise.
5216 (altos_skip_prologue): Remove obsolete function.
5217 (isi_frame_num_args): Likewise.
5218 (news_frame_num_args): Likewise.
5219 (m68k_fix_call_dummy): Make static.
5220 (m68k_push_dummy_frame): Likewise.
5221 (m68k_pop_frame): Likewise.
5222 (m68k_skip_prologue): Likewise.
5223 (m68k_frame_init_saved_regs): Likewise.
5224 (m68k_saved_pc_after_call): Likewise.
5225 (m68k_get_longjmp_target): Make multi-arch.
5226 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5227 structure. Register m68k_get_longjmp_target if enabled.
5228 * m68k-tdep.h (struct gdbarch_tdep): Define.
5229 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5230
5231 * Makefile.in (config.status): Also depend on configure.tgt
5232 and configure.host.
5233 (m68klinux-tdep.o): Update dependencies.
5234 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5235 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5236 (M68K_LINUX_JB_PC): Define.
5237 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5238 and take additional parameter.
5239 (m68k_linux_sigtramp_saved_pc): Update.
5240 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5241 m68k_linux_pc_in_sigtramp, in_plt_section,
5242 find_solib_trampoline_target.
5243 * config/m68k/tm-linux.h: Don't include any tm headers.
5244 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5245 (JB_ELEMENT_SIZE): Likewise.
5246 (JB_PC): Likewise.
5247 (GET_LONGJMP_TARGET): Likewise.
5248 (IN_SIGTRAMP): Likewise.
5249 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5250
eb2c22dc
MK
52512003-05-25 Mark Kettenis <kettenis@gnu.org>
5252
5253 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5254 (sparc32_push_arguments): Re-implement by calling
5255 sparc32_do_push_arguments.
5256
44b7b84e
MK
52572003-05-25 Mark Kettenis <kettenis@gnu.org>
5258
5259 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5260 SPARC_O1_REGNUM): New defines.
5261 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5262 (sparc32_store_return_value): New function.
5263 (sparc_extract_struct_value_address): Rewrite to operate on a
5264 regcache.
5265 (sparc_gdbarch_init): Don't set
5266 deprecated_extract_struct_value_address. Set
5267 extract_struct_value_address instead. Don't set
5268 deprecated_extract_return_value and deprecated_store_return_value
5269 for 32-bit targets. Set extract_return_value and
5270 store_return_value instead.
5271 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5272 DEPRECTAED_EXTRACT_RETURN_VALUE,
5273 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5274 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5275 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5276 (sparc_store_return_value): Remove prototype.
5277 (sparc32_store_return_value): New prototype.
5278 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5279 Adjust prototypes.
5280
f6ad61e3
MK
52812003-05-24 Mark Kettenis <kettenis@gnu.org>
5282
5283 * sparcnbsd-tdep.c: Include "gdb_string.h".
5284
b276f1bb
AC
52852003-05-23 Andrew Cagney <cagney@redhat.com>
5286
5287 * p-valprint.c (pascal_val_print): Replace extract_address with
5288 the inline equivalent extract_unsigned_integer.
5289 * jv-valprint.c (java_value_print): Ditto.
5290 * ada-valprint.c (ada_val_print_1): Ditto.
5291 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5292
e76c5fcc
TR
52932003-05-23 Theodore A. Roth <troth@openavr.org>
5294
5295 * blockframe.c (frameless_look_for_prologue): Remove unused
5296 after_prologue variable.
5297
2cdd89cb
MK
52982003-05-23 Mark Kettenis <kettenis@gnu.org>
5299
5300 * blockframe.c (get_pc_function_start): Rewrite to avoid
5301 asignments in if-statements.
5302
182d43bc
EZ
53032003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5304
5305 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 5306 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
5307 files, don't relocate absolute symbols (and do use mst_abs).
5308
e8f3fcdd
AC
53092003-05-23 Andrew Cagney <cagney@redhat.com>
5310
5311 * objc-lang.c: Include "gdb_assert.h".
5312 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5313 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5314 (gdb_check, gdb_check_fatal): Delete functions.
5315 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5316 gdb_assert.
5317 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5318 * Makefile.in (objc-lang.o): Update dependencies.
5319
3c23e6fb
ILT
53202003-05-22 Ian Lance Taylor <ian@airs.com>
5321
5322 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5323 with fprintf_filtered, not fprintf_unfiltered.
5324
af1342ab
AC
53252003-05-22 Andrew Cagney <cagney@redhat.com>
5326
5327 * stack.c (frame_info): Inline extract_address, replacing it with
5328 extract_unsigned_integer.
5329 * findvar.c (unsigned_pointer_to_address): Ditto.
5330 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5331 * dwarf2expr.c (dwarf2_read_address): Ditto.
5332 * frame.c (frame_pc_unwind): Update comment.
5333 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5334
47e242ec
JJ
53352003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5336
5337 * infptrace.c (detach): Call print_sys_errmsg rather than
5338 perror_with_name to issue warning message when errno is non-zero
5339 after calling ptrace detach.
5340
e2ac8128
JB
53412003-05-21 J. Brobecker <brobecker@gnat.com>
5342
5343 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5344 macro definitions from here...
5345 * hppa-tdep.c: ...to there.
5346
92b3541e
KB
53472003-05-20 Kevin Buettner <kevinb@redhat.com>
5348
5349 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5350 register_ptrace_addr(). Fix all callers.
5351
55809acb
AS
53522003-05-21 Andreas Schwab <schwab@suse.de>
5353
5354 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5355 dependencies.
5356 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5357 end.
5358 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5359 (_initialize_m68k_linux_tdep): New function.
5360 (m68k_linux_frame_saved_pc): Make static.
5361 (m68k_linux_extract_return_value): Likewise.
5362 (m68k_linux_store_return_value): Likewise.
5363 (m68k_linux_extract_struct_value_address): Likewise.
5364 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5365 Remove.
5366 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5367 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5368 (DEPRECATED_FRAME_SAVED_PC): Remove.
5369
0fbc10f7
KW
53702003-05-20 Kris Warkentin <kewarken@qnx.com>
5371
5372 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5373 regset numbering rather than our own.
5374
58da2eb2
DC
53752003-05-19 David Carlton <carlton@bactrian.org>
5376
5377 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5378
1fcb5155
DC
53792003-05-19 David Carlton <carlton@bactrian.org>
5380
5381 Partial fix for PR c++/827.
5382 * cp-support.h: Include symtab.h.
5383 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5384 * cp-namespace.c: Update contributors.
5385 (cp_lookup_symbol_nonlocal): New.
5386 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5387 (lookup_symbol_file): Ditto.
5388 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5389 * block.h: Declare block_scope, block_using, block_global_block.
5390 * block.c (block_scope): New.
5391 (block_using, block_global_block): Ditto.
5392 * Makefile.in (cp_support_h): Depend on symtab_h.
5393 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5394
5f9a71c3
DC
53952003-05-19 David Carlton <carlton@bactrian.org>
5396
5397 * language.h (struct language_defn): Add 'la_value_of_this'
5398 and 'la_lookup_symbol_nonlocal' members.
5399 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5400 lookup_symbol_static, lookup_symbol_global,
5401 lookup_symbol_aux_block.
5402 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5403 if we should search fields of this and how to do static/global
5404 lookup.
5405 (lookup_symbol_aux_block): Make extern.
5406 (basic_lookup_symbol_nonlocal): New.
5407 (lookup_symbol_static, lookup_symbol_global): Ditto.
5408 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5409 'la_lookup_symbol_nonlocal' members.
5410 * c-lang.c (c_language_defn, cplus_language_defn)
5411 (asm_language_defn, minimal_language_defn): Ditto.
5412 * jv-lang.c (java_language_defn): Ditto.
5413 * language.c (unknown_language_defn, auto_language_defn)
5414 (local_language_defn): Ditto.
5415 * m2-lang.c (m2_language_defn): Ditto.
5416 * objc-lang.c (objc_language_defn): Ditto.
5417 * scm-lang.c (scm_language_defn): Ditto.
5418 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5419 * p-lang.c (pascal_language_defn): Ditto for both.
5420 * Makefile.in (f-lang.o): Depend on value_h.
5421 (p-lang.o): Ditto.
5422
89a9d1b1
DC
54232003-05-19 David Carlton <carlton@bactrian.org>
5424
5425 * block.h: Declare block_static_block.
5426 * block.c (block_static_block): New.
5427 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5428 lookup_symbol_aux_local, calling block_static_block instead.
5429 (lookup_symbol_aux_local): Delete 'static_block' argument.
5430
eed3f8ab
DC
54312003-05-19 David Carlton <carlton@bactrian.org>
5432
5433 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5434
a09d8bda
ML
54352003-05-19 Michal Ludvig <mludvig@suse.cz>
5436
5437 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5438 register numbers mapping.
5439
69636828
AF
54402003-05-18 Adam Fedor <fedor@gnu.org>
5441
5442 * symtab.c (completion_list_objc_symbol): New function.
5443 (make_symbol_completion_list): Use it to add ObjC symbols
5444 when looking though the list.
5445 (language_search_unquoted_string): New function.
5446 (make_file_symbol_completion_list): Use it.
5447
55baeb84
AS
54482003-05-18 Andreas Schwab <schwab@suse.de>
5449
d0b45d99
AS
5450 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5451 dependencies.
5452 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5453 as m68k_linux_extract_return_value.
5454 (DEPRECATED_STORE_RETURN_VALUE): Define as
5455 m68k_linux_store_return_value.
5456 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5457 m68k_linux_extract_struct_value_address.
5458 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5459 get_next_frame, get_frame_base, get_frame_pc.
5460 (m68k_linux_frame_saved_pc): Use get_frame_base.
5461 (m68k_linux_extract_return_value): New function.
5462 (m68k_linux_store_return_value): New function.
5463 (m68k_linux_extract_struct_value_address): New function.
5464 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5465
55baeb84
AS
5466 * c-exp.y (typebase): Remove duplicate occurence of
5467 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 5468 of lookup_signed_typename.
55baeb84 5469
b6b08ebf
MK
54702003-05-18 Mark Kettenis <kettenis@gnu.org>
5471
5472 * dwarf2loc.c (find_location_expression): Change type of second
5473 argument to `size_t *'.
5474 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5475 for size variable.
5476
5ad1c190
DC
54772003-05-18 David Carlton <carlton@bactrian.org>
5478
5479 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5480 'linkage_name'. Add comment.
5481 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5482 'linkage_name'.
5483 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5484 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5485 (lookup_block_symbol): Ditto.
5486
b8b527c5
AC
54872003-05-16 Andrew Cagney <cagney@redhat.com>
5488
5489 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5490 * gdbarch.h, gdbarch.c: Re-generate.
5491 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5492 * TODO (REGISTER_BYTES): Delete reference.
5493 * alpha-tdep.c (alpha_gdbarch_init): Update.
5494 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5495 * x86-64-tdep.c (x86_64_init_abi): Update.
5496 * vax-tdep.c (vax_gdbarch_init): Update.
5497 * v850-tdep.c (v850_gdbarch_init): Update.
5498 * sparc-tdep.c (sparc_gdbarch_init): Update.
5499 * sh-tdep.c (sh_gdbarch_init): Update.
5500 * s390-tdep.c (s390_gdbarch_init): Update.
5501 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5502 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5503 (ns32k_gdbarch_init_32382): Update.
5504 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5505 * mcore-tdep.c (mcore_gdbarch_init): Update.
5506 * m68k-tdep.c (m68k_gdbarch_init): Update.
5507 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5508 * ia64-tdep.c (ia64_gdbarch_init): Update.
5509 * i386-tdep.c (i386_gdbarch_init): Update.
5510 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5511 * hppa-tdep.c (hppa_gdbarch_init): Update.
5512 * h8300-tdep.c (h8300_gdbarch_init): Update.
5513 * frv-tdep.c (frv_gdbarch_init): Update.
5514 * cris-tdep.c (cris_gdbarch_init): Update.
5515 * avr-tdep.c (avr_gdbarch_init): Update.
5516 * arm-tdep.c (arm_gdbarch_init): Update.
5517 * sparc-tdep.c (sparc_pop_frame): Update.
5518 * rs6000-tdep.c (rs6000_pop_frame): Update.
5519 * remote.c (init_remote_state): Update.
5520 (remote_prepare_to_store): Update.
5521 * remote-vx.c (vx_prepare_to_store): Update.
5522 * remote-sds.c (sds_fetch_registers): Update.
5523 (sds_prepare_to_store): Update.
5524 * remote-array.c: Update.
5525 * regcache.c (init_legacy_regcache_descr): Update.
5526 (init_regcache_descr): Update.
5527 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5528 (mips_o64_extract_return_value): Update.
5529 * irix5-nat.c (fetch_core_registers): Update.
5530 * irix4-nat.c (fetch_core_registers): Update.
5531 * i386-tdep.h: Update.
5532 * hppa-tdep.c (pa_do_registers_info): Update.
5533 (pa_do_strcat_registers_info): Update.
5534 * cris-tdep.c (cris_register_bytes_ok): Update.
5535 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5536 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5537 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5538 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5539 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5540 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5541 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5542 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5543 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5544 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5545 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5546 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5547 (REGISTER_BYTES_OK): Update.
5548 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5549 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5550
ee2842e2
ILT
55512003-05-16 Ian Lance Taylor <ian@airs.com>
5552
5553 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5554 (vax_print_insn, print_insn_arg): Remove static functions.
5555 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5556 print_insn_vax from opcodes library.
5557 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5558
973177d3
AC
55592003-05-15 Andrew Cagney <cagney@redhat.com>
5560
aaab4dba
AC
5561 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5562 * target.h (memory_breakpoint_from_pc): Delete declaration.
5563 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5564 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5565 * monitor.c (monitor_insert_breakpoint): Use
5566 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5567 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5568 * gdbarch.h, gdbarch.c: Re-generate.
5569 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5570 (sparc_gdbarch_init): Set breakpoint_from_pc to
5571 sparc_breakpoint_from_pc.
5572 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5573 (BREAKPOINT_FROM_PC): Define.
5574 (sparc_breakpoint_from_pc): Declare.
5575 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5576 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5577 (BREAKPOINT_FROM_PC): Define.
5578 (BREAKPOINT): Delete macro.
5579 * target.h: Update comment.
5580 * s390-tdep.c (s390_gdbarch_init): Update comments.
5581 * remote.c: Update comments.
5582 * remote-mips.c: Update comments.
5583 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5584 * mem-break.c: Update comment.
5585 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5586 (ia64_memory_insert_breakpoint): Update.
5587 * config/sparc/tm-sparc.h: Update comment.
5588 * config/pa/tm-hppa64.h: Update comment.
5589 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5590 (rs6000_breakpoint_from_pc): Update.
5591 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5592 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5593 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5594 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5595 (mips_breakpoint_from_pc): Update.
5596 (mips_dump_tdep): Update.
5597
e06963ff
AC
5598 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5599 * minsyms.c (lookup_minimal_symbol): Inline
5600 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5601
973177d3
AC
5602 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5603 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5604 * p-lang.c (pascal_printstr): Ditto.
5605 * objc-lang.c (objc_printstr): Ditto.
5606 * m2-lang.c (m2_printstr): Ditto.
5607 * jv-valprint.c (java_print_value_fields): Ditto.
5608 * f-lang.c (f_printstr): Ditto.
5609 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5610 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5611 for repeat_count_threshold.
5612 * Makefile.in (cp-valprint.o): Update dependencies.
5613
5ea2bd7f 56142003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5615
5ea2bd7f
JJ
5616 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5617 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
5618 they start with mov r2,r12. Support skipping over indirect stores
5619 of the input registers. Upon hitting a non-nop branch instruction
5620 or predicated instruction, bail out by setting lim_pc to the current
5621 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
5622 beyond our calculated value and we have trust_limit set,
5623 use the lim_pc value.
5624
cc8c88f3
AC
56252003-05-15 Andrew Cagney <cagney@redhat.com>
5626
5627 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5628 generic_find_dummy_frame.
5629 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5630 (deprecated_generic_find_dummy_frame): Update.
5631 (deprecated_read_register_dummy): Update.
5632 * frame.c (deprecated_generic_get_saved_register): Update.
5633
909cd28e
TR
56342003-05-15 Theodore A. Roth <troth@openavr.org>
5635
5636 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5637 (avr_gdbarch_init): Set breakpoint_from_pc method.
5638
b923b08d
AC
56392003-05-15 Andrew Cagney <cagney@redhat.com>
5640
5641 * regcache.c (build_regcache): Set deprecated_register_valid
5642 directly.
5643 (deprecated_grub_regcache_for_register_valid): Delete function.
5644 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5645 declaration.
5646
ae2f03ac 56472003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
5648
5649 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
5650 * symtab.c (lookup_symbol_aux): Delete calls to
5651 lookup_symbol_aux_minsyms.
5652 (lookup_symbol_aux_minsyms): Comment out function and
5653 prototype. Delete lookup by mangled name.
ae2f03ac 5654
18ec9831
KB
56552003-05-14 Kevin Buettner <kevinb@redhat.com>
5656
5657 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5658 correctly indicate an empty stack and ``stack_allocated'' to the
5659 indicate the number of elements initially allocated.
5660 (dwarf_expr_grow_stack): Simplify method for computing new
5661 stack size. Don't loop infinitely if ``stack_len'' is zero.
5662 (execute_stack_op): Move ``ctx->in_reg'' initialization
5663 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5664 be used in conjuction with DW_OP_piece. Revise error message
5665 accordingly.
5666
de18ac1f
TR
56672003-05-14 Theodore A. Roth <troth@openavr.org>
5668
5669 * MAINTAINERS: Update my email address.
5670 * avr-tdep.c: Ditto.
5671
176620f1
EZ
56722003-05-14 Elena Zannoni <ezannoni@redhat.com>
5673
5674 * symtab.h (enum domain_enum): Rename from namespace_enum.
5675 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5676 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5677 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5678 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5679 TYPES_NAMESPACE, METHODS_NAMESPACE.
5680 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5681 (struct symbol, struct partial_symbol): Rename field
5682 'namespace_enum namespace' to 'domain_enum domain'.
5683 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5684 Delete old define kludge for namespace.
5685
5686 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5687 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5688 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5689 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5690 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5691 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5692 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5693 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5694 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5695 occurrences of the above.
5696
b7f31508
ILT
56972003-05-14 Ian Lance Taylor <ian@airs.com>
5698
5699 * Makefile.in (install-only): Use $(SHELL) when running
5700 mkinstalldirs.
5701
2fdbdd39
ILT
57022003-05-13 Ian Lance Taylor <ian@airs.com>
5703
a208d82c
ILT
5704 * MAINTAINERS (write after approval): Add myself.
5705
2fdbdd39
ILT
5706 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5707 second and third arguments.
5708 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5709 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5710
fbd9dcd3
AC
57112003-05-13 Andrew Cagney <cagney@redhat.com>
5712
5713 * defs.h (store_address): Delete declaration.
5714 findvar.c (store_address): Delete function.
5715 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5716 store_unsigned_integer.
5717 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5718 * v850-tdep.c (v850_push_arguments): Ditto.
5719 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5720 * sh-tdep.c (sh64_get_saved_register): Ditto.
5721 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5722 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5723 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5724 (mips_get_saved_register): Ditto.
5725 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5726 (find_func_descr, ia64_push_arguments): Ditto.
5727 * i386-tdep.c (i386_push_arguments): Ditto.
5728 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5729 * frv-tdep.c (frv_push_arguments): Ditto.
5730 * frame.c (legacy_saved_regs_prev_register): Ditto.
5731 (deprecated_generic_get_saved_register): Ditto.
5732 * findvar.c (unsigned_address_to_pointer): Ditto.
5733 * dwarf2read.c (dwarf2_const_value): Ditto.
5734 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5735 * alpha-tdep.c (alpha_push_arguments): Ditto.
5736
6760f9e6
JB
57372003-05-12 J. Brobecker <brobecker@gnat.com>
5738
5739 * NEWS: Mention that the hppa-hpux port has been partially
5740 multiarched (32bit ABIT only, so far).
5741
30e221b4
AC
57422003-05-11 Andrew Cagney <cagney@redhat.com>
5743
5744 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5745 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5746 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5747 sim/testsuite/sim/arm/misaligned2.ms, and
5748 sim/testsuite/sim/arm/misaligned3.ms.
5749 * disasm.h (struct ui_file): Add opaque struct declaration.
5750 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5751 * frame.h (struct ui_file): Ditto.
5752
dea7f9ba
MK
57532003-05-11 Mark Kettenis <kettenis@gnu.org>
5754
5755 * value.h: Pretty print.
5756
01986c48
MK
57572003-05-10 Mark Kettenis <kettenis@gnu.org>
5758
5759 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5760
123a958e
AC
57612003-05-08 Andrew Cagney <cagney@redhat.com>
5762
5763 * regcache.h (max_register_size): Delete declaration.
5764 * regcache.c (max_register_size): Delete function.
5765 (struct regcache_descr): Delete field "max_register_size".
5766 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5767 registers fit in MAX_REGISTER_SIZE.
5768 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5769 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5770 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5771 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5772 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5773 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5774 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5775 * dve3900-rom.c, hppa-tdep.c: Ditto.
5776
eb294659
DC
57772003-05-08 David Carlton <carlton@math.stanford.edu>
5778
5779 * valops.c (push_word): Fix typo.
5780
d9d9c31f
AC
57812003-05-08 Andrew Cagney <cagney@redhat.com>
5782
5783 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5784 * gdbarch.h: Re-generate.
5785 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5786 (legacy_max_register_raw_size): Delete declaration.
5787 * regcache.c (legacy_max_register_raw_size): Delete function.
5788 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5789 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5790 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5791 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5792 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5793 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5794 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5795 * findvar.c, dwarf2cfi.c: Ditto.
5796
22540ece
AC
57972003-05-08 Andrew Cagney <cagney@redhat.com>
5798
5799 * mips-tdep.c (read_signed_register): New function, moved to here
5800 from "regcache.c".
5801 (read_signed_register_pid): Ditto.
5802 * regcache.c (read_signed_register_pid): Delete function, moved to
5803 "mips-tdep.c".
5804 (read_signed_register): Ditto.
5805 * regcache.h (read_signed_register): Delete declaration.
5806 (read_signed_register_pid): Delete declaration.
5807
0c92afe8
AC
58082003-05-08 Andrew Cagney <cagney@redhat.com>
5809
5810 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5811 * gdbarch.h: Re-generate.
5812 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5813 (legacy_max_register_virtual_size): Delete declaration.
5814 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5815 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5816 * tracepoint.c (memrange_sortmerge): Ditto.
5817 * sparc-tdep.c (sparc_print_registers): Ditto.
5818 * regcache.c (legacy_max_register_virtual_size): Delete function.
5819
6037b830
JB
58202002-05-08 J. Brobecker <brobecker@gnat.com>
5821
5822 * fork-child.c (escape_bang_in_quoted_argument): New function.
5823 (fork_inferior): Escape '!' characters in quoted arguments
5824 only when needed.
5825
5d62c8b1
JB
58262003-05-08 J. Brobecker <brobecker@gnat.com>
5827
5828 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5829 the language of the CU is not currently supported by GDB.
5830
20a0e81d
JB
58312003-05-08 J. Brobecker <brobecker@gnat.com>
5832
5833 * defs.h (language): Add language_minimal enum value.
5834 * c-lang.c (minimal_language_defn): New language definition.
5835 (_initialize_c_language): Add the new minimal language to the list
5836 of languages known to GDB.
5837
710ee10a
KB
58382003-05-08 Kevin Buettner <kevinb@redhat.com>
5839
5840 * frame.c (get_frame_type): Don't attempt to lazily initialize
5841 frame's unwinder for legacy frames.
5842
1750fa04
AC
58432003-05-07 Andrew Cagney <cagney@redhat.com>
5844
5845 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5846 and "regcache" parameters.
5847 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5848
ddf9f258 58492003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
5850
5851 * dwarf2read.c (dwarf_decode_lines): Only use output of
5852 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
5853 the current address.
5854
87767c29
AC
58552003-05-07 Andrew Cagney <cagney@redhat.com>
5856
5857 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5858 code.
5859
5e7b2f39
JB
58602003-05-07 Jim Blandy <jimb@redhat.com>
5861
5862 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5863 'maint info symtabs' and 'maint info psymtabs'.
5864 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5865 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5866 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5867 Declarations updated.
5868 * maint.c (maintenance_list_command): Delete.
5869 (_initialize_maint_cmds): Update calls to add_cmd.
5870 * gdbcmd.h (maintenancelistlist): Delete declaration.
5871 * cli/cli-cmds.c (maintenancelistlist): Delete.
5872 (init_cmd_lists): Don't initialize it.
5873 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5874
f6684c31
AC
58752003-05-07 Andrew Cagney <cagney@redhat.com>
5876
5877 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5878 "regcache".
5879 (d10v_print_registers_info): Update.
5880 (d10v_dmap_register, d10v_imap_register): Delete functions.
5881 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5882 and "imap_register".
5883 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5884 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5885 * arch-utils.c (generic_remote_translate_xfer_address): Add
5886 "regcache" and "gdbarch" parameters.
5887 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5888 parameter. Change class to multi-arch.
5889 * gdbarch.h, gdbarch.c: Re-generate.
5890 * remote.c (remote_xfer_memory): Use
5891 gdbarch_remote_translate_xfer_address.
8ffd9b1b 5892
e4846b08
JJ
58932003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5894
5895 * infrun.c (prev_pc): Move declaration ahead of proceed().
5896 (proceed): Refresh prev_pc value before resuming.
5897 (stop_stepping): Remove code to refresh prev_pc.
5898
6b71b8ac
KW
58992003-05-06 Kris Warkentin <kewarken@qnx.com>
5900
5901 * nto-tdep.c: Removed stray comment.
5902
47979a4b
KW
59032003-05-06 Kris Warkentin <kewarken@qnx.com>
5904
5905 * i386-nto-tdep.c: Fix old K&R function definitions.
5906 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5907 Also change add_show_from_set() call to add_setshow_cmd().
5908 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5909
00905d52
AC
59102003-05-05 Andrew Cagney <cagney@redhat.com>
5911
5912 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5913 (fprint_dummy_frames): New function.
5914 (maintenance_print_dummy_frames): New function.
5915 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5916 * frame.c (fprint_frame_id): Make global.
5917 * frame.h (fprint_frame_id): Declare.
5918 * Makefile.in (dummy-frame.o): Update dependencies.
5919
b1e29e33
AC
59202003-05-05 Andrew Cagney <cagney@redhat.com>
5921
5922 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5923 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5924 SIZEOF_CALL_DUMMY_WORDS.
5925 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5926 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5927 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5928 CALL_DUMMY_BREAKPOINT_OFFSET.
5929 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5930 CALL_DUMMY_START_OFFSET.
5931 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5932 * gdbarch.h, gdbarch.c: Re-generate.
5933 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5934 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5935 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5936 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5937 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5938 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5939 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5940 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5941 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5942 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5943 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5944 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5945 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5946 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5947 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
5948
59492003-05-05 Kris Warkentin <kewarken@qnx.com>
5950
5951 * configure.tgt: Add i[3456]86-*-nto*.
5952 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5953 * nto-tdep.c: New file. Neutrino target support routines.
5954 * nto-tdep.h: New file. Neutrino target header.
5955 * config/tm-qnxnto.h: New file.
5956 * config/i386/i386nto.mt: New file.
5957 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 5958
0ce3d317
AC
59592003-05-04 Andrew Cagney <cagney@redhat.com>
5960
5961 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5962 (load_infrun_state): Ditto.
5963 (struct thread_info): Drop "prev_func_name" field.
5964 * thread.c (load_infrun_state): Update.
5965 (save_infrun_state): Update.
5966 * infrun.c (prev_func_name): Delete variable.
5967 (init_wait_for_inferior): Do not clear prev_func_name.
5968 (stop_stepping, keep_going, context_switch): Do not swap
5969 prev_func_name.
5970 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5971 instead of PC_IN_SIGTRAMP.
5972
46654a5b
AC
59732003-05-04 Andrew Cagney <cagney@redhat.com>
5974
5975 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5976 REGISTER_BYTE with register_offset_hack.
5977 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5978 that REGISTER_BYTE is consistent with the regcache.
5979 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5980 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 5981
14b08c1b
MK
59822003-05-04 Mark Kettenis <kettenis@gnu.org>
5983
04c8243f
MK
5984 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5985 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5986
14b08c1b
MK
5987 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5988
c7a11e01
JB
59892003-05-03 J. Brobecker <brobecker@gnat.com>
5990
5991 From Thierry Schneider <tpschneider1@yahoo.com>
5992 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5993 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5994 (mi-cmd-symbol.o): Add rule.
5995
7043d8dc
AC
59962003-05-03 Andrew Cagney <cagney@redhat.com>
5997
5998 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5999 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6000 * gdbarch.h, gdbarch.c: Re-generate.
6001 * d10v-tdep.c (d10v_push_dummy_code): New function.
6002 (d10v_gdbarch_init): Set push_dummy_code.
6003 * infcall.c (legacy_push_dummy_code): New function.
6004 (generic_push_dummy_code): New function.
6005 (push_dummy_code): New function.
6006 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6007 instead of dummy_addr, to push_dummy_call. Move call to
6008 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6009 switch.
6010 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6011
92bf2b80
AC
60122003-05-03 Andrew Cagney <cagney@redhat.com>
6013
6014 * disasm.h (print_insn): Declare.
6015 * disasm.c (init_gdb_disassemble_info): New function.
6016 (gdb_disassembly): Call init_gdb_disassemble_info.
6017 (gdb_print_insn): New function.
6018 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6019 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6020 * mcore-tdep.c: Include "disasm.h"
6021 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6022 * d10v-tdep.c: Include "disasm.h".
6023 (display_trace): Call gdb_print_insn, instead of print_insn.
6024 (print_insn): Delete function.
6025 * printcmd.c: Include "disasm.h".
6026 (print_insn): Delete function.
6027 (print_formatted): Call gdb_print_insn, instead of print_insn.
6028 * Makefile.in (printcmd.o): Update dependencies.
6029 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 6030
27d94c49
AC
60312003-05-02 Andrew Cagney <cagney@redhat.com>
6032
82de1e5b
AC
6033 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6034 PC_REGNUM, re-indent.
6035 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6036 PC_REGNUM isn't set.
6037
27d94c49
AC
6038 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6039 * gdbarch.h, gdbarch.c: Re-generate.
6040 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6041 register_virtual_size, pc_regnum, or register_bytes.
6042 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6043 (d10v_register_type): Use D10V_PC_REGNUM.
6044 (d10v_print_registers_info, d10v_read_pc): Ditto.
6045 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6046 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6047
a9c0dc7f
DC
60482003-05-02 David Carlton <carlton@bactrian.org>
6049
6050 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6051 the name with mstrsave.
6052
e33d66ec
EZ
60532003-05-02 Elena Zannoni <ezannoni@redhat.com>
6054
6055 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6056 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6057 (host_charset_name, target_charset_name): New vars for use by
6058 set/show commands.
6059 (host_charset_enum, target_charset_enum): New enums for set/show
6060 commands.
6061 (set_charset_sfunc, set_host_charset_sfunc,
6062 set_target_charset_sfunc): New functions.
6063 (set_host_charset, set_target_charset): Make static.
6064 (list_charsets, set_host_charset_command,
6065 set_target_charset_command): Delete functions.
6066 (show_charset_command): Rewrite as....
6067 (show_charset): Hook this up with the set/show command mechanism.
6068 (_initialize_charset): Change names of charsets to match the
6069 set/show enums. Use host_charset_name and target_charset_name.
6070 Use set/show mechanism for charset, host-charset, target-charset
6071 commands. Do not make 'show host-charset' and 'show
6072 target-charset' be aliases of 'show charset'.
6073
6074 * charset.h (set_host_charset, set_target_charset): Don't export,
6075 they are not used outside the file.
6076
2b6fd0d8
AC
60772003-05-01 Andrew Cagney <cagney@redhat.com>
6078
6079 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6080 (gdb_disassembly): Make "di" non static, always initialize and
6081 cleanup. Always use dis_asm_read_memory.
6082 (gdb_dis_asm_read_memory): Delete function.
6083
6ae2f580
AC
60842003-05-01 Andrew Cagney <cagney@redhat.com>
6085
6086 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6087 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6088
810ecf9f
AC
60892003-04-30 Andrew Cagney <cagney@redhat.com>
6090
6091 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6092 "tm_print_insn_info".
6093 (TARGET_PRINT_INSN_INFO): Delete macro.
6094 (dis_asm_read_memory): Delete function declaration.
6095 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6096 (tm_print_insn_info): Delete variable definition.
6097 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6098 * gdbarch.h, gdbarch.c: Re-generate.
6099 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6100 "deprecated_tm_print_insn_info".
6101 * mcore-tdep.c (mcore_dump_insn): Ditto.
6102 * mips-tdep.c (mips_gdbarch_init): Ditto.
6103 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6104 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6105 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6106 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6107 instead of TARGET_PRINT_INSN_INFO, add comment.
6108 * s390-tdep.c (s390_get_frame_info): Instead of
6109 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6110 (s390_check_function_end, s390_is_sigreturn): Ditto.
6111 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6112 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6113 * disasm.c: Include "gdbcore.h".
6114 (_initialize_disasm): New function, initialize
6115 "deprecated_tm_print_insn_info".
6116 (deprecated_tm_print_insn_info): New variable.
6117 (dis_asm_read_memory): Moved from "corefile.c", made static.
6118 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6119 * Makefile.in (disasm.o): Update dependencies.
6120
07020390
AC
61212003-04-30 Andrew Cagney <cagney@redhat.com>
6122
6123 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6124
a9fa03de
AF
61252003-04-29 Adam Fedor <fedor@gnu.org>
6126
6127 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6128 * infcall.c (find_function_addr): Make non-static.
6129 * infcall.h (find_function_addr): Declare.
6130 * Makefile.in (eval.o): Update dependencies.
6131
1bae87b9
AF
61322003-04-28 Adam Fedor <fedor@gnu.org>
6133
6134 * symtab.c (symbol_find_demangled_name): Check for and demangle
6135 ObjC symbols.
6136 (symbol_init_demangled_name): Init for language_objc as well.
6137
0ba6dca9
AC
61382003-04-28 Andrew Cagney <cagney@redhat.com>
6139
6140 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6141 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6142 * gdbarch.h, gdbarch.c: Re-generate.
6143 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6144 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6145 * inferior.h (deprecated_read_fp): Rename read_fp.
6146 (generic_target_read_fp): Delete declaration.
6147 * regcache.c (generic_target_read_fp): Delete function.
6148 (deprecated_read_fp): Replace read_fp, use
6149 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6150 * d10v-tdep.c (d10v_read_fp): Delete function.
6151 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6152
6153 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6154 deprecated_target_read_fp to generic_target_read_fp.
6155 * sh-tdep.c (sh_gdbarch_init): Ditto.
6156 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6157 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6158 * frv-tdep.c (frv_gdbarch_init): Ditto.
6159
6160 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6161 deprecated_fp_regnum.
6162 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6163 * vax-tdep.c (vax_gdbarch_init): Ditto.
6164 * v850-tdep.c (v850_gdbarch_init): Ditto.
6165 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6166 * sh-tdep.c (sh_gdbarch_init): Ditto.
6167 * s390-tdep.c (s390_gdbarch_init): Ditto.
6168 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6169 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6170 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6171 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6172 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6173 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6174 * i386-tdep.c (i386_gdbarch_init): Ditto.
6175 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6176 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6177 * frv-tdep.c (frv_gdbarch_init): Ditto.
6178 * cris-tdep.c (cris_gdbarch_init): Ditto.
6179 * avr-tdep.c (avr_gdbarch_init): Ditto.
6180 * arm-tdep.c (arm_gdbarch_init): Ditto.
6181 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6182
6183 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6184 * v850-tdep.c (v850_gdbarch_init): Ditto.
6185 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6186 * sh-tdep.c (sh_gdbarch_init): Ditto.
6187 * s390-tdep.c (s390_gdbarch_init): Ditto.
6188 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6189 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6190 * mips-tdep.c (mips_gdbarch_init): Ditto.
6191 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6192 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6193 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6194 * frv-tdep.c (frv_gdbarch_init): Ditto.
6195 * avr-tdep.c (avr_gdbarch_init): Ditto.
6196 * arm-tdep.c (arm_gdbarch_init): Ditto.
6197
6198 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6199 DEPRECATED_FP_REGNUM.
6200 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6201 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6202 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6203 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6204 (sparc32_register_virtual_type): Ditto.
6205 * sh-tdep.c (sh64_frame_chain): Ditto.
6206 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6207 (sh_nofp_frame_init_saved_regs): Ditto.
6208 (sh64_nofp_frame_init_saved_regs): Ditto.
6209 (sh_fp_frame_init_saved_regs): Ditto.
6210 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6211 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6212 * procfs.c (procfs_fetch_registers): Ditto.
6213 (procfs_store_registers): Ditto.
6214 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6215 (store_inferior_registers, fetch_core_registers): Ditto.
6216 (fetch_kcore_registers, clear_regs): Ditto.
6217 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6218 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6219 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6220 * nlm/i386.c (do_status): Ditto.
6221 * mipsv4-nat.c (supply_gregset): Ditto.
6222 * mips-tdep.c: Ditto for comments.
6223 * mips-nat.c (fetch_inferior_registers): Ditto.
6224 (store_inferior_registers, fetch_core_registers): Ditto.
6225 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6226 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6227 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6228 (i386_do_pop_frame, i386_register_type): Ditto.
6229 * hppa-tdep.c (hppa_frame_chain): Ditto.
6230 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6231 (hppa_pop_frame, hppa_read_fp): Ditto.
6232 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6233 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6234 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6235 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6236 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6237 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6238 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6239 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6240 * blockframe.c: Ditto for comments.
6241 * arch-utils.h: Ditto for comments.
6242 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6243 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6244 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6245 * alpha-tdep.h: Ditto for comments.
6246 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6247 (alpha_cannot_store_register): Ditto.
6248 (alpha_push_dummy_frame): Ditto.
6249 * alpha-nat.c (supply_gregset): Ditto.
6250
6251 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6252 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6253 * config/sparc/tm-sparc.h: Update comment.
6254
6255 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6256 deprecated_read_fp instead of TARGET_READ_FP.
6257 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6258 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6259 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6260 deprecated_read_fp instead of read_fp.
6261 * s390-tdep.c (s390_push_arguments): Ditto.
6262 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6263 * frame.h: Ditto in comments.
6264 * frame.c (legacy_get_prev_frame): Ditto.
6265 * dummy-frame.c (dummy_frame_this_id): Ditto.
6266 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6267
d7a27068
AC
62682003-04-28 Andrew Cagney <cagney@redhat.com>
6269
6270 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6271 * gdbarch.h, gdbarch.c: Re-generate.
6272 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6273 * vax-tdep.c (_initialize_vax_tdep): Update.
6274 * v850-tdep.c (_initialize_v850_tdep): Update.
6275 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6276 * s390-tdep.c (_initialize_s390_tdep): Update.
6277 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6278 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6279 * mips-tdep.c (_initialize_mips_tdep): Update.
6280 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6281 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6282 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6283 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6284 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6285 * frv-tdep.c (_initialize_frv_tdep): Update.
6286 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6287 (_initialize_cris_tdep): Update.
6288 * arch-utils.c (legacy_print_insn): Update.
6289 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6290
d2630e69
AF
62912003-04-26 Adam Fedor <fedor@gnu.org>
6292
6293 * linespec.c (decode_objc): New function to decode ObjC calls
6294 (decode_line_1): Check for ObjC calls (using decode_objc)
6295 * Makefile (linespec.o): Update dependencies.
6296
3086aeae
DJ
62972003-04-26 Daniel Jacobowitz <drow@mvista.com>
6298
6299 * breakpoint.h (struct breakpoint_ops): New.
6300 (struct breakpoint): Add ops member.
6301
6302 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6303 (mention): Use new breakpoint ops member.
6304 (set_raw_breakpoint): Initialize ops field to NULL.
6305 (print_exception_catchpoint, print_one_exception_catchpoint)
6306 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6307 (gnu_v3_exception_catchpoint_ops): New.
6308 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6309
1fbec6c3
AF
63102003-04-25 Adam Fedor <fedor@gnu.org>
6311
6312 * Makefile.in (COMMON_OBS): Add objc-lang.o
6313
0ef21242
AC
63142003-04-25 Andrew Cagney <cagney@redhat.com>
6315
6316 * d10v-tdep.c (print_insn): Delete function.
6317 (display_trace): Use TARGET_PRINT_INSN.
6318 (_initialize_d10v_tdep): Do not set tm_print_insn.
6319 (d10v_gdbarch_init): Set print_insn.
6320
f75493ed
AC
63212003-04-25 Andrew Cagney <cagney@redhat.com>
6322
6323 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6324 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6325 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6326 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6327 (nr_dmap_regs, a0_regnum): ... new functions.
6328 (d10v_print_registers_info): Use a0_regnum, use register_size.
6329 (d10v_register_byte): Delete function.
6330 (d10v_register_raw_size): Delete function.
6331 (d10v_register_type): Use a0_regnum.
6332 (d10v_print_registers_info): Use a0_regnum.
6333 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6334 (d10v_gdbarch_init): Do not set register_byte or
6335 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6336 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6337 extract_address.
6338 (trace_command): Use XCALLOC.
6339 (print_insn): Delete reference to tm_print_insn.
6340 (saved_regs_unwinder): Use store_unsigned_integer instead of
6341 store_address.
6342 * frame.h (FRAME_OBSTACK_CALLOC): Define
6343
2202b100
DC
63442003-04-25 David Carlton <carlton@bactrian.org>
6345
6346 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6347
4e45ca2e
AF
63482003-04-24 Adam Fedor <fedor@gnu.org>
6349
6350 * objc-lang.c: Include "valprint.h"
6351 * Makefile.in (objc-lang.o): Update dependencies.
6352
93de3e7f
AF
63532003-04-24 Adam Fedor <fedor@gnu.org>
6354
8ffd9b1b 6355 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
6356 architecture dependant compilation and mark as unimplemented
6357 (until they get put in the gdbarch vector).
6358
0f20eeea
DC
63592003-04-23 David Carlton <carlton@bactrian.org>
6360
6361 * cp-support.c (cp_find_first_component): Accept 'operator' in
6362 more locations.
6363
74cfe982
AC
63642003-04-23 Andrew Cagney <cagney@redhat.com>
6365
6366 * infcall.c (call_function_by_hand): Eliminate redundant
6367 indentation. Move "saved_async" and "old_cleanups" to where they
6368 are needed.
8ffd9b1b 6369
52557533
AC
63702003-04-23 Andrew Cagney <cagney@redhat.com>
6371
6372 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6373 and "buffer". Move the "name" code to where it is needed.
6374
158775de
AC
63752003-04-23 Andrew Cagney <cagney@redhat.com>
6376
6377 * infcall.c (call_function_by_hand): Move variables "start_sp",
6378 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6379 code to ON_STACK switch branch.
8ffd9b1b 6380
ebc7896c
AC
63812003-04-23 Andrew Cagney <cagney@redhat.com>
6382
6383 * infcall.c (call_function_by_hand): Make declaration of "i",
6384 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6385 lint.
6386
d727590f
AC
63872003-04-23 Andrew Cagney <cagney@redhat.com>
6388
6389 * infcall.c (call_function_by_hand): Delete variable
6390 "n_method_args". Localize "param_type"'s declaration to the loop
6391 that it is used. Reinstate code assigning to said variable -
6392 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6393 Rationalize code using "param_type".
6394
d585e13a
AC
63952003-04-22 Andrew Cagney <cagney@redhat.com>
6396
6397 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6398 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6399 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6400 to DEPRECATED_PUSH_RETURN_ADDRESS.
6401
051caad9
KB
64022003-04-22 Kevin Buettner <kevinb@redhat.com>
6403
6404 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6405 on the DWARF2 register number prior to fetching a register.
6406
77296879
JB
64072003-04-22 J. Brobecker <brobecker@gnat.com>
6408
6409 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6410 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 6411 this macro was always set to 0.
77296879
JB
6412 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6413 considering the fact that this macro was always set to 0.
6414 * hppa-tdep.h (hppa_store_return_value): Likewise.
6415 (hppa_extract_return_value): Likewise.
6416
4252f1df
JB
64172003-04-22 J. Brobecker <brobecker@gnat.com>
6418
6419 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6420 the hppa-pro target only.
6421
14604c6b
JB
64222003-04-21 J. Brobecker <brobecker@gnat.com>
6423
6424 Ongoing multi-arch conversion effort for HP/UX:
6425 * config/pa/tm-hppa.h: Move all macro that are no longer
6426 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6427 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6428
77eb01d1
JB
64292003-04-21 J. Brobecker <brobecker@gnat.com>
6430
6431 * config/pa/tm-hppa.h: Obsolete a section that was only used
6432 for hppa-pro.
6433
61995b3b
JB
64342003-04-21 J. Brobecker <brobecker@gnat.com>
6435
6436 Ongoing multi-arch conversion for HP/UX.
6437 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6438 if already defined (allows hppa64 to stay non-multiarched for now).
6439 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6440
4aa79dcc
AC
64412003-04-21 Andrew Cagney <cagney@redhat.com>
6442
6443 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6444
0f751ff2
AC
64452003-04-21 Andrew Cagney <cagney@redhat.com>
6446
6447 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6448 "i386_num_mmx_regs".
6449
04714b91
AC
64502003-04-21 Andrew Cagney <cagney@redhat.com>
6451
6452 * infcall.c: New file.
6453 * infcall.h: New file.
6454 * valarith.c: Include "infcall.h".
6455 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6456 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6457 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6458 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6459 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6460 (SFILES): Add "infcall.c"
6461 (COMMON_OBS): Add "infcall.o".
6462 (infcall.o): Specify dependencies.
6463 * value.h (call_function_by_hand): Delete declaration.
6464 * inferior.h (run_stack_dummy): Delete declaration.
6465 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6466 (run_stack_dummy): Move to "infcall.c", merged into
6467 call_function_by_hand.
6468 * valops.c (call_function_by_hand): Moved to "infcall.c".
6469 (find_function_addr, value_arg_coerce): Ditto.
6470 (unwindonsignal_p, coerce_float_to_double): Ditto.
6471 (_initialize_valops): Move "set/show coerce-float-to-double", and
6472 "set/show unwindonsignal" commands to "infcall.c".
6473 * v850-tdep.c, target.h: Update comments.
6474 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6475 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6476 (sh64_init_extra_frame_info): Update comments.
6477 * mn10300-tdep.c: Update comments.
6478 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6479 * config/sparc/tm-sparc.h: Update comments.
6480 * breakpoint.h: Update comments.
6481 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6482 * arm-tdep.c: Update comment.
6483
f9d3c2a8
MK
64842003-04-19 Mark Kettenis <kettenis@gnu.org>
6485
c40e1eab
MK
6486 * i386-tdep.c (i386_num_register_names): New variable.
6487 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6488 (MM0_REGNUM): Remove redundant parentheses in define.
6489 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6490 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6491 i386_mxcsr_regnum_p): Remove redundant parentheses.
6492 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 6493
94ea66b3
MK
6494 * i386-tdep.c (i386_extract_return_value,
6495 i386_store_return_value): Correct check for availability of
6496 floating-point registers.
6497
54299a1d
MK
6498 * i386-tdep.c (i386_frame_num_args): Remove function.
6499 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6500
c86c27af
MK
6501 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6502 mmx_regnum_to_fp_regnum. Adjust all callers.
6503
f9d3c2a8
MK
6504 * i386-tdep.c (i386_get_longjmp_target): Use
6505 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6506 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6507 extract_address.
6508
94ba74a9
MK
65092003-04-19 Mark Kettenis <kettenis@gnu.org>
6510
6511 * core-regset.c: Update comments to reflect reality. Re-order
6512 includes.
6513 (fetch_core_registers): Use switch instead of if. Remove
6514 redundant prototype.
6515
4074e13c
JB
65162003-04-18 Jim Blandy <jimb@redhat.com>
6517
6518 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 6519 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 6520
e3ab4aba
RH
65212003-04-17 Richard Henderson <rth@redhat.com>
6522
6523 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6524
627bf7c1
EZ
65252003-04-17 Michael Snyder <msnyder@redhat.com>
6526 Karen Bennet <bennet@redhat.com>
6527
6528 Committed by Elena Zannoni <ezannoni@redhat.com>
6529 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 6530
514621a9
EZ
65312003-04-17 Elena Zannoni <ezannoni@redhat.com>
6532
6533 * values.c (value_being_returned): Don't fetch the return
fbe586ae 6534 value if the return type is void.
514621a9 6535
b4acd559
JJ
65362003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6537
6538 * thread-db.c: Reindented.
8ffd9b1b 6539
530b167e 65402003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6541
6542 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6543 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
6544 as types.
6545
0a48e7e8
MS
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
8ffd9b1b 6569
ab9fe00e
KB
65702003-04-16 Kevin Buettner <kevinb@redhat.com>
6571
610a3745 6572 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
6573 the size of ``long double'' to 16, instead of 8.
6574
e64a344c
MK
65752003-04-16 Mark Kettenis <kettenis@gnu.org>
6576
6577 * i386-linux-nat.c: Add some whitespace to make things more
6578 readable.
6579 (fetch_register, store_register, fetch_inferior_registers,
6580 store_inferior_registers): Get rid of assignment in if-statement.
6581 (store_register): Fix typo in error message.
6582
25d41031
AC
65832003-04-16 Andrew Cagney <cagney@redhat.com>
6584
6585 * utils.c (xmmalloc): Always allocate something, matches
6586 libiberty/xmalloc's semantics.
6587 (xmrealloc, xmcalloc): Ditto.
6588
c50901fd
AC
65892003-04-16 Andrew Cagney <cagney@redhat.com>
6590
6591 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6592 update comments.
6593 (get_frame_type): Initialize unwind and type when needed.
6594 (get_frame_id, frame_register_unwind): Ditto.
6595
f81824a9
AC
65962003-04-16 Andrew Cagney <cagney@redhat.com>
6597
6598 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6599 obsolete.
6600 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6601 * sparcl-stub.c: Obsolete file.
6602 * config/sparc/tm-sparclet.h: Obsolete file.
6603 * sparclet-stub.c: Obsolete file.
6604 * sparclet-rom.c: Obsolete file.
6605 * sparcl-tdep.c: Obsolete file.
6606 * config/sparc/tm-sparclite.h: Obsolete file.
6607 * config/sparc/sparclite.mt: Obsolete file.
6608 * config/sparc/sparclet.mt: Obsolete file.
6609 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6610 sparc86x-*-* obsolete.
6611
9219021c
DC
66122003-04-15 David Carlton <carlton@math.stanford.edu>
6613
6614 * Makefile.in (SFILES): Add cp-namespace.c.
6615 (COMMON_OBS): Add cp-namespace.o.
6616 (block.o): Depend on gdb_obstack_h and cp_support_h.
6617 (buildsym.o): Depend on cp_support_h.
6618 (cp-namespace.o): New.
6619 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6620 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6621 (dwarf2read.o): Depend on cp_support_h.
6622 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6623 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6624 processing_current_namespace.
6625 (read_namespace): Update processing_current_namespace; check for
6626 anonymous namespaces.
6627 (dwarf2_name): New function.
6628 (dwarf2_extension): Ditto.
6629 * cp-support.h: Update copyright, contributors.
6630 Add inclusion guards.
6631 Add opaque declaration for structs obstack, block, symbol.
6632 (struct using_direct): New struct.
6633 Add declarations for cp_find_first_component,
6634 cp_entire_prefix_len, processing_has_namespace_info,
6635 processing_current_namespace, cp_is_anonymous,
6636 cp_add_using_directive, cp_initialize_namespace,
6637 cp_finalize_namespace, cp_set_block_scope,
6638 cp_scan_for_anonymous_namespaces.
6639 * cp-namespace.c: New file.
6640 * cp-support.c: Update copyright.
6641 Include ctype.h, gdb_assert.h, gdbcmd.h.
6642 New variable maint_cplus_cmd_list.
6643 (cp_find_first_component): New function.
6644 (cp_entire_prefix_len, maint_cplus_command)
6645 (first_component_command, _initialize_cp_support): Ditto.
6646 * buildsym.c: Include cp-support.h.
6647 New variable using_list.
6648 (add_symbol_to_list): Check for anonymous namespaces.
6649 (finish_block): Set block's scope.
6650 (start_symtab): Initialize C++ namespace support.
6651 (end_symtab): Finalize C++ namespace support.
6652 * block.h: Add opaque declarations for structs
6653 block_namespace_info, using_direct, and obstack.
6654 Add declarations for block_set_scope and block_set_using.
6655 (struct block): Add 'language_specific' member.
6656 (BLOCK_NAMESPACE): New macro.
6657 * block.c: Include gdb_obstack.h and cp-support.h.
6658 (struct block_namespace_info): New struct.
6659 (block_set_scope): New function.
6660 (block_set_using, block_initialize_namespace): Ditto.
6661
d5a921c9
KB
66622003-04-14 Kevin Buettner <kevinb@redhat.com>
6663
6664 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6665 (locate_base): Return early if there aren't any link map offsets.
6666 (svr4_solib_create_inferior_hook): Warn if shared library support
6667 is unavailable.
6668
d2a52b27
DC
66692003-04-14 David Carlton <carlton@math.stanford.edu>
6670
6671 * symtab.c (symbol_set_names): Add prefix when storing Java names
6672 in hash table. Fix for PR java/1039.
6673
980cae7a
DC
66742003-04-14 David Carlton <carlton@math.stanford.edu>
6675
6676 * symtab.c (symbol_set_names): Rename 'name' arg to
6677 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6678 * symtab.h: Change 'name' argument in declaration of
6679 symbol_set_names to 'linkage_name'.
6680 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6681
e227b13c
AC
66822003-04-14 Andrew Cagney <cagney@redhat.com>
6683
6684 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6685 return the fully sign-extended register value.
6686 (get_frame_pointer): Ditto.
6687 (mips_pop_frame): Initialize "proc_desc" after checking for a
6688 dummy frame.
6689
36712a20
AC
66902003-04-14 Andrew Cagney <cagney@redhat.com>
6691
6692 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6693 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6694 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6695 (mips_push_register): Delete function.
6696 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6697 PUSH_FP_REGNUM.
6698
44ea7b70
JB
66992003-04-14 Jim Blandy <jimb@redhat.com>
6700
6701 * symmisc.c: #include "gdb_regex.h".
6702 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6703 functions.
6704 * maint.c (maintenance_list_command): New function.
6705 (_initialize_maint_cmds): Register the above as commands.
6706 * symtab.h (maintenance_list_symtabs,
6707 maintenance_list_psymtabs): New declarations.
6708 * cli/cli-cmds.c (maintenancelistlist): New variable.
6709 (init_cmd_lists): Initialize it.
6710 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6711 * gdbcmd.h (maintenancelistlist): New declaration.
6712 * Makefile.in (symmisc.o): Update dependencies.
6713
2d0c7962
EZ
67142003-04-14 Elena Zannoni <ezannoni@redhat.com>
6715
6716 * s390-nat.c: Include asm/types.h for addr_t.
6717
1947a811
CV
67182003-04-14 Corinna Vinschen <vinschen@redhat.com>
6719
6720 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6721 actually incoming type.
6722
adb616d7
AC
67232003-04-13 Andrew Cagney <cagney@redhat.com>
6724
6725 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6726 get_next_frame and get_frame_saved_regs.
6727
9b5e151c
AC
67282003-04-13 Andrew Cagney <cagney@redhat.com>
6729
6730 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6731 of gdbarch_num_regs.
6732
ef6e7e13
AC
67332003-04-13 Andrew Cagney <cagney@redhat.com>
6734
6735 * frame.h: Mention what replaced what in "struct frame_info".
6736 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6737 deprecated_update_frame_base_hack and
6738 deprecated_update_frame_pc_hack.
6739 * hppa-tdep.c: Ditto.
6740
61fbb938
DJ
67412003-04-13 Daniel Jacobowitz <drow@mvista.com>
6742
6743 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6744 to read_reg and update its comment. Remove regnum member.
6745 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6746 Don't call read_reg when setting in_reg. Call read_reg to get
6747 the frame base if it's in a register. Return the register number
6748 on the stack instead of in the context. Remove extra arguments
6749 to read_reg.
6750 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6751 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6752 the register number on the expression stack.
6753 (needs_frame_read_reg): Remove extra arguments.
6754
0d53c4c4
DJ
67552003-04-13 Daniel Jacobowitz <drow@mvista.com>
6756
6757 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6758 made non-static.
6759 (execute_stack_op): All callers updated.
6760 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6761 * dwarf2loc.c (find_location_expression): New function.
6762 (dwarf_expr_frame_base): Call it.
6763 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6764 (dwarf2_tracepoint_var_ref): New function, broken out from
6765 locexpr_tracepoint_var_ref.
6766 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6767 Make static.
6768 (loclist_read_variable, loclist_read_needs_frame): New functions.
6769 (loclist_describe_location, loclist_tracepoint_var_ref): New
6770 functions.
6771 (dwarf2_loclist_funcs): New struct location_funcs.
6772 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6773 (struct dwarf2_locexpr_baton): Add comments.
6774 (dwarf2_loclist_funcs): New extern.
6775 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6776 base_address and base_known.
6777 (dwarf_loc_buffer): New variable.
6778 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6779 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6780 (dwarf2_has_info): Initialize dwarf_loc_offset.
6781 (dwarf2_build_psymtabs): Read in .debug_loc.
6782 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6783 DWARF_LOC_SIZE.
6784 (psymtab_to_symtab_1): Likewise. Move base address calculation
6785 here, from...
6786 (dwarf2_get_pc_bounds): ... here. Use the base address from
6787 cu_header.
6788 (dwarf2_symbol_mark_computed): Handle location lists.
6789
6aca59a3
DJ
67902003-04-13 Daniel Jacobowitz <drow@mvista.com>
6791
6792 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6793 if the linkage name demangled successfully.
6794
aca1fcd0
MK
67952003-04-13 Mark Kettenis <kettenis@gnu.org>
6796
97095916
MK
6797 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6798 disassmbly_flavour): Removed.
6799
aca1fcd0
MK
6800 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6801
562a961f
MK
68022003-04-13 Mark Kettenis <kettenis@gnu.org>
6803
6804 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6805
bd013d54
AC
68062003-04-12 Andrew Cagney <cagney@redhat.com>
6807
6808 * frame.h (struct frame_info): Move definition from here ...
6809 * frame.c (struct frame_info): ... to here.
6810
167ef8b1
AC
68112003-04-12 Andrew Cagney <cagney@redhat.com>
6812
6813 * gdbthread.h (save_infrun_state): Delete parameter
6814 "prev_func_start".
6815 (struct thread_info): Delete field "prev_func_start".
6816 (load_infrun_state): Ditto.
6817 * thread.c (load_infrun_state, save_infrun_state): Update.
6818 * infrun.c (prev_func_start): Delete variable.
6819 (context_switch, init_wait_for_inferior): Update.
6820 (stop_stepping, keep_going): Update.
6821
da3331ec
AC
68222003-04-12 Andrew Cagney <cagney@redhat.com>
6823
6824 * gdbarch.sh: Add missing opaque declarations.
6825 * gdbarch.h: Regnerate.
6826 * symtab.h: Add missing opaque declarations.
6827 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6828 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6829 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6830 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6831 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6832 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6833 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6834 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6835 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6836 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6837 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6838 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6839 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6840
18adea3f
AC
68412003-04-11 Andrew Cagney <cagney@redhat.com>
6842
6843 * frame.c (get_frame_id): Return this frame's "id".
6844 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6845 function start.
6846 (legacy_saved_regs_this_id): Replace function body with
6847 internal-error.
6848 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6849 FRAME_OBSTACK_ZALLOC.
6850 (create_new_frame): Mark the frame ID as valid.
6851
2252e863
AO
68522003-04-11 Alexandre Oliva <aoliva@redhat.com>
6853
6854 * Makefile.in (libbfd_h): Added missing setting.
6855 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6856 according to the selected ABI.
6857
a8245ab8
JJ
68582003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6859
6860 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6861
6913c89a
AC
68622003-04-11 Andrew Cagney <cagney@redhat.com>
6863
6864 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6865 SAVED_PC_AFTER_CALL.
6866 * gdbarch.h, gdbarch.c: Regenerate.
6867 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6868 * x86-64-tdep.c (x86_64_init_abi): Update.
6869 * vax-tdep.c (vax_gdbarch_init): Update.
6870 * v850-tdep.c (v850_gdbarch_init): Update.
6871 * sparc-tdep.c (sparc_gdbarch_init): Update.
6872 * sh-tdep.c (sh_gdbarch_init): Update.
6873 * s390-tdep.c (s390_gdbarch_init): Update.
6874 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6875 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6876 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6877 * mips-tdep.c (mips_gdbarch_init): Update.
6878 * mcore-tdep.c (mcore_gdbarch_init): Update.
6879 * m68k-tdep.c (m68k_gdbarch_init): Update.
6880 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6881 * ia64-tdep.c (ia64_gdbarch_init): Update.
6882 (ia64_saved_pc_after_call): Update declaration.
6883 * i386ly-tdep.c (i386lynx_init_abi): Update.
6884 * i386-tdep.c (i386_gdbarch_init): Update.
6885 * hppa-tdep.c (hppa_gdbarch_init): Update.
6886 * h8300-tdep.c (h8300_gdbarch_init): Update.
6887 * frv-tdep.c (frv_gdbarch_init): Update.
6888 * cris-tdep.c (cris_gdbarch_init): Update.
6889 * avr-tdep.c (avr_gdbarch_init): Update.
6890 * arm-tdep.c (arm_gdbarch_init): Update.
6891 * alpha-tdep.c (alpha_gdbarch_init): Update.
6892 * ns32knbsd-nat.c (frame_num_args): Update.
6893 * ns32k-tdep.c (umax_frame_num_args): Update.
6894 * mips-tdep.c (mips_init_frame_pc_first): Update.
6895 * infrun.c (step_over_function): Update.
6896 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6897 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6898 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6899 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6900 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6901 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6902 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6903 * arch-utils.c (init_frame_pc_default): Update.
6904 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6905 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6906 declaration.
8ffd9b1b 6907
38edeab8
AC
69082003-04-11 Andrew Cagney <cagney@redhat.com>
6909
6910 * i387-tdep.c: Update copyright.
6911 (i387_to_double): Delete function.
6912 (double_to_i387): Delete function.
6913
81f8a206
AC
69142003-04-10 Andrew Cagney <cagney@redhat.com>
6915
6916 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6917 frame's function's address. Simplify.
6918 (d10v_frame_unwind_cache): Check that the frame's function is
6919 non-zero.
6920
6e691f7a
JB
69212003-04-10 Jim Blandy <jimb@redhat.com>
6922
6923 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6924 call to set_gdbarch_deprecated_push_arguments.
6925
7f78e237
AC
69262003-04-10 Andrew Cagney <cagney@redhat.com>
6927
6928 * frame.c (fprint_frame_id): New function.
6929 (fprint_frame_type, fprint_frame): New function.
6930 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6931 (create_sentinel_frame, get_frame_id): Ditto.
6932 (frame_id_p, frame_id_eq): Ditto.
6933 (frame_id_inner, create_new_frame): Ditto.
6934 (legacy_get_prev_frame, get_prev_frame): Ditto.
6935 (deprecated_update_frame_pc_hack): Ditto.
6936 (frame_register_unwind): Ditto.
6937 (deprecated_update_frame_base_hack): Ditto.
6938
f870b49b
CV
69392003-04-10 Corinna Vinschen <vinschen@redhat.com>
6940
6941 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6942 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6943 frame_chain function.
6944 * Makefile.in: Add dependencies due to above change.
6945
7c86889b
CV
69462003-04-10 Corinna Vinschen <vinschen@redhat.com>
6947
6948 * blockframe.c (legacy_frame_chain_valid): Move call to
6949 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6950 inside_entry_file.
6951
d0a55772
AC
69522003-04-09 Andrew Cagney <cagney@redhat.com>
6953
6954 * frame.h (struct frame_id): Replace "pc" and "base" with
6955 "stack_addr" and "code_addr". Update comments.
6956 (frame_id_build): Update parameter names and comment.
6957 (struct frame_info): Replace "id_p" and "id" with "this_id".
6958 * dummy-frame.c (dummy_frame_this_id): Update.
6959 * breakpoint.c (print_one_breakpoint): Update.
6960 * frame.c (get_frame_id): Update.
6961 (get_frame_base, frame_id_build): Update.
6962 (create_sentinel_frame, legacy_get_prev_frame): Update.
6963 (deprecated_update_frame_base_hack): Update.
6964 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6965 (frame_id_inner): Ditto.
6966
ac16bf07
AC
69672003-04-09 Andrew Cagney <cagney@redhat.com>
6968
6969 * defs.h (gdb_print_host_address): Make "addr" parameter a
6970 pointer constant.
6971 * utils.c (gdb_print_host_address): Update.
6972
366cfc9e
KB
69732003-04-09 Kevin Buettner <kevinb@redhat.com>
6974
6975 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6976 register number for R0 is 0.
6977
cd983b5c
JB
69782003-04-09 J. Brobecker <brobecker@gnat.com>
6979
6980 * frame.h (struct gdbarch): Add opaque structure definition
6981 to avoid a compilation warning on LynxOS 4.0.
6982
d1340264
AC
69832003-04-09 Andrew Cagney <cagney@redhat.com>
6984
6985 * frame.h (struct frame_info): Delete field "pc". Replace
6986 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6987 structure.
6988 * frame.c (frame_pc_unwind): Update.
6989 (create_sentinel_frame): Do not set "pc".
6990 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6991 (get_frame_pc): Call frame_pc_unwind.
6992 (deprecated_update_frame_pc_hack): Update.
6993 (create_new_frame): Use "pc" not "->pc".
6994
90a6fffb
AC
69952003-04-09 Andrew Cagney <cagney@redhat.com>
6996
6997 * frame.c (get_frame_id): Eliminate code updating "frame".
6998 (legacy_get_prev_frame): Ditto.
6999 (get_frame_base): Return id.base directly.
7000 (deprecated_update_frame_base_hack): Update "id.base".
7001 * frame.h (struct frame_info): Delete field "frame".
7002
2fbce691
AC
70032003-04-09 Andrew Cagney <cagney@redhat.com>
7004
7005 * NEWS: Mention that the "Sequent family" is obsolete.
7006 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7007 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7008 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7009 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7010 * config/i386/tm-ptx4.h: Obsolete file.
7011 * config/i386/tm-ptx.h: Obsolete file.
7012 * symm-tdep.c: Obsolete file.
7013 * config/i386/symmetry.mt: Obsolete file.
7014 * config/i386/tm-symmetry.h: Obsolete file.
7015 * symm-nat.c: Obsolete file.
7016 * config/i386/nm-symmetry.h: Obsolete file.
7017 * config/i386/xm-symmetry.h: Obsolete file.
7018 * config/i386/symmetry.mh: Obsolete file.
7019 * config/i386/nm-ptx4.h: Obsolete file.
7020 * config/i386/ptx4.mh: Obsolete file.
7021 * config/i386/ptx.mt: Obsolete file.
7022 * config/i386/ptx.mh: Obsolete file.
7023 * config/i386/xm-ptx4.h: Obsolete file.
7024 * config/i386/xm-ptx.h: Obsolete file.
7025
78c43945
AC
70262003-04-09 Andrew Cagney <cagney@redhat.com>
7027
7028 Obsolete mips*-*-mach3*.
7029 * NEWS: Mention that mips*-*-mach3* is obsolete.
7030 * m3-nat.c: Obsolete file.
7031 * config/nm-m3.h: Obsolete file.
7032 * config/mips/tm-mipsm3.h: Obsolete file.
7033 * config/mips/mipsm3.mt: Obsolete file.
7034 * config/mips/mipsm3.mh: Obsolete file.
7035 * config/mips/xm-mipsm3.h: Obsolete file.
7036 * mipsm3-nat.c: Obsolete file.
7037 * configure.host: Obsolete mips-dec-mach3*.
7038 * configure.tgt: Obsolete mips*-*-mach3*.
7039
f1908289
AC
70402003-04-09 Andrew Cagney <cagney@redhat.com>
7041
7042 * doublest.h: Update copyright.
7043 (deprecated_store_floating, deprecated_extract_floating): Rename
7044 store_floating and extract_floating. Update comments.
7045 * doublest.c: Update copyright.
7046 (extract_floating_by_length): Replace extract_floating.
7047 (store_floating_by_length): Replace store_floating.
7048 (deprecated_extract_floating): New function.
7049 (deprecated_store_floating): New function.
7050 (extract_typed_floating): Call extract_floating_by_length.
7051 (store_typed_floating): Call store_floating_by_length.
7052 * x86-64-tdep.c (x86_64_store_return_value): Update.
7053 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7054 (sh64_extract_return_value): Update.
7055 (sh_sh4_register_convert_to_virtual): Update.
7056 (sh_sh64_register_convert_to_virtual): Update.
7057 (sh_sh4_register_convert_to_raw): Update.
7058 (sh_sh64_register_convert_to_raw): Update.
7059 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7060 (rs6000_register_convert_to_raw): Update.
7061 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7062 (ia64_register_convert_to_raw): Update.
7063 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7064 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7065 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7066 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7067 (alpha_register_convert_to_raw): Update.
7068
4443bd83
AC
70692003-04-08 Andrew Cagney <cagney@redhat.com>
7070
7071 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7072 * gdbarch.h, gdbarch.c: Re-generate.
7073 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7074 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7075 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7076 conditionally, use frame_pc_unwind as an alternative. Add
7077 comments.
7078 * arch-utils.c (init_frame_pc_default): Only call
7079 SAVED_PC_AFTER_CALL when available.
7080
c0236d92
EZ
70812003-04-08 Elena Zannoni <ezannoni@redhat.com>
7082
fbe586ae 7083 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7084 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7085 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7086 (start_remote): Ditto.
7087 (handle_inferior_event): Ditto.
7088 (save_inferior_status): Ditto.
7089 (restore_inferior_status): Ditto.
7090 * infcmd.c (attach_command): Ditto.
7091 * fork-child.c (startup_inferior): Ditto.
fbe586ae 7092 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7093 * alpha-tdep.c (heuristic_proc_start): Ditto.
7094 * mips-tdep.c (heuristic_proc_start): Ditto.
7095 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7096 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7097 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7098 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7099 * remote-vx.c (vx_create_inferior): Ditto.
7100
71012003-04-08 Elena Zannoni <ezannoni@redhat.com>
7102
7103 * infrun.c (stop_soon_quietly): Make it an enum, to better
7104 override the default behavior of handle_inferior_event.
7105 (clear_proceed_status): Update uses of stop_soon_quietly to
7106 reflect that it is now an enum.
7107 (start_remote): Ditto.
7108 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7109 is set to handle the new GNU/Linux kernel behavior for
7110 attach/sigstop. Update uses of stop_soon_quietly.
7111 * inferior.h (enum stop_kind): New enum.
7112 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7113 Reset normal handle_inferior_event behavior, afterwards.
7114 * fork-child.c (startup_inferior): Update.
7115 * alpha-tdep.c (heuristic_proc_start): Update.
7116 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7117 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7118 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7119 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7120 * remote-vx.c (vx_create_inferior): Update.
7121 * mips-tdep.c (heuristic_proc_start): Update.
7122
1211bce3
EZ
71232003-04-07 Elena Zannoni <ezannoni@redhat.com>
7124
7125 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 7126 be freed more than once, causing wild memory corruptions.
1211bce3 7127 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 7128 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 7129 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 7130 with the "core" target.
1211bce3 7131
f0ef6b29
KB
71322003-04-07 Kevin Buettner <kevinb@redhat.com>
7133
7134 * mips-tdep.c (mips_print_fp_register): New function, created from
7135 do_fp_register_row(). Registers are now (also) printed as hex.
7136 Only one register is printed per row.
7137 (mips_print_register, do_fp_register_row): Print floating point
7138 registers with mips_print_fp_register().
7139
8cf71652
AC
71402003-04-06 Andrew Cagney <cagney@redhat.com>
7141
5e488a7b
AC
7142 * valprint.h (inspect_it): Add extern declaration.
7143 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7144 (selectors_info, classes_info): Ditto.
7145 (find_objc_msgcall): Fix indentation.
7146 (objc_printstr): Delete extern declarations.
7147
8cf71652
AC
7148 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7149
e6ba3bc9
AC
71502003-04-06 Andrew Cagney <cagney@redhat.com>
7151
7152 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7153 Update comment.
7154 * frame.c (legacy_saved_regs_this_id): Update.
7155 (legacy_get_prev_frame): Update.
7156 * xstormy16-tdep.c: Update comment.
7157 * sparc-tdep.c (sparc_frame_chain): Update comment.
7158 * blockframe.c (legacy_frame_chain_valid): Update.
7159
55e1d7e7
AC
71602003-04-06 Andrew Cagney <cagney@redhat.com>
7161
996179ee
AC
7162 * valprint.c (val_print_type_code_int): Delete #ifdef
7163 PRINT_TYPELESS_INTEGER code.
7164
55e1d7e7
AC
7165 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7166 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7167 multi-arch definition.
7168 * gdbarch.h: Re-generate.
7169
43bd9a9e
AC
71702003-04-05 Andrew Cagney <cagney@redhat.com>
7171
7172 Eliminate FRAME_FIND_SAVED_REGS.
7173 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7174 Change FSR parameter to a pointer.
7175 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7176 Assume FSR parameter is a pointer.
7177 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7178 Make fsr a pointer.
7179 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7180 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7181 saved_regs a pointer.
7182 (hppa_frame_saved_pc): Ditto.
7183 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7184 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7185 pointer.
7186 (restore_pc_queue): Make fsr a pointer.
7187 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7188 (hppa_frame_chain): Make saved_regs a pointer, call
7189 hppa_frame_init_saved_regs.
7190 * sparc-tdep.c: Include "gdb_assert.h".
7191 (sparc_frame_find_saved_regs): Replace internal_error with
7192 gdb_assert.
7193 * remote-vxsparc.c (vx_read_register): Delete reference to
7194 FRAME_FIND_SAVED_REGS.
7195 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7196 * gdbarch.h: Regenerate.
7197 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7198 (deprecated_get_frame_saved_regs): Delete declaration.
7199 (struct frame_saved_regs): Delete definition.
7200 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7201 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7202 (hppa_frame_find_saved_regs): Delete declaration.
7203 (FRAME_FIND_SAVED_REGS): Delete macro.
7204 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7205 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7206 FRAME_FIND_SAVED_REGS in comment.
7207
be41e9f4
AC
72082003-04-05 Andrew Cagney <cagney@redhat.com>
7209
7210 * frame.c (frame_func_unwind, get_frame_func): New functions.
7211 * frame.h (get_frame_func, frame_func_unwind): Declare.
7212 (struct frame_info): Add field "prev_func" for caching the
7213 previous frame's function address.
7214 * arm-tdep.c (arm_frameless_function_invocation): Combine
7215 get_pc_function_start and get_frame_pc into get_frame_func.
7216 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7217 (sh64_nofp_frame_init_saved_regs): Ditto.
7218 * s390-tdep.c (s390_function_start): Ditto.
7219 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7220 (rs6000_frameless_function_invocation): Ditto.
7221 (rs6000_frame_saved_pc): Ditto.
7222 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7223 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7224 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7225 (i386_frame_init_saved_regs): Ditto.
7226 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7227 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7228 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7229 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7230 * blockframe.c (frameless_look_for_prologue): Ditto.
7231
a01dd7cc
AC
72322003-04-05 Andrew Cagney <cagney@redhat.com>
7233
7234 * frame.c (legacy_get_prev_frame): Link prev to next at the
7235 function start. Update comments.
7236
5e5592e6
AC
72372003-04-05 Andrew Cagney <cagney@redhat.com>
7238
7239 * frame.c (get_frame_id): Update comment.
7240 (legacy_get_prev_frame): Update comment.
7241 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7242 * gdbarch.h: Regenerate.
7243 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7244 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7245
6fba5002
AC
72462003-04-05 Andrew Cagney <cagney@redhat.com>
7247
7248 * stack.c (print_frame_info): Use get_frame_pc.
7249
7df05f2b
AC
72502003-04-04 Andrew Cagney <cagney@redhat.com>
7251
7252 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7253 the frame's type from the unwinder.
7254 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7255 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7256 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7257 (get_frame_base_address): Use get_frame_type.
7258 (get_frame_locals_address, get_frame_args_address): Ditto.
7259 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7260 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7261 (struct frame_info): Add comment explaining why the frame contains
7262 a "type" field.
7263 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7264 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7265 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7266 NORMAL_FRAME.
7267 * frame-unwind.h: Include "frame.h".
7268 (struct frame_unwind): Add "type" field.
7269 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 7270
11889732
AC
72712003-04-04 Andrew Cagney <cagney@redhat.com>
7272
7273 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7274 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7275 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7276 get_frame_base.
7277 (d10v_unwind_dummy_id): Use frame_id_build.
7278 * frame.c (find_frame_sal): Use get_frame_pc.
7279 (create_new_frame): Use deprecated_update_frame_pc_hack and
7280 deprecated_update_frame_base_hack.
7281 (create_sentinel_frame): Add comment about ->pc going away.
7282 (get_prev_frame): Add comment about ->pc going away.
7283 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7284 frame_id_build, deprecated_update_frame_pc_hack and
7285 deprecated_update_frame_base_hack.
7286 (select_frame): Use get_frame_pc.
7287 (legacy_saved_regs_this_id): Use frame_id_build.
7288
50c46a0d
EZ
72892003-04-04 Elena Zannoni <ezannoni@redhat.com>
7290
fbe586ae
RH
7291 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7292 signed integer case.
7293 (classify_argument): Handle enumerations and references.
50c46a0d 7294
50bbdbd9
AC
72952003-04-04 Andrew Cagney <cagney@redhat.com>
7296
7297 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7298 ID to NULL.
7299
36018d2e
AF
73002003-04-01 Adam Fedor <fedor@gnu.org>
7301
7302 * gdb/objc-lang.c (selectors_info): Replace calls to
7303 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7304 SYMBOL_NATURAL_NAME.
7305 (classes_info, find_methods): Likewise.
7306
35cec841
KB
73072003-04-03 Kevin Buettner <kevinb@redhat.com>
7308
7309 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7310 ``mach'' to the value determined by bfd_default_set_arch_mach().
7311
43136899
BR
73122003-04-02 Bob Rossi <bob_rossi@cox.net>
7313
7314 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7315 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7316 (mi-cmd-file.o): Update dependencies.
7317
040b99fd
KB
73182003-04-01 Kevin Buettner <kevinb@redhat.com>
7319
7320 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7321 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7322
9a3d7dfd
AF
73232003-04-01 Adam Fedor <fedor@gnu.org>
7324
7325 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7326 * language.h (struct language_defn): Add la_demangle.
7327 (language_demangle): Declare.
7328 * language.c (language_demangle): New function.
7329 (unk_lang_demangle): Likewise.
7330 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 7331 Add ukn_lang_demangle.
9a3d7dfd 7332 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 7333 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
7334 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7335 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7336 * jv-lang.c (java_demangle): New function
7337 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
7338 * objc-lang.c (objc_demangle): Add options argument
7339 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
7340 * maint.c (maintenance_demangle): Replace switch with
7341 call to language_demangle.
7342 * utils.c (fprintf_symbol_filtered): Likewise.
7343
5e074003
AC
73442003-04-01 Andrew Cagney <cagney@redhat.com>
7345
7346 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7347 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7348 PRINT_TYPELESS_INTEGER.
7349 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7350 PUSH_RETURN_ADDRESS.
7351
270cb5d6
AC
73522003-04-01 Andrew Cagney <cagney@redhat.com>
7353
7354 * Makefile.in (d10v-tdep.o): Update dependencies.
7355 * d10v-tdep.c: Include "frame-base.h".
7356 (d10v_frame_unwind): Make constant.
7357 (d10v_frame_base_address): New function.
7358 (d10v_frame_base): New variable.
7359 (d10v_gdbarch_init): Set frame_base default.
7360 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7361 comment for base.
7362 (d10v_frame_unwind_cache): Set and use "prev_sp".
7363 (d10v_frame_this_id): Use the previous frame's inner most stack
7364 address and this frame's func address for the frame ID. Use
7365 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 7366
6bfb3e36
AC
73672003-04-01 Andrew Cagney <cagney@redhat.com>
7368
7369 * frame.h (get_frame_locals_address, get_frame_args_address):
7370 Refer to the base address, instead of the address of the first
7371 local or parameter.
8ffd9b1b 7372
da62e633
AC
73732003-04-01 Andrew Cagney <cagney@redhat.com>
7374
7375 Add frame debug info addresses:
7376 * frame-base.c: New file.
7377 * frame-base.h: New file.
7378 * frame.h (struct frame_base): Add opaque declaration.
7379 (get_frame_base): Update comment.
7380 (get_frame_base_address): Declare.
7381 (get_frame_locals_address): Declare.
7382 (get_frame_args_address): Declare.
7383 (struct frame_info): Add "base" and "base_cache". Update
7384 comments on the unwinder.
7385 * frame.c: Include "frame-base.h".
7386 (get_frame_locals_address): New function.
7387 (get_frame_base_address): New function.
7388 (get_frame_args_address): New function.
7389 * findvar.c (read_var_value): Use get_frame_locals_address and
7390 get_frame_args_address.
7391 * stack.c (frame_info): Use get_frame_locals_address and
7392 get_frame_args_address.
7393 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7394 moved to "frame-base.c".
7395 * printcmd.c (print_frame_nameless_args): Ditto.
7396 * symtab.h (address_class): Update comments.
7397 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7398 get_frame_base_address.
7399 * dwarf2expr.c (execute_stack_op): Ditto.
7400 * Makefile.in (frame_base_h): Define.
7401 (frame.o): Update dependencies.
7402 (frame-base.o): Add dependencies.
7403 (SFILES): Add frame-base.c.
7404 (COMMON_OBS): Add frame-base.o.
7405
3d30e9c2
AC
74062003-04-01 Andrew Cagney <cagney@redhat.com>
7407
7408 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7409 CALL_DUMMY_LENGTH): Ditto.
7410 * gdbarch.c: Re-generate.
7411 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7412 (CALL_DUMMY_LENGTH): Delete macro.
7413 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7414 * arm-tdep.c (arm_gdbarch_init): Ditto.
7415 * avr-tdep.c (avr_gdbarch_init): Ditto.
7416 * cris-tdep.c (cris_gdbarch_init): Ditto.
7417 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7418 * frv-tdep.c (frv_gdbarch_init): Ditto.
7419 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7420 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7421 * i386-tdep.c (i386_gdbarch_init): Ditto.
7422 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7423 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7424 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7425 * mips-tdep.c (mips_gdbarch_init): Ditto.
7426 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7427 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7428 * s390-tdep.c (s390_gdbarch_init): Ditto.
7429 * sh-tdep.c (sh_gdbarch_init): Ditto.
7430 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7431 * v850-tdep.c (v850_gdbarch_init): Ditto.
7432 * vax-tdep.c (vax_gdbarch_init): Ditto.
7433 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7434
ce0c7262
CV
74352003-04-01 Corinna Vinschen <vinschen@redhat.com>
7436
7437 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7438
73dd234f
AC
74392003-04-01 Andrew Cagney <cagney@redhat.com>
7440
7441 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7442 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7443 * gdbarch.h, gdbarch.c: Re-generate.
7444 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7445 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7446 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7447 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7448 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7449 * infcmd.c (run_stack_dummy): Simplify assuming
7450 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7451 * infrun.c (handle_inferior_event): Ditto.
7452 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7453 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7454 * arm-tdep.c (arm_gdbarch_init): Ditto.
7455 * avr-tdep.c (avr_gdbarch_init): Ditto.
7456 * cris-tdep.c (cris_gdbarch_init): Ditto.
7457 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7458 * frv-tdep.c (frv_gdbarch_init): Ditto.
7459 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7460 * i386-tdep.c (i386_gdbarch_init): Ditto.
7461 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7462 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7463 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7464 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7465 * mips-tdep.c (mips_gdbarch_init): Ditto.
7466 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7467 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7468 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7469 * s390-tdep.c (s390_gdbarch_init): Ditto.
7470 * sh-tdep.c (sh_gdbarch_init): Ditto.
7471 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7472 * v850-tdep.c (v850_gdbarch_init): Ditto.
7473 * vax-tdep.c (vax_gdbarch_init): Ditto.
7474 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7475
97606a13
DJ
74762003-04-01 Daniel Jacobowitz <drow@mvista.com>
7477
7478 * symfile.c (symfile_relocate_debug_section): Update call to
7479 bfd_simple_get_relocated_section_contents.
7480
e8ab51f7
AC
74812003-03-31 Andrew Cagney <cagney@redhat.com>
7482
7483 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7484 * gdbarch.h, gdbarch.c: Regenerate.
7485 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7486 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7487 available.
7488 * frame.h (generic_fix_call_dummy): Delete declaration.
7489 * dummy-frame.h: Update comment.
7490 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7491 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7492 fix_call_dummy.
7493 * sh-tdep.c (sh_gdbarch_init): Ditto.
7494 * s390-tdep.c (s390_gdbarch_init): Ditto.
7495 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7496 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7497 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7498 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7499 * i386-tdep.c (i386_gdbarch_init): Ditto.
7500 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7501 * frv-tdep.c (frv_gdbarch_init): Ditto.
7502 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7503 * cris-tdep.c (cris_gdbarch_init): Ditto.
7504 * avr-tdep.c (avr_gdbarch_init): Ditto.
7505 * arm-tdep.c (arm_gdbarch_init): Ditto.
7506
018d1b48
JB
75072003-03-31 J. Brobecker <brobecker@gnat.com>
7508
7509 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7510 (INIT_FRAME_AP): Likewise.
7511 (EXTRA_FRAME_INFO): Likewise.
7512
e9a2674e
AC
75132003-03-31 Andrew Cagney <cagney@redhat.com>
7514
7515 * gdbarch.sh: Include "symfile.h".
7516 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7517 * gdbarch.h, gdbarch.c: Re-generate.
7518 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7519 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7520 call_dummy_address, the default is at entry_point_address.
7521 * v850-tdep.c (v850_gdbarch_init): Ditto.
7522 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7523 * sh-tdep.c (sh_gdbarch_init): Ditto.
7524 * s390-tdep.c (s390_gdbarch_init): Ditto.
7525 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7526 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7527 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7528 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7529 * i386-tdep.c (i386_gdbarch_init): Ditto.
7530 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7531 * frv-tdep.c (frv_gdbarch_init): Ditto.
7532 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7533 * cris-tdep.c (cris_gdbarch_init): Ditto.
7534 * arm-tdep.c (arm_gdbarch_init): Ditto.
7535
e8a8712a
AC
75362003-03-31 Andrew Cagney <cagney@redhat.com>
7537
7538 * gdbarch.sh (CALL_DUMMY_P): Delete.
7539 * gdbarch.h, gdbarch.c: Re-generate.
7540 * inferior.h (CALL_DUMMY_P): Delete macro.
7541 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7542 * vax-tdep.c (vax_gdbarch_init): Update.
7543 * v850-tdep.c (v850_gdbarch_init): Update.
7544 * sparc-tdep.c (sparc_gdbarch_init): Update.
7545 * sh-tdep.c (sh_gdbarch_init): Update.
7546 * s390-tdep.c (s390_gdbarch_init): Update.
7547 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7548 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7549 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7550 * mips-tdep.c (mips_gdbarch_init): Update.
7551 * mcore-tdep.c (mcore_gdbarch_init): Update.
7552 * m68k-tdep.c (m68k_gdbarch_init): Update.
7553 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7554 * ia64-tdep.c (ia64_gdbarch_init): Update.
7555 * i386-tdep.c (i386_gdbarch_init): Update.
7556 * h8300-tdep.c (h8300_gdbarch_init): Update.
7557 * frv-tdep.c (frv_gdbarch_init): Update.
7558 * d10v-tdep.c (d10v_gdbarch_init): Update.
7559 * cris-tdep.c (cris_gdbarch_init): Update.
7560 * breakpoint.c (deprecated_frame_in_dummy): Update.
7561 * avr-tdep.c (avr_gdbarch_init): Update.
7562 * alpha-tdep.c (alpha_gdbarch_init): Update.
7563 * arm-tdep.c (arm_gdbarch_init): Update.
7564 * dummy-frame.c (dummy_frame_this_id): Update comments.
7565 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7566 * frame.c (legacy_get_prev_frame): Ditto.
7567 * valops.c (call_function_by_hand): Delete function.
7568 (hand_function_call): Rename to call_function_by_hand
7569
ed234cf8
AC
75702003-03-30 Andrew Cagney <cagney@redhat.com>
7571
7572 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 7573 * value.h (struct value): Update comment.
ed234cf8 7574
06c77151
AC
75752003-03-30 Andrew Cagney <cagney@redhat.com>
7576
6c2b5168
AC
7577 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7578 D10V_FP_REGNUM.
7579 (d10v_gdbarch_init): Do not set fp_regnum.
7580
06c77151
AC
7581 * frame.c (get_frame_base): Force ID initialization.
7582 (get_prev_frame): Move computation of the frame ID from here ...
7583 (get_frame_id): ... to here.
7584 (legacy_get_prev_frame): Mark the frame ID as valid.
7585 * frame.h (struct frame_info): Add field "id_p".
7586
97a1a11c
MK
75872003-03-30 Mark Kettenis <kettenis@gnu.org>
7588
7589 * i386-tdep.c (i386_store_struct_return): Removed.
7590 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7591
6c0e89ed
AC
75922003-03-30 Andrew Cagney <cagney@redhat.com>
7593
7594 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7595 * gdbarch.h, gdbarch.c: Regenerate.
7596 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7597 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7598 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7599 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7600 * i386-tdep.c (i386_gdbarch_init): Ditto.
7601 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7602 * cris-tdep.c (cris_gdbarch_init): Ditto.
7603 * vax-tdep.c (vax_gdbarch_init): Ditto.
7604 * s390-tdep.c (s390_gdbarch_init): Ditto.
7605 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7606 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7607 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7608 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7609 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7610 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7611 * sparc-tdep.c (sparc_gdbarch_init): Update.
7612 * sh-tdep.c (sh_gdbarch_init): Update.
7613 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7614 * mips-tdep.c (mips_gdbarch_init): Update.
7615 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7616 * ia64-tdep.c (ia64_gdbarch_init): Update.
7617 * frv-tdep.c (frv_gdbarch_init): Update.
7618 * avr-tdep.c (avr_gdbarch_init): Update.
7619 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7620 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7621 instead of when push_dummy_call is not available.
8ffd9b1b 7622
f7dd6af2
AC
76232003-03-30 Andrew Cagney <cagney@redhat.com>
7624
7625 * infttrace.c: Include "gdbthread.h".
7626 (parent_attach_all): Fix function signature.
7627 (call_ptrace): Update call.
7628 * Makefile.in (infttrace.o): Update dependencies.
7629
28f617b3
AC
76302003-03-30 Andrew Cagney <cagney@redhat.com>
7631
7632 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7633 PUSH_RETURN_ADDRESS.
7634 * gdbarch.h, gdbarch.c: Regenerate.
7635 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7636 * x86-64-tdep.c (x86_64_init_abi): Update.
7637 * v850-tdep.c (v850_gdbarch_init): Update.
7638 * sparc-tdep.c (sparc_gdbarch_init): Update.
7639 * sh-tdep.c (sh_gdbarch_init): Update.
7640 * s390-tdep.c (s390_gdbarch_init): Update.
7641 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7642 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7643 * mips-tdep.c (mips_gdbarch_init): Update.
7644 * mcore-tdep.c (mcore_gdbarch_init): Update.
7645 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7646 * ia64-tdep.c (ia64_gdbarch_init): Update.
7647 * i386-tdep.c (i386_gdbarch_init): Update.
7648 * h8300-tdep.c (h8300_gdbarch_init): Update.
7649 * frv-tdep.c (frv_gdbarch_init): Update.
7650 * cris-tdep.c (cris_gdbarch_init): Update.
7651 * avr-tdep.c (avr_gdbarch_init): Update.
7652 * arm-tdep.c (arm_gdbarch_init): Update.
7653 * valops.c (hand_function_call): Update.
7654
4d628cd7
AC
76552003-03-29 Andrew Cagney <cagney@redhat.com>
7656
7657 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7658 sizeof_call_dummy_words.
7659 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7660 define.
7661 * gdbarch.h: Regenerate.
8ffd9b1b 7662
65e82032
AC
76632003-03-29 Andrew Cagney <cagney@redhat.com>
7664
7665 * infttrace.h: New file.
7666 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7667 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7668 (hpread_read_doc_function_type): Detect an initialized type1.
7669 (hpread_quick_traverse): Initialize mod_name_string.
7670 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7671 (som_solib_get_solib_by_pc): Declare.
7672 (so_lib_thread_start_addr): Declare.
7673 (no_shared_libraries): Declare.
7674 * somread.c (init_import_symbols): Make static. Add forward
7675 declaration.
7676 * config/pa/nm-hppah.h: Include "infttrace.h" for
7677 parent_attach_all.
7678 (hppa_insert_hw_watchpoint): Declare.
7679 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7680 * hppah-nat.c: Include "gdb_string.h".
7681 (parent_attach_all): Delete extern declaration, moved to
7682 "infttrace.h".
7683 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7684 int.
7685 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7686 * Makefile.in (infttrace_h): Define.
7687 (hpread.o): Update dependencies.
7688 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7689 * hppa-hpux-tdep.c: Include "gdb_string.h".
7690 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7691 * infrun.c (handle_inferior_event): Always initialize
7692 stepped_after_stopped_by_watchpoint. Add default and remove
7693 fallthrough in switch statement.
7694 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7695 parameter to int.
7696 (hppa_remove_hw_watchpoint): Ditto.
7697
2c3bbe77
AC
76982003-03-29 Andrew Cagney <cagney@redhat.com>
7699
7700 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7701 offset.
7702
2dd604e7
RE
77032003-03-29 Richard Earnshaw <rearnsha@arm.com>
7704
7705 * arm-tdep.c (arm_push_arguments): Delete.
7706 (struct stack_item): New type.
7707 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7708 (arm_store_struct_return): Delte.
7709 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7710 arm_push_arguments or arm_store_struct_return.
7711
e8933a55
AC
77122003-03-28 Andrew Cagney <cagney@redhat.com>
7713
7714 * Makefile.in (d10v-tdep.o): Update dependencies.
7715 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7716 * d10v-tdep.c: Include "remote.h".
7717 (target_resume_hook): Delete extern declaration.
7718 (target_wait_loop_hook): Ditto.
7719 (tdisassemble_command): Eliminate assignment in "if" conditional.
7720 (d10v_ts2_register_sim_regno): Eliminate call to
7721 legacy_register_sim_regno.
7722 (d10v_ts3_register_sim_regno): Ditto.
7723
6949171e
JJ
77242003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7725
7726 * thread.c: Reindented.
7727 * lin-lwp.c: Ditto.
7728 * linux-proc.c: Ditto.
7729
98c7071f
BR
77302003-03-28 Bob Rossi <bob_rossi@cox.net>
7731
fbe586ae 7732 * MAINTAINERS (write after approval): Add myself.
98c7071f 7733
5edc9ca6
TR
77342003-03-27 Theodore A. Roth <troth@openavr.org>
7735
7736 * objc-exp.y: Add missing semi-colons.
7737
378bfd1b
AC
77382003-03-27 Andrew Cagney <cagney@redhat.com>
7739
7740 * regcache.c (write_sp): Delete function and references.
7741 * inferior.h (write_sp): Delete declaration.
7742 * valops.c (hand_function_call): Replace write_sp with
7743 TARGET_WRITE_SP.
7744 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7745 (sparc_pop_frame): Ditto.
8ffd9b1b 7746
56056df7
AC
77472003-03-27 Andrew Cagney <cagney@redhat.com>
7748
7749 * NEWS: Mention removal of support for hppa*-*-bsd* and
7750 hppa*-*-osf* natives, and hppa*-*-pro* target.
7751 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7752 * config/pa/xm-pa.h: Obsolete file.
7753 * config/pa/xm-hppab.h: Obsolete file.
7754 * config/pa/nm-hppab.h: Obsolete file.
7755 * config/pa/tm-hppab.h: Obsolete file.
7756 * config/pa/tm-hppao.h: Obsolete file.
7757 * config/pa/nm-hppao.h: Obsolete file.
7758 * config/pa/tm-pro.h: Obsolete file.
7759 * config/pa/hppaosf.mt: Obsolete file.
7760 * config/pa/hppaosf.mh: Obsolete file.
7761 * config/pa/hppapro.mt: Obsolete file.
7762 * config/pa/hppabsd.mt: Obsolete file.
7763 * config/pa/hppabsd.mh: Obsolete file.
7764 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7765 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7766 hppa*-*-osf*.
7767
5873a88d
AC
77682003-03-27 Andrew Cagney <cagney@redhat.com>
7769
7770 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7771 push_arguments. Don't set push_return_address or write_sp.
7772 (d10v_push_dummy_call): Replace d10v_push_arguments.
7773 (d10v_push_return_address, d10v_write_sp): Delete function,
7774 handled by push_dummy_call.
7775
b81774d8
AC
77762003-03-26 Andrew Cagney <cagney@redhat.com>
7777
7778 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7779 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7780 regcache and dummy_addr parameters.
7781 * gdbarch.h, gdbarch.c: Re-generate.
7782 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7783 available; assume it will handle stack alignment and return
7784 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7785 legacy_push_arguments.
7786 (legacy_push_arguments): Rename default_push_arguments.
7787 * value.h (legacy_push_arguments): Rename default_push_arguments.
7788 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7789 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7790 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7791 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7792 * config/i386/tm-symmetry.h: Update.
7793 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7794 * x86-64-tdep.c (x86_64_init_abi): Update.
7795 * v850-tdep.c (v850_gdbarch_init): Update.
7796 * sparc-tdep.c (sparc_gdbarch_init): Update.
7797 * sh-tdep.c (sh_gdbarch_init): Update.
7798 * s390-tdep.c (s390_gdbarch_init): Update.
7799 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7800 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7801 * mips-tdep.c (mips_gdbarch_init): Update.
7802 * mcore-tdep.c (mcore_gdbarch_init): Update.
7803 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7804 * ia64-tdep.c (ia64_gdbarch_init): Update.
7805 * i386-tdep.c (i386_gdbarch_init): Update.
7806 * hppa-tdep.c (hppa_gdbarch_init): Update.
7807 * h8300-tdep.c (h8300_gdbarch_init): Update.
7808 * frv-tdep.c (frv_gdbarch_init): Update.
7809 * d10v-tdep.c (d10v_gdbarch_init): Update.
7810 * cris-tdep.c (cris_gdbarch_init): Update.
7811 * avr-tdep.c (avr_gdbarch_init): Update.
7812 * arm-tdep.c (arm_gdbarch_init): Update.
7813 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7814 * alpha-tdep.c (alpha_gdbarch_init): Update.
7815
f541410f
DJ
78162003-03-26 Daniel Jacobowitz <drow@mvista.com>
7817
7818 * signals/signals.c (do_target_signal_to_host): Correct realtime
7819 signal range test.
7820
69f567ae
DJ
78212003-03-26 Daniel Jacobowitz <drow@mvista.com>
7822
7823 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7824 (struct sal_chain, map_catch_names): Remove.
7825 (catch_exception_command_1): Don't call
7826 handle_gnu_4_16_catch_command.
7827
d5d14a5a
DJ
78282003-03-26 Daniel Jacobowitz <drow@mvista.com>
7829
7830 From Mark Dettinger <dettinge@de.ibm.com>:
7831 * dwarf2cfi.c (read_2u): Increment pointer by two.
7832
bdd73e22
DJ
78332003-03-26 Daniel Jacobowitz <drow@mvista.com>
7834
7835 * signals/signals.c: Fix typos in last change.
7836
960cb555
DJ
78372003-03-26 Daniel Jacobowitz <drow@mvista.com>
7838
7839 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7840 not already defined. Use __SIGRTMIN if available.
7841 (target_signal_from_host): Remove SIGRTMIN block.
7842 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7843 the signal is within the realtime range.
7844
f636b87d
AF
78452003-03-25 Adam Fedor <fedor@gnu.org>
7846
7847 * Makefile.in (infrun.o): Add $(language_h)
7848 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7849 for language specific trampolines.
7850 * language.h (struct language_defn): Add skip_trampoline.
7851 (skip_language_trampoline): Declare.
7852 * language.c (unk_lang_trampoline, skip_language_trampoline):
7853 New functions.
7854 (unknown_language_defn, auto_language_defn, local_language_defn):
7855 Add ukn_lang_trampoline.
7856 * ada-lang.c (ada_language_defn): Add NULL for language
7857 specific skip_trampoline.
7858 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7859 scm-lang.c: Likewise.
7860 * objc-lang.c (objc_skip_trampoline): New function.
7861 (objc_language_defn): Add objc_skip_trampoline.
7862
28f617b3 78632003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
7864
7865 * frame.c (get_prev_frame): Delay validating a frame's ID -
7866 non-NULL, didn't go backwards - until an attempt to unwind it to
7867 the previous frame.
7868
f933a9c5
AC
78692003-03-25 Andrew Cagney <cagney@redhat.com>
7870
7871 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7872 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7873 * gdbarch.h, gdbarch.c: Re-generate.
7874 * config/sparc/tm-sparc.h
7875 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7876 * sparc-tdep.c (sparc_gdbarch_init): Set
7877 deprecated_extra_stack_alignment_needed.
7878 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7879 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7880 extra_stack_alignment_needed.
7881 * v850-tdep.c (v850_gdbarch_init): Ditto.
7882 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7883 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7884 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7885 * cris-tdep.c (cris_gdbarch_init): Ditto.
7886 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7887 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7888
4183d812
AC
78892003-03-25 Andrew Cagney <cagney@redhat.com>
7890
7891 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7892 STORE_STRUCT_RETURN.
7893 * gdbarch.h, gdbarch.c: Regenerate.
7894 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7895 (d10v_push_arguments): Set the struct return register.
7896 (d10v_gdbarch_init): Update.
7897 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7898 * x86-64-tdep.c (x86_64_init_abi): Update.
7899 * vax-tdep.c (vax_gdbarch_init): Update.
7900 * v850-tdep.c (v850_gdbarch_init): Update.
7901 * sparc-tdep.c (sparc_gdbarch_init): Update.
7902 * sh-tdep.c (sh_gdbarch_init): Update.
7903 * s390-tdep.c (s390_gdbarch_init): Update.
7904 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7905 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7906 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7907 * mips-tdep.c (mips_gdbarch_init): Update.
7908 * mcore-tdep.c (mcore_gdbarch_init): Update.
7909 * m68k-tdep.c (m68k_gdbarch_init): Update.
7910 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7911 * ia64-tdep.c (ia64_gdbarch_init): Update.
7912 * i386-tdep.c (i386_gdbarch_init): Update.
7913 * hppa-tdep.c (hppa_gdbarch_init): Update.
7914 * h8300-tdep.c (h8300_gdbarch_init): Update.
7915 * frv-tdep.c (frv_gdbarch_init): Update.
7916 * cris-tdep.c (cris_gdbarch_init): Update.
7917 * avr-tdep.c (avr_gdbarch_init): Update.
7918 * arm-tdep.c (arm_gdbarch_init): Update.
7919 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 7920
1bf6d5cc
AC
79212003-03-25 Andrew Cagney <cagney@redhat.com>
7922
7923 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7924 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7925 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7926 * gdbarch.h, gdbarch.c: Regenerate.
7927 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7928 call_dummy_stack_adjust_p.
7929 * vax-tdep.c (vax_gdbarch_init): Ditto.
7930 * v850-tdep.c (v850_gdbarch_init): Ditto.
7931 * sh-tdep.c (sh_gdbarch_init): Ditto.
7932 * s390-tdep.c (s390_gdbarch_init): Ditto.
7933 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7934 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7935 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7936 * mips-tdep.c (mips_gdbarch_init): Ditto.
7937 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7938 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7939 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7940 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7941 * i386-tdep.c (i386_gdbarch_init): Ditto.
7942 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7943 * frv-tdep.c (frv_gdbarch_init): Ditto.
7944 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7945 * cris-tdep.c (cris_gdbarch_init): Ditto.
7946 * avr-tdep.c (avr_gdbarch_init): Ditto.
7947 * arm-tdep.c (arm_gdbarch_init): Ditto.
7948 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7949 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7950 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7951 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7952 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7953 call_dummy_stack_adjust_p.
7954 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7955 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7956 * sparc-tdep.c (sparc32_push_arguments): Update.
7957 * valops.c (hand_function_call): Update.
7958
71c08af0
CV
79592003-03-25 Corinna Vinschen <vinschen@redhat.com>
7960
7961 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7962 set_gdbarch_char_signed.
7963
30757f90
RE
79642003-03-25 Richard Earnshaw <rearnsha@arm.com>
7965
7966 PR cli/548
7967 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7968
03d48a7d
RE
79692003-03-25 Richard Earnshaw <rearnsha@arm.com>
7970
7971 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7972 (_initialize_arm_tdep): Don't set tm_print_insn.
7973
2cf6873c
AF
79742003-03-24 Adam Fedor <fedor@gnu.org>
7975
7976 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7977 * objc-lang.h: Add multiple inclusion protection.
7978 (start_msglist, add_msglist, end_msglist): Additional declarations.
7979
17c0759e
RE
79802003-03-24 Richard Earnshaw <rearnsha@arm.com>
7981
7982 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7983 value was renamed to ARM_FLOAT_SOFT_FPA.
7984
618ce49f
AC
79852003-03-23 Andrew Cagney <cagney@redhat.com>
7986
7987 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7988 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7989 * gdbarch.h, gdbarch.c: Regenerate.
7990 * valops.c (hand_function_call): Update.
7991 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7992 * frame.c (legacy_saved_regs_this_id): Update.
7993 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7994 * dummy-frame.h: Update.
7995 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7996 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7997 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7998 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7999 * config/m68k/tm-sun3.h: Update.
8000 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8001 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8002 * x86-64-tdep.c (x86_64_init_abi): Update.
8003 * vax-tdep.c (vax_gdbarch_init): Update.
8004 * v850-tdep.c (v850_gdbarch_init): Update.
8005 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8006 * sh-tdep.c (sh_gdbarch_init): Update.
8007 * s390-tdep.c (s390_gdbarch_init): Update.
8008 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8009 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8010 (frame_get_saved_regs): Update.
8011 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8012 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8013 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8014 * mips-tdep.c (mips_gdbarch_init): Update.
8015 * mcore-tdep.c (mcore_gdbarch_init): Update.
8016 * m68k-tdep.c (m68k_gdbarch_init): Update.
8017 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8018 * ia64-tdep.c (ia64_gdbarch_init): Update.
8019 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8020 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8021 (i386_interix_back_one_frame): Update.
8022 * hppa-tdep.c (hppa_gdbarch_init): Update.
8023 (hppa_init_extra_frame_info): Update.
8024 * h8300-tdep.c (h8300_gdbarch_init): Update.
8025 * frv-tdep.c (frv_gdbarch_init): Update.
8026 * cris-tdep.c (cris_gdbarch_init): Update.
8027 * avr-tdep.c (avr_gdbarch_init): Update.
8028 * arm-tdep.c (arm_gdbarch_init): Update.
8029 * alpha-tdep.c (alpha_gdbarch_init): Update.
8030
fd50bc42
RE
80312003-03-22 Richard Earnshaw <rearnsha@arm.com>
8032
8033 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8034 (arm_get_fp_model): Declare.
8035 * arm-tdep.c (fp_model_strings): New string array.
8036 (arm_fp_model, current_fp_model): New variables.
8037 (arm_get_fp_model): New function.
8038 (arm_set_fp): New function.
8039 (set_fp_model_sfunc): New function.
8040 (show_fp_model): New function.
8041 (_initialize_arm_tdep): Add new command to set/show the FPU.
8042 (arm_extract_return_value): Use arm_get_fp_model.
8043 (arm_store_return_value): Likewise.
8044 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8045 to initialize the floating-point data types.
8046 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8047 model is FPA.
8048
26304000
RE
80492003-03-22 Richard Earnshaw <rearnsha@arm.com>
8050
8051 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8052 the current setting of each value.
8053 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 8054 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
8055 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8056 commands and add new version as subcommands of "set/show arm".
8057
afd7eef0
RE
80582003-03-22 Richard Earnshaw <rearnsha@arm.com>
8059
8060 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8061 (set_arm_command, show_arm_command): New functions.
8062 (_initialize_arm_tdep): Add them.
8063 (num_disassembly_options): Renamed from num_flavor_options.
8064 (valid_disassembly_styles): Renamed from valid_flavors.
8065 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 8066 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
8067 set_disassembly_flavor_sfunc.
8068 (set_disassembly_style): Renamed from set_disassembly_flavor.
8069 (arm_othernames): Updated.
8070 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8071 command. Add "set/show arm disassembly" commands. Deprecate
8072 "othernames" command.
8073
299a7944
RE
80742003-03-22 Richard Earnshaw <rearnsha@arm.com>
8075
8076 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8077 (arm-tdep.o): Depend on elf_arm_h.
8078
c1dac9e6
RE
80792003-03-22 Richard Earnshaw <rearnsha@arm.com>
8080
8081 * Makefile.in (coff_internal_h): Define.
8082 (arm-tdep.o): Update dependencies.
8083
2702d96c
RE
80842003-03-22 Richard Earnshaw <rearnsha@arm.com>
8085
8086 * arm-tdep.c (prologue_cache): Delete.
8087 (check_prologue_cache, save_prologue_cache): Delete.
8088 (arm_scan_prologue): Don't check or update the prologue_cache.
8089 (arm_gdb_arch_init): Don't initialize it.
8090 (_initialize_arm_tdep): Likewise.
8091
27d5d74b
SC
80922003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8093
8094 * MAINTAINERS (tui): Maintainer of tui code.
8095
1762d96d
CV
80962003-03-21 Corinna Vinschen <vinschen@redhat.com>
8097
8098 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8099 (i386-cygwin-tdep.o): Add dependencies.
8100 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8101 * i386-cygwin-tdep.c: New file.
8102 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8103 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8104
4c2e2391
AC
81052003-03-20 Andrew Cagney <cagney@redhat.com>
8106
f20d38b7
AC
8107 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8108 (handle_inferior_event): Remove code calling
8109 DYNAMIC_TRAMPOLINE_NEXTPC.
8110
0022b738
AC
8111 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8112 already has a full path.
8113
864dbc90
AC
8114 * main.c (gdb_main): Return 1.
8115 (captured_main): Call error to report an invalid interpreter.
8116
4c2e2391
AC
8117 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8118 * alpha-osf1-tdep.c: Include "gdb_string.h".
8119
5ef7553b
JB
81202003-03-19 J. Brobecker <brobecker@gnat.com>
8121
8122 Continuing work to convert the hppa targets to multiarch partial.
8123
8124 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8125 method, now that hppa_push_dummy_frame has a conformant prototype.
8126 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8127 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8128 for the switch to multiarch partial.
8129
7bde8967
KB
81302003-03-19 Kevin Buettner <kevinb@redhat.com>
8131
8132 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8133 when iss is issNull.
8134
b006a9e9
KB
81352003-03-18 Kevin Buettner <kevinb@redhat.com>
8136
8137 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8138 NUM_REGS bounds check.
8139
5e2e9765
KB
81402003-03-18 Kevin Buettner <kevinb@redhat.com>
8141
8142 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8143 * mips-tdep.c (gdb_assert.h): Include.
8144 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8145 (mips_register_name): Handle integer registers explicitly. Add
8146 bounds checking.
8147 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8148 (mips_lsi33k_reg_names): Don't list integer registers; they're
8149 handled by mips_register_name() now.
8150 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8151 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8152 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8153 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8154 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8155
a2867626
AC
81562003-03-18 Andrew Cagney <cagney@redhat.com>
8157
8158 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8159 a void pointer.
8160 * gdbtypes.h (print_scalar_formatted): Update declaration.
8161 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8162
06600e06
JB
81632003-03-18 J. Brobecker <brobecker@gnat.com>
8164
8165 * infrun.c (observer.h): Add #include.
8166 (normal_stop): Add call to observer_notify_normal_stop.
8167 * Makefile.in (infrun.o): Add dependency on observer.h.
8168
7daf4f5b
JB
81692003-03-18 J. Brobecker <brobecker@gnat.com>
8170
8171 Continuing work to convert the hppa targets to multiarch partial.
8172 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8173 parameter. Reformat comment.
8174 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8175 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8176 to match new profile.
8177
3371ccc0
JB
81782003-03-18 J. Brobecker <brobecker@gnat.com>
8179
8180 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8181 appear to be working in any case.
8182
4fbe891e
JB
81832003-03-18 J. Brobecker <brobecker@gnat.com>
8184
8185 * observer.c (observer_test_first_observer): New static variable.
8186 (observer_test_second_observer): Likewise.
8187 (observer_test_third_observer): Likewise.
8188 (observer_test_first_notification_function): New static function.
8189 (observer_test_second_notification_function): Likewise.
8190 (observer_test_third_notification_function): Likewise.
8191
a7ff40e7
JB
81922003-03-17 J. Brobecker <brobecker@gnat.com>
8193
8194 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8195 * somsolib.c (gdb_assert.h): Likewise.
8196 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8197 (somsolib.o): Likewise.
8198
26ca4152
AC
81992003-03-17 Andrew Cagney <cagney@redhat.com>
8200
8201 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8202 BFD. Simplify setting of di.endian.
8203
0a613259
AC
82042003-03-17 Andrew Cagney <cagney@redhat.com>
8205
8206 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8207 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8208
8209 From Elena Zannoni <ezannoni@redhat.com>
8210 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8211 vector and floating-point parameters.
8212 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8213 convention.
8214 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8215
1132738f
FN
82162003-03-17 Fernando Nasser <fnasser@redhat.com>
8217
8218 * MAINTAINERS: Remove my name from several maintainership roles.
8219
6dc42492
AC
82202003-03-17 Andrew Cagney <cagney@redhat.com>
8221
8222 Fix frame off-by-one bug.
8223 * frame-unwind.h (frame_this_id_ftype): Replace
8224 frame_unwind_id_ftype.
8225 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8226 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8227 with "prev_register".
8228 * frame-unwind.c (frame_unwind_find_by_pc): Return
8229 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8230 comment.
8231 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8232 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8233 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8234 (dummy_frame_unwind): Update.
8235 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8236 sentinel_frame_register_unwind.
8237 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8238 (sentinel_frame_unwinder): Update.
8239 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8240 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8241 * frame.c (create_sentinel_frame): Update. Initialize
8242 "prologue_cache" instead of "unwind_cache".
8243 (frame_register_unwind): Call this frame's prev_register with the
8244 next frame and this frame's prologue cache.
8245 (get_prev_frame): Simplify. Always call prev frame's this_id with
8246 this frame and prev frame's prologue cache. Document that this
8247 call is shifted one to the left when compared to the
8248 frame_register_unwind call.
8249 (legacy_saved_regs_prev_register): Replace
8250 frame_saved_regs_register_unwind.
8251 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8252 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8253 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8254 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8255 (d10v_frame_unwind): Update.
8256 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8257 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8258 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8259 "saved_regs" with "this_saved_regs".
8260
efd710d6
AC
82612003-03-16 Andrew Cagney <cagney@redhat.com>
8262
8263 * frame.c (frame_pop): Don't call target_store_registers. Fix
8264 problem reported by Mark Kettenis.
8265
4e259f09
MK
82662003-03-16 Mark Kettenis <kettenis@gnu.org>
8267
8268 * i386-tdep.c (i386_register_type): Renamed from
8269 i386_register_virtual_type. Adjust function signature.
8270 (i386_gdbarch_init): Set register_type instead of
8271 deprecated_max_register_raw_size,
8272 deprecated_max_register_virtual_size and register_virtual_type.
8273
055bb976
AC
82742003-03-14 Andrew Cagney <cagney@redhat.com>
8275
8276 * frame.c (get_prev_frame): When a legacy frame, always call
8277 legacy_get_prev_frame. Simplify unwind code using assumption that
8278 the unwinder is new.
8279 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8280 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8281 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8282
ac2adee5
AC
82832003-03-14 Andrew Cagney <cagney@redhat.com>
8284
8285 * frame.c (get_saved_register): Delete function.
8286 * frame.h (get_saved_register): Delete declaration.
8287 * xstormy16-tdep.c: Update comment.
8288 * regcache.h: Update comments.
8289 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8290 get_saved_register and extract_address, use
8291 frame_read_unsigned_register.
8292 (sparc_frame_saved_pc): Ditto.
8293 (sparc_get_saved_register): Instead of get_saved_register, use
8294 frame_register.
8295 (sparc_pop_frame): Ditto.
8296 * findvar.c: Update comments.
8297 (value_of_register): Call frame_register instead of
8298 get_saved_register.
8299 (value_from_register): Ditto.
8300 * config/sparc/tm-sparc.h: Update comment.
8301 * breakpoint.c: Update comment.
8302
129c1cd6
AC
83032003-03-14 Andrew Cagney <cagney@redhat.com>
8304
8305 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8306 GET_SAVED_REGISTER.
8307 * gdbarch.h, gdbarch.c: Re-generate.
8308 * frame.h: Update comments.
8309 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8310 * x86-64-tdep.c (x86_64_init_abi): Update.
8311 * sparc-tdep.c (sparc_gdbarch_init): Update.
8312 * sh-tdep.c (sh_gdbarch_init): Update.
8313 * mips-tdep.c (mips_gdbarch_init): Update.
8314 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8315 * cris-tdep.c (cris_gdbarch_init): Update.
8316 * ia64-tdep.c (ia64_gdbarch_init): Update.
8317 * frame.c (frame_register): Update.
8318 (get_saved_register): Update.
8319 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 8320
749b82f6
AC
83212003-03-13 Andrew Cagney <cagney@redhat.com>
8322
8323 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8324 * gdbarch.h, gdbarch.c: Regenerate.
8325 * valops.c (hand_function_call): Update comment.
8326 * stack.c (return_command): Update comment.
8327 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8328 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8329 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8330 * x86-64-tdep.c (x86_64_init_abi): Update.
8331 * vax-tdep.c (vax_gdbarch_init): Update.
8332 * v850-tdep.c (v850_gdbarch_init): Update.
8333 * sparc-tdep.c (sparc_gdbarch_init): Update.
8334 * sh-tdep.c (sh_gdbarch_init): Update.
8335 * s390-tdep.c (s390_gdbarch_init): Update.
8336 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8337 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8338 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8339 * mips-tdep.c (mips_gdbarch_init): Update.
8340 * mcore-tdep.c (mcore_gdbarch_init): Update.
8341 * m68k-tdep.c (m68k_gdbarch_init): Update.
8342 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8343 * ia64-tdep.c (ia64_gdbarch_init): Update.
8344 * i386-tdep.c (i386_gdbarch_init): Update.
8345 * hppa-tdep.c (hppa_gdbarch_init): Update.
8346 * h8300-tdep.c (h8300_gdbarch_init): Update.
8347 * frv-tdep.c (frv_gdbarch_init): Update.
8348 * cris-tdep.c (cris_gdbarch_init): Update.
8349 * avr-tdep.c (avr_gdbarch_init): Update.
8350 * arm-tdep.c (arm_gdbarch_init): Update.
8351 * alpha-tdep.c (alpha_gdbarch_init): Update.
8352
1594fa56
AC
83532003-03-13 Andrew Cagney <cagney@redhat.com>
8354
8355 * frame.c (legacy_frame_p): New function.
8356 (get_prev_frame): Use legacy_frame_p.
8357 * frame.h (legacy_frame_p): Declare.
8358
7717fda3
V
83592003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8360
fbe586ae 8361 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
8362 listing corrected.
8363
0c67cbe9
V
83642003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8365
fbe586ae 8366 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 8367
03febf99
AC
83682003-03-12 Andrew Cagney <cagney@redhat.com>
8369
8370 * frame.c (get_prev_frame): Rename the frame parameter to
8371 "this_frame".
8372 (get_next_frame, legacy_get_prev_frame): Ditto.
8373
0a1e1ca1
AC
83742003-03-12 Andrew Cagney <cagney@redhat.com>
8375
8376 * frame.c (get_current_frame): Check target_has_registers before
8377 checking target_has_stack.
8378 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8379 instead of deprecated_selected_frame.
8380 * findvar.c (value_of_register): Pass "frame", not
8381 deprecated_selected_frame, to value_of_builtin_reg.
8382
a66a9c23
AC
83832003-03-12 Andrew Cagney <cagney@redhat.com>
8384
8385 * regcache.c (regcache_cooked_write_signed): New function.
8386 (regcache_cooked_write_unsigned): New function.
8387 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8388 (regcache_cooked_read_signed): Fix regnum in range assertion.
8389 * regcache.h (regcache_cooked_write_signed): Declare.
8390 (regcache_cooked_write_unsigned): Declare.
8391
8bedc050
AC
83922003-03-12 Andrew Cagney <cagney@redhat.com>
8393
8394 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8395 * gdbarch.h, gdbarch.c: Re-generate.
8396 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8397 * x86-64-tdep.h: Update.
8398 * x86-64-tdep.c (x86_64_init_abi): Update.
8399 * v850-tdep.c (v850_gdbarch_init): Update.
8400 * sparc-tdep.c (sparc_gdbarch_init): Update.
8401 * sh-tdep.c (sh_gdbarch_init): Update.
8402 * s390-tdep.c (s390_gdbarch_init): Update.
8403 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8404 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8405 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8406 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8407 * mips-tdep.c (mips_gdbarch_init): Update.
8408 * mcore-tdep.c (mcore_gdbarch_init): Update.
8409 * m68k-tdep.c (m68k_gdbarch_init): Update.
8410 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8411 * ia64-tdep.c (ia64_gdbarch_init): Update.
8412 * i386-tdep.c (i386_gdbarch_init): Update.
8413 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8414 * hppa-tdep.c (hppa_gdbarch_init): Update.
8415 * h8300-tdep.c (h8300_gdbarch_init): Update.
8416 * frv-tdep.c (frv_gdbarch_init): Update.
8417 * cris-tdep.c (cris_gdbarch_init): Update.
8418 * avr-tdep.c (avr_gdbarch_init): Update.
8419 * arm-tdep.c (arm_gdbarch_init): Update.
8420 * alpha-tdep.c (alpha_gdbarch_init): Update.
8421 * sh-tdep.c (sh_init_extra_frame_info): Update.
8422 (sh64_init_extra_frame_info): Update.
8423 * ns32knbsd-nat.c (frame_num_args): Update.
8424 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8425 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8426 (xstormy16_frame_chain_valid): Update.
8427 * vax-tdep.c (vax_saved_pc_after_call): Update.
8428 * v850-tdep.c (v850_frame_chain): Update.
8429 (v850_pop_frame): Update.
8430 (v850_init_extra_frame_info): Update.
8431 * sparc-tdep.c (setup_arbitrary_frame): Update.
8432 * ns32k-tdep.c (umax_frame_num_args): Update.
8433 * s390-tdep.c (s390_pop_frame_regular): Update.
8434 * mn10300-tdep.c (mn10300_frame_chain): Update.
8435 (mn10300_pop_frame_regular): Update.
8436 (mn10300_init_extra_frame_info): Update.
8437 * mips-tdep.c (mips_init_frame_pc_first): Update.
8438 (mips_frame_chain): Update.
8439 (mips_pop_frame): Update.
8440 * mcore-tdep.c (mcore_frame_chain): Update.
8441 (mcore_pop_frame): Update.
8442 (mcore_init_extra_frame_info): Update.
8443 * arch-utils.c (init_frame_pc_default): Update.
8444 * m68k-tdep.c (isi_frame_num_args): Update.
8445 (delta68_frame_num_args): Update.
8446 (news_frame_num_args): Update.
8447 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8448 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8449 (alpha_frame_chain): Update.
8450 (alpha_pop_frame): Update.
8451 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8452 (hppa_init_extra_frame_info): Update.
8453 (hppa_frame_chain): Update.
8454 (hppa_frame_chain_valid): Update.
8455 * cris-tdep.c (cris_init_extra_frame_info): Update.
8456 * avr-tdep.c (avr_init_extra_frame_info): Update.
8457 * arm-tdep.c (arm_frame_chain_valid): Update.
8458 (arm_init_extra_frame_info): Update.
8459 (arm_pop_frame): Update.
8460 * frame.c (frame_pc_unwind): Update.
8461 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8462 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8463 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8464 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8465 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8466 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8467
7a25a7c1
AC
84682003-03-12 Andrew Cagney <cagney@redhat.com>
8469
8470 Eliminate the need for POP_FRAME.
8471 * frame.c (do_frame_unwind_register): New function.
8472 (frame_pop): When no POP_FRAME, pop the frame using register
8473 unwind and a scratch regcache.
8474 (frame_saved_regs_pop): Delete function.
8475 (trad_frame_unwinder): Update.
8476 * d10v-tdep.c (d10v_frame_pop): Delete function.
8477 (d10v_frame_unwind): Update.
8478 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8479 (sentinel_frame_unwinder): Update.
8480 * dummy-frame.c (dummy_frame_pop): Delete function.
8481 (dummy_frame_unwind): Update.
8482 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8483 (struct frame_unwind): Update.
8484
2f38ef89
KB
84852003-03-11 Kevin Buettner <kevinb@redhat.com>
8486
8487 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8488 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8489 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8490 Do range checks on register number obtained from debugging info.
8491 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8492 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8493 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8494 mapping function.
8495 (do_fp_register_row): Fix typo which caused double type to be
8496 used when attempting to unpack a float.
8497
552f4abf
JB
84982003-03-11 J. Brobecker <brobecker@gnat.com>
8499
8500 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8501
e0d2ae16
AC
85022003-03-11 Andrew Cagney <cagney@redhat.com>
8503
8504 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8505 frame. Problem found by Corinna Vinschen.
8506
ddbfdd06
PM
85072003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8508
8509 * doublest.c (floatformat_from_length): Accept also
8510 the real size of 'long double' type.
8511
088b2ddc 85122003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 8513
088b2ddc 8514 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
8515 * breakpoint.c (bpstat_copy): Copy the command lines as well
8516 as the old value, to match what is freed in bpstat_clear.
8517
f56f77c1
DC
85182003-03-10 David Carlton <carlton@math.stanford.edu>
8519
8520 * minsyms.c (add_minsym_to_hash_table): Replace
8521 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8522 (compare_minimal_symbols, compact_minimal_symbols)
8523 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8524 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8525 of DEPRECATED_SYMBOL_MATCHES_NAME.
8526 (lookup_minimal_symbol_solib_trampoline): Ditto.
8527
5602984a
AC
85282003-03-10 Andrew Cagney <cagney@redhat.com>
8529
8530 * regcache.h (regcache_cooked_read_ftype): Define.
8531 (regcache_save, regcache_restore): Add a cooked_read parameter.
8532 * regcache.c (regcache_save, regcache_restore): Update.
8533 (do_cooked_read): New function.
8534 (regcache_cpy): Pass do_cooked_read to regcache_save and
8535 regcache_restore.
8536
8bedc050
AC
85372003-03-10 Andrew Cagney <cagney@redhat.com>
8538
8539 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8540 * gdbarch.h, gdbarch.c: Re-generate.
8541 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8542 * x86-64-tdep.h: Update.
8543 * x86-64-tdep.c (x86_64_init_abi): Update.
8544 * v850-tdep.c (v850_gdbarch_init): Update.
8545 * sparc-tdep.c (sparc_gdbarch_init): Update.
8546 * sh-tdep.c (sh_gdbarch_init): Update.
8547 * s390-tdep.c (s390_gdbarch_init): Update.
8548 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8549 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8550 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8551 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8552 * mips-tdep.c (mips_gdbarch_init): Update.
8553 * mcore-tdep.c (mcore_gdbarch_init): Update.
8554 * m68k-tdep.c (m68k_gdbarch_init): Update.
8555 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8556 * ia64-tdep.c (ia64_gdbarch_init): Update.
8557 * i386-tdep.c (i386_gdbarch_init): Update.
8558 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8559 * hppa-tdep.c (hppa_gdbarch_init): Update.
8560 * h8300-tdep.c (h8300_gdbarch_init): Update.
8561 * frv-tdep.c (frv_gdbarch_init): Update.
8562 * cris-tdep.c (cris_gdbarch_init): Update.
8563 * avr-tdep.c (avr_gdbarch_init): Update.
8564 * arm-tdep.c (arm_gdbarch_init): Update.
8565 * alpha-tdep.c (alpha_gdbarch_init): Update.
8566 * sh-tdep.c (sh_init_extra_frame_info): Update.
8567 (sh64_init_extra_frame_info): Update.
8568 * ns32knbsd-nat.c (frame_num_args): Update.
8569 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8570 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8571 (xstormy16_frame_chain_valid): Update.
8572 * vax-tdep.c (vax_saved_pc_after_call): Update.
8573 * v850-tdep.c (v850_frame_chain): Update.
8574 (v850_pop_frame): Update.
8575 (v850_init_extra_frame_info): Update.
8576 * sparc-tdep.c (setup_arbitrary_frame): Update.
8577 * ns32k-tdep.c (umax_frame_num_args): Update.
8578 * s390-tdep.c (s390_pop_frame_regular): Update.
8579 * mn10300-tdep.c (mn10300_frame_chain): Update.
8580 (mn10300_pop_frame_regular): Update.
8581 (mn10300_init_extra_frame_info): Update.
8582 * mips-tdep.c (mips_init_frame_pc_first): Update.
8583 (mips_frame_chain): Update.
8584 (mips_pop_frame): Update.
8585 * mcore-tdep.c (mcore_frame_chain): Update.
8586 (mcore_pop_frame): Update.
8587 (mcore_init_extra_frame_info): Update.
8588 * arch-utils.c (init_frame_pc_default): Update.
8589 * m68k-tdep.c (isi_frame_num_args): Update.
8590 (delta68_frame_num_args): Update.
8591 (news_frame_num_args): Update.
8592 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8593 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8594 (alpha_frame_chain): Update.
8595 (alpha_pop_frame): Update.
8596 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8597 (hppa_init_extra_frame_info): Update.
8598 (hppa_frame_chain): Update.
8599 (hppa_frame_chain_valid): Update.
8600 * cris-tdep.c (cris_init_extra_frame_info): Update.
8601 * avr-tdep.c (avr_init_extra_frame_info): Update.
8602 * arm-tdep.c (arm_frame_chain_valid): Update.
8603 (arm_init_extra_frame_info): Update.
8604 (arm_pop_frame): Update.
8605 * frame.c (frame_pc_unwind): Update.
8606 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8607 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8608 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8609 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8610 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8611 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8612
12cc2063
AC
86132003-03-10 Andrew Cagney <cagney@redhat.com>
8614
8615 * gdbarch.sh (gdbarch_unwind_pc): New method.
8616 * gdbarch.h, gdbarch.c: Regenerate.
8617 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8618 but use read_pc and FRAME_SAVED_PC as fall backs.
8619 (frame_saved_regs_pc_unwind): Delete function.
8620 (trad_frame_unwinder): Update.
8621 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8622 (struct frame_unwind): Update.
8623 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8624 (dummy_frame_unwind): Update.
8625 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8626 (sentinel_frame_unwinder): Update.
8627 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8628 (d10v_frame_unwind): Update.
8629 (d10v_unwind_pc): New function.
8630 (d10v_gdbarch_init): Set unwind_pc.
8631
ef840a37
AC
86322003-03-10 Andrew Cagney <cagney@redhat.com>
8633
a2ce2e56
AC
8634 * gdbarch.h: Re-generate.
8635
ef840a37
AC
8636 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8637 PC.
8638 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8639 the PC register.
8640
08f3424b
MK
86412003-03-08 Mark Kettenis <kettenis@gnu.org>
8642
8643 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8644
1248ede2
AC
86452003-03-08 Andrew Cagney <cagney@redhat.com>
8646
8647 * cli-out.c: Update copyright.
8648 (cli_out_data): Define typedef. Use instead of ui_out_data.
8649
f49bacc8
AC
86502003-03-08 Andrew Cagney <cagney@redhat.com>
8651
8652 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8653 the result.
8654
9b05f993
AC
86552003-03-07 Andrew Cagney <cagney@redhat.com>
8656
8657 * gdbarch.sh: Don't generate two macro definitions when an
8658 undefined macro taking no arguments.
8659 * gdbarch.h: Regenerate.
8ffd9b1b 8660
166f4c7b
ML
86612002-03-07 Michal Ludvig <mludvig@suse.cz>
8662
8663 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8664 (x86_64_unwind_dummy_id): New functions.
8665 (x86_64_init_abi): Register these two new functions.
8666
6d686a84
ML
86672003-03-07 Michal Ludvig <mludvig@suse.cz>
8668
8669 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 8670 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
8671 separate function.
8672 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8673
6314f104
AC
86742003-03-05 Andrew Cagney <cagney@redhat.com>
8675
8676 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8677 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8678 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8679 to use unwind_dummy_id when a dummy frame.
8680 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8681 predicate.
8682 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 8683
ceea5145
AC
86842003-03-05 Andrew Cagney <cagney@redhat.com>
8685
8686 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8687 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8688 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8689 values.
8690
0d843116
AC
86912003-03-05 Andrew Cagney <cagney@redhat.com>
8692
8693 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8694 (struct d10v_unwind_cache): Delete field "frameless". Replace
8695 "next_addr" with "sp_offset". Add "r11_offset".
8696 (d10v_frame_unwind_cache): Update.
8697 (prologue_find_regs): Update. When "mv r11, sp", save the
8698 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8699 RN was saved in r11_offset.
8700
b2579786
AC
87012003-03-05 Andrew Cagney <cagney@redhat.com>
8702
8703 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8704 cached PC value in the next frame.
8705
218e5956
AC
87062003-03-05 Andrew Cagney <cagney@redhat.com>
8707
8708 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8709 "id_unwind_cache" with "id".
8710 (frame_id_unwind): Delete declaration.
8711 * frame.c (frame_id_unwind): Delete function.
8712 (get_prev_frame): Call the frame id unwind method directly. Store
8713 the returned next frame's ID value in NEXT_FRAME. Note that there
8714 is a problem with the wrong unwind ID being called with the wrong
8715 unwind cache.
8716
ed363b1b
DJ
87172003-03-05 Daniel Jacobowitz <drow@mvista.com>
8718
8719 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8720
fe1f4a5e
DJ
87212003-03-05 James Ingham <jingham@apple.com>
8722 Daniel Jacobowitz <drow@mvista.com>
8723
8724 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8725 (auto_cp_abi): New variable.
8726 (current_cp_abi, num_cp_abis): Make static.
8727 (CP_ABI_MAX): Define.
8728 (cp_abis): Turn into an array.
8729 (value_virtual_fn_field): Fix formatting.
8730 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8731 takes a pointer.
8732 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8733 (list_cp_abis, _initialize_cp_abi): New functions.
8734 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8735 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8736 switch_to_cp_abi. Update prototype for register_cp_abi.
8737 * Makefile.in (cp-abi.o): Update dependencies.
8738 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8739 instead of switch_to_cp_abi.
8740 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8741 register_cp_abi.
8742 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8743 register_cp_abi.
8744 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8745
e4adbba9
DJ
87462003-03-05 Daniel Jacobowitz <drow@mvista.com>
8747
8748 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8749 * dwarf2loc.c: Include "regcache.h".
8750 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8751 register_size.
8752 * Makefile.in (dwarf2loc.o): Update dependencies.
8753
91ccbfc1
TR
87542003-03-04 Theodore A. Roth <troth@openavr.org>
8755
8756 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8757 number of io registers reported by remote target is not a multiple of
8758 step.
8759
3d4e8fd2
DC
87602003-03-04 David Carlton <carlton@math.stanford.edu>
8761
8762 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8763 (lookup_symbol_aux_psymtabs): Update call to
8764 lookup_partial_symbol.
8765 (lookup_transparent_type, find_main_psymtab)
8766 (make_symbol_overload_list): Ditto.
8767
ed42d87b
KH
87682003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8769
8770 * MAINTAINERS (Write after approval): Update my email address.
8771
a0ed5532
AC
87722003-03-03 Andrew Cagney <cagney@redhat.com>
8773
8774 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8775 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8776 predicate. Replace MAX_REGISTER_RAW_SIZE.
8777 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8778 MAX_REGISTER_VIRTUAL_SIZE.
8779 * regcache.c (legacy_max_register_raw_size): New function.
8780 (legacy_max_register_virtual_size): New function.
8781 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8782 (MAX_REGISTER_RAW_SIZE): Define.
8783 (legacy_max_register_raw_size): Declare.
8784 (legacy_max_register_virtual_size): Declare.
8785 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8786 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8787 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8788 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8789 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8790 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8791 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8792 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8793 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8794 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8795 * vax-tdep.c (vax_gdbarch_init): Update.
8796 * v850-tdep.c (v850_gdbarch_init): Update.
8797 * sparc-tdep.c (sparc_gdbarch_init): Update.
8798 * sh-tdep.c (sh_gdbarch_init): Update.
8799 * s390-tdep.c (s390_gdbarch_init): Update.
8800 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8801 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8802 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8803 * mips-tdep.c (mips_gdbarch_init): Update.
8804 * mcore-tdep.c (mcore_gdbarch_init): Update.
8805 * m68k-tdep.c (m68k_gdbarch_init): Update.
8806 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8807 * ia64-tdep.c (ia64_gdbarch_init): Update.
8808 * i386-tdep.c (i386_gdbarch_init): Update.
8809 * hppa-tdep.c (hppa_gdbarch_init): Update.
8810 * h8300-tdep.c (h8300_gdbarch_init): Update.
8811 * frv-tdep.c (frv_gdbarch_init): Update.
8812 * cris-tdep.c (cris_gdbarch_init): Update.
8813 * avr-tdep.c (avr_gdbarch_init): Update.
8814 * arm-tdep.c (arm_gdbarch_init): Update.
8815 * alpha-tdep.c (alpha_gdbarch_init): Update.
8816 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8817 max_register_raw_size or max_register_virtual_size.
8818
8e437497
DC
88192003-03-03 David Carlton <carlton@math.stanford.edu>
8820
8821 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8822 SYMBOL_MATCHES_NAME, add comment.
8823 (SYMBOL_MATCHES_NATURAL_NAME): New.
8824 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8825 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8826 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8827 * symtab.c (lookup_partial_symbol): Use
8828 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8829 unhelpful comment.
8830 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8831 SYMBOL_MATCHES_NAME.
8832 Fix for PR c++/33.
8833
25120b0d
DC
88342003-03-03 David Carlton <carlton@math.stanford.edu>
8835
8836 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8837 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8838 by regexp matching against SYMBOL_NATURAL_NAME.
8839
78a11fb4
DC
88402003-03-03 David Carlton <carlton@math.stanford.edu>
8841
8842 * linespec.c (find_method): Extract code into collect_methods.
8843 (collect_methods): New.
8844
645dd519
MK
88452003-03-02 Mark Kettenis <kettenis@gnu.org>
8846
b4700d91
MK
8847 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8848 get_frame_base.
8849
645dd519
MK
8850 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8851 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8852
0aa7e1aa
SC
88532003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8854
8ffd9b1b 8855 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
8856 and not regnum when summing the size of all registers up to regnum.
8857
f30ee0bc
AC
88582003-03-01 Andrew Cagney <cagney@redhat.com>
8859
8860 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8861 FRAME_INIT_SAVED_REGS.
8862 * gdbarch.h, gdbarch.c: Regenerate.
8863 * stack.c (frame_info): Update.
8864 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8865 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8866 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8867 * ns32k-tdep.c (ns32k_pop_frame): Update.
8868 * mips-tdep.c (mips_pop_frame): Update.
8869 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8870 * ia64-tdep.c (ia64_frame_chain): Update.
8871 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8872 (ia64_frameless_function_invocation): Update.
8873 (ia64_init_extra_frame_info): Update.
8874 (ia64_pop_frame_regular): Update.
8875 * frame.h (struct frame_info): Update comment.
8876 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8877 * frame.c (frame_saved_regs_register_unwind): Update.
8878 (frame_saved_regs_register_unwind): Update.
8879 (deprecated_generic_get_saved_register): Update.
8880 * cris-tdep.c: Update comment.
8881 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8882 Rename macro.
8883 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8884 * x86-64-tdep.c (x86_64_init_abi): Update.
8885 * vax-tdep.c (vax_gdbarch_init): Update.
8886 * v850-tdep.c (v850_gdbarch_init): Update.
8887 * sparc-tdep.c (sparc_gdbarch_init): Update.
8888 * sh-tdep.c (sh_gdbarch_init): Update.
8889 * s390-tdep.c (s390_gdbarch_init): Update.
8890 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8891 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8892 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8893 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8894 * mips-tdep.c (mips_gdbarch_init): Update.
8895 * mcore-tdep.c (mcore_gdbarch_init): Update.
8896 * m68k-tdep.c (m68k_gdbarch_init): Update.
8897 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8898 * ia64-tdep.c (ia64_gdbarch_init): Update.
8899 * i386-tdep.c (i386_gdbarch_init): Update.
8900 * frv-tdep.c (frv_gdbarch_init): Update.
8901 * avr-tdep.c (avr_gdbarch_init): Update.
8902 * arm-tdep.c (arm_gdbarch_init): Update.
8903 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8904
42fa7c0f
AC
89052003-03-01 Andrew Cagney <cagney@redhat.com>
8906
8907 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8908 option enum and switch. When no windows, set the interpreter to
8909 INTERP_CONSOLE.
8ffd9b1b 8910
49c7e338
AC
89112003-03-01 Andrew Cagney <cagney@redhat.com>
8912
8913 * main.c (captured_main): Replace magic option characters with an
8914 enum.
8915
e9582e71
AC
89162003-03-01 Andrew Cagney <cagney@redhat.com>
8917
8918 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8919 INIT_EXTRA_FRAME_INFO.
8920 * gdbarch.h, gdbarch.c: Regenerate.
8921 * arm-tdep.c: Update comments.
8922 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8923 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8924 * frame.h, avr-tdep.c: Ditto.
8925 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8926 (create_new_frame, legacy_get_prev_frame): Ditto.
8927 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8928 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8929 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8930 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8931 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8932 * v850-tdep.c (v850_gdbarch_init): Ditto.
8933 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8934 * sh-tdep.c (sh_gdbarch_init): Ditto.
8935 * s390-tdep.c (s390_gdbarch_init): Ditto.
8936 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8937 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8938 * mips-tdep.c (mips_gdbarch_init): Ditto.
8939 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8940 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8941 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8942 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8943 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8944 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8945 * frv-tdep.c (frv_gdbarch_init): Ditto.
8946 * cris-tdep.c (cris_gdbarch_init): Ditto.
8947 * avr-tdep.c (avr_gdbarch_init): Ditto.
8948 * arm-tdep.c (arm_gdbarch_init): Ditto.
8949 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8950 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8951
35cac7cf
AC
89522003-03-01 Andrew Cagney <cagney@redhat.com>
8953
8954 * gdbarch.sh (register_type): New function with predicate.
8955 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8956 * gdbarch.h, gdbarch.c: Re-generate.
8957 * arch-utils.c (generic_register_byte): Use generic_register_size.
8958 (generic_register_size): When available, use
8959 gdbarch_register_type.
8960 * regcache.c (init_regcache_descr): When available, initialize the
8961 register type array using gdbarch_register_type. If the
8962 architecture supplies gdbarch_register_type, do not use the legacy
8963 regcache layout.
8964 * d10v-tdep.c (d10v_register_type): Replace
8965 d10v_register_virtual_type.
8966 (d10v_gdbarch_init): Set register_type instead of
8967 register_virtual_type.
8968
7b83296f
AC
89692003-03-01 Andrew Cagney <cagney@redhat.com>
8970
8971 * Makefile.in (ax-gdb.o): Update dependencies.
8972 * ax-gdb.c: Include "regcache.h".
8973 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8974 * findvar.c (value_of_register): Ditto.
8975 * infcmd.c (default_print_registers_info): Ditto.
8976
eadc1c87
MK
89772003-03-01 Mark Kettenis <kettenis@gnu.org>
8978
8979 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8980 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8981
14143612
MK
89822003-03-01 Mark Kettenis <kettenis@gnu.org>
8983
8984 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8985 of STREQ.
8986
a55cc764
DJ
89872003-02-28 Daniel Jacobowitz <drow@mvista.com>
8988
8989 * Makefile.in (dwarf2loc.o): Update dependencies.
8990 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8991 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8992 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8993 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8994 (locexpr_tracepoint_var_ref): New function.
8995 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8996
08a617da
AC
89972003-02-28 Andrew Cagney <cagney@redhat.com>
8998
8999 * regcache.c (register_size): New function.
9000 * regcache.h (register_size): Declare
9001 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9002 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9003
4224873a
DC
90042003-02-28 David Carlton <carlton@math.stanford.edu>
9005
9006 * linespec.c (decode_compound): Extract code into find_method.
9007 (find_method): New.
9008
ccdc5d7f
JB
90092003-02-28 J. Brobecker <brobecker@gnat.com>
9010
9011 * Makefile.in: Add rules to build and link in observer.o.
9012
974e8ced
JB
90132003-02-27 J. Brobecker <brobecker@gnat.com>
9014
9015 * observer.c: Minor comments edits.
9016
7a28f973
JB
90172003-02-27 J. Brobecker <brobecker@gnat.com>
9018
9019 * observer.h, observer.c: New file.
9020
27cddce2
AC
90212003-02-27 Andrew Cagney <cagney@redhat.com>
9022
9023 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9024
b94a41a1
SC
90252003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9026
9027 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9028 (M6812_OP_STS_EXT): Likewise.
9029 (m6811_prologue): Use the above to recognize prologue.
9030 (m6812_prologue): Likewise.
9031
c8be8951
DC
90322003-02-27 David Carlton <carlton@math.stanford.edu>
9033
9034 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9035 SYMBOL_PRINT_NAME.
9036 (compare_psymbols): Ditto.
9037 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9038
d05bb1fc
MS
90392003-02-27 Michael Snyder <msnyder@redhat.com>
9040
4e845cd3
MS
9041 * f-lang.c (build_fortran_types): New function.
9042 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
9043 * doublest.c (extract_floating): Fix warning text.
9044
f3824013
AC
90452003-02-27 Andrew Cagney <cagney@redhat.com>
9046
9047 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9048 predicate. Replaces PUSH_DUMMY_FRAME.
9049 * gdbarch.h, gdbarch.c: Regnerate.
9050 * valops.c (hand_function_call): Update. Call
9051 generic_push_dummy_frame directly.
9052 * vax-tdep.c (vax_gdbarch_init): Update.
9053 * sparc-tdep.c (sparc_gdbarch_init): Update.
9054 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9055 * m68k-tdep.c (m68k_gdbarch_init): Update.
9056 * hppa-tdep.c (hppa_gdbarch_init): Update.
9057 * alpha-tdep.c (alpha_gdbarch_init): Update.
9058 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9059 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9060 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9061 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9062 push_dummy_frame to generic_push_dummy_frame.
9063 * v850-tdep.c (v850_gdbarch_init): Ditto.
9064 * sh-tdep.c (sh_gdbarch_init): Ditto.
9065 * s390-tdep.c (s390_gdbarch_init): Ditto.
9066 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9067 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9068 * mips-tdep.c (mips_gdbarch_init): Ditto.
9069 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9070 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9071 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9072 * i386-tdep.c (i386_gdbarch_init): Ditto.
9073 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9074 * frv-tdep.c (frv_gdbarch_init): Ditto.
9075 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9076 * cris-tdep.c (cris_gdbarch_init): Ditto.
9077 * avr-tdep.c (avr_gdbarch_init): Ditto.
9078 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 9079
ad188201
KB
90802003-02-26 Kevin Buettner <kevinb@redhat.com>
9081
9082 * mips-tdep.c (show_mips_abi): New function.
9083 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9084 command ``show mips abi''.
9085
6b37567a 90862003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9087
6b37567a 9088 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 9089 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
9090 more sline entries have been seen for the function.
9091
d3e0a5bf
MC
90922003-02-26 Michael Chastain <mec@shout.net>
9093
9094 * configure: Regenerate with autoconf 000227.
9095
18972eea
MC
90962003-02-26 Michael Chastain <mec@shout.net>
9097
9098 Close PR build/660.
9099 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9100 for old libc5/glibc.
9101 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9102
0bbde931
KW
91032003-02-26 Kris Warkentin <kewarken@qnx.com>
9104
9105 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9106 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9107
27ca5dad
MC
91082003-02-26 Michael Chastain <mec@shout.net>
9109
9110 * configure.in: New variable HAVE_UINTPTR_T.
9111 * configure, config.in: Regenerated.
9112
6f88d630
DJ
91132003-02-26 Daniel Jacobowitz <drow@mvista.com>
9114
9115 Fix PR build/1097.
9116 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9117
b14185ce
AC
91182003-02-25 Andrew Cagney <cagney@redhat.com>
9119
9120 * frame.c (get_prev_frame): Add comment on check for
9121 inside_entry_func. Only check for inside_entry_file when not a
9122 dummy and not a sentinel. Check that the new frame is not inner
9123 to the old frame.
9124
ac2bd0a9
AC
91252003-02-25 Andrew Cagney <cagney@redhat.com>
9126
9127 * frame.c (frame_debug): New variable.
9128 (_initialize_frame): Add "set/show debug frame" command.
9129 (get_prev_frame): When frame_debug, print reason why unwind
9130 failed.
9131
b18a0fd2
MC
91322003-02-25 Michael Chastain <mec@shout.net>
9133
9134 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9135 to avoid uintptr_t definition problems.
9136
22abf04a
DC
91372003-02-25 David Carlton <carlton@math.stanford.edu>
9138
9139 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9140 (SYMBOL_LINKAGE_NAME): Ditto.
9141 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9142 SYMBOL_LINKAGE_NAME.
9143 (struct general_symbol_info): Expand comment.
9144 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9145 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9146 (SYMBOL_MATCHES_REGEXP): Ditto.
9147 * symtab.c (symbol_natural_name): New function.
9148 * objfiles.h: Replace all uses of SYMBOL_NAME by
9149 DEPRECATED_SYMBOL_NAME.
9150 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9151 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9152 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9153 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9154 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9155 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9156 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9157 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9158 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9159 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9160 * ada-exp.y: Ditto.
9161 * ada-exp.y: Update copyright.
9162 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9163 * cp-valprint.c: Ditto.
9164
1a5848f6
JJ
91652003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9166
9167 * infptrace.c (detach): Do not flag error if ptrace detach fails
9168 and errno is set to ESRCH.
9169
7343d46a
AC
91702003-02-24 Andrew Cagney <cagney@redhat.com>
9171
9172 * infptrace.c (udot_info): Change type of udot_off to long. Use
9173 paddr when printing udot_off's value.
9174
49fa1dc2
DC
91752003-02-24 David Carlton <carlton@math.stanford.edu>
9176
9177 * symtab.c (make_symbol_overload_list): Only read in partial
9178 symtabs containing a matching partial symbol.
9179
0fe19209
DC
91802003-02-24 David Carlton <carlton@math.stanford.edu>
9181
9182 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9183 do the comparison, not strcmp.
9184 * symfile.c (compare_psymbols): Ditto.
9185 * defs.h: Declare strcmp_iw_ordered.
9186 * utils.c (strcmp_iw_ordered): New function.
9187
8e3ee7b5
JB
91882003-02-24 Jim Blandy <jimb@redhat.com>
9189
9190 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9191 support, shared libs): Remove my name from here, to better reflect
9192 reality.
9193
7df1a324
KW
91942003-02-24 Kris Warkentin <kewarken@qnx.com>
9195
9196 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9197 (target_ops): Add to_have_continuable_watchpoint.
9198 * target.c (update_current_target): Add INHERIT line for
9199 to_have_continuable_watchpoint.
9200 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9201 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9202 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9203 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9204
d1c76907
EZ
92052003-02-24 Elena Zannoni <ezannoni@redhat.com>
9206
9207 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9208 maintainership.
9209
2610b0bf
KW
92102003-02-24 Kris Warkentin <kewarken@qnx.com>
9211
f46169db
KW
9212 * solib.c (solib_open): Call target defined search function after
9213 failing with solib-search-path.
9214 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9215 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 9216
9a3c34fe
KW
92172003-02-24 Kris Warkentin <kewarken@qnx.com>
9218
f46169db 9219 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 9220
2417dd25
SC
92212003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9222
9223 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9224
b631436b
SC
92252003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9226
9227 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9228 (m68hc11_add_reggroups): New function.
9229 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9230 (m68hc11_gdbarch_init): Install the reggroups.
9231 (_initialize_m68hc11_tdep): Initialize them.
9232
0aa8c1e4
JW
92332003-02-21 James E Wilson <wilson@tuliptree.org>
9234
9235 * MAINTAINERS: Update my email address.
9236
50ceaba5
DC
92372003-02-21 David Carlton <carlton@math.stanford.edu>
9238
9239 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9240
4c2df51b
DJ
92412003-02-21 Daniel Jacobowitz <drow@mvista.com>
9242
9243 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9244 * symtab.h: Add opaque declarations of struct axs_value and
9245 struct agent_expr.
9246 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9247 (struct location_funcs): New type.
9248 (struct symbol): Add "loc" to aux_value.
9249 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9250 * dwarf2read.c: Include "dwarf2expr.h".
9251 (dwarf2_symbol_mark_computed): New function.
9252 (read_func_scope): Use it.
9253 (var_decode_location): New function.
9254 (new_symbol): Use it.
9255 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9256
9257 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9258 (dwarf2expr_h, dwarf2loc_h): New variables.
9259 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9260 (dwarf2expr.o, dwarf2loc.o): New rules.
9261 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9262 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9263 LOC_COMPUTED_ARG.
9264 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9265 * m2-exp.y (yylex): Likewise.
9266 * printcmd.c (address_info, print_frame_args): Likewise.
9267 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9268 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9269 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9270 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9271 * symtab.c (lookup_block_symbol): Likewise.
9272
5784d15e
AF
92732003-02-20 Adam Fedor <fedor@gnu.org>
9274
9275 * symtab.h: Remove objc_specific struct
9276 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9277 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9278 Have language_objc use cplus_specific struct.
9279
d4cad8db
TT
92802003-02-20 Tom Tromey <tromey@redhat.com>
9281
9282 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9283 TYPE_NAME, when printing a String value. PR java/1075.
9284
2f9a90b4
AF
92852003-02-20 Adam Fedor <fedor@gnu.org>
9286
d38074a8 9287 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 9288 * objc-lang.c (find_methods): Make static.
2f9a90b4 9289
6f17862b
CF
92902003-02-20 Christopher Faylor <cgf@redhat.com>
9291
9292 * win32-nat.c (get_image_name): Check return value from
9293 ReadProcessMemory.
9294 (child_xfer_memory): Ditto.
9295
715d1656
AO
92962003-02-20 Alexandre Oliva <aoliva@redhat.com>
9297
9298 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9299 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9300 '${exec_prefix}' (in addition to the expansion thereof) as
9301 relocatable.
9302 * configure: Rebuilt.
9303
b1262a02
DC
93042003-02-20 David Carlton <carlton@math.stanford.edu>
9305
9306 * symtab.c (search_symbols): Revert the search_symbols part of my
9307 2002-12-23 patch. Add comment.
9308
7134143f
DJ
93092002-02-20 Daniel Jacobowitz <drow@mvista.com>
9310
9311 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9312 * dbxread.c (elfstab_build_psymtabs): Don't call
9313 install_minimal_symbols.
9314 (stabsect_build_psymtabs): Likewise.
9315 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9316 earlier.
9317 * somread.c (som_symfile_read): Call install_minimal_symbols
9318 and do_cleanups earlier.
9319 * nlmread.c (nlm_symfile_read): Likewise.
9320 * mdebugread.c (elfmdebug_build_psymtabs): Call
9321 install_minimal_symbols and make appropriate cleanups.
9322
cf466558
KB
93232003-02-20 Kevin Buettner <kevinb@redhat.com>
9324
9325 * solib.c (reload_shared_libraries): New function.
9326 (_initialize_solib): Add callbacks for ``set solib-search-path''
9327 and ``set solib-absolute-prefix''.
9328
de5ad195
DC
93292003-02-20 David Carlton <carlton@math.stanford.edu>
9330
9331 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9332 expand comment.
9333 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9334 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9335 * ada-typeprint.c (ada_typedef_print): Ditto.
9336 * ax-gdb.c (gen_var_ref): Ditto.
9337 * breakpoint.c (print_one_breakpoint): Ditto.
9338 * buildsym.c (finish_block): Ditto.
9339 * c-valprint.c (c_val_print): Ditto.
9340 * expprint.c (print_subexp): Ditto.
9341 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
9342 * infcmd.c (jump_command): Ditto.
9343 * linespec.c (decode_line_2, decode_compound): Ditto.
9344 * maint.c (maintenance_translate_address): Ditto.
9345 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
9346 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9347 Ditto.
8ffd9b1b
AJ
9348 * p-valprint.c (pascal_val_print): Ditto.
9349 * stabsread.c (define_symbol): Ditto.
de5ad195 9350 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
9351 (print_frame_arg_vars, return_command): Ditto.
9352 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9353 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
9354 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9355 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
9356 (rbreak_command): Ditto.
9357 * tracepoint.c (tracepoints_info): Ditto.
9358 * typeprint.c (typedef_print): Ditto.
9359 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
9360 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9361 * ada-typeprint.c: Update Copyright.
9362 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9363 * tracepoint.c, cli/cli-cmds.c: Ditto.
9364
f796e4be
KB
93652003-02-20 Kevin Buettner <kevinb@redhat.com>
9366
9367 * frame.c (generic_unwind_get_saved_register): Make non-static.
9368 * frame.h (generic_unwind_get_saved_register): Declare.
9369 * mips-tdep.c (read_next_frame_reg): Fetch register from
9370 current regcache when frame is NULL.
9371 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9372 that must be NULL.
9373 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9374 instead of frame_register_unwind().
9375
836cc9f4
AC
93762003-02-20 Andrew Cagney <ac131313@redhat.com>
9377
9378 * remote-sim.c (gdbsim_insert_breakpoint)
9379 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9380 code.
9381
501eef12
AC
93822003-02-20 Andrew Cagney <ac131313@redhat.com>
9383
9384 * remote.c (_initialize_remote): Add commands "set/show remote
9385 hardware-watchpoint-limit" and "set/show remote
9386 hardware-breakpoint-limit".
9387 (remote_hw_watchpoint_limit): Initialize to -1.
9388 (remote_hw_breakpoint_limit): Ditto.
9389 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9390
1b6bc7e0
CF
93912003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9392
9393 * coff-pe-read.c: New file - support reading of minimal symbols from a
9394 portable executable using the export table.
9395 * coff-pe-read.h: New file.
9396 * coffread.c: Include coff-pe-read.h.
9397 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9398 debugging symbols found.
9399 * Makefile.in (SFILES): Add coff-pe-read.o.
9400 (coff_pe_read_h): Define.
9401 (COMMON_OBS): Add coff-pe-read.o.
9402 (coffread.o): Add coff_pe_read_h dependency.
9403 (coff-pe-read.o): New target.
9404
fe898f56
DC
94052003-02-19 David Carlton <carlton@math.stanford.edu>
9406
9407 * Makefile.in (SFILES): Add block.c.
9408 (block_h): New.
9409 (COMMON_OBS): Add block.o.
9410 (block.o): New.
9411 (x86-64-tdep.o): Add $(block_h).
9412 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9413 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9414 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9415 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9416 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9417 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9418 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9419 * value.h: Add opaque declaration for struct block.
9420 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9421 * ada-lang.h: Ditto.
9422 * x86-64-tdep.c: #include "block.h"
9423 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9424 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9425 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9426 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9427 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9428 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9429 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9430 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9431 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9432 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9433 * symtab.c (block_function): Ditto.
9434 (contained_in): Ditto.
9435 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9436 block.h. Add opaque declaration for struct block.
9437 * symtab.h: Move block_function and contained_in declarations to
9438 block.h. Add opaque declarations for struct block, struct
9439 blockvector.
9440 (struct block): Move to block.h.
9441 (struct blockvector): Ditto.
9442 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9443 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9444 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9445 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9446 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9447 Ditto.
9448 * block.c: New file.
9449 * block.h: New file.
9450
173345b5
TR
94512003-02-19 Theodore A. Roth <troth@openavr.org>
9452
9453 * avr-tdep.c (avr_extract_return_value): Remove function.
9454 (avr_store_return_value): Remove function.
9455 (avr_extract_struct_value_address): Remove function.
9456 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9457
338ef23d
AC
94582003-02-19 Andrew Cagney <ac131313@redhat.com>
9459
9460 * rs6000-tdep.c: Include "gdb_assert.h".
9461 (registers_e500): Add "acc" and "spefscr".
9462 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9463 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9464 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9465 really is "r0".
9466 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9467
5412f5f3
KS
94682003-02-18 Keith Seitz <keiths@redhat.com>
9469
9470 * Makefile.in: Add gdbtk-interps.c.
9471
881324eb
KB
94722003-02-18 Kevin Buettner <kevinb@redhat.com>
9473
9474 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9475 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9476
6a2f5abf
AC
94772003-02-18 Andrew Cagney <cagney@redhat.com>
9478
9479 * symtab.h (struct objfile): Add opaque declaration.
9480
54c7009d
EZ
94812003-02-18 Elena Zannoni <ezannoni@redhat.com>
9482
9483 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
9484 * dbxread.c (process_one_symbol): Use last_function_start rather
9485 than function_start_offset to find the real beginning of the
9486 current function. The latter is just the text section offset on
9487 some systems, the former is always the real function start.
54c7009d 9488
7ee6d7eb
AC
94892003-02-17 Andrew Cagney <cagney@redhat.com>
9490
9491 * configure.in: Revert ${target} != ${host}.
9492
2846da9b
AC
94932003-02-17 Andrew Cagney <ac131313@redhat.com>
9494
9495 * configure.in (Makefile): Use the test ${target} != ${host},
9496 instead of the absence of the "nm.h" file, to determine of the
9497 configuration non-native.
9498 * configure: Regenerate.
8ffd9b1b 9499
3b27aeea
EZ
95002003-02-14 Elena Zannoni <ezannoni@redhat.com>
9501
fbe586ae 9502 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
9503
9504 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9505 conditionalize tui_active test.
9506 (lookup_cmd_1): Ditto.
9507
b0b1c2c0
MK
95082003-02-14 Mark Kettenis <kettenis@gnu.org>
9509
9510 * configure.in: Add check for _etext.
9511 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9512 available.
9513 * config.in, configure: regenerated.
9514
8f05cde5
DJ
95152003-02-14 Daniel Jacobowitz <drow@mvista.com>
9516
9517 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9518
021e7609
AC
95192003-02-14 Andrew Cagney <ac131313@redhat.com>
9520
9521 * main.c (tui_version): Delete variable.
9522 (captured_main): When --tui, set interpreter_p to "tui" instead of
9523 enabling tui_version.
9524 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9525 tui_version.
9526 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9527 * cli/cli-cmds.c (disassemble_command): Ditto.
9528 * defs.h (tui_version): Delete declaration.
9529 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9530 (tui-interp.o): Add rules.
9531 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9532
e325dcec
CF
95332003-02-14 Christopher Faylor <cgf@redhat.com>
9534
36ffb041 9535 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
9536 just-loaded dll.
9537
c4f90d87
JM
95382003-02-12 Jason Molenda (jmolenda@apple.com)
9539
fbe586ae
RH
9540 * symmisc.c (print_objfile_statistics): Include information about
9541 the number of psymtabs and symtabs in each object file.
c4f90d87 9542
e46e5ccd
KS
95432003-02-13 Keith R Seitz <keiths@redhat.com>
9544
9545 * main.h (struct captured_main_args): Add interpreter_p.
9546 * main.c (captured_main): Initialize interpreter_p from context.
9547 * gdb.c (main): Set interpreter_p argument.
9548 * Makefile.in (gdb.o): Add dependency for interps.h.
9549
fe97fe9c
AC
95502003-02-12 Andrew Cagney <ac131313@redhat.com>
9551
9552 * event-top.c (cli_command_loop): Delete declaration.
9553 (_initialize_event_loop): Delete function setting event_loop_hook.
9554 * event-top.h (cli_command_loop): Declare. Update copyright.
9555 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9556 * interps.c (current_interp_command_loop): When event_loop_p, call
9557 cli_command_loop.
9558
1cdac4ef
AC
95592003-02-12 Andrew Cagney <ac131313@redhat.com>
9560
9561 * interps.h (interp_command_loop_ftype): Change return type to
9562 void.
9563
48037ead
ML
95642003-02-12 Michal Ludvig <mludvig@suse.cz>
9565
9566 * x86-64-tdep.c (x86_64_extract_return_value)
9567 (x86_64_store_return_value): Use regcache instead of regbuf.
9568 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9569 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9570
033afc63
AC
95712003-02-11 Andrew Cagney <ac131313@redhat.com>
9572
9573 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9574 * aclocal.m4: Regenerate.
9575 * configure: Regenerate.
9576
9577 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9578 TCL_LD_SEARCH_FLAGS.
9579
40d02bca
ML
95802003-02-10 Michal Ludvig <mludvig@suse.cz>
9581
9582 * dwarf2cfi.c: Reindented.
9583
11308a41
AC
95842003-02-09 Andrew Cagney <ac131313@redhat.com>
9585
9586 * interps.c (clear_interpreter_hooks): Convert function definition
9587 to ISO C.
9588
e1c1c0f6
DC
95892003-02-07 David Carlton <carlton@math.stanford.edu>
9590
9591 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9592
ab5d3da6
KB
95932003-02-07 Kevin Buettner <kevinb@redhat.com>
9594
9595 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9596 (struct type): ...to here.
9597 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9598 field.
9599 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9600 (replace_type): Set length on all type variants for a given type.
9601
b8a92b82
AC
96022003-02-07 Andrew Cagney <ac131313@redhat.com>
9603
9604 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9605 <sys/stat.h>.
9606 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 9607
5cb316ef
AC
96082003-02-06 Andrew Cagney <ac131313@redhat.com>
9609
2555fe1a
AC
9610 * Makefile.in (symm-nat.o): Update dependencies.
9611 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9612 (lynx-nat.o, ia64-linux-nat.): Ditto.
9613 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9614 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9615 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9616
44270758
AC
9617 * Makefile.in (inflow_h): Define.
9618 (procfs.o, inflow.o, procfs.o): Update dependencies.
9619 * inftarg.c (child_stop): Delete extern declaration of
9620 inferior_process_group. Include "inflow.h".
9621 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9622 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9623 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9624 (our_process_group, inferior_process_group): Extern declarations.
9625
df8f7274
AC
9626 * procfs.c: Include "gdb_assert.h".
9627
5cb316ef
AC
9628 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9629 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9630 * jv-typeprint.c (java_type_print_base): Ditto.
9631 * typeprint.c (typedef_print): Eliminate STREQ.
9632 * cli/cli-script.c (define_command, define_command): Ditto.
9633 * main.c (captured_main): Ditto.
9634 * values.c (lookup_internalvar): Ditto.
9635 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9636 within `if' conditional.
9637 * linespec.c (decode_line_2): Ditto.
9638 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9639 (bfd_openw_with_cleanup): Ditto.
9640
2a28ccea
MK
96412003-02-07 Mark Kettenis <kettenis@gnu.org>
9642
9643 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9644 legacy_extract_return_value and store_return_value to
9645 legacy_return_value.
9646
786b8124
CF
96472003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9648
9649 * win32-nat.c (get_relocated_section_addrs): New function. Find
9650 section load addresses for symbol handling in relocated DLLs.
9651 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9652
b871e4ec
FF
96532003-02-05 Fred Fish <fnf@intrinsity.com>
9654
9655 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9656 '=' and '!='.
9657 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9658 with '&' and '=='.
9659 (angel_RDI_info): Ditto.
9660 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9661 with '&' and '!='.
9662 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 9663
4389a95a 96642003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
9665 Keith Seitz <keiths@redhat.com>
9666 Elena Zannoni <ezannoni@redhat.com>
9667 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
9668
9669 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9670 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9671 (SUBDIR_MI_OBS): Add "mi-interp.o".
9672 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9673 (SFILES): Add "interps.c".
9674 (COMMON_OBS): Add "interps.o".
9675 (interps_h, mi_main_h): Define.
9676 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9677 (mi-main.o, main.o, event-top.o): Update dependencies.
9678 * cli/cli-interp.c: New file.
9679 * interps.h, interps.c: New files.
9680 * top.c: (gdb_init): Don't install the default interpreter, handed
9681 by captured_main.
9682 * main.c: Include "interps.h".
9683 (interpreter_p): Note that it should malloc'ed.
9684 (captured_command_loop): Call current_interp_command_loop.
9685 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9686 xfree and xstrdup when updating interpreter_p. Install the
9687 default interpreter. Add hack to stop mi1's copyright notice
9688 being encoded.
9689 * event-top.h (gdb_setup_readline): Declare.
9690 (gdb_disable_readline): Declare.
9691 * event-top.c: Include "interps.h".
9692 (display_gdb_prompt): Call current_interp_display_prompt_p.
9693 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9694 gdb_stdlog, and gdb_stdtarg.
9695 (_initialize_event_loop): Don't call gdb_setup_readline.
9696 * cli-out.c (cli_out_set_stream): New function.
9697 * cli-out.h (cli_out_set_stream): Declare.
9698
ff3b5810
MK
96992003-02-06 Mark Kettenis <kettenis@gnu.org>
9700
9701 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9702 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9703 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9704 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9705 config/i386/i386v42mp.mt: Removed.
9706
5b729aa5
MK
97072003-02-05 Mark Kettenis <kettenis@gnu.org>
9708
9709 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9710 GDB_OSABI_SOLARIS.
9711
8cc15142
MC
97122003-02-05 Michael Chastain <mec@shout.net>
9713
9714 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9715 2.12.1 and earlier versions.
9716
5aa5d4b9
AC
97172003-02-05 Andrew Cagney <ac131313@redhat.com>
9718
9719 Remove orphaned hosts, targets and files.
9720 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9721 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9722 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9723 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9724 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9725 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9726 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9727 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9728 * config/sparc/tm-sp64sim.h: Delete.
9729 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9730 hosts.
9731 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9732 mips*-dec-mach3* targets.
9733
b68767c1
MC
97342003-02-04 Michael Chastain <mec@shout.net>
9735
9736 * NEWS: Fix typo: sepcifying -> specifying.
9737
5ae7ca1d
MC
97382003-02-04 Michael Chastain <mec@shout.net>
9739
9740 * dwarfread.c: Add documentation on the state of dwarf-1,
9741 looking towards obsoletion.
9742
d08a4280
MC
97432003-02-03 Michael Chastain <mec@shout.net>
9744
9745 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9746 gdb/testsuite/gdb.c++/pr-1023.exp.
9747
e9be73e4
AC
97482003-02-04 Andrew Cagney <ac131313@redhat.com>
9749
9750 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9751 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9752
9753 * utils.c (init_page_info): Delete reference to MPW in comments.
9754 * main.c (captured_main): Delete #ifdef MPW.
9755
05d57f6f
AC
97562003-02-04 Andrew Cagney <ac131313@redhat.com>
9757
8ffd9b1b 9758 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
9759 * monitor.c (monitor_expect): Obsolete reference to m32r.
9760 * configure.tgt: Mark m32r-*-elf* as obsolete.
9761 * MAINTAINERS: Mark m32k as obsolete.
9762 * m32r-rom.c: Obsolete file.
9763 * config/m32r/m32r.mt: Obsolete file.
9764 * config/m32r/tm-m32r.h: Obsolete file.
9765 * m32r-stub.c: Obsolete file.
9766 * m32r-tdep.c: Obsolete file.
9767
8b0e5691
AC
97682003-02-04 Andrew Cagney <ac131313@redhat.com>
9769
9770 * NEWS: Mention that the z8k-zilog-none is obsolete.
9771 * MAINTAINERS: Mark z8k as obsolete.
9772 * configure.tgt: Obsolete the z8k-*-coff* target.
9773 * config/z8k/z8k.mt: Obsolete file.
9774 * config/z8k/tm-z8k.h: Obsolete file.
9775 * z8k-tdep.c: Obsolete file.
9776
67f16606
AC
97772003-02-04 Andrew Cagney <ac131313@redhat.com>
9778
9779 * NEWS: Mention that the mn10200-elf is obsolete.
9780 * configure.tgt: Obsolete mn10200-*-* target.
9781 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9782 mention that the mn10200 is obsolete.
9783 * breakpoint.h: Ditto.
9784 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9785 * config/mn10200/mn10200.mt: Obsolete file.
9786 * config/mn10200/tm-mn10200.h: Obsolete file.
9787 * mn10200-tdep.c: Obsolete file.
9788
fd2299bd
AC
97892003-02-04 Andrew Cagney <ac131313@redhat.com>
9790
9791 * MAINTAINERS: Mark h8500 as obsolete.
9792 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9793 * findvar.c (value_from_register): Ditto.
9794 * h8500-tdep.c: Mark file as obsolete.
9795 * config/h8500/h8500.mt: Ditto.
9796 * config/h8500/tm-h8500.h: Ditto.
9797 * NEWS: Mention that h8500 is obsolete.
9798
eb9a305d
DC
97992003-02-04 David Carlton <carlton@math.stanford.edu>
9800
9801 * objfiles.c (allocate_objfile): Always set name. Add comment at
9802 start of function.
9803 * jv-lang.c (get_dynamics_objfile): Add comment.
9804
406fc7fb
DC
98052003-02-04 David Carlton <carlton@math.stanford.edu>
9806
9807 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9808 * printcmd.c (build_address_symbolic): Replace uses of
9809 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9810 SYMBOL_NAME, and asm_demangle.
9811 Update copyright.
9812
93d91629
DC
98132003-02-04 David Carlton <carlton@math.stanford.edu>
9814
9815 * linespec.c (decode_compound): Extract code into
9816 lookup_prefix_sym.
9817 (lookup_prefix_sym): New function.
9818
1c5cb38e
DC
98192003-02-04 David Carlton <carlton@math.stanford.edu>
9820
9821 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9822 FLOAT_COERCION_BADNESS.
9823 * gdbtypes.c (rank_one_type): Replace all uses of
9824 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9825
0cf824c9
JB
98262003-02-04 Jim Blandy <jimb@redhat.com>
9827
9828 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9829 section, let dwarf_macinfo_section point to it, not
9830 dwarf_loc_section.
9831
a2d356b0
DJ
98322003-02-04 Daniel Jacobowitz <drow@mvista.com>
9833
9834 Pointed out by Anton Blanchard <anton@samba.org>.
9835 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9836 (ppc_linux_at_sigtramp_return_path): Use it.
9837
2de7ced7
DJ
98382003-02-04 Daniel Jacobowitz <drow@mvista.com>
9839
9840 * defs.h (streq): Add prototype.
9841 * utils.c (streq): New function.
9842
9843 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9844 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9845 * mdebugread.c (new_symbol): Likewise.
9846 * stabsread.c (define_symbol): Likewise.
9847 * coffread.c (process_coff_symbol): Likewise.
9848 * dwarfread.c (new_symbol): Likewise.
9849
9850 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9851 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9852 here.
9853 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9854 SYMBOL_INIT_DEMANGLED_NAME.
9855 * objfiles.c: Include "hashtab.h".
9856 (allocate_objfile): Call htab_set_functions_ex for the
9857 demangled_names_hash.
9858 (free_objfile): Call htab_delete for the demangled_names_hash.
9859 * objfiles.h (struct htab): Add declaration.
9860 (struct objfile): Add demangled_names_hash.
9861 * symfile.c: Include "hashtab.h".
9862 (reread_symbols): Call htab_delete for the demangled_names_hash.
9863 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9864 SYMBOL_NAME in the bcache.
9865 * symtab.c: Include "hashtab.h". Update comments.
9866 (create_demangled_names_hash, symbol_set_names): New functions.
9867 (symbol_find_demangled_name): New function, broken out from
9868 symbol_init_demangled_names.
9869 (symbol_init_demangled_names): Use it.
9870 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9871 (SYMBOL_SET_NAMES): New macro.
9872 (symbol_set_names): Add prototype.
9873
15831452
JB
98742003-02-03 Jim Blandy <jimb@redhat.com>
9875
9876 Use a single, consistent representation for an empty minimal
9877 symbol table in an objfile.
9878 * objfiles.c (terminate_minimal_symbol_table): New function.
9879 (allocate_objfile): Call it.
9880 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9881 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 9882 non-NULL.
15831452
JB
9883 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9884 objfile has minimal symbols, compare minimal_symbol_count to zero,
9885 instead of comparing msymbols with NULL.
9886 * objfiles.c (have_minimal_symbols): Same.
9887 * solib-sunos.c (solib_add_common_symbols): Call
9888 terminate_minimal_symbol_table.
9889 * symfile.c (reread_symbols): Same.
8ffd9b1b 9890
ffc65945
KB
98912003-02-03 Kevin Buettner <kevinb@redhat.com>
9892
9893 * s390-tdep.c (s390_address_class_type_flags)
9894 (s390_address_class_type_flags_to_name)
9895 (s390_address_class_name_to_type_flags): New functions.
9896 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9897 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9898
f211c6d4
MS
98992003-02-03 Michael Snyder <msnyder@redhat.com>
9900
9901 * arm-tdep.c: Fix spell-o in comment.
9902
659b0389
ML
99032003-02-03 Michal Ludvig <mludvig@suse.cz>
9904
9905 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9906 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 9907 error messages to contain BFD filename.
659b0389 9908
3b31d625
EZ
99092003-02-02 Elena Zannoni <ezannoni@redhat.com>
9910
997b089a 9911 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
9912 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9913 (do_mixed_source_and_assembly): Use
9914 make_cleanup_ui_out_tuple_begin_end and
9915 make_cleanup_ui_out_tuple_begin_end.
9916 (do_mixed_source_and_assembly): Ditto.
9917 * thread.c (do_captured_list_thread_ids): Ditto.
9918 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9919 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9920 ui_out_tuple_end): Delete prototypes.
9921 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9922 ui_out_list_end, ui_out_tuple_end): Delete.
9923
9924 From Kevin Buettner <kevinb@redhat.com>:
9925 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
9926 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9927 (do_cleanup_table_end): New functions.
9928 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9929 Use cleanups to invoke_ui_out_tuple_end().
9930 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
9931 * cli/cli-setshow.c (cmd_show_list): Use
9932 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 9933
5b181d62
AC
99342003-02-02 Andrew Cagney <ac131313@redhat.com>
9935
9936 * frame.c (frame_unwind_register): New function.
9937 (frame_unwind_unsigned_register): Use.
9938 (frame_unwind_signed_register): Use.
9939 (frame_read_register): New function.
9940 * frame.h (frame_unwind_register): Declare.
9941 (frame_read_register): Declare.
9942
9943 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9944 and frame_unwind_register instead of read_memory, write_register
9945 and deprecated_write_register_bytes.
9946
5f601589
AC
99472003-02-02 Andrew Cagney <ac131313@redhat.com>
9948
9949 * frame.h: Note that namelen can be negative.
9950 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9951 NAME's length.
9952
9953 * NEWS: Mention that the d10v's `regs' command is deprecated.
9954 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9955 (d10v_print_registers_info): New function.
9956 (show_regs): Call d10v_print_registers_info.
9957 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9958
6a3fe0a4
MK
99592003-02-02 Mark Kettenis <kettenis@gnu.org>
9960
9961 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9962 lost in the previous patch.
9963
075559bc
AC
99642003-02-01 Andrew Cagney <ac131313@redhat.com>
9965
9966 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
9967 * stack.c (print_frame_info_base): Output complete FRAME tuple
9968 for synthesized frames.
075559bc 9969
6789195b
AC
99702003-02-02 Andrew Cagney <ac131313@redhat.com>
9971
9972 * mips-nat.c (zerobuf): Delete.
9973 (fetch_inferior_registers): Alloc local zerobuf.
9974 (fetch_core_registers): Alloc local zerobuf.
9975 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9976 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9977 * thread-db.c (thread_db_store_registers): Ditto.
9978 * sh-tdep.c (sh_do_register): Ditto.
9979 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9980 * remote-sim.c (gdbsim_store_register): Ditto.
9981 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9982 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9983 * monitor.c (monitor_supply_register): Ditto.
9984 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9985 * mips-nat.c (fetch_inferior_registers): Ditto.
9986 * m68klinux-nat.c (fetch_register): Ditto.
9987 * lynx-nat.c (fetch_inferior_registers): Ditto.
9988 (fetch_inferior_registers): Ditto.
9989 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9990 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9991 (hpux_thread_store_registers): Ditto.
9992 * hppah-nat.c (fetch_register): Ditto.
9993 * hppab-nat.c (fetch_register): Ditto.
9994 * hppa-tdep.c (pa_register_look_aside): Ditto.
9995 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9996 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9997
e669114a
AC
99982003-02-01 Andrew Cagney <ac131313@redhat.com>
9999
10000 * gdbarch.sh: Explictly specify all method levels. When a
10001 variable with an empty level, provide a non-multi-arch default.
10002 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10003 * gdbarch.h: Re-generate.
10004 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10005 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10006
9a043c1d
AC
100072003-02-01 Andrew Cagney <ac131313@redhat.com>
10008
10009 * defs.h (host_pointer_to_address): Delete declaration.
10010 (address_to_host_pointer): Delete declaration.
10011 * utils.c (host_pointer_to_address): Delete function.
10012 (address_to_host_pointer): Delete function.
10013 * procfs.c (procfs_address_to_host_pointer): New function.
10014 * procfs.c (proc_set_watchpoint): Use.
10015 (procfs_can_use_hw_breakpoint): Update comments.
10016 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10017 (som_solib_add): Use.
10018 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10019 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 10020
7ca9f392
AC
100212003-02-01 Andrew Cagney <ac131313@redhat.com>
10022
94bbfd30
AC
10023 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10024 strlen d_name.
10025
7ca9f392
AC
10026 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10027 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10028 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10029 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10030 (define_symbol): Update.
10031 * symfile.c (generic_load): Remove references to nindy.
10032 * symtab.c: Remove references to nindy.
10033
31a85ea2
AC
100342003-02-01 Andrew Cagney <ac131313@redhat.com>
10035
10036 * infcmd.c (print_float_info): Delete code conditional on
10037 FLOAT_INFO.
10038 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10039 * config/m68k/nm-apollo68b.h: Ditto.
10040 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10041 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10042 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10043
f6e85fc8
MK
100442003-02-01 Mark Kettenis <kettenis@gnu.org>
10045
6015b6a0
MK
10046 * config/i386/tm-i386os9k.h: Removed.
10047
f7a30bdf
MK
10048 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10049 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10050 they're identical to i[3456]86-*-sysv* now.
10051 * config/i386/i386v32.mh: Removed.
10052 * config/i386/xm-i386v32.h: Removed.
10053 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10054
28d52111
MK
10055 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10056
4d3f6bce
MK
10057 * config/i386/i386dgux.mh: Removed.
10058 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10059
f6e85fc8
MK
10060 * configure.in: Fix typo.
10061 * configure: Regenerated.
10062
53955967
DC
100632003-01-31 David Carlton <carlton@math.stanford.edu>
10064
10065 * dwarf2read.c (dwarf2_locate_sections): Set
10066 dwarf_ranges_section.
10067
b1364885
AC
100682003-01-31 Andrew Cagney <ac131313@redhat.com>
10069
8dbb1c65
AC
10070 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10071 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 10072
8731e58e
AC
10073 * utils.c: Re-indent.
10074
b1364885
AC
10075 * config/djgpp/fnchange.lst: Delete nindy files.
10076 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10077 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10078 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10079 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10080 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10081 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10082 * Makefile.in (init.c): Remove nindy references.
10083 (saber_gdb): Delete rule.
10084 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10085 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10086 and a68v-nat.c.
10087 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10088 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10089 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10090 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10091 nindy-share/stop.h.
10092 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10093 * saber.suppress: Delete file.
10094
086df311
DJ
100952003-01-31 Daniel Jacobowitz <drow@mvista.com>
10096
10097 * dbxread.c (stabs_data): New static variable.
10098 (fill_symbuf): Support an in-memory buffer for stabs data.
10099 (stabs_seek): New function.
10100 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10101 (read_ofile_symtab): Use stabs_seek.
10102 (elfstab_build_psymtabs): Take an asection* instead of
10103 an offset and size. Relocate the stabs data if necessary.
10104 Save the section* for dbx_psymtab_to_symtab.
10105 * dwarf2read.c: Add section variables for each debug section.
10106 (dwarf2_locate_sections): Fill them in.
10107 (dwarf2_read_section): Take an asection* argument.
10108 Relocate the section contents if necessary.
10109 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10110 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10111 it to dwarf2_read_section.
10112 (dwarf2_build_frame_info): Update callers.
10113 * elfread.c (elf_symfile_read): Update call to
10114 elfstab_build_psymtabs.
10115 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10116 (DBX_STAB_SECTION): New macro.
8ffd9b1b 10117 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
10118 * symfile.c (symfile_dummy_outputs): New function.
10119 (symfile_relocate_debug_section): New function.
10120 * symfile.h (symfile_relocate_debug_section): Add prototype.
10121
87d1b352
RH
101222003-01-31 Richard Henderson <rth@redhat.com>
10123
10124 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10125 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10126 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10127 * alpha-tdep.c (alpha_register_name): Add "unique".
10128 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10129 (ALPHA_UNIQUE_REGNUM): New.
10130 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10131
c48861fb
AC
101322003-01-31 Andrew Cagney <ac131313@redhat.com>
10133
10134 * README: Remove reference to Ericsson 1800 monitor.
10135 * Makefile.in (remote-es.o): Delete rule.
10136 (ALLDEPFILES): Delete remote-es.c.
10137 * remote-es.c: Delete file.
10138 * config/m68k/es1800.mt: Delete file.
10139 * config/djgpp/fnchange.lst: Update.
10140 * configure.tgt: Delete m68*-ericsson-* target.
10141
d764a824
AF
101422003-01-31 Adam Fedor <fedor@gnu.org>
10143
10144 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10145 Remove duplicate/shadowing variable of same name.
10146
fe36c4f4
JB
101472003-01-30 Jim Blandy <jimb@redhat.com>
10148
10149 * symfile.c (find_separate_debug_file): Assert that the objfile's
10150 directory name we compute ends with a slash, and then assume that
10151 that's so everywhere we use it.
10152
cb741690
DJ
101532003-01-30 Daniel Jacobowitz <drow@mvista.com>
10154
10155 * valops.c (value_assign): Flush frame cache after stores to memory
10156 also.
10157
96ee5227
AC
101582003-01-30 Andrew Cagney <ac131313@redhat.com>
10159
10160 * Makefile.in (mon960-rom.o): Delete rule.
10161 * mon960-rom.c: Delete file.
10162
7f6104a9
AC
101632003-01-30 Andrew Cagney <ac131313@redhat.com>
10164
10165 * d10v-tdep.c: Include "frame-unwind.h".
10166 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10167 list.
10168 (next_addr, uses_frame): Delete.
10169 (struct d10v_unwind_cache): Define.
10170 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10171 Use info instead of next_addr and uses_frame globals.
10172 (d10v_frame_init_saved_regs): Delete function.
10173 (d10v_init_extra_frame_info): Delete function.
10174 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10175 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10176 init_frame_pc or frame_saved_pc.
10177 (d10v_pop_frame): Delete function.
10178 (do_d10v_pop_frame): Delete function.
10179 (d10v_frame_chain): Delete function.
10180 (d10v_frame_chain_valid): Delete function.
10181 (d10v_frame_pc_unwind): New function.
10182 (d10v_frame_id_unwind): New function.
10183 (saved_regs_unwinder): New function.
10184 (d10v_frame_register_unwind): New function.
10185 (d10v_frame_pop): New function.
10186 (d10v_frame_unwind): New variable.
10187 (d10v_frame_p): New function.
10188 (d10v_frame_saved_pc): Delete function.
10189 * Makefile.in (d10v-tdep.o): Update dependencies.
10190
cad2e848
JB
101912003-01-30 J. Brobecker <brobecker@gnat.com>
10192
10193 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10194 causing some regressions due to a change in the default value
10195 for this macro.
10196
af34e669
DJ
101972003-01-29 Richard Henderson <rth@redhat.com>
10198 Elena Zannoni <ezannoni@redhat.com>
10199 Daniel Jacobowitz <drow@mvista.com>
10200
10201 Fix PR gdb/961.
8ffd9b1b 10202 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
10203 variables.
10204 (RANGES_SECTION): New.
10205 (dwarf_ranges_buffer): New variable.
10206 (struct comp_unit_head): Add member "die".
10207 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10208 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10209 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10210 (dwarf2_locate_sections): Likewise.
10211 (dwarf2_build_psymtabs): Read .debug_ranges.
10212 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10213 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10214 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10215 Look for DW_AT_ranges and return the bounding box.
10216
baa93fa6
CF
102172003-01-29 Brian Ford <ford@vss.fsi.com>
10218
10219 * win32-nat.c (cygwin_pid): Removed as unused.
10220 (child_attach): Try fall back to Cygwin pid.
10221
c63f977f
JB
102222003-01-29 Jim Blandy <jimb@redhat.com>
10223
10224 * objfiles.h (struct objfile): Doc fix.
10225
d62d1979
AC
102262003-01-29 Andrew Cagney <ac131313@redhat.com>
10227
10228 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10229 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10230 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10231 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10232 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10233 (FRAME_SAVED_PC): Change to a function with predicate.
10234 * gdbarch.h, gdbarch.c: Re-generate.
10235
1ae18a04
AC
102362003-01-28 Andrew Cagney <ac131313@redhat.com>
10237
52287340
AC
10238 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10239
1ae18a04
AC
10240 * complaints.c (complain): Delete function.
10241 * complaints.h (struct deprecated_complaint): Delete definition.
10242 (complain): Delete declaration.
10243
f2c16bd6
KB
102442003-01-28 Kevin Buettner <kevinb@redhat.com>
10245
10246 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10247 dummy frames.
10248
a94dd1fd
AC
102492003-01-27 Andrew Cagney <ac131313@redhat.com>
10250
10251 * sentinel-frame.h, sentinel-frame.c: New files.
10252 * Makefile.in (frame.o): Update dependencies.
10253 (SFILES): Add sentinel-frame.c.
10254 (sentinel_frame_h): Define.
10255 (COMMON_OBS): Add sentinel-frame.o.
10256 (sentinel-frame.o): Specify dependencies.
10257 * frame.c: Include "sentinel-frame.h".
10258 (frame_register_unwind): Rewrite assuming that there is always a a
10259 ->next frame.
10260 (frame_register, generic_unwind_get_saved_register): Ditto.
10261 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10262 (create_sentinel_frame, unwind_to_current_frame): New functions.
10263 (get_current_frame): Rewrite using create_sentinel_frame and
10264 unwind_to_current_frame. When possible, always create a frame.
10265 (create_new_frame): Set next to the sentinel frame.
10266 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10267 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10268 ID cache when necessary.
10269 (frame_saved_regs_id_unwind): Use frame_relative_level.
10270 (deprecated_generic_get_saved_register): Use frame_relative_level,
10271 get_frame_saved_regs, get_frame_pc, get_frame_base and
10272 get_next_frame.
10273 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10274 frame_register.
10275
5378adc4
DJ
102762003-01-27 Daniel Jacobowitz <drow@mvista.com>
10277
10278 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10279
51ee2ddc
DJ
102802003-01-27 Daniel Jacobowitz <drow@mvista.com>
10281
10282 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10283 (maintenance_set_profile_cmd): Use error () instead of warning ().
10284
d9feb4e7
DJ
102852003-01-27 Daniel Jacobowitz <drow@mvista.com>
10286
10287 * configure.in: Check that -pg works if using --enable-profiling.
10288 Check for monstartup and _mcleanup regardless of --enable-profiling.
10289 * maint.c: Check for monstartup and _mcleanup before using them.
10290 * config.in: Regenerated.
10291 * configure: Regenerated.
10292
2d188dd3
NC
102932003-01-24 Nick Clifton <nickc@redhat.com>
10294
10295 * Add sh2e support:
10296
10297 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10298
10299 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10300 (sh2e_show_regs): New.
10301 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10302 * config/sh/tm-sh.h: Added sh2e to comments.
10303
cb3c37b2
JB
103042003-01-23 Jim Blandy <jimb@redhat.com>
10305
10306 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10307 symbols found)" message here; we haven't checked for a separate
10308 debug info file yet, so we don't know yet.
10309 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10310 we've looked everywhere. Also, there's no need to print a special
10311 message when we're loading the separate debug info file: the one
10312 symbol_file_add prints is fine.
10313
5b5d99cf
JB
103142003-01-23 Alexander Larsson <alexl@redhat.com>
10315 Jim Blandy <jimb@redhat.com>
10316
10317 Add support for executables whose debug info has been separated
10318 out into a separate file, leaving only a link behind.
10319 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10320 and separate_debug_objfile_backlink.
10321 (put_objfile_before): New declaration.
10322 * symfile.c: #include "filenames.h".
10323 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10324 debug info in a separate file, read that, too. Save the addrs
10325 argument, so we can use it again to read the separated debug info;
10326 syms_from_objfile modifies the table we pass it.
10327 (reread_symbols): After re-reading an objfile, call
10328 reread_separate_symbols to refresh its separate debug info
10329 objfile, if it has one.
10330 (reread_separate_symbols, find_separate_debug_file,
10331 get_debug_link_info, separate_debug_file_exists): New functions.
10332 (debug_file_directory): New global var.
10333 (_initialize_symfile): Initialize debug_file_directory, and
10334 provide the new `set debug-file-directory' command to let the user
10335 change it.
10336 * objfiles.c (free_objfile): If this objfile has its debug info in
10337 a separate objfile, free that one too. If this is itself a
10338 separate debug info objfile, clear our parent's backlink.
10339 (put_objfile_before): New function.
10340 * utils.c (gnu_debuglink_crc32): New function.
10341 * defs.h (gnu_debuglink_crc32): New declaration.
10342 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10343 * configure.in: Handle --with-separate-debug-dir config option.
10344 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10345 * acconfig.h (DEBUGDIR): New macro.
10346 * configure, aclocal.m4, config.in: Regenerated.
10347
7e8580c1
JB
103482003-01-22 Jim Blandy <jimb@redhat.com>
10349
7904e09f
JB
10350 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10351 like the old symbol_file_add, but taking new arguments: you can
10352 now pass in either a `struct section_addr_info' list to say where
10353 each section is loaded, or a `struct section_offsets' table. Pass
10354 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 10355 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
10356 with the appropriate quiescent values for the new arguments.
10357
7e8580c1
JB
10358 * symfile.c: #include "gdb_assert.h".
10359 (syms_from_objfile): Add the ability to pass in a section offset
10360 table directly, as an alternative to the section_addr_info table.
10361 Document arguments better.
10362 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10363 * symfile.h (syms_from_objfile): Update declaration.
10364 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10365 syms_from_objfile.
10366 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10367
d28f9cdf
DJ
103682003-01-22 Daniel Jacobowitz <drow@mvista.com>
10369
10370 Original patch by Tom Tromey <tromey@cygnus.com> and
10371 Jason Molenda <jmolenda@apple.com>.
10372 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10373 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10374 * NEWS: Mention profiling.
10375 * configure.in (--enable-gdbtk): Fix typo.
10376 (--enable-profiling): New. Set PROFILE_CFLAGS.
10377 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10378 Fill in function.
10379 (profiling_state): New variable.
10380 (mcleanup_wrapper): New function.
10381 (_initialize_maint): Remove NOTYET, fix call to
10382 add_setshow_boolean_cmd for "maint set profile".
10383 * configure: Regenerated.
10384
df21e465
MH
103852003-01-21 Martin M. Hunt <hunt@redhat.com>
10386
10387 * Makefile.in (install-gdbtk): Install PNG images too.
10388
73c1f219
AC
103892003-01-21 Andrew Cagney <ac131313@redhat.com>
10390
10391 * exec.c (text_start): Delete global variable.
10392 (exec_file_attach): Make text_start local to the function.
10393 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10394 * valops.c (hand_function_call): Delete code that handles
10395 BEFORE_TEXT_END and AFTER_TEXT_END.
10396 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10397 of CALL_DUMMY_LOCATION.
10398 * gdbarch.c: Regenerate.
10399 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10400 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10401 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10402 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10403 (text_end): Delete extern declaration.
10404
eb4f72c5
AC
104052003-01-21 Andrew Cagney <ac131313@redhat.com>
10406
10407 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10408 * blockframe.c (backtrace_below_main): Move to "frame.c".
10409 (frame_chain_valid): Delete check for backtrace_below_main.
10410 (_initialize_blockframe): Delete initialization, move ``set
10411 backtrace-below-main'' command to "frame.c".
10412 (do_flush_frames_sfunc): Delete function.
10413 * frame.c: Include "command.h" and "gdbcmd.h".
10414 (frame_type_from_pc): New function.
10415 (create_new_frame): Use frame_type_from_pc.
10416 (legacy_get_prev_frame): New function.
10417 (get_prev_frame): Rewrite. When an old style frame, call
10418 legacy_get_prev_frame. Otherwize, unwind the PC first.
10419 (_initialize_frame): Add ``set backtrace-below-main'' command.
10420 * Makefile.in (frame.o): Update dependencies.
10421
778ce8cc
AC
104222003-01-19 Andrew Cagney <ac131313@redhat.com>
10423
10424 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10425 DEPRECATED_REGISTERS_INFO.
10426
01c193c8
AC
104272003-01-19 Andrew Cagney <ac131313@redhat.com>
10428
10429 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10430 Maintainers'. Update `Various Maintainers'.
10431
dedc2a2b
AC
104322003-01-19 Andrew Cagney <ac131313@redhat.com>
10433
10434 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10435 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10436 Suppress actual parameters when `-'.
10437 * gdbarch.h, gdbarch.c: Regenerate.
10438
b7261c70
AC
104392003-01-19 Andrew Cagney <ac131313@redhat.com>
10440
10441 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10442 code handling dummy frames.
10443
dbe9fe58
AC
104442003-01-19 Andrew Cagney <ac131313@redhat.com>
10445
10446 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10447 (struct frame_unwind): Add field pop.
10448 * frame.h (frame_pop): Declare.
10449 * frame.c (frame_saved_regs_pop): New function.
10450 (trad_frame_unwinder): Add frame_saved_regs_pop.
10451 (frame_pop): New function.
10452 * dummy-frame.c (dummy_frame_pop): New function.
10453 (discard_innermost_dummy): New function.
10454 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10455 (dummy_frame_unwind): Add dummy_frame_pop.
10456 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10457 * valops.c (hand_function_call): Ditto.
10458 * stack.c (return_command): Ditto.
10459
570b8f7c
AC
104602003-01-18 Andrew Cagney <ac131313@redhat.com>
10461
10462 * cris-tdep.c: Fix function declaration indentation.
10463 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10464 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10465 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10466 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10467 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10468 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10469
104702003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
10471
10472 * README (Unpacking and Installation -- quick overview):
10473 Warn against ".../gdb-5.3/gdb/configure".
10474
494cca16
AC
104752003-01-18 Andrew Cagney <ac131313@redhat.com>
10476
10477 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10478 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10479 (struct frame_unwind): Declare opaque.
10480 (dummy_frame_p): Declare function.
10481 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10482 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10483 * dummy-frame.c: Include "frame-unwind.h".
10484 (dummy_frame_p): New function.
10485 (dummy_frame_unwind): New variable.
10486 * frame.c: Include "frame-unwind.h".
10487 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10488 to use the new unwind field.
10489 (set_unwind_by_pc): Delete function.
10490 (create_new_frame, get_prev_frame): Set unwind field using
10491 frame_unwind_find_by_pc.
10492 (trad_frame_unwind, trad_frame_unwinder): New variables.
10493 * frame.h (trad_frame_unwind): Declare variable.
10494 (frame_id_unwind_ftype): Delete declaration.
10495 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10496 (struct frame_unwind): Declare opaque.
10497 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10498 register_unwind with a single unwind pointer.
10499 * frame-unwind.h, frame-unwind.c: New files.
10500 * Makefile.in (SFILES): Add frame-unwind.c.
10501 (frame_unwind_h): Define.
10502 (COMMON_OBS): Add frame-unwind.o.
10503 (frame-unwind.o): Specify dependencies.
10504 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 10505
4efb68b1
AC
105062003-01-18 Andrew Cagney <ac131313@redhat.com>
10507
10508 * ada-valprint.c: Eliminate PTR.
10509 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10510 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10511 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10512 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10513 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10514 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10515 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 10516
a84d24ee
AC
105172003-01-17 Andrew Cagney <ac131313@redhat.com>
10518
762f08a3
AC
10519 * main.c (captured_main): Don't use PTR.
10520 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10521 * gdbtypes.c (lookup_primitive_typename): Ditto.
10522 (lookup_struct_elt_type): Ditto.
10523 * f-valprint.c (info_common_command): Ditto.
10524 (list_all_visible_commons): Ditto.
10525 * jv-typeprint.c (java_type_print_base): Ditto.
10526
a84d24ee
AC
10527 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10528 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10529 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10530 i386-interix-nat.c and i386-interix-tdep.c. Rename
10531 m68klinux-nat.c and m68klinux-tdep.c. Rename
10532 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10533 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10534 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10535 * main.c (captured_main): Use xfree, not free.
10536
c170fb60
AC
105372003-01-16 Andrew Cagney <ac131313@redhat.com>
10538
10539 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10540 ID back using a parameter.
10541 * frame.c (frame_id_unwind): Update call.
10542 (frame_saved_regs_id_unwind): Update.
10543 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10544 * dummy-frame.h (struct frame_id): Add opaque declaration.
10545 (dummy_frame_id_unwind): Update declaration.
10546
867f3898
AC
105472003-01-15 Andrew Cagney <ac131313@redhat.com>
10548
10549 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10550
40622be8 105512003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 10552
40622be8 10553 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 10554
ae66c1fc
EZ
105552003-01-14 Elena Zannoni <ezannoni@redhat.com>
10556
997b089a 10557 Fix PR gdb/898
ae66c1fc
EZ
10558 * breakpoint.c (until_break_command): Add new argument. Use it to
10559 decide whether to stop only at the current frame or not.
10560 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 10561 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
10562 call.
10563 (advance_command): New function.
10564 (_initialize_infcmd): Update help string for 'until' command.
10565 Add new 'advance' command.
10566
a04257e6
DC
105672003-01-14 David Carlton <carlton@math.stanford.edu>
10568
10569 * linespec.c (decode_line_1): Normalize comments.
10570 (set_flags): Ditto.
10571 (locate_first_half): Ditto.
10572 (decode_compound): Ditto.
10573 (symtab_from_filename): Ditto.
10574 (decode_all_digits): Ditto.
10575 (decode_dollar): Ditto.
10576 (find_methods): Ditto.
10577 (find_toplevel_char): Ditto.
10578
1bac305b
AC
105792003-01-13 Andrew Cagney <ac131313@redhat.com>
10580
10581 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10582 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10583 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10584 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10585 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10586 * language.c, language.h, m32r-tdep.c: Update copyright.
10587 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10588 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10589 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10590 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10591 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10592 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10593
25caa7a8
EZ
105942003-01-13 Elena Zannoni <ezannoni@redhat.com>
10595
10596 * stabsread.h (process_later, resolve_cfront_continuation):
10597 Obsolete.
10598 Update copyright years.
10599 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10600 Update copyright year.
10601 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 10602 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
10603 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10604 Update copyright year.
10605 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10606 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10607 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10608 (parse_partial_symbols): Obsolete cfront support.
10609 * stabsread.c
10610 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10611 macros.
10612 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10613 read_cfront_baseclasses, read_cfront_member_functions,
10614 resolve_cfront_continuation,read_cfront_static_fields,
10615 copy_cfront_struct_fields): Obsolete functions.
10616 (define_symbol, read_one_struct_field): Obsolete cfront support.
10617 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10618 Update Copyright year.
10619
7789c6f5
EZ
106202003-01-13 Elena Zannoni <ezannoni@redhat.com>
10621
10622 * stack.c (print_frame_info, print_stack_frame_base_stub,
10623 print_stack_frame_base, show_and_print_stack_frame_stub,
10624 show_and_print_stack_frame, print_only_stack_frame_stub,
10625 print_only_stack_frame): Delete functions.
10626 (print_stack_frame_stub): Call print_frame_info instead of
10627 print_frame_info_base.
10628 (print_frame_info_base): Rename to print_frame_info.
10629 (backtrace_command_1): Call print_frame_info, instead of
10630 print_frame_info_base.
10631 (current_frame_command): Call print_stack_frame, instead of
10632 print_only_stack_frame.
10633 (frame_command): Call print_stack_frame, instead of
10634 show_and_print_stack_frame.
10635 (up_command): Ditto.
10636 (down_command): Ditto.
10637 * frame.h (print_only_stack_frame): Delete prototype.
10638 * infrun.c (normal_stop): Call print_stack_frame, instead of
10639 show_and_print_stack_frame.
10640 * thread.c (info_threads_command): Call print_stack_frame, instead
10641 of print_only_stack_frame.
10642
3f5a3016
AC
106432003-01-13 Andrew Cagney <ac131313@redhat.com>
10644
d99ba314
AC
10645 * README (Graphical interface to GDB): Update URL. Point at
10646 gdb/links/.
10647
3f5a3016
AC
10648 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10649 version match.
10650
083ae935
DJ
106512003-01-13 Daniel Jacobowitz <drow@mvista.com>
10652
10653 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10654 lines.
10655
5365276c
DJ
106562003-01-13 Daniel Jacobowitz <drow@mvista.com>
10657
10658 * thread-db.c (attach_thread): Prototype.
10659 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10660 thread information (ti), and valid flags (th_valid, ti_valid).
10661 (attach_thread): Move target_pid_to_str call to after the thread
10662 is added to GDB's list. Initialize the cache.
10663 (thread_get_info_callback, thread_db_map_id2thr)
10664 (thread_db_get_info): New functions.
10665 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10666 (thread_db_store_registers, thread_db_thread_alive)
10667 (thread_db_get_thread_local_address): Use them.
10668 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10669 of calling error() for threads in unknown state.
10670
10671 (clear_lwpid_callback): New function.
10672 (thread_db_resume): Use it to clear the cache.
10673
9fc30b6b
DJ
106742003-01-13 Daniel Jacobowitz <drow@mvista.com>
10675
10676 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10677 (resume_callback): Remove dead code.
10678
8f871025
AC
106792003-01-13 Andrew Cagney <ac131313@redhat.com>
10680
10681 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10682 predicate.
10683 * gdbarch.h, gdbarch.c: Regenerate.
10684 * stack.c (frame_info): Only initialize the saved registers when
10685 FRAME_INIT_SAVED_REGS_P.
10686 * frame.c (frame_saved_regs_register_unwind): Assert
10687 FRAME_INIT_SAVED_REGS_P.
10688 (deprecated_generic_get_saved_register): Ditto.
10689
3f565f1e
DJ
106902003-01-13 Daniel Jacobowitz <drow@mvista.com>
10691
10692 * source.c (openp): Squelch warning about "filename".
10693
072b1022
DJ
106942003-01-13 Daniel Jacobowitz <drow@mvista.com>
10695
10696 * source.c (openp): If the file does not exist don't necessarily
10697 search the path.
10698
973ccf8b
DJ
106992003-01-13 Daniel Jacobowitz <drow@mvista.com>
10700
10701 Fix PR gdb/872.
10702 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10703 (integer_types_same_name_p): New function.
10704 (rank_one_type): Use it.
10705 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10706
030292b7
DJ
107072003-01-13 Daniel Jacobowitz <drow@mvista.com>
10708
10709 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10710 variables.
10711 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10712 * configure.in: Add --with-sysroot.
10713 * configure: Regenerated.
10714 * main.c (gdb_sysroot): New variable.
10715 (captured_main): Initialize gdb_sysroot.
10716 * defs.h (gdb_sysroot): New extern declaration.
10717 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10718
afb5d334
MC
107192003-01-12 Michael Chastain <mec@shout.net>
10720
10721 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10722
751ceeb4
MC
107232003-01-12 Michael Chastain <mec@shout.net>
10724
10725 * top.c (print_gdb_version): Bump copyright year to 2003.
10726
94cd26f8
DC
107272003-01-12 David Carlton <carlton@bactrian.org>
10728
10729 * linespec.c (symtab_from_filename): Rename variable 's' to
10730 'file_symtab'.
10731
1ce79225
AC
107322003-01-12 Andrew Cagney <ac131313@redhat.com>
10733
10734 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10735 dummy frame.
10736 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10737
fa1fd571
AC
107382003-01-12 Andrew Cagney <ac131313@redhat.com>
10739
10740 * d10v-tdep.c: Include "gdb_assert.h".
10741 (d10v_store_return_value): Rewrite to match current interface.
10742 (d10v_extract_struct_value_address): Ditto.
10743 (d10v_extract_return_value): Ditto.
10744 (d10v_gdbarch_init): Set store_restore_value,
10745 extract_struct_value_address and extract_return_value.
10746
68b8d23e
JB
107472003-01-12 J. Brobecker <brobecker@gnat.com>
10748
10749 * hpread.c (set_namestring): New procedure replacing the
10750 SET_NAMESTRING macro.
10751 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10752 by calls to set_namestring.
10753
107542003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
10755
10756 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10757 a compilation warning.
10758 (hpread_process_one_debug_symbol): Likewise.
10759
88d262ca
DC
107602003-01-10 David Carlton <carlton@math.stanford.edu>
10761
10762 * linespec.c (decode_line_1): Rename variable 's' to
10763 'file_symtab'.
10764 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10765 (decode_dollar): Ditto.
10766 (decode_variable): Ditto.
10767 (symbol_found): Ditto.
10768
86669319
MC
107692003-01-09 Michael Chastain <mec@shout.net>
10770
10771 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10772
616a9dc4
CV
107732003-01-07 Corinna Vinschen <vinschen@redhat.com>
10774
10775 * win32-nat.c (set_process_privilege): New function.
10776 (child_attach): Call set_process_privilege() to enable the
10777 SE_DEBUG_NAME user privilege if available in process token.
10778
3269bcfa
JB
107792003-01-10 J. Brobecker <brobecker@gnat.com>
10780
10781 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10782 compilation error in the previous revision.
10783
2b0ee454
DC
107842003-01-09 David Carlton <carlton@math.stanford.edu>
10785
10786 * linespec.c: Update copyright.
10787
b3ba1b44
DJ
107882003-01-09 Daniel Jacobowitz <drow@mvista.com>
10789
10790 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10791 than inferior_ptid.
10792 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10793
4ef3f3be
AC
107942003-01-09 Andrew Cagney <ac131313@redhat.com>
10795
479ab5a0
AC
10796 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10797 Update comments.
10798 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10799 (frame_saved_regs_zalloc): Update.
10800 (frame_saved_regs_register_unwind): Update.
10801 (create_new_frame): Update.
10802 (get_prev_frame): Update.
10803 (frame_extra_info_zalloc): Update.
10804 (deprecated_get_frame_saved_regs): Update.
10805 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10806 * cris-tdep.c: Update comment.
10807
bde58177
AC
10808 * somsolib.h: Fix function indentation.
10809 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10810 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10811 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10812 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10813 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10814
4ef3f3be
AC
10815 * infrun.c (follow_fork): Use ISO C definition.
10816 * expprint.c (print_subexp): Use xfree instead of free.
10817 * charset.c: Include "gdb_string.h" instead of <string.h>.
10818 (register_iconv_charsets): Use ISO C definition.
10819 (host_charset, target_charset): Ditto.
10820 * Makefile.in (charset.o): Update dependencies.
10821 (mi-cmd-env.o): Update dependencies.
10822
1c615f7a
AC
108232003-01-08 Andrew Cagney <cagney@redhat.com>
10824
10825 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10826 get_frame_base.
10827
c9a1dc08
AC
108282003-01-08 Andrew Cagney <ac131313@redhat.com>
10829
10830 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10831 build directories. Save edited gdb output in Mbuild.log. If a
10832 build fails, remove any final GDB executable.
10833
dbad9d94
AC
108342003-01-08 Andrew Cagney <ac131313@redhat.com>
10835
10836 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10837 replacing hex constants with function names and stripping leading
10838 file name directory prefixes.
10839
8d357cca
AC
108402003-01-08 Andrew Cagney <cagney@redhat.com>
10841
10842 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10843 get_frame_base.
10844
bca02a8a
DC
108452003-01-08 David Carlton <carlton@math.stanford.edu>
10846
10847 * linespec.c (decode_line_1): Move code into decode_variable.
10848 (decode_variable): New function.
10849
7f8ab3a0
AC
108502003-01-08 Andrew Cagney <ac131313@redhat.com>
10851
10852 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10853
7b5849cc
AC
108542003-01-08 Andrew Cagney <cagney@redhat.com>
10855
10856 * cris-tdep.c (cris_frame_init_saved_regs): Use
10857 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10858 saved_regs buffer.
10859 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10860 (sh64_nofp_frame_init_saved_regs): Ditto.
10861 (sh_fp_frame_init_saved_regs): Ditto.
10862 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10863 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10864 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10865 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10866
72a5efb3
DJ
108672003-01-08 Daniel Jacobowitz <drow@mvista.com>
10868
10869 * minsyms.c (lookup_minimal_symbol): Update comment.
10870 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10871 (lookup_minimal_symbol_solib_trampoline): Likewise.
10872
11c02a10
AC
108732003-01-08 Andrew Cagney <cagney@redhat.com>
10874
aab3ea25
AC
10875 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10876 frame_relative_level.
10877
da50a4b7
AC
10878 * alpha-tdep.c: Use get_frame_extra_info.
10879 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10880 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10881 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10882 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10883
11c02a10
AC
10884 * alpha-tdep.c: Use get_next_frame.
10885 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10886 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10887 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10888 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10889 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10890 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10891 * xstormy16-tdep.c: Ditto.
8ffd9b1b 10892
1e2330ba
AC
108932003-01-07 Andrew Cagney <cagney@redhat.com>
10894
10895 * alpha-tdep.c: Use get_frame_base.
10896 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10897 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10898 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10899 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10900 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10901 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10902 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10903 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 10904
2d75187b
AC
109052003-01-07 Andrew Cagney <cagney@redhat.com>
10906
10907 * frame.c (deprecated_get_frame_context): New function.
10908 (deprecated_set_frame_context): New function.
10909 * frame.h (deprecated_get_frame_context): Declare.
10910 (deprecated_set_frame_context): Declare.
10911 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10912 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 10913
483d36b2
AC
109142003-01-07 Andrew Cagney <cagney@redhat.com>
10915
10916 * frame.c (deprecated_set_frame_next_hack): New function.
10917 (deprecated_set_frame_prev_hack): New function.
10918 * frame.h (deprecated_set_frame_next_hack): Declare.
10919 (deprecated_set_frame_prev_hack): Declare.
10920 * mcore-tdep.c (analyze_dummy_frame): Use
10921 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10922 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10923
14e91ac5
DC
109242003-01-07 David Carlton <carlton@math.stanford.edu>
10925
10926 * linespec.c (decode_line_1): Move code into decode_dollar.
10927 (decode_dollar): New function.
10928
b0c6b05c
AC
109292003-01-07 Andrew Cagney <cagney@redhat.com>
10930
10931 * arm-tdep.c (arm_init_extra_frame_info): Use
10932 deprecated_update_frame_base_hack.
10933 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10934 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10935 (fix_frame_pointer): Ditto.
10936 (mn10300_analyze_prologue): Ditto.
10937
a00a19e9
AC
109382003-01-07 Andrew Cagney <cagney@redhat.com>
10939
10940 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10941 extra_info using frame_extra_info_zalloc.
10942 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10943 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10944 (sh64_init_extra_frame_info): Ditto.
10945 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10946 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10947 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10948 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10949 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10950 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10951 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10952 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10953 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10954 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10955 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10956 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10957
10958 * mn10300-tdep.c (analyze_dummy_frame): Use
10959 deprecated_set_frame_extra_info_hack.
10960 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10961
1fb4c65b
JB
109622003-01-07 J. Brobecker <brobecker@gnat.com>
10963
10964 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10965 class is not scText. These do not define "real" procedures.
10966 (parse_partial_symbols): Likewise.
10967
9fe7d6bf
MS
109682003-01-06 Michael Snyder <msnyder@redhat.com>
10969
10970 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10971
f6c609c4
AC
109722003-01-06 Andrew Cagney <ac131313@redhat.com>
10973
10974 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10975 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10976 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10977 deprecated_frame_xmalloc_with_cleanup.
10978 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10979 deprecated_frame_xmalloc.
10980 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10981 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10982
d995ff4b
AC
109832003-01-06 Andrew Cagney <cagney@redhat.com>
10984
84dc46cb
AC
10985 * x86-64-linux-tdep.c: Include "osabi.h".
10986 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10987
d995ff4b
AC
10988 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10989
66140c26
AC
109902003-01-06 Andrew Cagney <cagney@redhat.com>
10991
10992 * MAINTAINERS (Target Instruction Set Architectures): Update
10993 arm-elf. Can be built with -Werror, has been multiarched.
10994
10995 * value.h (unpack_long): Make buffer parameter constant.
10996 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10997 * scm-lang.h (scm_parse): Ditto.
10998 * defs.h (extract_typed_address, extract_address): Ditto.
10999 (extract_long_unsigned_integer): Ditto.
11000 * inferior.h (unsigned_pointer_to_address): Ditto.
11001 (signed_pointer_to_address): Ditto.
11002 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11003 * gdbarch.h, gdbarch.c: Regenerate.
11004 * findvar.c (extract_long_unsigned_integer): Update.
11005 (extract_address): Update.
11006 (extract_typed_address): Update.
11007 (unsigned_pointer_to_address): Update.
11008 * values.c (unpack_long): Update.
11009 (unpack_double): Update.
11010 (unpack_pointer): Update.
11011 (unpack_field_as_long): Update.
11012 * d10v-tdep.c (d10v_pointer_to_address): Update.
11013 * avr-tdep.c (avr_pointer_to_address): Update.
11014 * scm-lang.c (scm_unpack): Update.
11015 * findvar.c (signed_pointer_to_address): Update.
11016
b089b3da
ML
110172003-01-06 Michal Ludvig <mludvig@suse.cz>
11018
8ffd9b1b 11019 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
11020 since it is in i386-tdep.c.
11021
aff87235
JB
110222003-01-06 J. Brobecker <brobecker@gnat.com>
11023
11024 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11025 failure introduced in the previous change.
11026
34f5e845
MC
110272003-01-05 Michael Chastain <mec@shout.net>
11028
11029 * README: Remove references to deleted remote-*.c files:
11030 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11031 remote-nrom.c, remote-os9k.c, remote-udi.c.
11032
28bcfd30
MK
110332003-01-05 Mark Kettenis <kettenis@gnu.org>
11034
11035 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11036 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11037 i386_get_longjmp_target.
11038
15a5b3ee
AC
110392003-01-05 Andrew Cagney <ac131313@redhat.com>
11040
11041 * arm-tdep.c (prologue_cache): Change to a pointer.
11042 (_initialize_arm_tdep): Allocate prologue_cache.
11043 (check_prologue_cache): Update.
11044 (save_prologue_cache): Update.
11045 (arm_gdbarch_init): Update.
11046
c263362b
DJ
110472003-01-04 Daniel Jacobowitz <drow@mvista.com>
11048
11049 * stabsread.c (update_method_name_from_physname): Call complaint()
11050 instead of error.
11051
51603483
DJ
110522003-01-04 Daniel Jacobowitz <drow@mvista.com>
11053
11054 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11055 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11056 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11057
11058 * blockframe.c: Include "gdbcmd.h" and "command.h".
11059 (backtrace_below_main): New variable.
11060 (file_frame_chain_valid, func_frame_chain_valid)
11061 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11062 (generic_func_frame_chain_valid): Remove functions.
11063 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11064 (_initialize_blockframe): New function.
11065 * Makefile.in (blockframe.o): Update dependencies.
11066 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11067 comment. Call frame_chain_valid ().
11068 * frame.h: Remove old prototypes. Add prototype for
11069 frame_chain_valid and update comments to match.
11070 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11071 Remove old comment.
11072 * gdbarch.h: Regenerated.
11073 * gdbarch.c: Regenerated.
11074
11075 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11076 set_gdbarch_frame_chain_valid.
11077 * avr-tdep.c (avr_gdbarch_init): Likewise.
11078 * cris-tdep.c (cris_gdbarch_init): Likewise.
11079 * frv-tdep.c (frv_gdbarch_init): Likewise.
11080 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11081 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11082 (i386_nw_init_abi): Likewise.
11083 (i386_gdbarch_init): Likewise.
11084 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11085 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11086 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11087 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11088 * mips-tdep.c (mips_gdbarch_init): Likewise.
11089 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11090 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11091 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11092 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11093 * s390-tdep.c (s390_gdbarch_init): Likewise.
11094 * sh-tdep.c (sh_gdbarch_init): Likewise.
11095 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11096 * v850-tdep.c (v850_gdbarch_init): Likewise.
11097 * vax-tdep.c (vax_gdbarch_init): Likewise.
11098 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11099
11100 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11101 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11102 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11103 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11104 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11105 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11106 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11107 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11108
b00a8037
DJ
111092002-01-04 Daniel Jacobowitz <drow@mvista.com>
11110
11111 * Makefile.in (acconfig_h): Remove incorrect macro.
11112 (config_h): Define.
11113 (osabi.o): Update dependencies.
11114 * configure.tgt: Set gdb_osabi based on target triplet.
11115 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11116 * configure: Regenerated.
11117 * config.in: Regenerated.
11118 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11119 (GDB_OSABI_DEFAULT): Define if not already defined.
11120 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11121 (set_osabi_string): New variables.
11122 (gdbarch_register_osabi): Add new OS ABI to
11123 gdb_osabi_available_names.
11124 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11125 (set_osabi, show_osabi): New functions.
11126 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11127
4be87837
DJ
111282003-01-04 Daniel Jacobowitz <drow@mvista.com>
11129
11130 * arch-utils.c (gdbarch_info_init): Set osabi to
11131 GDB_OSABI_UNINITIALIZED.
11132 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11133 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11134 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11135 * gdbarch.c: Regenerated.
11136 * gdbarch.h: Regenerated.
11137 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11138 there's no BFD.
11139 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11140 * osabi.h (enum gdb_osabi): Move to defs.h.
11141 (gdbarch_init_osabi): Update prototype.
11142 * defs.h (enum gdb_osabi): Moved here.
11143 * Makefile.in: Update dependencies.
11144
11145 * alpha-tdep.h: Don't include "osabi.h".
11146 (struct gdbarch_tdep): Remove osabi member.
11147 * alpha-tdep.c: Include "osabi.h".
11148 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11149 iterate over arches. Update call to gdbarch_init_osabi.
11150 (alpha_dump_tdep): Don't dump osabi.
11151 * alpha-linux-tdep.c: Include "osabi.h".
11152 * alpha-osf1-tdep.c: Include "osabi.h".
11153 * alphafbsd-tdep.c: Include "osabi.h".
11154 * alphanbsd-tdep.c: Include "osabi.h".
11155
11156 * arm-tdep.h: Don't include "osabi.h".
11157 (struct gdbarch_tdep): Remove osabi member.
11158 * arm-tdep.c: Include "osabi.h".
11159 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11160 iterate over arches. Update call to gdbarch_init_osabi.
11161 (arm_dump_tdep): Don't dump osabi.
11162 * arm-linux-tdep.c: Include "osabi.h".
11163 * armnbsd-tdep.c: Include "osabi.h".
11164
11165 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11166 Update call to gdbarch_init_osabi.
11167
11168 * i386-tdep.h: Don't include "osabi.h".
11169 (struct gdbarch_tdep): Remove osabi member.
11170 * i386-tdep.c: Include "osabi.h".
11171 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11172 iterate over arches. Update call to gdbarch_init_osabi.
11173 (i386_dump_tdep): Don't dump osabi.
11174 * i386-linux-tdep.c: Include "osabi.h".
11175 * i386-sol2-tdep.c: Include "osabi.h".
11176 * i386bsd-tdep.c: Include "osabi.h".
11177 * i386gnu-tdep.c: Include "osabi.h".
11178 * i386ly-tdep.c: Include "osabi.h".
11179 * i386nbsd-tdep.c: Include "osabi.h".
11180 * i386obsd-tdep.c: Include "osabi.h".
11181
11182 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11183 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11184 check osabi when iterating over arches. Update call to
11185 gdbarch_init_osabi.
11186 (mips_dump_tdep): Don't dump osabi.
11187
11188 * ns32k-tdep.h: Don't include "osabi.h".
11189 (struct gdbarch_tdep): Remove.
11190 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11191 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11192 allocate tdep. Update call to gdbarch_init_osabi.
11193 (ns32k_dump_tdep): Remove.
11194 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11195 * ns32knbsd-tdep.c: Include "osabi.h".
11196
11197 * ppc-tdep.h: Don't include "osabi.h".
11198 (struct gdbarch_tdep): Remove osabi member.
11199 * rs6000-tdep.c: Include "osabi.h".
11200 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11201 osabi when iterating over arches. Update call to
11202 gdbarch_init_osabi.
11203 (rs6000_dump_tdep): Don't dump osabi.
11204 * ppc-linux-tdep.c: Include "osabi.h".
11205 * ppcnbsd-tdep.c: Include "osabi.h".
11206
11207 * sh-tdep.h: Don't include "osabi.h".
11208 (struct gdbarch_tdep): Remove osabi member.
11209 * sh-tdep.c: Include "osabi.h".
11210 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11211 iterate over arches. Update call to gdbarch_init_osabi.
11212 (sh_dump_tdep): Don't dump osabi.
11213 * shnbsd-tdep.c: Include "osabi.h".
11214
11215 * sparc-tdep.c: Include "osabi.h".
11216 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11217 iterate over arches. Update call to gdbarch_init_osabi.
11218 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11219 tdep structure.
11220
11221 * vax-tdep.h: Don't include "osabi.h".
11222 (struct gdbarch_tdep): Remove.
11223 * vax-tdep.c: Include "osabi.h".
11224 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11225 iterate over arches. Don't allocate tdep. Update call
11226 to gdbarch_init_osabi.
11227 (vax_dump_tdep): Remove.
11228 (_initialize_vax_tdep): Update call to gdbarch_register.
11229
a881cf8e
DJ
112302003-01-04 Daniel Jacobowitz <drow@mvista.com>
11231
11232 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11233 entirely.
11234 (breakpoint_re_set_one): Don't fetch the value for a disabled
11235 watchpoint.
11236
1e698235
DJ
112372003-01-04 Daniel Jacobowitz <drow@mvista.com>
11238
11239 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11240 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11241 (COERCE_FLOAT_TO_DOUBLE): Remove.
11242 * gdbarch.c: Regenerate.
11243 * gdbarch.h: Regenerate.
11244 * Makefile.in: Remove value_h from gdbarch_h.
11245 * valops.c (coerce_float_to_double): New variable.
11246 (default_coerce_float_to_double): Remove.
11247 (standard_coerce_float_to_double): Remove.
11248 (value_arg_coerce): Use coerce_float_to_double.
11249 (_initialize_valops): Add "set coerce-float-to-double".
11250 * value.h (default_coerce_float_to_double): Remove prototype.
11251 (standard_coerce_float_to_double): Remove prototype.
11252
11253 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11254 prototyped.
11255 * mdebugread.c (parse_symbol): Likewise.
11256 * stabsread.c (define_symbol): Mark all functions as prototyped.
11257
11258 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11259 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11260 set_gdbarch_coerce_float_to_double.
11261 * arm-tdep.c (arm_gdbarch_init): Likewise.
11262 * frv-tdep.c (frv_gdbarch_init): Likewise.
11263 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11264 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11265 * mips-tdep.c (mips_gdbarch_init): Likewise.
11266 (mips_coerce_float_to_double): Remove.
11267 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11268 (rs6000_coerce_float_to_double): Remove.
11269 * s390-tdep.c (s390_gdbarch_init): Likewise.
11270 * sh-tdep.c (sh_gdbarch_init): Likewise.
11271 (sh_coerce_float_to_double): Remove.
11272 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11273 (sparc_coerce_float_to_double): Remove.
11274 * v850-tdep.c (v850_gdbarch_init): Likewise.
11275 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11276 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11277 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11278 (hppa_coerce_float_to_double): Remove prototype.
11279 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11280
f436a26a
DJ
112812003-01-04 Daniel Jacobowitz <drow@mvista.com>
11282
11283 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11284
248f8055
DJ
112852003-01-04 Daniel Jacobowitz <drow@mvista.com>
11286
11287 Suggested by Stewart Brown <sb24@avaya.com>:
11288 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11289 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11290 (c_type_print_varspec_suffix): Likewise.
11291
72cfdc76
MK
112922003-01-04 Mark Kettenis <kettenis@gnu.org>
11293
bfd260bb
MK
11294 * configure.in: Don't set and AC_SUBST SUBDIRS.
11295 * configure: Regenerated.
11296
72cfdc76
MK
11297 * configure.in: Remove code dealing with shared libraries.
11298 * Makefile.in: Remove HLDFLAGS and HLDENV.
11299 * configure: Regenerated.
11300
c8b8a898
AC
113012003-01-04 Andrew Cagney <ac131313@redhat.com>
11302
11303 * frame.c (deprecated_frame_xmalloc): New function.
11304 (deprecated_set_frame_saved_regs_hack): New function.
11305 (deprecated_set_frame_extra_info_hack): New function.
11306 * frame.h (deprecated_frame_xmalloc): Declare.
11307 (deprecated_set_frame_saved_regs_hack): Declare.
11308 (deprecated_set_frame_extra_info_hack): Declare.
11309
14abd0fb
MK
113102003-01-04 Mark Kettenis <kettenis@gnu.org>
11311
8ee53726
MK
11312 * configure.in: Move code that provides the --enable-gdbtk option
11313 right after the code that handles the --enable-tui option, and
11314 polish it somewhat.
11315 * configure: Regenerated.
11316
14abd0fb
MK
11317 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11318 AC_CHECK_FUNCS and remove the old check for pread64.
11319 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11320 * acconfig.h (_GNU_SOURCE): Add.
11321 (HAVE_PREAD64): Remove.
11322 * configure, aclocal.m4, config.in: Regenerated.
11323
b2fb4676
AC
113242003-01-03 Andrew Cagney <ac131313@redhat.com>
11325
11326 * alpha-tdep.c: Use get_frame_saved_regs.
11327 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11328 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11329 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11330 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11331 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11332
8dcde887
MK
113332003-01-03 Mark Kettenis <kettenis@gnu.org>
11334
11335 * configure.in: Remove all use of the SUBDIRS variable; add
11336 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11337 code providing the --enable-multi-ice option, and move it right in
11338 front of the code that checks whether gdbserver is supported.
11339 Polish that too.
11340 * configure: Regenerated.
11341 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11342 @SUBDIRS@.
11343
8ccd593b
AC
113442003-01-03 Andrew Cagney <cagney@redhat.com>
11345
11346 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11347 * avr-tdep.c, cris-tdep.c: Ditto.
11348 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11349 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 11350
91151a06
MK
113512003-01-03 Mark Kettenis <kettenis@gnu.org>
11352
11353 * configure.in: Remove --enable-netrom option.
11354 * configure: Regenerated.
11355
8fe84d01
MK
113562003-01-03 Mark Kettenis <kettenis@gnu.org>
11357
11358 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11359 declaration for `struct re_pattern_buffer' instead.
11360 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11361
f0394be6
JB
113622003-01-03 J. Brobecker <brobecker@gnat.com>
11363
11364 * mdebugread.c (parse_symbol): Count until the stEnd matching
11365 the structure name.
11366
27e9bf90
MK
113672003-01-02 Mark Kettenis <kettenis@gnu.org>
11368
93d331ba
MK
11369 * configure.in: Remove --with-cpu option.
11370 subscripts. Remove evil changequotes here.
11371 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11372 * config.in, configure: Regenerated.
8ffd9b1b 11373
27e9bf90
MK
11374 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11375 * configure.in: Cleanup section that sources GDB and BFD configure
11376 subscripts. Remove evil changequotes here.
11377 * config.in, configure: Regenerated.
11378
50abf9e5
AC
113792003-01-02 Andrew Cagney <ac131313@redhat.com>
11380
11381 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11382 frame accessor methods.
11383 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11384 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11385 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11386 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11387 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11388 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11389 * z8k-tdep.c: Ditto.
8ffd9b1b 11390
287c1a40
MK
113912003-01-02 Mark Kettenis <kettenis@gnu.org>
11392
f5dbc56d
MK
11393 * configure.in: Remove UI_OUT configuration code.
11394 * ada-lang.c: Update assuming UI_OUT is always true.
11395 * Makefile.in (UIOUT_CFLAGS): Remove.
11396 * configure: Regenerated.
11397 * TODO: Remove blurb about elimination of -DUI_OUT.
11398
627af7ea
MK
11399 * configure.in: Move code that provides the --enable-gdbcli,
11400 --enable-gdbmi options right before the code that handles the
11401 --enable-tui option. Polish a bit.
11402 * configure: Regenerated.
11403
06825bd1
MK
11404 * configure.in: Rewrite check for GNU regex and the
11405 --without-included regex option, and move it into the "Checks for
11406 library functions" section. This makes us use the system regex
11407 again by default on systems with version 2 of the GNU C library.
11408 This was apparently broken.
11409 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11410 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11411 * config.in, configure: Regenerated.
11412
287c1a40
MK
11413 * configure.in: Move code that provides the --enable-tui option
11414 before the "Checks for libraries" section. Polish the code
11415 somewhat and set need_curses to yes if we build the TUI. Rewrite
11416 code that looks for a library providing termcap functionality to
11417 match more closely what's done in the Readline library, and move
11418 it into to the "Checks for libraries" section.
11419 * configure: Regenerated.
11420 * Makefile.in (TERMCAP): Remove variable.
11421 * config/i386/go32.mh (TERMCAP): Remove variable.
11422
684e56bf
AC
114232003-01-02 Andrew Cagney <ac131313@redhat.com>
11424
11425 * MAINTAINERS: Mention gdb_mbuild.sh.
11426 * gdb_mbuild.sh: Rewrite.
11427
e1ea1d75
MK
114282003-01-02 Mark Kettenis <kettenis@gnu.org>
11429
11430 * configure.in: Fix typo in last change.
11431 * config.in, configure: Regenerated.
11432
1b831c93
AC
114332003-01-02 Andrew Cagney <ac131313@redhat.com>
11434
11435 * valarith.c (value_binop): Delete obsolete code and comments.
11436 * configure.host: Ditto.
11437 * buildsym.h (make_blockvector): Ditto.
11438 * buildsym.c (make_blockvector): Ditto.
11439 * defs.h (enum language): Ditto.
11440 (chill_demangle): Ditto.
11441 * elfread.c (elf_symtab_read): Ditto.
11442 * dwarfread.c (CHILL_PRODUCER): Ditto.
11443 (set_cu_language): Ditto.
11444 (handle_producer): Ditto.
11445 * expprint.c (print_subexp): Ditto.
11446 * gdbtypes.c (chill_varying_type): Ditto.
11447 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11448 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11449 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11450 (chill_varying_type): Ditto.
11451 * language.h (_LANG_chill): Ditto.
11452 * language.c (binop_result_type, integral_type): Ditto.
11453 (character_type, string_type, structured_type): Ditto.
11454 (lang_bool_type, binop_type_check): Ditto.
11455 * stabsread.h (os9k_stabs): Ditto.
11456 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11457 (define_symbol, read_type, read_struct_fields): Ditto.
11458 (read_array_type, read_enum_type, read_huge_number): Ditto.
11459 (read_range_type, start_stabs): Ditto.
11460 * symfile.c (init_filename_language_table): Ditto.
11461 (add_psymbol_with_dem_name_to_list): Ditto.
11462 * symtab.c (symbol_init_language_specific): Ditto.
11463 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11464 * symtab.h (struct general_symbol_info): Ditto.
11465 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11466 * typeprint.c (typedef_print): Ditto.
11467 * utils.c (fprintf_symbol_filtered): Ditto.
11468 * valops.c (value_cast, search_struct_field, value_slice): Delete
11469 obsolete code.
11470 (varying_to_slice): Delete function.
11471 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11472 (varying_to_slice): Delete declaration.
11473 * MAINTAINERS: Update.
11474
8bb2c122
MK
114752003-01-02 Mark Kettenis <kettenis@gnu.org>
11476
97bf5e38
MK
11477 * configure.in: Reorganize "Checks for library functions section"
11478 a bit. Remove check for `btowc' and `isascii' functions.
11479 * configure: Regenerated.
11480
5ee754fc
MK
11481 * acconfig.h (_MSE_INT_H): Remove.
11482 * configure.in: Create "Checks for header files" section, and move
11483 appropriate tests there. Don't check for objlist.h, wchar.h,
11484 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11485 misdetection fix. Also add "Checks for types", "Checks for
11486 compiler characteristics" and "Checks for library functions"
11487 sections.
11488 * config.in, configure: Regenerated.
11489
8bb2c122
MK
11490 * configure.in: Create "Checks for programs" section, and move
11491 appropriate tests there.
11492
9a156167
MK
114932003-01-01 Mark Kettenis <kettenis@gnu.org>
11494
11495 * configure.in: Create "Checks for libraries" section, and move
11496 appropriate tests there. Cleanup check for wctype in libw. Use
11497 AC_SEARCH_LIBS to see whether we need libsocket.
11498 * configure: Regenerated.
11499
a80e2bcb 11500For older changes see ChangeLog-2002
c906108c
SS
11501\f
11502Local Variables:
11503mode: change-log
11504left-margin: 8
11505fill-column: 74
11506version-control: never
11507End:
This page took 0.967218 seconds and 4 git commands to generate.