* sol-thread.c: Include "gdb_string.h".
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6f4492c8
MK
12003-09-06 Mark Kettenis <kettenis@gnu.org>
2
3 * sol-thread.c: Include "gdb_string.h".
4
d3420b2f
MK
52003-09-03 Mark Kettenis <m.kettenis@osp.nl>
6
7 * gcore.c: Reorder include files in alphabetical order. Include
8 "gdb_assert.h". Various coding style fixes.
9 (derive_stack_segment, derive_heap_segment): Replace check for
10 non-null BOTTOM and TOP with gdb_assert.
11 (derive_heap_segment): Replace check for successful creation of
12 ZERO with gdb_assert.
13 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
14
5220ea4c
AC
152003-09-04 Andrew Cagney <cagney@redhat.com>
16
17 * thread-db.c (verbose_dlsym): New function.
18 (thread_db_load): Use verbose_dlsym
19 (thread_db_new_objfile): Print that libthread_db was loaded, and
20 that thread debugging was enabled.
21
6e8c2c06
AC
222003-09-04 Andrew Cagney <cagney@redhat.com>
23
24 * configure.tgt: Add "mips64*-*-*" target. Delete
25 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
26 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
27 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
28 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
29 mips*-sony-*, and mips64*-*-elf* targets.
30 * config/mips/embedl.mt: Delete file.
31 * config/mips/embedl64.mt: Delete file.
32 * config/mips/mips.mt: Delete file.
33 * config/mips/mips64.mt: Delete file.
34 * config/mips/tm-embed.h: Delete file.
35 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
36 * config/mips/embed64.mt: Delete out-of-date comment.
37
3a3bc038
AC
382003-09-04 Andrew Cagney <cagney@redhat.com>
39
40 * hppa-tdep.c (hppa_gdbarch_init): Set
41 "have_nonsteppable_watchpoint".
42 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
43 * mips-tdep.c (mips_dump_tdep): Do not print
44 HAVE_NONSTEPPABLE_WATCHPOINT.
45 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
46 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
47 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
48 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
49
a957e642
CV
502003-09-04 Corinna Vinschen <vinschen@redhat.com>
51
52 * breakpoint.c (watchpoint_check): Remove accidentally checked in
53 unused code. Add comment.
54
a6fbcf2f
CV
552003-09-04 Corinna Vinschen <vinschen@redhat.com>
56
57 * breakpoint.c (watchpoint_check): Check for pc being in an
58 epilogue if watchpoint frame couldn't be found.
59
c14a44d5
AC
602003-09-04 Andrew Cagney <cagney@redhat.com>
61
62 * Makefile.in: Re-generate all dependencies.
63
f6c40618
AC
642003-09-03 Andrew Cagney <cagney@redhat.com>
65
66 * arch-utils.h (legacy_print_insn): Delete declaration.
67 * arch-utils.c (legacy_print_insn): Delete function.
68 * disasm.c (deprecated_tm_print_insn_info): Delete.
69 (_initialize_disasm): Delete function, contained code initializing
70 deprecated_tm_print_insn_info.
71 * gdbarch.sh (deprecated_tm_print_insn): Delete.
72 (deprecated_tm_print_insn_info): Delete.
73 (TARGET_PRINT_INSN): Do not provide a default.
74 * gdbarch.h, gdbarch.c: Re-generate.
75
242e8be5
AC
762003-09-03 Andrew Cagney <cagney@redhat.com>
77
78 * disasm.c (fprintf_disasm): New function.
79 (gdb_disassemble_info): Call "init_disassemble_info", instead of
80 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
81 reverts 2003-08-14 change.
82 (_initialize_disasm): Call "init_disassemble_info", instead of
83 INIT_DISASSEMBLE_INFO_NO_ARCH.
84
3ffc3dda
MS
852003-09-03 Michael Snyder <msnyder@redhat.com>
86
87 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
88
52d16ba8
AC
892003-09-03 Andrew Cagney <cagney@redhat.com>
90
91 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
92 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
93 * symfile.c (syms_from_objfile): Update.
94 (reread_symbols): `Update
95 * exec.c (exec_file_attach): Update.
96 (exec_file_attach): Update.
97 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
98 2003-08-29 change.
99 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
100
eb5492fa
DJ
1012003-09-03 Daniel Jacobowitz <drow@mvista.com>
102
103 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
104 trad-frame.h.
105 (arm_get_cache): Delete macro.
106 (struct arm_prologue_cache): Update comments. Make saved_regs into
107 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
108 to prev_sp.
109 (thumb_scan_prologue): Update for cache changes. Don't call
110 DEPRECATED_PC_IN_CALL_DUMMY.
111 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
112 argument and use it in desperation search for our prologue. Do not
113 search past the specified PC.
114 (arm_make_prologue_cache): Simplify.
115
116 (arm_prologue_this_id, arm_prologue_prev_register)
117 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
118 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
119 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
120 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
121 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
122
123 (arm_frame_chain_valid, arm_find_callers_reg)
124 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
125 (arm_pop_frame): Delete obsolete methods.
126 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
127
128 (arm_gdbarch_init): Update for new frame methods. Register prologue
129 and sigtramp unwinders. Set the default frame base method.
130
131 * Makefile.in (arm-tdep.o): Update dependencies.
132 * varobj.c (find_frame_addr_in_frame_chain): Call
133 get_frame_base_address.
134 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
135
24de872b
DJ
1362003-09-03 Daniel Jacobowitz <drow@mvista.com>
137
138 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
139 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
140 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
141 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
142 Take NEXT_FRAME and CACHE arguments. Call
143 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
144 Set unwound_pc in CACHE instead of modifying the frame argument.
145 Don't bother checking the frame type when looking for sigtramp
146 frames.
147 (arm_make_prologue_cache, arm_frame_chain)
148 (arm_init_extra_frame_info): New functions.
149
9b8d791a
DJ
1502003-09-03 Daniel Jacobowitz <drow@mvista.com>
151
152 * arm-tdep.c (arm_get_cache): Define.
153 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
154 unwound_sp, unwound_pc, and saved_regs.
155 (thumb_scan_prologue): Take a cache instead of the frame.
156 (arm_scan_prologue): Likewise.
157 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
158 instead of a temporary frame.
159 (arm_init_extra_frame_info): Allocate and use a cache.
160 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
161
7ee3275f
AC
1622003-09-03 Andrew Cagney <cagney@redhat.com>
163
164 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
165 * config/mips/wince.mt (TM_CLIBS): Ditto.
166 * config/sh/wince.mt (TM_CLIBS): Ditto.
167 * config/pa/hppa64.mt (TM_CLIBS): Delete.
168 * config/sparc/sp64.mt (CC): Delete.
169
57b29be7
AC
1702003-09-03 Andrew Cagney <cagney@redhat.com>
171
172 * defs.h: Do not include "arch-utils.h".
173 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
174 GDB_MULTI_ARCH_PURE.
175 * configure.in (GDB_MULTI_ARCH): Do not define.
176 * configure, config.in: Regenerate.
177 * configure.tgt: Do not set variable "gdb_multi_arch".
178 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
179 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
180 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
181 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
182 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
183 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
184 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
185 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
186 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
187 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
188 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
189 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
190 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
191 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
192 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
193 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
194 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
195 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
196
12e035e2
MC
1972003-08-30 Michael Chastain <mec@shout.net>
198
199 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
200 * config/m68k/nm-hp300hpux.h: Delete.
201 * config/m68k/tm-hp300hpux.h: Delete.
202 * config/m68k/xm-hp300hpux.h: Delete.
203 * config/m68k/xm-hp300bsd.h: Delete.
204 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
205 tm-hp300hpux.h, xm-hp300hpux.h.
206 * somsolib.c: Remove comment about hp300 shared libraries.
207
bda34dc2
MK
2082003-08-31 Mark Kettenis <kettenis@gnu.org>
209
5bca7895
MK
210 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
211 Only define PTRACE_GET_THREAD_AREA is not already defined.
212 Various style fixes in code and comments and some additional
213 spelling fixes in comments. Move after functions dealing with
214 debug registers.
215 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
216 Fix coding-style.
217
bda34dc2
MK
218 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
219 frame_unwind_register_unsigned instead of
220 frame_unwind_unsigned_register.
221
c890192f
MK
2222003-08-30 Mark Kettenis <kettenis@gnu.org>
223
224 * configure.in: Search for gethostbyname in libnsl.
225 * configure: Regenerated.
226
60fac5b8
MK
2272003-08-29 Mark Kettenis <kettenis@gnu.org>
228
e294916c
MK
229 * configure.in: Remove redundant AC_MSG_RESULT in check for
230 uintptr_t in stdint.h.
231 * configure: Regenerated.
232
c40d267a
MK
233 * amd64-nat.h (struct regcache): Add opaque declaration.
234
60fac5b8
MK
235 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
236 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
237 Change "register array" to "register cache" in comments.
238 (x86_64_linux_gregset64_reg_offset): New variable.
239 (GETREGS_SUPPLIES): Remove macro.
240 (supply_gregset): Call amd64_supply_native_gregset instead of
241 x86_64_linux_supply_gregset.
242 (fill_gregset): Rename `regno' to `regnum'. Call
243 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
244 (store_regs): Rename `regno' to `regnum'.
245 (store_fpregs): Rename `regno' to `regnum'.
246 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
247 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
248 Reorganize function a bit.
249 (store_inferior_registers): Rename `regno' to `regnum'. Use
250 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
251 Reorganize function a bit.
252 (_initialize_x86_64_linux_nat): New function.
253 * config/i386/x86-64linux.mh.
254
546143b6
AC
2552003-08-29 Andrew Cagney <cagney@redhat.com>
256
257 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
258 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
259 (target_remove_watchpoint): Delete macro.
260 (target_insert_watchpoint): Delete macro.
261 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
262 (remote_mips_stopped_by_watchpoint): Delete declaration.
263 (remote_mips_remove_watchpoint): Delete declaration.
264 (remote_mips_set_watchpoint): Delete declaration.
265 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
266 * remote-mips.c (_initialize_remote_mips): Set
267 "to_insert_watchpoint", "to_stopped_by_watchpoint",
268 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
269 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
270 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
271 (mips_stopped_by_watchpoint): Rename
272 remote_mips_stopped_by_watchpoint.
273 (mips_can_hardware_watchpoint): Rename
274 remote_mips_can_use_hardware_watchpoint, update function
275 signature.
276
7bace51b
MK
2772003-08-29 Mark Kettenis <kettenis@gnu.org>
278
b0f5c6f2
MK
279 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
280 USER_DS. We haven't given them a register number yet.
281
2a6d284d
MK
282 * amd64-nat.h: New file.
283 * amd64-nat.c: New file.
284 * amd64fbsd-nat.c: Include "amd64-nat.h".
285 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
286 (amd64fbsd32_r_reg_offset): New variable.
287 (supply_gregset): Simply call amd64_supply_native_gregset.
288 (fill_gregset): Rename `regno' to `regnum'. Simply call
289 amd64_collect_native_gregset.
290 (fill_fpregset): Rename `regno' to `regnum'.
291 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
292 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
293 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
294 `fpregset_t'. Call amd64_supply_native_gregset instead of
295 supply_gregset. Call x86_64_supply_fxsave instead of
296 supply_fpregset.
297 (store_inferior_registers): Rename `regno' to `regnum'. Replace
298 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
299 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
300 `fpregset_t'. Call amd64_collect_native_gregset instead of
301 fill_gregset. Call x86_64_collect_fxsave instead of
302 fill_fpregset.
303 (_initialize_am64fbsd_nat): Initialize
304 amd64_native_gregset32_reg_offset and
305 amd64_native_gregset64_reg_offset.
306 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
307
a16d75cc
MK
308 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
309 null pointer. Fix typo in comment.
310
7bace51b
MK
311 * regcache.c (supply_register): Reimplement to call
312 regcache_raw_supply.
313 (regcache_collect): Reimplement by calling regcache_raw_collect.
314
9a661b68
MK
3152003-08-28 Mark Kettenis <kettenis@gnu.org>
316
317 * regcache.c (register_buffer): Consitify first argument.
318 (regcache_raw_supply, regcache_raw_collect): New
319 functions.
320
e94cc8fa
DJ
3212003-08-28 Daniel Jacobowitz <drow@mvista.com>
322
323 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
324 by Nathan J. Williams.
325
c64bd0ce
DJ
3262003-08-28 Daniel Jacobowitz <drow@mvista.com>
327
328 * lin-lwp.c (wait_lwp): New function, copied from
329 stop_wait_callback. Clean up.
330 (stop_wait_callback): Use wait_lwp.
331
e5ab0dce
AC
3322003-08-28 Andrew Cagney <cagney@redhat.com>
333
334 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
335 flavour and disassembler options.
336 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
337 (mips_gdbarch_init): Set "print_insn". Delete initialization of
338 deprecated_tm_print_insn_info.
339
a788de9b
AC
3402003-08-27 Andrew Cagney <cagney@redhat.com>
341
342 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
343 Use target_read_memory.
344 (s390_get_frame_info): Update. Do not reference
345 deprecated_tm_print_insn_info.
346 (s390_check_function_end, s390_is_sigreturn): Ditto.
347
36482093
AC
3482003-08-27 Andrew Cagney <cagney@redhat.com>
349
350 * Makefile.in (cris-tdep.o): Update dependencies.
351 * cris-tdep.c: Include "gdb_assert.h".
352 (cris_gdbarch_init): Set print_insn.
353 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
354 (cris_delayed_get_disassembler): Simplify, directly call the
355 disassembler returned by cris_get_disassembler.
356 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
357 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
358 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
359 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
360 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
361 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
362 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
363 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
364 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
365 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
366 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
367 (gdb_print_insn_sparc): Delete function.
368 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
369 deprecated_tm_print_insn_info.
370 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
371 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
372 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
373 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
374 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
375 * s390-tdep.c (gdb_print_insn_s390): Delete function.
376 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
377 (s390_gdbarch_init): Set print_insn.
378
0285512f
AC
3792003-08-27 Andrew Cagney <cagney@redhat.com>
380
381 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
382 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
383 * infcall.c (call_function_by_hand): Convert the entry point
384 address into a code address.
385
cdcd5552
AC
3862003-08-27 Andrew Cagney <cagney@redhat.com>
387
388 * dsrec.c: Include "gdb_string.h".
389 * Makefile.in (dsrec.o): Update dependencies.
390
e85cddad
MC
3912003-08-27 Michael Chastain <mec@shout.net>
392
393 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
394
8bbfbb23
AC
3952003-08-27 Andrew Cagney <cagney@redhat.com>
396
397 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
398 (alpha_osf1_init_abi): Do not set call_dummy_address.
399
ba058b66
DC
4002003-08-27 David Carlton <carlton@kealia.com>
401
402 From Randolph Chung <tausq@debian.org>:
403 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
404 compiles with -Wformat-nonliteral -Werror.
405
87f84c9d
JB
4062003-08-26 Jim Blandy <jimb@redhat.com>
407
408 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
409 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
410 bfd_lookup_symbol, since we only want symbols in code sections.
411 (look_for_base): Pass zero as the SECT_FLAGS argument to
412 bfd_lookup_symbol, since we're not concerned about which section
413 the symbol is in.
414
102d615a
JJ
4152003-08-26 Jeff Johnston <jjohnstn@redhat.com>
416
417 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
418 we are frameless or the return address register is already known.
419
cc7ad3ea
AC
4202003-08-26 Andrew Cagney <cagney@redhat.com>
421
422 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
423 in size. Add comments.
424
af8b88dd
JJ
4252003-08-26 Jeff Johnston <jjohnstn@redhat.com>
426
427 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
428 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
429
e0a4f5a1
JM
4302003-08-26 Jason Merrill <jason@redhat.com>
431
432 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
433 case out of #ifdef MIPS block.
434
4ae9ee8e
DJ
4352003-08-25 Daniel Jacobowitz <drow@mvista.com>
436
437 PR java/1322
438 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
439 available before calling SECT_OFF_TEXT.
3c164570 440 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 441
004d836a
JJ
4422003-08-25 Jeff Johnston <jjohnstn@redhat.com>
443
444 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
445 bof, and nat0-nat127 as pseudo-registers.
446 (ia64_frame_cache): New struct used to cache frame info.
447 (ia64_register_reggroup_p): New routine used to override default
448 register grouping so registers without names are still saved and
449 restored.
450 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
451 pseudo values.
452 (ia64_pseudo_register_read): New routine to read pseudo-registers.
453 (ia64_pseudo_register_write): New routine to write pseudo-registers.
454 (ia64_alloc_frame_cache): New routine to create a new
455 ia64_frame_cache.
456 (examine_prologue): Change prototype to add next_frame pointer.
457 Assume frameless until otherwise proven. Verify that the cfm for
458 current frame matches the cfm that should occur for the prologues
459 alloc insn and if equal, mark as not frameless. At end of routine,
460 if not frameless, calculate registers for the previous frame and store
461 in the cache, if a cache is provided.
462 (ia64_skip_prologue): Use new prototype when calling examine_prologue
463 and pass 0 for next_frame.
464 (ia64_store_return_value): Change to use convert_typed_floating()
465 instead of calling ia64_convert_to_raw().
466 (ia64_extract_return_value): Change to use convert_typed_floating()
467 instead of calling ia64_convert_to_virtual().
468 (ia64_frame_cache): New routine to support new frame model.
469 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
470 (ia64_frame_sniffer): Ditto.
471 (ia64_sigtramp_frame_init_saved_regs): Ditto.
472 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
473 (ia64_sigtramp_frame_prev_register): Ditto.
474 (ia64_sigtramp_frame_sniffer): Ditto.
475 (ia64_frame_base_address): Ditto.
476 (ia64_extract_struct_value_address): Change to issue error message.
477 (ia64_frame_align): New routine to align sp.
478 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
479 (ia64_push_arguments): Removed. Logic moved to
480 ia64_push_dummy_call().
481 (ia64_push_return_address): Ditto.
482 (ia64_unwind_dummy_id): New function.
483 (ia64_unwind_pc): Ditto.
484 (ia64_convert_register_p): Ditto.
485 (ia64_register_to_value): Ditto.
486 (ia64_value_to_register): Ditto.
487 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
488 (ia64_register_byte, ia64_register_raw_size): Ditto.
489 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
490 (ia64_saved_pc_after_call): Ditto.
491 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
492 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
493 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
494 (ia64_register_convert_to_raw): Ditto.
495 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
496 (ia64_init_extra_frame_info): Ditto.
497 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
498 (ia64_gdbarch_init): Remove registering of deprecated functions that
499 are no longer used. Add registration of new gdbarch functions.
500 Remove registering deprecated_write_sp. Replace
501 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
502 Delete set_gdbarch_deprecated_register_convertible(),
503 set_gdbarch_deprecated_register_convert_to_virtual(), and
504 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
505 set_gdbarch_deprecated_register_size(),
506 set_gdbarch_deprecated_register_bytes(),
507 set_gdbarch_pcregnum(),
508 set_gdbarch_deprecated_register_byte(),
509 set_gdbarch_deprecated_register_raw_size(),
510 set_gdbarch_deprecated_max_register_raw_size(),
511 set_gdbarch_deprecated_register_virtual_size(),
512 and set_gdbarch_deprecated_max_register_virtual_size() calls.
513 Replace set_gdbarch_deprecated_extract_return_value() with
514 set_gdbarch_extract_return_value(). Remove calls to:
515 set_gdbarch_deprecated_saved_pc_after_call();
516 set_gdbarch_deprecated_frame_chain(),
517 set_gdbarch_deprecated_frame_saved_pc(),
518 set_gdbarch_deprecated_frame_init_saved_regs(),
519 set_gdbarch_deprecated_get_saved_register(),
520 set_gdbarch_deprecated_call_dummy_words(),
521 set_gdbarch_deprecated_sizeof_call_dummy_words(),
522 set_gdbarch_deprecated_init_extra_frame_info(),
523 set_gdbarch_deprecated_frame_args_address(),
524 set_gdbarch_deprecated_frame_locals_address(),
525 and set_gdbarch_deprecated_dummy_write_sp().
526 Add set_gdbarch_convert_register_p(),
527 set_gdbarch_register_to_value(),
528 set_gdbarch_value_to_register(),
529 set_gdbarch_push_dummy_call(),
530 set_gdbarch_frame_align(),
531 set_gdbarch_unwind_dummy_id(),
532 set_gdbarch_unwind_pc(),
533 frame_unwind_append_sniffer(),
534 frame_unwind_append_sniffer(),
535 and frame_base_set_default().
536
aede7613
CD
5372003-08-25 Chris Demetriou <cgd@broadcom.com>
538
539 * configure.tgt: Document need for special "mipsisa64" handling.
540 (mipsisa64*-*-linux64): Handle as target linux64.
541 (mipsisa64*-*-*): Handle as target embed64.
542
43c3a82e
MC
5432003-08-18 Michael Chastain <mec@shout.net>
544
545 * PROBLEMS: Document pr gdb/1322, the Java anonymous
546 objfile bug.
547
6564f77d
MK
5482003-08-24 Mark Kettenis <kettenis@gnu.org>
549
2de139ba
MK
550 * i387-tdep.h: Update copyright date.
551 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
552
6564f77d
MK
553 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
554 CFLAGS games to reflect reality.
555
42cf1509
AC
5562003-08-24 Andrew Cagney <cagney@redhat.com>
557
558 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
559 GDB_MULTI_ARCH is always non-zero.
560 * osabi.c (_initialize_gdb_osabi): Ditto.
561 (gdbarch_init_osabi): Ditto.
562 * sparc-tdep.c: Ditto for #if code.
563
0485f6ad
MK
5642003-08-23 Mark Kettenis <kettenis@gnu.org>
565
566 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
567 Update comments.
568 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
569 comments.
570 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
571 x86_64_supply_fxsave.
572 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
573 x86_64_supply_fxsave.
574 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
575 x86_64_supply_fxsave.
576
c7716133
AJ
5772003-08-23 Andreas Jaeger <aj@suse.de>
578
579 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
580 i387_supply_fxsave.
581
ed504bdf
MK
5822003-08-23 Mark Kettenis <kettenis@gnu.org>
583
584 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
585 i387_supply_register.
586 (go32_fetch_registers): Adjust call to i387_supply_fsave.
587 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
588 i387_supply_fsave.
589 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
590 i387_supply_fxsave.
591 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
592 i387_supply_fsave.
593 * i386bsd-nat.c (supply_fpregset): Adjust call to
594 i387_supply_fsave.
595 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
596 call to i387_supply_fxsave. Call i387_supply_fsave instead of
597 supply_fpregset.
598 (store_inferior_registers): Remove extraneous whitespace. Call
599 i387_fill_fsave instead of fill_fpregset.
600 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
601 (supply_fpregset): Likewise.
602 * i386v4-nat.c (supply_fpregset): Adjust call to
603 i387_supply_fsave.
604 * i386-interix-nat.c (supply_fpregset): Adjust call to
605 i387_supply_fsave.
606 * i386-linux-nat.c (supply_fpregset): Adjust call to
607 i387_supply_fsave.
608 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
609 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
610 i387supply_fsave and i387_supply_fxsave.
611 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
612 Incorporate code from `i387_supply_register.
613 (i387_supply_register): Remove.
614 (i387_supply_fxsave): Add `regnum' argument.
615 Update comments.
616 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
617 prototype.
618 (i387_supply_register): remove prototype.
619 Update comments.
620
4be5d520
MC
6212003-08-22 Michael Chastain <mec@shout.net>
622
623 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
624 Add lines for files in gdb/testsuite/gdb.cp/* that are
625 still not 8.3 unique.
626
7ed85d26
DJ
6272003-08-22 Daniel Jacobowitz <drow@mvista.com>
628
629 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
630 TYPE_VPTR_FIELDNO is valid.
631
eb0d3137
MK
6322003-08-19 Mark Kettenis <kettenis@gnu.org>
633
634 * utils.c (set_width_command): Remove prototypes.
635 (set_screen_size): New prototype.
636 (init_page_info): Simplify by fetching the screen size from
637 Readline. Call set_screen_size.
638 (set_screen_size): New function.
639 (set_width): Add missing whitespace in comment.
640 (set_width_command): Call set_screen_size.
641 (set_height_command): New function.
642 (initialize_utils): Fix formatting. Make "set height" command
643 call set_height_command. Remove redundant code that turns off
644 pagination if output isn't a terminal. Remove redundant call to
645 set_width_command.
646
7e6d0ac8
MK
6472003-08-22 Mark Kettenis <kettenis@gnu.org>
648
3567a8ea
MK
649 * sparc64-tdep.h (sparc64_regnum): Fix comment.
650 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
651 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
652 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
653 `case' keyword.
654 (sparc64_register_info): Give the reister with number
655 SPARC64_STATE_REGNUM a name.
656 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
657 %asi and %ccr.
658 (sparc64_push_dummy_call): Take BIAS into account when checking
659 stcak alignment.
660 (sparc_software_single_step): Remove assertions that check whether
661 NPC and NNPC were zero.
662 (sparc_supply_rwindow): Make public. Merge functionality with
663 sparc64_supply_rwindow.
664 (sparc_fill_rwindow): Make public. Merge functionality with
665 sparc64_fill_rwindow.
666 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
667 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
668 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
669 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
670 sparc_supply_rwindow instead of sparc64_supply_rwindow.
671
7e6d0ac8
MK
672 * reggroups.c: Add whitespace after declarations of local
673 variables in functions.
674
72e5f484
MC
6752003-08-21 Michael Chastain <mec@shout.net>
676
677 * gdbtypes.h: Change array bound type from an int to enum.
678
435ac228
AC
6792003-08-21 Andrew Cagney <cagney@redhat.com>
680
681 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
682 * config/sparc/tm-sparc.h: Ditto.
683 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
684 unconditionally.
685 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
686
0d0e1a63
MK
6872003-07-13 Mark Kettenis <kettenis@gnu.org>
688
689 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
690 (register_objfile_data, set_objfile_data, objfile_data): New
691 prototypes.
692 * objfiles.c (objfile_alloc_data, objfile_free_data): New
693 prototypes.
694 (allocate_objfile): Call objfile_alloc_data.
695 (free_objfile): Call objfile_free_data.
696 (struct objfile_data): New.
697 (struct objfile_data_registration): New.
698 (struct objfile_data_registry): New.
699 (objfile_data_registry): New variable.
700 (register_objfile_data): New function.
701 (objfile_alloc_data, objfile_free_data): New functions.
702 (set_objfile_data, objfile_data): New functions.
703 * dwarf2-frame.c (dwarf2_frame_data): New variable.
704 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
705 (_initialize_dwarf2_frame): New function and prototype.
706
d90cf509
AC
7072003-08-21 Andrew Cagney <cagney@redhat.com>
708
709 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
710 a specific architecture.
711 * arch-utils.h (set_architecture_from_arch_mach): Delete
712 declaration.
713 (target_architecture_hook): Delete declaration.
714 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
715 (default_float_format): Assume GDB_MULTI_ARCH.
716 (default_double_format): Assume GDB_MULTI_ARCH.
717 (set_endian_from_file): Delete function.
718 (arch_ok): Delete function.
719 (set_arch): Delete function.
720 (set_architecture_from_arch_mach): Delete function.
721 (set_architecture_from_file): Delete function.
722 (set_architecture): Assume GDB_MULTI_ARCH.
723 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
724
8b39fe56
MK
7252003-08-21 Mark Kettenis <kettenis@gnu.org>
726
727 Rewrite FreeBSD/sparc64 native configuration.
728 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
729 * sparc64fbsd-nat.c: New file.
730 * sparc64fbsd-tdep.c: New file.
731 * sparc64-tdep.c sparc64-tdep.h: New files.
732 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
733 sparc64fbsd-tdep.o): New dependencies.
734 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
735 and sparc64fbsd-tdep.c.
736 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
737 * config/sparc/fbsd.mh: Remove copyright notice.
738 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
739 sparcbsd-nat.o.
740 * config/sparc/fbsd.mt: Remove copyright notice.
741 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
742 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
743 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
744 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
745 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
746 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
747 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
748 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
749 "sparc/tm-sp64.h".
750 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
751 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
752
a7f19c79
MC
7532003-08-21 Michael Chastain <mec@shout.net>
754
755 * symtab.h: Add doco on the space critical structures and
756 some measurements of space usage.
757
da08ea5b
MS
7582003-08-21 Michael Snyder <msnyder@redhat.com>
759
760 * tracepoint.c (trace_dump_command): Trace break address
761 is subject to DECR_PC_AFTER_BREAK.
762 (set_traceframe_context): Make "trace_line" an int.
763 Fixes suggested by Mark Newman <mark.newman@lmco.com>
764
6df2bf50
MS
7652003-08-20 Michael Snyder <msnyder@redhat.com>
766
767 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
768 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
769 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
770 argument passing.
771 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
772 functions, replace sh_push_dummy_call.
773 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
774
0955bbf0
MC
7752003-08-20 Michael Chastain <mec@shout.net>
776
777 * gdbtypes.h (struct main_type): Rearrange to save space.
778
260a4188
MS
7792003-08-20 Michael Snyder <msnyder@redhat.com>
780
781 * trad-frame.c: Comment typo fix.
782
8baa6f92
KB
7832003-08-20 Michael Snyder <msnyder@redhat.com>
784 Kevin Buettner <kevinb@redhat.com>
785
786 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
787 (frv_frame_init_saved_regs): Add declaration.
788 (frame_extra_info): Add new field ``saved_regs''.
789 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
790 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
791 Update frame related code.
792 (frv_extract_struct_value_address): Adjust formatting.
793 * Makefile.in (frv-tdep.o): Update dependencies.
794 * config/frv/tm-frv.h (target_insert_watchpoint)
795 (target_remove_watchpoint, target_insert_hw_breakpoint)
796 (target_remove_hw_breakpoint): Delete these macros.
797 (remote_insert_watchpoint, remote_remove_watchpoint)
798 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
799 these declarations.
800
87193939
MC
8012003-08-20 Michael Chastain <mec@shout.net>
802
803 * defs.h (ENUM_BITFIELD): New macro.
804 * symtab.h (ENUM_BITFIELD): Use it.
805 (BYTE_BITFIELD): Remove old macro, which was already disabled.
806
062103ba
SA
8072003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
808
809 * MAINTAINERS (write after approval): Add myself.
810
8b148df9
AC
8112003-08-18 Andrew Cagney <cagney@redhat.com>
812
813 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
814 * gdbarch.h, gdbarch.c: Re-generate.
815 * infcall.c (call_function_by_hand): Adjust the SP by
816 frame_red_zone_size before allocating any stack space.
817 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
818 * x86-64-tdep.c (x86_64_frame_align): New function.
819 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
820
821 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
822 Remove code adjusting SP so that it skips over the Red Zone.
823
954a4db8
MK
8242003-08-18 Mark Kettenis <kettenis@gnu.org>
825
826 * NEWS (New native configurations): Mention FreeBSD/amd64.
827
1a241548
AC
8282003-08-18 Andrew Cagney <cagney@redhat.com>
829
830 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
831 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
832 "m68k_frame_p".
833 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
834
f82b2acd
MK
8352003-08-18 Mark Kettenis <kettenis@gnu.org>
836
837 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
838
4056d258
ML
8392003-08-18 Michal Ludvig <mludvig@suse.cz>
840
841 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
842 Define.
843 * i386-linux-nat.c: Include "linux-nat.h".
844 (child_post_startup_inferior): New function.
845
99ab4326
MK
8462003-08-18 Mark Kettenis <kettenis@gnu.org>
847
848 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
849 at the start of a frameless function. This probably fixes PR
850 backtrace/1338.
851
c8d5f0d6
MC
8522003-08-17 Michael Chastain <mec@shout.net>
853
854 * symfile.c (find_sym_fns): Remove special case for apollo target.
855
9016a515
DJ
8562003-08-17 Daniel Jacobowitz <drow@mvista.com>
857
858 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
859 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
860 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
861 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
862 (linux_supports_tracevforkdone): New function.
863 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
864 TRACEVFORKDONE.
865 (child_follow_fork): Handle vfork.
866 (linux_handle_extended_wait): Likewise. Also handle exec.
867 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
868 * NEWS: Mention fork tracing.
869
c538c11c
DJ
8702003-08-17 Daniel Jacobowitz <drow@mvista.com>
871
872 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
873
4de4c07c
DJ
8742003-08-17 Daniel Jacobowitz <drow@mvista.com>
875
876 * Makefile.in (i386-linux-nat.o): Update dependencies.
877 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
878 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
879 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
880 * i386-linux-nat.c: Include "linux-nat.h".
881 (child_post_startup_inferior): New function.
882 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
883 * infptrace.c (kill_inferior): Wrap in #ifdef.
884 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
885 attaching to each LWP.
886 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
887 (init_lin_lwp_ops): Fill in some more operations.
888 * linux-nat.h (linux_enable_event_reporting)
889 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
890 prototypes.
891 * linux-nat.c (linux_enable_event_reporting): New function.
892 (child_post_attach, linux_child_post_startup_inferior)
893 (child_post_startup_inferior, child_follow_fork)
894 (linux_handle_extended_wait, kill_inferior): New functions.
895
7996bcec
AC
8962003-08-16 Andrew Cagney <cagney@redhat.com>
897
898 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
899 * gdbarch.h, gdbarch.c: Re-generate.
900
3d48a7a0
MK
9012003-08-16 Mark Kettenis <kettenis@gnu.org>
902
903 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
904
7989c619
AC
9052003-08-16 Andrew Cagney <cagney@redhat.com>
906
907 * NEWS: Mention that "set prompt-escape-char" was deleted.
908 * top.c (get_prompt_1): Delete function.
909 (gdb_prompt_escape):
910 (init_main): Do not clear "gdb_prompt_escape". Delete "set
911 prompt-escape-char" command.
912 (MAX_PROMPT_SIZE): Delete macro.
913 (get_prompt): Simplify, do not call get_prompt_1.
914
07978cd8
AC
9152003-08-16 Andrew Cagney <cagney@redhat.com>
916
917 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
918 -Werror. -Wformat-nonliteral problems.
919
3ff7cf9e
JB
9202003-08-15 J. Brobecker <brobecker@gnat.com>
921
922 Further multiarching work mostly for hppa64-*-hpux11:
923 * hppa-tdep.h: New file.
924 * hppa-tdep.c: #include hppa-tdep.c.
925 (hppa32_num_regs): Renamed from hppa_num_regs.
926 (hppa64_num_regs): New constant.
927 (hppa64_call_dummy_breakpoint_offset): New constant.
928 (hppa32_call_dummy_length): New constant.
929 (hppa64_call_dummy_length): New constant.
930 (hppa32_stack_align): Make name 32bit explicit.
931 (hppa32_register_virtual_type): Likewise.
932 (hppa32_extract_return_value): Likewise.
933 (hppa32_use_struct_convention): Likewise.
934 (hppa32_store_return_value): Likewise.
935 (hppa64_register_virtual_type): New function.
936 (hppa64_extract_return_value): New function.
937 (hppa64_use_struct_convention): New function.
938 (hppa64_store_return_value): New function.
939 (hppa_frame_locals_address): Remove declaration, function does
940 not exist anymore.
941 (hppa_register_byte): Add support for PA64 ABI.
942 (hppa_gdbarch_init): Add support for PA64 ABI.
943 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
944 Make name 32bit explicit.
945 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
946 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
947 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
948 (hppa64_hpux_frame_base_before_sigtramp): New function.
949 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
950 * config/pa/tm-hppa64.h: Remove macros that are no longer
951 necessary now that the gdbarch vector is properly setup.
952 Transform some macros into function calls. Some minor cleanup.
953 * config/pa/tm-hppah.h: Update function calls in macros
954 following the function renaming in hppa-hpux-tdep.c.
955 * Makefile.in (hppa_tdep_h): New variable.
956 (hppa-tdep.o): Add dependency over hppa_tdep_h.
957
5d05ca6d
MS
9582003-08-14 Michael Snyder <msnyder@redhat.com>
959
960 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
961
37ba2569
JB
9622003-08-13 J. Brobecker <brobecker@gnat.com>
963
964 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
965 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
966 routine.
967
aed7f26a
MS
9682003-08-13 Michael Snyder <msnyder@redhat.com>
969
970 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
971 (frv_saved_pc_after_call): Use deprecated ftype.
972 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
973 (frv_remote_translate_xfer_address): Remove.
974 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
975
752d4ac1
JB
9762003-08-13 J. Brobecker <brobecker@gnat.com>
977
978 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
979 initialization after the common gdbarch initialization, not before.
980
1426ac1d
JB
9812003-08-13 J. Brobecker <brobecker@gnat.com>
982
983 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
984 (ADDR_BITS_REMOVE): Remove, redundant.
985
b6fbdd1d
JB
9862003-08-13 J. Brobecker <brobecker@gnat.com>
987
988 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
989 gdbarch method to clear the 2 low bits of text addresses.
990
44160db3
AC
9912003-08-12 Andrew Cagney <cagney@redhat.com>
992
993 * Makefile.in (dsrec.o): Update dependencies.
994 * dsrec.c: Include "gdb_assert.h".
995 (make_srec): Use snprintf instead of sprintf, use a literal format
996 string.
997
bcf7d3ca
AC
9982003-08-12 Andrew Cagney <cagney@redhat.com>
999
1000 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1001 FRAME_OBSTACK_ZALLOC.
1002
49ed40de
KB
10032003-08-12 Kevin Buettner <kevinb@redhat.com>
1004
1005 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1006 SSE registers.
1007
b246147c
MK
10082003-08-10 Mark Kettenis <kettenis@gnu.org>
1009
1010 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1011 amd64fbsd_sc_reg_offset): Add extern declarations.
1012 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1013 declarations.
1014
d95fdc0d
BE
10152003-08-11 Ben Elliston <bje@wasabisystems.com>
1016
1017 * MAINTAINERS (write after approval): Update my mail address.
1018
cf6a0e73
AC
10192003-08-10 Andrew Cagney <cagney@redhat.com>
1020
1021 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1022
f837910f
MK
10232003-08-10 Mark Kettenis <kettenis@gnu.org>
1024
e2dbbd2d
MK
1025 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1026 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1027 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1028 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1029 i386bsd_sc_reg_offset): Add extern declarations.
1030 * i386obsd-nat.c: Include "i386-tdep.h"
1031 (_initialize_i386obsd_nat): Remove extern declarations.
1032 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1033 declarations.
1034 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1035 declarations.
1036
f837910f
MK
1037 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1038 instead of frame_read_register.
1039 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1040 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1041 SP_REGNUM.
1042 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1043 instead of frame_unwind_unsigned_register. Use
1044 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1045 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1046 instead of read_register. Use builtin_type_void_data_ptr instead
1047 of builtin_type_void_func_ptr when extracting the address of the
1048 jmp_buf.
1049 (i386_extract_return_value, i386_store_return_value,
1050 i386_pseudo_register_read, i386_pseudo_register_write): Use
1051 register_size instead REGISTER_RAW_SIZE.
1052
edcf254d
AC
10532003-08-10 Andrew Cagney <cagney@redhat.com>
1054
1055 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1056 sprintf. Make "name" constant.
1057
26604a34
MK
10582003-08-10 Mark Kettenis <kettenis@gnu.org>
1059
192285c6
MK
1060 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1061 instead of frame_read_register.
f837910f
MK
1062 (i387_print_float_info): Use get_frame_register and
1063 get_frame_register_unsigned instead of frame_register_read.
192285c6 1064
f0925262
MK
1065 * i386fbsd-nat.c: Include "i386-tdep.h".
1066 (child_resume): Make `eflags' an ULONGEST. Use
1067 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1068 instead of register_read and register_write.
1069
a144416f
MK
1070 * i386bsd-nat.c (fetch_inferior_registers,
1071 store_inferior_registers): Don't use && at the end of a line.
1072 (_initialize_i386bsd_nat): Fix typo.
1073
fec74868
MK
1074 * frame.c (_initialize_frame): Add missing backslash.
1075
87232496
MK
1076 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1077 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1078 and supply_register instead of manipulating the register buffer
1079 directly.
1080
c9b9de0b
MK
1081 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1082 * config/i386/nm-i386sol2.h
1083 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1084
26604a34
MK
1085 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1086 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1087 instructions that GCC likes to mingle into the prologue. Fixes
1088 gdb/1253 and gdb/1255.
1089
25d29d70
AC
10902003-08-09 Andrew Cagney <cagney@redhat.com>
1091
1092 Fix GDB PR cli/926.
1093 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1094 * command.h (add_setshow_uinteger_cmd): Declare.
1095 * frame.c (set_backtrace_cmd): New function.
1096 (show_backtrace_cmd): New function.
1097 * frame.c (_initialize_frame): Replace "set/show
1098 backtrace-below-main" with "set/show backtrace past-main". Add
1099 command "set/show backtrace limit".
1100 (backtrace_past_main): Rename "backtrace_below_main".
1101 (backtrace_limit): New variable.
1102 (get_prev_frame): Update. Check the backtrace_limit.
1103
9ebf4acf
AC
11042003-08-09 Andrew Cagney <cagney@redhat.com>
1105
1106 * defs.h (xstrprintf): Declare.
1107 * utils.c (xstrprintf): New function.
1108 * breakpoint.c (insert_breakpoints): Replace sprintf and
1109 non-literal format strings, with xstrprintf and cleanups.
1110 (delete_breakpoint,breakpoint_re_set): Ditto.
1111 (commands_command, insert_breakpoints): Ditto.
1112 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1113 (break_at_finish_command_1): Ditto.
1114
3771659b
AC
11152003-08-09 Andrew Cagney <cagney@redhat.com>
1116
1117 * MAINTAINERS (language support): List Adam Fedor as Objective C
1118 maintainer.
1119
b4263afa
JB
11202003-08-08 J. Brobecker <brobecker@gnat.com>
1121
1122 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1123 are now multiarched.
1124
d84defb1
JB
11252003-08-08 J. Brobecker <brobecker@gnat.com>
1126
1127 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1128 longer necessary now that hppa64 is partially multiarch'ed.
1129
f786f615
AC
11302003-08-08 Andrew Cagney <cagney@redhat.com>
1131
1132 * interps.c (interp_set): Check for a NULL "old_interp".
1133
c938e9b0
L
11342003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1135
1136 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1137 (install-only): Support DESTDIR.
1138 (uninstall): Likewise.
1139 (install-gdbtk): Likewise.
1140
9a146a11
EZ
11412003-08-08 Elena Zannoni <ezannoni@redhat.com>
1142
1143 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1144 contains something meaningful at all times.
1145
1146Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 1147
62599e99 1148 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 1149
56296155
BC
1150Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1151
62599e99 1152 * MAINTAINERS (write after approval): Added self.
56296155 1153
9710e734
AC
11542003-08-07 Andrew Cagney <cagney@redhat.com>
1155
1156 * inferior.h (AT_SYMBOL): Define.
1157 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1158 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1159 * mips-tdep.c (mips_call_dummy_address): Delete function.
1160 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1161 set call_dummy_address.
1162
98b3ab73
AC
11632003-08-07 Andrew Cagney <cagney@redhat.com>
1164
1165 * language.c (op_error): Delete function.
1166 (binop_type_check): Delete function.
1167 * language.h (type_op_error, range_op_error): Delete macros.
1168 (op_error): Delete declaration.
1169
2fcf52f0
AC
11702003-08-07 Andrew Cagney <cagney@redhat.com>
1171
1172 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1173
abd4220e 11742003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 1175
abd4220e 1176 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 1177 (x86_64_push_arguments): Skip the red zone.
abd4220e 1178
9dd5f34f
AC
11792003-08-05 Andrew Cagney <cagney@redhat.com>
1180
1181 * reggroups.c (reggroup_next): Check for the final entry.
1182
e5e78edc
AC
11832003-08-04 Andrew Cagney <cagney@redhat.com>
1184
ab4e3d93
AC
1185 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1186 * cli/cli-script.c (define_command): Call query directly, instead
1187 of passing it a buffer.
1188 * ocd.c (ocd_error): Pass error a constant format string.
1189 * remote-mips.c (mips_error): Use fputs_filtered.
1190
1062ca82
AC
1191 * solib-svr4.c (_initialize_svr4_solib): Update
1192 register_gdbarch_data call.
1193 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1194
fcc1c85c
AC
1195 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1196 (register_gdbarch_data): Delete "free" parameter. Update
1197 comments.
1198 * gdbarch.h, gdbarch.c: Re-generate.
1199 * reggroups.c (_initialize_reggroup): Update.
1200 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1201 * frame-base.c (_initialize_frame_base): Update.
1202 * frame-unwind.c (_initialize_frame_unwind): Update.
1203 * user-regs.c (_initialize_user_regs): Update.
1204 * remote.c (_initialize_remote): Update.
1205 * regcache.c (_initialize_regcache): Update.
1206
116f06ea
AC
1207 * regcache.c (xfree_regcache_descr): Delete function.
1208 (_initialize_regcache): Update call to register_gdbarch_data.
1209 (init_regcache_descr, init_legacy_regcache_descr): Use
1210 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1211
e5e78edc
AC
1212 * remote.c (free_remote_state): Delete function.
1213 (_initialize_remote): Update register_gdbarch_data.
1214 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1215 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1216
6c7d17ba
AC
12172003-08-04 Andrew Cagney <cagney@redhat.com>
1218
1219 * reggroups.c (struct reggroup_el): Define.
1220 (struct reggroups): Delete field "nr_group". Replace array
1221 "group" with a "first" to "last" linked list.
1222 (reggroups_init): Update. Allocate using gdbarch's obstack.
1223 (reggroups_free): Delete function.
1224 (add_group): Update. Add "el" parameter.
1225 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1226 (default_groups): Update.
1227 (reggroup_next): Replace reggroups.
1228 (reggroups_dump): Update.
1229 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1230 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1231 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1232
89b7795b
DJ
12332003-08-04 Daniel Jacobowitz <drow@mvista.com>
1234
1235 * Makefile.in (tui-interp.o): Update dependencies.
1236
306d9ac5
DC
12372003-08-04 David Carlton <carlton@kealia.com>
1238
1239 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1240 to internal_error call.
1241 * source.c (forward_search_command): Add "%s" format argument.
1242 (reverse_search_command): Ditto.
1243 * top.c (quit_confirm): Ditto.
1244 * cli/cli-setshow.c (do_setshow_command): Ditto.
1245 * cp-valprint.c (cp_print_class_method): Replace
1246 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1247 (cp_print_class_member): Ditto.
1248 * event-top.c (command_line_handler): Ditto.
1249 * linux-proc.c (linux_info_proc_cmd): Ditto.
1250 * p-typeprint.c (pascal_type_print_base): Ditto.
1251 * p-valprint.c (pascal_object_print_class_method): Ditto.
1252 (pascal_object_print_class_member): Ditto.
1253 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1254 * remote.c (remote_cisco_section_offsets): Ditto.
1255 * top.c (command_line_input): Ditto.
1256 * utils.c (vwarning,error_stream,quit): Ditto.
1257 * valprint.c (print_floating,print_binary_chars)
1258 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1259
57bfe177
AC
12602003-08-04 Andrew Cagney <cagney@redhat.com>
1261
1262 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1263
e546b999
AC
12642003-08-02 Andrew Cagney <cagney@redhat.com>
1265
1266 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1267 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1268 amd64fbsd-nat.c.
1269
91092ee5
AC
12702003-08-02 Andrew Cagney <cagney@redhat.com>
1271
1272 * Makefile.in: Update all dependencies and definitions.
1273
889f28e2
AF
12742003-08-02 Adam Fedor <fedor@gnu.org>
1275
1276 * linespec.c (is_objc_method_format): New function
1277 (decode_line_1, locate_first_half): Use it.
1278 Fixes PR objc/1298
1279
880bc914
AC
12802003-08-01 Andrew Cagney <cagney@redhat.com>
1281
1282 * NEWS: Mention that m32r is multi-arch.
1283 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1284 * configure.tgt: Recognize m32r-*-*.
1285 * config/m32r/tm-m32r.h: Delete file.
1286 * config/m32r/m32r.mt: New file.
1287 * m32r-rom.c (m32r_upload_command): Use hostent only when
1288 gethostname succeeds, in order to avoid a compilation
1289 warning.
1290 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1291 compiler warning.
1292
19f59343
MS
12932003-08-01 Michael Snyder <msnyder@redhat.com>
1294
1295 * sh-tdep.c (sh_frame_align): New gdbarch method.
1296 (sh_gdbarch_init): Set up frame_align method.
1297
4e7d7511
MS
12982003-07-31 Michael Snyder <msnyder@redhat.com>
1299
1300 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1301 which is already covered by the new frames infrastructure.
1302
63022984
AC
13032003-07-31 Andrew Cagney <cagney@redhat.com>
1304
1305 * user-regs.c (struct user_reg): Add "next" link.
1306 (struct user_regs): Replace "user" with "first" and "last" links.
1307 (append_user_reg): Add pre-allocated "reg" parameter.
1308 (builtin_user_regs): Provide initial value for "last".
1309 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1310 (user_regs_init): Allocate memory from the gdbarch obstack.
1311 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1312 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1313 linked list.
1314 (usernum_to_user_reg): New function.
1315 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1316 (value_of_user_reg): Use usernum_to_user_reg.
1317 (user_regs_free): Delete function.
1318 (_initialize_user_regs): Update register_gdbarch_data call.
1319
7cf6e574
DJ
13202003-07-31 Daniel Jacobowitz <drow@mvista.com>
1321
1322 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1323
c48a845b
MS
13242003-07-30 Michael Snyder <msnyder@redhat.com>
1325
4e7d7511 1326 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
1327 * infcall.c (call_function_by_hand): Pass struct_addr to
1328 value_being_returned.
1329 * infcmd.c (print_return_value): Pass zero as struct_addr.
1330 * values.c (value_being_returned): If struct_addr is passed,
1331 use it instead of trying to recover it from the inferior.
1332
f0d8db19
KB
13332003-07-30 Kevin Buettner <kevinb@redhat.com>
1334
1335 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1336 the prologue analyzer won't need to attempt to extract the pc
1337 value from the woefully incomplete dummy frame.
1338 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1339 possible. Disable code which modifies the frame.
1340
e5c113a1
AC
13412003-07-28 Andrew Cagney <cagney@redhat.com>
1342
1343 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1344 to level 2.
1345 (annotate_breakpoints_table, annotate_record): Ditto.
1346 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1347 (annotate_field_name_end, annotate_field_value): Ditto.
1348 (annotate_field_end, annotate_frame_source_begin): Ditto.
1349 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1350 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1351 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1352 (annotate_frame_address_end, annotate_frame_address): Ditto.
1353 (annotate_frame_args, annotate_frame_end): Ditto.
1354 (annotate_frame_where, annotate_arg_begin): Ditto.
1355 (annotate_arg_name_end, annotate_arg_value): Ditto.
1356 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1357 (annotate_function_call, annotate_signal_name): Ditto.
1358 (annotate_signal_string, annotate_signal_name_end): Ditto.
1359 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1360 (annotate_value_begin, annotate_value_history_value): Ditto.
1361 (annotate_value_history_end, annotate_value_end): Ditto.
1362 (annotate_display_begin, annotate_display_number_end): Ditto.
1363 (annotate_display_format, annotate_display_expression): Ditto.
1364 (annotate_display_expression_end, annotate_display_value): Ditto.
1365 (annotate_display_end, annotate_array_section_begin): Ditto.
1366 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1367 (annotate_elt, annotate_array_section_end): Ditto.
1368
bb1db049
AC
13692003-07-28 Andrew Cagney <cagney@redhat.com>
1370
1371 * regcache.c (struct regcache_descr): Update comments on
1372 nr_raw_registers.
1373 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1374 sizeof_raw_register_valid_p.
1375 (init_regcache_descr): Set nr_raw_registers and
1376 sizeof_raw_register_valid_p before calling
1377 init_legacy_regcache_descr.
1378
20e6603c
AC
13792003-07-28 Andrew Cagney <cagney@redhat.com>
1380
1381 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1382 MOD NUM_REGS.
1383
db742940
DJ
13842003-07-28 Daniel Jacobowitz <drow@mvista.com>
1385
1386 * thread.c (info_threads_command): Use get_selected_frame ().
1387 Check that there is at least one non-sentinel frame.
1388
ce7f4371
SC
13892003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1390
1391 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1392 (m68hc11_pop_frame): Remove.
1393 (m68hc11_frame_saved_pc): Remove.
1394 (m68hc11_frame_chain): Remove.
1395 (m68hc11_frame_init_saved_regs): Remove.
1396 (m68hc11_init_extra_frame_info): Remove.
1397 (m68hc11_store_struct_return): Remove.
1398 (m68hc11_saved_pc_after_call): Remove.
1399
1ea653ae
SC
14002003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1401
1402 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1403 frame unwind information.
1404 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1405 and adapted for frame unwinding.
1406 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1407 (m68hc11_unwind_pc): New function.
1408 (m68hc11_frame_unwind_cache): New function to analyze frames.
1409 (m68hc11_frame_this_id): New function to create new frame struct.
1410 (m68hc11_frame_prev_register): New function to unwind a register from
1411 the frame.
1412 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1413 (m68hc11_frame_p): New function for the above.
1414 (m68hc11_frame_base_address): New function to return fp of frame.
1415 (m68hc11_frame_args_address): Update for frame.
1416 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1417 (m68hc11_unwind_sp): New function.
1418 (m68hc11_unwind_dummy_id): New function.
1419 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1420 calls.
1421
c8a7f6ac
SC
14222003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1423
1424 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1425 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1426 when we are beyond the current pc.
1427
3dc990bf
SC
14282003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1429
1430 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1431 from m68hc11_push_arguments.
1432 (m68hc11_push_arguments): Remove.
1433 (m68hc11_push_return_address): Remove.
1434 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1435 handlers; remove deprecated_extra_stack_alignment_needed.
1436
222e5d1d
AC
14372003-07-27 Andrew Cagney <cagney@redhat.com>
1438
1439 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1440 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1441 REAL_PC and not the pointer.
1442 * hppa-hpux-tdep.c: Include frame.h
1443
a7e9a47e
AC
14442003-07-27 Andrew Cagney <cagney@redhat.com>
1445
1446 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1447 GDB_MULTI_ACH_PARTIAL.
1448
7e3dd49e
AC
14492003-07-27 Andrew Cagney <cagney@redhat.com>
1450
1451 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1452 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1453 operator at start and not end of line.
1454 (decode_prologue): Ditto.
1455 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1456 frame_unwind_register_unsigned instead of
1457 frame_unwind_unsigned_register.
1458 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1459 read_register.
1460 (m32r_push_dummy_call): Use register_size instead of
1461 REGISTER_RAW_SIZE.
1462 (m32r_frame_sniffer): Replace m32r_frame_p.
1463 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1464 * m32r-rom.c (report_transfer_performance): Delete extern
1465 declaration.
1466 (m32r_load, m32r_upload_command): Use print_transfer_performance
1467 instead of report_transfer_performance.
1468 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1469 / add_show_from_set.
1470
0880807f
AC
14712003-07-26 Andrew Cagney <cagney@redhat.com>
1472
1473 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1474 store_return_value and extract_struct_value_address.
1475
64ae9269
DJ
14762003-07-26 Daniel Jacobowitz <drow@mvista.com>
1477
1478 PR c++/1267
1479 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1480 NULL, default to the section containing PC.
1481
e286caf2
SC
14822003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1483
1484 * NEWS: Mention "regs" deprecated for m68hc11 too.
1485
1486 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1487 (m68hc11_print_register): New function to print out one register.
1488 (m68hc11_print_registers_info): New function to print registers.
1489 (show_regs): Deprecate and use the above.
1490 (m68hc11_gdbarch_init): Install the print_registers_info.
1491
705b278b
JJ
14922003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1493
1494 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1495 that we have a SIGTRAP before returning non-zero.
1496
63cd4198
EZ
14972003-07-23 Michal Ludvig <mludvig@suse.cz>
1498 Elena Zannoni <ezannoni@redhat.com>
1499
1500 * linespec.c (decode_line_2): Avoid crash if
1501 find_function_start_sal() returns empty record.
1502
6926787d
AS
15032003-07-23 Andreas Schwab <schwab@suse.de>
1504
1505 * ia64-tdep.c (ia64_print_insn): New function.
1506 (ia64_gdbarch_init): Set print_insn to it.
1507 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1508 deprecated_tm_print_insn_info.
1509
708cc1b6
MS
15102003-07-22 Michael Snyder <msnyder@redhat.com>
1511
1512 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1513 handle 8-bit returns (long long).
1514 (h8300h_extract_return_value): Ditto.
1515 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1516
aebd7893
AC
15172003-07-22 Andrew Cagney <cagney@redhat.com>
1518
1519 * gdbarch.c Include "gdb_obstack.h".
1520 (struct gdbarch): Add an "obstack".
1521 (alloc_gdbarch_data): Allocate the gdbarch data using
1522 GDBARCH_OBSTACK_CALLOC.
1523 (free_gdbarch_data): Delete function.
1524 (gdbarch_obstack_zalloc): New function.
1525 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1526 Assert that the architecture is not initialized.
1527 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1528 vector from the obstack.
1529 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1530 architecture obstack.
1531 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1532 (set_gdbarch_data): Assert that the data is not initialized.
1533 (struct gdbarch_data): Delete member "free".
1534 (register_gdbarch_data): Do not initialize "free".
1535 * gdbarch.h, gdbarch.c: Re-generate.
1536
153721e6
AC
15372003-07-22 Andrew Cagney <cagney@redhat.com>
1538
1539 * configure.in (build_warnings): Add -Wformat-nonliteral.
1540 * configure: Re-generate.
1541
c193f044 15422003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
1543
1544 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 1545
c3228f12
EZ
15462003-07-22 Elena Zannoni <ezannoni@redhat.com>
1547
1548 * findvar.c (read_var_value): Remove case for thread local storage
1549 variables. It is now entirely handled by the dwarf2 location
1550 expression code.
1551 * printcmd.c (address_info): Ditto.
1552 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1553 enumeration value.
1554 (struct symbol): Remove objfile field, which was used by
1555 LOC_THREAD_LOCAL_STATIC only.
1556 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1557 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1558 usage of objfile pointer.
1559 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1560 thread local variables.
1561 Add include of objfiles.h.
1562 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1563 storage variables.
1564 * Makefile.in (dwarf2loc.o): Update dependencies.
1565
aef9bcd2
AC
15662003-07-22 Andrew Cagney <cagney@redhat.com>
1567
1568 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1569 get_frame_base.
1570 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1571 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1572 (struct value): Add opaque declaration.
1573 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1574
d95a8903
AC
15752003-07-21 Andrew Cagney <cagney@redhat.com>
1576
1577 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1578 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1579
4db73d49
SC
15802003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1581
1582 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1583 regcache_cooked_read_unsigned instead of read_register.
1584 (m68hc11_saved_pc_after_call): Likewise.
1585 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1586 instead of write_register.
1587 (m68hc11_register_type): New function.
1588 (m68hc11_register_virtual_type): Remove.
1589 (m68hc11_store_return_value): Convert to use the regcache.
1590 (m68hc11_extract_struct_value_address): Likewise.
1591 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1592 m68hc11_register_type; undeprecate store_return_value and
1593 extract_struct_value_address.
1594
ef2b8fcd
SC
15952003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1596
1597 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1598 and translate to use regcache.
1599 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1600
625b0b97
AC
16012003-07-18 Andrew Cagney <cagney@redhat.com>
1602
1603 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1604 * gdbarch.h, gdbarch.c: Re-generate.
1605 * i386-tdep.c (i386_gdbarch_init): Do not set
1606 DWARF2_BUILD_FRAME_INFO.
1607 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1608 unconditionally.
1609 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1610 DWARF2_BUILD_FRAME_INFO.
1611
22b0d388
AC
16122003-07-18 Andrew Cagney <cagney@redhat.com>
1613
1614 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1615 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1616
1ce5d6dd
AC
16172003-07-18 Andrew Cagney <cagney@redhat.com>
1618
1619 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1620 frame_unwind_address_in_block, instead of frame_pc_unwind.
1621 (dwarf2_frame_cache): Ditto.
1622
e6e5e94c
AC
16232003-07-18 Andrew Cagney <cagney@redhat.com>
1624
1625 * user-regs.h (struct gdbarch): Declare opaque.
1626 * ui-out.h (struct ui_file): Declare opaque.
1627 * dwarf2-frame.h (struct frame_info): Declare opaque.
1628
5483d879
KW
16292003-07-18 Kris Warkentin <kewarken@qnx.com>
1630
1631 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1632 #include "...".
1633 (procfs_meminfo): Change strerror to safe_strerror.
1634 (procfs_can_run): Remove K&R badness.
1635
278a7cf7
MS
16362003-07-17 Michael Snyder <msnyder@redhat.com>
1637
1638 * remote-sim.c: Comment typo fix.
1639
606e3b82
AC
16402003-07-17 Andrew Cagney <cagney@redhat.com>
1641
1642 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1643 configure.
1644 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1645 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1646 GDB_MULTI_ARCH_PARTIAL.
1647
c43af07c
EZ
16482003-07-17 Elena Zannoni <ezannoni@redhat.com>
1649
1650 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1651 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1652 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1653
3b85b0f1
TR
16542003-07-16 Theodore A. Roth <troth@openavr.org>
1655
1656 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1657 found.
1658 (avr_frame_unwind_cache): Don't unwind FP for main.
1659 Update a comment.
1660 Save the computed prev_sp.
1661 (avr_saved_regs_unwinder): Remove function.
1662 (avr_frame_prev_register): Use PC unwind logic from
1663 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1664
336d1bba
AC
16652003-07-16 Andrew Cagney <cagney@redhat.com>
1666
1667 * frame-base.h (frame_base_p_ftype): Delete definition.
1668 (frame_base_append_predicate): Delete declaration.
1669 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1670 (frame_unwind_append_predicate): Delete declaration.
1671 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1672 (append_predicate): Delete parameter "p".
1673 (frame_unwind_append_predicate): Delete function.
1674 (frame_unwind_append_sniffer): Update call to append_predicate.
1675 (frame_unwind_free): Delete function.
1676 (_initialize_frame_unwind): Pass NULL as "free" to
1677 register_gdbarch_data.
1678 (frame_unwind_init): Append the dummy_frame_sniffer.
1679 (frame_unwind_find_by_frame): Simplify.
1680 * frame-base.c (struct frame_base_table): Delete field "p".
1681 (append_predicate): Delete parameter "p".
1682 (frame_base_append_predicate): Delete function.
1683 (frame_base_append_sniffer): Update call to append_predicate.
1684 (frame_base_free): Delete function.
1685 (frame_base_find_by_frame): Simplify.
1686 (_initialize_frame_base): Pass NULL as "free" to
1687 register_gdbarch_data.
1688 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1689 (x86_64_sigtramp_frame_sniffer): Replace
1690 "x86_64_sigtramp_frame_p".
1691 (x86_64_init_abi): Set the frame unwind sniffers.
1692 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1693 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1694 (m68k_gdbarch_init): Set the frame unwind sniffers.
1695 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1696 "i386_sigtramp_frame_p".
1697 (i386_frame_sniffer): Replace "i386_frame_p".
1698 (i386_gdbarch_init): Set the frame unwind sniffers.
1699 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1700 (avr_gdbarch_init): Set the frame unwind sniffers.
1701 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1702 "alpha_sigtramp_frame_p"
1703 (alpha_heuristic_frame_sniffer): Replace
1704 "alpha_heuristic_frame_p".
1705 (alpha_gdbarch_init): Set the frame unwind sniffers.
1706 (alpha_dwarf2_init_abi): Ditto.
1707 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1708 "alpha_debug_frame_p".
1709 (alpha_mdebug_frame_base_sniffer): Replace
1710 "alpha_mdebug_frame_base_p".
1711 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1712 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1713 (d10v_gdbarch_init): Set the frame unwind sniffer.
1714 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1715 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1716 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1717 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1718 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1719 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1720
48db5a3c
CV
17212003-07-16 Michael Snyder <msnyder@redhat.com>
1722
1723 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1724 should go thru sh_dsp_register_sim_regno, else the dsp regs
1725 will not get the right values.
1726
17272003-07-16 Corinna Vinschen <vinschen@redhat.com>
1728
1729 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1730 deprecated_store_floating by call to store_typed_floating.
1731 (sh_sh4_register_convert_to_raw): Substitute call to
1732 deprecated_extract_floating by call to extract_typed_floating.
1733
17342003-07-16 Corinna Vinschen <vinschen@redhat.com>
1735
1736 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1737
17382003-07-16 Corinna Vinschen <vinschen@redhat.com>
1739
1740 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1741 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1742 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1743 as possible.
1744 (do_pseudo_register): Remove.
1745 (sh_push_dummy_code): New function.
1746 (sh64_store_struct_return): Rename from sh_store_struct_return.
1747 Only called for sh64 now.
1748 (sh_extract_struct_value_address): Regcache'ify.
1749 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1750 and accomodate new tasks.
1751 (sh64_push_return_address): Rename from sh_push_return_address.
1752 Only called for sh64 now.
1753 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1754 Regcache'ify.
1755 (sh3e_sh4_extract_return_value): Regcache'ify.
1756 (sh_default_store_return_value): Ditto.
1757 (sh3e_sh4_store_return_value): Ditto.
1758 (sh_default_register_byte): Remove.
1759 (sh_sh4_register_byte): Remove.
1760 (sh_default_register_raw_size): Remove.
1761 (sh_sh4_register_raw_size): Remove.
1762 (sh_register_virtual_size): Remove.
1763 (sh_sh3e_register_virtual_type): Remove.
1764 (sh_sh3e_register_type): New function.
1765 (sh_sh4_register_virtual_type): Remove.
1766 (sh_sh4_register_type): New function.
1767 (sh_default_register_virtual_type): Remove.
1768 (sh_default_register_type): New function.
1769 (do_fv_register_info): Add parameters to accomodate call from
1770 sh_print_registers_info.
1771 (do_dr_register_info): Ditto.
1772 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1773 Add parameters to accomodate call from sh_print_registers_info.
1774 (sh_do_fp_register): Ditto.
1775 (sh64_do_pseudo_register): Call do_dr_register_info,
1776 do_fv_register_info and sh_do_fp_register with default parameters.
1777 (sh_do_register): Add parameters to accomodate call from
1778 sh_print_registers_info.
1779 (sh_print_register): Ditto.
1780 (sh_print_registers_info): Rename from sh_do_registers_info.
1781 Add parameters to be used as gdbarch_print_registers_info
1782 implementation. Accomodate removed do_pseudo_register function
1783 pointer.
1784 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1785 function pointer. Call sh_print_register with default parameters.
1786 (sh64_do_registers_info): Call sh_print_registers_info instead of
1787 sh_do_registers_info.
1788 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1789 detection of deprecated vs. non-deprecated functionality.
1790 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1791 function pointer assignments by direct function calls.
1792
e8a89fe2
AC
17932003-07-15 Andrew Cagney <cagney@redhat.com>
1794
1795 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1796 (frame_register_unwind, create_new_frame): Ditto.
1797 (legacy_get_prev_frame, get_frame_type): Ditto.
1798 (get_frame_base_address): Use frame_base_find_by_frame.
1799 (get_frame_locals_address): Use frame_base_find_by_frame.
1800 (get_frame_args_address): Use frame_base_find_by_frame.
1801 * frame-base.h (frame_base_sniffer_ftype): Declare.
1802 (frame_base_append_sniffer): Declare.
1803 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1804 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1805 (frame_base_append_sniffer): New function.
1806 (frame_base_append_predicate): Add a NULL sniffer.
1807 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1808 (struct frame_base_table): Add "sniffer".
1809 (frame_base_free): Free the "sniffer" table.
1810 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1811 (frame_unwind_append_sniffer): Declare.
1812 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1813 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1814 (struct frame_unwind_table): Add "sniffer", delete "middle".
1815 (append_predicate): Add "sniffer" parameter, append the sniffer.
1816 (frame_unwind_init): Update append_predicate call.
1817 (frame_unwind_append_sniffer): New function.
1818 (frame_unwind_append_predicate): Update append_predicate call.
1819 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1820
0714963c
AC
18212003-07-15 Andrew Cagney <cagney@redhat.com>
1822
1823 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1824 before code inhibiting repeated unwind attempts. Add to
1825 commentary on that test's problems.
1826 * blockframe.c (inside_main_func): Look for "main" in the minimal
1827 symbol table.
1828 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1829 identical.
1830
d9170e22
AC
18312003-07-15 Andrew Cagney <cagney@redhat.com>
1832
1833 * complaints.c (struct explanation): Define.
1834 (struct complaints): Change type of "explanation" to "struct
1835 explanation".
1836 (symfile_explanations): Convert to a "struct explanation" table.
1837 (vcomplaint): Update.
1838
eba29c8c
ML
18392003-07-15 Michal Ludvig <mludvig@suse.cz>
1840
1841 * x86-64-linux-nat.c (regmap): Removed.
1842 (supply_gregset, fill_gregset): Call
1843 x86_64_linux_(fill,supply)_gregset functions.
1844 * x86-64-linux-tdep.c (USER_*): New defines.
1845 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1846 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1847 New functions.
1848 (fetch_core_registers): Ditto.
1849 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1850 * x86-64-linux-tdep.h: New file.
1851 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1852 and core-regset.o.
1853 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1854
68cc0bfb
MK
18552003-07-13 Mark Kettenis <kettenis@gnu.org>
1856
88a115f7
MK
1857 * x86-64-tdep.c (x86_64_store_return_value): Use
1858 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 1859
68cc0bfb
MK
1860 * configure.host: Add x86_64-*-freebsd*.
1861 * configure.tgt: Add x86_64-*-freebsd*.
1862 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1863 * amd64fbsd-nat.c: New file.
1864 * amd64fbsd-tdep.c: New file.
1865 * config/i386/nm-fbsd64.h: New file.
1866 * config/i386/fbsd64.mh: New file.
1867 * config/i386/fbsd64.mt: New file.
1868
138e7be5
MK
18692003-07-11 Mark Kettenis <kettenis@gnu.org>
1870
1871 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1872 `sc_regs_offset' and `sc_fpregs_offset'.
1873 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1874 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1875 (alpha_sigtramp_register_address): Rewrite to use new members of
1876 `struct gdbarch_tdep'.
1877 (alpha_gdbarch_init): Initialize new members of struct
1878 gdbarch_tdep'.
1879 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1880 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1881 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1882 (alphafbsd_pc_in_sigtramp): Implement.
1883 (alphafbsd_sigtramp_offset): New function.
1884 (alphafbsd_sigcontext_addr): New function.
1885 (alphafbsd_init_abi): Initialize signal trampoline related members
1886 of `struct gdbarch_tdep'.
1887 (_initialize_alphafbsd_tdep): Add prototype.
1888
95303a68
TR
18892003-07-11 Theodore A. Roth <troth@openavr.org>
1890
ba292e4c
TR
1891 * Makefile.in (install-only): Quote sed expression when generating
1892 transformed_name.
95303a68 1893
6896c0c7
RH
18942003-07-11 Richard Henderson <rth@redhat.com>
1895
1896 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1897 * dwarf2-frame.c: Include complaints.h.
1898 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1899 variable initialization; return NULL on error.
1900 (decode_frame_entry): New.
1901
8edd5d01
AC
19022003-07-11 Andrew Cagney <cagney@redhat.com>
1903
c4a09524
AC
1904 * frame.h (frame_address_in_block): Delete declaration.
1905 * blockframe.c (frame_address_in_block): Delete function.
1906 (get_frame_block): Use get_frame_address_in_block.
1907 (block_innermost_frame): Ditto.
1908 * stack.c (print_frame, backtrace_command_1): Ditto.
1909
8edd5d01
AC
1910 * frame.h (get_frame_address_in_block): Declare.
1911 (frame_unwind_address_in_block): Declare.
1912 * frame.c (frame_unwind_address_in_block): New function.
1913 (get_frame_address_in_block): New function.
1914
f7968451
AC
19152003-07-10 Andrew Cagney <cagney@redhat.com>
1916
1917 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1918 pre-default. Note: re-generate has no effect.
1919
ae99b398
AC
19202003-07-10 Andrew Cagney <cagney@redhat.com>
1921
1922 * gdbarch.sh: When a variable, but not a function, compare against
1923 0. Fix problem in previous patch.
1924 * gdbarch.c: Re-generate.
1925
956ac328
AC
19262003-07-10 Andrew Cagney <cagney@redhat.com>
1927
1928 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1929 functions against NULL, not 0.
1930 * gdbarch.c: Re-generate.
1931
287c3240
FF
19322003-07-10 Fred Fish <fnf@ninemoons.com>
1933
1934 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1935 null string instead of a null pointer.
1936 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1937
32f63c4b
MS
19382003-07-09 Michael Snyder <msnyder@redhat.com>
1939
1940 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1941
402ecd56
MK
19422003-07-09 Mark Kettenis <kettenis@gnu.org>
1943
1944 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1945 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1946 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1947 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1948 * x86-64-tdep.c: ... from here.
1949
c481dac7
AS
19502003-07-09 Andreas Schwab <schwab@suse.de>
1951
1952 * m68k-tdep.h (enum struct_return): Define.
1953 (struct gdbarch_tdep): Add struct_return.
1954 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1955 bytes are padded to the right, not to the left. Pass struct value
1956 address in register %a1, not on stack.
1957 (m68k_use_struct_convention): New function.
1958 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1959 struct_return in tdep to pcc_struct_return.
1960 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1961 reg_struct_return.
1962
64176fa3
JB
19632003-07-09 Joel Brobecker <brobecker@gnat.com>
1964
1965 * somread.c (som_symfile_offsets): Fix compilation error.
1966
96a4ee76
AC
19672003-07-09 Andrew Cagney <cagney@redhat.com>
1968
1969 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1970 Add comments about the checks.
1971
1517c6d1
AC
19722003-07-08 Andrew Cagney <cagney@redhat.com>
1973
1974 * Makefile.in: Make dependency section headers consistent.
1975 (config_h): Move to $BUILD headers section.
1976 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1977 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1978 (ada-exp.tab.c): Move to YACC/LEX section.
1979 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1980 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1981
dc5dd1eb
KW
19822003-07-08 Kris Warkentin <kewarken@qnx.com>
1983
1984 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
1985 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1986 of strerror with safe_strerror, use ISO C function definitions,
1987 and replace instances of sprintf with snprintf.
dc5dd1eb 1988
612dde91
AC
19892003-07-07 Andrew Cagney <cagney@redhat.com>
1990
1991 * frame.c (get_prev_frame): Enable check for identical frames.
1992 Update comments. Update error messages.
1993
492c11d3
JB
19942003-07-07 Joel Brobecker <brobecker@gnat.com>
1995
1996 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1997
376a5a49
JB
19982003-07-07 Joel Brobecker <brobecker@gnat.com>
1999
2000 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2001 sort_symtab_syms, no longer necessary.
2002
22b4a9ad
JB
20032003-07-07 Joel Brobecker <brobecker@gnat.com>
2004
2005 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2006
5bbcb741
JB
20072003-07-07 Joel Brobecker <brobecker@gnat.com>
2008
2009 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2010 (mips_register_byte): Likewise.
2011
c139e7d9
DJ
20122003-07-07 Daniel Jacobowitz <drow@mvista.com>
2013
2014 * Makefile.in (sparc_tdep_h): New.
2015 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2016 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2017 * sparc-linux-nat.c: Include "sparc-tdep.h".
2018 * sparc-nat.c: Likewise.
2019 * sparc-tdep.c: Likewise.
2020 * sparc64nbsd-nat.c: Likewise.
2021 * sparcnbsd-nat.c: Likewise.
2022 * sparcnbsd-tdep.c: Likewise.
2023 * sparc-tdep.h: New file.
2024 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2025 and sparc_npc_regnum.
2026
fd8f87c5
DJ
20272003-07-07 Daniel Jacobowitz <drow@mvista.com>
2028
2029 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2030 (mips_linux_cannot_store_register): List supported instead of
2031 unsupported registers.
2032
13adf674
DJ
20332003-07-07 Daniel Jacobowitz <drow@mvista.com>
2034
2035 * disasm.c (dump_insns): Separate instructions from addresses.
2036
8de307e0
AS
20372003-07-07 Andreas Schwab <schwab@suse.de>
2038
2039 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2040 dependencies.
2041 * m68k-tdep.c (NUM_FREGS): Delete.
2042 (SIG_PC_FP_OFFSET): Delete.
2043 (TARGET_M68K): Delete.
2044 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2045 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2046 P_MOVEL_SP, P_MOVEML_SP): Define.
2047 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2048 P_TRAP): Delete.
2049 (m68k_register_raw_size): Delete.
2050 (m68k_register_virtual_size): Delete.
2051 (m68k_register_type): Renamed from m68k_register_virtual_type and
2052 add gdbarch argument.
2053 (m68k_store_struct_return): Delete.
2054 (m68k_deprecated_extract_return_value): Delete.
2055 (m68k_deprecated_extract_struct_value_address): Delete.
2056 (m68k_frame_chain): Delete.
2057 (m68k_frame_saved_pc): Delete.
2058 (m68k_fix_call_dummy): Delete.
2059 (m68k_push_dummy_frame): Delete.
2060 (m68k_pop_frame): Delete.
2061 (m68k_extract_return_value): New function.
2062 (m68k_store_return_value): Rewrite using regcache.
2063 (m68k_extract_struct_value_address): Rewrite using regcache.
2064 (m68k_push_dummy_call): New function.
2065 (struct m68k_frame_cache): Define.
2066 (m68k_alloc_frame_cache): New function.
2067 (m68k_analyze_frame_setup): New function.
2068 (m68k_analyze_register_saves): New function.
2069 (m68k_analyze_prologue): New function.
2070 (m68k_skip_prologue): Rewrite using above functions.
2071 (m68k_unwind_pc): New function.
2072 (m68k_frame_cache): New function.
2073 (m68k_frame_this_id): New function.
2074 (m68k_frame_prev_register): New function.
2075 (m68k_frame_unwind): New variable.
2076 (m68k_frame_p): New function.
2077 (m68k_sigtramp_frame_cache): New function.
2078 (m68k_sigtramp_frame_this_id): New function.
2079 (m68k_sigtramp_frame_prev_register): New function.
2080 (m68k_sigtramp_frame_unwind): New variable.
2081 (m68k_sigtramp_frame_p): New function.
2082 (m68k_frame_base_address): New function.
2083 (m68k_frame_base): New function.
2084 (m68k_unwind_dummy_id): New function.
2085 (fill_gregset): Use regcache_collect.
2086 (fill_fpregset): Likewise.
2087 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2088 defined.
2089 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2090 deprecated_init_frame_pc, deprecated_store_struct_return,
2091 deprecated_extract_return_value, deprecated_store_return_value,
2092 deprecated_frame_chain, deprecated_frame_saved_pc,
2093 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2094 deprecated_register_virtual_size,
2095 deprecated_max_register_raw_size,
2096 deprecated_max_register_virtual_size,
2097 deprecated_register_virtual_type, deprecated_register_size,
2098 deprecated_register_byte, deprecated_register_bytes,
2099 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2100 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2101 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2102 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2103 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2104 deprecated_push_dummy_frame, deprecated_pop_frame,
2105 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2106 only if SYSCALL_TRAP is defined. Set extract_return_value,
2107 store_return_value, extract_struct_value_address, register_type,
2108 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2109 predicates.
2110 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2111 M68K_MAX_REGISTER_SIZE): Define.
2112 (struct m68k_sigtramp_info): Define.
2113 (struct gdbarch_tdep): Add get_sigtramp_info.
2114 * m68klinux-nat.c (fetch_register): Use register_size instead of
2115 REGISTER_RAW_SIZE. Don't put assignment in if.
2116 (store_register): Likewise.
2117 (fetch_inferior_registers): Likewise.
2118 (store_inferior_registers): Likewise.
2119 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2120 (m68k_linux_frame_saved_pc): Delete.
2121 (m68k_linux_sigcontext_reg_offset,
2122 m68k_linux_ucontext_reg_offset): Define.
2123 (m68k_linux_get_sigtramp_info): New function.
2124 (m68k_linux_extract_return_value): Rewrite using regcache.
2125 (m68k_linux_store_return_value): Likewise.
2126 (m68k_linux_extract_struct_value_address): Likewise.
2127 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2128 Don't set deprecated_frame_saved_pc,
2129 deprecated_extract_return_value, deprecated_store_return_value,
2130 deprecated_extract_struct_value_address. Set
2131 extract_return_value, store_return_value,
2132 extract_struct_value_address.
2133
eb8bc282
AC
21342003-07-07 Andrew Cagney <cagney@redhat.com>
2135
2136 * expprint.c: Include "user-regs.h" instead of "frame.h".
2137 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2138 frame_map_regnum_to_name.
2139 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2140 (frame_map_name_to_regnum): Simplify, call
2141 user_reg_map_name_to_regnum.
2142 (frame_map_regnum_to_name): Simplify, call
2143 user_reg_map_regnum_to_name.
2144 (frame_register_unwind): Update.
2145 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2146 (_initialize_frame_reg): Call user_reg_add_builtin.
2147 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2148 (value_of_register): Use value_of_user_reg.
2149 * eval.c (evaluate_subexp_standard): Update.
2150 * parse.c (write_dollar_variable): Update.
2151 * d10v-tdep.c (d10v_print_registers_info): Update.
2152 * infcmd.c (registers_info): Update.
2153 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2154 (builtin_regs_h): Delete macro.
2155 (user_regs_h): Define.
2156 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2157 (builtin-regs.o): Delete target.
2158 (user-regs.o): Specify dependencies.
2159 (expprint.o): Update dependencies.
2160 (findvar.o): Update dependencies.
2161 (frame.o): Update dependencies.
2162 (std-regs.o): Update dependencies.
2163
9f476a01
CF
21642003-07-06 Christopher Faylor <cgf@redhat.com>
2165
2166 * win32-nat.c (solib_symbols_add): Use one variable for all section
2167 address stuff. Pass variable rather than address of variable to
2168 safe_symbol_file_add.
2169
a731b831
AS
21702003-07-06 Andreas Schwab <schwab@suse.de>
2171
2172 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2173
9f83329d
JB
21742003-07-04 Joel Brobecker <brobecker@gnat.com>
2175
2176 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2177
27e28cc5
KW
21782003-07-04 Kris Warkentin <kewarken@qnx.com>
2179
2180 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2181
21822003-07-04 Kris Warkentin <kewarken@qnx.com>
2183
2184 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2185 * config/i386/nto.mh: New file.
2186 * config/i386/nm-nto.h: New file.
2187 * configure.host: Add i[3456]86-*-nto*.
2188
100f2e98
JB
21892003-07-03 Joel Brobecker <brobecker@gnat.com>
2190
2191 * remote-vx.c (vx_add_symbols): Fix compilation error.
2192
e23457df
AC
21932003-07-03 Andrew Cagney <cagney@redhat.com>
2194
2195 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2196 * gdbarch.h, gdbarch.c: Re-generate.
2197 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2198 (legacy_register_name): Declare.
2199 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2200 (REGISTER_NAME): Define.
2201 * sparc-tdep.c (legacy_register_name): New function.
2202 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2203 (REGISTER_NAME): Define.
2204 (hppa64_register_name): Declare.
2205 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2206 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2207 (hppa64_register_name): New function.
2208 (hppa_register_name): New function.
2209 * arch-utils.c (legacy_register_name): Delete.
2210 * arch-utils.h (legacy_register_name): Delete.
2211
38caaeec
DJ
22122003-07-03 Daniel Jacobowitz <drow@mvista.com>
2213
2214 * cli/cli-interp.c (cli_interpreter_resume): Update the
2215 cli_uiout's stream to gdb_stdout.
2216
dadd712e
AC
22172003-07-03 Andrew Cagney <cagney@redhat.com>
2218
2219 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2220 predicate.
2221 * gdbarch.h, gdbarch.c: Re-generate.
2222 * regcache.c (init_regcache_descr): Use legacy code when either
2223 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2224
c7f1390e
DJ
22252003-07-02 Daniel Jacobowitz <drow@mvista.com>
2226
2227 * NEWS: Move "set logging" entry into GDB 6.0 section.
2228
4bc8c588
JB
22292003-07-02 Jim Blandy <jimb@redhat.com>
2230
a9dd42f1
JB
2231 * s390-tdep.c (struct frame_extra_info): new member:
2232 'stack_bought_valid'.
2233 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2234 initialize fextra_info->stack_bought.
2235 (s390_frameless_function_invocation): Don't trust the value of
2236 fextra_info_ptr->stack_bought unless
2237 fextra_info->stack_bought_valid is set.
2238
4bc8c588
JB
2239 New S390 prologue analyzer.
2240 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2241 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2242 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2243 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2244 compute_x_addr, s390_on_stack, s390_store,
2245 s390_get_signal_frame_info): New functions.
2246 (S390_NUM_SPILL_SLOTS): New macro.
2247 (s390_get_frame_info): Rewritten.
2248 (is_arg_reg): Deleted.
2249
2250 Break out the decoding of S/390 instructions into separate
2251 functions, to make it more legible, and easier to check
2252 against the spec.
2253 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2254 is_rx, is_rxe): New functions.
2255 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2256 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2257 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2258 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2259 enums for opcode values. (Is this an improvement?)
2260
fd13a04a
AC
22612003-07-02 Andrew Cagney <cagney@redhat.com>
2262
2263 * i386-tdep.c: Revert change committed as part of trad-frame code
2264 below.
2265
3f8091c1
DJ
22662003-07-02 Daniel Jacobowitz <drow@mvista.com>
2267
2268 * breakpoint.c (insert_catchpoint): Make static.
2269
8dd5115e
AS
22702003-07-02 Andreas Schwab <schwab@suse.de>
2271
2272 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2273 former ia64_push_arguments and ia64_push_return_address, and use
2274 regcache functions instead of read/write_register.
2275 (ia64_gdbarch_init): Set push_dummy_call instead of
2276 deprecated_push_arguments and deprecated_push_return_address.
2277
a2229c23
AJ
22782003-07-01 Andreas Jaeger <aj@suse.de>
2279
2280 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2281 before the call.
2282 Set %rax only to number of SSE registers used.
2283
3b3850e8
AC
22842003-07-01 Andrew Cagney <cagney@redhat.com>
2285
2286 * trad-frame.h: Update comments, a -1 .addr is reserved.
2287 (trad_frame_value_p, trad_frame_addr_p): Declare.
2288 (trad_frame_reg_p): Declare.
2289 (trad_frame_set_value): Rename trad_frame_register_value.
2290 (trad_frame_set_unknown): Declare.
2291 * trad-frame.c (trad_frame_realreg_p): New function.
2292 (trad_frame_addr_p, trad_frame_value_p): New function.
2293 (trad_frame_set_unknown): New function.
2294 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2295 (trad_frame_prev_register): Use trad_frame_realreg_p,
2296 trad_frame_addr_p and trad_frame_value_p.
2297 (trad_frame_set_value): Rename trad_frame_register_value.
2298 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2299 and trad_frame_set_value.
a2229c23 2300
4d819d0e
JB
23012003-06-30 Jim Blandy <jimb@redhat.com>
2302
2303 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2304 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2305 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2306 for 16 registers, and then 32 more bytes.
2307 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2308 New macros.
2309 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2310 Move up in the file, since it's now used by is_simple_arg.
2311 (is_simple_arg): Don't assume registers are four bytes long.
2312 Exclude all double arguments. Extended floats are not simple
2313 args.
2314 (is_power_of_two): New function.
2315 (pass_by_copy_ref): Call is_power_of_two, and check that the
2316 length fits in a register, rather than listing all the acceptable
2317 sizes. Extended floats are not passed by reference.
2318 (s390_push_arguments): Don't assume registers are four bytes long.
2319 Reserve an argument register to point to the buffer for structures
2320 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2321 S390_STACK_FRAME_OVERHEAD.
2322
1ad828f1
AS
23232003-06-30 Andreas Schwab <schwab@suse.de>
2324
2325 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2326 format error message.
2327
39b00981
JB
23282003-06-30 Joel Brobecker <brobecker@gnat.com>
2329
2330 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2331
b2a7f303
DC
23322003-06-30 David Carlton <carlton@kealia.com>
2333
2334 Band-aid for PR c++/1245.
2335 * Makefile.in (cp-support.o): Depend on complaints_h.
2336 * cp-support.c: Include complaints.h. Add declaration for
2337 find_last_component.
2338 (cp_find_first_component): Separate code into
2339 cp_find_first_component_aux.
2340 (cp_find_first_component_aux): Call demangled_name_complaint.
2341 (demangled_name_complaint): New.
2342
a257b5bb
AC
23432003-06-30 Andrew Cagney <cagney@redhat.com>
2344
2345 * remote.c (remote_write_bytes): Explicitly compute and then use
2346 the payload size. Update comments to reflect. Fixes problem of
2347 GDB not sending small packets as found by Fred Fish.
2348
0a2cfde4
AC
23492003-06-30 Andrew Cagney <cagney@redhat.com>
2350
2351 * remote.c (remote_async_wait): Fix -Wformat problem.
2352
3fcb8548
AC
23532003-06-29 Andrew Cagney <cagney@redhat.com>
2354
2355 * remote.c (remote_wait): Call error, and not warning, when the
2356 packet is corrupt.
2357 (remote_async_wait): Ditto.
2358
9f9970a3
DJ
23592003-06-29 Daniel Jacobowitz <drow@mvista.com>
2360
2361 * sparc-tdep.c (sparc_y_regnum): Make external again.
2362
83a8ccca
DJ
23632003-06-29 Daniel Jacobowitz <drow@mvista.com>
2364
2365 * cli/cli-logging.c (pop_output_files): Add void to function
2366 definition.
2367
d2cf594a
AC
23682003-06-29 Andrew Cagney <cagney@redhat.com>
2369
2370 * frame.c (frame_register_unwind): Use unsigned char when dumping
2371 the buffer contents.
2372
0fac0b41
DJ
23732003-06-28 Daniel Jacobowitz <drow@mvista.com>
2374
2375 * cli/cli-logging.c: New file.
2376 * cli-out.c (struct ui_out_data): Add original_stream.
2377 (cli_redirect): New function.
2378 (cli_ui_out_impl): Add cli_redirect.
2379 (cli_out_new): Initialize original_stream.
2380 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2381 (uo_redirect, ui_out_redirect): New.
2382 * ui-out.h (struct ui_out_impl): Add redirect member.
2383 (redirect_ftype): New.
2384 (ui_out_redirect): Add prototype.
2385 * Makefile.in: Add rules for cli-logging.c.
2386 * NEWS: Mention "set logging".
2387
88a07d7c
EZ
23882003-06-27 Elena Zannoni <ezannoni@redhat.com>
2389
2390 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2391
4eb58876
AC
23922003-06-27 Andrew Cagney <cagney@redhat.com>
2393
2394 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2395 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2396 * avr-tdep.c (avr_call_dummy_address): Delete function.
2397 (avr_gdbarch_init): Do not set call_dummy_address.
2398
1549f619
EZ
23992003-06-27 Elena Zannoni <ezannoni@redhat.com>
2400
2401 * symfile.c (syms_from_objfile): Move variables to inner block.
2402 Move the checks for the non-mainline case a bit earlier to avoid
2403 doing some useless computations.
2404
3cb3398d
EZ
24052003-06-27 Elena Zannoni <ezannoni@redhat.com>
2406
2407 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2408
3799ccc6
EZ
24092003-06-26 Elena Zannoni <ezannoni@redhat.com>
2410
2411 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2412 sections.
2413
ce1f6491
MC
24142003-06-26 Michael Chastain <mec@shout.net>
2415
2416 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2417 gdb/testsuite/gdb.c++/pr-1210.exp.
2418
d958dfd0
AC
24192003-06-26 Andrew Cagney <cagney@redhat.com>
2420
2421 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2422 altivec_expression.h and altivec_registers.h.
2423
d31431ed
AC
24242003-06-26 Andrew Cagney <cagney@redhat.com>
2425
2426 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2427 info->mach when MIPS16. Patch suggested by Fred Fish.
2428
714b1282
AC
24292003-06-26 Andrew Cagney <cagney@redhat.com>
2430
2431 * utils.c (internal_vproblem): Print the problem to a reason
2432 buffer and then pass to query. Make the msg variable more local.
2433
42efa47a
AC
24342003-06-26 Andrew Cagney <cagney@redhat.com>
2435
2436 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2437 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2438 * gdbarch.h, gdbarch.c: Re-generate.
2439 * frame-base.c (default_frame_args_address): Update. Use
2440 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2441 not available.
2442 (default_frame_locals_address): Ditto for
2443 DEPRECATED_FRAME_LOCALS_ADDRESS.
2444 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2445 (vax_frame_num_args): Update.
2446 (vax_gdbarch_init): Update.
2447 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2448 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2449 * mcore-tdep.c (mcore_gdbarch_init): Update.
2450 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2451 * ia64-tdep.c (ia64_gdbarch_init): Update.
2452 * symtab.h (address_class): Update comments.
2453 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2454 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2455 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2456 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2457 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2458 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2459 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2460 * alpha-mdebug-tdep.c: Update.
2461 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2462
8ffd9b1b
AJ
24632003-06-26 Andreas Jaeger <aj@suse.de>
2464
2465 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2466 of SSE registers so that varargs functions work. Rework handling
2467 of passing arguments on the stack.
2468 (x86_64_store_return_value): Return double and float values in SSE
2469 register.
2470
e8ac10a6
MC
24712003-06-24 Michael Chastain <mec@shout.net>
2472
2473 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2474 the "constructor breakpoints ignored" bug.
2475
986af8e6
DC
24762003-06-25 David Carlton <carlton@kealia.com>
2477
2478 * MAINTAINERS: Update e-mail address.
2479
d64558a5
JB
24802003-06-24 Jim Blandy <jimb@redhat.com>
2481
e538d2d7
JB
2482 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2483
02631ec0
JB
2484 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2485 function.
2486 (ppc_linux_init_abi): Register it as the
2487 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2488
e716d87a
JB
2489 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2490 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2491 method.
2492
d64558a5
JB
2493 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2494 (ppc64_standard_linkage_target): Use it.
2495
449a5da4
AC
24962003-06-23 Andrew Cagney <cagney@redhat.com>
2497
2498 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2499 for 0 "int0" and 4 "int32" sized registers.
2500 * gdbtypes.c (builtin_type_int0): Define.
2501 (build_gdbtypes): Initialize builtin_type_int0.
2502 * gdbtypes.h (builtin_type_int0): Declare.
2503
b2a02dda
SC
25042003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2505
2506 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2507 as characters are unsigned.
2508
fba3138e
DJ
25092003-06-22 Daniel Jacobowitz <drow@mvista.com>
2510
2511 PR gdb/1179
2512 * dwarfread.c (struct_type): Skip static fields without crashing.
2513
f6c8180b
AC
25142003-06-22 Andrew Cagney <cagney@redhat.com>
2515
2516 GDB 6.0 branch created.
f2c06f52
AC
2517 * README: Update.
2518 * PROBLEMS: Update. Empty.
2519 * NEWS: Update.
f6c8180b 2520
ae822768
DJ
25212003-06-22 Daniel Jacobowitz <drow@mvista.com>
2522
2523 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2524 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2525
261de166
AC
25262003-06-22 Andrew Cagney <cagney@redhat.com>
2527
2528 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2529 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2530 Velikov.
2531
30e94205
DJ
25322003-06-22 Daniel Jacobowitz <drow@mvista.com>
2533
2534 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2535 compilers.
2536
9e14d721
DJ
25372003-06-21 Daniel Jacobowitz <drow@mvista.com>
2538
2539 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2540 argument of val_print.
2541 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2542 to the address argument of baseclass_offset or target_read_memory.
2543 Do add it to the argument of cp_print_value_fields.
2544
a4b8ebc8
AC
25452003-06-21 Andrew Cagney <cagney@redhat.com>
2546
2547 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2548 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2549 instead of 0..NUM_REGS.
2550 (mips_register_reggroup_p): New function.
2551 (mips_pseudo_register_write): New function.
2552 (mips_pseudo_register_read): New function.
2553 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2554 based on the register's type.
2555 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2556 cooked.
2557 (mips_get_saved_register): Simplify. Assert that REGNO is a
2558 pseudo / cooked.
2559 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2560 (mips_register_type): Replace mips_register_virtual_type. Map
2561 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2562 when available.
2563 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2564 that the register is cooked / virtual.
2565 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2566 Only get the extra info when needed.
2567 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2568 (mips32_heuristic_proc_desc): Fetch the cooked register.
2569 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2570 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2571 (mips_print_register): Use gdbarch_register_type, instead of
2572 REGISTER_VIRTUAL_TYPE.
2573 (print_gp_register_row): Use gdbarch_register_type, instead of
2574 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2575 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2576 Print the pseudo / cooked registers.
2577 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2578 Print the pseudo / cooked registers.
2579 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2580 REG_NUM is pseudo / cooked.
2581 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2582 (mips_n32n64_xfer_return_value): Ditto.
2583 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2584 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2585 (mips_register_sim_regno): New function.
2586 (mips_gdbarch_init): Set deprecated_register_byte,
2587 register_group_p, pseudo_register_write, pseudo_register_read,
2588 register_sim_regno, and num_pseudo_regs. Set register_type,
2589 instead of register_virtual_type.
2590 * Makefile.in (mips-tdep.o): Update dependencies.
2591 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2592 REGISTER_VIRTUAL_TYPE.
2593 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2594 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2595 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2596 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2597 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2598
325ed089
DJ
25992003-06-21 Daniel Jacobowitz <drow@mvista.com>
2600
2601 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2602 * cli/cli-cmds.c: Include "gdb_vfork.h".
2603 (shell_escape): Use vfork.
2604
f0e7d0e8
AC
26052003-06-21 Andrew Cagney <cagney@redhat.com>
2606
c57bb9fa
AC
2607 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2608 32 bit floating-point register saves.
2609
6e51443a
AC
2610 * frame.h (deprecated_unwind_get_saved_register): Delete.
2611 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2612 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2613 and deprecated_get_next_frame_hack instead of
2614 deprecated_unwind_get_saved_register.
2615
ed183c7c
AC
2616 * mips-tdep.c (mips_dump_tdep): Do not print
2617 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2618
f0e7d0e8
AC
2619 * frame.c (get_frame_register): New function.
2620 (frame_unwind_register_signed): New function.
2621 (get_frame_register_signed): New function.
2622 (frame_unwind_register_unsigned): New function.
2623 (get_frame_register_unsigned): New function.
2624 * frame.h: Add comments on naming schema.
2625 (get_frame_register, frame_unwind_register_signed): Declare.
2626 (get_frame_register_signed, get_frame_register_signed): Declare.
2627 (frame_unwind_register_unsigned): Declare.
2628 (get_frame_register_unsigned): Declare.
2629
2224d941
TR
26302003-06-20 Theodore A. Roth <troth@openavr.org>
2631
2632 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2633
8619218d
TR
26342003-06-20 Theodore A. Roth <troth@openavr.org>
2635
2636 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2637 (avr_read_sp): Ditto.
2638
0b1b50c0
DJ
26392003-06-20 Daniel Jacobowitz <drow@mvista.com>
2640
2641 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2642 * config/arm/nm-linux.h: Likewise.
2643 * config/arm/tm-linux.h: Likewise.
2644 * config/ia64/nm-linux.h: Likewise.
2645 * config/ia64/tm-ia64.h: Likewise.
2646 * config/s390/tm-linux.h: Likewise.
2647 * config/s390/tm-s390.h: Likewise.
2648 * s390-nat.c: Likewise.
2649 * s390-tdep.c: Likewise.
2650
2651 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2652 * config/ia64/linux.mt: Likewise.
2653 * config/m68k/linux.mh: Likewise.
2654 * config/mips/linux.mt: Likewise.
2655 * config/powerpc/linux.mh: Likewise.
2656 * config/sh/linux.mt: Likewise.
2657
c8c18e65
KW
26582003-06-19 Kris Warkentin <kewarken@qnx.com>
2659
2660 * solib.c (solib_open): Change tests for whether to search
2661 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2662 comments.
2663
dcccef2e
TR
26642003-06-19 Theodore A. Roth <troth@openavr.org>
2665
2666 * avr-tdep.c (avr_frame_address): Delete function.
2667 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2668 set_gdbarch_frame_args_address.
2669
5861a190
AC
26702003-06-19 Andrew Cagney <cagney@redhat.com>
2671
2672 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2673 (REGISTER_CONVERT_FROM_TYPE): Delete.
2674 (mips_register_convert_to_type): Delete declaration.
2675 (mips_register_convert_from_type): Delete declaration.
2676 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2677 kernel/.
2678
0274a8ce
MS
26792003-06-19 Michael Snyder <msnyder@redhat.com>
2680
2681 * linux-nat.h: New file.
2682 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 2683 * lin-lwp.c: Include linux-nat.h.
0274a8ce 2684 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 2685 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
2686 (linux_make_note_section): Iterate over lwps instead of threads.
2687 (linux_do_thread_registers): Use lwp instead of merged pid.
2688 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 2689 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
2690 Add dependency on linux_nat_h.
2691
adf5f719
TR
26922003-06-19 Theodore A. Roth <troth@openavr.org>
2693
2694 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2695
6766a268
DJ
26962003-06-19 Daniel Jacobowitz <drow@mvista.com>
2697
2698 * varobj.c (get_type, get_target_type): Use check_typedef.
2699
1171114a
DJ
27002003-06-19 Daniel Jacobowitz <drow@mvista.com>
2701
2702 * breakpoint.c (insert_catchpoint): Call internal_error.
2703
adcf68a2
TR
27042003-06-19 Theodore A. Roth <troth@openavr.org>
2705
2706 * avr-tdep.c (avr_push_dummy_code): Delete function.
2707 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2708
ea67f13b
DJ
27092003-06-19 Daniel Jacobowitz <drow@mvista.com>
2710
2711 * arch-utils.c (default_prepare_to_proceed): Remove.
2712 (generic_prepare_to_proceed): Remove.
2713 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2714 (generic_prepare_to_proceed): Remove prototype.
2715 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2716 * gdbarch.c: Regenerate.
2717 * gdbarch.h: Regenerate.
2718 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2719 * hppah-nat.c (hppa_switched_threads): Remove.
2720 * infrun.c (prepare_to_proceed): New static function, copied from
2721 generic_prepare_to_proceed. Remove select_it argument.
2722 (proceed): Call prepare_to_proceed.
2723 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2724 variables.
2725 (ptrace_wait): Don't set the removed variables.
2726 (hppa_switched_threads): Remove.
2727 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2728 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2729 (lin_lwp_prepare_to_proceed): Remove prototype.
2730 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2731 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2732
4add8633
TR
27332003-06-18 Theodore A. Roth <troth@openavr.org>
2734
2735 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2736 trad-frame.h.
2737 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2738 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2739 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2740 (AVR_PROLOGUE_*): Enumerate prologue types.
2741 (struct frame_extra_info): Remove.
2742 (struct avr_unwind_cache): Define.
2743 (avr_write_sp): Delete function.
2744 (avr_read_fp): Ditto.
2745 (avr_init_extra_frame_info): Ditto.
2746 (avr_pop_frame): Ditto.
2747 (avr_frame_saved_pc): Ditto.
2748 (avr_saved_pc_after_call): Ditto.
2749 (avr_push_return_address): Ditto.
2750 (avr_frame_chain): Ditto.
2751 (avr_store_struct_return): Ditto.
2752 (avr_push_arguments): Ditto.
2753 (avr_scan_prologue): Update comments. Changed to set up the info for
2754 cache unwinding. Now returns end of prologue PC.
2755 (avr_skip_prologue): Better handling of functions lacking a prologue
2756 by using avr_scan_prologue.
2757 (avr_scan_arg_moves): New function.
2758 (avr_saved_regs_unwinder): Ditto.
2759 (avr_frame_unwind_cache): Ditto.
2760 (avr_unwind_pc): Ditto.
2761 (avr_frame_this_id): Ditto.
2762 (avr_frame_prev_register): Ditto.
2763 (avr_frame_p): Ditto.
2764 (avr_frame_base_address ): Ditto.
2765 (avr_unwind_dummy_id): Ditto.
2766 (avr_push_dummy_code): Ditto.
2767 (push_stack_item): Ditto.
2768 (pop_stack_item): Ditto.
2769 (avr_push_dummy_call): Ditto.
2770 (struct stack_item): Define.
2771 (avr_frame_unwind): Declare structure.
2772 (avr_frame_base): Ditto.
2773 (avr_gdbarch_init): Remove calls to
2774 set_gdbarch_deprecated_init_frame_pc,
2775 set_gdbarch_deprecated_target_read_fp,
2776 set_gdbarch_deprecated_dummy_write_sp,
2777 set_gdbarch_deprecated_fp_regnum,
2778 set_gdbarch_deprecated_push_arguments,
2779 set_gdbarch_deprecated_push_return_address,
2780 set_gdbarch_deprecated_pop_frame,
2781 set_gdbarch_deprecated_store_struct_return,
2782 set_gdbarch_deprecated_frame_init_saved_regs,
2783 set_gdbarch_deprecated_init_extra_frame_info,
2784 set_gdbarch_deprecated_frame_chain,
2785 set_gdbarch_deprecated_frame_saved_pc,
2786 set_gdbarch_deprecated_saved_pc_after_call.
2787 Add calls to set_gdbarch_push_dummy_call,
2788 set_gdbarch_push_dummy_code,
2789 frame_unwind_append_predicate,
2790 frame_base_set_default,
2791 set_gdbarch_unwind_dummy_id,
2792 set_gdbarch_unwind_pc.
2793 Wrap a long line.
2794
7be04a68
MS
27952003-06-18 Corinna Vinschen <vinschen@redhat.com>
2796
2797 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2798 registers for H8/300S.
2799 (h8300_print_registers_info): Ditto.
8ffd9b1b 2800 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 2801
ae087d01
DJ
28022003-06-18 Daniel Jacobowitz <drow@mvista.com>
2803
2804 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2805 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2806 (lin_lwp_wait): Likewise. Update comments.
2807 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2808 (pull_pid_from_list, linux_record_stopped_pid): New.
2809
07d8f827
SC
28102003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2811
2812 * ada-lang.c (scan_discrim_bound): Name first argument.
2813 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2814 declared by ALL_BLOCK_SYMBOLS.
2815
7cb47b14
SC
28162003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2817
2818 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2819 ("regcache.h"): Include it.
2820 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2821
6ad8ae5c
DJ
28222003-06-17 Daniel Jacobowitz <drow@mvista.com>
2823
2824 * NEWS: Mention gdbserver detach change and "disconnect" command.
2825 * infcmd.c (disconnect_command): New function.
2826 (_initialize_infcmd): Add ``disconnect'' command.
2827 * remote.c (remote_async_detach): Delete.
2828 (remote_detach): Merge remote_async_detach.
2829 (remote_disconnect): New.
2830 (init_remote_ops): Set to_disconnect.
2831 (init_remote_cisco_ops): Likewise.
2832 (init_remote_async_ops): Likewise. Use remote_detach.
2833 * target.c (cleanup_target): Default to_disconnect.
2834 (update_current_target): Inherit to_disconnect.
2835 (target_disconnect, debug_to_disconnect): New functions.
2836 (setup_target_debug): Set to_disconnect.
2837 * target.h (struct target_ops): Add to_disconnect.
2838 (target_disconnect): Add prototype.
2839
687595f9
DJ
28402003-06-17 Daniel Jacobowitz <drow@mvista.com>
2841
2842 * breakpoint.c (insert_catchpoint): New function.
2843 (insert_breakpoints): Use catch_exceptions to call
2844 insert_catchpoint. Disable catchpoints if they fail to insert.
2845
29239a8f
DJ
28462003-06-17 Daniel Jacobowitz <drow@mvista.com>
2847
2848 * symfile.c (reread_symbols): Clear sym_private.
2849
2cdf3c63
AC
28502003-06-17 Andrew Cagney <cagney@redhat.com>
2851
2852 * trad-frame.h (struct frame_info): Add opaque declaration.
2853 * remote-fileio.h (struct cmd_list_element): Add opaque
2854 declaration.
2855 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2856 comments.
2857
cf0e1e0d
DJ
28582003-06-17 Daniel Jacobowitz <drow@mvista.com>
2859
2860 * remote.c (remote_prepare_to_store): Replace call to
2861 deprecated_read_register_bytes with multiple regcache_raw_read
2862 calls.
2863
192cdb19
KW
28642003-06-17 Kris Warkentin <kewarken@qnx.com>
2865
2866 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2867 (nto_find_and_open_solib): Likewise.
2868 (nto_init_solib_absolute_prefix): Likewise.
2869 (_initialize_nto_tdep): Fix indentation.
2870
89929b45
KW
28712003-06-17 Kris Warkentin <kewarken@qnx.com>
2872
2873 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2874
46019f27
KW
28752003-06-17 Kris Warkentin <kewarken@qnx.com>
2876
2877 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2878
1a38736e
JB
28792003-06-17 Jim Blandy <jimb@redhat.com>
2880
2881 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2882
3605c34a
TR
28832003-06-16 Theodore A. Roth <troth@openavr.org>
2884
2885 * avr-tdep.c (avr_extract_return_value): New function.
2886 (avr_gdbarch_init): Set extract_return_value method.
2887
870b3035
AC
28882003-06-16 Andrew Cagney <cagney@redhat.com>
2889
2890 * frame.h (deprecated_get_next_frame_hack): Declare.
2891 * frame.c (legacy_saved_regs_prev_register): Only require
2892 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2893 there are always saved regs.
2894 (deprecated_generic_get_saved_register): Do not require
2895 DEPRECATED_FRAME_INIT_SAVED_REGS.
2896 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2897 use frame ID unwind instead.
2898 (deprecated_get_next_frame_hack): New function.
2899
63d47a7d
CV
29002003-06-16 Corinna Vinschen <vinschen@redhat.com>
2901
2902 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2903 (h8300_push_dummy_call): ...this function. Some minor optimization.
2904 (h8300_push_return_address): Remove.
2905 (h8300_gdbarch_init): Remove calls to
2906 set_gdbarch_deprecated_dummy_write_sp,
2907 set_gdbarch_deprecated_push_arguments and
2908 set_gdbarch_deprecated_push_return_address.
2909 Add call to set_gdbarch_push_dummy_call.
2910
4bb1dc5e
CV
29112003-06-16 Corinna Vinschen <vinschen@redhat.com>
2912
2913 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2914 (E_PSEUDO_EXR_REGNUM): Ditto.
2915 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 2916 registers into safe registers.
4bb1dc5e
CV
2917 (h8300_skip_prologue): Check for stm instruction to push registers
2918 used for register variables onto stack.
2919 (gdb_print_insn_h8300): Remove.
2920 (h8300_examine_prologue): Add a comment.
2921 (h8300_register_name): Take pseudo registers into account.
2922 (h8300s_register_name): Ditto.
2923 (h8300sx_register_name): Ditto.
2924 (h8300_print_register): Ditto.
2925 (h8300_print_registers_info): Define "nice" printing order.
2926 (h8300_saved_pc_after_call): Take pseudo registers into account.
2927 (h8300_register_type): Ditto. Return type used for remote connection
2928 when requesting real CCR or EXR register, return actual type when
2929 requesting pseudo CCR or EXR.
2930 (h8300_pseudo_register_read): New function.
2931 (h8300_pseudo_register_write): Ditto.
2932 (h8300_dbg_reg_to_regnum): Ditto.
2933 (h8300s_dbg_reg_to_regnum): Ditto.
2934 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2935 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2936 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2937 set_gdbarch_print_insn architecture dependent.
2938 Call set_gdbarch_pseudo_register_read and
2939 set_gdbarch_pseudo_register_write.
2940 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2941
a59fe496
AC
29422003-06-16 Andrew Cagney <cagney@redhat.com>
2943
2944 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2945 * gdbarch.h, gdbarch.c: Re-generate.
2946 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2947 * s390-tdep.c (s390_gdbarch_init): Update.
2948 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2949 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2950 * mips-tdep.c (mips_gdbarch_init): Update.
2951 * mcore-tdep.c (mcore_gdbarch_init): Update.
2952 * cris-tdep.c (cris_gdbarch_init): Update.
2953 * infcall.c (call_function_by_hand): Update.
2954 * ia64-tdep.c (ia64_push_arguments): Update comment.
2955 * frame.c (legacy_get_prev_frame): Do not assume
2956 SAVE_DUMMY_FRAME_TOS_P.
2957 * dummy-frame.c (find_dummy_frame): Update comment.
2958
6f4e5a41
AC
29592003-06-16 Andrew Cagney <cagney@redhat.com>
2960
2961 * regcache.c (do_cooked_read): Do not use register_valid_p.
2962
72fab697
TR
29632003-06-15 Theodore A. Roth <troth@openavr.org>
2964
2965 * avr-tdep.c (avr_register_type): Remove a blank line.
2966 (avr_scan_prologue): Correct some comments.
2967
e3d8b004
TR
29682003-06-15 Theodore A. Roth <troth@openavr.org>
2969
2970 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2971 prologue types.
8ffd9b1b 2972 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
2973 option.
2974 Add code to scan -mcall-prologues for mega devices.
2975
866b76ea
TR
29762003-06-15 Theodore A. Roth <troth@openavr.org>
2977
2978 * avr-tdep.c (avr_register_byte): Delete function.
2979 (avr_register_raw_size): Delete function.
2980 (avr_register_virtual_size): Delete function.
2981 (avr_register_virtual_type): Delete function.
2982 (avr_register_type): New function.
2983 (avr_address_to_pointer): Remove unused code.
2984 (avr_read_fp): Need to read FP as two separate bytes due to change to
2985 avr_register_type() usage.
2986 (avr_gdbarch_init): Don't set deprecated_register_size.
2987 Don't set deprecated_register_bytes.
2988 Don't set deprecated_register_byte.
2989 Don't set deprecated_register_raw_size.
2990 Don't set deprecated_max_register_raw_size.
2991 Don't set deprecated_register_virtual_size.
2992 Don't set deprecated_max_register_virtual_size.
2993 Don't set deprecated_register_virtual_type.
2994 Set register_type method.
2995
3993f6b1
DJ
29962003-06-15 Daniel Jacobowitz <drow@mvista.com>
2997
2998 * Makefile.in (linux-nat.o): Add rule.
2999 * linux-nat.c: New file.
3000 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3001 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3002 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3003 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3004 * config/arm/linux.mh (NATDEPFILES): Likewise.
3005 * config/i386/linux.mh (NATDEPFILES): Likewise.
3006 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3007 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3008 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3009 * config/mips/linux.mh (NATDEPFILES): Likewise.
3010 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3011 * config/s390/s390.mh (NATDEPFILES): Likewise.
3012 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3013
786a90bb
MK
30142003-06-15 Mark Kettenis <kettenis@gnu.org>
3015
3016 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3017 replace out-of-date comment.
3018
3bd3f01e
AC
30192003-06-15 Andrew Cagney <cagney@redhat.com>
3020
3021 * rdi-share/host.h (Fail): Change to a varargs function.
3022 * remote-rdi.c (Fail): Update.
8ffd9b1b 3023
de5b9bb9
MK
30242003-06-15 Mark Kettenis <kettenis@gnu.org>
3025
3026 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3027 (i386_convert_register_p, i386_register_to_value,
3028 i386_register_from_value): Handle types longer than 8 bytes.
3029
d532c08f
MK
30302003-06-15 Mark Kettenis <kettenis@gnu.org>
3031
3032 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3033 Move floating-point code to new function in i387-tdep.c.
3034 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3035 New functions containing code moved here from i386-tdep.c.
3036 * i387-tdep.h: Add opaque declaration for `struct type'.
3037 (i387_register_to_value, i387_value_to_register): New prototypes.
3038 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3039 (x86_64_init_abi): Set convert_register_p, register_to_value and
3040 value_to_register here.
8ffd9b1b 3041
42c466d7
AC
30422003-06-14 Andrew Cagney <cagney@redhat.com>
3043
3044 * mips-tdep.c (mips_register_to_value): Make static.
3045 (mips_value_to_register): Make static.
3046 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3047 * ia64-tdep.c (ia64_register_raw_size): Make static.
3048 (ia64_register_virtual_size): Make static.
3049 (ia64_register_byte): Make static.
3050 * i387-tdep.c: Include "i387-tdep.h".
3051 (print_387_control_word): Delete function.
3052 (print_387_status_word): Delete function.
3053 (print_387_status_bits): Delete function.
3054 (print_387_control_bits): Delete function.
3055 * Makefile.in (i387-tdep.o): Update dependencies.
3056 * rdi-share/host.h (Fail): Declare.
3057 * remote-rdi.c (Fail): Update to match declaration.
3058
2a9cda49
AC
30592003-06-14 Andrew Cagney <cagney@redhat.com>
3060
3061 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3062 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3063 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3064 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3065 * README: Delete reference to remote-array.
3066 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3067 (remote-array.o): Delete target.
3068 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3069 * remote-array.c: Delete file.
3070
ff2e87ac
AC
30712003-06-14 Andrew Cagney <cagney@redhat.com>
3072 Mark Kettenis <kettenis@gnu.org>
3073
3074 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3075 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3076 parameter with "frame".
3077 * gdbarch.h, gdbarch.c: Re-generate.
3078 * frame.h (put_frame_register): Declare.
3079 * frame.c (put_frame_register): New function.
3080 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3081 (legacy_register_to_value): Rewrite, use "frame" to get the
3082 register value.
3083 (legacy_value_to_register): Rewrite, use "frame" to find the
3084 register's location before storing.
3085 * arch-utils.h (legacy_convert_register_p): Update.
3086 (legacy_register_to_value, legacy_value_to_register): Update.
3087 * findvar.c (value_from_register): Rewrite, eliminate use of
3088 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3089 "frame" to REGISTER_TO_VALUE.
3090 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3091 lval_reg_frame_relative + lval_register branch of the switch. Do
3092 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3093 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3094 I386_EDI_REGNUM): New defines.
3095 (i386_next_regnum, i386_convert_register_p,
3096 i386_register_to_value, i386_value_to_register): New functions.
3097 (i386_register_convertible, i386_register_convert_to_virtual,
3098 i386_convert_to_raw): Remove functions.
3099 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3100 value_to_register instead of register_convertible,
3101 register_convert_to_virtual and register_convert_to_raw.
3102 * mips-tdep.c (mips_convert_register_p): New function.
3103 (mips_value_to_register): Replace mips_register_convert_from_type.
3104 (mips_register_to_value): Replace mips_register_convert_to_type.
3105 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3106 register_to_value.
3107 * alpha-tdep.c (alpha_convert_register_p): Update.
3108 (alpha_value_to_register): Update, store the register.
3109 (alpha_register_to_value): Update, fetch the register.
3110
98be1e77
TR
31112003-06-14 Theodore A. Roth <troth@openavr.org>
3112
3113 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3114 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3115 Don't set deprecated_call_dummy_words.
3116 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3117 Don't set remote_translate_xfer_address.
3118 (avr_io_reg_read_command): Remove commented out debug printf.
3119 Wrap a long line.
3120
57bc6122
TR
31212003-06-14 Theodore A. Roth <troth@openavr.org>
3122
3123 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3124 causes gdb to seg fault.
3125
eb01fc62
DJ
31262003-06-14 Daniel Jacobowitz <drow@mvista.com>
3127
3128 * sparc-nat.c (fetch_inferior_registers): Correct
3129 a reference to "registers".
3130
3b3e6bee
DJ
31312003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3132
3133 * Makefile.in (exc_request_U_h): Define
3134 (exc_request_S_h): Likewise.
3135 (msg_reply_S_h): Likewise.
3136 (msg_U_h): Likewise.
3137 (notify_S_h): Likewise.
3138 (process_reply_S_h): Likewise.
3139 (gnu-nat.o): Depend on gdb_obstack_h
3140 * gnu-nat.c: Include "gdb_obstack.h".
3141
b8de8283
AC
31422003-06-13 Andrew Cagney <cagney@redhat.com>
3143
3144 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3145 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 3146
f3be58bc
AC
31472003-06-13 Andrew Cagney <cagney@redhat.com>
3148
3149 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3150 when deprecated REGISTER macros can be deleted.
3151 * gdbarch.h, gdbarch.c: Re-generate.
3152
4c0122c8
JB
31532003-06-13 Jim Blandy <jimb@redhat.com>
3154
3155 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3156 Linux entry point symbols for _dl_debug_state, too.
3157
3e210248
AC
31582003-06-13 Andrew Cagney <cagney@redhat.com>
3159
3160 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3161 available, do not use the FP register, and always save the TOS.
3162 * dummy-frame.c (dummy_frame_this_id): Do not assert
3163 SAVE_DUMMY_FRAME_TOS.
3164 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3165 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3166 (i386_push_dummy_call): Add 8 to the returned SP.
3167 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3168 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3169 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3170 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3171 (x86_64_push_dummy_call): Return "sp + 16".
3172 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3173 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3174 save_dummy_frame_tos.
3175
0b65af49
JB
31762003-06-13 Jim Blandy <jimb@redhat.com>
3177
3178 * frv-tdep.c (frv_use_struct_convention): Delete static
3179 declaration for function deleted in my change of 2003-06-12.
3180
4ea2465e
TR
31812003-06-13 Theodore A. Roth <troth@openavr.org>
3182
3183 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3184 (avr_pointer_to_address): Shift code addrs left 1 bit.
3185 (avr_convert_from_func_ptr_addr): Delete function since operation is
3186 better handled by avr_address_to_pointer and avr_pointer_to_address.
3187 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3188
1581182a
MK
31892003-06-13 Mark Kettenis <kettenis@gnu.org>
3190
3191 From Kelley Cook <kelleycook@wideopenwest.com>:
3192 * configure.host: Accept i[34567]86 variants.
3193 * configure.tgt: Likewise.
3194 * nlm/configure.in: Likewise.
3195 * nlm/configure: Regenerated.
3196
7aa1783e
RE
31972003-06-13 Richard Earnshaw <rearnsha@arm.com>
3198
3199 * arm-tdep.c (solib-svr4.h): Dont' include it.
3200 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3201 * arm-linux-tdep.c: ... here. Make static.
3202 (arm_linux_init_abi): Register it.
3203 (solib-svr4.h): Include it.
3204 * Makefile.in: Update dependencies.
3205 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3206 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3207
0261a0d0
CV
32082003-06-13 Corinna Vinschen <vinschen@redhat.com>
3209
3210 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3211 indicate registers used for return values.
3212 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3213 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3214 members.
3215 (h8300_init_extra_frame_info): Ditto.
3216 (h8300_frame_locals_address): Removed.
3217 (h8300_frame_args_address): Removed.
3218 (h8300_extract_return_value): Use new regcache structure. Only care
3219 for 16 bit CPUs.
3220 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3221 (h8300_store_return_value): Use new regcache structure. Only care
3222 for 16 bit CPUs.
3223 (h8300h_store_return_value): Same function for 32 bit CPUs.
3224 (h8300_store_struct_return): Removed.
3225 (h8300_extract_struct_value_address): Use new regcache structure.
3226 (h8300h_extract_struct_value_address): Removed.
3227 (h8300_push_dummy_code): New function.
3228 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3229 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3230 set_gdbarch_store_return_value architecture dependent.
3231 Call set_gdbarch_push_dummy_code and
3232 set_gdbarch_extract_struct_value_address.
3233 Remove calls to set_gdbarch_frame_args_address,
3234 set_gdbarch_frame_locals_address,
3235 set_gdbarch_deprecated_store_struct_return,
3236 set_gdbarch_deprecated_extract_return_value,
3237 set_gdbarch_deprecated_extract_struct_value_address,
3238 set_gdbarch_deprecated_call_dummy_words and
3239 set_gdbarch_deprecated_sizeof_call_dummy_words.
3240
055c394a
CV
32412003-06-13 Corinna Vinschen <vinschen@redhat.com>
3242
3243 * h8300-tdep.c (h8300_register_byte): Remove.
3244 (h8300h_register_byte): Remove.
3245 (h8300_register_virtual_type): Remove. Substitute by...
3246 (h8300_register_type): New function.
3247 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3248 (h8300h_extract_struct_value_address): Ditto.
3249 (h8300_gdbarch_init): Drop calls to
3250 set_gdbarch_deprecated_register_byte and
3251 set_gdbarch_deprecated_register_virtual_type.
3252 Add call to set_gdbarch_register_type.
3253
9c04cab7
AC
32542003-06-13 Andrew Cagney <cagney@redhat.com>
3255
3256 * gdbarch.sh: Update comments on registers.
3257 (deprecated_register_byte): Rename register_byte.
3258 (deprecated_register_raw_size): Rename register_raw_size.
3259 (deprecated_register_virtual_size): Rename register_virtual_size.
3260 (deprecated_register_virtual_type): Rename register_virtual_type.
3261 * gdbarch.h, gdbarch.c: Re-generate.
3262 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3263 * vax-tdep.c (vax_gdbarch_init): Update.
3264 * v850-tdep.c (v850_gdbarch_init): Update.
3265 * sparc-tdep.c (sparc_gdbarch_init): Update.
3266 * sh-tdep.c (sh_gdbarch_init): Update.
3267 * s390-tdep.c (s390_gdbarch_init): Update.
3268 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3269 * ns32k-tdep.c: Update.
3270 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3271 * mips-tdep.c (mips_gdbarch_init): Update.
3272 * mcore-tdep.c (mcore_gdbarch_init): Update.
3273 * m68k-tdep.c (m68k_gdbarch_init): Update.
3274 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3275 * ia64-tdep.c (ia64_gdbarch_init): Update.
3276 * hppa-tdep.c (hppa_gdbarch_init): Update.
3277 * h8300-tdep.c (h8300_gdbarch_init): Update.
3278 * frv-tdep.c (frv_gdbarch_init): Update.
3279 * cris-tdep.c (cris_gdbarch_init): Update.
3280 * avr-tdep.c (avr_gdbarch_init): Update.
3281 * alpha-tdep.c (alpha_gdbarch_init): Update.
3282 * arm-tdep.c (arm_gdbarch_init): Update.
3283
b060cbea
AC
32842003-06-13 Andrew Cagney <cagney@redhat.com>
3285
3286 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3287 mips_o32_use_struct_convention with always_use_struct_convention.
3288
0fc9922a
DC
32892003-06-12 David Carlton <carlton@kealia.com>
3290
3291 * cp-namespace.c (cp_set_block_scope): Comment out
3292 processing_has_namespace_info branch.
3293
1fd35568
JB
32942003-06-12 Jim Blandy <jimb@redhat.com>
3295
f470a70a
JB
3296 Recognize and skip 64-bit PowerPC Linux linkage functions.
3297 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3298 insn_pattern, insns_match_pattern, d_field, ds_field): New
3299 functions, macros, and types for working with PPC instructions.
3300 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3301 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3302 ppc64_skip_trampoline_code): New functions, variables, and macros
3303 for recognizing and skipping linkage functions.
3304 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3305 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3306
49ff75ad
JB
3307 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3308 register offsets for both the 32- and 64-bit interfaces.
3309
bd918c83
JB
3310 Actually finish the job started by my change of 2003-05-29.
3311 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3312 other #definition of this.
3313 (ppc_linux_skip_trampoline_code): Remove declaration.
3314 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3315 static.
3316 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3317 method for GDBARCH.
3318
3319 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3320 'long' on ppc64-*-linux*.
3321
f8c59253
JB
3322 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3323 isn't #defined, assume the register doesn't exist: act as if
3324 tdep->ppc_mq_regnum were -1.
3325
8fbb30b1
JB
3326 * configure.host, configure.tgt: Add entries for
3327 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3328 powerpc/linux.mt.
3329 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3330 New files.
3331
1fd35568
JB
3332 * arch-utils.c (always_use_struct_convention): New function.
3333 * arch-utils.h (always_use_struct_convention): New prototype.
3334 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3335 (alpha_gdbarch_init): Register always_use_struct_convention,
3336 instead of alpha_use_struct_convention.
3337 * cris-tdep.c (cris_use_struct_convention): Delete.
3338 (cris_gdbarch_init): Register always_use_struct_convention,
3339 instead of cris_use_struct_convention.
3340 * frv-tdep.c (frv_use_struct_convention): Delete.
3341 (frv_gdbarch_init): Register always_use_struct_convention,
3342 instead of frv_use_struct_convention.
3343 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3344 (h8300_gdbarch_init): Register always_use_struct_convention,
3345 instead of h8300_use_struct_convention.
e3305dd9 3346 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
3347 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3348 instead of mips_o32_use_struct_convention.
3349
e14e6e9c
AC
33502003-06-12 Andrew Cagney <cagney@redhat.com>
3351
3352 * wince.c: Include "mips-tdep.h".
3353 * mips-tdep.h (mips_next_pc): Declare.
3354 * mcore-tdep.c: Make more local functions static.
3355 * Makefile.in (wince.o): Update dependencies.
3356
2335f48e
DC
33572003-06-12 David Carlton <carlton@kealia.com>
3358
3359 * symtab.c (lookup_symbol_aux_minsyms): Replace
3360 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3361 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3362 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3363 SYMBOL_NATURAL_NAME.
3364
f70a7d61
AS
33652003-06-12 Andreas Schwab <schwab@suse.de>
3366
3367 * Makefile.in (tuiDisassem.o): Update dependencies.
3368
b6429628
DC
33692003-06-12 David Carlton <carlton@bactrian.org>
3370
3371 * symtab.h: Delete declaration of make_symbol_overload_list.
3372 Add declaration of lookup_partial_symbol.
3373 * symtab.c (remove_params): Move to cp-support.c.
3374 (overload_list_add_symbol, make_symbol_overload_list)
3375 (sym_return_val_size, sym_return_val_index): Ditto.
3376 (lookup_partial_symbol): Make extern.
3377 * cp-support.h: Add declaration of make_symbol_overload_list.
3378 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3379 symtab.h, and block.h.
3380 (remove_params): Move here from symtab.c.
3381 (overload_list_add_symbol, make_symbol_overload_list)
3382 (sym_return_val_size, sym_return_val_index): Ditto.
3383 * valops.c: Include cp-support.h.
3384 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3385 frame_h, and block_h.
3386 (valops.o): Depend on cp_support_h.
3387
084edea5
CV
33882003-06-12 Corinna Vinschen <vinschen@redhat.com>
3389
3390 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3391 substitute by NUM_REGS throughout.
3392 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3393 (h8300s_register_name): New function for H8S registers.
3394 (h8300sx_register_name): Ditto for H8SX registers.
3395 (h8300_print_register): Revise register printing, avoid depending
3396 on 32 bit long.
0261a0d0 3397 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
3398 (h8300h_register_byte): New function for any other architecture.
3399 (h8300_register_raw_size): Remove.
3400 (h8300_register_virtual_type): Revise to return actually useful
3401 type.
3402 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3403 (h8300h_extract_struct_value_address): New function for any other
3404 architecture.
3405 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3406 set_gdbarch_register_name, set_gdbarch_register_byte,
3407 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3408 Remove calls to set_gdbarch_deprecated_register_size,
3409 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3410 set_gdbarch_deprecated_max_register_raw_size,
3411 set_gdbarch_register_virtual_size and
3412 set_gdbarch_deprecated_max_register_virtual_size entirely.
3413 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3414 set_gdbarch_long_double_bit.
3415
06194148
JJ
34162003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3417
8ffd9b1b
AJ
3418 * doublest.c (convert_doublest_to_floatformat): When dealing
3419 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
3420 processing a full 32 bits of mantissa.
3421
de4f826b
DC
34222003-06-11 David Carlton <carlton@bactrian.org>
3423
3424 * dictionary.h: New.
3425 * dictionary.c: New.
3426 * block.h: Add opaque declaration for struct dictionary.
3427 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3428 'sym' members.
3429 (BLOCK_DICT): New macro.
3430 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3431 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3432 BLOCK_SHOULD_SORT.
3433 (ALL_BLOCK_SYMBOLS): Update definition.
3434 * Makefile.in (SFILES): Add dictionary.c.
3435 (dictionary_h): New.
3436 (COMMON_OBS): Add dictionary.o.
3437 (dictionary.o): New.
3438 (ada-lang.o): Depend on dictionary_h.
3439 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3440 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3441 (mi-cmd-stack.o): Ditto.
3442 (gdbtk-cmds.o): Update dependencies.
3443 (gdbtk-stack.o): Ditto.
3444 * ada-lang.c: Include dictionary.h.
3445 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3446 (fill_in_ada_prototype, debug_print_block): Ditto.
3447 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3448 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3449 'is_sorted'.
3450 * mdebugread.c: Include dictionary.h.
3451 (struct parse_stack): Delete 'maxsyms' member.
3452 (parse_symbol): Update calls to new_block. Delete calls to
3453 shrink_block. Use dictionary methods.
3454 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3455 Update calls to new_symtab. Don't maintain maxsyms data.
3456 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3457 (add_symbol): Just call dict_add_symbol.
3458 (new_symtab): Delete 'maxsyms' argument.
3459 (new_symtab): Update calls to new_block.
3460 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3461 (shrink_block): Delete function.
3462 (fixup_sigtramp): Update call to new_block. Add symbol via
3463 dict_add_symbol.
3464 * jv-lang.c: Include dictionary.h.
3465 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3466 appropriately. Set class_symtab->free_func. Make sure the
3467 blockvector is big enough to hold two blocks.
3468 (add_class_symtab_symbol): Use dictionary methods.
3469 (free_class_block): New function.
3470 (type_from_class): Replace explicit iteration by
3471 ALL_BLOCK_SYMBOLS.
3472 * symtab.h (struct symtab): Replace 'free_ptr' method by
3473 'free_func'.
3474 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3475 sort_symtab_syms.
3476 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3477 sort_symtab_syms.
3478 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3479 Include dictionary.h.
3480 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3481 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3482 sort_symtab_syms.
3483 * objfiles.c: Include dictionary.h.
3484 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3485 * buildsym.c: Include dictionary.h.
3486 (finish_block): Use dictionary methods.
3487 (end_symtab): Set free_func to NULL, not free_ptr.
3488 * tracepoint.c: Include dictionary.h.
3489 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3490 (scope_info): Ditto.
3491 * stack.c: Include dictionary.h.
3492 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3493 (print_block_frame_labels, print_frame_arg_vars)
3494 (print_frame_args): Ditto.
3495 * symmisc.c (free_symtab_block): Use dictionary methods.
3496 (dump_symtab): Ditto.
3497 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3498 Include dictionary.h.
3499 * symfile.h: Delete declarations of sort_block_syms,
3500 sort_symtab_syms.
3501 * symfile.c (sort_block_syms): Delete.
3502 (sort_symtab_syms): Delete.
3503 * symtab.c: Include dictionary.h.
3504 (lookup_block_symbol): Use dictionary iterators.
3505 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3506 (search_symbols, make_symbol_completion_list): Ditto.
3507 (make_symbol_overload_list): Ditto.
3508 * valops.c (value_of_local): Use dict_empty.
3509 Include dictionary.h.
3510
a31f978c
JB
35112003-06-11 J. Brobecker <brobecker@gnat.com>
3512
3513 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3514
526e70c0
DC
35152003-06-11 David Carlton <carlton@bactrian.org>
3516
3517 * block.h (BLOCK_SHOULD_SORT): Delete.
3518 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3519 blocks.
3520 * ada-lang.c (ada_add_block_symbols): Ditto.
3521 * symfile.c (sort_block_syms): Delete.
3522 (sort_symtab_syms): Ditto.
3523 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3524 declarations.
3525 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3526 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3527 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3528 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3529 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3530 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3531 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3532
33c08150
JJ
35332003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3534
8ffd9b1b 3535 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
3536 bits to 128.
3537
781a750d
AC
35382003-06-11 Andrew Cagney <cagney@redhat.com>
3539
3540 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3541 REGISTER_CONVERTIBLE.
3542 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3543 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3544 * gdbarch.h, gdbarch.c: Re-generate.
3545 * arch-utils.h (deprecated_register_convertible_not): Rename
3546 generic_register_convertible_not.
3547 * arch-utils.c (deprecated_register_convertible_not): Rename
3548 generic_register_convertible.
3549 (legacy_convert_register_p, legacy_register_to_value): Update.
3550 * sh-tdep.c (sh64_push_arguments): Update.
3551 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3552 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3553 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3554 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3555 * arch-utils.c (legacy_value_to_register): Update.
3556 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3557 (rs6000_register_convert_to_raw): Make parameter "from" const.
3558 * mips-tdep.c (mips_gdbarch_init): Update.
3559 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3560 * infcmd.c (default_print_registers_info): Update.
3561 * ia64-tdep.c (ia64_gdbarch_init): Update.
3562 (ia64_register_convert_to_raw): Make parameter "from" const.
3563 * i386-tdep.c (i386_gdbarch_init): Update.
3564 (i386_register_convert_to_raw): Update.
3565
cd90e54f
AC
35662003-06-11 Andrew Cagney <cagney@redhat.com>
3567
3568 * remote-fileio.c: Include "remote-fileio.h".
3569 * Makefile.in (remote-fileio.o): Update dependencies.
3570 (remote_fileio_h): Fix typo.
3571
a78f21af
AC
35722003-06-11 Andrew Cagney <cagney@redhat.com>
3573
3574 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3575 (xstormy16_save_dummy_frame_tos): Make static.
3576 (_initialize_xstormy16_tdep): Add declaration.
3577 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3578 * v850-tdep.c: Make local functions static.
3579 (_initialize_v850_tdep): Add declaration.
3580 * sparc-tdep.c: Make local functions static.
3581 (_initialize_sparc_tdep): Add declaration.
3582 * sh-tdep.c: Make local functions static.
3583 (_initialize_sh_tdep): Add declaration.
3584 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3585 * s390-tdep.c: Make local functions static.
3586 (_initialize_s390_tdep): Add declaration.
3587 * dbxread.c (find_stab_function_addr): Make static.
3588 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3589 * ocd.c (_initialize_remote_ocd): Add declaration.
3590 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3591 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3592 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3593 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3594 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3595 * remote-array.c (_initialize_array): Add declaration.
3596 (_initialize_remote_monitors): Add declaration.
3597 * remote-mips.c: Make local functions static.
3598 (_initialize_remote_mips): Add declaration.
3599 * mcore-tdep.c: Make all local functions static.
3600 (_initialize_mcore_tdep): Add declaration.
3601 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3602 * abug-rom.c (_initialize_abug_rom): Add declaration.
3603 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3604 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3605 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3606 * remote-est.c (_initialize_est): Add declaration.
3607 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3608 (m68hc11_call_dummy_address): Make static.
3609 * ia64-tdep.c: Make local functions static.
3610 (_initialize_ia64_tdep): Add declaration.
3611 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3612 * monitor.c (monitor_wait_filter): Make static.
3613 (_initialize_remote_monitors): Add declaration.
3614 * remote-hms.c (_initialize_remote_hms): Add declaration.
3615 * remote-e7000.c (fetch_regs_from_dump): Make static.
3616 (expect_n): Make static.
3617 (_initialize_remote_e7000): Add declaration.
3618 * ser-e7kpc.c: Always include "defs.h".
3619 (_initialize_ser_e7000pc): Add declaration.
3620 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3621 * cris-tdep.c: Make all but one function static.
3622 (_initialize_cris_tdep): Add declaration.
3623 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3624 * solib.c (update_solib_list): Make static.
3625 (_initialize_solib): Add declaration.
3626 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3627 (_initialize_avr_tdep): Add declaration.
3628 * remote-rdi.c (voiddummy): Make static.
3629 (_initialize_remote_rdi): Add declaration.
3630 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3631 * remote-rdp.c (send_rdp): Make static.
3632 (_initialize_remote_rdp): Add declaration.
3633 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3634
cbcdb1f5
CV
36352003-06-11 Corinna Vinschen <vinschen@redhat.com>
3636
3637 * remote-fileio.c: Make ari happy.
3638
a191ea8d
JB
36392003-06-10 J. Brobecker <brobecker@gnat.com>
3640
3641 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3642 fetching the trailing bytes of the buffer we are about to write.
3643
0ef75e11
AC
36442003-06-10 Andrew Cagney <cagney@redhat.com>
3645
3646 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3647 * Makefile.in (remote-fileio.o): Update dependencies.
3648 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3649 include <setjmp.h>, or <sys/types.h> conditional on USG.
3650 (remote_fio_jmp_buf): Delete global variable.
3651
449092f6 36522003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 3653 Martin M. Hunt <hunt@redhat.com>
449092f6 3654
559fa028
AC
3655 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3656 (SFILES): Add remote-fileio.c.
3657 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3658 dependencies for building remote.o.
449092f6
CV
3659 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3660 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 3661 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
3662 static storage class.
3663 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3664 'F' packet.
3665 (_initialize_remote): Call initialize_remote_fileio().
3666 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
3667 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3668 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3669 (captured_main): Initialize new ui_files.
3670 * ui-file.c: Add read and fgets input functions.
3671 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3672 (null_file_read): New function.
3673 (ui_file_read): New function.
3674 (set_ui_file_read): New function.
3675 (stdio_file_read): New function.
3676 * ui-file.h: New type ui_file_read_ftype.
3677 (set_ui_file_read): Declare.
3678 (ui_file_read): Declare.
3679
248de703
AC
36802003-06-09 Andrew Cagney <cagney@redhat.com>
3681
3682 * frame.h (deprecated_unwind_get_saved_register): Rename
3683 generic_unwind_get_saved_register, update comments.
3684 * mips-tdep.c (mips_get_saved_register): Update.
3685 * frame.c (deprecated_unwind_get_saved_register): Update.
3686
0ed8aa57
AC
36872003-06-09 Andrew Cagney <cagney@redhat.com>
3688
3689 * vax-tdep.c (vax_frame_locals_address): Delete function.
3690 (vax_gdbarch_init): Do not set frame_locals_address.
3691 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3692 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3693 * s390-tdep.c (s390_frame_args_address): Delete function.
3694 (s390_gdbarch_init): Do not set frame_args_address or
3695 frame_locals_address.
3696 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3697 (ns32k_gdbarch_init): Do not set frame_locals_address.
3698 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3699 (hppa_frame_locals_address): Delete function.
3700 (hppa_gdbarch_init): Do not set frame_args_address, or
3701 frame_locals_address.
3702 * arm-tdep.c (arm_frame_args_address): Delete.
3703 (arm_frame_locals_address): Delete.
3704 (arm_gdbarch_init): Do not set frame_args_address, or
3705 frame_locals_address.
3706
983a287a
AC
37072003-06-09 Andrew Cagney <cagney@redhat.com>
3708
3709 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3710 * gdbarch.h, gdbarch.c: Re-generate.
3711 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3712 * arch-utils.c (frame_num_args_unknown): Delete function.
3713 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3714 (frame_info): Use FRAME_NUM_ARGS_P.
3715 * arm-tdep.c (arm_frame_num_args): Delete function.
3716 (arm_gdbarch_init): Do not set frame_num_args.
3717 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3718 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3719 (hppa_gdbarch_init): Do not set frame_num_args.
3720 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3721 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3722 frame_num_args to default frame_num_args_unknown.
3723 * v850-tdep.c (v850_gdbarch_init): Ditto.
3724 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3725 * sh-tdep.c (sh_gdbarch_init): Ditto.
3726 * s390-tdep.c (s390_gdbarch_init): Ditto.
3727 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3728 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3729 * mips-tdep.c (mips_gdbarch_init): Ditto.
3730 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3731 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3732 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3733 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3734 * i386-tdep.c (i386_gdbarch_init): Ditto.
3735 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3736 * frv-tdep.c (frv_gdbarch_init): Ditto.
3737 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3738 * cris-tdep.c (cris_gdbarch_init): Ditto.
3739 * avr-tdep.c (avr_gdbarch_init): Ditto.
3740 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3741
8d3b0994
AC
37422003-06-09 Andrew Cagney <cagney@redhat.com>
3743
3744 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3745 (print_frame_args): Moved to "stack.c".
3746 * stack.c: Include "gdb_assert.h".
3747 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3748 (print_frame_args): Moved from "printcmd.c".
3749 * frame.h (print_frame_args): Delete declaration.
3750 * Makefile.in (stack.o): Update dependencies.
3751
25e3a86b
AC
37522003-06-08 Andrew Cagney <cagney@redhat.com>
3753
3754 * frame.c (get_prev_frame): Remove reference to
3755 frame_args_address_correct in comments.
3756 * frame-base.c (default_frame_args_address): Delete code
3757 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3758 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3759 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3760 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3761 (vax_frame_args_address_correct): Delete declaration.
3762
a9e5fdc2
AC
37632003-06-08 Andrew Cagney <cagney@redhat.com>
3764
3765 * gdbarch.sh (UNWIND_SP): Add.
3766 * gdbarch.h, gdbarch.c: Re-generate.
3767 * frame.c (frame_sp_unwind): New function.
3768 (get_frame_sp): New function.
3769 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3770 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3771 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3772 value.
3773 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3774 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3775
8983bd83
AC
37762003-06-08 Andrew Cagney <cagney@redhat.com>
3777
7fec2c59
AC
3778 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3779 REMOTE_BREAKPOINT.
3780 * remote.c: Update.
3781 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3782 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3783 * config/m68k/tm-sun3.h: Update.
3784 * config/m68k/tm-m68klynx.h: Update.
3785 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3786
8983bd83
AC
3787 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3788 trad_frame". Update comments.
3789 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3790 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3791 (trad_frame_register_value, trad_frame_prev_register): Update.
3792
b9362cc7
AC
37932003-06-08 Andrew Cagney <cagney@redhat.com>
3794
3795 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3796 from GCC's acinclude.m4.
3797 * configure.in: Check for getopt's delcaration.
8ffd9b1b 3798 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
3799 * main.c (error_init): Delete declaration.
3800 * defs.h (error_init): Declare.
3801 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3802 (rs6000_convert_from_func_ptr_addr): Make static.
3803 (_initialize_rs6000_tdep): Add declaration.
3804 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3805 (show_commands, set_verbose, show_history): Delete declaration.
3806 * top.h (set_verbose): Add declaration.
3807 (show_history, set_history, show_commands): Add declaration.
3808 (do_restore_instream_cleanup): Add declaration.
3809 * objc-lang.c (specialcmp): Make static.
3810 (print_object_command): Make static.
3811 (find_objc_msgsend): Make static.
3812 (find_objc_msgcall_submethod_helper): Make static.
3813 (find_objc_msgcall_submethod): Make static.
3814 (_initialize_objc_language): Add declaration.
3815 (find_implementation_from_class): Make static.
3816 (find_implementation): Make static.
3817 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3818 * objc-lang.h (lookup_struct_typedef): Add declaration.
3819 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3820 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3821 (do_restore_user_call_depth): Make static.
3822 (do_restore_instream_cleanup): Delete declaration.
3823 (dont_repeat): Delete declaration.
3824 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3825 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3826 * reggroups.c (_initialize_reggroup): Add declaration.
3827 * cp-support.c (_initialize_cp_support): Add declaration.
3828 * cp-abi.c (_initialize_cp_abi): Add declaration.
3829 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3830 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3831 (_initialize_gnu_v3_abi): Add declaration.
3832 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3833 (_initialize_gnu_v2_abi): Add declaration.
3834 * frame-base.c (_initialize_frame_base): Add declaration.
3835 * doublest.c (floatformat_from_length): Make static.
3836 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3837 * frame.c (create_sentinel_frame): Make static.
3838 (_initialize_frame): Add declaration.
3839 * top.c (do_catch_errors): Make static.
3840 (gdb_rl_operate_and_get_next_completion): Make static.
3841 * typeprint.c: Include "typeprint.h".
3842 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3843 (sentinel_frame_this_id): Make static.
3844 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3845 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3846 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3847 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3848 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3849 * maint.c (maintenance_print_architecture): Make static.
3850 * signals/signals.c (_initialize_signals): Add declaration.
3851 * std-regs.c (_initialize_frame_reg): Add declaration.
3852 * jv-exp.y (push_variable): ISO C definition.
3853 (push_qualified_expression_name): Ditto.
3854 * memattr.c (_initialize_mem): Add declaration.
3855 * remote.c (remote_check_watch_resources): Make static.
3856 (remote_stopped_by_watchpoint): Make static.
3857 (remote_stopped_data_address): Make static.
3858 * d10v-tdep.c (nr_dmap_regs): Make static.
3859 (a0_regnum): Make static.
3860 (d10v_frame_unwind_cache): Make static.
3861 (d10v_frame_p): Make static.
3862 * osabi.c (show_osabi): Make static.
3863 (_initialize_gdb_osabi): Add extern declaration.
3864 * gdbtypes.c (make_qualified_type): Make static.
3865 (safe_parse_type): Make static.
3866 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3867 * macrotab.c (macro_bcache_free): Make static.
3868 * interps.c (interp_set_quiet): Make static.
3869 (interpreter_exec_cmd): Make static.
3870 * stack.h (select_frame_command): New file.
3871 * stack.c: Include "stack.h".
3872 (select_frame_command_wrapper): Delete function.
3873 (select_frame_command): Make global.
3874 * infcall.c: Include "infcall.h".
3875 * linespec.c: Include "linespec.h".
3876 * symfile.c (sections_overlap): Make static.
3877 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3878 * charset.c (_initialize_charset): Add missing prototype.
3879 * regcache.c (init_legacy_regcache_descr): Make static.
3880 (do_regcache_xfree): Make static.
3881 (regcache_xfer_part): Make static.
3882 (_initialize_regcache): Add missing prototype.
3883 * breakpoint.c (parse_breakpoint_sals): Make static.
3884 (breakpoint_sals_to_pc): Make static.
3885 * interps.h (clear_interpreter_hooks): ISO C declaration.
3886 * Makefile.in (stack_h): Define.
3887 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3888 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3889
a0f267c7
AC
38902003-06-08 Andrew Cagney <cagney@redhat.com>
3891
3892 * Makefile.in (d10v-tdep.o): Update dependencies.
3893 (SFILES): Add trad-frame.c.
3894 (trad_frame_h): Define.
3895 (COMMON_OBS): Add trad-frame.o.
3896 (trad-frame.o): Specify dependencies.
3897 * d10v-tdep.c: Include "trad-frame.h".
3898 (saved_regs_unwinder): Delete function.
3899 (d10v_frame_prev_register): Use trad_frame_prev_register.
3900 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3901 trad_frame", delete "regs" and "prev_sp".
3902 (prologue_find_regs): Use trad-frame.
3903 * trad-frame.h, trad-frame.c: New files.
3904
4538b4f4
MK
39052003-06-08 Mark Kettenis <kettenis@gnu.org>
3906
3907 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3908
a0273b2f
AF
39092003-06-07 Adam Fedor <fedor@gnu.org>
3910
3911 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3912 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3913 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3914 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 3915 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
3916 Use it.
3917
3a6c3343
AC
39182003-06-07 Andrew Cagney <cagney@redhat.com>
3919
3920 * symfile.h: Re-indent, clean up comments.
3921
b46e02f6
AC
39222003-06-07 Andrew Cagney <cagney@redhat.com>
3923
3924 * inferior.h (deprecated_write_sp): Replace
3925 generic_target_write_sp.
3926 * regcache.c (deprecated_write_sp): Replace
3927 generic_target_write_sp.
3928 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3929 * vax-tdep.c (vax_gdbarch_init): Update.
3930 * v850-tdep.c (v850_gdbarch_init): Update.
3931 * sparc-tdep.c (sparc_gdbarch_init): Update.
3932 * sh-tdep.c (sh_gdbarch_init): Update.
3933 * s390-tdep.c (s390_gdbarch_init): Update.
3934 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3935 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3936 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3937 * mcore-tdep.c (mcore_gdbarch_init): Update.
3938 * m68k-tdep.c (m68k_gdbarch_init): Update.
3939 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3940 * ia64-tdep.c (ia64_gdbarch_init): Update.
3941 * h8300-tdep.c (h8300_gdbarch_init): Update.
3942 * frv-tdep.c (frv_gdbarch_init): Update.
3943 * cris-tdep.c (cris_gdbarch_init): Update.
3944 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3945
a42e117c
AC
39462003-06-07 Andrew Cagney <cagney@redhat.com>
3947
3948 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3949 Assert that PC_REGNUM is valid.
3950 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3951
bd1ce8ba
AC
39522003-06-07 Andrew Cagney <cagney@redhat.com>
3953
3954 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3955 * gdbarch.h, gdbarch.c: Regenerate.
3956 * mn10300-tdep.c: Include "gdb_assert.h".
3957 (mn10300_read_fp): New function.
3958 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3959 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3960 * ia64-tdep.c: Include "gdb_assert.h".
3961 (ia64_read_fp): New function.
3962 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3963 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3964 * regcache.c (generic_target_read_sp): Delete function.
3965 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3966 * inferior.h (generic_target_read_sp): Delete declaration.
3967 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3968 generic_target_read_sp.
3969 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3970 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3971 * sh-tdep.c (sh_gdbarch_init): Ditto.
3972 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3973 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3974
ec5cbaec
AC
39752003-06-07 Andrew Cagney <cagney@redhat.com>
3976
3977 * gdbarch.sh: Comment each field of startup_gdbarch.
3978 * gdbarch.h, gdbarch.c: Re-generate.
3979
cde9ea48
AC
39802003-06-07 Andrew Cagney <cagney@redhat.com>
3981
3982 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3983 * gdbarch.h, gdbarch.c: Re-generate.
3984 * regcache.c: Update comments on read_pc et.al.
3985 (generic_target_read_pc): Delete function.
3986 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3987 * inferior.h (generic_target_read_pc): Delete declaration.
3988 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3989 generic_target_read_pc.
3990 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3991 * sh-tdep.c (sh_gdbarch_init): Ditto.
3992 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3993 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 3994
9a90a780
AC
39952003-06-07 Andrew Cagney <cagney@redhat.com>
3996
3997 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3998 "index" with "special_local_sect". Use strcmp instead of STREQ.
3999 Append period to coments.
4000
a39a16c4
MM
40012003-06-06 Mark Mitchell <mark@codesourcery.com>
4002
4003 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4004 (elfstab_offset_sections): Likewise.
4005 * gdb-stabs.h (stab_section_info): Likewise.
4006 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4007 * objfiles.c (objfile_relocate): Likewise.
4008 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4009 * remote.c (get_offsets): Likewise.
4010 (remote_cisco_objfile_relocate): Likewise.
4011 * somread.c (som_symfile_offsets): Likewise.
4012 * symfile.c (alloc_section_addr_info): New function.
4013 (build_section_addr_info_from_section_tab): Use it.
4014 (free_section_addr_info): Adjust.
4015 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4016 (syms_from_objfile): Allocate local_addr dynamically.
4017 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4018 dynamically.
4019 (add_symbol_file_command): Allocate sect_opts dynamically.
4020 (reread_symbols): Avoid use of SECT_OFF_MAX.
4021 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4022 (alloc_section_addr_info): Declare it.
4023 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4024 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4025 dynamically.
4026 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 4027
20c6c2f8
AC
40282003-06-06 Andrew Cagney <cagney@redhat.com>
4029
4030 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4031 (d10v_frame_unwind_cache): Do not set "return_pc".
4032
884a26c8
MS
40332003-06-06 Michael Snyder <msnyder@redhat.com>
4034
4035 * h8300-tdep.c: Make tidy (long lines).
4036
088ce440
ML
40372003-06-06 Michal Ludvig <mludvig@suse.cz>
4038
8ffd9b1b 4039 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
4040 to regcache_collect().
4041
7d773d96
JB
40422003-06-05 J. Brobecker <brobecker@gnat.com>
4043
4044 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4045 pc_in_sigtramp multiarch method.
4046 (hppa_hpux_som_init_abi): Use it.
4047 (hppa_hpux_elf_init_abi): Likewise.
4048 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4049 macro has been multiarched.
4050 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4051 macro here, as hppa64 isn't multiarched yet.
4052
1df6926e
AC
40532003-06-05 Andrew Cagney <cagney@redhat.com>
4054
4055 * Makefile.in (value_h): Add $(frame_h).
4056 * value.h: Include "frame.h".
4057 (struct value): Replace "frame_addr" with "frame_id".
4058 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4059 * values.c (allocate_value): Use VALUE_FRAME_ID.
4060 (value_copy): Use VALUE_FRAME_ID.
4061 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4062 * valops.c (value_assign): Update. Use frame_find_by_id.
4063
6b53acc6
ML
40642003-06-05 Michal Ludvig <mludvig@suse.cz>
4065
4066 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4067 in each pass.
4068
4d9850d3
JJ
40692003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4070
4071 * thread-db.c (check_event): For create/death event breakpoints,
4072 loop through all messages to ensure that we read the message
4073 corresponding to the breakpoint we are at.
4074
8efca6ba
MS
40752003-06-04 Michael Snyder <msnyder@redhat.com>
4076
4077 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4078
0912c7f2
MK
40792003-06-04 Mark Kettenis <kettenis@gnu.org>
4080
4081 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4082 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4083 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4084 when handling .eh_frame sections.
4085
4e370325
JB
40862003-06-04 J. Brobecker <brobecker@gnat.com>
4087
4088 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4089 prepare_to_proceed procedure instead of the hppa-specific one.
4090 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4091
b757528f 40922003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4093
b757528f
JJ
4094 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4095 * config.in: Regenerated.
4096 * configure.in: Add test for syscall function and check for
4097 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4098 * configure: Regenerated.
4099 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4100 <sys/syscall.h>.
4101 (kill_lwp): New function that uses tkill syscall or
4102 uses kill, depending on whether threading model is nptl or not.
4103 All callers of kill() changed to use kill_lwp().
4104 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4105 see if all threads have already exited in the nptl model.
4106 (stop_and_resume_callback): New callback function used by the
4107 lin_lwp_wait thread exit handling code.
4108 (stop_wait_callback): Check for threads already having exited and
4109 delete such threads fromt the lwp list when discovered.
4110 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 4111
b757528f
JJ
4112 Roland McGrath <roland@redhat.com>
4113 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4114 nptl libthread_db.
4115
087779b1
RH
41162003-06-03 Richard Henderson <rth@redhat.com>
4117
b21fd293
RH
4118 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4119 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4120 (alpha_sigtramp_frame_prev_register): Likewise.
4121 (alpha_heuristic_frame_prev_register): Likewise.
4122 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4123
8ffd9b1b 4124 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
4125 alpha-specific register id names.
4126 (alpha_mdebug_frame_unwind_cache): Likewise.
4127 (alpha_mdebug_frame_prev_register): Likewise.
4128
baa490c4
RH
41292003-06-03 Richard Henderson <rth@redhat.com>
4130
4131 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4132 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4133 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4134 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4135 unwind routines.
4136 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4137 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4138 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4139
4140 * alpha-linux-tdep.c: Remove unnecessary includes.
4141 * Makefile.in (alpha-linux-tdep.o): Update.
4142
41432003-06-03 Richard Henderson <rth@redhat.com>
4144
4145 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4146 (alphabsd_fill_fpreg): Likewise.
4147
f534e522
JB
41482003-06-03 J. Brobecker <brobecker@gnat.com>
4149
4150 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4151 references to struct frame_info fields by calls to the equivalent
4152 accessors. Necessary now that frame_info is opaque.
4153
4035536b
JB
41542003-06-03 J. Brobecker <brobecker@gnat.com>
4155
4156 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4157 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4158 structure, field no longer exists.
4159
0bd79c5c
JB
41602003-06-03 J. Brobecker <brobecker@gnat.com>
4161
4162 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4163 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4164
37bb6d9f
JB
41652003-06-03 J. Brobecker <brobecker@gnat.com>
4166
4167 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4168 references to struct frame_info fields by calls to the equivalent
4169 accessors. Necessary now that frame_info is opaque.
4170
852ee05c
JB
41712003-06-03 J. Brobecker <brobecker@gnat.com>
4172
4173 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4174 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4175 structure, field no longer exists.
4176
7d58c67d
TR
41772003-06-03 Theodore A. Roth <troth@openavr.org>
4178
8ffd9b1b 4179 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
4180 accumulation of the size of all registers instead of blindly using
4181 DEPRECATED_REGISTER_BYTES.
4182
0a48e7e8
MS
41832003-06-03 Michael Snyder <msnyder@redhat.com>
4184
4185 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4186 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4187 for h8300sx.
4188
9798ab0d
JB
41892003-06-03 J. Brobecker <brobecker@gnat.com>
4190
4191 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4192 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4193
00b037e2
AC
41942003-06-03 Andrew Cagney <cagney@redhat.com>
4195
4196 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4197 (sparc_convert_to_raw): Delete function.
4198 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4199 register_convert_to_virtual.
4200
043b2f77
JJ
42012003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4202
4203 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4204 layer if not dealing with a statically-linked threaded program.
4205
f43caff8
KW
42062003-06-03 Kris Warkentin <kewarken@qnx.com>
4207
4208 * solib.c (solib_open): Update comment to reflect actual search order.
4209
ae1e7417
AC
42102003-06-03 Andrew Cagney <cagney@redhat.com>
4211
4212 * frame.c (get_frame_memory_signed): New function.
4213 (get_frame_memory, get_frame_memory_unsigned): New function.
4214 (get_frame_arch): New function.
4215 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4216 (get_frame_memory, get_frame_unsigned_memory): Declare.
4217 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4218 get_frame_memory_unsigned and get_frame_arch.
4219 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4220
cb123844
RG
42212003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4222
4223 * MAINTAINERS (write after approval): Add myself.
4224
1bb792e9
JB
42252003-06-03 Jim Blandy <jimb@redhat.com>
4226
4227 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4228 elements of gregset_t are 64 bits each, but access registers
4229 are still 32 bits, so they're packed two per gregset_t
4230 element. Unpack/pack them properly.
4231
aee8d8ba
DC
42322003-06-02 David Carlton <carlton@bactrian.org>
4233
4234 * linespec.c (find_methods): Break out code into
4235 add_matching_methods and add_constructors.
4236 (add_matching_methods): New.
4237 (add_constructors): Ditto.
4238
bf7488d2
AC
42392003-06-02 Andrew Cagney <cagney@redhat.com>
4240
bf7488d2
AC
4241 * sparc-tdep.c (sparc_print_registers): Delete call to
4242 REGISTER_CONVERTIBLE.
4243 (sparc_gdbarch_init): Do not set register_convertible.
4244 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4245 * frv-tdep.c (frv_gdbarch_init): Ditto.
4246 * cris-tdep.c (cris_gdbarch_init): Ditto.
4247
adedef68
EZ
42482003-06-02 Elena Zannoni <ezannoni@redhat.com>
4249
8ffd9b1b 4250 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
4251 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4252 (syms_from_objfile): Ditto.
4253
650fcc91
AS
42542003-06-03 Andreas Schwab <schwab@suse.de>
4255
4256 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4257 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4258
df4a182b
RH
42592003-06-02 Richard Henderson <rth@redhat.com>
4260
4261 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4262 a member of all_reggroup.
4263
c483c494
RH
42642003-06-02 Richard Henderson <rth@redhat.com>
4265
4266 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4267 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4268 (alpha_lds, alpha_sts): New.
4269 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 4270 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
4271 restructure and fail for type sizes other than 4 or 8.
4272 (alpha_value_to_register): Similarly.
4273 (alpha_extract_return_value): Use alpha_sts.
4274 (alpha_store_return_value): Use alpha_lds.
4275 (alpha_gdbarch_init): Update hooks.
4276
b38b6be2
RH
42772003-06-02 Richard Henderson <rth@redhat.com>
4278
4279 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4280 regnum identifiers.
4281 (alpha_sigtramp_register_address): Likewise.
4282
98a8e1e5
RH
42832003-06-02 Richard Henderson <rth@redhat.com>
4284
4285 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4286 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4287 * alpha-tdep.h: Declare them.
4288
4289 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4290 Remove zerobuf. Don't error on UNIQUE.
4291 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4292 (ALPHA_REGSET_UNIQUE): Provide default.
4293 (supply_gregset): Use alpha_supply_int_regs.
4294 (fill_gregset): Use alpha_fill_int_regs.
4295 (supply_fpregset): Use alpha_supply_fp_regs.
4296 (fill_fpregset): Use alpha_fill_fp_regs.
4297 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4298 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4299 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4300 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4301 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4302 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4303
67dfac52
RH
43042003-06-02 Richard Henderson <rth@redhat.com>
4305
f75d70cc
RH
4306 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4307
67dfac52
RH
4308 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4309 (alpha_store_return_value): Likewise.
4310
0cf566ec
DC
43112003-06-02 David Carlton <carlton@math.stanford.edu>
4312
4313 * block.c (contained_in): Add 'const' to arguments.
4314 (block_function): Ditto.
4315 * block.h: Update declarations for block_function and
4316 contained_in.
4317
cdef89d0
DC
43182003-06-02 David Carlton <carlton@math.stanford.edu>
4319
4320 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4321 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4322 * p-valprint.c (pascal_val_print): Ditto.
4323 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4324
72667056
RH
43252003-06-02 Richard Henderson <rth@redhat.com>
4326
98a8e1e5
RH
4327 * alpha-tdep.c (alpha_push_dummy_call): Use
4328 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 4329
8ffd9b1b 4330 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
4331 sign-extension of 32-bit values.
4332 (alpha_store_return_value): Similarly.
0ede8eca 4333
98a8e1e5
RH
4334 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4335 (alpha_extract_return_value): Likewise.
4336 (alpha_store_return_value): Likewise.
7b5e1cb3 4337
98a8e1e5
RH
4338 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4339 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 4340
98a8e1e5
RH
4341 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4342 (alpha_extract_struct_value_address): Likewise.
4343 (alpha_store_return_value): Likewise.
4344 (alpha_store_struct_return): Remove.
4345 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 4346
98a8e1e5
RH
4347 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4348 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4349 macros where appropriate.
4350 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4351 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 4352
98a8e1e5
RH
4353 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4354 for SP, GP; void_func_ptr for PC; non-language-specific types
4355 for all others.
4356 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 4357
6dd77b81
RH
43582003-06-02 Richard Henderson <rth@redhat.com>
4359
4360 * top.h (lim_at_start): Declare.
4361 * main.c (captured_main): Set it.
4362 * top.c (lim_at_start): Define.
4363 (command_loop): Use it instead of &environ.
4364 * event-top.c (command_handler): Likewise.
4365
f4dbdb54
JT
43662003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4367
4368 * mipsnbsd-tdep.c: Update copyright years.
4369 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4370
8f285956
RH
43712003-06-01 Richard Henderson <rth@redhat.com>
4372
98a8e1e5
RH
4373 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4374 (alpha-linux-tdep.o): Update dependencies.
4375 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4376 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 4377
615967cb
RH
43782003-06-01 Richard Henderson <rth@redhat.com>
4379
98a8e1e5
RH
4380 * alpha-tdep.c (alpha_register_reggroup_p): New.
4381 (alpha_gdbarch_init): Register it.
615967cb 4382
b59661bd
AC
43832003-06-02 Andrew Cagney <cagney@redhat.com>
4384
4385 * dwarfread.c: Eliminate "register"
4386 (decode_die_type): Eliminate assignment within "if".
4387 (struct_type, decode_array_element_type): Ditto.
4388 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4389 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4390 (decode_modified_type, completedieinfo): Ditto.
4391 * block.c: Eliminate "register".
4392 (blockvector_for_pc_sect): Eliminate assignment within "if".
4393 * cp-support.h (struct symbol): Opaque declaration.
4394 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4395
5ef165c2
RH
43962003-06-01 Richard Henderson <rth@redhat.com>
4397
98a8e1e5
RH
4398 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4399 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 4400
143985b7
AF
44012003-06-01 Adam Fedor <fedor@gnu.org>
4402
4403 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4404 * gdbarch.[ch]: Regenerate.
4405 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4406 (hppa_gdbarch_init): Set it in the gdbarch vector.
4407 * i386-tdep.c (i386_fetch_pointer_argument): New
4408 (i386_gdbarch_init): Set it into gdbarch.
4409 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4410 (rs6000_gdbarch_init): Set it in gdbarch.
4411 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4412 (sparc_gdbarch_init): Set it in gdbarch.
4413
ae0167b9
AC
44142003-06-01 Andrew Cagney <cagney@redhat.com>
4415
7c0b4a20
AC
4416 * defs.h (extract_address): Delete declaration.
4417 * findvar.c (extract_address): Delete function.
4418 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4419 extract_address with the inline equivalent,
4420 extract_unsigned_integer.
4421 (xstormy16_extract_struct_value_address): Ditto.
4422 (xstormy16_pointer_to_address): Ditto.
4423 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4424 * v850-tdep.c (v850_push_arguments): Ditto.
4425 (v850_extract_return_value): Ditto.
4426 (v850_extract_struct_value_address): Ditto.
4427 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4428 (sparcnbsd_get_longjmp_target_64): Ditto.
4429 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4430 (get_longjmp_target): Ditto.
4431 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4432 (sh64_extract_struct_value_address): Ditto.
4433 (sh_push_arguments): Ditto.
4434 (sh64_push_arguments): Ditto.
4435 * remote-vxsparc.c (vx_read_register): Ditto.
4436 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4437 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4438 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4439 * mipsv4-nat.c (get_longjmp_target): Ditto.
4440 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4441 * mips-nat.c (get_longjmp_target): Ditto.
4442 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4443 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4444 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4445 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4446 * irix5-nat.c (get_longjmp_target): Ditto.
4447 * irix4-nat.c (get_longjmp_target): Ditto.
4448 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4449 (ia64_push_arguments): Ditto.
4450 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4451 * h8300-tdep.c (h8300_push_arguments): Ditto.
4452 (h8300_store_return_value): Ditto.
4453 (h8300_extract_struct_value_address): Ditto.
4454 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4455 (frv_push_arguments): Ditto.
4456 * avr-tdep.c (avr_pointer_to_address): Ditto.
4457 (avr_push_arguments): Ditto.
4458 * arm-tdep.c (arm_push_dummy_call): Ditto.
4459 (arm_get_longjmp_target): Ditto.
4460 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4461 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4462 (alpha_get_longjmp_target): Ditto.
4463
ae0167b9
AC
4464 * solib-irix.c (extract_mips_address): Inline extract_address,
4465 replacing it with extract_signed_integer.
4466 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4467 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4468 (first_link_map_member, open_symbol_file_object): Ditto.
4469 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4470 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4471 (LM_NEXT, LM_NAME): Ditto.
4472
44d88583
RH
44732003-06-01 Richard Henderson <rth@redhat.com>
4474
98a8e1e5
RH
4475 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4476 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4477 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4478 (alpha_cannot_store_register): Likewise.
4479 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4480 * alpha-nat.c (supply_gregset): Likewise.
4481 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 4482
310e9b6a
AC
44832003-06-01 Andrew Cagney <cagney@redhat.com>
4484
4485 * infcall.c (call_function_by_hand): Update comment on
4486 DEPRECATED_DUMMY_WRITE_SP.
4487
4488 * mips-tdep.c (mips_gdbarch_init): Do not set
4489 deprecated_dummy_write_sp.
4490 (mips_eabi_push_dummy_call): Set the SP register.
4491 (mips_o64_push_dummy_call): Set the SP register.
4492 (mips_o32_push_dummy_call): Set the SP register.
4493 (mips_n32n64_push_dummy_call): Set the SP register.
4494
5ab84872
RH
44952003-06-01 Richard Henderson <rth@redhat.com>
4496
98a8e1e5
RH
4497 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4498 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4499 (supply_gregset): Likewise.
4500 * alpha-tdep.c (alpha_store_return_value): Likewise.
4501 (alpha_get_longjmp_target): Likewise.
4502 (alpha_register_name): Constify array.
4503 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4504 deprecated_register_size, deprecated_register_bytes,
4505 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4506 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4507 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 4508
09cc52fd
RH
45092003-06-01 Richard Henderson <rth@redhat.com>
4510
4511 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4512 from arg_reg_buffer to regcache to avoid double conversion.
4513
c7f16359
MK
45142003-06-01 Mark Kettenis <kettenis@gnu.org>
4515
4516 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4517 SP_REGNUM.
4518 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4519 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4520
7131cb6e
RH
45212003-06-01 Richard Henderson <rth@redhat.com>
4522
98a8e1e5
RH
4523 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4524 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 4525
f3e0f90b
RH
45262003-06-01 Richard Henderson <rth@redhat.com>
4527
98a8e1e5
RH
4528 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4529 not overlapping PC_REGNUM.
f3e0f90b 4530
c88e30c0
RH
45312003-06-01 Richard Henderson <rth@redhat.com>
4532
98a8e1e5
RH
4533 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4534 alpha_push_arguments. Don't dump argument register data to
4535 the target stack. Fix float and 128-bit long double semantics.
4536 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4537 (alpha_fix_call_dummy): Remove.
4538 (alpha_call_dummy_words): Remove.
4539 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 4540
f1a559ae
RH
45412003-06-01 Richard Henderson <rth@redhat.com>
4542
4543 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4544
5e045346
AC
45452003-06-01 Andrew Cagney <cagney@redhat.com>
4546
95404a3e
AC
4547 * mips-tdep.c (is_mips16_addr): New function.
4548 (make_mips16_addr, unmake_mips16_addr): New functions.
4549 (pc_is_mips16, mips_fetch_instruction): Use.
4550 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4551 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4552 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4553 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4554 TARGET_MIPS.
4555 * config/mips/tm-mips.h: Update copyright.
4556 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4557 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4558 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4559 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4560 (TM_PRINT_INSN_MACH): Delete.
4561 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4562
5e045346
AC
4563 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4564 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4565 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4566 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4567 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4568 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4569 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4570 mips*-*-riscos* and mips*-*-sysv* onto mips.
4571 * config/mips/mips64.mt: New file.
4572 * config/mips/mips.mt: New file.
4573 * config/mips/littlemips.mt: Delete file.
4574 * config/mips/decstation.mt: Delete file.
4575 * config/mips/vr4300el.mt: Delete file.
4576 * config/mips/vr5000el.mt: Delete file.
4577 * config/mips/vr5000.mt: Delete file.
4578 * config/mips/vr4100.mt: Delete file.
4579 * config/mips/vr4xxxel.mt: Delete file.
4580 * config/mips/vr4300.mt: Delete file.
4581 * config/mips/vr4xxx.mt: Delete file.
4582 * config/mips/bigmips.mt: Delete file.
4583 * config/mips/bigmips64.mt: Delete file.
4584 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4585 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4586 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4587 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4588 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4589 "tm-bigmips.h".
4590 * config/mips/tm-irix3.h: Ditto.
4591 * config/mips/tm-mipsv4.h: Ditto.
4592 * config/mips/tm-embed.h: Ditto.
4593 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4594 "tm-bigmips64.h".
4595 * config/mips/tm-vr5000el.h: Delete file.
4596 * config/mips/tm-tx39l.h: Delete file.
4597 * config/mips/tm-vr4300el.h: Delete file.
4598 * config/mips/tm-vr4xxxel.h: Delete file.
4599 * config/mips/tm-vr4300.h: Delete file.
4600 * config/mips/tm-vr4100.h: Delete file.
4601 * config/mips/tm-vr4xxx.h: Delete file.
4602 * config/mips/tm-vr5000.h: Delete file.
4603 * config/mips/tm-embedl64.h: Delete file.
4604 * config/mips/tm-embedl.h: Delete file.
4605 * config/mips/tm-embed64.h: Delete file.
4606 * config/mips/tm-bigmips64.h: Delete file.
4607 * config/mips/tm-bigmips.h: Delete file.
4608
2473a4a9
MK
46092003-06-01 Mark Kettenis <kettenis@gnu.org>
4610
97a5b208
MK
4611 Fix gdb/1216.
4612 * shnbsd-nat.c: Include "sh-tdep.h".
4613
2473a4a9
MK
4614 From Richard Henderson <rth@redhat.com>:
4615 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4616
e0f7ec59
AC
46172003-05-31 Andrew Cagney <cagney@redhat.com>
4618
4619 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4620 forward declaration.
4621 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4622 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4623 (mips_find_saved_regs): Use set_reg_offset.
4624 (mips_frame_init_saved_regs): Delete function.
4625 (mips_pop_frame): Call mips_find_saved_regs instead of
4626 DEPRECATED_FRAME_INIT_SAVED_REGS.
4627
68dcc709
AC
46282003-05-31 Andrew Cagney <cagney@redhat.com>
4629
4630 * mips-tdep.c (mips_gdbarch_init): Do not set
4631 deprecated_max_register_raw_size, register_virtual_size, and
4632 deprecated_max_register_virtual_size.
4633
cfc14b3a
MK
46342003-05-31 Mark Kettenis <kettenis@gnu.org>
4635
6405b0a6
MK
4636 * i386-tdep.c: Include "dwarf2-frame.h".
4637 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4638 * Makefile.in (i386-tdep.o): Update dependencies.
4639
cfc14b3a
MK
4640 * dwarf2-frame.c, dwarf2-frame.h: New files.
4641 * Makefile.in (SFILES): Add dwarf2-frame.c.
4642 (dwarf2_frame_h): Define.
4643 (COMMON_OBS): Add dwarf2-frame.o.
4644 (dwarf2-frame.o): Add dependencies.
4645
6a2751d2
AJ
46462003-05-31 Andreas Jaeger <aj@suse.de>
4647
4648 * x86-64-linux-nat.c: Fix comment.
4649
1c3545ae
MK
46502003-05-31 Mark Kettenis <kettenis@gnu.org>
4651
10f93086
MK
4652 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4653 function signature.
4654
1c3545ae
MK
4655 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4656 have a sigcontext_addr handler.
4657 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4658 sigcontext_addr handler.
4659
e11c53d2
AC
46602003-05-31 Andrew Cagney <cagney@redhat.com>
4661
4662 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4663 (print_fp_register_row): Replace do_fp_register_row.
4664 (mips_print_fp_register): Add "file" and "frame" parameters.
4665 (mips_print_register): Add "file" and "frame" parameters.
4666 (mips_print_registers_info): Replace mips_do_registers_info.
4667 (mips_gdbarch_init): Set print_registers_info instead of
4668 deprecated_do_registers_info.
4669 (mips_read_fp_register_single): Add "frame" parameter.
4670 (mips_read_fp_register_double): Add "frame" parameter.
4671
a3386186
MK
46722003-05-31 Mark Kettenis <kettenis@gnu.org>
4673
70913449
MK
4674 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4675 Fixes a bug where GDB would print the wrong register names for
4676 targets without SSE.
4677
2b5e0749
MK
4678 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4679 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4680 registers.
4681
4682 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4683 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4684 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4685 TDEP->sc_sp_offset.
4686
a3386186
MK
4687 From Michal Ludvig <mludvig@suse.cz>:
4688 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4689 and `sc_num_regs'.
4690 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4691 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4692 I386_ST0_REGNUM): Move here from...
4693 * i386-tdep.c: ... here.
4694 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4695 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4696 registers if possible.
4697 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4698 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4699 Remove variables.
4700 (i386bsd_sc_reg_offset): New variable.
4701 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4702 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4703 TDEP->sc_sp_offset.
4704 (i386fbsd_sc_reg_offset): New variable.
4705 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4706 TDEP->sc_num_regs.
4707 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4708 variables.
4709 (i386fbsd4_sc_reg_offset): New variable.
4710 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4711 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4712 TDEP->sc_sp_offset.
4713 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4714 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4715 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4716 Remove variables.
4717 (i386nbsd_sc_reg_offset): New variable.
4718 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4719 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4720 TDEP->sc_sp_offset.
4721 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4722 Remove variables.
4723 (i386obsd_sc_reg_offset): New variable.
4724 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4725 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4726 TDEP->sc_sp_offset.
4727 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4728 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4729 for frame pointer offset in `struct sigcontext'.
4730
25ab4790
AC
47312003-05-31 Andrew Cagney <cagney@redhat.com>
4732
4733 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4734 architecture methods call_dummy_words, sizeof_call_dummy_words,
4735 push_return_address, store_struct_return, and fix_call_dummy. Set
4736 push_dummy_call instead of deprecated_push_arguments.
4737 (mips_store_struct_return): Delete function.
4738 (mips_fix_call_dummy): Delete function.
4739 (mips_push_return_address): Delete function.
4740 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4741 RA_REGNUM and T9_REGNUM.
4742 (mips_n32n64_push_dummy_call): Ditto for
4743 mips_n32n64_push_arguments.
4744 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4745 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4746
6a65450a
AC
47472003-05-31 Andrew Cagney <cagney@redhat.com>
4748
4749 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4750 "dummy_addr" to "bp_addr".
4751 * infcall.c (call_function_by_hand): Pass "funaddr" to
4752 gdbarch_push_dummy_call.
4753 * gdbarch.h, gdbarch.c: Re-generate.
4754 * i386-tdep.c (i386_push_dummy_call): Update.
4755 * arm-tdep.c (arm_push_dummy_call): Update.
4756 * d10v-tdep.c (d10v_push_dummy_call): Update.
4757
c4f35dd8
MK
47582003-05-31 Mark Kettenis <kettenis@gnu.org>
4759
4760 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4761 variable declarations.
4762 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4763 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4764 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4765 x86_64_init_frame_pc, x86_64_init_frame_pc,
4766 x86_64_function_has_prologue): Remove prototypes.
4767 (X86_64_NUM_GREGS): New define.
4768 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4769 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4770 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4771 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4772 XMM1_REGNUM): Remove defines.
4773 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4774 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4775 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4776 X86_64_XMM1_REGNUM): New defines.
4777 (struct x86_64_register_info): Renamed from `struct
4778 register_info'. Remove `size' member.
4779 (x86_64_register_info_table): Remove variable.
4780 (x86_64_register_info): New variable.
4781 (X86_64_NUM_REGS): New define.
4782 (X86_64_NUM_GREGS): Remove define.
4783 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4784 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4785 Remove variables.
4786 (x86_54_dwarf2_reg_to_regnum): Remove function.
4787 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4788 (x86_64_dwarf_reg_to_regnum): New function.
4789 (x86_64_register_name): Rewrite.
4790 (x86_64_register_raw_size): Remove function.
4791 (x86_64_register_byte_table): Remove variable.
4792 (x86_64_register_byte): Remove function.
4793 (x86_64_register_virtual_type): Remove function.
4794 (x86_64_register_type): New function.
4795 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4796 x86_64_register_convert_to_raw): Remove functions.
4797 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4798 (x86_64_use_struct_convention): Make static. Adjust for renamed
4799 defines.
4800 (x86_64_frame_init_saved_regs): Remove function.
4801 (x86_64_push_arguments): Make static. Change to accept a regcache
4802 as argument.
4803 (x86_64_store_return_value, x86_64_extract_return_value): Make
4804 static. Rewrite based on i386 counterparts.
4805 (x86_64_push_dummy_call): New function.
4806 (X86_64_NUM_SAVED_REGS): New define.
4807 (x86_64_register_number): Remove function.
4808 (x86_64_store_struct_return): Remove function.
4809 (x86_64_frameless_function_invocation,
4810 x86_64_function_has_prologue): Remove functions.
4811 (PROLOG_BUFSIZE): Remove define.
4812 (struct x86_64_frame_cache): New structure.
4813 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4814 x86_64_frame_cache, x86_64_frame_this_id,
4815 x86_64_frame_prev_register, x86_64_frame_p,
4816 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4817 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4818 functions.
4819 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4820 variables.
4821 (x86_64_skip_prologue): Rewrite in terms of
4822 x86_64_analyze_prologue.
4823 (x86_64_frame_base_address): New function.
4824 (x86_64_frame_base): New variable.
4825 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4826 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4827 set deprecated_fp_regnum, deprecated_register_size,
4828 deprecated_register_bytes, register_raw_size, register_byte,
4829 register_virtual_type, register_convertiable,
4830 register_convert_to_virtual, convert_to_raw,
4831 deprecated_get_saved_register, deprecated_target_read_fp,
4832 deprecated_push_arguments, deprecated_push_return_address,
4833 deprecated_pop_frame, deprecated_store_struct_return,
4834 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4835 frameless_function_invocation, deprecated_frame_saved_pc,
4836 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4837 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4838 deprecated_init_frame_pc and virtual_frame_pointer. Call
4839 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4840 and x86_64_frame_p. Call frame_base_set_default to register
4841 x86_64_frame_base.
4842 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4843 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4844 (_initialize_x86_64_tdep): Remove function.
4845 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4846 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4847 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4848 define.
4849 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4850 (x86_64_linux_sigcontext_addr): Rewrite.
4851 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4852 x86_64_linux_frame_saved_pc): Remove functions.
4853 (x86_64_linux_pc_in_sigtramp): Renamed from
4854 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4855 trampoline.
4856 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4857 Remove_functions.
4858 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4859 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4860 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4861 (x86_64_regmap): Rename to regmap.
4862 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4863 x86_64_num_gregs.
4864 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4865 x86_64_regmap.
4866 (x86_64_fxsave_offset): Remove function.
4867 (supply_fpregset): Simply call x86_64_supply_fxsave.
4868 (fill_fpregset): Simply call x86_64_fill_fxsave.
4869 (fetch_inferior_registers, store_inferior_registers): Avoid
4870 asignment in if-statement.
4871 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4872 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4873 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4874 (fetch_core_registers): Remove function.
4875 (linux_elf_core_fns): Remove.
4876 (offsetoff): Don't define.
4877 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4878 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4879 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4880 add core-regset.o.
4881 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4882 protection against multiple includes instead of NM_X86_64_h. Add
4883 various comments. Include "config/nm-linux.h". Don't include
4884 <signal.h>.
4885 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4886 GET_THREAD_SIGNALS): Remove defines.
4887 (x86_64_register_u_addr, kernel_u_size,
4888 lin_thread_get_thread_signals): Remove prototypes.
4889 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4890 [HAVE_LINK_H]: Don't include "solib.h".
4891 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4892 * config/i386/tm-x86-64linux.h: Fix comments.
4893 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4894 x86-64-tdep.o): Update dependencies.
4895
c25083af
AC
48962003-05-30 Andrew Cagney <cagney@redhat.com>
4897
c8f55a7b
AC
4898 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4899 Change parameter type to a "struct regcache *".
4900
c25083af
AC
4901 * gdbarch.sh: Regardless of the multi-arch level, always define
4902 the macro when not already defined.
4903 * gdbarch.h, gdbarch.c: Re-generate.
4904
fbe586ae
RH
49052003-05-30 Richard Henderson <rth@redhat.com>
4906
4907 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4908 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4909 (alpha_mdebug_frame_this_id): Likewise.
4910 (alpha_mdebug_frame_prev_register): Likewise.
4911 (alpha_mdebug_frame_base_address): Likewise.
4912 (alpha_mdebug_frame_locals_address): Likewise.
4913 (alpha_mdebug_frame_args_address): Likewise.
4914 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4915 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4916 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4917 loop increment.
4918 (alpha_heuristic_frame_this_id): Make static.
4919 (alpha_heuristic_frame_prev_register): Likewise.
4920 (alpha_heuristic_frame_base_address): Likewise.
4921 * alpha-tdep.h: Update.
4922
acd5c798
MK
49232003-05-30 Mark Kettenis <kettenis@gnu.org>
4924
4925 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4926 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4927 defenitions.
4928 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4929 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4930 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4931 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4932 I386_ST0_REGNUM): New defines.
4933 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4934 codestream_get): Remove define.
4935 (codestream_next_addr, condestream_addr, condestream_buf,
4936 codestream_off, codestream_cnt): Remove variables.
4937 (codestream_fill, codestream_seek, codestream_read): Remove
4938 functions.
4939 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4940 functionality.
4941 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4942 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4943 i386_frame_saved_pc, i386_saved_pc_after_call,
4944 i386_frame_num_args, i386_frame_init_saved_regs,
4945 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4946 i386_push_arguments): Remove functions.
4947 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4948 functionality. Use i386_analyze_prologue instead of
4949 i386_get_frame_setup.
4950 (I386_NUM_SAVED_REGS): New define.
4951 (struct i386_frame_cache): New structure.
4952 (i386_alloc_frame_cache, i386_analyze_struct_return,
4953 i386_skip_probe, i386_analyze_frame_setup,
4954 i386_analyze_register_saves, i386_analyze_prologue,
4955 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4956 i386_frame_prev_register, i386_sigtramp_frame_cache,
4957 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4958 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4959 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4960 New functions.
4961 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4962 New variables.
4963 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4964 I386_EAX_REGNUM and I386_EDX_REGNUM.
4965 (i386_extract_return_value, i386_store_return_value): Use
4966 I386_ST0_REGNUM where appropriate.
4967 (i386_extract_struct_value_address): Rewrite to use extract_address.
4968 (i386_svr4_pc_in_sigtramp): Add comment.
4969 (i386_svr4_sigcontext_addr): Rewrite.
4970 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4971 TDEP->sc_sp_offset.
4972 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4973 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4974 of new defines. Set push_dummy_call, don't set
4975 deprecated_push_arguments, deprecated_push_return_address,
4976 deprecated_pop_frame. Don't set parm_boundary. Don't set
4977 deprecated_frame_chain, deprecated_frame_saved_pc,
4978 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4979 save_dummy_frame_tos, unwind_pc. Call
4980 frame_unwind_append_predicate and frame_base_set_default. Don't
4981 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4982 Don't set frameless_function_invocation. Don't set
4983 deprecated_register_bytes, deprecated_register_size,
4984 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4985 * i386-linux-tdep.c: Fix formatting in some comments.
4986 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4987 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4988 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4989 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4990 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4991 redundant parentheses.
4992 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4993 (i386_linux_sigcontext_addr): Use it. Rewrite.
4994 (find_minsym_and_objfile): Change name of second argument.
4995 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4996 changed. Use frame_pc_unwind instead of
4997 DEPRECATED_SAVED_PC_AFTER_CALL.
4998 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4999 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5000 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5001 unwinder.
5002 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5003 "dummy-frame.h".
5004 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5005 (_initialize_i386_cygwin_tdep): New prototype.
5006 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5007 deprecated_frame_chain_valid.
5008 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5009 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5010 Rely on the SVR4 defaults.
5011 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5012 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5013
c89b70f1
AC
50142003-05-30 Andrew Cagney <cagney@redhat.com>
5015
5016 * infcall.c (call_function_by_hand): Always call
5017 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5018
85b32d22
RH
50192003-05-30 Richard Henderson <rth@redhat.com>
5020
c89b70f1
AC
5021 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5022 increment.
85b32d22 5023
bfe51b1e
JB
50242003-05-29 Jim Blandy <jimb@redhat.com>
5025
5026 Use gdbarch methods for solib stuff on PowerPC Linux.
5027 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5028 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5029 show through.
5030 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5031 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5032 giving the same effect as the #definitions above.
5033
1abf022c
AF
50342003-05-29 Adam Fedor <fedor@gnu.org>
5035
5036 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5037 (find_implementation_from_class): Replace it with the standard
5038 case i.e. do nothing.
5039
d2427a71
RH
50402003-05-29 Richard Henderson <rth@redhat.com>
5041
5042 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5043 (alpha_linux_sigtramp_offset): Use it. Make static.
5044 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5045 update for new frame model.
5046 * alpha-mdebug-tdep.c: New file.
5047 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5048 (alpha_osf1_init_abi): Install it.
5049 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5050 (linked_proc_desc_table): Remove.
5051 (alpha_frame_past_sigtramp_frame): Remove.
5052 (alpha_dynamic_sigtramp_offset): Remove.
5053 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5054 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5055 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5056 (push_sigtramp_desc): Remove.
5057 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5058 (alpha_cannot_store_register): Likewise.
5059 (alpha_sigcontext_addr): Remove.
5060 (alpha_find_saved_regs): Remove.
5061 (alpha_frame_init_saved_regs): Remove.
5062 (alpha_init_frame_pc_first): Remove.
5063 (read_next_frame_reg): Remove.
5064 (alpha_frame_saved_pc): Remove.
5065 (alpha_saved_pc_after_call): Remove.
5066 (temp_proc_desc, temp_saved_regs): Remove.
5067 (alpha_about_to_return): Remove.
5068 (cached_proc_desc): Remove.
5069 (alpha_frame_chain): Remove.
5070 (alpha_print_extra_frame_info): Remove.
5071 (alpha_init_extra_frame_info): Remove.
5072 (alpha_frame_locals_address): Remove.
5073 (alpha_frame_args_address): Remove.
5074 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5075 (alpha_push_dummy_frame): Remove.
5076 (alpha_pop_frame): Remove.
5077 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5078 (alpha_read_insn): New.
5079 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5080 for different insn encodings.
5081 (alpha_in_lenient_prologue): Remove.
5082 (struct alpha_sigtramp_unwind_cache): New.
5083 (alpha_sigtramp_frame_unwind_cache): New.
5084 (alpha_sigtramp_register_address): New.
5085 (alpha_sigtramp_frame_this_id): New.
5086 (alpha_sigtramp_frame_prev_register): New.
5087 (alpha_sigtramp_frame_unwind): New.
5088 (alpha_sigtramp_frame_p): New.
5089 (struct alpha_heuristic_unwind_cache): New.
5090 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5091 don't count nop insns that occur between functions.
5092 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5093 heuristic_proc_desc, but without the mdebug wrapping.
5094 (alpha_heuristic_frame_this_id): New.
5095 (alpha_heuristic_frame_prev_register): New.
5096 (alpha_heuristic_frame_unwind): New.
5097 (alpha_heuristic_frame_p): New.
5098 (alpha_heuristic_frame_base_address): New.
5099 (alpha_heuristic_frame_base): New.
5100 (alpha_unwind_dummy_id): New.
5101 (alpha_unwind_pc): New.
5102 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5103 frame related deprecated initializations; install replacements.
5104 (alpha_dump_tdep): Remove.
5105 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5106 (alpha_read_insn, alpha_after_prologue,
5107 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5108 alpha_heuristic_frame_prev_register,
5109 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5110 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5111 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5112 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5113
93ec1121
AC
51142003-05-29 Andrew Cagney <cagney@redhat.com>
5115
5116 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5117 dependant on the availability of ASSERT_FUNCTION.
5118 (ASSERT_FUNCTION): Do not define when there is no function name.
5119
98f08d3d
KB
51202003-05-29 Kevin Buettner <kevinb@redhat.com>
5121
5122 From Jimi X <jimix@watson.ibm.com>:
5123 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5124
0897f59b
JB
51252003-05-28 Jim Blandy <jimb@redhat.com>
5126
5127 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5128 argument to ptrace to int; the system headers should give it the
5129 right type, and pointers don't fit in ints on powerpc64-*-*.
5130
14898363
L
51312003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5132
5133 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5134 DW_TAG_catch_block.
5135
a7a48797
EZ
51362003-05-26 Elena Zannoni <ezannoni@redhat.com>
5137
5138 * stabsread.c (dbx_lookup_type): Make static.
5139 (read_type): Ditto.
5140 (add_undefined_type): Ditto.
5141 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5142 not export.
5143
f5479e9c
EZ
51442003-05-26 Elena Zannoni <ezannoni@redhat.com>
5145
5146 * hpread.c (hpread_has_name): Make static.
5147 (hpread_psymtab_to_symtab): Ditto.
5148 (file_exists): Ditto.
5149 (hpread_call_pxdb): Ditto.
5150 (hpread_pxdb_needed): Ditto.
5151 (hpread_quick_traverse): Ditto.
5152 (hpread_get_header): Ditto.
5153 (hpread_get_lntt): Ditto.
5154 (hpread_get_slt): Ditto.
5155 (class_of): Ditto.
5156
eb2e12d7
AS
51572003-05-25 Andreas Schwab <schwab@suse.de>
5158
78bf922a
AS
5159 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5160 stack_align and deprecated_extra_stack_alignment_needed.
5161 (m68k_stack_align): Delete.
5162
eb2e12d7
AS
5163 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5164 (m68k_register_virtual_size): Likewise.
5165 (altos_skip_prologue): Remove obsolete function.
5166 (isi_frame_num_args): Likewise.
5167 (news_frame_num_args): Likewise.
5168 (m68k_fix_call_dummy): Make static.
5169 (m68k_push_dummy_frame): Likewise.
5170 (m68k_pop_frame): Likewise.
5171 (m68k_skip_prologue): Likewise.
5172 (m68k_frame_init_saved_regs): Likewise.
5173 (m68k_saved_pc_after_call): Likewise.
5174 (m68k_get_longjmp_target): Make multi-arch.
5175 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5176 structure. Register m68k_get_longjmp_target if enabled.
5177 * m68k-tdep.h (struct gdbarch_tdep): Define.
5178 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5179
5180 * Makefile.in (config.status): Also depend on configure.tgt
5181 and configure.host.
5182 (m68klinux-tdep.o): Update dependencies.
5183 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5184 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5185 (M68K_LINUX_JB_PC): Define.
5186 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5187 and take additional parameter.
5188 (m68k_linux_sigtramp_saved_pc): Update.
5189 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5190 m68k_linux_pc_in_sigtramp, in_plt_section,
5191 find_solib_trampoline_target.
5192 * config/m68k/tm-linux.h: Don't include any tm headers.
5193 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5194 (JB_ELEMENT_SIZE): Likewise.
5195 (JB_PC): Likewise.
5196 (GET_LONGJMP_TARGET): Likewise.
5197 (IN_SIGTRAMP): Likewise.
5198 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5199
eb2c22dc
MK
52002003-05-25 Mark Kettenis <kettenis@gnu.org>
5201
5202 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5203 (sparc32_push_arguments): Re-implement by calling
5204 sparc32_do_push_arguments.
5205
44b7b84e
MK
52062003-05-25 Mark Kettenis <kettenis@gnu.org>
5207
5208 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5209 SPARC_O1_REGNUM): New defines.
5210 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5211 (sparc32_store_return_value): New function.
5212 (sparc_extract_struct_value_address): Rewrite to operate on a
5213 regcache.
5214 (sparc_gdbarch_init): Don't set
5215 deprecated_extract_struct_value_address. Set
5216 extract_struct_value_address instead. Don't set
5217 deprecated_extract_return_value and deprecated_store_return_value
5218 for 32-bit targets. Set extract_return_value and
5219 store_return_value instead.
5220 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5221 DEPRECTAED_EXTRACT_RETURN_VALUE,
5222 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5223 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5224 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5225 (sparc_store_return_value): Remove prototype.
5226 (sparc32_store_return_value): New prototype.
5227 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5228 Adjust prototypes.
5229
f6ad61e3
MK
52302003-05-24 Mark Kettenis <kettenis@gnu.org>
5231
5232 * sparcnbsd-tdep.c: Include "gdb_string.h".
5233
b276f1bb
AC
52342003-05-23 Andrew Cagney <cagney@redhat.com>
5235
5236 * p-valprint.c (pascal_val_print): Replace extract_address with
5237 the inline equivalent extract_unsigned_integer.
5238 * jv-valprint.c (java_value_print): Ditto.
5239 * ada-valprint.c (ada_val_print_1): Ditto.
5240 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5241
e76c5fcc
TR
52422003-05-23 Theodore A. Roth <troth@openavr.org>
5243
5244 * blockframe.c (frameless_look_for_prologue): Remove unused
5245 after_prologue variable.
5246
2cdd89cb
MK
52472003-05-23 Mark Kettenis <kettenis@gnu.org>
5248
5249 * blockframe.c (get_pc_function_start): Rewrite to avoid
5250 asignments in if-statements.
5251
182d43bc
EZ
52522003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5253
5254 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 5255 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
5256 files, don't relocate absolute symbols (and do use mst_abs).
5257
e8f3fcdd
AC
52582003-05-23 Andrew Cagney <cagney@redhat.com>
5259
5260 * objc-lang.c: Include "gdb_assert.h".
5261 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5262 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5263 (gdb_check, gdb_check_fatal): Delete functions.
5264 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5265 gdb_assert.
5266 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5267 * Makefile.in (objc-lang.o): Update dependencies.
5268
3c23e6fb
ILT
52692003-05-22 Ian Lance Taylor <ian@airs.com>
5270
5271 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5272 with fprintf_filtered, not fprintf_unfiltered.
5273
af1342ab
AC
52742003-05-22 Andrew Cagney <cagney@redhat.com>
5275
5276 * stack.c (frame_info): Inline extract_address, replacing it with
5277 extract_unsigned_integer.
5278 * findvar.c (unsigned_pointer_to_address): Ditto.
5279 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5280 * dwarf2expr.c (dwarf2_read_address): Ditto.
5281 * frame.c (frame_pc_unwind): Update comment.
5282 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5283
47e242ec
JJ
52842003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5285
5286 * infptrace.c (detach): Call print_sys_errmsg rather than
5287 perror_with_name to issue warning message when errno is non-zero
5288 after calling ptrace detach.
5289
e2ac8128
JB
52902003-05-21 J. Brobecker <brobecker@gnat.com>
5291
5292 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5293 macro definitions from here...
5294 * hppa-tdep.c: ...to there.
5295
92b3541e
KB
52962003-05-20 Kevin Buettner <kevinb@redhat.com>
5297
5298 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5299 register_ptrace_addr(). Fix all callers.
5300
55809acb
AS
53012003-05-21 Andreas Schwab <schwab@suse.de>
5302
5303 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5304 dependencies.
5305 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5306 end.
5307 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5308 (_initialize_m68k_linux_tdep): New function.
5309 (m68k_linux_frame_saved_pc): Make static.
5310 (m68k_linux_extract_return_value): Likewise.
5311 (m68k_linux_store_return_value): Likewise.
5312 (m68k_linux_extract_struct_value_address): Likewise.
5313 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5314 Remove.
5315 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5316 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5317 (DEPRECATED_FRAME_SAVED_PC): Remove.
5318
0fbc10f7
KW
53192003-05-20 Kris Warkentin <kewarken@qnx.com>
5320
5321 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5322 regset numbering rather than our own.
5323
58da2eb2
DC
53242003-05-19 David Carlton <carlton@bactrian.org>
5325
5326 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5327
1fcb5155
DC
53282003-05-19 David Carlton <carlton@bactrian.org>
5329
5330 Partial fix for PR c++/827.
5331 * cp-support.h: Include symtab.h.
5332 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5333 * cp-namespace.c: Update contributors.
5334 (cp_lookup_symbol_nonlocal): New.
5335 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5336 (lookup_symbol_file): Ditto.
5337 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5338 * block.h: Declare block_scope, block_using, block_global_block.
5339 * block.c (block_scope): New.
5340 (block_using, block_global_block): Ditto.
5341 * Makefile.in (cp_support_h): Depend on symtab_h.
5342 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5343
5f9a71c3
DC
53442003-05-19 David Carlton <carlton@bactrian.org>
5345
5346 * language.h (struct language_defn): Add 'la_value_of_this'
5347 and 'la_lookup_symbol_nonlocal' members.
5348 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5349 lookup_symbol_static, lookup_symbol_global,
5350 lookup_symbol_aux_block.
5351 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5352 if we should search fields of this and how to do static/global
5353 lookup.
5354 (lookup_symbol_aux_block): Make extern.
5355 (basic_lookup_symbol_nonlocal): New.
5356 (lookup_symbol_static, lookup_symbol_global): Ditto.
5357 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5358 'la_lookup_symbol_nonlocal' members.
5359 * c-lang.c (c_language_defn, cplus_language_defn)
5360 (asm_language_defn, minimal_language_defn): Ditto.
5361 * jv-lang.c (java_language_defn): Ditto.
5362 * language.c (unknown_language_defn, auto_language_defn)
5363 (local_language_defn): Ditto.
5364 * m2-lang.c (m2_language_defn): Ditto.
5365 * objc-lang.c (objc_language_defn): Ditto.
5366 * scm-lang.c (scm_language_defn): Ditto.
5367 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5368 * p-lang.c (pascal_language_defn): Ditto for both.
5369 * Makefile.in (f-lang.o): Depend on value_h.
5370 (p-lang.o): Ditto.
5371
89a9d1b1
DC
53722003-05-19 David Carlton <carlton@bactrian.org>
5373
5374 * block.h: Declare block_static_block.
5375 * block.c (block_static_block): New.
5376 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5377 lookup_symbol_aux_local, calling block_static_block instead.
5378 (lookup_symbol_aux_local): Delete 'static_block' argument.
5379
eed3f8ab
DC
53802003-05-19 David Carlton <carlton@bactrian.org>
5381
5382 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5383
a09d8bda
ML
53842003-05-19 Michal Ludvig <mludvig@suse.cz>
5385
5386 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5387 register numbers mapping.
5388
69636828
AF
53892003-05-18 Adam Fedor <fedor@gnu.org>
5390
5391 * symtab.c (completion_list_objc_symbol): New function.
5392 (make_symbol_completion_list): Use it to add ObjC symbols
5393 when looking though the list.
5394 (language_search_unquoted_string): New function.
5395 (make_file_symbol_completion_list): Use it.
5396
55baeb84
AS
53972003-05-18 Andreas Schwab <schwab@suse.de>
5398
d0b45d99
AS
5399 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5400 dependencies.
5401 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5402 as m68k_linux_extract_return_value.
5403 (DEPRECATED_STORE_RETURN_VALUE): Define as
5404 m68k_linux_store_return_value.
5405 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5406 m68k_linux_extract_struct_value_address.
5407 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5408 get_next_frame, get_frame_base, get_frame_pc.
5409 (m68k_linux_frame_saved_pc): Use get_frame_base.
5410 (m68k_linux_extract_return_value): New function.
5411 (m68k_linux_store_return_value): New function.
5412 (m68k_linux_extract_struct_value_address): New function.
5413 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5414
55baeb84
AS
5415 * c-exp.y (typebase): Remove duplicate occurence of
5416 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 5417 of lookup_signed_typename.
55baeb84 5418
b6b08ebf
MK
54192003-05-18 Mark Kettenis <kettenis@gnu.org>
5420
5421 * dwarf2loc.c (find_location_expression): Change type of second
5422 argument to `size_t *'.
5423 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5424 for size variable.
5425
5ad1c190
DC
54262003-05-18 David Carlton <carlton@bactrian.org>
5427
5428 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5429 'linkage_name'. Add comment.
5430 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5431 'linkage_name'.
5432 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5433 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5434 (lookup_block_symbol): Ditto.
5435
b8b527c5
AC
54362003-05-16 Andrew Cagney <cagney@redhat.com>
5437
5438 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5439 * gdbarch.h, gdbarch.c: Re-generate.
5440 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5441 * TODO (REGISTER_BYTES): Delete reference.
5442 * alpha-tdep.c (alpha_gdbarch_init): Update.
5443 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5444 * x86-64-tdep.c (x86_64_init_abi): Update.
5445 * vax-tdep.c (vax_gdbarch_init): Update.
5446 * v850-tdep.c (v850_gdbarch_init): Update.
5447 * sparc-tdep.c (sparc_gdbarch_init): Update.
5448 * sh-tdep.c (sh_gdbarch_init): Update.
5449 * s390-tdep.c (s390_gdbarch_init): Update.
5450 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5451 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5452 (ns32k_gdbarch_init_32382): Update.
5453 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5454 * mcore-tdep.c (mcore_gdbarch_init): Update.
5455 * m68k-tdep.c (m68k_gdbarch_init): Update.
5456 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5457 * ia64-tdep.c (ia64_gdbarch_init): Update.
5458 * i386-tdep.c (i386_gdbarch_init): Update.
5459 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5460 * hppa-tdep.c (hppa_gdbarch_init): Update.
5461 * h8300-tdep.c (h8300_gdbarch_init): Update.
5462 * frv-tdep.c (frv_gdbarch_init): Update.
5463 * cris-tdep.c (cris_gdbarch_init): Update.
5464 * avr-tdep.c (avr_gdbarch_init): Update.
5465 * arm-tdep.c (arm_gdbarch_init): Update.
5466 * sparc-tdep.c (sparc_pop_frame): Update.
5467 * rs6000-tdep.c (rs6000_pop_frame): Update.
5468 * remote.c (init_remote_state): Update.
5469 (remote_prepare_to_store): Update.
5470 * remote-vx.c (vx_prepare_to_store): Update.
5471 * remote-sds.c (sds_fetch_registers): Update.
5472 (sds_prepare_to_store): Update.
5473 * remote-array.c: Update.
5474 * regcache.c (init_legacy_regcache_descr): Update.
5475 (init_regcache_descr): Update.
5476 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5477 (mips_o64_extract_return_value): Update.
5478 * irix5-nat.c (fetch_core_registers): Update.
5479 * irix4-nat.c (fetch_core_registers): Update.
5480 * i386-tdep.h: Update.
5481 * hppa-tdep.c (pa_do_registers_info): Update.
5482 (pa_do_strcat_registers_info): Update.
5483 * cris-tdep.c (cris_register_bytes_ok): Update.
5484 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5485 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5486 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5487 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5488 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5489 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5490 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5491 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5492 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5493 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5494 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5495 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5496 (REGISTER_BYTES_OK): Update.
5497 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5498 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5499
ee2842e2
ILT
55002003-05-16 Ian Lance Taylor <ian@airs.com>
5501
5502 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5503 (vax_print_insn, print_insn_arg): Remove static functions.
5504 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5505 print_insn_vax from opcodes library.
5506 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5507
973177d3
AC
55082003-05-15 Andrew Cagney <cagney@redhat.com>
5509
aaab4dba
AC
5510 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5511 * target.h (memory_breakpoint_from_pc): Delete declaration.
5512 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5513 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5514 * monitor.c (monitor_insert_breakpoint): Use
5515 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5516 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5517 * gdbarch.h, gdbarch.c: Re-generate.
5518 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5519 (sparc_gdbarch_init): Set breakpoint_from_pc to
5520 sparc_breakpoint_from_pc.
5521 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5522 (BREAKPOINT_FROM_PC): Define.
5523 (sparc_breakpoint_from_pc): Declare.
5524 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5525 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5526 (BREAKPOINT_FROM_PC): Define.
5527 (BREAKPOINT): Delete macro.
5528 * target.h: Update comment.
5529 * s390-tdep.c (s390_gdbarch_init): Update comments.
5530 * remote.c: Update comments.
5531 * remote-mips.c: Update comments.
5532 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5533 * mem-break.c: Update comment.
5534 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5535 (ia64_memory_insert_breakpoint): Update.
5536 * config/sparc/tm-sparc.h: Update comment.
5537 * config/pa/tm-hppa64.h: Update comment.
5538 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5539 (rs6000_breakpoint_from_pc): Update.
5540 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5541 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5542 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5543 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5544 (mips_breakpoint_from_pc): Update.
5545 (mips_dump_tdep): Update.
5546
e06963ff
AC
5547 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5548 * minsyms.c (lookup_minimal_symbol): Inline
5549 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5550
973177d3
AC
5551 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5552 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5553 * p-lang.c (pascal_printstr): Ditto.
5554 * objc-lang.c (objc_printstr): Ditto.
5555 * m2-lang.c (m2_printstr): Ditto.
5556 * jv-valprint.c (java_print_value_fields): Ditto.
5557 * f-lang.c (f_printstr): Ditto.
5558 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5559 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5560 for repeat_count_threshold.
5561 * Makefile.in (cp-valprint.o): Update dependencies.
5562
5ea2bd7f 55632003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5564
5ea2bd7f
JJ
5565 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5566 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
5567 they start with mov r2,r12. Support skipping over indirect stores
5568 of the input registers. Upon hitting a non-nop branch instruction
5569 or predicated instruction, bail out by setting lim_pc to the current
5570 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
5571 beyond our calculated value and we have trust_limit set,
5572 use the lim_pc value.
5573
cc8c88f3
AC
55742003-05-15 Andrew Cagney <cagney@redhat.com>
5575
5576 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5577 generic_find_dummy_frame.
5578 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5579 (deprecated_generic_find_dummy_frame): Update.
5580 (deprecated_read_register_dummy): Update.
5581 * frame.c (deprecated_generic_get_saved_register): Update.
5582
909cd28e
TR
55832003-05-15 Theodore A. Roth <troth@openavr.org>
5584
5585 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5586 (avr_gdbarch_init): Set breakpoint_from_pc method.
5587
b923b08d
AC
55882003-05-15 Andrew Cagney <cagney@redhat.com>
5589
5590 * regcache.c (build_regcache): Set deprecated_register_valid
5591 directly.
5592 (deprecated_grub_regcache_for_register_valid): Delete function.
5593 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5594 declaration.
5595
ae2f03ac 55962003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
5597
5598 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
5599 * symtab.c (lookup_symbol_aux): Delete calls to
5600 lookup_symbol_aux_minsyms.
5601 (lookup_symbol_aux_minsyms): Comment out function and
5602 prototype. Delete lookup by mangled name.
ae2f03ac 5603
18ec9831
KB
56042003-05-14 Kevin Buettner <kevinb@redhat.com>
5605
5606 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5607 correctly indicate an empty stack and ``stack_allocated'' to the
5608 indicate the number of elements initially allocated.
5609 (dwarf_expr_grow_stack): Simplify method for computing new
5610 stack size. Don't loop infinitely if ``stack_len'' is zero.
5611 (execute_stack_op): Move ``ctx->in_reg'' initialization
5612 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5613 be used in conjuction with DW_OP_piece. Revise error message
5614 accordingly.
5615
de18ac1f
TR
56162003-05-14 Theodore A. Roth <troth@openavr.org>
5617
5618 * MAINTAINERS: Update my email address.
5619 * avr-tdep.c: Ditto.
5620
176620f1
EZ
56212003-05-14 Elena Zannoni <ezannoni@redhat.com>
5622
5623 * symtab.h (enum domain_enum): Rename from namespace_enum.
5624 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5625 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5626 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5627 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5628 TYPES_NAMESPACE, METHODS_NAMESPACE.
5629 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5630 (struct symbol, struct partial_symbol): Rename field
5631 'namespace_enum namespace' to 'domain_enum domain'.
5632 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5633 Delete old define kludge for namespace.
5634
5635 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5636 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5637 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5638 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5639 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5640 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5641 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5642 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5643 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5644 occurrences of the above.
5645
b7f31508
ILT
56462003-05-14 Ian Lance Taylor <ian@airs.com>
5647
5648 * Makefile.in (install-only): Use $(SHELL) when running
5649 mkinstalldirs.
5650
2fdbdd39
ILT
56512003-05-13 Ian Lance Taylor <ian@airs.com>
5652
a208d82c
ILT
5653 * MAINTAINERS (write after approval): Add myself.
5654
2fdbdd39
ILT
5655 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5656 second and third arguments.
5657 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5658 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5659
fbd9dcd3
AC
56602003-05-13 Andrew Cagney <cagney@redhat.com>
5661
5662 * defs.h (store_address): Delete declaration.
5663 findvar.c (store_address): Delete function.
5664 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5665 store_unsigned_integer.
5666 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5667 * v850-tdep.c (v850_push_arguments): Ditto.
5668 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5669 * sh-tdep.c (sh64_get_saved_register): Ditto.
5670 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5671 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5672 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5673 (mips_get_saved_register): Ditto.
5674 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5675 (find_func_descr, ia64_push_arguments): Ditto.
5676 * i386-tdep.c (i386_push_arguments): Ditto.
5677 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5678 * frv-tdep.c (frv_push_arguments): Ditto.
5679 * frame.c (legacy_saved_regs_prev_register): Ditto.
5680 (deprecated_generic_get_saved_register): Ditto.
5681 * findvar.c (unsigned_address_to_pointer): Ditto.
5682 * dwarf2read.c (dwarf2_const_value): Ditto.
5683 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5684 * alpha-tdep.c (alpha_push_arguments): Ditto.
5685
6760f9e6
JB
56862003-05-12 J. Brobecker <brobecker@gnat.com>
5687
5688 * NEWS: Mention that the hppa-hpux port has been partially
5689 multiarched (32bit ABIT only, so far).
5690
30e221b4
AC
56912003-05-11 Andrew Cagney <cagney@redhat.com>
5692
5693 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5694 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5695 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5696 sim/testsuite/sim/arm/misaligned2.ms, and
5697 sim/testsuite/sim/arm/misaligned3.ms.
5698 * disasm.h (struct ui_file): Add opaque struct declaration.
5699 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5700 * frame.h (struct ui_file): Ditto.
5701
dea7f9ba
MK
57022003-05-11 Mark Kettenis <kettenis@gnu.org>
5703
5704 * value.h: Pretty print.
5705
01986c48
MK
57062003-05-10 Mark Kettenis <kettenis@gnu.org>
5707
5708 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5709
123a958e
AC
57102003-05-08 Andrew Cagney <cagney@redhat.com>
5711
5712 * regcache.h (max_register_size): Delete declaration.
5713 * regcache.c (max_register_size): Delete function.
5714 (struct regcache_descr): Delete field "max_register_size".
5715 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5716 registers fit in MAX_REGISTER_SIZE.
5717 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5718 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5719 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5720 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5721 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5722 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5723 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5724 * dve3900-rom.c, hppa-tdep.c: Ditto.
5725
eb294659
DC
57262003-05-08 David Carlton <carlton@math.stanford.edu>
5727
5728 * valops.c (push_word): Fix typo.
5729
d9d9c31f
AC
57302003-05-08 Andrew Cagney <cagney@redhat.com>
5731
5732 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5733 * gdbarch.h: Re-generate.
5734 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5735 (legacy_max_register_raw_size): Delete declaration.
5736 * regcache.c (legacy_max_register_raw_size): Delete function.
5737 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5738 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5739 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5740 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5741 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5742 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5743 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5744 * findvar.c, dwarf2cfi.c: Ditto.
5745
22540ece
AC
57462003-05-08 Andrew Cagney <cagney@redhat.com>
5747
5748 * mips-tdep.c (read_signed_register): New function, moved to here
5749 from "regcache.c".
5750 (read_signed_register_pid): Ditto.
5751 * regcache.c (read_signed_register_pid): Delete function, moved to
5752 "mips-tdep.c".
5753 (read_signed_register): Ditto.
5754 * regcache.h (read_signed_register): Delete declaration.
5755 (read_signed_register_pid): Delete declaration.
5756
0c92afe8
AC
57572003-05-08 Andrew Cagney <cagney@redhat.com>
5758
5759 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5760 * gdbarch.h: Re-generate.
5761 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5762 (legacy_max_register_virtual_size): Delete declaration.
5763 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5764 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5765 * tracepoint.c (memrange_sortmerge): Ditto.
5766 * sparc-tdep.c (sparc_print_registers): Ditto.
5767 * regcache.c (legacy_max_register_virtual_size): Delete function.
5768
6037b830
JB
57692002-05-08 J. Brobecker <brobecker@gnat.com>
5770
5771 * fork-child.c (escape_bang_in_quoted_argument): New function.
5772 (fork_inferior): Escape '!' characters in quoted arguments
5773 only when needed.
5774
5d62c8b1
JB
57752003-05-08 J. Brobecker <brobecker@gnat.com>
5776
5777 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5778 the language of the CU is not currently supported by GDB.
5779
20a0e81d
JB
57802003-05-08 J. Brobecker <brobecker@gnat.com>
5781
5782 * defs.h (language): Add language_minimal enum value.
5783 * c-lang.c (minimal_language_defn): New language definition.
5784 (_initialize_c_language): Add the new minimal language to the list
5785 of languages known to GDB.
5786
710ee10a
KB
57872003-05-08 Kevin Buettner <kevinb@redhat.com>
5788
5789 * frame.c (get_frame_type): Don't attempt to lazily initialize
5790 frame's unwinder for legacy frames.
5791
1750fa04
AC
57922003-05-07 Andrew Cagney <cagney@redhat.com>
5793
5794 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5795 and "regcache" parameters.
5796 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5797
ddf9f258 57982003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
5799
5800 * dwarf2read.c (dwarf_decode_lines): Only use output of
5801 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
5802 the current address.
5803
87767c29
AC
58042003-05-07 Andrew Cagney <cagney@redhat.com>
5805
5806 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5807 code.
5808
5e7b2f39
JB
58092003-05-07 Jim Blandy <jimb@redhat.com>
5810
5811 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5812 'maint info symtabs' and 'maint info psymtabs'.
5813 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5814 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5815 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5816 Declarations updated.
5817 * maint.c (maintenance_list_command): Delete.
5818 (_initialize_maint_cmds): Update calls to add_cmd.
5819 * gdbcmd.h (maintenancelistlist): Delete declaration.
5820 * cli/cli-cmds.c (maintenancelistlist): Delete.
5821 (init_cmd_lists): Don't initialize it.
5822 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5823
f6684c31
AC
58242003-05-07 Andrew Cagney <cagney@redhat.com>
5825
5826 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5827 "regcache".
5828 (d10v_print_registers_info): Update.
5829 (d10v_dmap_register, d10v_imap_register): Delete functions.
5830 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5831 and "imap_register".
5832 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5833 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5834 * arch-utils.c (generic_remote_translate_xfer_address): Add
5835 "regcache" and "gdbarch" parameters.
5836 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5837 parameter. Change class to multi-arch.
5838 * gdbarch.h, gdbarch.c: Re-generate.
5839 * remote.c (remote_xfer_memory): Use
5840 gdbarch_remote_translate_xfer_address.
8ffd9b1b 5841
e4846b08
JJ
58422003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5843
5844 * infrun.c (prev_pc): Move declaration ahead of proceed().
5845 (proceed): Refresh prev_pc value before resuming.
5846 (stop_stepping): Remove code to refresh prev_pc.
5847
6b71b8ac
KW
58482003-05-06 Kris Warkentin <kewarken@qnx.com>
5849
5850 * nto-tdep.c: Removed stray comment.
5851
47979a4b
KW
58522003-05-06 Kris Warkentin <kewarken@qnx.com>
5853
5854 * i386-nto-tdep.c: Fix old K&R function definitions.
5855 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5856 Also change add_show_from_set() call to add_setshow_cmd().
5857 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5858
00905d52
AC
58592003-05-05 Andrew Cagney <cagney@redhat.com>
5860
5861 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5862 (fprint_dummy_frames): New function.
5863 (maintenance_print_dummy_frames): New function.
5864 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5865 * frame.c (fprint_frame_id): Make global.
5866 * frame.h (fprint_frame_id): Declare.
5867 * Makefile.in (dummy-frame.o): Update dependencies.
5868
b1e29e33
AC
58692003-05-05 Andrew Cagney <cagney@redhat.com>
5870
5871 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5872 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5873 SIZEOF_CALL_DUMMY_WORDS.
5874 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5875 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5876 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5877 CALL_DUMMY_BREAKPOINT_OFFSET.
5878 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5879 CALL_DUMMY_START_OFFSET.
5880 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5881 * gdbarch.h, gdbarch.c: Re-generate.
5882 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5883 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5884 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5885 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5886 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5887 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5888 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5889 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5890 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5891 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5892 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5893 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5894 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5895 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5896 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
5897
58982003-05-05 Kris Warkentin <kewarken@qnx.com>
5899
5900 * configure.tgt: Add i[3456]86-*-nto*.
5901 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5902 * nto-tdep.c: New file. Neutrino target support routines.
5903 * nto-tdep.h: New file. Neutrino target header.
5904 * config/tm-qnxnto.h: New file.
5905 * config/i386/i386nto.mt: New file.
5906 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 5907
0ce3d317
AC
59082003-05-04 Andrew Cagney <cagney@redhat.com>
5909
5910 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5911 (load_infrun_state): Ditto.
5912 (struct thread_info): Drop "prev_func_name" field.
5913 * thread.c (load_infrun_state): Update.
5914 (save_infrun_state): Update.
5915 * infrun.c (prev_func_name): Delete variable.
5916 (init_wait_for_inferior): Do not clear prev_func_name.
5917 (stop_stepping, keep_going, context_switch): Do not swap
5918 prev_func_name.
5919 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5920 instead of PC_IN_SIGTRAMP.
5921
46654a5b
AC
59222003-05-04 Andrew Cagney <cagney@redhat.com>
5923
5924 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5925 REGISTER_BYTE with register_offset_hack.
5926 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5927 that REGISTER_BYTE is consistent with the regcache.
5928 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5929 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 5930
14b08c1b
MK
59312003-05-04 Mark Kettenis <kettenis@gnu.org>
5932
04c8243f
MK
5933 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5934 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5935
14b08c1b
MK
5936 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5937
c7a11e01
JB
59382003-05-03 J. Brobecker <brobecker@gnat.com>
5939
5940 From Thierry Schneider <tpschneider1@yahoo.com>
5941 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5942 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5943 (mi-cmd-symbol.o): Add rule.
5944
7043d8dc
AC
59452003-05-03 Andrew Cagney <cagney@redhat.com>
5946
5947 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5948 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5949 * gdbarch.h, gdbarch.c: Re-generate.
5950 * d10v-tdep.c (d10v_push_dummy_code): New function.
5951 (d10v_gdbarch_init): Set push_dummy_code.
5952 * infcall.c (legacy_push_dummy_code): New function.
5953 (generic_push_dummy_code): New function.
5954 (push_dummy_code): New function.
5955 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5956 instead of dummy_addr, to push_dummy_call. Move call to
5957 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5958 switch.
5959 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5960
92bf2b80
AC
59612003-05-03 Andrew Cagney <cagney@redhat.com>
5962
5963 * disasm.h (print_insn): Declare.
5964 * disasm.c (init_gdb_disassemble_info): New function.
5965 (gdb_disassembly): Call init_gdb_disassemble_info.
5966 (gdb_print_insn): New function.
5967 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5968 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5969 * mcore-tdep.c: Include "disasm.h"
5970 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5971 * d10v-tdep.c: Include "disasm.h".
5972 (display_trace): Call gdb_print_insn, instead of print_insn.
5973 (print_insn): Delete function.
5974 * printcmd.c: Include "disasm.h".
5975 (print_insn): Delete function.
5976 (print_formatted): Call gdb_print_insn, instead of print_insn.
5977 * Makefile.in (printcmd.o): Update dependencies.
5978 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 5979
27d94c49
AC
59802003-05-02 Andrew Cagney <cagney@redhat.com>
5981
82de1e5b
AC
5982 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5983 PC_REGNUM, re-indent.
5984 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5985 PC_REGNUM isn't set.
5986
27d94c49
AC
5987 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5988 * gdbarch.h, gdbarch.c: Re-generate.
5989 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5990 register_virtual_size, pc_regnum, or register_bytes.
5991 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5992 (d10v_register_type): Use D10V_PC_REGNUM.
5993 (d10v_print_registers_info, d10v_read_pc): Ditto.
5994 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5995 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5996
a9c0dc7f
DC
59972003-05-02 David Carlton <carlton@bactrian.org>
5998
5999 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6000 the name with mstrsave.
6001
e33d66ec
EZ
60022003-05-02 Elena Zannoni <ezannoni@redhat.com>
6003
6004 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6005 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6006 (host_charset_name, target_charset_name): New vars for use by
6007 set/show commands.
6008 (host_charset_enum, target_charset_enum): New enums for set/show
6009 commands.
6010 (set_charset_sfunc, set_host_charset_sfunc,
6011 set_target_charset_sfunc): New functions.
6012 (set_host_charset, set_target_charset): Make static.
6013 (list_charsets, set_host_charset_command,
6014 set_target_charset_command): Delete functions.
6015 (show_charset_command): Rewrite as....
6016 (show_charset): Hook this up with the set/show command mechanism.
6017 (_initialize_charset): Change names of charsets to match the
6018 set/show enums. Use host_charset_name and target_charset_name.
6019 Use set/show mechanism for charset, host-charset, target-charset
6020 commands. Do not make 'show host-charset' and 'show
6021 target-charset' be aliases of 'show charset'.
6022
6023 * charset.h (set_host_charset, set_target_charset): Don't export,
6024 they are not used outside the file.
6025
2b6fd0d8
AC
60262003-05-01 Andrew Cagney <cagney@redhat.com>
6027
6028 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6029 (gdb_disassembly): Make "di" non static, always initialize and
6030 cleanup. Always use dis_asm_read_memory.
6031 (gdb_dis_asm_read_memory): Delete function.
6032
6ae2f580
AC
60332003-05-01 Andrew Cagney <cagney@redhat.com>
6034
6035 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6036 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6037
810ecf9f
AC
60382003-04-30 Andrew Cagney <cagney@redhat.com>
6039
6040 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6041 "tm_print_insn_info".
6042 (TARGET_PRINT_INSN_INFO): Delete macro.
6043 (dis_asm_read_memory): Delete function declaration.
6044 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6045 (tm_print_insn_info): Delete variable definition.
6046 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6047 * gdbarch.h, gdbarch.c: Re-generate.
6048 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6049 "deprecated_tm_print_insn_info".
6050 * mcore-tdep.c (mcore_dump_insn): Ditto.
6051 * mips-tdep.c (mips_gdbarch_init): Ditto.
6052 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6053 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6054 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6055 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6056 instead of TARGET_PRINT_INSN_INFO, add comment.
6057 * s390-tdep.c (s390_get_frame_info): Instead of
6058 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6059 (s390_check_function_end, s390_is_sigreturn): Ditto.
6060 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6061 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6062 * disasm.c: Include "gdbcore.h".
6063 (_initialize_disasm): New function, initialize
6064 "deprecated_tm_print_insn_info".
6065 (deprecated_tm_print_insn_info): New variable.
6066 (dis_asm_read_memory): Moved from "corefile.c", made static.
6067 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6068 * Makefile.in (disasm.o): Update dependencies.
6069
07020390
AC
60702003-04-30 Andrew Cagney <cagney@redhat.com>
6071
6072 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6073
a9fa03de
AF
60742003-04-29 Adam Fedor <fedor@gnu.org>
6075
6076 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6077 * infcall.c (find_function_addr): Make non-static.
6078 * infcall.h (find_function_addr): Declare.
6079 * Makefile.in (eval.o): Update dependencies.
6080
1bae87b9
AF
60812003-04-28 Adam Fedor <fedor@gnu.org>
6082
6083 * symtab.c (symbol_find_demangled_name): Check for and demangle
6084 ObjC symbols.
6085 (symbol_init_demangled_name): Init for language_objc as well.
6086
0ba6dca9
AC
60872003-04-28 Andrew Cagney <cagney@redhat.com>
6088
6089 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6090 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6091 * gdbarch.h, gdbarch.c: Re-generate.
6092 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6093 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6094 * inferior.h (deprecated_read_fp): Rename read_fp.
6095 (generic_target_read_fp): Delete declaration.
6096 * regcache.c (generic_target_read_fp): Delete function.
6097 (deprecated_read_fp): Replace read_fp, use
6098 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6099 * d10v-tdep.c (d10v_read_fp): Delete function.
6100 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6101
6102 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6103 deprecated_target_read_fp to generic_target_read_fp.
6104 * sh-tdep.c (sh_gdbarch_init): Ditto.
6105 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6106 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6107 * frv-tdep.c (frv_gdbarch_init): Ditto.
6108
6109 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6110 deprecated_fp_regnum.
6111 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6112 * vax-tdep.c (vax_gdbarch_init): Ditto.
6113 * v850-tdep.c (v850_gdbarch_init): Ditto.
6114 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6115 * sh-tdep.c (sh_gdbarch_init): Ditto.
6116 * s390-tdep.c (s390_gdbarch_init): Ditto.
6117 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6118 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6119 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6120 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6121 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6122 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6123 * i386-tdep.c (i386_gdbarch_init): Ditto.
6124 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6125 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6126 * frv-tdep.c (frv_gdbarch_init): Ditto.
6127 * cris-tdep.c (cris_gdbarch_init): Ditto.
6128 * avr-tdep.c (avr_gdbarch_init): Ditto.
6129 * arm-tdep.c (arm_gdbarch_init): Ditto.
6130 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6131
6132 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6133 * v850-tdep.c (v850_gdbarch_init): Ditto.
6134 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6135 * sh-tdep.c (sh_gdbarch_init): Ditto.
6136 * s390-tdep.c (s390_gdbarch_init): Ditto.
6137 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6138 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6139 * mips-tdep.c (mips_gdbarch_init): Ditto.
6140 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6141 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6142 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6143 * frv-tdep.c (frv_gdbarch_init): Ditto.
6144 * avr-tdep.c (avr_gdbarch_init): Ditto.
6145 * arm-tdep.c (arm_gdbarch_init): Ditto.
6146
6147 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6148 DEPRECATED_FP_REGNUM.
6149 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6150 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6151 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6152 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6153 (sparc32_register_virtual_type): Ditto.
6154 * sh-tdep.c (sh64_frame_chain): Ditto.
6155 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6156 (sh_nofp_frame_init_saved_regs): Ditto.
6157 (sh64_nofp_frame_init_saved_regs): Ditto.
6158 (sh_fp_frame_init_saved_regs): Ditto.
6159 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6160 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6161 * procfs.c (procfs_fetch_registers): Ditto.
6162 (procfs_store_registers): Ditto.
6163 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6164 (store_inferior_registers, fetch_core_registers): Ditto.
6165 (fetch_kcore_registers, clear_regs): Ditto.
6166 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6167 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6168 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6169 * nlm/i386.c (do_status): Ditto.
6170 * mipsv4-nat.c (supply_gregset): Ditto.
6171 * mips-tdep.c: Ditto for comments.
6172 * mips-nat.c (fetch_inferior_registers): Ditto.
6173 (store_inferior_registers, fetch_core_registers): Ditto.
6174 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6175 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6176 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6177 (i386_do_pop_frame, i386_register_type): Ditto.
6178 * hppa-tdep.c (hppa_frame_chain): Ditto.
6179 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6180 (hppa_pop_frame, hppa_read_fp): Ditto.
6181 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6182 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6183 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6184 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6185 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6186 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6187 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6188 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6189 * blockframe.c: Ditto for comments.
6190 * arch-utils.h: Ditto for comments.
6191 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6192 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6193 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6194 * alpha-tdep.h: Ditto for comments.
6195 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6196 (alpha_cannot_store_register): Ditto.
6197 (alpha_push_dummy_frame): Ditto.
6198 * alpha-nat.c (supply_gregset): Ditto.
6199
6200 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6201 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6202 * config/sparc/tm-sparc.h: Update comment.
6203
6204 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6205 deprecated_read_fp instead of TARGET_READ_FP.
6206 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6207 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6208 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6209 deprecated_read_fp instead of read_fp.
6210 * s390-tdep.c (s390_push_arguments): Ditto.
6211 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6212 * frame.h: Ditto in comments.
6213 * frame.c (legacy_get_prev_frame): Ditto.
6214 * dummy-frame.c (dummy_frame_this_id): Ditto.
6215 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6216
d7a27068
AC
62172003-04-28 Andrew Cagney <cagney@redhat.com>
6218
6219 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6220 * gdbarch.h, gdbarch.c: Re-generate.
6221 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6222 * vax-tdep.c (_initialize_vax_tdep): Update.
6223 * v850-tdep.c (_initialize_v850_tdep): Update.
6224 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6225 * s390-tdep.c (_initialize_s390_tdep): Update.
6226 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6227 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6228 * mips-tdep.c (_initialize_mips_tdep): Update.
6229 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6230 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6231 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6232 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6233 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6234 * frv-tdep.c (_initialize_frv_tdep): Update.
6235 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6236 (_initialize_cris_tdep): Update.
6237 * arch-utils.c (legacy_print_insn): Update.
6238 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6239
d2630e69
AF
62402003-04-26 Adam Fedor <fedor@gnu.org>
6241
6242 * linespec.c (decode_objc): New function to decode ObjC calls
6243 (decode_line_1): Check for ObjC calls (using decode_objc)
6244 * Makefile (linespec.o): Update dependencies.
6245
3086aeae
DJ
62462003-04-26 Daniel Jacobowitz <drow@mvista.com>
6247
6248 * breakpoint.h (struct breakpoint_ops): New.
6249 (struct breakpoint): Add ops member.
6250
6251 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6252 (mention): Use new breakpoint ops member.
6253 (set_raw_breakpoint): Initialize ops field to NULL.
6254 (print_exception_catchpoint, print_one_exception_catchpoint)
6255 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6256 (gnu_v3_exception_catchpoint_ops): New.
6257 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6258
1fbec6c3
AF
62592003-04-25 Adam Fedor <fedor@gnu.org>
6260
6261 * Makefile.in (COMMON_OBS): Add objc-lang.o
6262
0ef21242
AC
62632003-04-25 Andrew Cagney <cagney@redhat.com>
6264
6265 * d10v-tdep.c (print_insn): Delete function.
6266 (display_trace): Use TARGET_PRINT_INSN.
6267 (_initialize_d10v_tdep): Do not set tm_print_insn.
6268 (d10v_gdbarch_init): Set print_insn.
6269
f75493ed
AC
62702003-04-25 Andrew Cagney <cagney@redhat.com>
6271
6272 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6273 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6274 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6275 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6276 (nr_dmap_regs, a0_regnum): ... new functions.
6277 (d10v_print_registers_info): Use a0_regnum, use register_size.
6278 (d10v_register_byte): Delete function.
6279 (d10v_register_raw_size): Delete function.
6280 (d10v_register_type): Use a0_regnum.
6281 (d10v_print_registers_info): Use a0_regnum.
6282 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6283 (d10v_gdbarch_init): Do not set register_byte or
6284 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6285 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6286 extract_address.
6287 (trace_command): Use XCALLOC.
6288 (print_insn): Delete reference to tm_print_insn.
6289 (saved_regs_unwinder): Use store_unsigned_integer instead of
6290 store_address.
6291 * frame.h (FRAME_OBSTACK_CALLOC): Define
6292
2202b100
DC
62932003-04-25 David Carlton <carlton@bactrian.org>
6294
6295 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6296
4e45ca2e
AF
62972003-04-24 Adam Fedor <fedor@gnu.org>
6298
6299 * objc-lang.c: Include "valprint.h"
6300 * Makefile.in (objc-lang.o): Update dependencies.
6301
93de3e7f
AF
63022003-04-24 Adam Fedor <fedor@gnu.org>
6303
8ffd9b1b 6304 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
6305 architecture dependant compilation and mark as unimplemented
6306 (until they get put in the gdbarch vector).
6307
0f20eeea
DC
63082003-04-23 David Carlton <carlton@bactrian.org>
6309
6310 * cp-support.c (cp_find_first_component): Accept 'operator' in
6311 more locations.
6312
74cfe982
AC
63132003-04-23 Andrew Cagney <cagney@redhat.com>
6314
6315 * infcall.c (call_function_by_hand): Eliminate redundant
6316 indentation. Move "saved_async" and "old_cleanups" to where they
6317 are needed.
8ffd9b1b 6318
52557533
AC
63192003-04-23 Andrew Cagney <cagney@redhat.com>
6320
6321 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6322 and "buffer". Move the "name" code to where it is needed.
6323
158775de
AC
63242003-04-23 Andrew Cagney <cagney@redhat.com>
6325
6326 * infcall.c (call_function_by_hand): Move variables "start_sp",
6327 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6328 code to ON_STACK switch branch.
8ffd9b1b 6329
ebc7896c
AC
63302003-04-23 Andrew Cagney <cagney@redhat.com>
6331
6332 * infcall.c (call_function_by_hand): Make declaration of "i",
6333 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6334 lint.
6335
d727590f
AC
63362003-04-23 Andrew Cagney <cagney@redhat.com>
6337
6338 * infcall.c (call_function_by_hand): Delete variable
6339 "n_method_args". Localize "param_type"'s declaration to the loop
6340 that it is used. Reinstate code assigning to said variable -
6341 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6342 Rationalize code using "param_type".
6343
d585e13a
AC
63442003-04-22 Andrew Cagney <cagney@redhat.com>
6345
6346 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6347 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6348 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6349 to DEPRECATED_PUSH_RETURN_ADDRESS.
6350
051caad9
KB
63512003-04-22 Kevin Buettner <kevinb@redhat.com>
6352
6353 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6354 on the DWARF2 register number prior to fetching a register.
6355
77296879
JB
63562003-04-22 J. Brobecker <brobecker@gnat.com>
6357
6358 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6359 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 6360 this macro was always set to 0.
77296879
JB
6361 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6362 considering the fact that this macro was always set to 0.
6363 * hppa-tdep.h (hppa_store_return_value): Likewise.
6364 (hppa_extract_return_value): Likewise.
6365
4252f1df
JB
63662003-04-22 J. Brobecker <brobecker@gnat.com>
6367
6368 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6369 the hppa-pro target only.
6370
14604c6b
JB
63712003-04-21 J. Brobecker <brobecker@gnat.com>
6372
6373 Ongoing multi-arch conversion effort for HP/UX:
6374 * config/pa/tm-hppa.h: Move all macro that are no longer
6375 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6376 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6377
77eb01d1
JB
63782003-04-21 J. Brobecker <brobecker@gnat.com>
6379
6380 * config/pa/tm-hppa.h: Obsolete a section that was only used
6381 for hppa-pro.
6382
61995b3b
JB
63832003-04-21 J. Brobecker <brobecker@gnat.com>
6384
6385 Ongoing multi-arch conversion for HP/UX.
6386 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6387 if already defined (allows hppa64 to stay non-multiarched for now).
6388 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6389
4aa79dcc
AC
63902003-04-21 Andrew Cagney <cagney@redhat.com>
6391
6392 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6393
0f751ff2
AC
63942003-04-21 Andrew Cagney <cagney@redhat.com>
6395
6396 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6397 "i386_num_mmx_regs".
6398
04714b91
AC
63992003-04-21 Andrew Cagney <cagney@redhat.com>
6400
6401 * infcall.c: New file.
6402 * infcall.h: New file.
6403 * valarith.c: Include "infcall.h".
6404 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6405 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6406 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6407 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6408 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6409 (SFILES): Add "infcall.c"
6410 (COMMON_OBS): Add "infcall.o".
6411 (infcall.o): Specify dependencies.
6412 * value.h (call_function_by_hand): Delete declaration.
6413 * inferior.h (run_stack_dummy): Delete declaration.
6414 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6415 (run_stack_dummy): Move to "infcall.c", merged into
6416 call_function_by_hand.
6417 * valops.c (call_function_by_hand): Moved to "infcall.c".
6418 (find_function_addr, value_arg_coerce): Ditto.
6419 (unwindonsignal_p, coerce_float_to_double): Ditto.
6420 (_initialize_valops): Move "set/show coerce-float-to-double", and
6421 "set/show unwindonsignal" commands to "infcall.c".
6422 * v850-tdep.c, target.h: Update comments.
6423 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6424 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6425 (sh64_init_extra_frame_info): Update comments.
6426 * mn10300-tdep.c: Update comments.
6427 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6428 * config/sparc/tm-sparc.h: Update comments.
6429 * breakpoint.h: Update comments.
6430 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6431 * arm-tdep.c: Update comment.
6432
f9d3c2a8
MK
64332003-04-19 Mark Kettenis <kettenis@gnu.org>
6434
c40e1eab
MK
6435 * i386-tdep.c (i386_num_register_names): New variable.
6436 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6437 (MM0_REGNUM): Remove redundant parentheses in define.
6438 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6439 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6440 i386_mxcsr_regnum_p): Remove redundant parentheses.
6441 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 6442
94ea66b3
MK
6443 * i386-tdep.c (i386_extract_return_value,
6444 i386_store_return_value): Correct check for availability of
6445 floating-point registers.
6446
54299a1d
MK
6447 * i386-tdep.c (i386_frame_num_args): Remove function.
6448 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6449
c86c27af
MK
6450 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6451 mmx_regnum_to_fp_regnum. Adjust all callers.
6452
f9d3c2a8
MK
6453 * i386-tdep.c (i386_get_longjmp_target): Use
6454 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6455 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6456 extract_address.
6457
94ba74a9
MK
64582003-04-19 Mark Kettenis <kettenis@gnu.org>
6459
6460 * core-regset.c: Update comments to reflect reality. Re-order
6461 includes.
6462 (fetch_core_registers): Use switch instead of if. Remove
6463 redundant prototype.
6464
4074e13c
JB
64652003-04-18 Jim Blandy <jimb@redhat.com>
6466
6467 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 6468 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 6469
e3ab4aba
RH
64702003-04-17 Richard Henderson <rth@redhat.com>
6471
6472 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6473
627bf7c1
EZ
64742003-04-17 Michael Snyder <msnyder@redhat.com>
6475 Karen Bennet <bennet@redhat.com>
6476
6477 Committed by Elena Zannoni <ezannoni@redhat.com>
6478 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 6479
514621a9
EZ
64802003-04-17 Elena Zannoni <ezannoni@redhat.com>
6481
6482 * values.c (value_being_returned): Don't fetch the return
fbe586ae 6483 value if the return type is void.
514621a9 6484
b4acd559
JJ
64852003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6486
6487 * thread-db.c: Reindented.
8ffd9b1b 6488
530b167e 64892003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6490
6491 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6492 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
6493 as types.
6494
0a48e7e8
MS
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
8ffd9b1b 6518
ab9fe00e
KB
65192003-04-16 Kevin Buettner <kevinb@redhat.com>
6520
610a3745 6521 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
6522 the size of ``long double'' to 16, instead of 8.
6523
e64a344c
MK
65242003-04-16 Mark Kettenis <kettenis@gnu.org>
6525
6526 * i386-linux-nat.c: Add some whitespace to make things more
6527 readable.
6528 (fetch_register, store_register, fetch_inferior_registers,
6529 store_inferior_registers): Get rid of assignment in if-statement.
6530 (store_register): Fix typo in error message.
6531
25d41031
AC
65322003-04-16 Andrew Cagney <cagney@redhat.com>
6533
6534 * utils.c (xmmalloc): Always allocate something, matches
6535 libiberty/xmalloc's semantics.
6536 (xmrealloc, xmcalloc): Ditto.
6537
c50901fd
AC
65382003-04-16 Andrew Cagney <cagney@redhat.com>
6539
6540 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6541 update comments.
6542 (get_frame_type): Initialize unwind and type when needed.
6543 (get_frame_id, frame_register_unwind): Ditto.
6544
f81824a9
AC
65452003-04-16 Andrew Cagney <cagney@redhat.com>
6546
6547 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6548 obsolete.
6549 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6550 * sparcl-stub.c: Obsolete file.
6551 * config/sparc/tm-sparclet.h: Obsolete file.
6552 * sparclet-stub.c: Obsolete file.
6553 * sparclet-rom.c: Obsolete file.
6554 * sparcl-tdep.c: Obsolete file.
6555 * config/sparc/tm-sparclite.h: Obsolete file.
6556 * config/sparc/sparclite.mt: Obsolete file.
6557 * config/sparc/sparclet.mt: Obsolete file.
6558 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6559 sparc86x-*-* obsolete.
6560
9219021c
DC
65612003-04-15 David Carlton <carlton@math.stanford.edu>
6562
6563 * Makefile.in (SFILES): Add cp-namespace.c.
6564 (COMMON_OBS): Add cp-namespace.o.
6565 (block.o): Depend on gdb_obstack_h and cp_support_h.
6566 (buildsym.o): Depend on cp_support_h.
6567 (cp-namespace.o): New.
6568 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6569 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6570 (dwarf2read.o): Depend on cp_support_h.
6571 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6572 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6573 processing_current_namespace.
6574 (read_namespace): Update processing_current_namespace; check for
6575 anonymous namespaces.
6576 (dwarf2_name): New function.
6577 (dwarf2_extension): Ditto.
6578 * cp-support.h: Update copyright, contributors.
6579 Add inclusion guards.
6580 Add opaque declaration for structs obstack, block, symbol.
6581 (struct using_direct): New struct.
6582 Add declarations for cp_find_first_component,
6583 cp_entire_prefix_len, processing_has_namespace_info,
6584 processing_current_namespace, cp_is_anonymous,
6585 cp_add_using_directive, cp_initialize_namespace,
6586 cp_finalize_namespace, cp_set_block_scope,
6587 cp_scan_for_anonymous_namespaces.
6588 * cp-namespace.c: New file.
6589 * cp-support.c: Update copyright.
6590 Include ctype.h, gdb_assert.h, gdbcmd.h.
6591 New variable maint_cplus_cmd_list.
6592 (cp_find_first_component): New function.
6593 (cp_entire_prefix_len, maint_cplus_command)
6594 (first_component_command, _initialize_cp_support): Ditto.
6595 * buildsym.c: Include cp-support.h.
6596 New variable using_list.
6597 (add_symbol_to_list): Check for anonymous namespaces.
6598 (finish_block): Set block's scope.
6599 (start_symtab): Initialize C++ namespace support.
6600 (end_symtab): Finalize C++ namespace support.
6601 * block.h: Add opaque declarations for structs
6602 block_namespace_info, using_direct, and obstack.
6603 Add declarations for block_set_scope and block_set_using.
6604 (struct block): Add 'language_specific' member.
6605 (BLOCK_NAMESPACE): New macro.
6606 * block.c: Include gdb_obstack.h and cp-support.h.
6607 (struct block_namespace_info): New struct.
6608 (block_set_scope): New function.
6609 (block_set_using, block_initialize_namespace): Ditto.
6610
d5a921c9
KB
66112003-04-14 Kevin Buettner <kevinb@redhat.com>
6612
6613 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6614 (locate_base): Return early if there aren't any link map offsets.
6615 (svr4_solib_create_inferior_hook): Warn if shared library support
6616 is unavailable.
6617
d2a52b27
DC
66182003-04-14 David Carlton <carlton@math.stanford.edu>
6619
6620 * symtab.c (symbol_set_names): Add prefix when storing Java names
6621 in hash table. Fix for PR java/1039.
6622
980cae7a
DC
66232003-04-14 David Carlton <carlton@math.stanford.edu>
6624
6625 * symtab.c (symbol_set_names): Rename 'name' arg to
6626 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6627 * symtab.h: Change 'name' argument in declaration of
6628 symbol_set_names to 'linkage_name'.
6629 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6630
e227b13c
AC
66312003-04-14 Andrew Cagney <cagney@redhat.com>
6632
6633 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6634 return the fully sign-extended register value.
6635 (get_frame_pointer): Ditto.
6636 (mips_pop_frame): Initialize "proc_desc" after checking for a
6637 dummy frame.
6638
36712a20
AC
66392003-04-14 Andrew Cagney <cagney@redhat.com>
6640
6641 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6642 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6643 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6644 (mips_push_register): Delete function.
6645 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6646 PUSH_FP_REGNUM.
6647
44ea7b70
JB
66482003-04-14 Jim Blandy <jimb@redhat.com>
6649
6650 * symmisc.c: #include "gdb_regex.h".
6651 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6652 functions.
6653 * maint.c (maintenance_list_command): New function.
6654 (_initialize_maint_cmds): Register the above as commands.
6655 * symtab.h (maintenance_list_symtabs,
6656 maintenance_list_psymtabs): New declarations.
6657 * cli/cli-cmds.c (maintenancelistlist): New variable.
6658 (init_cmd_lists): Initialize it.
6659 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6660 * gdbcmd.h (maintenancelistlist): New declaration.
6661 * Makefile.in (symmisc.o): Update dependencies.
6662
2d0c7962
EZ
66632003-04-14 Elena Zannoni <ezannoni@redhat.com>
6664
6665 * s390-nat.c: Include asm/types.h for addr_t.
6666
1947a811
CV
66672003-04-14 Corinna Vinschen <vinschen@redhat.com>
6668
6669 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6670 actually incoming type.
6671
adb616d7
AC
66722003-04-13 Andrew Cagney <cagney@redhat.com>
6673
6674 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6675 get_next_frame and get_frame_saved_regs.
6676
9b5e151c
AC
66772003-04-13 Andrew Cagney <cagney@redhat.com>
6678
6679 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6680 of gdbarch_num_regs.
6681
ef6e7e13
AC
66822003-04-13 Andrew Cagney <cagney@redhat.com>
6683
6684 * frame.h: Mention what replaced what in "struct frame_info".
6685 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6686 deprecated_update_frame_base_hack and
6687 deprecated_update_frame_pc_hack.
6688 * hppa-tdep.c: Ditto.
6689
61fbb938
DJ
66902003-04-13 Daniel Jacobowitz <drow@mvista.com>
6691
6692 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6693 to read_reg and update its comment. Remove regnum member.
6694 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6695 Don't call read_reg when setting in_reg. Call read_reg to get
6696 the frame base if it's in a register. Return the register number
6697 on the stack instead of in the context. Remove extra arguments
6698 to read_reg.
6699 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6700 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6701 the register number on the expression stack.
6702 (needs_frame_read_reg): Remove extra arguments.
6703
0d53c4c4
DJ
67042003-04-13 Daniel Jacobowitz <drow@mvista.com>
6705
6706 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6707 made non-static.
6708 (execute_stack_op): All callers updated.
6709 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6710 * dwarf2loc.c (find_location_expression): New function.
6711 (dwarf_expr_frame_base): Call it.
6712 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6713 (dwarf2_tracepoint_var_ref): New function, broken out from
6714 locexpr_tracepoint_var_ref.
6715 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6716 Make static.
6717 (loclist_read_variable, loclist_read_needs_frame): New functions.
6718 (loclist_describe_location, loclist_tracepoint_var_ref): New
6719 functions.
6720 (dwarf2_loclist_funcs): New struct location_funcs.
6721 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6722 (struct dwarf2_locexpr_baton): Add comments.
6723 (dwarf2_loclist_funcs): New extern.
6724 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6725 base_address and base_known.
6726 (dwarf_loc_buffer): New variable.
6727 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6728 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6729 (dwarf2_has_info): Initialize dwarf_loc_offset.
6730 (dwarf2_build_psymtabs): Read in .debug_loc.
6731 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6732 DWARF_LOC_SIZE.
6733 (psymtab_to_symtab_1): Likewise. Move base address calculation
6734 here, from...
6735 (dwarf2_get_pc_bounds): ... here. Use the base address from
6736 cu_header.
6737 (dwarf2_symbol_mark_computed): Handle location lists.
6738
6aca59a3
DJ
67392003-04-13 Daniel Jacobowitz <drow@mvista.com>
6740
6741 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6742 if the linkage name demangled successfully.
6743
aca1fcd0
MK
67442003-04-13 Mark Kettenis <kettenis@gnu.org>
6745
97095916
MK
6746 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6747 disassmbly_flavour): Removed.
6748
aca1fcd0
MK
6749 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6750
562a961f
MK
67512003-04-13 Mark Kettenis <kettenis@gnu.org>
6752
6753 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6754
bd013d54
AC
67552003-04-12 Andrew Cagney <cagney@redhat.com>
6756
6757 * frame.h (struct frame_info): Move definition from here ...
6758 * frame.c (struct frame_info): ... to here.
6759
167ef8b1
AC
67602003-04-12 Andrew Cagney <cagney@redhat.com>
6761
6762 * gdbthread.h (save_infrun_state): Delete parameter
6763 "prev_func_start".
6764 (struct thread_info): Delete field "prev_func_start".
6765 (load_infrun_state): Ditto.
6766 * thread.c (load_infrun_state, save_infrun_state): Update.
6767 * infrun.c (prev_func_start): Delete variable.
6768 (context_switch, init_wait_for_inferior): Update.
6769 (stop_stepping, keep_going): Update.
6770
da3331ec
AC
67712003-04-12 Andrew Cagney <cagney@redhat.com>
6772
6773 * gdbarch.sh: Add missing opaque declarations.
6774 * gdbarch.h: Regnerate.
6775 * symtab.h: Add missing opaque declarations.
6776 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6777 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6778 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6779 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6780 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6781 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6782 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6783 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6784 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6785 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6786 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6787 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6788 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6789
18adea3f
AC
67902003-04-11 Andrew Cagney <cagney@redhat.com>
6791
6792 * frame.c (get_frame_id): Return this frame's "id".
6793 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6794 function start.
6795 (legacy_saved_regs_this_id): Replace function body with
6796 internal-error.
6797 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6798 FRAME_OBSTACK_ZALLOC.
6799 (create_new_frame): Mark the frame ID as valid.
6800
2252e863
AO
68012003-04-11 Alexandre Oliva <aoliva@redhat.com>
6802
6803 * Makefile.in (libbfd_h): Added missing setting.
6804 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6805 according to the selected ABI.
6806
a8245ab8
JJ
68072003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6808
6809 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6810
6913c89a
AC
68112003-04-11 Andrew Cagney <cagney@redhat.com>
6812
6813 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6814 SAVED_PC_AFTER_CALL.
6815 * gdbarch.h, gdbarch.c: Regenerate.
6816 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6817 * x86-64-tdep.c (x86_64_init_abi): Update.
6818 * vax-tdep.c (vax_gdbarch_init): Update.
6819 * v850-tdep.c (v850_gdbarch_init): Update.
6820 * sparc-tdep.c (sparc_gdbarch_init): Update.
6821 * sh-tdep.c (sh_gdbarch_init): Update.
6822 * s390-tdep.c (s390_gdbarch_init): Update.
6823 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6824 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6825 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6826 * mips-tdep.c (mips_gdbarch_init): Update.
6827 * mcore-tdep.c (mcore_gdbarch_init): Update.
6828 * m68k-tdep.c (m68k_gdbarch_init): Update.
6829 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6830 * ia64-tdep.c (ia64_gdbarch_init): Update.
6831 (ia64_saved_pc_after_call): Update declaration.
6832 * i386ly-tdep.c (i386lynx_init_abi): Update.
6833 * i386-tdep.c (i386_gdbarch_init): Update.
6834 * hppa-tdep.c (hppa_gdbarch_init): Update.
6835 * h8300-tdep.c (h8300_gdbarch_init): Update.
6836 * frv-tdep.c (frv_gdbarch_init): Update.
6837 * cris-tdep.c (cris_gdbarch_init): Update.
6838 * avr-tdep.c (avr_gdbarch_init): Update.
6839 * arm-tdep.c (arm_gdbarch_init): Update.
6840 * alpha-tdep.c (alpha_gdbarch_init): Update.
6841 * ns32knbsd-nat.c (frame_num_args): Update.
6842 * ns32k-tdep.c (umax_frame_num_args): Update.
6843 * mips-tdep.c (mips_init_frame_pc_first): Update.
6844 * infrun.c (step_over_function): Update.
6845 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6846 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6847 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6848 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6849 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6850 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6851 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6852 * arch-utils.c (init_frame_pc_default): Update.
6853 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6854 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6855 declaration.
8ffd9b1b 6856
38edeab8
AC
68572003-04-11 Andrew Cagney <cagney@redhat.com>
6858
6859 * i387-tdep.c: Update copyright.
6860 (i387_to_double): Delete function.
6861 (double_to_i387): Delete function.
6862
81f8a206
AC
68632003-04-10 Andrew Cagney <cagney@redhat.com>
6864
6865 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6866 frame's function's address. Simplify.
6867 (d10v_frame_unwind_cache): Check that the frame's function is
6868 non-zero.
6869
6e691f7a
JB
68702003-04-10 Jim Blandy <jimb@redhat.com>
6871
6872 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6873 call to set_gdbarch_deprecated_push_arguments.
6874
7f78e237
AC
68752003-04-10 Andrew Cagney <cagney@redhat.com>
6876
6877 * frame.c (fprint_frame_id): New function.
6878 (fprint_frame_type, fprint_frame): New function.
6879 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6880 (create_sentinel_frame, get_frame_id): Ditto.
6881 (frame_id_p, frame_id_eq): Ditto.
6882 (frame_id_inner, create_new_frame): Ditto.
6883 (legacy_get_prev_frame, get_prev_frame): Ditto.
6884 (deprecated_update_frame_pc_hack): Ditto.
6885 (frame_register_unwind): Ditto.
6886 (deprecated_update_frame_base_hack): Ditto.
6887
f870b49b
CV
68882003-04-10 Corinna Vinschen <vinschen@redhat.com>
6889
6890 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6891 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6892 frame_chain function.
6893 * Makefile.in: Add dependencies due to above change.
6894
7c86889b
CV
68952003-04-10 Corinna Vinschen <vinschen@redhat.com>
6896
6897 * blockframe.c (legacy_frame_chain_valid): Move call to
6898 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6899 inside_entry_file.
6900
d0a55772
AC
69012003-04-09 Andrew Cagney <cagney@redhat.com>
6902
6903 * frame.h (struct frame_id): Replace "pc" and "base" with
6904 "stack_addr" and "code_addr". Update comments.
6905 (frame_id_build): Update parameter names and comment.
6906 (struct frame_info): Replace "id_p" and "id" with "this_id".
6907 * dummy-frame.c (dummy_frame_this_id): Update.
6908 * breakpoint.c (print_one_breakpoint): Update.
6909 * frame.c (get_frame_id): Update.
6910 (get_frame_base, frame_id_build): Update.
6911 (create_sentinel_frame, legacy_get_prev_frame): Update.
6912 (deprecated_update_frame_base_hack): Update.
6913 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6914 (frame_id_inner): Ditto.
6915
ac16bf07
AC
69162003-04-09 Andrew Cagney <cagney@redhat.com>
6917
6918 * defs.h (gdb_print_host_address): Make "addr" parameter a
6919 pointer constant.
6920 * utils.c (gdb_print_host_address): Update.
6921
366cfc9e
KB
69222003-04-09 Kevin Buettner <kevinb@redhat.com>
6923
6924 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6925 register number for R0 is 0.
6926
cd983b5c
JB
69272003-04-09 J. Brobecker <brobecker@gnat.com>
6928
6929 * frame.h (struct gdbarch): Add opaque structure definition
6930 to avoid a compilation warning on LynxOS 4.0.
6931
d1340264
AC
69322003-04-09 Andrew Cagney <cagney@redhat.com>
6933
6934 * frame.h (struct frame_info): Delete field "pc". Replace
6935 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6936 structure.
6937 * frame.c (frame_pc_unwind): Update.
6938 (create_sentinel_frame): Do not set "pc".
6939 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6940 (get_frame_pc): Call frame_pc_unwind.
6941 (deprecated_update_frame_pc_hack): Update.
6942 (create_new_frame): Use "pc" not "->pc".
6943
90a6fffb
AC
69442003-04-09 Andrew Cagney <cagney@redhat.com>
6945
6946 * frame.c (get_frame_id): Eliminate code updating "frame".
6947 (legacy_get_prev_frame): Ditto.
6948 (get_frame_base): Return id.base directly.
6949 (deprecated_update_frame_base_hack): Update "id.base".
6950 * frame.h (struct frame_info): Delete field "frame".
6951
2fbce691
AC
69522003-04-09 Andrew Cagney <cagney@redhat.com>
6953
6954 * NEWS: Mention that the "Sequent family" is obsolete.
6955 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6956 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6957 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6958 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6959 * config/i386/tm-ptx4.h: Obsolete file.
6960 * config/i386/tm-ptx.h: Obsolete file.
6961 * symm-tdep.c: Obsolete file.
6962 * config/i386/symmetry.mt: Obsolete file.
6963 * config/i386/tm-symmetry.h: Obsolete file.
6964 * symm-nat.c: Obsolete file.
6965 * config/i386/nm-symmetry.h: Obsolete file.
6966 * config/i386/xm-symmetry.h: Obsolete file.
6967 * config/i386/symmetry.mh: Obsolete file.
6968 * config/i386/nm-ptx4.h: Obsolete file.
6969 * config/i386/ptx4.mh: Obsolete file.
6970 * config/i386/ptx.mt: Obsolete file.
6971 * config/i386/ptx.mh: Obsolete file.
6972 * config/i386/xm-ptx4.h: Obsolete file.
6973 * config/i386/xm-ptx.h: Obsolete file.
6974
78c43945
AC
69752003-04-09 Andrew Cagney <cagney@redhat.com>
6976
6977 Obsolete mips*-*-mach3*.
6978 * NEWS: Mention that mips*-*-mach3* is obsolete.
6979 * m3-nat.c: Obsolete file.
6980 * config/nm-m3.h: Obsolete file.
6981 * config/mips/tm-mipsm3.h: Obsolete file.
6982 * config/mips/mipsm3.mt: Obsolete file.
6983 * config/mips/mipsm3.mh: Obsolete file.
6984 * config/mips/xm-mipsm3.h: Obsolete file.
6985 * mipsm3-nat.c: Obsolete file.
6986 * configure.host: Obsolete mips-dec-mach3*.
6987 * configure.tgt: Obsolete mips*-*-mach3*.
6988
f1908289
AC
69892003-04-09 Andrew Cagney <cagney@redhat.com>
6990
6991 * doublest.h: Update copyright.
6992 (deprecated_store_floating, deprecated_extract_floating): Rename
6993 store_floating and extract_floating. Update comments.
6994 * doublest.c: Update copyright.
6995 (extract_floating_by_length): Replace extract_floating.
6996 (store_floating_by_length): Replace store_floating.
6997 (deprecated_extract_floating): New function.
6998 (deprecated_store_floating): New function.
6999 (extract_typed_floating): Call extract_floating_by_length.
7000 (store_typed_floating): Call store_floating_by_length.
7001 * x86-64-tdep.c (x86_64_store_return_value): Update.
7002 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7003 (sh64_extract_return_value): Update.
7004 (sh_sh4_register_convert_to_virtual): Update.
7005 (sh_sh64_register_convert_to_virtual): Update.
7006 (sh_sh4_register_convert_to_raw): Update.
7007 (sh_sh64_register_convert_to_raw): Update.
7008 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7009 (rs6000_register_convert_to_raw): Update.
7010 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7011 (ia64_register_convert_to_raw): Update.
7012 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7013 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7014 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7015 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7016 (alpha_register_convert_to_raw): Update.
7017
4443bd83
AC
70182003-04-08 Andrew Cagney <cagney@redhat.com>
7019
7020 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7021 * gdbarch.h, gdbarch.c: Re-generate.
7022 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7023 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7024 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7025 conditionally, use frame_pc_unwind as an alternative. Add
7026 comments.
7027 * arch-utils.c (init_frame_pc_default): Only call
7028 SAVED_PC_AFTER_CALL when available.
7029
c0236d92
EZ
70302003-04-08 Elena Zannoni <ezannoni@redhat.com>
7031
fbe586ae 7032 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7033 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7034 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7035 (start_remote): Ditto.
7036 (handle_inferior_event): Ditto.
7037 (save_inferior_status): Ditto.
7038 (restore_inferior_status): Ditto.
7039 * infcmd.c (attach_command): Ditto.
7040 * fork-child.c (startup_inferior): Ditto.
fbe586ae 7041 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7042 * alpha-tdep.c (heuristic_proc_start): Ditto.
7043 * mips-tdep.c (heuristic_proc_start): Ditto.
7044 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7045 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7046 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7047 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7048 * remote-vx.c (vx_create_inferior): Ditto.
7049
70502003-04-08 Elena Zannoni <ezannoni@redhat.com>
7051
7052 * infrun.c (stop_soon_quietly): Make it an enum, to better
7053 override the default behavior of handle_inferior_event.
7054 (clear_proceed_status): Update uses of stop_soon_quietly to
7055 reflect that it is now an enum.
7056 (start_remote): Ditto.
7057 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7058 is set to handle the new GNU/Linux kernel behavior for
7059 attach/sigstop. Update uses of stop_soon_quietly.
7060 * inferior.h (enum stop_kind): New enum.
7061 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7062 Reset normal handle_inferior_event behavior, afterwards.
7063 * fork-child.c (startup_inferior): Update.
7064 * alpha-tdep.c (heuristic_proc_start): Update.
7065 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7066 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7067 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7068 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7069 * remote-vx.c (vx_create_inferior): Update.
7070 * mips-tdep.c (heuristic_proc_start): Update.
7071
1211bce3
EZ
70722003-04-07 Elena Zannoni <ezannoni@redhat.com>
7073
7074 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 7075 be freed more than once, causing wild memory corruptions.
1211bce3 7076 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 7077 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 7078 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 7079 with the "core" target.
1211bce3 7080
f0ef6b29
KB
70812003-04-07 Kevin Buettner <kevinb@redhat.com>
7082
7083 * mips-tdep.c (mips_print_fp_register): New function, created from
7084 do_fp_register_row(). Registers are now (also) printed as hex.
7085 Only one register is printed per row.
7086 (mips_print_register, do_fp_register_row): Print floating point
7087 registers with mips_print_fp_register().
7088
8cf71652
AC
70892003-04-06 Andrew Cagney <cagney@redhat.com>
7090
5e488a7b
AC
7091 * valprint.h (inspect_it): Add extern declaration.
7092 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7093 (selectors_info, classes_info): Ditto.
7094 (find_objc_msgcall): Fix indentation.
7095 (objc_printstr): Delete extern declarations.
7096
8cf71652
AC
7097 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7098
e6ba3bc9
AC
70992003-04-06 Andrew Cagney <cagney@redhat.com>
7100
7101 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7102 Update comment.
7103 * frame.c (legacy_saved_regs_this_id): Update.
7104 (legacy_get_prev_frame): Update.
7105 * xstormy16-tdep.c: Update comment.
7106 * sparc-tdep.c (sparc_frame_chain): Update comment.
7107 * blockframe.c (legacy_frame_chain_valid): Update.
7108
55e1d7e7
AC
71092003-04-06 Andrew Cagney <cagney@redhat.com>
7110
996179ee
AC
7111 * valprint.c (val_print_type_code_int): Delete #ifdef
7112 PRINT_TYPELESS_INTEGER code.
7113
55e1d7e7
AC
7114 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7115 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7116 multi-arch definition.
7117 * gdbarch.h: Re-generate.
7118
43bd9a9e
AC
71192003-04-05 Andrew Cagney <cagney@redhat.com>
7120
7121 Eliminate FRAME_FIND_SAVED_REGS.
7122 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7123 Change FSR parameter to a pointer.
7124 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7125 Assume FSR parameter is a pointer.
7126 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7127 Make fsr a pointer.
7128 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7129 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7130 saved_regs a pointer.
7131 (hppa_frame_saved_pc): Ditto.
7132 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7133 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7134 pointer.
7135 (restore_pc_queue): Make fsr a pointer.
7136 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7137 (hppa_frame_chain): Make saved_regs a pointer, call
7138 hppa_frame_init_saved_regs.
7139 * sparc-tdep.c: Include "gdb_assert.h".
7140 (sparc_frame_find_saved_regs): Replace internal_error with
7141 gdb_assert.
7142 * remote-vxsparc.c (vx_read_register): Delete reference to
7143 FRAME_FIND_SAVED_REGS.
7144 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7145 * gdbarch.h: Regenerate.
7146 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7147 (deprecated_get_frame_saved_regs): Delete declaration.
7148 (struct frame_saved_regs): Delete definition.
7149 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7150 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7151 (hppa_frame_find_saved_regs): Delete declaration.
7152 (FRAME_FIND_SAVED_REGS): Delete macro.
7153 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7154 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7155 FRAME_FIND_SAVED_REGS in comment.
7156
be41e9f4
AC
71572003-04-05 Andrew Cagney <cagney@redhat.com>
7158
7159 * frame.c (frame_func_unwind, get_frame_func): New functions.
7160 * frame.h (get_frame_func, frame_func_unwind): Declare.
7161 (struct frame_info): Add field "prev_func" for caching the
7162 previous frame's function address.
7163 * arm-tdep.c (arm_frameless_function_invocation): Combine
7164 get_pc_function_start and get_frame_pc into get_frame_func.
7165 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7166 (sh64_nofp_frame_init_saved_regs): Ditto.
7167 * s390-tdep.c (s390_function_start): Ditto.
7168 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7169 (rs6000_frameless_function_invocation): Ditto.
7170 (rs6000_frame_saved_pc): Ditto.
7171 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7172 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7173 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7174 (i386_frame_init_saved_regs): Ditto.
7175 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7176 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7177 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7178 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7179 * blockframe.c (frameless_look_for_prologue): Ditto.
7180
a01dd7cc
AC
71812003-04-05 Andrew Cagney <cagney@redhat.com>
7182
7183 * frame.c (legacy_get_prev_frame): Link prev to next at the
7184 function start. Update comments.
7185
5e5592e6
AC
71862003-04-05 Andrew Cagney <cagney@redhat.com>
7187
7188 * frame.c (get_frame_id): Update comment.
7189 (legacy_get_prev_frame): Update comment.
7190 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7191 * gdbarch.h: Regenerate.
7192 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7193 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7194
6fba5002
AC
71952003-04-05 Andrew Cagney <cagney@redhat.com>
7196
7197 * stack.c (print_frame_info): Use get_frame_pc.
7198
7df05f2b
AC
71992003-04-04 Andrew Cagney <cagney@redhat.com>
7200
7201 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7202 the frame's type from the unwinder.
7203 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7204 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7205 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7206 (get_frame_base_address): Use get_frame_type.
7207 (get_frame_locals_address, get_frame_args_address): Ditto.
7208 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7209 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7210 (struct frame_info): Add comment explaining why the frame contains
7211 a "type" field.
7212 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7213 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7214 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7215 NORMAL_FRAME.
7216 * frame-unwind.h: Include "frame.h".
7217 (struct frame_unwind): Add "type" field.
7218 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 7219
11889732
AC
72202003-04-04 Andrew Cagney <cagney@redhat.com>
7221
7222 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7223 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7224 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7225 get_frame_base.
7226 (d10v_unwind_dummy_id): Use frame_id_build.
7227 * frame.c (find_frame_sal): Use get_frame_pc.
7228 (create_new_frame): Use deprecated_update_frame_pc_hack and
7229 deprecated_update_frame_base_hack.
7230 (create_sentinel_frame): Add comment about ->pc going away.
7231 (get_prev_frame): Add comment about ->pc going away.
7232 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7233 frame_id_build, deprecated_update_frame_pc_hack and
7234 deprecated_update_frame_base_hack.
7235 (select_frame): Use get_frame_pc.
7236 (legacy_saved_regs_this_id): Use frame_id_build.
7237
50c46a0d
EZ
72382003-04-04 Elena Zannoni <ezannoni@redhat.com>
7239
fbe586ae
RH
7240 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7241 signed integer case.
7242 (classify_argument): Handle enumerations and references.
50c46a0d 7243
50bbdbd9
AC
72442003-04-04 Andrew Cagney <cagney@redhat.com>
7245
7246 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7247 ID to NULL.
7248
36018d2e
AF
72492003-04-01 Adam Fedor <fedor@gnu.org>
7250
7251 * gdb/objc-lang.c (selectors_info): Replace calls to
7252 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7253 SYMBOL_NATURAL_NAME.
7254 (classes_info, find_methods): Likewise.
7255
35cec841
KB
72562003-04-03 Kevin Buettner <kevinb@redhat.com>
7257
7258 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7259 ``mach'' to the value determined by bfd_default_set_arch_mach().
7260
43136899
BR
72612003-04-02 Bob Rossi <bob_rossi@cox.net>
7262
7263 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7264 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7265 (mi-cmd-file.o): Update dependencies.
7266
040b99fd
KB
72672003-04-01 Kevin Buettner <kevinb@redhat.com>
7268
7269 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7270 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7271
9a3d7dfd
AF
72722003-04-01 Adam Fedor <fedor@gnu.org>
7273
7274 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7275 * language.h (struct language_defn): Add la_demangle.
7276 (language_demangle): Declare.
7277 * language.c (language_demangle): New function.
7278 (unk_lang_demangle): Likewise.
7279 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 7280 Add ukn_lang_demangle.
9a3d7dfd 7281 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 7282 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
7283 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7284 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7285 * jv-lang.c (java_demangle): New function
7286 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
7287 * objc-lang.c (objc_demangle): Add options argument
7288 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
7289 * maint.c (maintenance_demangle): Replace switch with
7290 call to language_demangle.
7291 * utils.c (fprintf_symbol_filtered): Likewise.
7292
5e074003
AC
72932003-04-01 Andrew Cagney <cagney@redhat.com>
7294
7295 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7296 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7297 PRINT_TYPELESS_INTEGER.
7298 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7299 PUSH_RETURN_ADDRESS.
7300
270cb5d6
AC
73012003-04-01 Andrew Cagney <cagney@redhat.com>
7302
7303 * Makefile.in (d10v-tdep.o): Update dependencies.
7304 * d10v-tdep.c: Include "frame-base.h".
7305 (d10v_frame_unwind): Make constant.
7306 (d10v_frame_base_address): New function.
7307 (d10v_frame_base): New variable.
7308 (d10v_gdbarch_init): Set frame_base default.
7309 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7310 comment for base.
7311 (d10v_frame_unwind_cache): Set and use "prev_sp".
7312 (d10v_frame_this_id): Use the previous frame's inner most stack
7313 address and this frame's func address for the frame ID. Use
7314 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 7315
6bfb3e36
AC
73162003-04-01 Andrew Cagney <cagney@redhat.com>
7317
7318 * frame.h (get_frame_locals_address, get_frame_args_address):
7319 Refer to the base address, instead of the address of the first
7320 local or parameter.
8ffd9b1b 7321
da62e633
AC
73222003-04-01 Andrew Cagney <cagney@redhat.com>
7323
7324 Add frame debug info addresses:
7325 * frame-base.c: New file.
7326 * frame-base.h: New file.
7327 * frame.h (struct frame_base): Add opaque declaration.
7328 (get_frame_base): Update comment.
7329 (get_frame_base_address): Declare.
7330 (get_frame_locals_address): Declare.
7331 (get_frame_args_address): Declare.
7332 (struct frame_info): Add "base" and "base_cache". Update
7333 comments on the unwinder.
7334 * frame.c: Include "frame-base.h".
7335 (get_frame_locals_address): New function.
7336 (get_frame_base_address): New function.
7337 (get_frame_args_address): New function.
7338 * findvar.c (read_var_value): Use get_frame_locals_address and
7339 get_frame_args_address.
7340 * stack.c (frame_info): Use get_frame_locals_address and
7341 get_frame_args_address.
7342 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7343 moved to "frame-base.c".
7344 * printcmd.c (print_frame_nameless_args): Ditto.
7345 * symtab.h (address_class): Update comments.
7346 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7347 get_frame_base_address.
7348 * dwarf2expr.c (execute_stack_op): Ditto.
7349 * Makefile.in (frame_base_h): Define.
7350 (frame.o): Update dependencies.
7351 (frame-base.o): Add dependencies.
7352 (SFILES): Add frame-base.c.
7353 (COMMON_OBS): Add frame-base.o.
7354
3d30e9c2
AC
73552003-04-01 Andrew Cagney <cagney@redhat.com>
7356
7357 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7358 CALL_DUMMY_LENGTH): Ditto.
7359 * gdbarch.c: Re-generate.
7360 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7361 (CALL_DUMMY_LENGTH): Delete macro.
7362 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7363 * arm-tdep.c (arm_gdbarch_init): Ditto.
7364 * avr-tdep.c (avr_gdbarch_init): Ditto.
7365 * cris-tdep.c (cris_gdbarch_init): Ditto.
7366 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7367 * frv-tdep.c (frv_gdbarch_init): Ditto.
7368 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7369 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7370 * i386-tdep.c (i386_gdbarch_init): Ditto.
7371 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7372 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7373 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7374 * mips-tdep.c (mips_gdbarch_init): Ditto.
7375 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7376 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7377 * s390-tdep.c (s390_gdbarch_init): Ditto.
7378 * sh-tdep.c (sh_gdbarch_init): Ditto.
7379 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7380 * v850-tdep.c (v850_gdbarch_init): Ditto.
7381 * vax-tdep.c (vax_gdbarch_init): Ditto.
7382 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7383
ce0c7262
CV
73842003-04-01 Corinna Vinschen <vinschen@redhat.com>
7385
7386 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7387
73dd234f
AC
73882003-04-01 Andrew Cagney <cagney@redhat.com>
7389
7390 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7391 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7392 * gdbarch.h, gdbarch.c: Re-generate.
7393 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7394 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7395 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7396 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7397 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7398 * infcmd.c (run_stack_dummy): Simplify assuming
7399 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7400 * infrun.c (handle_inferior_event): Ditto.
7401 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7402 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7403 * arm-tdep.c (arm_gdbarch_init): Ditto.
7404 * avr-tdep.c (avr_gdbarch_init): Ditto.
7405 * cris-tdep.c (cris_gdbarch_init): Ditto.
7406 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7407 * frv-tdep.c (frv_gdbarch_init): Ditto.
7408 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7409 * i386-tdep.c (i386_gdbarch_init): Ditto.
7410 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7411 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7412 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7413 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7414 * mips-tdep.c (mips_gdbarch_init): Ditto.
7415 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7416 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7417 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7418 * s390-tdep.c (s390_gdbarch_init): Ditto.
7419 * sh-tdep.c (sh_gdbarch_init): Ditto.
7420 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7421 * v850-tdep.c (v850_gdbarch_init): Ditto.
7422 * vax-tdep.c (vax_gdbarch_init): Ditto.
7423 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7424
97606a13
DJ
74252003-04-01 Daniel Jacobowitz <drow@mvista.com>
7426
7427 * symfile.c (symfile_relocate_debug_section): Update call to
7428 bfd_simple_get_relocated_section_contents.
7429
e8ab51f7
AC
74302003-03-31 Andrew Cagney <cagney@redhat.com>
7431
7432 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7433 * gdbarch.h, gdbarch.c: Regenerate.
7434 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7435 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7436 available.
7437 * frame.h (generic_fix_call_dummy): Delete declaration.
7438 * dummy-frame.h: Update comment.
7439 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7440 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7441 fix_call_dummy.
7442 * sh-tdep.c (sh_gdbarch_init): Ditto.
7443 * s390-tdep.c (s390_gdbarch_init): Ditto.
7444 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7445 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7446 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7447 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7448 * i386-tdep.c (i386_gdbarch_init): Ditto.
7449 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7450 * frv-tdep.c (frv_gdbarch_init): Ditto.
7451 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7452 * cris-tdep.c (cris_gdbarch_init): Ditto.
7453 * avr-tdep.c (avr_gdbarch_init): Ditto.
7454 * arm-tdep.c (arm_gdbarch_init): Ditto.
7455
018d1b48
JB
74562003-03-31 J. Brobecker <brobecker@gnat.com>
7457
7458 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7459 (INIT_FRAME_AP): Likewise.
7460 (EXTRA_FRAME_INFO): Likewise.
7461
e9a2674e
AC
74622003-03-31 Andrew Cagney <cagney@redhat.com>
7463
7464 * gdbarch.sh: Include "symfile.h".
7465 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7466 * gdbarch.h, gdbarch.c: Re-generate.
7467 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7468 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7469 call_dummy_address, the default is at entry_point_address.
7470 * v850-tdep.c (v850_gdbarch_init): Ditto.
7471 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7472 * sh-tdep.c (sh_gdbarch_init): Ditto.
7473 * s390-tdep.c (s390_gdbarch_init): Ditto.
7474 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7475 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7476 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7477 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7478 * i386-tdep.c (i386_gdbarch_init): Ditto.
7479 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7480 * frv-tdep.c (frv_gdbarch_init): Ditto.
7481 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7482 * cris-tdep.c (cris_gdbarch_init): Ditto.
7483 * arm-tdep.c (arm_gdbarch_init): Ditto.
7484
e8a8712a
AC
74852003-03-31 Andrew Cagney <cagney@redhat.com>
7486
7487 * gdbarch.sh (CALL_DUMMY_P): Delete.
7488 * gdbarch.h, gdbarch.c: Re-generate.
7489 * inferior.h (CALL_DUMMY_P): Delete macro.
7490 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7491 * vax-tdep.c (vax_gdbarch_init): Update.
7492 * v850-tdep.c (v850_gdbarch_init): Update.
7493 * sparc-tdep.c (sparc_gdbarch_init): Update.
7494 * sh-tdep.c (sh_gdbarch_init): Update.
7495 * s390-tdep.c (s390_gdbarch_init): Update.
7496 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7497 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7498 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7499 * mips-tdep.c (mips_gdbarch_init): Update.
7500 * mcore-tdep.c (mcore_gdbarch_init): Update.
7501 * m68k-tdep.c (m68k_gdbarch_init): Update.
7502 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7503 * ia64-tdep.c (ia64_gdbarch_init): Update.
7504 * i386-tdep.c (i386_gdbarch_init): Update.
7505 * h8300-tdep.c (h8300_gdbarch_init): Update.
7506 * frv-tdep.c (frv_gdbarch_init): Update.
7507 * d10v-tdep.c (d10v_gdbarch_init): Update.
7508 * cris-tdep.c (cris_gdbarch_init): Update.
7509 * breakpoint.c (deprecated_frame_in_dummy): Update.
7510 * avr-tdep.c (avr_gdbarch_init): Update.
7511 * alpha-tdep.c (alpha_gdbarch_init): Update.
7512 * arm-tdep.c (arm_gdbarch_init): Update.
7513 * dummy-frame.c (dummy_frame_this_id): Update comments.
7514 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7515 * frame.c (legacy_get_prev_frame): Ditto.
7516 * valops.c (call_function_by_hand): Delete function.
7517 (hand_function_call): Rename to call_function_by_hand
7518
ed234cf8
AC
75192003-03-30 Andrew Cagney <cagney@redhat.com>
7520
7521 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 7522 * value.h (struct value): Update comment.
ed234cf8 7523
06c77151
AC
75242003-03-30 Andrew Cagney <cagney@redhat.com>
7525
6c2b5168
AC
7526 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7527 D10V_FP_REGNUM.
7528 (d10v_gdbarch_init): Do not set fp_regnum.
7529
06c77151
AC
7530 * frame.c (get_frame_base): Force ID initialization.
7531 (get_prev_frame): Move computation of the frame ID from here ...
7532 (get_frame_id): ... to here.
7533 (legacy_get_prev_frame): Mark the frame ID as valid.
7534 * frame.h (struct frame_info): Add field "id_p".
7535
97a1a11c
MK
75362003-03-30 Mark Kettenis <kettenis@gnu.org>
7537
7538 * i386-tdep.c (i386_store_struct_return): Removed.
7539 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7540
6c0e89ed
AC
75412003-03-30 Andrew Cagney <cagney@redhat.com>
7542
7543 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7544 * gdbarch.h, gdbarch.c: Regenerate.
7545 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7546 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7547 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7548 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7549 * i386-tdep.c (i386_gdbarch_init): Ditto.
7550 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7551 * cris-tdep.c (cris_gdbarch_init): Ditto.
7552 * vax-tdep.c (vax_gdbarch_init): Ditto.
7553 * s390-tdep.c (s390_gdbarch_init): Ditto.
7554 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7555 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7556 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7557 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7558 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7559 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7560 * sparc-tdep.c (sparc_gdbarch_init): Update.
7561 * sh-tdep.c (sh_gdbarch_init): Update.
7562 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7563 * mips-tdep.c (mips_gdbarch_init): Update.
7564 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7565 * ia64-tdep.c (ia64_gdbarch_init): Update.
7566 * frv-tdep.c (frv_gdbarch_init): Update.
7567 * avr-tdep.c (avr_gdbarch_init): Update.
7568 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7569 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7570 instead of when push_dummy_call is not available.
8ffd9b1b 7571
f7dd6af2
AC
75722003-03-30 Andrew Cagney <cagney@redhat.com>
7573
7574 * infttrace.c: Include "gdbthread.h".
7575 (parent_attach_all): Fix function signature.
7576 (call_ptrace): Update call.
7577 * Makefile.in (infttrace.o): Update dependencies.
7578
28f617b3
AC
75792003-03-30 Andrew Cagney <cagney@redhat.com>
7580
7581 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7582 PUSH_RETURN_ADDRESS.
7583 * gdbarch.h, gdbarch.c: Regenerate.
7584 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7585 * x86-64-tdep.c (x86_64_init_abi): Update.
7586 * v850-tdep.c (v850_gdbarch_init): Update.
7587 * sparc-tdep.c (sparc_gdbarch_init): Update.
7588 * sh-tdep.c (sh_gdbarch_init): Update.
7589 * s390-tdep.c (s390_gdbarch_init): Update.
7590 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7591 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7592 * mips-tdep.c (mips_gdbarch_init): Update.
7593 * mcore-tdep.c (mcore_gdbarch_init): Update.
7594 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7595 * ia64-tdep.c (ia64_gdbarch_init): Update.
7596 * i386-tdep.c (i386_gdbarch_init): Update.
7597 * h8300-tdep.c (h8300_gdbarch_init): Update.
7598 * frv-tdep.c (frv_gdbarch_init): Update.
7599 * cris-tdep.c (cris_gdbarch_init): Update.
7600 * avr-tdep.c (avr_gdbarch_init): Update.
7601 * arm-tdep.c (arm_gdbarch_init): Update.
7602 * valops.c (hand_function_call): Update.
7603
4d628cd7
AC
76042003-03-29 Andrew Cagney <cagney@redhat.com>
7605
7606 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7607 sizeof_call_dummy_words.
7608 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7609 define.
7610 * gdbarch.h: Regenerate.
8ffd9b1b 7611
65e82032
AC
76122003-03-29 Andrew Cagney <cagney@redhat.com>
7613
7614 * infttrace.h: New file.
7615 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7616 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7617 (hpread_read_doc_function_type): Detect an initialized type1.
7618 (hpread_quick_traverse): Initialize mod_name_string.
7619 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7620 (som_solib_get_solib_by_pc): Declare.
7621 (so_lib_thread_start_addr): Declare.
7622 (no_shared_libraries): Declare.
7623 * somread.c (init_import_symbols): Make static. Add forward
7624 declaration.
7625 * config/pa/nm-hppah.h: Include "infttrace.h" for
7626 parent_attach_all.
7627 (hppa_insert_hw_watchpoint): Declare.
7628 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7629 * hppah-nat.c: Include "gdb_string.h".
7630 (parent_attach_all): Delete extern declaration, moved to
7631 "infttrace.h".
7632 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7633 int.
7634 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7635 * Makefile.in (infttrace_h): Define.
7636 (hpread.o): Update dependencies.
7637 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7638 * hppa-hpux-tdep.c: Include "gdb_string.h".
7639 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7640 * infrun.c (handle_inferior_event): Always initialize
7641 stepped_after_stopped_by_watchpoint. Add default and remove
7642 fallthrough in switch statement.
7643 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7644 parameter to int.
7645 (hppa_remove_hw_watchpoint): Ditto.
7646
2c3bbe77
AC
76472003-03-29 Andrew Cagney <cagney@redhat.com>
7648
7649 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7650 offset.
7651
2dd604e7
RE
76522003-03-29 Richard Earnshaw <rearnsha@arm.com>
7653
7654 * arm-tdep.c (arm_push_arguments): Delete.
7655 (struct stack_item): New type.
7656 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7657 (arm_store_struct_return): Delte.
7658 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7659 arm_push_arguments or arm_store_struct_return.
7660
e8933a55
AC
76612003-03-28 Andrew Cagney <cagney@redhat.com>
7662
7663 * Makefile.in (d10v-tdep.o): Update dependencies.
7664 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7665 * d10v-tdep.c: Include "remote.h".
7666 (target_resume_hook): Delete extern declaration.
7667 (target_wait_loop_hook): Ditto.
7668 (tdisassemble_command): Eliminate assignment in "if" conditional.
7669 (d10v_ts2_register_sim_regno): Eliminate call to
7670 legacy_register_sim_regno.
7671 (d10v_ts3_register_sim_regno): Ditto.
7672
6949171e
JJ
76732003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7674
7675 * thread.c: Reindented.
7676 * lin-lwp.c: Ditto.
7677 * linux-proc.c: Ditto.
7678
98c7071f
BR
76792003-03-28 Bob Rossi <bob_rossi@cox.net>
7680
fbe586ae 7681 * MAINTAINERS (write after approval): Add myself.
98c7071f 7682
5edc9ca6
TR
76832003-03-27 Theodore A. Roth <troth@openavr.org>
7684
7685 * objc-exp.y: Add missing semi-colons.
7686
378bfd1b
AC
76872003-03-27 Andrew Cagney <cagney@redhat.com>
7688
7689 * regcache.c (write_sp): Delete function and references.
7690 * inferior.h (write_sp): Delete declaration.
7691 * valops.c (hand_function_call): Replace write_sp with
7692 TARGET_WRITE_SP.
7693 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7694 (sparc_pop_frame): Ditto.
8ffd9b1b 7695
56056df7
AC
76962003-03-27 Andrew Cagney <cagney@redhat.com>
7697
7698 * NEWS: Mention removal of support for hppa*-*-bsd* and
7699 hppa*-*-osf* natives, and hppa*-*-pro* target.
7700 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7701 * config/pa/xm-pa.h: Obsolete file.
7702 * config/pa/xm-hppab.h: Obsolete file.
7703 * config/pa/nm-hppab.h: Obsolete file.
7704 * config/pa/tm-hppab.h: Obsolete file.
7705 * config/pa/tm-hppao.h: Obsolete file.
7706 * config/pa/nm-hppao.h: Obsolete file.
7707 * config/pa/tm-pro.h: Obsolete file.
7708 * config/pa/hppaosf.mt: Obsolete file.
7709 * config/pa/hppaosf.mh: Obsolete file.
7710 * config/pa/hppapro.mt: Obsolete file.
7711 * config/pa/hppabsd.mt: Obsolete file.
7712 * config/pa/hppabsd.mh: Obsolete file.
7713 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7714 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7715 hppa*-*-osf*.
7716
5873a88d
AC
77172003-03-27 Andrew Cagney <cagney@redhat.com>
7718
7719 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7720 push_arguments. Don't set push_return_address or write_sp.
7721 (d10v_push_dummy_call): Replace d10v_push_arguments.
7722 (d10v_push_return_address, d10v_write_sp): Delete function,
7723 handled by push_dummy_call.
7724
b81774d8
AC
77252003-03-26 Andrew Cagney <cagney@redhat.com>
7726
7727 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7728 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7729 regcache and dummy_addr parameters.
7730 * gdbarch.h, gdbarch.c: Re-generate.
7731 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7732 available; assume it will handle stack alignment and return
7733 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7734 legacy_push_arguments.
7735 (legacy_push_arguments): Rename default_push_arguments.
7736 * value.h (legacy_push_arguments): Rename default_push_arguments.
7737 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7738 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7739 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7740 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7741 * config/i386/tm-symmetry.h: Update.
7742 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7743 * x86-64-tdep.c (x86_64_init_abi): Update.
7744 * v850-tdep.c (v850_gdbarch_init): Update.
7745 * sparc-tdep.c (sparc_gdbarch_init): Update.
7746 * sh-tdep.c (sh_gdbarch_init): Update.
7747 * s390-tdep.c (s390_gdbarch_init): Update.
7748 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7749 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7750 * mips-tdep.c (mips_gdbarch_init): Update.
7751 * mcore-tdep.c (mcore_gdbarch_init): Update.
7752 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7753 * ia64-tdep.c (ia64_gdbarch_init): Update.
7754 * i386-tdep.c (i386_gdbarch_init): Update.
7755 * hppa-tdep.c (hppa_gdbarch_init): Update.
7756 * h8300-tdep.c (h8300_gdbarch_init): Update.
7757 * frv-tdep.c (frv_gdbarch_init): Update.
7758 * d10v-tdep.c (d10v_gdbarch_init): Update.
7759 * cris-tdep.c (cris_gdbarch_init): Update.
7760 * avr-tdep.c (avr_gdbarch_init): Update.
7761 * arm-tdep.c (arm_gdbarch_init): Update.
7762 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7763 * alpha-tdep.c (alpha_gdbarch_init): Update.
7764
f541410f
DJ
77652003-03-26 Daniel Jacobowitz <drow@mvista.com>
7766
7767 * signals/signals.c (do_target_signal_to_host): Correct realtime
7768 signal range test.
7769
69f567ae
DJ
77702003-03-26 Daniel Jacobowitz <drow@mvista.com>
7771
7772 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7773 (struct sal_chain, map_catch_names): Remove.
7774 (catch_exception_command_1): Don't call
7775 handle_gnu_4_16_catch_command.
7776
d5d14a5a
DJ
77772003-03-26 Daniel Jacobowitz <drow@mvista.com>
7778
7779 From Mark Dettinger <dettinge@de.ibm.com>:
7780 * dwarf2cfi.c (read_2u): Increment pointer by two.
7781
bdd73e22
DJ
77822003-03-26 Daniel Jacobowitz <drow@mvista.com>
7783
7784 * signals/signals.c: Fix typos in last change.
7785
960cb555
DJ
77862003-03-26 Daniel Jacobowitz <drow@mvista.com>
7787
7788 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7789 not already defined. Use __SIGRTMIN if available.
7790 (target_signal_from_host): Remove SIGRTMIN block.
7791 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7792 the signal is within the realtime range.
7793
f636b87d
AF
77942003-03-25 Adam Fedor <fedor@gnu.org>
7795
7796 * Makefile.in (infrun.o): Add $(language_h)
7797 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7798 for language specific trampolines.
7799 * language.h (struct language_defn): Add skip_trampoline.
7800 (skip_language_trampoline): Declare.
7801 * language.c (unk_lang_trampoline, skip_language_trampoline):
7802 New functions.
7803 (unknown_language_defn, auto_language_defn, local_language_defn):
7804 Add ukn_lang_trampoline.
7805 * ada-lang.c (ada_language_defn): Add NULL for language
7806 specific skip_trampoline.
7807 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7808 scm-lang.c: Likewise.
7809 * objc-lang.c (objc_skip_trampoline): New function.
7810 (objc_language_defn): Add objc_skip_trampoline.
7811
28f617b3 78122003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
7813
7814 * frame.c (get_prev_frame): Delay validating a frame's ID -
7815 non-NULL, didn't go backwards - until an attempt to unwind it to
7816 the previous frame.
7817
f933a9c5
AC
78182003-03-25 Andrew Cagney <cagney@redhat.com>
7819
7820 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7821 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7822 * gdbarch.h, gdbarch.c: Re-generate.
7823 * config/sparc/tm-sparc.h
7824 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7825 * sparc-tdep.c (sparc_gdbarch_init): Set
7826 deprecated_extra_stack_alignment_needed.
7827 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7828 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7829 extra_stack_alignment_needed.
7830 * v850-tdep.c (v850_gdbarch_init): Ditto.
7831 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7832 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7833 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7834 * cris-tdep.c (cris_gdbarch_init): Ditto.
7835 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7836 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7837
4183d812
AC
78382003-03-25 Andrew Cagney <cagney@redhat.com>
7839
7840 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7841 STORE_STRUCT_RETURN.
7842 * gdbarch.h, gdbarch.c: Regenerate.
7843 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7844 (d10v_push_arguments): Set the struct return register.
7845 (d10v_gdbarch_init): Update.
7846 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7847 * x86-64-tdep.c (x86_64_init_abi): Update.
7848 * vax-tdep.c (vax_gdbarch_init): Update.
7849 * v850-tdep.c (v850_gdbarch_init): Update.
7850 * sparc-tdep.c (sparc_gdbarch_init): Update.
7851 * sh-tdep.c (sh_gdbarch_init): Update.
7852 * s390-tdep.c (s390_gdbarch_init): Update.
7853 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7854 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7855 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7856 * mips-tdep.c (mips_gdbarch_init): Update.
7857 * mcore-tdep.c (mcore_gdbarch_init): Update.
7858 * m68k-tdep.c (m68k_gdbarch_init): Update.
7859 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7860 * ia64-tdep.c (ia64_gdbarch_init): Update.
7861 * i386-tdep.c (i386_gdbarch_init): Update.
7862 * hppa-tdep.c (hppa_gdbarch_init): Update.
7863 * h8300-tdep.c (h8300_gdbarch_init): Update.
7864 * frv-tdep.c (frv_gdbarch_init): Update.
7865 * cris-tdep.c (cris_gdbarch_init): Update.
7866 * avr-tdep.c (avr_gdbarch_init): Update.
7867 * arm-tdep.c (arm_gdbarch_init): Update.
7868 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 7869
1bf6d5cc
AC
78702003-03-25 Andrew Cagney <cagney@redhat.com>
7871
7872 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7873 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7874 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7875 * gdbarch.h, gdbarch.c: Regenerate.
7876 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7877 call_dummy_stack_adjust_p.
7878 * vax-tdep.c (vax_gdbarch_init): Ditto.
7879 * v850-tdep.c (v850_gdbarch_init): Ditto.
7880 * sh-tdep.c (sh_gdbarch_init): Ditto.
7881 * s390-tdep.c (s390_gdbarch_init): Ditto.
7882 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7883 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7884 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7885 * mips-tdep.c (mips_gdbarch_init): Ditto.
7886 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7887 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7888 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7889 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7890 * i386-tdep.c (i386_gdbarch_init): Ditto.
7891 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7892 * frv-tdep.c (frv_gdbarch_init): Ditto.
7893 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7894 * cris-tdep.c (cris_gdbarch_init): Ditto.
7895 * avr-tdep.c (avr_gdbarch_init): Ditto.
7896 * arm-tdep.c (arm_gdbarch_init): Ditto.
7897 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7898 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7899 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7900 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7901 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7902 call_dummy_stack_adjust_p.
7903 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7904 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7905 * sparc-tdep.c (sparc32_push_arguments): Update.
7906 * valops.c (hand_function_call): Update.
7907
71c08af0
CV
79082003-03-25 Corinna Vinschen <vinschen@redhat.com>
7909
7910 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7911 set_gdbarch_char_signed.
7912
30757f90
RE
79132003-03-25 Richard Earnshaw <rearnsha@arm.com>
7914
7915 PR cli/548
7916 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7917
03d48a7d
RE
79182003-03-25 Richard Earnshaw <rearnsha@arm.com>
7919
7920 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7921 (_initialize_arm_tdep): Don't set tm_print_insn.
7922
2cf6873c
AF
79232003-03-24 Adam Fedor <fedor@gnu.org>
7924
7925 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7926 * objc-lang.h: Add multiple inclusion protection.
7927 (start_msglist, add_msglist, end_msglist): Additional declarations.
7928
17c0759e
RE
79292003-03-24 Richard Earnshaw <rearnsha@arm.com>
7930
7931 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7932 value was renamed to ARM_FLOAT_SOFT_FPA.
7933
618ce49f
AC
79342003-03-23 Andrew Cagney <cagney@redhat.com>
7935
7936 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7937 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7938 * gdbarch.h, gdbarch.c: Regenerate.
7939 * valops.c (hand_function_call): Update.
7940 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7941 * frame.c (legacy_saved_regs_this_id): Update.
7942 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7943 * dummy-frame.h: Update.
7944 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7945 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7946 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7947 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7948 * config/m68k/tm-sun3.h: Update.
7949 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7950 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7951 * x86-64-tdep.c (x86_64_init_abi): Update.
7952 * vax-tdep.c (vax_gdbarch_init): Update.
7953 * v850-tdep.c (v850_gdbarch_init): Update.
7954 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7955 * sh-tdep.c (sh_gdbarch_init): Update.
7956 * s390-tdep.c (s390_gdbarch_init): Update.
7957 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7958 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7959 (frame_get_saved_regs): Update.
7960 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7961 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7962 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7963 * mips-tdep.c (mips_gdbarch_init): Update.
7964 * mcore-tdep.c (mcore_gdbarch_init): Update.
7965 * m68k-tdep.c (m68k_gdbarch_init): Update.
7966 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7967 * ia64-tdep.c (ia64_gdbarch_init): Update.
7968 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7969 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7970 (i386_interix_back_one_frame): Update.
7971 * hppa-tdep.c (hppa_gdbarch_init): Update.
7972 (hppa_init_extra_frame_info): Update.
7973 * h8300-tdep.c (h8300_gdbarch_init): Update.
7974 * frv-tdep.c (frv_gdbarch_init): Update.
7975 * cris-tdep.c (cris_gdbarch_init): Update.
7976 * avr-tdep.c (avr_gdbarch_init): Update.
7977 * arm-tdep.c (arm_gdbarch_init): Update.
7978 * alpha-tdep.c (alpha_gdbarch_init): Update.
7979
fd50bc42
RE
79802003-03-22 Richard Earnshaw <rearnsha@arm.com>
7981
7982 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7983 (arm_get_fp_model): Declare.
7984 * arm-tdep.c (fp_model_strings): New string array.
7985 (arm_fp_model, current_fp_model): New variables.
7986 (arm_get_fp_model): New function.
7987 (arm_set_fp): New function.
7988 (set_fp_model_sfunc): New function.
7989 (show_fp_model): New function.
7990 (_initialize_arm_tdep): Add new command to set/show the FPU.
7991 (arm_extract_return_value): Use arm_get_fp_model.
7992 (arm_store_return_value): Likewise.
7993 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7994 to initialize the floating-point data types.
7995 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7996 model is FPA.
7997
26304000
RE
79982003-03-22 Richard Earnshaw <rearnsha@arm.com>
7999
8000 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8001 the current setting of each value.
8002 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 8003 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
8004 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8005 commands and add new version as subcommands of "set/show arm".
8006
afd7eef0
RE
80072003-03-22 Richard Earnshaw <rearnsha@arm.com>
8008
8009 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8010 (set_arm_command, show_arm_command): New functions.
8011 (_initialize_arm_tdep): Add them.
8012 (num_disassembly_options): Renamed from num_flavor_options.
8013 (valid_disassembly_styles): Renamed from valid_flavors.
8014 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 8015 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
8016 set_disassembly_flavor_sfunc.
8017 (set_disassembly_style): Renamed from set_disassembly_flavor.
8018 (arm_othernames): Updated.
8019 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8020 command. Add "set/show arm disassembly" commands. Deprecate
8021 "othernames" command.
8022
299a7944
RE
80232003-03-22 Richard Earnshaw <rearnsha@arm.com>
8024
8025 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8026 (arm-tdep.o): Depend on elf_arm_h.
8027
c1dac9e6
RE
80282003-03-22 Richard Earnshaw <rearnsha@arm.com>
8029
8030 * Makefile.in (coff_internal_h): Define.
8031 (arm-tdep.o): Update dependencies.
8032
2702d96c
RE
80332003-03-22 Richard Earnshaw <rearnsha@arm.com>
8034
8035 * arm-tdep.c (prologue_cache): Delete.
8036 (check_prologue_cache, save_prologue_cache): Delete.
8037 (arm_scan_prologue): Don't check or update the prologue_cache.
8038 (arm_gdb_arch_init): Don't initialize it.
8039 (_initialize_arm_tdep): Likewise.
8040
27d5d74b
SC
80412003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8042
8043 * MAINTAINERS (tui): Maintainer of tui code.
8044
1762d96d
CV
80452003-03-21 Corinna Vinschen <vinschen@redhat.com>
8046
8047 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8048 (i386-cygwin-tdep.o): Add dependencies.
8049 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8050 * i386-cygwin-tdep.c: New file.
8051 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8052 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8053
4c2e2391
AC
80542003-03-20 Andrew Cagney <cagney@redhat.com>
8055
f20d38b7
AC
8056 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8057 (handle_inferior_event): Remove code calling
8058 DYNAMIC_TRAMPOLINE_NEXTPC.
8059
0022b738
AC
8060 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8061 already has a full path.
8062
864dbc90
AC
8063 * main.c (gdb_main): Return 1.
8064 (captured_main): Call error to report an invalid interpreter.
8065
4c2e2391
AC
8066 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8067 * alpha-osf1-tdep.c: Include "gdb_string.h".
8068
5ef7553b
JB
80692003-03-19 J. Brobecker <brobecker@gnat.com>
8070
8071 Continuing work to convert the hppa targets to multiarch partial.
8072
8073 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8074 method, now that hppa_push_dummy_frame has a conformant prototype.
8075 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8076 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8077 for the switch to multiarch partial.
8078
7bde8967
KB
80792003-03-19 Kevin Buettner <kevinb@redhat.com>
8080
8081 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8082 when iss is issNull.
8083
b006a9e9
KB
80842003-03-18 Kevin Buettner <kevinb@redhat.com>
8085
8086 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8087 NUM_REGS bounds check.
8088
5e2e9765
KB
80892003-03-18 Kevin Buettner <kevinb@redhat.com>
8090
8091 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8092 * mips-tdep.c (gdb_assert.h): Include.
8093 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8094 (mips_register_name): Handle integer registers explicitly. Add
8095 bounds checking.
8096 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8097 (mips_lsi33k_reg_names): Don't list integer registers; they're
8098 handled by mips_register_name() now.
8099 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8100 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8101 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8102 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8103 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8104
a2867626
AC
81052003-03-18 Andrew Cagney <cagney@redhat.com>
8106
8107 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8108 a void pointer.
8109 * gdbtypes.h (print_scalar_formatted): Update declaration.
8110 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8111
06600e06
JB
81122003-03-18 J. Brobecker <brobecker@gnat.com>
8113
8114 * infrun.c (observer.h): Add #include.
8115 (normal_stop): Add call to observer_notify_normal_stop.
8116 * Makefile.in (infrun.o): Add dependency on observer.h.
8117
7daf4f5b
JB
81182003-03-18 J. Brobecker <brobecker@gnat.com>
8119
8120 Continuing work to convert the hppa targets to multiarch partial.
8121 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8122 parameter. Reformat comment.
8123 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8124 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8125 to match new profile.
8126
3371ccc0
JB
81272003-03-18 J. Brobecker <brobecker@gnat.com>
8128
8129 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8130 appear to be working in any case.
8131
4fbe891e
JB
81322003-03-18 J. Brobecker <brobecker@gnat.com>
8133
8134 * observer.c (observer_test_first_observer): New static variable.
8135 (observer_test_second_observer): Likewise.
8136 (observer_test_third_observer): Likewise.
8137 (observer_test_first_notification_function): New static function.
8138 (observer_test_second_notification_function): Likewise.
8139 (observer_test_third_notification_function): Likewise.
8140
a7ff40e7
JB
81412003-03-17 J. Brobecker <brobecker@gnat.com>
8142
8143 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8144 * somsolib.c (gdb_assert.h): Likewise.
8145 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8146 (somsolib.o): Likewise.
8147
26ca4152
AC
81482003-03-17 Andrew Cagney <cagney@redhat.com>
8149
8150 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8151 BFD. Simplify setting of di.endian.
8152
0a613259
AC
81532003-03-17 Andrew Cagney <cagney@redhat.com>
8154
8155 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8156 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8157
8158 From Elena Zannoni <ezannoni@redhat.com>
8159 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8160 vector and floating-point parameters.
8161 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8162 convention.
8163 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8164
1132738f
FN
81652003-03-17 Fernando Nasser <fnasser@redhat.com>
8166
8167 * MAINTAINERS: Remove my name from several maintainership roles.
8168
6dc42492
AC
81692003-03-17 Andrew Cagney <cagney@redhat.com>
8170
8171 Fix frame off-by-one bug.
8172 * frame-unwind.h (frame_this_id_ftype): Replace
8173 frame_unwind_id_ftype.
8174 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8175 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8176 with "prev_register".
8177 * frame-unwind.c (frame_unwind_find_by_pc): Return
8178 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8179 comment.
8180 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8181 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8182 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8183 (dummy_frame_unwind): Update.
8184 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8185 sentinel_frame_register_unwind.
8186 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8187 (sentinel_frame_unwinder): Update.
8188 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8189 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8190 * frame.c (create_sentinel_frame): Update. Initialize
8191 "prologue_cache" instead of "unwind_cache".
8192 (frame_register_unwind): Call this frame's prev_register with the
8193 next frame and this frame's prologue cache.
8194 (get_prev_frame): Simplify. Always call prev frame's this_id with
8195 this frame and prev frame's prologue cache. Document that this
8196 call is shifted one to the left when compared to the
8197 frame_register_unwind call.
8198 (legacy_saved_regs_prev_register): Replace
8199 frame_saved_regs_register_unwind.
8200 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8201 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8202 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8203 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8204 (d10v_frame_unwind): Update.
8205 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8206 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8207 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8208 "saved_regs" with "this_saved_regs".
8209
efd710d6
AC
82102003-03-16 Andrew Cagney <cagney@redhat.com>
8211
8212 * frame.c (frame_pop): Don't call target_store_registers. Fix
8213 problem reported by Mark Kettenis.
8214
4e259f09
MK
82152003-03-16 Mark Kettenis <kettenis@gnu.org>
8216
8217 * i386-tdep.c (i386_register_type): Renamed from
8218 i386_register_virtual_type. Adjust function signature.
8219 (i386_gdbarch_init): Set register_type instead of
8220 deprecated_max_register_raw_size,
8221 deprecated_max_register_virtual_size and register_virtual_type.
8222
055bb976
AC
82232003-03-14 Andrew Cagney <cagney@redhat.com>
8224
8225 * frame.c (get_prev_frame): When a legacy frame, always call
8226 legacy_get_prev_frame. Simplify unwind code using assumption that
8227 the unwinder is new.
8228 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8229 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8230 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8231
ac2adee5
AC
82322003-03-14 Andrew Cagney <cagney@redhat.com>
8233
8234 * frame.c (get_saved_register): Delete function.
8235 * frame.h (get_saved_register): Delete declaration.
8236 * xstormy16-tdep.c: Update comment.
8237 * regcache.h: Update comments.
8238 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8239 get_saved_register and extract_address, use
8240 frame_read_unsigned_register.
8241 (sparc_frame_saved_pc): Ditto.
8242 (sparc_get_saved_register): Instead of get_saved_register, use
8243 frame_register.
8244 (sparc_pop_frame): Ditto.
8245 * findvar.c: Update comments.
8246 (value_of_register): Call frame_register instead of
8247 get_saved_register.
8248 (value_from_register): Ditto.
8249 * config/sparc/tm-sparc.h: Update comment.
8250 * breakpoint.c: Update comment.
8251
129c1cd6
AC
82522003-03-14 Andrew Cagney <cagney@redhat.com>
8253
8254 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8255 GET_SAVED_REGISTER.
8256 * gdbarch.h, gdbarch.c: Re-generate.
8257 * frame.h: Update comments.
8258 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8259 * x86-64-tdep.c (x86_64_init_abi): Update.
8260 * sparc-tdep.c (sparc_gdbarch_init): Update.
8261 * sh-tdep.c (sh_gdbarch_init): Update.
8262 * mips-tdep.c (mips_gdbarch_init): Update.
8263 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8264 * cris-tdep.c (cris_gdbarch_init): Update.
8265 * ia64-tdep.c (ia64_gdbarch_init): Update.
8266 * frame.c (frame_register): Update.
8267 (get_saved_register): Update.
8268 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 8269
749b82f6
AC
82702003-03-13 Andrew Cagney <cagney@redhat.com>
8271
8272 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8273 * gdbarch.h, gdbarch.c: Regenerate.
8274 * valops.c (hand_function_call): Update comment.
8275 * stack.c (return_command): Update comment.
8276 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8277 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8278 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8279 * x86-64-tdep.c (x86_64_init_abi): Update.
8280 * vax-tdep.c (vax_gdbarch_init): Update.
8281 * v850-tdep.c (v850_gdbarch_init): Update.
8282 * sparc-tdep.c (sparc_gdbarch_init): Update.
8283 * sh-tdep.c (sh_gdbarch_init): Update.
8284 * s390-tdep.c (s390_gdbarch_init): Update.
8285 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8286 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8287 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8288 * mips-tdep.c (mips_gdbarch_init): Update.
8289 * mcore-tdep.c (mcore_gdbarch_init): Update.
8290 * m68k-tdep.c (m68k_gdbarch_init): Update.
8291 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8292 * ia64-tdep.c (ia64_gdbarch_init): Update.
8293 * i386-tdep.c (i386_gdbarch_init): Update.
8294 * hppa-tdep.c (hppa_gdbarch_init): Update.
8295 * h8300-tdep.c (h8300_gdbarch_init): Update.
8296 * frv-tdep.c (frv_gdbarch_init): Update.
8297 * cris-tdep.c (cris_gdbarch_init): Update.
8298 * avr-tdep.c (avr_gdbarch_init): Update.
8299 * arm-tdep.c (arm_gdbarch_init): Update.
8300 * alpha-tdep.c (alpha_gdbarch_init): Update.
8301
1594fa56
AC
83022003-03-13 Andrew Cagney <cagney@redhat.com>
8303
8304 * frame.c (legacy_frame_p): New function.
8305 (get_prev_frame): Use legacy_frame_p.
8306 * frame.h (legacy_frame_p): Declare.
8307
7717fda3
V
83082003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8309
fbe586ae 8310 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
8311 listing corrected.
8312
0c67cbe9
V
83132003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8314
fbe586ae 8315 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 8316
03febf99
AC
83172003-03-12 Andrew Cagney <cagney@redhat.com>
8318
8319 * frame.c (get_prev_frame): Rename the frame parameter to
8320 "this_frame".
8321 (get_next_frame, legacy_get_prev_frame): Ditto.
8322
0a1e1ca1
AC
83232003-03-12 Andrew Cagney <cagney@redhat.com>
8324
8325 * frame.c (get_current_frame): Check target_has_registers before
8326 checking target_has_stack.
8327 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8328 instead of deprecated_selected_frame.
8329 * findvar.c (value_of_register): Pass "frame", not
8330 deprecated_selected_frame, to value_of_builtin_reg.
8331
a66a9c23
AC
83322003-03-12 Andrew Cagney <cagney@redhat.com>
8333
8334 * regcache.c (regcache_cooked_write_signed): New function.
8335 (regcache_cooked_write_unsigned): New function.
8336 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8337 (regcache_cooked_read_signed): Fix regnum in range assertion.
8338 * regcache.h (regcache_cooked_write_signed): Declare.
8339 (regcache_cooked_write_unsigned): Declare.
8340
8bedc050
AC
83412003-03-12 Andrew Cagney <cagney@redhat.com>
8342
8343 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8344 * gdbarch.h, gdbarch.c: Re-generate.
8345 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8346 * x86-64-tdep.h: Update.
8347 * x86-64-tdep.c (x86_64_init_abi): Update.
8348 * v850-tdep.c (v850_gdbarch_init): Update.
8349 * sparc-tdep.c (sparc_gdbarch_init): Update.
8350 * sh-tdep.c (sh_gdbarch_init): Update.
8351 * s390-tdep.c (s390_gdbarch_init): Update.
8352 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8353 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8354 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8355 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8356 * mips-tdep.c (mips_gdbarch_init): Update.
8357 * mcore-tdep.c (mcore_gdbarch_init): Update.
8358 * m68k-tdep.c (m68k_gdbarch_init): Update.
8359 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8360 * ia64-tdep.c (ia64_gdbarch_init): Update.
8361 * i386-tdep.c (i386_gdbarch_init): Update.
8362 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8363 * hppa-tdep.c (hppa_gdbarch_init): Update.
8364 * h8300-tdep.c (h8300_gdbarch_init): Update.
8365 * frv-tdep.c (frv_gdbarch_init): Update.
8366 * cris-tdep.c (cris_gdbarch_init): Update.
8367 * avr-tdep.c (avr_gdbarch_init): Update.
8368 * arm-tdep.c (arm_gdbarch_init): Update.
8369 * alpha-tdep.c (alpha_gdbarch_init): Update.
8370 * sh-tdep.c (sh_init_extra_frame_info): Update.
8371 (sh64_init_extra_frame_info): Update.
8372 * ns32knbsd-nat.c (frame_num_args): Update.
8373 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8374 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8375 (xstormy16_frame_chain_valid): Update.
8376 * vax-tdep.c (vax_saved_pc_after_call): Update.
8377 * v850-tdep.c (v850_frame_chain): Update.
8378 (v850_pop_frame): Update.
8379 (v850_init_extra_frame_info): Update.
8380 * sparc-tdep.c (setup_arbitrary_frame): Update.
8381 * ns32k-tdep.c (umax_frame_num_args): Update.
8382 * s390-tdep.c (s390_pop_frame_regular): Update.
8383 * mn10300-tdep.c (mn10300_frame_chain): Update.
8384 (mn10300_pop_frame_regular): Update.
8385 (mn10300_init_extra_frame_info): Update.
8386 * mips-tdep.c (mips_init_frame_pc_first): Update.
8387 (mips_frame_chain): Update.
8388 (mips_pop_frame): Update.
8389 * mcore-tdep.c (mcore_frame_chain): Update.
8390 (mcore_pop_frame): Update.
8391 (mcore_init_extra_frame_info): Update.
8392 * arch-utils.c (init_frame_pc_default): Update.
8393 * m68k-tdep.c (isi_frame_num_args): Update.
8394 (delta68_frame_num_args): Update.
8395 (news_frame_num_args): Update.
8396 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8397 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8398 (alpha_frame_chain): Update.
8399 (alpha_pop_frame): Update.
8400 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8401 (hppa_init_extra_frame_info): Update.
8402 (hppa_frame_chain): Update.
8403 (hppa_frame_chain_valid): Update.
8404 * cris-tdep.c (cris_init_extra_frame_info): Update.
8405 * avr-tdep.c (avr_init_extra_frame_info): Update.
8406 * arm-tdep.c (arm_frame_chain_valid): Update.
8407 (arm_init_extra_frame_info): Update.
8408 (arm_pop_frame): Update.
8409 * frame.c (frame_pc_unwind): Update.
8410 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8411 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8412 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8413 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8414 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8415 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8416
7a25a7c1
AC
84172003-03-12 Andrew Cagney <cagney@redhat.com>
8418
8419 Eliminate the need for POP_FRAME.
8420 * frame.c (do_frame_unwind_register): New function.
8421 (frame_pop): When no POP_FRAME, pop the frame using register
8422 unwind and a scratch regcache.
8423 (frame_saved_regs_pop): Delete function.
8424 (trad_frame_unwinder): Update.
8425 * d10v-tdep.c (d10v_frame_pop): Delete function.
8426 (d10v_frame_unwind): Update.
8427 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8428 (sentinel_frame_unwinder): Update.
8429 * dummy-frame.c (dummy_frame_pop): Delete function.
8430 (dummy_frame_unwind): Update.
8431 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8432 (struct frame_unwind): Update.
8433
2f38ef89
KB
84342003-03-11 Kevin Buettner <kevinb@redhat.com>
8435
8436 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8437 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8438 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8439 Do range checks on register number obtained from debugging info.
8440 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8441 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8442 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8443 mapping function.
8444 (do_fp_register_row): Fix typo which caused double type to be
8445 used when attempting to unpack a float.
8446
552f4abf
JB
84472003-03-11 J. Brobecker <brobecker@gnat.com>
8448
8449 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8450
e0d2ae16
AC
84512003-03-11 Andrew Cagney <cagney@redhat.com>
8452
8453 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8454 frame. Problem found by Corinna Vinschen.
8455
ddbfdd06
PM
84562003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8457
8458 * doublest.c (floatformat_from_length): Accept also
8459 the real size of 'long double' type.
8460
088b2ddc 84612003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 8462
088b2ddc 8463 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
8464 * breakpoint.c (bpstat_copy): Copy the command lines as well
8465 as the old value, to match what is freed in bpstat_clear.
8466
f56f77c1
DC
84672003-03-10 David Carlton <carlton@math.stanford.edu>
8468
8469 * minsyms.c (add_minsym_to_hash_table): Replace
8470 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8471 (compare_minimal_symbols, compact_minimal_symbols)
8472 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8473 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8474 of DEPRECATED_SYMBOL_MATCHES_NAME.
8475 (lookup_minimal_symbol_solib_trampoline): Ditto.
8476
5602984a
AC
84772003-03-10 Andrew Cagney <cagney@redhat.com>
8478
8479 * regcache.h (regcache_cooked_read_ftype): Define.
8480 (regcache_save, regcache_restore): Add a cooked_read parameter.
8481 * regcache.c (regcache_save, regcache_restore): Update.
8482 (do_cooked_read): New function.
8483 (regcache_cpy): Pass do_cooked_read to regcache_save and
8484 regcache_restore.
8485
8bedc050
AC
84862003-03-10 Andrew Cagney <cagney@redhat.com>
8487
8488 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8489 * gdbarch.h, gdbarch.c: Re-generate.
8490 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8491 * x86-64-tdep.h: Update.
8492 * x86-64-tdep.c (x86_64_init_abi): Update.
8493 * v850-tdep.c (v850_gdbarch_init): Update.
8494 * sparc-tdep.c (sparc_gdbarch_init): Update.
8495 * sh-tdep.c (sh_gdbarch_init): Update.
8496 * s390-tdep.c (s390_gdbarch_init): Update.
8497 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8498 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8499 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8500 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8501 * mips-tdep.c (mips_gdbarch_init): Update.
8502 * mcore-tdep.c (mcore_gdbarch_init): Update.
8503 * m68k-tdep.c (m68k_gdbarch_init): Update.
8504 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8505 * ia64-tdep.c (ia64_gdbarch_init): Update.
8506 * i386-tdep.c (i386_gdbarch_init): Update.
8507 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8508 * hppa-tdep.c (hppa_gdbarch_init): Update.
8509 * h8300-tdep.c (h8300_gdbarch_init): Update.
8510 * frv-tdep.c (frv_gdbarch_init): Update.
8511 * cris-tdep.c (cris_gdbarch_init): Update.
8512 * avr-tdep.c (avr_gdbarch_init): Update.
8513 * arm-tdep.c (arm_gdbarch_init): Update.
8514 * alpha-tdep.c (alpha_gdbarch_init): Update.
8515 * sh-tdep.c (sh_init_extra_frame_info): Update.
8516 (sh64_init_extra_frame_info): Update.
8517 * ns32knbsd-nat.c (frame_num_args): Update.
8518 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8519 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8520 (xstormy16_frame_chain_valid): Update.
8521 * vax-tdep.c (vax_saved_pc_after_call): Update.
8522 * v850-tdep.c (v850_frame_chain): Update.
8523 (v850_pop_frame): Update.
8524 (v850_init_extra_frame_info): Update.
8525 * sparc-tdep.c (setup_arbitrary_frame): Update.
8526 * ns32k-tdep.c (umax_frame_num_args): Update.
8527 * s390-tdep.c (s390_pop_frame_regular): Update.
8528 * mn10300-tdep.c (mn10300_frame_chain): Update.
8529 (mn10300_pop_frame_regular): Update.
8530 (mn10300_init_extra_frame_info): Update.
8531 * mips-tdep.c (mips_init_frame_pc_first): Update.
8532 (mips_frame_chain): Update.
8533 (mips_pop_frame): Update.
8534 * mcore-tdep.c (mcore_frame_chain): Update.
8535 (mcore_pop_frame): Update.
8536 (mcore_init_extra_frame_info): Update.
8537 * arch-utils.c (init_frame_pc_default): Update.
8538 * m68k-tdep.c (isi_frame_num_args): Update.
8539 (delta68_frame_num_args): Update.
8540 (news_frame_num_args): Update.
8541 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8542 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8543 (alpha_frame_chain): Update.
8544 (alpha_pop_frame): Update.
8545 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8546 (hppa_init_extra_frame_info): Update.
8547 (hppa_frame_chain): Update.
8548 (hppa_frame_chain_valid): Update.
8549 * cris-tdep.c (cris_init_extra_frame_info): Update.
8550 * avr-tdep.c (avr_init_extra_frame_info): Update.
8551 * arm-tdep.c (arm_frame_chain_valid): Update.
8552 (arm_init_extra_frame_info): Update.
8553 (arm_pop_frame): Update.
8554 * frame.c (frame_pc_unwind): Update.
8555 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8556 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8557 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8558 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8559 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8560 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8561
12cc2063
AC
85622003-03-10 Andrew Cagney <cagney@redhat.com>
8563
8564 * gdbarch.sh (gdbarch_unwind_pc): New method.
8565 * gdbarch.h, gdbarch.c: Regenerate.
8566 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8567 but use read_pc and FRAME_SAVED_PC as fall backs.
8568 (frame_saved_regs_pc_unwind): Delete function.
8569 (trad_frame_unwinder): Update.
8570 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8571 (struct frame_unwind): Update.
8572 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8573 (dummy_frame_unwind): Update.
8574 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8575 (sentinel_frame_unwinder): Update.
8576 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8577 (d10v_frame_unwind): Update.
8578 (d10v_unwind_pc): New function.
8579 (d10v_gdbarch_init): Set unwind_pc.
8580
ef840a37
AC
85812003-03-10 Andrew Cagney <cagney@redhat.com>
8582
a2ce2e56
AC
8583 * gdbarch.h: Re-generate.
8584
ef840a37
AC
8585 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8586 PC.
8587 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8588 the PC register.
8589
08f3424b
MK
85902003-03-08 Mark Kettenis <kettenis@gnu.org>
8591
8592 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8593
1248ede2
AC
85942003-03-08 Andrew Cagney <cagney@redhat.com>
8595
8596 * cli-out.c: Update copyright.
8597 (cli_out_data): Define typedef. Use instead of ui_out_data.
8598
f49bacc8
AC
85992003-03-08 Andrew Cagney <cagney@redhat.com>
8600
8601 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8602 the result.
8603
9b05f993
AC
86042003-03-07 Andrew Cagney <cagney@redhat.com>
8605
8606 * gdbarch.sh: Don't generate two macro definitions when an
8607 undefined macro taking no arguments.
8608 * gdbarch.h: Regenerate.
8ffd9b1b 8609
166f4c7b
ML
86102002-03-07 Michal Ludvig <mludvig@suse.cz>
8611
8612 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8613 (x86_64_unwind_dummy_id): New functions.
8614 (x86_64_init_abi): Register these two new functions.
8615
6d686a84
ML
86162003-03-07 Michal Ludvig <mludvig@suse.cz>
8617
8618 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 8619 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
8620 separate function.
8621 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8622
6314f104
AC
86232003-03-05 Andrew Cagney <cagney@redhat.com>
8624
8625 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8626 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8627 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8628 to use unwind_dummy_id when a dummy frame.
8629 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8630 predicate.
8631 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 8632
ceea5145
AC
86332003-03-05 Andrew Cagney <cagney@redhat.com>
8634
8635 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8636 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8637 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8638 values.
8639
0d843116
AC
86402003-03-05 Andrew Cagney <cagney@redhat.com>
8641
8642 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8643 (struct d10v_unwind_cache): Delete field "frameless". Replace
8644 "next_addr" with "sp_offset". Add "r11_offset".
8645 (d10v_frame_unwind_cache): Update.
8646 (prologue_find_regs): Update. When "mv r11, sp", save the
8647 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8648 RN was saved in r11_offset.
8649
b2579786
AC
86502003-03-05 Andrew Cagney <cagney@redhat.com>
8651
8652 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8653 cached PC value in the next frame.
8654
218e5956
AC
86552003-03-05 Andrew Cagney <cagney@redhat.com>
8656
8657 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8658 "id_unwind_cache" with "id".
8659 (frame_id_unwind): Delete declaration.
8660 * frame.c (frame_id_unwind): Delete function.
8661 (get_prev_frame): Call the frame id unwind method directly. Store
8662 the returned next frame's ID value in NEXT_FRAME. Note that there
8663 is a problem with the wrong unwind ID being called with the wrong
8664 unwind cache.
8665
ed363b1b
DJ
86662003-03-05 Daniel Jacobowitz <drow@mvista.com>
8667
8668 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8669
fe1f4a5e
DJ
86702003-03-05 James Ingham <jingham@apple.com>
8671 Daniel Jacobowitz <drow@mvista.com>
8672
8673 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8674 (auto_cp_abi): New variable.
8675 (current_cp_abi, num_cp_abis): Make static.
8676 (CP_ABI_MAX): Define.
8677 (cp_abis): Turn into an array.
8678 (value_virtual_fn_field): Fix formatting.
8679 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8680 takes a pointer.
8681 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8682 (list_cp_abis, _initialize_cp_abi): New functions.
8683 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8684 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8685 switch_to_cp_abi. Update prototype for register_cp_abi.
8686 * Makefile.in (cp-abi.o): Update dependencies.
8687 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8688 instead of switch_to_cp_abi.
8689 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8690 register_cp_abi.
8691 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8692 register_cp_abi.
8693 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8694
e4adbba9
DJ
86952003-03-05 Daniel Jacobowitz <drow@mvista.com>
8696
8697 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8698 * dwarf2loc.c: Include "regcache.h".
8699 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8700 register_size.
8701 * Makefile.in (dwarf2loc.o): Update dependencies.
8702
91ccbfc1
TR
87032003-03-04 Theodore A. Roth <troth@openavr.org>
8704
8705 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8706 number of io registers reported by remote target is not a multiple of
8707 step.
8708
3d4e8fd2
DC
87092003-03-04 David Carlton <carlton@math.stanford.edu>
8710
8711 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8712 (lookup_symbol_aux_psymtabs): Update call to
8713 lookup_partial_symbol.
8714 (lookup_transparent_type, find_main_psymtab)
8715 (make_symbol_overload_list): Ditto.
8716
ed42d87b
KH
87172003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8718
8719 * MAINTAINERS (Write after approval): Update my email address.
8720
a0ed5532
AC
87212003-03-03 Andrew Cagney <cagney@redhat.com>
8722
8723 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8724 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8725 predicate. Replace MAX_REGISTER_RAW_SIZE.
8726 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8727 MAX_REGISTER_VIRTUAL_SIZE.
8728 * regcache.c (legacy_max_register_raw_size): New function.
8729 (legacy_max_register_virtual_size): New function.
8730 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8731 (MAX_REGISTER_RAW_SIZE): Define.
8732 (legacy_max_register_raw_size): Declare.
8733 (legacy_max_register_virtual_size): Declare.
8734 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8735 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8736 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8737 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8738 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8739 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8740 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8741 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8742 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8743 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8744 * vax-tdep.c (vax_gdbarch_init): Update.
8745 * v850-tdep.c (v850_gdbarch_init): Update.
8746 * sparc-tdep.c (sparc_gdbarch_init): Update.
8747 * sh-tdep.c (sh_gdbarch_init): Update.
8748 * s390-tdep.c (s390_gdbarch_init): Update.
8749 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8750 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8751 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8752 * mips-tdep.c (mips_gdbarch_init): Update.
8753 * mcore-tdep.c (mcore_gdbarch_init): Update.
8754 * m68k-tdep.c (m68k_gdbarch_init): Update.
8755 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8756 * ia64-tdep.c (ia64_gdbarch_init): Update.
8757 * i386-tdep.c (i386_gdbarch_init): Update.
8758 * hppa-tdep.c (hppa_gdbarch_init): Update.
8759 * h8300-tdep.c (h8300_gdbarch_init): Update.
8760 * frv-tdep.c (frv_gdbarch_init): Update.
8761 * cris-tdep.c (cris_gdbarch_init): Update.
8762 * avr-tdep.c (avr_gdbarch_init): Update.
8763 * arm-tdep.c (arm_gdbarch_init): Update.
8764 * alpha-tdep.c (alpha_gdbarch_init): Update.
8765 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8766 max_register_raw_size or max_register_virtual_size.
8767
8e437497
DC
87682003-03-03 David Carlton <carlton@math.stanford.edu>
8769
8770 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8771 SYMBOL_MATCHES_NAME, add comment.
8772 (SYMBOL_MATCHES_NATURAL_NAME): New.
8773 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8774 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8775 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8776 * symtab.c (lookup_partial_symbol): Use
8777 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8778 unhelpful comment.
8779 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8780 SYMBOL_MATCHES_NAME.
8781 Fix for PR c++/33.
8782
25120b0d
DC
87832003-03-03 David Carlton <carlton@math.stanford.edu>
8784
8785 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8786 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8787 by regexp matching against SYMBOL_NATURAL_NAME.
8788
78a11fb4
DC
87892003-03-03 David Carlton <carlton@math.stanford.edu>
8790
8791 * linespec.c (find_method): Extract code into collect_methods.
8792 (collect_methods): New.
8793
645dd519
MK
87942003-03-02 Mark Kettenis <kettenis@gnu.org>
8795
b4700d91
MK
8796 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8797 get_frame_base.
8798
645dd519
MK
8799 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8800 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8801
0aa7e1aa
SC
88022003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8803
8ffd9b1b 8804 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
8805 and not regnum when summing the size of all registers up to regnum.
8806
f30ee0bc
AC
88072003-03-01 Andrew Cagney <cagney@redhat.com>
8808
8809 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8810 FRAME_INIT_SAVED_REGS.
8811 * gdbarch.h, gdbarch.c: Regenerate.
8812 * stack.c (frame_info): Update.
8813 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8814 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8815 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8816 * ns32k-tdep.c (ns32k_pop_frame): Update.
8817 * mips-tdep.c (mips_pop_frame): Update.
8818 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8819 * ia64-tdep.c (ia64_frame_chain): Update.
8820 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8821 (ia64_frameless_function_invocation): Update.
8822 (ia64_init_extra_frame_info): Update.
8823 (ia64_pop_frame_regular): Update.
8824 * frame.h (struct frame_info): Update comment.
8825 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8826 * frame.c (frame_saved_regs_register_unwind): Update.
8827 (frame_saved_regs_register_unwind): Update.
8828 (deprecated_generic_get_saved_register): Update.
8829 * cris-tdep.c: Update comment.
8830 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8831 Rename macro.
8832 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8833 * x86-64-tdep.c (x86_64_init_abi): Update.
8834 * vax-tdep.c (vax_gdbarch_init): Update.
8835 * v850-tdep.c (v850_gdbarch_init): Update.
8836 * sparc-tdep.c (sparc_gdbarch_init): Update.
8837 * sh-tdep.c (sh_gdbarch_init): Update.
8838 * s390-tdep.c (s390_gdbarch_init): Update.
8839 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8840 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8841 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8842 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8843 * mips-tdep.c (mips_gdbarch_init): Update.
8844 * mcore-tdep.c (mcore_gdbarch_init): Update.
8845 * m68k-tdep.c (m68k_gdbarch_init): Update.
8846 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8847 * ia64-tdep.c (ia64_gdbarch_init): Update.
8848 * i386-tdep.c (i386_gdbarch_init): Update.
8849 * frv-tdep.c (frv_gdbarch_init): Update.
8850 * avr-tdep.c (avr_gdbarch_init): Update.
8851 * arm-tdep.c (arm_gdbarch_init): Update.
8852 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8853
42fa7c0f
AC
88542003-03-01 Andrew Cagney <cagney@redhat.com>
8855
8856 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8857 option enum and switch. When no windows, set the interpreter to
8858 INTERP_CONSOLE.
8ffd9b1b 8859
49c7e338
AC
88602003-03-01 Andrew Cagney <cagney@redhat.com>
8861
8862 * main.c (captured_main): Replace magic option characters with an
8863 enum.
8864
e9582e71
AC
88652003-03-01 Andrew Cagney <cagney@redhat.com>
8866
8867 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8868 INIT_EXTRA_FRAME_INFO.
8869 * gdbarch.h, gdbarch.c: Regenerate.
8870 * arm-tdep.c: Update comments.
8871 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8872 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8873 * frame.h, avr-tdep.c: Ditto.
8874 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8875 (create_new_frame, legacy_get_prev_frame): Ditto.
8876 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8877 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8878 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8879 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8880 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8881 * v850-tdep.c (v850_gdbarch_init): Ditto.
8882 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8883 * sh-tdep.c (sh_gdbarch_init): Ditto.
8884 * s390-tdep.c (s390_gdbarch_init): Ditto.
8885 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8886 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8887 * mips-tdep.c (mips_gdbarch_init): Ditto.
8888 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8889 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8890 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8891 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8892 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8893 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8894 * frv-tdep.c (frv_gdbarch_init): Ditto.
8895 * cris-tdep.c (cris_gdbarch_init): Ditto.
8896 * avr-tdep.c (avr_gdbarch_init): Ditto.
8897 * arm-tdep.c (arm_gdbarch_init): Ditto.
8898 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8899 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8900
35cac7cf
AC
89012003-03-01 Andrew Cagney <cagney@redhat.com>
8902
8903 * gdbarch.sh (register_type): New function with predicate.
8904 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8905 * gdbarch.h, gdbarch.c: Re-generate.
8906 * arch-utils.c (generic_register_byte): Use generic_register_size.
8907 (generic_register_size): When available, use
8908 gdbarch_register_type.
8909 * regcache.c (init_regcache_descr): When available, initialize the
8910 register type array using gdbarch_register_type. If the
8911 architecture supplies gdbarch_register_type, do not use the legacy
8912 regcache layout.
8913 * d10v-tdep.c (d10v_register_type): Replace
8914 d10v_register_virtual_type.
8915 (d10v_gdbarch_init): Set register_type instead of
8916 register_virtual_type.
8917
7b83296f
AC
89182003-03-01 Andrew Cagney <cagney@redhat.com>
8919
8920 * Makefile.in (ax-gdb.o): Update dependencies.
8921 * ax-gdb.c: Include "regcache.h".
8922 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8923 * findvar.c (value_of_register): Ditto.
8924 * infcmd.c (default_print_registers_info): Ditto.
8925
eadc1c87
MK
89262003-03-01 Mark Kettenis <kettenis@gnu.org>
8927
8928 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8929 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8930
14143612
MK
89312003-03-01 Mark Kettenis <kettenis@gnu.org>
8932
8933 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8934 of STREQ.
8935
a55cc764
DJ
89362003-02-28 Daniel Jacobowitz <drow@mvista.com>
8937
8938 * Makefile.in (dwarf2loc.o): Update dependencies.
8939 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8940 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8941 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8942 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8943 (locexpr_tracepoint_var_ref): New function.
8944 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8945
08a617da
AC
89462003-02-28 Andrew Cagney <cagney@redhat.com>
8947
8948 * regcache.c (register_size): New function.
8949 * regcache.h (register_size): Declare
8950 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8951 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8952
4224873a
DC
89532003-02-28 David Carlton <carlton@math.stanford.edu>
8954
8955 * linespec.c (decode_compound): Extract code into find_method.
8956 (find_method): New.
8957
ccdc5d7f
JB
89582003-02-28 J. Brobecker <brobecker@gnat.com>
8959
8960 * Makefile.in: Add rules to build and link in observer.o.
8961
974e8ced
JB
89622003-02-27 J. Brobecker <brobecker@gnat.com>
8963
8964 * observer.c: Minor comments edits.
8965
7a28f973
JB
89662003-02-27 J. Brobecker <brobecker@gnat.com>
8967
8968 * observer.h, observer.c: New file.
8969
27cddce2
AC
89702003-02-27 Andrew Cagney <cagney@redhat.com>
8971
8972 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8973
b94a41a1
SC
89742003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8975
8976 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8977 (M6812_OP_STS_EXT): Likewise.
8978 (m6811_prologue): Use the above to recognize prologue.
8979 (m6812_prologue): Likewise.
8980
c8be8951
DC
89812003-02-27 David Carlton <carlton@math.stanford.edu>
8982
8983 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8984 SYMBOL_PRINT_NAME.
8985 (compare_psymbols): Ditto.
8986 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8987
d05bb1fc
MS
89882003-02-27 Michael Snyder <msnyder@redhat.com>
8989
4e845cd3
MS
8990 * f-lang.c (build_fortran_types): New function.
8991 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
8992 * doublest.c (extract_floating): Fix warning text.
8993
f3824013
AC
89942003-02-27 Andrew Cagney <cagney@redhat.com>
8995
8996 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8997 predicate. Replaces PUSH_DUMMY_FRAME.
8998 * gdbarch.h, gdbarch.c: Regnerate.
8999 * valops.c (hand_function_call): Update. Call
9000 generic_push_dummy_frame directly.
9001 * vax-tdep.c (vax_gdbarch_init): Update.
9002 * sparc-tdep.c (sparc_gdbarch_init): Update.
9003 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9004 * m68k-tdep.c (m68k_gdbarch_init): Update.
9005 * hppa-tdep.c (hppa_gdbarch_init): Update.
9006 * alpha-tdep.c (alpha_gdbarch_init): Update.
9007 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9008 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9009 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9010 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9011 push_dummy_frame to generic_push_dummy_frame.
9012 * v850-tdep.c (v850_gdbarch_init): Ditto.
9013 * sh-tdep.c (sh_gdbarch_init): Ditto.
9014 * s390-tdep.c (s390_gdbarch_init): Ditto.
9015 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9016 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9017 * mips-tdep.c (mips_gdbarch_init): Ditto.
9018 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9019 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9020 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9021 * i386-tdep.c (i386_gdbarch_init): Ditto.
9022 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9023 * frv-tdep.c (frv_gdbarch_init): Ditto.
9024 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9025 * cris-tdep.c (cris_gdbarch_init): Ditto.
9026 * avr-tdep.c (avr_gdbarch_init): Ditto.
9027 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 9028
ad188201
KB
90292003-02-26 Kevin Buettner <kevinb@redhat.com>
9030
9031 * mips-tdep.c (show_mips_abi): New function.
9032 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9033 command ``show mips abi''.
9034
6b37567a 90352003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9036
6b37567a 9037 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 9038 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
9039 more sline entries have been seen for the function.
9040
d3e0a5bf
MC
90412003-02-26 Michael Chastain <mec@shout.net>
9042
9043 * configure: Regenerate with autoconf 000227.
9044
18972eea
MC
90452003-02-26 Michael Chastain <mec@shout.net>
9046
9047 Close PR build/660.
9048 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9049 for old libc5/glibc.
9050 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9051
0bbde931
KW
90522003-02-26 Kris Warkentin <kewarken@qnx.com>
9053
9054 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9055 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9056
27ca5dad
MC
90572003-02-26 Michael Chastain <mec@shout.net>
9058
9059 * configure.in: New variable HAVE_UINTPTR_T.
9060 * configure, config.in: Regenerated.
9061
6f88d630
DJ
90622003-02-26 Daniel Jacobowitz <drow@mvista.com>
9063
9064 Fix PR build/1097.
9065 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9066
b14185ce
AC
90672003-02-25 Andrew Cagney <cagney@redhat.com>
9068
9069 * frame.c (get_prev_frame): Add comment on check for
9070 inside_entry_func. Only check for inside_entry_file when not a
9071 dummy and not a sentinel. Check that the new frame is not inner
9072 to the old frame.
9073
ac2bd0a9
AC
90742003-02-25 Andrew Cagney <cagney@redhat.com>
9075
9076 * frame.c (frame_debug): New variable.
9077 (_initialize_frame): Add "set/show debug frame" command.
9078 (get_prev_frame): When frame_debug, print reason why unwind
9079 failed.
9080
b18a0fd2
MC
90812003-02-25 Michael Chastain <mec@shout.net>
9082
9083 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9084 to avoid uintptr_t definition problems.
9085
22abf04a
DC
90862003-02-25 David Carlton <carlton@math.stanford.edu>
9087
9088 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9089 (SYMBOL_LINKAGE_NAME): Ditto.
9090 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9091 SYMBOL_LINKAGE_NAME.
9092 (struct general_symbol_info): Expand comment.
9093 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9094 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9095 (SYMBOL_MATCHES_REGEXP): Ditto.
9096 * symtab.c (symbol_natural_name): New function.
9097 * objfiles.h: Replace all uses of SYMBOL_NAME by
9098 DEPRECATED_SYMBOL_NAME.
9099 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9100 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9101 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9102 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9103 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9104 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9105 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9106 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9107 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9108 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9109 * ada-exp.y: Ditto.
9110 * ada-exp.y: Update copyright.
9111 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9112 * cp-valprint.c: Ditto.
9113
1a5848f6
JJ
91142003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9115
9116 * infptrace.c (detach): Do not flag error if ptrace detach fails
9117 and errno is set to ESRCH.
9118
7343d46a
AC
91192003-02-24 Andrew Cagney <cagney@redhat.com>
9120
9121 * infptrace.c (udot_info): Change type of udot_off to long. Use
9122 paddr when printing udot_off's value.
9123
49fa1dc2
DC
91242003-02-24 David Carlton <carlton@math.stanford.edu>
9125
9126 * symtab.c (make_symbol_overload_list): Only read in partial
9127 symtabs containing a matching partial symbol.
9128
0fe19209
DC
91292003-02-24 David Carlton <carlton@math.stanford.edu>
9130
9131 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9132 do the comparison, not strcmp.
9133 * symfile.c (compare_psymbols): Ditto.
9134 * defs.h: Declare strcmp_iw_ordered.
9135 * utils.c (strcmp_iw_ordered): New function.
9136
8e3ee7b5
JB
91372003-02-24 Jim Blandy <jimb@redhat.com>
9138
9139 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9140 support, shared libs): Remove my name from here, to better reflect
9141 reality.
9142
7df1a324
KW
91432003-02-24 Kris Warkentin <kewarken@qnx.com>
9144
9145 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9146 (target_ops): Add to_have_continuable_watchpoint.
9147 * target.c (update_current_target): Add INHERIT line for
9148 to_have_continuable_watchpoint.
9149 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9150 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9151 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9152 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9153
d1c76907
EZ
91542003-02-24 Elena Zannoni <ezannoni@redhat.com>
9155
9156 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9157 maintainership.
9158
2610b0bf
KW
91592003-02-24 Kris Warkentin <kewarken@qnx.com>
9160
f46169db
KW
9161 * solib.c (solib_open): Call target defined search function after
9162 failing with solib-search-path.
9163 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9164 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 9165
9a3c34fe
KW
91662003-02-24 Kris Warkentin <kewarken@qnx.com>
9167
f46169db 9168 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 9169
2417dd25
SC
91702003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9171
9172 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9173
b631436b
SC
91742003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9175
9176 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9177 (m68hc11_add_reggroups): New function.
9178 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9179 (m68hc11_gdbarch_init): Install the reggroups.
9180 (_initialize_m68hc11_tdep): Initialize them.
9181
0aa8c1e4
JW
91822003-02-21 James E Wilson <wilson@tuliptree.org>
9183
9184 * MAINTAINERS: Update my email address.
9185
50ceaba5
DC
91862003-02-21 David Carlton <carlton@math.stanford.edu>
9187
9188 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9189
4c2df51b
DJ
91902003-02-21 Daniel Jacobowitz <drow@mvista.com>
9191
9192 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9193 * symtab.h: Add opaque declarations of struct axs_value and
9194 struct agent_expr.
9195 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9196 (struct location_funcs): New type.
9197 (struct symbol): Add "loc" to aux_value.
9198 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9199 * dwarf2read.c: Include "dwarf2expr.h".
9200 (dwarf2_symbol_mark_computed): New function.
9201 (read_func_scope): Use it.
9202 (var_decode_location): New function.
9203 (new_symbol): Use it.
9204 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9205
9206 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9207 (dwarf2expr_h, dwarf2loc_h): New variables.
9208 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9209 (dwarf2expr.o, dwarf2loc.o): New rules.
9210 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9211 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9212 LOC_COMPUTED_ARG.
9213 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9214 * m2-exp.y (yylex): Likewise.
9215 * printcmd.c (address_info, print_frame_args): Likewise.
9216 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9217 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9218 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9219 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9220 * symtab.c (lookup_block_symbol): Likewise.
9221
5784d15e
AF
92222003-02-20 Adam Fedor <fedor@gnu.org>
9223
9224 * symtab.h: Remove objc_specific struct
9225 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9226 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9227 Have language_objc use cplus_specific struct.
9228
d4cad8db
TT
92292003-02-20 Tom Tromey <tromey@redhat.com>
9230
9231 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9232 TYPE_NAME, when printing a String value. PR java/1075.
9233
2f9a90b4
AF
92342003-02-20 Adam Fedor <fedor@gnu.org>
9235
d38074a8 9236 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 9237 * objc-lang.c (find_methods): Make static.
2f9a90b4 9238
6f17862b
CF
92392003-02-20 Christopher Faylor <cgf@redhat.com>
9240
9241 * win32-nat.c (get_image_name): Check return value from
9242 ReadProcessMemory.
9243 (child_xfer_memory): Ditto.
9244
715d1656
AO
92452003-02-20 Alexandre Oliva <aoliva@redhat.com>
9246
9247 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9248 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9249 '${exec_prefix}' (in addition to the expansion thereof) as
9250 relocatable.
9251 * configure: Rebuilt.
9252
b1262a02
DC
92532003-02-20 David Carlton <carlton@math.stanford.edu>
9254
9255 * symtab.c (search_symbols): Revert the search_symbols part of my
9256 2002-12-23 patch. Add comment.
9257
7134143f
DJ
92582002-02-20 Daniel Jacobowitz <drow@mvista.com>
9259
9260 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9261 * dbxread.c (elfstab_build_psymtabs): Don't call
9262 install_minimal_symbols.
9263 (stabsect_build_psymtabs): Likewise.
9264 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9265 earlier.
9266 * somread.c (som_symfile_read): Call install_minimal_symbols
9267 and do_cleanups earlier.
9268 * nlmread.c (nlm_symfile_read): Likewise.
9269 * mdebugread.c (elfmdebug_build_psymtabs): Call
9270 install_minimal_symbols and make appropriate cleanups.
9271
cf466558
KB
92722003-02-20 Kevin Buettner <kevinb@redhat.com>
9273
9274 * solib.c (reload_shared_libraries): New function.
9275 (_initialize_solib): Add callbacks for ``set solib-search-path''
9276 and ``set solib-absolute-prefix''.
9277
de5ad195
DC
92782003-02-20 David Carlton <carlton@math.stanford.edu>
9279
9280 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9281 expand comment.
9282 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9283 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9284 * ada-typeprint.c (ada_typedef_print): Ditto.
9285 * ax-gdb.c (gen_var_ref): Ditto.
9286 * breakpoint.c (print_one_breakpoint): Ditto.
9287 * buildsym.c (finish_block): Ditto.
9288 * c-valprint.c (c_val_print): Ditto.
9289 * expprint.c (print_subexp): Ditto.
9290 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
9291 * infcmd.c (jump_command): Ditto.
9292 * linespec.c (decode_line_2, decode_compound): Ditto.
9293 * maint.c (maintenance_translate_address): Ditto.
9294 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
9295 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9296 Ditto.
8ffd9b1b
AJ
9297 * p-valprint.c (pascal_val_print): Ditto.
9298 * stabsread.c (define_symbol): Ditto.
de5ad195 9299 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
9300 (print_frame_arg_vars, return_command): Ditto.
9301 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9302 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
9303 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9304 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
9305 (rbreak_command): Ditto.
9306 * tracepoint.c (tracepoints_info): Ditto.
9307 * typeprint.c (typedef_print): Ditto.
9308 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
9309 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9310 * ada-typeprint.c: Update Copyright.
9311 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9312 * tracepoint.c, cli/cli-cmds.c: Ditto.
9313
f796e4be
KB
93142003-02-20 Kevin Buettner <kevinb@redhat.com>
9315
9316 * frame.c (generic_unwind_get_saved_register): Make non-static.
9317 * frame.h (generic_unwind_get_saved_register): Declare.
9318 * mips-tdep.c (read_next_frame_reg): Fetch register from
9319 current regcache when frame is NULL.
9320 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9321 that must be NULL.
9322 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9323 instead of frame_register_unwind().
9324
836cc9f4
AC
93252003-02-20 Andrew Cagney <ac131313@redhat.com>
9326
9327 * remote-sim.c (gdbsim_insert_breakpoint)
9328 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9329 code.
9330
501eef12
AC
93312003-02-20 Andrew Cagney <ac131313@redhat.com>
9332
9333 * remote.c (_initialize_remote): Add commands "set/show remote
9334 hardware-watchpoint-limit" and "set/show remote
9335 hardware-breakpoint-limit".
9336 (remote_hw_watchpoint_limit): Initialize to -1.
9337 (remote_hw_breakpoint_limit): Ditto.
9338 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9339
1b6bc7e0
CF
93402003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9341
9342 * coff-pe-read.c: New file - support reading of minimal symbols from a
9343 portable executable using the export table.
9344 * coff-pe-read.h: New file.
9345 * coffread.c: Include coff-pe-read.h.
9346 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9347 debugging symbols found.
9348 * Makefile.in (SFILES): Add coff-pe-read.o.
9349 (coff_pe_read_h): Define.
9350 (COMMON_OBS): Add coff-pe-read.o.
9351 (coffread.o): Add coff_pe_read_h dependency.
9352 (coff-pe-read.o): New target.
9353
fe898f56
DC
93542003-02-19 David Carlton <carlton@math.stanford.edu>
9355
9356 * Makefile.in (SFILES): Add block.c.
9357 (block_h): New.
9358 (COMMON_OBS): Add block.o.
9359 (block.o): New.
9360 (x86-64-tdep.o): Add $(block_h).
9361 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9362 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9363 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9364 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9365 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9366 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9367 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9368 * value.h: Add opaque declaration for struct block.
9369 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9370 * ada-lang.h: Ditto.
9371 * x86-64-tdep.c: #include "block.h"
9372 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9373 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9374 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9375 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9376 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9377 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9378 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9379 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9380 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9381 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9382 * symtab.c (block_function): Ditto.
9383 (contained_in): Ditto.
9384 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9385 block.h. Add opaque declaration for struct block.
9386 * symtab.h: Move block_function and contained_in declarations to
9387 block.h. Add opaque declarations for struct block, struct
9388 blockvector.
9389 (struct block): Move to block.h.
9390 (struct blockvector): Ditto.
9391 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9392 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9393 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9394 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9395 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9396 Ditto.
9397 * block.c: New file.
9398 * block.h: New file.
9399
173345b5
TR
94002003-02-19 Theodore A. Roth <troth@openavr.org>
9401
9402 * avr-tdep.c (avr_extract_return_value): Remove function.
9403 (avr_store_return_value): Remove function.
9404 (avr_extract_struct_value_address): Remove function.
9405 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9406
338ef23d
AC
94072003-02-19 Andrew Cagney <ac131313@redhat.com>
9408
9409 * rs6000-tdep.c: Include "gdb_assert.h".
9410 (registers_e500): Add "acc" and "spefscr".
9411 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9412 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9413 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9414 really is "r0".
9415 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9416
5412f5f3
KS
94172003-02-18 Keith Seitz <keiths@redhat.com>
9418
9419 * Makefile.in: Add gdbtk-interps.c.
9420
881324eb
KB
94212003-02-18 Kevin Buettner <kevinb@redhat.com>
9422
9423 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9424 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9425
6a2f5abf
AC
94262003-02-18 Andrew Cagney <cagney@redhat.com>
9427
9428 * symtab.h (struct objfile): Add opaque declaration.
9429
54c7009d
EZ
94302003-02-18 Elena Zannoni <ezannoni@redhat.com>
9431
9432 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
9433 * dbxread.c (process_one_symbol): Use last_function_start rather
9434 than function_start_offset to find the real beginning of the
9435 current function. The latter is just the text section offset on
9436 some systems, the former is always the real function start.
54c7009d 9437
7ee6d7eb
AC
94382003-02-17 Andrew Cagney <cagney@redhat.com>
9439
9440 * configure.in: Revert ${target} != ${host}.
9441
2846da9b
AC
94422003-02-17 Andrew Cagney <ac131313@redhat.com>
9443
9444 * configure.in (Makefile): Use the test ${target} != ${host},
9445 instead of the absence of the "nm.h" file, to determine of the
9446 configuration non-native.
9447 * configure: Regenerate.
8ffd9b1b 9448
3b27aeea
EZ
94492003-02-14 Elena Zannoni <ezannoni@redhat.com>
9450
fbe586ae 9451 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
9452
9453 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9454 conditionalize tui_active test.
9455 (lookup_cmd_1): Ditto.
9456
b0b1c2c0
MK
94572003-02-14 Mark Kettenis <kettenis@gnu.org>
9458
9459 * configure.in: Add check for _etext.
9460 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9461 available.
9462 * config.in, configure: regenerated.
9463
8f05cde5
DJ
94642003-02-14 Daniel Jacobowitz <drow@mvista.com>
9465
9466 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9467
021e7609
AC
94682003-02-14 Andrew Cagney <ac131313@redhat.com>
9469
9470 * main.c (tui_version): Delete variable.
9471 (captured_main): When --tui, set interpreter_p to "tui" instead of
9472 enabling tui_version.
9473 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9474 tui_version.
9475 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9476 * cli/cli-cmds.c (disassemble_command): Ditto.
9477 * defs.h (tui_version): Delete declaration.
9478 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9479 (tui-interp.o): Add rules.
9480 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9481
e325dcec
CF
94822003-02-14 Christopher Faylor <cgf@redhat.com>
9483
36ffb041 9484 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
9485 just-loaded dll.
9486
c4f90d87
JM
94872003-02-12 Jason Molenda (jmolenda@apple.com)
9488
fbe586ae
RH
9489 * symmisc.c (print_objfile_statistics): Include information about
9490 the number of psymtabs and symtabs in each object file.
c4f90d87 9491
e46e5ccd
KS
94922003-02-13 Keith R Seitz <keiths@redhat.com>
9493
9494 * main.h (struct captured_main_args): Add interpreter_p.
9495 * main.c (captured_main): Initialize interpreter_p from context.
9496 * gdb.c (main): Set interpreter_p argument.
9497 * Makefile.in (gdb.o): Add dependency for interps.h.
9498
fe97fe9c
AC
94992003-02-12 Andrew Cagney <ac131313@redhat.com>
9500
9501 * event-top.c (cli_command_loop): Delete declaration.
9502 (_initialize_event_loop): Delete function setting event_loop_hook.
9503 * event-top.h (cli_command_loop): Declare. Update copyright.
9504 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9505 * interps.c (current_interp_command_loop): When event_loop_p, call
9506 cli_command_loop.
9507
1cdac4ef
AC
95082003-02-12 Andrew Cagney <ac131313@redhat.com>
9509
9510 * interps.h (interp_command_loop_ftype): Change return type to
9511 void.
9512
48037ead
ML
95132003-02-12 Michal Ludvig <mludvig@suse.cz>
9514
9515 * x86-64-tdep.c (x86_64_extract_return_value)
9516 (x86_64_store_return_value): Use regcache instead of regbuf.
9517 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9518 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9519
033afc63
AC
95202003-02-11 Andrew Cagney <ac131313@redhat.com>
9521
9522 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9523 * aclocal.m4: Regenerate.
9524 * configure: Regenerate.
9525
9526 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9527 TCL_LD_SEARCH_FLAGS.
9528
40d02bca
ML
95292003-02-10 Michal Ludvig <mludvig@suse.cz>
9530
9531 * dwarf2cfi.c: Reindented.
9532
11308a41
AC
95332003-02-09 Andrew Cagney <ac131313@redhat.com>
9534
9535 * interps.c (clear_interpreter_hooks): Convert function definition
9536 to ISO C.
9537
e1c1c0f6
DC
95382003-02-07 David Carlton <carlton@math.stanford.edu>
9539
9540 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9541
ab5d3da6
KB
95422003-02-07 Kevin Buettner <kevinb@redhat.com>
9543
9544 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9545 (struct type): ...to here.
9546 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9547 field.
9548 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9549 (replace_type): Set length on all type variants for a given type.
9550
b8a92b82
AC
95512003-02-07 Andrew Cagney <ac131313@redhat.com>
9552
9553 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9554 <sys/stat.h>.
9555 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 9556
5cb316ef
AC
95572003-02-06 Andrew Cagney <ac131313@redhat.com>
9558
2555fe1a
AC
9559 * Makefile.in (symm-nat.o): Update dependencies.
9560 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9561 (lynx-nat.o, ia64-linux-nat.): Ditto.
9562 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9563 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9564 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9565
44270758
AC
9566 * Makefile.in (inflow_h): Define.
9567 (procfs.o, inflow.o, procfs.o): Update dependencies.
9568 * inftarg.c (child_stop): Delete extern declaration of
9569 inferior_process_group. Include "inflow.h".
9570 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9571 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9572 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9573 (our_process_group, inferior_process_group): Extern declarations.
9574
df8f7274
AC
9575 * procfs.c: Include "gdb_assert.h".
9576
5cb316ef
AC
9577 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9578 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9579 * jv-typeprint.c (java_type_print_base): Ditto.
9580 * typeprint.c (typedef_print): Eliminate STREQ.
9581 * cli/cli-script.c (define_command, define_command): Ditto.
9582 * main.c (captured_main): Ditto.
9583 * values.c (lookup_internalvar): Ditto.
9584 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9585 within `if' conditional.
9586 * linespec.c (decode_line_2): Ditto.
9587 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9588 (bfd_openw_with_cleanup): Ditto.
9589
2a28ccea
MK
95902003-02-07 Mark Kettenis <kettenis@gnu.org>
9591
9592 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9593 legacy_extract_return_value and store_return_value to
9594 legacy_return_value.
9595
786b8124
CF
95962003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9597
9598 * win32-nat.c (get_relocated_section_addrs): New function. Find
9599 section load addresses for symbol handling in relocated DLLs.
9600 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9601
b871e4ec
FF
96022003-02-05 Fred Fish <fnf@intrinsity.com>
9603
9604 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9605 '=' and '!='.
9606 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9607 with '&' and '=='.
9608 (angel_RDI_info): Ditto.
9609 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9610 with '&' and '!='.
9611 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 9612
4389a95a 96132003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
9614 Keith Seitz <keiths@redhat.com>
9615 Elena Zannoni <ezannoni@redhat.com>
9616 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
9617
9618 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9619 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9620 (SUBDIR_MI_OBS): Add "mi-interp.o".
9621 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9622 (SFILES): Add "interps.c".
9623 (COMMON_OBS): Add "interps.o".
9624 (interps_h, mi_main_h): Define.
9625 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9626 (mi-main.o, main.o, event-top.o): Update dependencies.
9627 * cli/cli-interp.c: New file.
9628 * interps.h, interps.c: New files.
9629 * top.c: (gdb_init): Don't install the default interpreter, handed
9630 by captured_main.
9631 * main.c: Include "interps.h".
9632 (interpreter_p): Note that it should malloc'ed.
9633 (captured_command_loop): Call current_interp_command_loop.
9634 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9635 xfree and xstrdup when updating interpreter_p. Install the
9636 default interpreter. Add hack to stop mi1's copyright notice
9637 being encoded.
9638 * event-top.h (gdb_setup_readline): Declare.
9639 (gdb_disable_readline): Declare.
9640 * event-top.c: Include "interps.h".
9641 (display_gdb_prompt): Call current_interp_display_prompt_p.
9642 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9643 gdb_stdlog, and gdb_stdtarg.
9644 (_initialize_event_loop): Don't call gdb_setup_readline.
9645 * cli-out.c (cli_out_set_stream): New function.
9646 * cli-out.h (cli_out_set_stream): Declare.
9647
ff3b5810
MK
96482003-02-06 Mark Kettenis <kettenis@gnu.org>
9649
9650 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9651 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9652 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9653 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9654 config/i386/i386v42mp.mt: Removed.
9655
5b729aa5
MK
96562003-02-05 Mark Kettenis <kettenis@gnu.org>
9657
9658 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9659 GDB_OSABI_SOLARIS.
9660
8cc15142
MC
96612003-02-05 Michael Chastain <mec@shout.net>
9662
9663 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9664 2.12.1 and earlier versions.
9665
5aa5d4b9
AC
96662003-02-05 Andrew Cagney <ac131313@redhat.com>
9667
9668 Remove orphaned hosts, targets and files.
9669 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9670 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9671 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9672 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9673 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9674 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9675 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9676 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9677 * config/sparc/tm-sp64sim.h: Delete.
9678 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9679 hosts.
9680 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9681 mips*-dec-mach3* targets.
9682
b68767c1
MC
96832003-02-04 Michael Chastain <mec@shout.net>
9684
9685 * NEWS: Fix typo: sepcifying -> specifying.
9686
5ae7ca1d
MC
96872003-02-04 Michael Chastain <mec@shout.net>
9688
9689 * dwarfread.c: Add documentation on the state of dwarf-1,
9690 looking towards obsoletion.
9691
d08a4280
MC
96922003-02-03 Michael Chastain <mec@shout.net>
9693
9694 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9695 gdb/testsuite/gdb.c++/pr-1023.exp.
9696
e9be73e4
AC
96972003-02-04 Andrew Cagney <ac131313@redhat.com>
9698
9699 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9700 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9701
9702 * utils.c (init_page_info): Delete reference to MPW in comments.
9703 * main.c (captured_main): Delete #ifdef MPW.
9704
05d57f6f
AC
97052003-02-04 Andrew Cagney <ac131313@redhat.com>
9706
8ffd9b1b 9707 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
9708 * monitor.c (monitor_expect): Obsolete reference to m32r.
9709 * configure.tgt: Mark m32r-*-elf* as obsolete.
9710 * MAINTAINERS: Mark m32k as obsolete.
9711 * m32r-rom.c: Obsolete file.
9712 * config/m32r/m32r.mt: Obsolete file.
9713 * config/m32r/tm-m32r.h: Obsolete file.
9714 * m32r-stub.c: Obsolete file.
9715 * m32r-tdep.c: Obsolete file.
9716
8b0e5691
AC
97172003-02-04 Andrew Cagney <ac131313@redhat.com>
9718
9719 * NEWS: Mention that the z8k-zilog-none is obsolete.
9720 * MAINTAINERS: Mark z8k as obsolete.
9721 * configure.tgt: Obsolete the z8k-*-coff* target.
9722 * config/z8k/z8k.mt: Obsolete file.
9723 * config/z8k/tm-z8k.h: Obsolete file.
9724 * z8k-tdep.c: Obsolete file.
9725
67f16606
AC
97262003-02-04 Andrew Cagney <ac131313@redhat.com>
9727
9728 * NEWS: Mention that the mn10200-elf is obsolete.
9729 * configure.tgt: Obsolete mn10200-*-* target.
9730 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9731 mention that the mn10200 is obsolete.
9732 * breakpoint.h: Ditto.
9733 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9734 * config/mn10200/mn10200.mt: Obsolete file.
9735 * config/mn10200/tm-mn10200.h: Obsolete file.
9736 * mn10200-tdep.c: Obsolete file.
9737
fd2299bd
AC
97382003-02-04 Andrew Cagney <ac131313@redhat.com>
9739
9740 * MAINTAINERS: Mark h8500 as obsolete.
9741 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9742 * findvar.c (value_from_register): Ditto.
9743 * h8500-tdep.c: Mark file as obsolete.
9744 * config/h8500/h8500.mt: Ditto.
9745 * config/h8500/tm-h8500.h: Ditto.
9746 * NEWS: Mention that h8500 is obsolete.
9747
eb9a305d
DC
97482003-02-04 David Carlton <carlton@math.stanford.edu>
9749
9750 * objfiles.c (allocate_objfile): Always set name. Add comment at
9751 start of function.
9752 * jv-lang.c (get_dynamics_objfile): Add comment.
9753
406fc7fb
DC
97542003-02-04 David Carlton <carlton@math.stanford.edu>
9755
9756 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9757 * printcmd.c (build_address_symbolic): Replace uses of
9758 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9759 SYMBOL_NAME, and asm_demangle.
9760 Update copyright.
9761
93d91629
DC
97622003-02-04 David Carlton <carlton@math.stanford.edu>
9763
9764 * linespec.c (decode_compound): Extract code into
9765 lookup_prefix_sym.
9766 (lookup_prefix_sym): New function.
9767
1c5cb38e
DC
97682003-02-04 David Carlton <carlton@math.stanford.edu>
9769
9770 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9771 FLOAT_COERCION_BADNESS.
9772 * gdbtypes.c (rank_one_type): Replace all uses of
9773 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9774
0cf824c9
JB
97752003-02-04 Jim Blandy <jimb@redhat.com>
9776
9777 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9778 section, let dwarf_macinfo_section point to it, not
9779 dwarf_loc_section.
9780
a2d356b0
DJ
97812003-02-04 Daniel Jacobowitz <drow@mvista.com>
9782
9783 Pointed out by Anton Blanchard <anton@samba.org>.
9784 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9785 (ppc_linux_at_sigtramp_return_path): Use it.
9786
2de7ced7
DJ
97872003-02-04 Daniel Jacobowitz <drow@mvista.com>
9788
9789 * defs.h (streq): Add prototype.
9790 * utils.c (streq): New function.
9791
9792 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9793 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9794 * mdebugread.c (new_symbol): Likewise.
9795 * stabsread.c (define_symbol): Likewise.
9796 * coffread.c (process_coff_symbol): Likewise.
9797 * dwarfread.c (new_symbol): Likewise.
9798
9799 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9800 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9801 here.
9802 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9803 SYMBOL_INIT_DEMANGLED_NAME.
9804 * objfiles.c: Include "hashtab.h".
9805 (allocate_objfile): Call htab_set_functions_ex for the
9806 demangled_names_hash.
9807 (free_objfile): Call htab_delete for the demangled_names_hash.
9808 * objfiles.h (struct htab): Add declaration.
9809 (struct objfile): Add demangled_names_hash.
9810 * symfile.c: Include "hashtab.h".
9811 (reread_symbols): Call htab_delete for the demangled_names_hash.
9812 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9813 SYMBOL_NAME in the bcache.
9814 * symtab.c: Include "hashtab.h". Update comments.
9815 (create_demangled_names_hash, symbol_set_names): New functions.
9816 (symbol_find_demangled_name): New function, broken out from
9817 symbol_init_demangled_names.
9818 (symbol_init_demangled_names): Use it.
9819 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9820 (SYMBOL_SET_NAMES): New macro.
9821 (symbol_set_names): Add prototype.
9822
15831452
JB
98232003-02-03 Jim Blandy <jimb@redhat.com>
9824
9825 Use a single, consistent representation for an empty minimal
9826 symbol table in an objfile.
9827 * objfiles.c (terminate_minimal_symbol_table): New function.
9828 (allocate_objfile): Call it.
9829 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9830 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 9831 non-NULL.
15831452
JB
9832 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9833 objfile has minimal symbols, compare minimal_symbol_count to zero,
9834 instead of comparing msymbols with NULL.
9835 * objfiles.c (have_minimal_symbols): Same.
9836 * solib-sunos.c (solib_add_common_symbols): Call
9837 terminate_minimal_symbol_table.
9838 * symfile.c (reread_symbols): Same.
8ffd9b1b 9839
ffc65945
KB
98402003-02-03 Kevin Buettner <kevinb@redhat.com>
9841
9842 * s390-tdep.c (s390_address_class_type_flags)
9843 (s390_address_class_type_flags_to_name)
9844 (s390_address_class_name_to_type_flags): New functions.
9845 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9846 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9847
f211c6d4
MS
98482003-02-03 Michael Snyder <msnyder@redhat.com>
9849
9850 * arm-tdep.c: Fix spell-o in comment.
9851
659b0389
ML
98522003-02-03 Michal Ludvig <mludvig@suse.cz>
9853
9854 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9855 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 9856 error messages to contain BFD filename.
659b0389 9857
3b31d625
EZ
98582003-02-02 Elena Zannoni <ezannoni@redhat.com>
9859
997b089a 9860 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
9861 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9862 (do_mixed_source_and_assembly): Use
9863 make_cleanup_ui_out_tuple_begin_end and
9864 make_cleanup_ui_out_tuple_begin_end.
9865 (do_mixed_source_and_assembly): Ditto.
9866 * thread.c (do_captured_list_thread_ids): Ditto.
9867 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9868 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9869 ui_out_tuple_end): Delete prototypes.
9870 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9871 ui_out_list_end, ui_out_tuple_end): Delete.
9872
9873 From Kevin Buettner <kevinb@redhat.com>:
9874 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
9875 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9876 (do_cleanup_table_end): New functions.
9877 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9878 Use cleanups to invoke_ui_out_tuple_end().
9879 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
9880 * cli/cli-setshow.c (cmd_show_list): Use
9881 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 9882
5b181d62
AC
98832003-02-02 Andrew Cagney <ac131313@redhat.com>
9884
9885 * frame.c (frame_unwind_register): New function.
9886 (frame_unwind_unsigned_register): Use.
9887 (frame_unwind_signed_register): Use.
9888 (frame_read_register): New function.
9889 * frame.h (frame_unwind_register): Declare.
9890 (frame_read_register): Declare.
9891
9892 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9893 and frame_unwind_register instead of read_memory, write_register
9894 and deprecated_write_register_bytes.
9895
5f601589
AC
98962003-02-02 Andrew Cagney <ac131313@redhat.com>
9897
9898 * frame.h: Note that namelen can be negative.
9899 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9900 NAME's length.
9901
9902 * NEWS: Mention that the d10v's `regs' command is deprecated.
9903 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9904 (d10v_print_registers_info): New function.
9905 (show_regs): Call d10v_print_registers_info.
9906 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9907
6a3fe0a4
MK
99082003-02-02 Mark Kettenis <kettenis@gnu.org>
9909
9910 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9911 lost in the previous patch.
9912
075559bc
AC
99132003-02-01 Andrew Cagney <ac131313@redhat.com>
9914
9915 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
9916 * stack.c (print_frame_info_base): Output complete FRAME tuple
9917 for synthesized frames.
075559bc 9918
6789195b
AC
99192003-02-02 Andrew Cagney <ac131313@redhat.com>
9920
9921 * mips-nat.c (zerobuf): Delete.
9922 (fetch_inferior_registers): Alloc local zerobuf.
9923 (fetch_core_registers): Alloc local zerobuf.
9924 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9925 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9926 * thread-db.c (thread_db_store_registers): Ditto.
9927 * sh-tdep.c (sh_do_register): Ditto.
9928 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9929 * remote-sim.c (gdbsim_store_register): Ditto.
9930 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9931 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9932 * monitor.c (monitor_supply_register): Ditto.
9933 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9934 * mips-nat.c (fetch_inferior_registers): Ditto.
9935 * m68klinux-nat.c (fetch_register): Ditto.
9936 * lynx-nat.c (fetch_inferior_registers): Ditto.
9937 (fetch_inferior_registers): Ditto.
9938 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9939 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9940 (hpux_thread_store_registers): Ditto.
9941 * hppah-nat.c (fetch_register): Ditto.
9942 * hppab-nat.c (fetch_register): Ditto.
9943 * hppa-tdep.c (pa_register_look_aside): Ditto.
9944 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9945 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9946
e669114a
AC
99472003-02-01 Andrew Cagney <ac131313@redhat.com>
9948
9949 * gdbarch.sh: Explictly specify all method levels. When a
9950 variable with an empty level, provide a non-multi-arch default.
9951 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9952 * gdbarch.h: Re-generate.
9953 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9954 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9955
9a043c1d
AC
99562003-02-01 Andrew Cagney <ac131313@redhat.com>
9957
9958 * defs.h (host_pointer_to_address): Delete declaration.
9959 (address_to_host_pointer): Delete declaration.
9960 * utils.c (host_pointer_to_address): Delete function.
9961 (address_to_host_pointer): Delete function.
9962 * procfs.c (procfs_address_to_host_pointer): New function.
9963 * procfs.c (proc_set_watchpoint): Use.
9964 (procfs_can_use_hw_breakpoint): Update comments.
9965 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9966 (som_solib_add): Use.
9967 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9968 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 9969
7ca9f392
AC
99702003-02-01 Andrew Cagney <ac131313@redhat.com>
9971
94bbfd30
AC
9972 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9973 strlen d_name.
9974
7ca9f392
AC
9975 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9976 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9977 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9978 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9979 (define_symbol): Update.
9980 * symfile.c (generic_load): Remove references to nindy.
9981 * symtab.c: Remove references to nindy.
9982
31a85ea2
AC
99832003-02-01 Andrew Cagney <ac131313@redhat.com>
9984
9985 * infcmd.c (print_float_info): Delete code conditional on
9986 FLOAT_INFO.
9987 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9988 * config/m68k/nm-apollo68b.h: Ditto.
9989 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9990 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9991 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9992
f6e85fc8
MK
99932003-02-01 Mark Kettenis <kettenis@gnu.org>
9994
6015b6a0
MK
9995 * config/i386/tm-i386os9k.h: Removed.
9996
f7a30bdf
MK
9997 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9998 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9999 they're identical to i[3456]86-*-sysv* now.
10000 * config/i386/i386v32.mh: Removed.
10001 * config/i386/xm-i386v32.h: Removed.
10002 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10003
28d52111
MK
10004 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10005
4d3f6bce
MK
10006 * config/i386/i386dgux.mh: Removed.
10007 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10008
f6e85fc8
MK
10009 * configure.in: Fix typo.
10010 * configure: Regenerated.
10011
53955967
DC
100122003-01-31 David Carlton <carlton@math.stanford.edu>
10013
10014 * dwarf2read.c (dwarf2_locate_sections): Set
10015 dwarf_ranges_section.
10016
b1364885
AC
100172003-01-31 Andrew Cagney <ac131313@redhat.com>
10018
8dbb1c65
AC
10019 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10020 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 10021
8731e58e
AC
10022 * utils.c: Re-indent.
10023
b1364885
AC
10024 * config/djgpp/fnchange.lst: Delete nindy files.
10025 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10026 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10027 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10028 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10029 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10030 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10031 * Makefile.in (init.c): Remove nindy references.
10032 (saber_gdb): Delete rule.
10033 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10034 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10035 and a68v-nat.c.
10036 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10037 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10038 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10039 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10040 nindy-share/stop.h.
10041 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10042 * saber.suppress: Delete file.
10043
086df311
DJ
100442003-01-31 Daniel Jacobowitz <drow@mvista.com>
10045
10046 * dbxread.c (stabs_data): New static variable.
10047 (fill_symbuf): Support an in-memory buffer for stabs data.
10048 (stabs_seek): New function.
10049 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10050 (read_ofile_symtab): Use stabs_seek.
10051 (elfstab_build_psymtabs): Take an asection* instead of
10052 an offset and size. Relocate the stabs data if necessary.
10053 Save the section* for dbx_psymtab_to_symtab.
10054 * dwarf2read.c: Add section variables for each debug section.
10055 (dwarf2_locate_sections): Fill them in.
10056 (dwarf2_read_section): Take an asection* argument.
10057 Relocate the section contents if necessary.
10058 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10059 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10060 it to dwarf2_read_section.
10061 (dwarf2_build_frame_info): Update callers.
10062 * elfread.c (elf_symfile_read): Update call to
10063 elfstab_build_psymtabs.
10064 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10065 (DBX_STAB_SECTION): New macro.
8ffd9b1b 10066 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
10067 * symfile.c (symfile_dummy_outputs): New function.
10068 (symfile_relocate_debug_section): New function.
10069 * symfile.h (symfile_relocate_debug_section): Add prototype.
10070
87d1b352
RH
100712003-01-31 Richard Henderson <rth@redhat.com>
10072
10073 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10074 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10075 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10076 * alpha-tdep.c (alpha_register_name): Add "unique".
10077 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10078 (ALPHA_UNIQUE_REGNUM): New.
10079 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10080
c48861fb
AC
100812003-01-31 Andrew Cagney <ac131313@redhat.com>
10082
10083 * README: Remove reference to Ericsson 1800 monitor.
10084 * Makefile.in (remote-es.o): Delete rule.
10085 (ALLDEPFILES): Delete remote-es.c.
10086 * remote-es.c: Delete file.
10087 * config/m68k/es1800.mt: Delete file.
10088 * config/djgpp/fnchange.lst: Update.
10089 * configure.tgt: Delete m68*-ericsson-* target.
10090
d764a824
AF
100912003-01-31 Adam Fedor <fedor@gnu.org>
10092
10093 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10094 Remove duplicate/shadowing variable of same name.
10095
fe36c4f4
JB
100962003-01-30 Jim Blandy <jimb@redhat.com>
10097
10098 * symfile.c (find_separate_debug_file): Assert that the objfile's
10099 directory name we compute ends with a slash, and then assume that
10100 that's so everywhere we use it.
10101
cb741690
DJ
101022003-01-30 Daniel Jacobowitz <drow@mvista.com>
10103
10104 * valops.c (value_assign): Flush frame cache after stores to memory
10105 also.
10106
96ee5227
AC
101072003-01-30 Andrew Cagney <ac131313@redhat.com>
10108
10109 * Makefile.in (mon960-rom.o): Delete rule.
10110 * mon960-rom.c: Delete file.
10111
7f6104a9
AC
101122003-01-30 Andrew Cagney <ac131313@redhat.com>
10113
10114 * d10v-tdep.c: Include "frame-unwind.h".
10115 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10116 list.
10117 (next_addr, uses_frame): Delete.
10118 (struct d10v_unwind_cache): Define.
10119 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10120 Use info instead of next_addr and uses_frame globals.
10121 (d10v_frame_init_saved_regs): Delete function.
10122 (d10v_init_extra_frame_info): Delete function.
10123 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10124 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10125 init_frame_pc or frame_saved_pc.
10126 (d10v_pop_frame): Delete function.
10127 (do_d10v_pop_frame): Delete function.
10128 (d10v_frame_chain): Delete function.
10129 (d10v_frame_chain_valid): Delete function.
10130 (d10v_frame_pc_unwind): New function.
10131 (d10v_frame_id_unwind): New function.
10132 (saved_regs_unwinder): New function.
10133 (d10v_frame_register_unwind): New function.
10134 (d10v_frame_pop): New function.
10135 (d10v_frame_unwind): New variable.
10136 (d10v_frame_p): New function.
10137 (d10v_frame_saved_pc): Delete function.
10138 * Makefile.in (d10v-tdep.o): Update dependencies.
10139
cad2e848
JB
101402003-01-30 J. Brobecker <brobecker@gnat.com>
10141
10142 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10143 causing some regressions due to a change in the default value
10144 for this macro.
10145
af34e669
DJ
101462003-01-29 Richard Henderson <rth@redhat.com>
10147 Elena Zannoni <ezannoni@redhat.com>
10148 Daniel Jacobowitz <drow@mvista.com>
10149
10150 Fix PR gdb/961.
8ffd9b1b 10151 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
10152 variables.
10153 (RANGES_SECTION): New.
10154 (dwarf_ranges_buffer): New variable.
10155 (struct comp_unit_head): Add member "die".
10156 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10157 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10158 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10159 (dwarf2_locate_sections): Likewise.
10160 (dwarf2_build_psymtabs): Read .debug_ranges.
10161 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10162 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10163 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10164 Look for DW_AT_ranges and return the bounding box.
10165
baa93fa6
CF
101662003-01-29 Brian Ford <ford@vss.fsi.com>
10167
10168 * win32-nat.c (cygwin_pid): Removed as unused.
10169 (child_attach): Try fall back to Cygwin pid.
10170
c63f977f
JB
101712003-01-29 Jim Blandy <jimb@redhat.com>
10172
10173 * objfiles.h (struct objfile): Doc fix.
10174
d62d1979
AC
101752003-01-29 Andrew Cagney <ac131313@redhat.com>
10176
10177 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10178 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10179 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10180 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10181 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10182 (FRAME_SAVED_PC): Change to a function with predicate.
10183 * gdbarch.h, gdbarch.c: Re-generate.
10184
1ae18a04
AC
101852003-01-28 Andrew Cagney <ac131313@redhat.com>
10186
52287340
AC
10187 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10188
1ae18a04
AC
10189 * complaints.c (complain): Delete function.
10190 * complaints.h (struct deprecated_complaint): Delete definition.
10191 (complain): Delete declaration.
10192
f2c16bd6
KB
101932003-01-28 Kevin Buettner <kevinb@redhat.com>
10194
10195 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10196 dummy frames.
10197
a94dd1fd
AC
101982003-01-27 Andrew Cagney <ac131313@redhat.com>
10199
10200 * sentinel-frame.h, sentinel-frame.c: New files.
10201 * Makefile.in (frame.o): Update dependencies.
10202 (SFILES): Add sentinel-frame.c.
10203 (sentinel_frame_h): Define.
10204 (COMMON_OBS): Add sentinel-frame.o.
10205 (sentinel-frame.o): Specify dependencies.
10206 * frame.c: Include "sentinel-frame.h".
10207 (frame_register_unwind): Rewrite assuming that there is always a a
10208 ->next frame.
10209 (frame_register, generic_unwind_get_saved_register): Ditto.
10210 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10211 (create_sentinel_frame, unwind_to_current_frame): New functions.
10212 (get_current_frame): Rewrite using create_sentinel_frame and
10213 unwind_to_current_frame. When possible, always create a frame.
10214 (create_new_frame): Set next to the sentinel frame.
10215 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10216 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10217 ID cache when necessary.
10218 (frame_saved_regs_id_unwind): Use frame_relative_level.
10219 (deprecated_generic_get_saved_register): Use frame_relative_level,
10220 get_frame_saved_regs, get_frame_pc, get_frame_base and
10221 get_next_frame.
10222 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10223 frame_register.
10224
5378adc4
DJ
102252003-01-27 Daniel Jacobowitz <drow@mvista.com>
10226
10227 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10228
51ee2ddc
DJ
102292003-01-27 Daniel Jacobowitz <drow@mvista.com>
10230
10231 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10232 (maintenance_set_profile_cmd): Use error () instead of warning ().
10233
d9feb4e7
DJ
102342003-01-27 Daniel Jacobowitz <drow@mvista.com>
10235
10236 * configure.in: Check that -pg works if using --enable-profiling.
10237 Check for monstartup and _mcleanup regardless of --enable-profiling.
10238 * maint.c: Check for monstartup and _mcleanup before using them.
10239 * config.in: Regenerated.
10240 * configure: Regenerated.
10241
2d188dd3
NC
102422003-01-24 Nick Clifton <nickc@redhat.com>
10243
10244 * Add sh2e support:
10245
10246 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10247
10248 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10249 (sh2e_show_regs): New.
10250 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10251 * config/sh/tm-sh.h: Added sh2e to comments.
10252
cb3c37b2
JB
102532003-01-23 Jim Blandy <jimb@redhat.com>
10254
10255 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10256 symbols found)" message here; we haven't checked for a separate
10257 debug info file yet, so we don't know yet.
10258 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10259 we've looked everywhere. Also, there's no need to print a special
10260 message when we're loading the separate debug info file: the one
10261 symbol_file_add prints is fine.
10262
5b5d99cf
JB
102632003-01-23 Alexander Larsson <alexl@redhat.com>
10264 Jim Blandy <jimb@redhat.com>
10265
10266 Add support for executables whose debug info has been separated
10267 out into a separate file, leaving only a link behind.
10268 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10269 and separate_debug_objfile_backlink.
10270 (put_objfile_before): New declaration.
10271 * symfile.c: #include "filenames.h".
10272 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10273 debug info in a separate file, read that, too. Save the addrs
10274 argument, so we can use it again to read the separated debug info;
10275 syms_from_objfile modifies the table we pass it.
10276 (reread_symbols): After re-reading an objfile, call
10277 reread_separate_symbols to refresh its separate debug info
10278 objfile, if it has one.
10279 (reread_separate_symbols, find_separate_debug_file,
10280 get_debug_link_info, separate_debug_file_exists): New functions.
10281 (debug_file_directory): New global var.
10282 (_initialize_symfile): Initialize debug_file_directory, and
10283 provide the new `set debug-file-directory' command to let the user
10284 change it.
10285 * objfiles.c (free_objfile): If this objfile has its debug info in
10286 a separate objfile, free that one too. If this is itself a
10287 separate debug info objfile, clear our parent's backlink.
10288 (put_objfile_before): New function.
10289 * utils.c (gnu_debuglink_crc32): New function.
10290 * defs.h (gnu_debuglink_crc32): New declaration.
10291 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10292 * configure.in: Handle --with-separate-debug-dir config option.
10293 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10294 * acconfig.h (DEBUGDIR): New macro.
10295 * configure, aclocal.m4, config.in: Regenerated.
10296
7e8580c1
JB
102972003-01-22 Jim Blandy <jimb@redhat.com>
10298
7904e09f
JB
10299 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10300 like the old symbol_file_add, but taking new arguments: you can
10301 now pass in either a `struct section_addr_info' list to say where
10302 each section is loaded, or a `struct section_offsets' table. Pass
10303 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 10304 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
10305 with the appropriate quiescent values for the new arguments.
10306
7e8580c1
JB
10307 * symfile.c: #include "gdb_assert.h".
10308 (syms_from_objfile): Add the ability to pass in a section offset
10309 table directly, as an alternative to the section_addr_info table.
10310 Document arguments better.
10311 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10312 * symfile.h (syms_from_objfile): Update declaration.
10313 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10314 syms_from_objfile.
10315 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10316
d28f9cdf
DJ
103172003-01-22 Daniel Jacobowitz <drow@mvista.com>
10318
10319 Original patch by Tom Tromey <tromey@cygnus.com> and
10320 Jason Molenda <jmolenda@apple.com>.
10321 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10322 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10323 * NEWS: Mention profiling.
10324 * configure.in (--enable-gdbtk): Fix typo.
10325 (--enable-profiling): New. Set PROFILE_CFLAGS.
10326 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10327 Fill in function.
10328 (profiling_state): New variable.
10329 (mcleanup_wrapper): New function.
10330 (_initialize_maint): Remove NOTYET, fix call to
10331 add_setshow_boolean_cmd for "maint set profile".
10332 * configure: Regenerated.
10333
df21e465
MH
103342003-01-21 Martin M. Hunt <hunt@redhat.com>
10335
10336 * Makefile.in (install-gdbtk): Install PNG images too.
10337
73c1f219
AC
103382003-01-21 Andrew Cagney <ac131313@redhat.com>
10339
10340 * exec.c (text_start): Delete global variable.
10341 (exec_file_attach): Make text_start local to the function.
10342 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10343 * valops.c (hand_function_call): Delete code that handles
10344 BEFORE_TEXT_END and AFTER_TEXT_END.
10345 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10346 of CALL_DUMMY_LOCATION.
10347 * gdbarch.c: Regenerate.
10348 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10349 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10350 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10351 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10352 (text_end): Delete extern declaration.
10353
eb4f72c5
AC
103542003-01-21 Andrew Cagney <ac131313@redhat.com>
10355
10356 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10357 * blockframe.c (backtrace_below_main): Move to "frame.c".
10358 (frame_chain_valid): Delete check for backtrace_below_main.
10359 (_initialize_blockframe): Delete initialization, move ``set
10360 backtrace-below-main'' command to "frame.c".
10361 (do_flush_frames_sfunc): Delete function.
10362 * frame.c: Include "command.h" and "gdbcmd.h".
10363 (frame_type_from_pc): New function.
10364 (create_new_frame): Use frame_type_from_pc.
10365 (legacy_get_prev_frame): New function.
10366 (get_prev_frame): Rewrite. When an old style frame, call
10367 legacy_get_prev_frame. Otherwize, unwind the PC first.
10368 (_initialize_frame): Add ``set backtrace-below-main'' command.
10369 * Makefile.in (frame.o): Update dependencies.
10370
778ce8cc
AC
103712003-01-19 Andrew Cagney <ac131313@redhat.com>
10372
10373 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10374 DEPRECATED_REGISTERS_INFO.
10375
01c193c8
AC
103762003-01-19 Andrew Cagney <ac131313@redhat.com>
10377
10378 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10379 Maintainers'. Update `Various Maintainers'.
10380
dedc2a2b
AC
103812003-01-19 Andrew Cagney <ac131313@redhat.com>
10382
10383 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10384 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10385 Suppress actual parameters when `-'.
10386 * gdbarch.h, gdbarch.c: Regenerate.
10387
b7261c70
AC
103882003-01-19 Andrew Cagney <ac131313@redhat.com>
10389
10390 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10391 code handling dummy frames.
10392
dbe9fe58
AC
103932003-01-19 Andrew Cagney <ac131313@redhat.com>
10394
10395 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10396 (struct frame_unwind): Add field pop.
10397 * frame.h (frame_pop): Declare.
10398 * frame.c (frame_saved_regs_pop): New function.
10399 (trad_frame_unwinder): Add frame_saved_regs_pop.
10400 (frame_pop): New function.
10401 * dummy-frame.c (dummy_frame_pop): New function.
10402 (discard_innermost_dummy): New function.
10403 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10404 (dummy_frame_unwind): Add dummy_frame_pop.
10405 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10406 * valops.c (hand_function_call): Ditto.
10407 * stack.c (return_command): Ditto.
10408
570b8f7c
AC
104092003-01-18 Andrew Cagney <ac131313@redhat.com>
10410
10411 * cris-tdep.c: Fix function declaration indentation.
10412 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10413 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10414 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10415 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10416 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10417 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10418
104192003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
10420
10421 * README (Unpacking and Installation -- quick overview):
10422 Warn against ".../gdb-5.3/gdb/configure".
10423
494cca16
AC
104242003-01-18 Andrew Cagney <ac131313@redhat.com>
10425
10426 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10427 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10428 (struct frame_unwind): Declare opaque.
10429 (dummy_frame_p): Declare function.
10430 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10431 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10432 * dummy-frame.c: Include "frame-unwind.h".
10433 (dummy_frame_p): New function.
10434 (dummy_frame_unwind): New variable.
10435 * frame.c: Include "frame-unwind.h".
10436 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10437 to use the new unwind field.
10438 (set_unwind_by_pc): Delete function.
10439 (create_new_frame, get_prev_frame): Set unwind field using
10440 frame_unwind_find_by_pc.
10441 (trad_frame_unwind, trad_frame_unwinder): New variables.
10442 * frame.h (trad_frame_unwind): Declare variable.
10443 (frame_id_unwind_ftype): Delete declaration.
10444 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10445 (struct frame_unwind): Declare opaque.
10446 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10447 register_unwind with a single unwind pointer.
10448 * frame-unwind.h, frame-unwind.c: New files.
10449 * Makefile.in (SFILES): Add frame-unwind.c.
10450 (frame_unwind_h): Define.
10451 (COMMON_OBS): Add frame-unwind.o.
10452 (frame-unwind.o): Specify dependencies.
10453 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 10454
4efb68b1
AC
104552003-01-18 Andrew Cagney <ac131313@redhat.com>
10456
10457 * ada-valprint.c: Eliminate PTR.
10458 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10459 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10460 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10461 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10462 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10463 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10464 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 10465
a84d24ee
AC
104662003-01-17 Andrew Cagney <ac131313@redhat.com>
10467
762f08a3
AC
10468 * main.c (captured_main): Don't use PTR.
10469 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10470 * gdbtypes.c (lookup_primitive_typename): Ditto.
10471 (lookup_struct_elt_type): Ditto.
10472 * f-valprint.c (info_common_command): Ditto.
10473 (list_all_visible_commons): Ditto.
10474 * jv-typeprint.c (java_type_print_base): Ditto.
10475
a84d24ee
AC
10476 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10477 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10478 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10479 i386-interix-nat.c and i386-interix-tdep.c. Rename
10480 m68klinux-nat.c and m68klinux-tdep.c. Rename
10481 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10482 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10483 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10484 * main.c (captured_main): Use xfree, not free.
10485
c170fb60
AC
104862003-01-16 Andrew Cagney <ac131313@redhat.com>
10487
10488 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10489 ID back using a parameter.
10490 * frame.c (frame_id_unwind): Update call.
10491 (frame_saved_regs_id_unwind): Update.
10492 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10493 * dummy-frame.h (struct frame_id): Add opaque declaration.
10494 (dummy_frame_id_unwind): Update declaration.
10495
867f3898
AC
104962003-01-15 Andrew Cagney <ac131313@redhat.com>
10497
10498 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10499
40622be8 105002003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 10501
40622be8 10502 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 10503
ae66c1fc
EZ
105042003-01-14 Elena Zannoni <ezannoni@redhat.com>
10505
997b089a 10506 Fix PR gdb/898
ae66c1fc
EZ
10507 * breakpoint.c (until_break_command): Add new argument. Use it to
10508 decide whether to stop only at the current frame or not.
10509 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 10510 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
10511 call.
10512 (advance_command): New function.
10513 (_initialize_infcmd): Update help string for 'until' command.
10514 Add new 'advance' command.
10515
a04257e6
DC
105162003-01-14 David Carlton <carlton@math.stanford.edu>
10517
10518 * linespec.c (decode_line_1): Normalize comments.
10519 (set_flags): Ditto.
10520 (locate_first_half): Ditto.
10521 (decode_compound): Ditto.
10522 (symtab_from_filename): Ditto.
10523 (decode_all_digits): Ditto.
10524 (decode_dollar): Ditto.
10525 (find_methods): Ditto.
10526 (find_toplevel_char): Ditto.
10527
1bac305b
AC
105282003-01-13 Andrew Cagney <ac131313@redhat.com>
10529
10530 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10531 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10532 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10533 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10534 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10535 * language.c, language.h, m32r-tdep.c: Update copyright.
10536 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10537 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10538 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10539 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10540 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10541 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10542
25caa7a8
EZ
105432003-01-13 Elena Zannoni <ezannoni@redhat.com>
10544
10545 * stabsread.h (process_later, resolve_cfront_continuation):
10546 Obsolete.
10547 Update copyright years.
10548 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10549 Update copyright year.
10550 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 10551 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
10552 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10553 Update copyright year.
10554 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10555 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10556 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10557 (parse_partial_symbols): Obsolete cfront support.
10558 * stabsread.c
10559 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10560 macros.
10561 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10562 read_cfront_baseclasses, read_cfront_member_functions,
10563 resolve_cfront_continuation,read_cfront_static_fields,
10564 copy_cfront_struct_fields): Obsolete functions.
10565 (define_symbol, read_one_struct_field): Obsolete cfront support.
10566 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10567 Update Copyright year.
10568
7789c6f5
EZ
105692003-01-13 Elena Zannoni <ezannoni@redhat.com>
10570
10571 * stack.c (print_frame_info, print_stack_frame_base_stub,
10572 print_stack_frame_base, show_and_print_stack_frame_stub,
10573 show_and_print_stack_frame, print_only_stack_frame_stub,
10574 print_only_stack_frame): Delete functions.
10575 (print_stack_frame_stub): Call print_frame_info instead of
10576 print_frame_info_base.
10577 (print_frame_info_base): Rename to print_frame_info.
10578 (backtrace_command_1): Call print_frame_info, instead of
10579 print_frame_info_base.
10580 (current_frame_command): Call print_stack_frame, instead of
10581 print_only_stack_frame.
10582 (frame_command): Call print_stack_frame, instead of
10583 show_and_print_stack_frame.
10584 (up_command): Ditto.
10585 (down_command): Ditto.
10586 * frame.h (print_only_stack_frame): Delete prototype.
10587 * infrun.c (normal_stop): Call print_stack_frame, instead of
10588 show_and_print_stack_frame.
10589 * thread.c (info_threads_command): Call print_stack_frame, instead
10590 of print_only_stack_frame.
10591
3f5a3016
AC
105922003-01-13 Andrew Cagney <ac131313@redhat.com>
10593
d99ba314
AC
10594 * README (Graphical interface to GDB): Update URL. Point at
10595 gdb/links/.
10596
3f5a3016
AC
10597 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10598 version match.
10599
083ae935
DJ
106002003-01-13 Daniel Jacobowitz <drow@mvista.com>
10601
10602 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10603 lines.
10604
5365276c
DJ
106052003-01-13 Daniel Jacobowitz <drow@mvista.com>
10606
10607 * thread-db.c (attach_thread): Prototype.
10608 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10609 thread information (ti), and valid flags (th_valid, ti_valid).
10610 (attach_thread): Move target_pid_to_str call to after the thread
10611 is added to GDB's list. Initialize the cache.
10612 (thread_get_info_callback, thread_db_map_id2thr)
10613 (thread_db_get_info): New functions.
10614 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10615 (thread_db_store_registers, thread_db_thread_alive)
10616 (thread_db_get_thread_local_address): Use them.
10617 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10618 of calling error() for threads in unknown state.
10619
10620 (clear_lwpid_callback): New function.
10621 (thread_db_resume): Use it to clear the cache.
10622
9fc30b6b
DJ
106232003-01-13 Daniel Jacobowitz <drow@mvista.com>
10624
10625 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10626 (resume_callback): Remove dead code.
10627
8f871025
AC
106282003-01-13 Andrew Cagney <ac131313@redhat.com>
10629
10630 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10631 predicate.
10632 * gdbarch.h, gdbarch.c: Regenerate.
10633 * stack.c (frame_info): Only initialize the saved registers when
10634 FRAME_INIT_SAVED_REGS_P.
10635 * frame.c (frame_saved_regs_register_unwind): Assert
10636 FRAME_INIT_SAVED_REGS_P.
10637 (deprecated_generic_get_saved_register): Ditto.
10638
3f565f1e
DJ
106392003-01-13 Daniel Jacobowitz <drow@mvista.com>
10640
10641 * source.c (openp): Squelch warning about "filename".
10642
072b1022
DJ
106432003-01-13 Daniel Jacobowitz <drow@mvista.com>
10644
10645 * source.c (openp): If the file does not exist don't necessarily
10646 search the path.
10647
973ccf8b
DJ
106482003-01-13 Daniel Jacobowitz <drow@mvista.com>
10649
10650 Fix PR gdb/872.
10651 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10652 (integer_types_same_name_p): New function.
10653 (rank_one_type): Use it.
10654 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10655
030292b7
DJ
106562003-01-13 Daniel Jacobowitz <drow@mvista.com>
10657
10658 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10659 variables.
10660 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10661 * configure.in: Add --with-sysroot.
10662 * configure: Regenerated.
10663 * main.c (gdb_sysroot): New variable.
10664 (captured_main): Initialize gdb_sysroot.
10665 * defs.h (gdb_sysroot): New extern declaration.
10666 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10667
afb5d334
MC
106682003-01-12 Michael Chastain <mec@shout.net>
10669
10670 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10671
751ceeb4
MC
106722003-01-12 Michael Chastain <mec@shout.net>
10673
10674 * top.c (print_gdb_version): Bump copyright year to 2003.
10675
94cd26f8
DC
106762003-01-12 David Carlton <carlton@bactrian.org>
10677
10678 * linespec.c (symtab_from_filename): Rename variable 's' to
10679 'file_symtab'.
10680
1ce79225
AC
106812003-01-12 Andrew Cagney <ac131313@redhat.com>
10682
10683 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10684 dummy frame.
10685 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10686
fa1fd571
AC
106872003-01-12 Andrew Cagney <ac131313@redhat.com>
10688
10689 * d10v-tdep.c: Include "gdb_assert.h".
10690 (d10v_store_return_value): Rewrite to match current interface.
10691 (d10v_extract_struct_value_address): Ditto.
10692 (d10v_extract_return_value): Ditto.
10693 (d10v_gdbarch_init): Set store_restore_value,
10694 extract_struct_value_address and extract_return_value.
10695
68b8d23e
JB
106962003-01-12 J. Brobecker <brobecker@gnat.com>
10697
10698 * hpread.c (set_namestring): New procedure replacing the
10699 SET_NAMESTRING macro.
10700 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10701 by calls to set_namestring.
10702
107032003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
10704
10705 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10706 a compilation warning.
10707 (hpread_process_one_debug_symbol): Likewise.
10708
88d262ca
DC
107092003-01-10 David Carlton <carlton@math.stanford.edu>
10710
10711 * linespec.c (decode_line_1): Rename variable 's' to
10712 'file_symtab'.
10713 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10714 (decode_dollar): Ditto.
10715 (decode_variable): Ditto.
10716 (symbol_found): Ditto.
10717
86669319
MC
107182003-01-09 Michael Chastain <mec@shout.net>
10719
10720 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10721
616a9dc4
CV
107222003-01-07 Corinna Vinschen <vinschen@redhat.com>
10723
10724 * win32-nat.c (set_process_privilege): New function.
10725 (child_attach): Call set_process_privilege() to enable the
10726 SE_DEBUG_NAME user privilege if available in process token.
10727
3269bcfa
JB
107282003-01-10 J. Brobecker <brobecker@gnat.com>
10729
10730 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10731 compilation error in the previous revision.
10732
2b0ee454
DC
107332003-01-09 David Carlton <carlton@math.stanford.edu>
10734
10735 * linespec.c: Update copyright.
10736
b3ba1b44
DJ
107372003-01-09 Daniel Jacobowitz <drow@mvista.com>
10738
10739 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10740 than inferior_ptid.
10741 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10742
4ef3f3be
AC
107432003-01-09 Andrew Cagney <ac131313@redhat.com>
10744
479ab5a0
AC
10745 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10746 Update comments.
10747 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10748 (frame_saved_regs_zalloc): Update.
10749 (frame_saved_regs_register_unwind): Update.
10750 (create_new_frame): Update.
10751 (get_prev_frame): Update.
10752 (frame_extra_info_zalloc): Update.
10753 (deprecated_get_frame_saved_regs): Update.
10754 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10755 * cris-tdep.c: Update comment.
10756
bde58177
AC
10757 * somsolib.h: Fix function indentation.
10758 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10759 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10760 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10761 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10762 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10763
4ef3f3be
AC
10764 * infrun.c (follow_fork): Use ISO C definition.
10765 * expprint.c (print_subexp): Use xfree instead of free.
10766 * charset.c: Include "gdb_string.h" instead of <string.h>.
10767 (register_iconv_charsets): Use ISO C definition.
10768 (host_charset, target_charset): Ditto.
10769 * Makefile.in (charset.o): Update dependencies.
10770 (mi-cmd-env.o): Update dependencies.
10771
1c615f7a
AC
107722003-01-08 Andrew Cagney <cagney@redhat.com>
10773
10774 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10775 get_frame_base.
10776
c9a1dc08
AC
107772003-01-08 Andrew Cagney <ac131313@redhat.com>
10778
10779 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10780 build directories. Save edited gdb output in Mbuild.log. If a
10781 build fails, remove any final GDB executable.
10782
dbad9d94
AC
107832003-01-08 Andrew Cagney <ac131313@redhat.com>
10784
10785 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10786 replacing hex constants with function names and stripping leading
10787 file name directory prefixes.
10788
8d357cca
AC
107892003-01-08 Andrew Cagney <cagney@redhat.com>
10790
10791 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10792 get_frame_base.
10793
bca02a8a
DC
107942003-01-08 David Carlton <carlton@math.stanford.edu>
10795
10796 * linespec.c (decode_line_1): Move code into decode_variable.
10797 (decode_variable): New function.
10798
7f8ab3a0
AC
107992003-01-08 Andrew Cagney <ac131313@redhat.com>
10800
10801 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10802
7b5849cc
AC
108032003-01-08 Andrew Cagney <cagney@redhat.com>
10804
10805 * cris-tdep.c (cris_frame_init_saved_regs): Use
10806 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10807 saved_regs buffer.
10808 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10809 (sh64_nofp_frame_init_saved_regs): Ditto.
10810 (sh_fp_frame_init_saved_regs): Ditto.
10811 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10812 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10813 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10814 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10815
72a5efb3
DJ
108162003-01-08 Daniel Jacobowitz <drow@mvista.com>
10817
10818 * minsyms.c (lookup_minimal_symbol): Update comment.
10819 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10820 (lookup_minimal_symbol_solib_trampoline): Likewise.
10821
11c02a10
AC
108222003-01-08 Andrew Cagney <cagney@redhat.com>
10823
aab3ea25
AC
10824 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10825 frame_relative_level.
10826
da50a4b7
AC
10827 * alpha-tdep.c: Use get_frame_extra_info.
10828 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10829 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10830 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10831 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10832
11c02a10
AC
10833 * alpha-tdep.c: Use get_next_frame.
10834 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10835 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10836 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10837 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10838 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10839 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10840 * xstormy16-tdep.c: Ditto.
8ffd9b1b 10841
1e2330ba
AC
108422003-01-07 Andrew Cagney <cagney@redhat.com>
10843
10844 * alpha-tdep.c: Use get_frame_base.
10845 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10846 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10847 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10848 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10849 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10850 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10851 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10852 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 10853
2d75187b
AC
108542003-01-07 Andrew Cagney <cagney@redhat.com>
10855
10856 * frame.c (deprecated_get_frame_context): New function.
10857 (deprecated_set_frame_context): New function.
10858 * frame.h (deprecated_get_frame_context): Declare.
10859 (deprecated_set_frame_context): Declare.
10860 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10861 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 10862
483d36b2
AC
108632003-01-07 Andrew Cagney <cagney@redhat.com>
10864
10865 * frame.c (deprecated_set_frame_next_hack): New function.
10866 (deprecated_set_frame_prev_hack): New function.
10867 * frame.h (deprecated_set_frame_next_hack): Declare.
10868 (deprecated_set_frame_prev_hack): Declare.
10869 * mcore-tdep.c (analyze_dummy_frame): Use
10870 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10871 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10872
14e91ac5
DC
108732003-01-07 David Carlton <carlton@math.stanford.edu>
10874
10875 * linespec.c (decode_line_1): Move code into decode_dollar.
10876 (decode_dollar): New function.
10877
b0c6b05c
AC
108782003-01-07 Andrew Cagney <cagney@redhat.com>
10879
10880 * arm-tdep.c (arm_init_extra_frame_info): Use
10881 deprecated_update_frame_base_hack.
10882 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10883 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10884 (fix_frame_pointer): Ditto.
10885 (mn10300_analyze_prologue): Ditto.
10886
a00a19e9
AC
108872003-01-07 Andrew Cagney <cagney@redhat.com>
10888
10889 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10890 extra_info using frame_extra_info_zalloc.
10891 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10892 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10893 (sh64_init_extra_frame_info): Ditto.
10894 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10895 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10896 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10897 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10898 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10899 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10900 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10901 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10902 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10903 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10904 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10905 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10906
10907 * mn10300-tdep.c (analyze_dummy_frame): Use
10908 deprecated_set_frame_extra_info_hack.
10909 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10910
1fb4c65b
JB
109112003-01-07 J. Brobecker <brobecker@gnat.com>
10912
10913 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10914 class is not scText. These do not define "real" procedures.
10915 (parse_partial_symbols): Likewise.
10916
9fe7d6bf
MS
109172003-01-06 Michael Snyder <msnyder@redhat.com>
10918
10919 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10920
f6c609c4
AC
109212003-01-06 Andrew Cagney <ac131313@redhat.com>
10922
10923 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10924 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10925 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10926 deprecated_frame_xmalloc_with_cleanup.
10927 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10928 deprecated_frame_xmalloc.
10929 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10930 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10931
d995ff4b
AC
109322003-01-06 Andrew Cagney <cagney@redhat.com>
10933
84dc46cb
AC
10934 * x86-64-linux-tdep.c: Include "osabi.h".
10935 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10936
d995ff4b
AC
10937 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10938
66140c26
AC
109392003-01-06 Andrew Cagney <cagney@redhat.com>
10940
10941 * MAINTAINERS (Target Instruction Set Architectures): Update
10942 arm-elf. Can be built with -Werror, has been multiarched.
10943
10944 * value.h (unpack_long): Make buffer parameter constant.
10945 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10946 * scm-lang.h (scm_parse): Ditto.
10947 * defs.h (extract_typed_address, extract_address): Ditto.
10948 (extract_long_unsigned_integer): Ditto.
10949 * inferior.h (unsigned_pointer_to_address): Ditto.
10950 (signed_pointer_to_address): Ditto.
10951 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10952 * gdbarch.h, gdbarch.c: Regenerate.
10953 * findvar.c (extract_long_unsigned_integer): Update.
10954 (extract_address): Update.
10955 (extract_typed_address): Update.
10956 (unsigned_pointer_to_address): Update.
10957 * values.c (unpack_long): Update.
10958 (unpack_double): Update.
10959 (unpack_pointer): Update.
10960 (unpack_field_as_long): Update.
10961 * d10v-tdep.c (d10v_pointer_to_address): Update.
10962 * avr-tdep.c (avr_pointer_to_address): Update.
10963 * scm-lang.c (scm_unpack): Update.
10964 * findvar.c (signed_pointer_to_address): Update.
10965
b089b3da
ML
109662003-01-06 Michal Ludvig <mludvig@suse.cz>
10967
8ffd9b1b 10968 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
10969 since it is in i386-tdep.c.
10970
aff87235
JB
109712003-01-06 J. Brobecker <brobecker@gnat.com>
10972
10973 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10974 failure introduced in the previous change.
10975
34f5e845
MC
109762003-01-05 Michael Chastain <mec@shout.net>
10977
10978 * README: Remove references to deleted remote-*.c files:
10979 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10980 remote-nrom.c, remote-os9k.c, remote-udi.c.
10981
28bcfd30
MK
109822003-01-05 Mark Kettenis <kettenis@gnu.org>
10983
10984 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10985 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10986 i386_get_longjmp_target.
10987
15a5b3ee
AC
109882003-01-05 Andrew Cagney <ac131313@redhat.com>
10989
10990 * arm-tdep.c (prologue_cache): Change to a pointer.
10991 (_initialize_arm_tdep): Allocate prologue_cache.
10992 (check_prologue_cache): Update.
10993 (save_prologue_cache): Update.
10994 (arm_gdbarch_init): Update.
10995
c263362b
DJ
109962003-01-04 Daniel Jacobowitz <drow@mvista.com>
10997
10998 * stabsread.c (update_method_name_from_physname): Call complaint()
10999 instead of error.
11000
51603483
DJ
110012003-01-04 Daniel Jacobowitz <drow@mvista.com>
11002
11003 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11004 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11005 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11006
11007 * blockframe.c: Include "gdbcmd.h" and "command.h".
11008 (backtrace_below_main): New variable.
11009 (file_frame_chain_valid, func_frame_chain_valid)
11010 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11011 (generic_func_frame_chain_valid): Remove functions.
11012 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11013 (_initialize_blockframe): New function.
11014 * Makefile.in (blockframe.o): Update dependencies.
11015 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11016 comment. Call frame_chain_valid ().
11017 * frame.h: Remove old prototypes. Add prototype for
11018 frame_chain_valid and update comments to match.
11019 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11020 Remove old comment.
11021 * gdbarch.h: Regenerated.
11022 * gdbarch.c: Regenerated.
11023
11024 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11025 set_gdbarch_frame_chain_valid.
11026 * avr-tdep.c (avr_gdbarch_init): Likewise.
11027 * cris-tdep.c (cris_gdbarch_init): Likewise.
11028 * frv-tdep.c (frv_gdbarch_init): Likewise.
11029 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11030 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11031 (i386_nw_init_abi): Likewise.
11032 (i386_gdbarch_init): Likewise.
11033 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11034 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11035 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11036 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11037 * mips-tdep.c (mips_gdbarch_init): Likewise.
11038 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11039 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11040 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11041 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11042 * s390-tdep.c (s390_gdbarch_init): Likewise.
11043 * sh-tdep.c (sh_gdbarch_init): Likewise.
11044 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11045 * v850-tdep.c (v850_gdbarch_init): Likewise.
11046 * vax-tdep.c (vax_gdbarch_init): Likewise.
11047 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11048
11049 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11050 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11051 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11052 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11053 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11054 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11055 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11056 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11057
b00a8037
DJ
110582002-01-04 Daniel Jacobowitz <drow@mvista.com>
11059
11060 * Makefile.in (acconfig_h): Remove incorrect macro.
11061 (config_h): Define.
11062 (osabi.o): Update dependencies.
11063 * configure.tgt: Set gdb_osabi based on target triplet.
11064 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11065 * configure: Regenerated.
11066 * config.in: Regenerated.
11067 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11068 (GDB_OSABI_DEFAULT): Define if not already defined.
11069 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11070 (set_osabi_string): New variables.
11071 (gdbarch_register_osabi): Add new OS ABI to
11072 gdb_osabi_available_names.
11073 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11074 (set_osabi, show_osabi): New functions.
11075 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11076
4be87837
DJ
110772003-01-04 Daniel Jacobowitz <drow@mvista.com>
11078
11079 * arch-utils.c (gdbarch_info_init): Set osabi to
11080 GDB_OSABI_UNINITIALIZED.
11081 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11082 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11083 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11084 * gdbarch.c: Regenerated.
11085 * gdbarch.h: Regenerated.
11086 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11087 there's no BFD.
11088 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11089 * osabi.h (enum gdb_osabi): Move to defs.h.
11090 (gdbarch_init_osabi): Update prototype.
11091 * defs.h (enum gdb_osabi): Moved here.
11092 * Makefile.in: Update dependencies.
11093
11094 * alpha-tdep.h: Don't include "osabi.h".
11095 (struct gdbarch_tdep): Remove osabi member.
11096 * alpha-tdep.c: Include "osabi.h".
11097 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11098 iterate over arches. Update call to gdbarch_init_osabi.
11099 (alpha_dump_tdep): Don't dump osabi.
11100 * alpha-linux-tdep.c: Include "osabi.h".
11101 * alpha-osf1-tdep.c: Include "osabi.h".
11102 * alphafbsd-tdep.c: Include "osabi.h".
11103 * alphanbsd-tdep.c: Include "osabi.h".
11104
11105 * arm-tdep.h: Don't include "osabi.h".
11106 (struct gdbarch_tdep): Remove osabi member.
11107 * arm-tdep.c: Include "osabi.h".
11108 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11109 iterate over arches. Update call to gdbarch_init_osabi.
11110 (arm_dump_tdep): Don't dump osabi.
11111 * arm-linux-tdep.c: Include "osabi.h".
11112 * armnbsd-tdep.c: Include "osabi.h".
11113
11114 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11115 Update call to gdbarch_init_osabi.
11116
11117 * i386-tdep.h: Don't include "osabi.h".
11118 (struct gdbarch_tdep): Remove osabi member.
11119 * i386-tdep.c: Include "osabi.h".
11120 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11121 iterate over arches. Update call to gdbarch_init_osabi.
11122 (i386_dump_tdep): Don't dump osabi.
11123 * i386-linux-tdep.c: Include "osabi.h".
11124 * i386-sol2-tdep.c: Include "osabi.h".
11125 * i386bsd-tdep.c: Include "osabi.h".
11126 * i386gnu-tdep.c: Include "osabi.h".
11127 * i386ly-tdep.c: Include "osabi.h".
11128 * i386nbsd-tdep.c: Include "osabi.h".
11129 * i386obsd-tdep.c: Include "osabi.h".
11130
11131 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11132 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11133 check osabi when iterating over arches. Update call to
11134 gdbarch_init_osabi.
11135 (mips_dump_tdep): Don't dump osabi.
11136
11137 * ns32k-tdep.h: Don't include "osabi.h".
11138 (struct gdbarch_tdep): Remove.
11139 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11140 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11141 allocate tdep. Update call to gdbarch_init_osabi.
11142 (ns32k_dump_tdep): Remove.
11143 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11144 * ns32knbsd-tdep.c: Include "osabi.h".
11145
11146 * ppc-tdep.h: Don't include "osabi.h".
11147 (struct gdbarch_tdep): Remove osabi member.
11148 * rs6000-tdep.c: Include "osabi.h".
11149 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11150 osabi when iterating over arches. Update call to
11151 gdbarch_init_osabi.
11152 (rs6000_dump_tdep): Don't dump osabi.
11153 * ppc-linux-tdep.c: Include "osabi.h".
11154 * ppcnbsd-tdep.c: Include "osabi.h".
11155
11156 * sh-tdep.h: Don't include "osabi.h".
11157 (struct gdbarch_tdep): Remove osabi member.
11158 * sh-tdep.c: Include "osabi.h".
11159 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11160 iterate over arches. Update call to gdbarch_init_osabi.
11161 (sh_dump_tdep): Don't dump osabi.
11162 * shnbsd-tdep.c: Include "osabi.h".
11163
11164 * sparc-tdep.c: Include "osabi.h".
11165 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11166 iterate over arches. Update call to gdbarch_init_osabi.
11167 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11168 tdep structure.
11169
11170 * vax-tdep.h: Don't include "osabi.h".
11171 (struct gdbarch_tdep): Remove.
11172 * vax-tdep.c: Include "osabi.h".
11173 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11174 iterate over arches. Don't allocate tdep. Update call
11175 to gdbarch_init_osabi.
11176 (vax_dump_tdep): Remove.
11177 (_initialize_vax_tdep): Update call to gdbarch_register.
11178
a881cf8e
DJ
111792003-01-04 Daniel Jacobowitz <drow@mvista.com>
11180
11181 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11182 entirely.
11183 (breakpoint_re_set_one): Don't fetch the value for a disabled
11184 watchpoint.
11185
1e698235
DJ
111862003-01-04 Daniel Jacobowitz <drow@mvista.com>
11187
11188 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11189 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11190 (COERCE_FLOAT_TO_DOUBLE): Remove.
11191 * gdbarch.c: Regenerate.
11192 * gdbarch.h: Regenerate.
11193 * Makefile.in: Remove value_h from gdbarch_h.
11194 * valops.c (coerce_float_to_double): New variable.
11195 (default_coerce_float_to_double): Remove.
11196 (standard_coerce_float_to_double): Remove.
11197 (value_arg_coerce): Use coerce_float_to_double.
11198 (_initialize_valops): Add "set coerce-float-to-double".
11199 * value.h (default_coerce_float_to_double): Remove prototype.
11200 (standard_coerce_float_to_double): Remove prototype.
11201
11202 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11203 prototyped.
11204 * mdebugread.c (parse_symbol): Likewise.
11205 * stabsread.c (define_symbol): Mark all functions as prototyped.
11206
11207 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11208 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11209 set_gdbarch_coerce_float_to_double.
11210 * arm-tdep.c (arm_gdbarch_init): Likewise.
11211 * frv-tdep.c (frv_gdbarch_init): Likewise.
11212 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11213 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11214 * mips-tdep.c (mips_gdbarch_init): Likewise.
11215 (mips_coerce_float_to_double): Remove.
11216 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11217 (rs6000_coerce_float_to_double): Remove.
11218 * s390-tdep.c (s390_gdbarch_init): Likewise.
11219 * sh-tdep.c (sh_gdbarch_init): Likewise.
11220 (sh_coerce_float_to_double): Remove.
11221 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11222 (sparc_coerce_float_to_double): Remove.
11223 * v850-tdep.c (v850_gdbarch_init): Likewise.
11224 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11225 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11226 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11227 (hppa_coerce_float_to_double): Remove prototype.
11228 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11229
f436a26a
DJ
112302003-01-04 Daniel Jacobowitz <drow@mvista.com>
11231
11232 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11233
248f8055
DJ
112342003-01-04 Daniel Jacobowitz <drow@mvista.com>
11235
11236 Suggested by Stewart Brown <sb24@avaya.com>:
11237 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11238 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11239 (c_type_print_varspec_suffix): Likewise.
11240
72cfdc76
MK
112412003-01-04 Mark Kettenis <kettenis@gnu.org>
11242
bfd260bb
MK
11243 * configure.in: Don't set and AC_SUBST SUBDIRS.
11244 * configure: Regenerated.
11245
72cfdc76
MK
11246 * configure.in: Remove code dealing with shared libraries.
11247 * Makefile.in: Remove HLDFLAGS and HLDENV.
11248 * configure: Regenerated.
11249
c8b8a898
AC
112502003-01-04 Andrew Cagney <ac131313@redhat.com>
11251
11252 * frame.c (deprecated_frame_xmalloc): New function.
11253 (deprecated_set_frame_saved_regs_hack): New function.
11254 (deprecated_set_frame_extra_info_hack): New function.
11255 * frame.h (deprecated_frame_xmalloc): Declare.
11256 (deprecated_set_frame_saved_regs_hack): Declare.
11257 (deprecated_set_frame_extra_info_hack): Declare.
11258
14abd0fb
MK
112592003-01-04 Mark Kettenis <kettenis@gnu.org>
11260
8ee53726
MK
11261 * configure.in: Move code that provides the --enable-gdbtk option
11262 right after the code that handles the --enable-tui option, and
11263 polish it somewhat.
11264 * configure: Regenerated.
11265
14abd0fb
MK
11266 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11267 AC_CHECK_FUNCS and remove the old check for pread64.
11268 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11269 * acconfig.h (_GNU_SOURCE): Add.
11270 (HAVE_PREAD64): Remove.
11271 * configure, aclocal.m4, config.in: Regenerated.
11272
b2fb4676
AC
112732003-01-03 Andrew Cagney <ac131313@redhat.com>
11274
11275 * alpha-tdep.c: Use get_frame_saved_regs.
11276 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11277 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11278 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11279 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11280 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11281
8dcde887
MK
112822003-01-03 Mark Kettenis <kettenis@gnu.org>
11283
11284 * configure.in: Remove all use of the SUBDIRS variable; add
11285 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11286 code providing the --enable-multi-ice option, and move it right in
11287 front of the code that checks whether gdbserver is supported.
11288 Polish that too.
11289 * configure: Regenerated.
11290 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11291 @SUBDIRS@.
11292
8ccd593b
AC
112932003-01-03 Andrew Cagney <cagney@redhat.com>
11294
11295 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11296 * avr-tdep.c, cris-tdep.c: Ditto.
11297 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11298 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 11299
91151a06
MK
113002003-01-03 Mark Kettenis <kettenis@gnu.org>
11301
11302 * configure.in: Remove --enable-netrom option.
11303 * configure: Regenerated.
11304
8fe84d01
MK
113052003-01-03 Mark Kettenis <kettenis@gnu.org>
11306
11307 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11308 declaration for `struct re_pattern_buffer' instead.
11309 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11310
f0394be6
JB
113112003-01-03 J. Brobecker <brobecker@gnat.com>
11312
11313 * mdebugread.c (parse_symbol): Count until the stEnd matching
11314 the structure name.
11315
27e9bf90
MK
113162003-01-02 Mark Kettenis <kettenis@gnu.org>
11317
93d331ba
MK
11318 * configure.in: Remove --with-cpu option.
11319 subscripts. Remove evil changequotes here.
11320 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11321 * config.in, configure: Regenerated.
8ffd9b1b 11322
27e9bf90
MK
11323 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11324 * configure.in: Cleanup section that sources GDB and BFD configure
11325 subscripts. Remove evil changequotes here.
11326 * config.in, configure: Regenerated.
11327
50abf9e5
AC
113282003-01-02 Andrew Cagney <ac131313@redhat.com>
11329
11330 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11331 frame accessor methods.
11332 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11333 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11334 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11335 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11336 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11337 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11338 * z8k-tdep.c: Ditto.
8ffd9b1b 11339
287c1a40
MK
113402003-01-02 Mark Kettenis <kettenis@gnu.org>
11341
f5dbc56d
MK
11342 * configure.in: Remove UI_OUT configuration code.
11343 * ada-lang.c: Update assuming UI_OUT is always true.
11344 * Makefile.in (UIOUT_CFLAGS): Remove.
11345 * configure: Regenerated.
11346 * TODO: Remove blurb about elimination of -DUI_OUT.
11347
627af7ea
MK
11348 * configure.in: Move code that provides the --enable-gdbcli,
11349 --enable-gdbmi options right before the code that handles the
11350 --enable-tui option. Polish a bit.
11351 * configure: Regenerated.
11352
06825bd1
MK
11353 * configure.in: Rewrite check for GNU regex and the
11354 --without-included regex option, and move it into the "Checks for
11355 library functions" section. This makes us use the system regex
11356 again by default on systems with version 2 of the GNU C library.
11357 This was apparently broken.
11358 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11359 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11360 * config.in, configure: Regenerated.
11361
287c1a40
MK
11362 * configure.in: Move code that provides the --enable-tui option
11363 before the "Checks for libraries" section. Polish the code
11364 somewhat and set need_curses to yes if we build the TUI. Rewrite
11365 code that looks for a library providing termcap functionality to
11366 match more closely what's done in the Readline library, and move
11367 it into to the "Checks for libraries" section.
11368 * configure: Regenerated.
11369 * Makefile.in (TERMCAP): Remove variable.
11370 * config/i386/go32.mh (TERMCAP): Remove variable.
11371
684e56bf
AC
113722003-01-02 Andrew Cagney <ac131313@redhat.com>
11373
11374 * MAINTAINERS: Mention gdb_mbuild.sh.
11375 * gdb_mbuild.sh: Rewrite.
11376
e1ea1d75
MK
113772003-01-02 Mark Kettenis <kettenis@gnu.org>
11378
11379 * configure.in: Fix typo in last change.
11380 * config.in, configure: Regenerated.
11381
1b831c93
AC
113822003-01-02 Andrew Cagney <ac131313@redhat.com>
11383
11384 * valarith.c (value_binop): Delete obsolete code and comments.
11385 * configure.host: Ditto.
11386 * buildsym.h (make_blockvector): Ditto.
11387 * buildsym.c (make_blockvector): Ditto.
11388 * defs.h (enum language): Ditto.
11389 (chill_demangle): Ditto.
11390 * elfread.c (elf_symtab_read): Ditto.
11391 * dwarfread.c (CHILL_PRODUCER): Ditto.
11392 (set_cu_language): Ditto.
11393 (handle_producer): Ditto.
11394 * expprint.c (print_subexp): Ditto.
11395 * gdbtypes.c (chill_varying_type): Ditto.
11396 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11397 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11398 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11399 (chill_varying_type): Ditto.
11400 * language.h (_LANG_chill): Ditto.
11401 * language.c (binop_result_type, integral_type): Ditto.
11402 (character_type, string_type, structured_type): Ditto.
11403 (lang_bool_type, binop_type_check): Ditto.
11404 * stabsread.h (os9k_stabs): Ditto.
11405 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11406 (define_symbol, read_type, read_struct_fields): Ditto.
11407 (read_array_type, read_enum_type, read_huge_number): Ditto.
11408 (read_range_type, start_stabs): Ditto.
11409 * symfile.c (init_filename_language_table): Ditto.
11410 (add_psymbol_with_dem_name_to_list): Ditto.
11411 * symtab.c (symbol_init_language_specific): Ditto.
11412 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11413 * symtab.h (struct general_symbol_info): Ditto.
11414 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11415 * typeprint.c (typedef_print): Ditto.
11416 * utils.c (fprintf_symbol_filtered): Ditto.
11417 * valops.c (value_cast, search_struct_field, value_slice): Delete
11418 obsolete code.
11419 (varying_to_slice): Delete function.
11420 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11421 (varying_to_slice): Delete declaration.
11422 * MAINTAINERS: Update.
11423
8bb2c122
MK
114242003-01-02 Mark Kettenis <kettenis@gnu.org>
11425
97bf5e38
MK
11426 * configure.in: Reorganize "Checks for library functions section"
11427 a bit. Remove check for `btowc' and `isascii' functions.
11428 * configure: Regenerated.
11429
5ee754fc
MK
11430 * acconfig.h (_MSE_INT_H): Remove.
11431 * configure.in: Create "Checks for header files" section, and move
11432 appropriate tests there. Don't check for objlist.h, wchar.h,
11433 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11434 misdetection fix. Also add "Checks for types", "Checks for
11435 compiler characteristics" and "Checks for library functions"
11436 sections.
11437 * config.in, configure: Regenerated.
11438
8bb2c122
MK
11439 * configure.in: Create "Checks for programs" section, and move
11440 appropriate tests there.
11441
9a156167
MK
114422003-01-01 Mark Kettenis <kettenis@gnu.org>
11443
11444 * configure.in: Create "Checks for libraries" section, and move
11445 appropriate tests there. Cleanup check for wctype in libw. Use
11446 AC_SEARCH_LIBS to see whether we need libsocket.
11447 * configure: Regenerated.
11448
a80e2bcb 11449For older changes see ChangeLog-2002
c906108c
SS
11450\f
11451Local Variables:
11452mode: change-log
11453left-margin: 8
11454fill-column: 74
11455version-control: never
11456End:
This page took 1.044002 seconds and 4 git commands to generate.