From Nick Kelsey <nickk@ubicom.com>:
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9407de8e
DJ
12003-09-07 Daniel Jacobowitz <drow@mvista.com>
2
3 From Nick Kelsey <nickk@ubicom.com>:
4 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
5 when the stop PC is at the beginning of a function also.
6
2ef47cd0
DJ
72003-09-06 Daniel Jacobowitz <drow@mvista.com>
8
9 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
10 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
11
6f4492c8
MK
122003-09-06 Mark Kettenis <kettenis@gnu.org>
13
14 * sol-thread.c: Include "gdb_string.h".
15
d3420b2f
MK
162003-09-03 Mark Kettenis <m.kettenis@osp.nl>
17
18 * gcore.c: Reorder include files in alphabetical order. Include
19 "gdb_assert.h". Various coding style fixes.
20 (derive_stack_segment, derive_heap_segment): Replace check for
21 non-null BOTTOM and TOP with gdb_assert.
22 (derive_heap_segment): Replace check for successful creation of
23 ZERO with gdb_assert.
24 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
25
5220ea4c
AC
262003-09-04 Andrew Cagney <cagney@redhat.com>
27
28 * thread-db.c (verbose_dlsym): New function.
29 (thread_db_load): Use verbose_dlsym
30 (thread_db_new_objfile): Print that libthread_db was loaded, and
31 that thread debugging was enabled.
32
6e8c2c06
AC
332003-09-04 Andrew Cagney <cagney@redhat.com>
34
35 * configure.tgt: Add "mips64*-*-*" target. Delete
36 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
37 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
38 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
39 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
40 mips*-sony-*, and mips64*-*-elf* targets.
41 * config/mips/embedl.mt: Delete file.
42 * config/mips/embedl64.mt: Delete file.
43 * config/mips/mips.mt: Delete file.
44 * config/mips/mips64.mt: Delete file.
45 * config/mips/tm-embed.h: Delete file.
46 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
47 * config/mips/embed64.mt: Delete out-of-date comment.
48
3a3bc038
AC
492003-09-04 Andrew Cagney <cagney@redhat.com>
50
51 * hppa-tdep.c (hppa_gdbarch_init): Set
52 "have_nonsteppable_watchpoint".
53 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
54 * mips-tdep.c (mips_dump_tdep): Do not print
55 HAVE_NONSTEPPABLE_WATCHPOINT.
56 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
57 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
58 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
59 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
60
a957e642
CV
612003-09-04 Corinna Vinschen <vinschen@redhat.com>
62
63 * breakpoint.c (watchpoint_check): Remove accidentally checked in
64 unused code. Add comment.
65
a6fbcf2f
CV
662003-09-04 Corinna Vinschen <vinschen@redhat.com>
67
68 * breakpoint.c (watchpoint_check): Check for pc being in an
69 epilogue if watchpoint frame couldn't be found.
70
c14a44d5
AC
712003-09-04 Andrew Cagney <cagney@redhat.com>
72
73 * Makefile.in: Re-generate all dependencies.
74
f6c40618
AC
752003-09-03 Andrew Cagney <cagney@redhat.com>
76
77 * arch-utils.h (legacy_print_insn): Delete declaration.
78 * arch-utils.c (legacy_print_insn): Delete function.
79 * disasm.c (deprecated_tm_print_insn_info): Delete.
80 (_initialize_disasm): Delete function, contained code initializing
81 deprecated_tm_print_insn_info.
82 * gdbarch.sh (deprecated_tm_print_insn): Delete.
83 (deprecated_tm_print_insn_info): Delete.
84 (TARGET_PRINT_INSN): Do not provide a default.
85 * gdbarch.h, gdbarch.c: Re-generate.
86
242e8be5
AC
872003-09-03 Andrew Cagney <cagney@redhat.com>
88
89 * disasm.c (fprintf_disasm): New function.
90 (gdb_disassemble_info): Call "init_disassemble_info", instead of
91 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
92 reverts 2003-08-14 change.
93 (_initialize_disasm): Call "init_disassemble_info", instead of
94 INIT_DISASSEMBLE_INFO_NO_ARCH.
95
3ffc3dda
MS
962003-09-03 Michael Snyder <msnyder@redhat.com>
97
98 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
99
52d16ba8
AC
1002003-09-03 Andrew Cagney <cagney@redhat.com>
101
102 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
103 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
104 * symfile.c (syms_from_objfile): Update.
105 (reread_symbols): `Update
106 * exec.c (exec_file_attach): Update.
107 (exec_file_attach): Update.
108 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
109 2003-08-29 change.
110 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
111
eb5492fa
DJ
1122003-09-03 Daniel Jacobowitz <drow@mvista.com>
113
114 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
115 trad-frame.h.
116 (arm_get_cache): Delete macro.
117 (struct arm_prologue_cache): Update comments. Make saved_regs into
118 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
119 to prev_sp.
120 (thumb_scan_prologue): Update for cache changes. Don't call
121 DEPRECATED_PC_IN_CALL_DUMMY.
122 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
123 argument and use it in desperation search for our prologue. Do not
124 search past the specified PC.
125 (arm_make_prologue_cache): Simplify.
126
127 (arm_prologue_this_id, arm_prologue_prev_register)
128 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
129 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
130 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
131 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
132 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
133
134 (arm_frame_chain_valid, arm_find_callers_reg)
135 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
136 (arm_pop_frame): Delete obsolete methods.
137 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
138
139 (arm_gdbarch_init): Update for new frame methods. Register prologue
140 and sigtramp unwinders. Set the default frame base method.
141
142 * Makefile.in (arm-tdep.o): Update dependencies.
143 * varobj.c (find_frame_addr_in_frame_chain): Call
144 get_frame_base_address.
145 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
146
24de872b
DJ
1472003-09-03 Daniel Jacobowitz <drow@mvista.com>
148
149 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
150 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
151 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
152 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
153 Take NEXT_FRAME and CACHE arguments. Call
154 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
155 Set unwound_pc in CACHE instead of modifying the frame argument.
156 Don't bother checking the frame type when looking for sigtramp
157 frames.
158 (arm_make_prologue_cache, arm_frame_chain)
159 (arm_init_extra_frame_info): New functions.
160
9b8d791a
DJ
1612003-09-03 Daniel Jacobowitz <drow@mvista.com>
162
163 * arm-tdep.c (arm_get_cache): Define.
164 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
165 unwound_sp, unwound_pc, and saved_regs.
166 (thumb_scan_prologue): Take a cache instead of the frame.
167 (arm_scan_prologue): Likewise.
168 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
169 instead of a temporary frame.
170 (arm_init_extra_frame_info): Allocate and use a cache.
171 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
172
7ee3275f
AC
1732003-09-03 Andrew Cagney <cagney@redhat.com>
174
175 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
176 * config/mips/wince.mt (TM_CLIBS): Ditto.
177 * config/sh/wince.mt (TM_CLIBS): Ditto.
178 * config/pa/hppa64.mt (TM_CLIBS): Delete.
179 * config/sparc/sp64.mt (CC): Delete.
180
57b29be7
AC
1812003-09-03 Andrew Cagney <cagney@redhat.com>
182
183 * defs.h: Do not include "arch-utils.h".
184 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
185 GDB_MULTI_ARCH_PURE.
186 * configure.in (GDB_MULTI_ARCH): Do not define.
187 * configure, config.in: Regenerate.
188 * configure.tgt: Do not set variable "gdb_multi_arch".
189 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
190 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
191 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
192 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
193 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
194 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
195 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
196 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
197 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
198 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
199 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
200 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
201 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
202 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
203 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
204 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
205 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
206 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
207
12e035e2
MC
2082003-08-30 Michael Chastain <mec@shout.net>
209
210 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
211 * config/m68k/nm-hp300hpux.h: Delete.
212 * config/m68k/tm-hp300hpux.h: Delete.
213 * config/m68k/xm-hp300hpux.h: Delete.
214 * config/m68k/xm-hp300bsd.h: Delete.
215 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
216 tm-hp300hpux.h, xm-hp300hpux.h.
217 * somsolib.c: Remove comment about hp300 shared libraries.
218
bda34dc2
MK
2192003-08-31 Mark Kettenis <kettenis@gnu.org>
220
5bca7895
MK
221 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
222 Only define PTRACE_GET_THREAD_AREA is not already defined.
223 Various style fixes in code and comments and some additional
224 spelling fixes in comments. Move after functions dealing with
225 debug registers.
226 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
227 Fix coding-style.
228
bda34dc2
MK
229 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
230 frame_unwind_register_unsigned instead of
231 frame_unwind_unsigned_register.
232
c890192f
MK
2332003-08-30 Mark Kettenis <kettenis@gnu.org>
234
235 * configure.in: Search for gethostbyname in libnsl.
236 * configure: Regenerated.
237
60fac5b8
MK
2382003-08-29 Mark Kettenis <kettenis@gnu.org>
239
e294916c
MK
240 * configure.in: Remove redundant AC_MSG_RESULT in check for
241 uintptr_t in stdint.h.
242 * configure: Regenerated.
243
c40d267a
MK
244 * amd64-nat.h (struct regcache): Add opaque declaration.
245
60fac5b8
MK
246 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
247 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
248 Change "register array" to "register cache" in comments.
249 (x86_64_linux_gregset64_reg_offset): New variable.
250 (GETREGS_SUPPLIES): Remove macro.
251 (supply_gregset): Call amd64_supply_native_gregset instead of
252 x86_64_linux_supply_gregset.
253 (fill_gregset): Rename `regno' to `regnum'. Call
254 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
255 (store_regs): Rename `regno' to `regnum'.
256 (store_fpregs): Rename `regno' to `regnum'.
257 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
258 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
259 Reorganize function a bit.
260 (store_inferior_registers): Rename `regno' to `regnum'. Use
261 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
262 Reorganize function a bit.
263 (_initialize_x86_64_linux_nat): New function.
264 * config/i386/x86-64linux.mh.
265
546143b6
AC
2662003-08-29 Andrew Cagney <cagney@redhat.com>
267
268 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
269 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
270 (target_remove_watchpoint): Delete macro.
271 (target_insert_watchpoint): Delete macro.
272 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
273 (remote_mips_stopped_by_watchpoint): Delete declaration.
274 (remote_mips_remove_watchpoint): Delete declaration.
275 (remote_mips_set_watchpoint): Delete declaration.
276 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
277 * remote-mips.c (_initialize_remote_mips): Set
278 "to_insert_watchpoint", "to_stopped_by_watchpoint",
279 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
280 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
281 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
282 (mips_stopped_by_watchpoint): Rename
283 remote_mips_stopped_by_watchpoint.
284 (mips_can_hardware_watchpoint): Rename
285 remote_mips_can_use_hardware_watchpoint, update function
286 signature.
287
7bace51b
MK
2882003-08-29 Mark Kettenis <kettenis@gnu.org>
289
b0f5c6f2
MK
290 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
291 USER_DS. We haven't given them a register number yet.
292
2a6d284d
MK
293 * amd64-nat.h: New file.
294 * amd64-nat.c: New file.
295 * amd64fbsd-nat.c: Include "amd64-nat.h".
296 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
297 (amd64fbsd32_r_reg_offset): New variable.
298 (supply_gregset): Simply call amd64_supply_native_gregset.
299 (fill_gregset): Rename `regno' to `regnum'. Simply call
300 amd64_collect_native_gregset.
301 (fill_fpregset): Rename `regno' to `regnum'.
302 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
303 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
304 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
305 `fpregset_t'. Call amd64_supply_native_gregset instead of
306 supply_gregset. Call x86_64_supply_fxsave instead of
307 supply_fpregset.
308 (store_inferior_registers): Rename `regno' to `regnum'. Replace
309 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
310 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
311 `fpregset_t'. Call amd64_collect_native_gregset instead of
312 fill_gregset. Call x86_64_collect_fxsave instead of
313 fill_fpregset.
314 (_initialize_am64fbsd_nat): Initialize
315 amd64_native_gregset32_reg_offset and
316 amd64_native_gregset64_reg_offset.
317 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
318
a16d75cc
MK
319 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
320 null pointer. Fix typo in comment.
321
7bace51b
MK
322 * regcache.c (supply_register): Reimplement to call
323 regcache_raw_supply.
324 (regcache_collect): Reimplement by calling regcache_raw_collect.
325
9a661b68
MK
3262003-08-28 Mark Kettenis <kettenis@gnu.org>
327
328 * regcache.c (register_buffer): Consitify first argument.
329 (regcache_raw_supply, regcache_raw_collect): New
330 functions.
331
e94cc8fa
DJ
3322003-08-28 Daniel Jacobowitz <drow@mvista.com>
333
334 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
335 by Nathan J. Williams.
336
c64bd0ce
DJ
3372003-08-28 Daniel Jacobowitz <drow@mvista.com>
338
339 * lin-lwp.c (wait_lwp): New function, copied from
340 stop_wait_callback. Clean up.
341 (stop_wait_callback): Use wait_lwp.
342
e5ab0dce
AC
3432003-08-28 Andrew Cagney <cagney@redhat.com>
344
345 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
346 flavour and disassembler options.
347 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
348 (mips_gdbarch_init): Set "print_insn". Delete initialization of
349 deprecated_tm_print_insn_info.
350
a788de9b
AC
3512003-08-27 Andrew Cagney <cagney@redhat.com>
352
353 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
354 Use target_read_memory.
355 (s390_get_frame_info): Update. Do not reference
356 deprecated_tm_print_insn_info.
357 (s390_check_function_end, s390_is_sigreturn): Ditto.
358
36482093
AC
3592003-08-27 Andrew Cagney <cagney@redhat.com>
360
361 * Makefile.in (cris-tdep.o): Update dependencies.
362 * cris-tdep.c: Include "gdb_assert.h".
363 (cris_gdbarch_init): Set print_insn.
364 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
365 (cris_delayed_get_disassembler): Simplify, directly call the
366 disassembler returned by cris_get_disassembler.
367 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
368 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
369 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
370 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
371 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
372 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
373 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
374 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
375 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
376 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
377 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
378 (gdb_print_insn_sparc): Delete function.
379 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
380 deprecated_tm_print_insn_info.
381 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
382 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
383 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
384 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
385 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
386 * s390-tdep.c (gdb_print_insn_s390): Delete function.
387 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
388 (s390_gdbarch_init): Set print_insn.
389
0285512f
AC
3902003-08-27 Andrew Cagney <cagney@redhat.com>
391
392 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
393 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
394 * infcall.c (call_function_by_hand): Convert the entry point
395 address into a code address.
396
cdcd5552
AC
3972003-08-27 Andrew Cagney <cagney@redhat.com>
398
399 * dsrec.c: Include "gdb_string.h".
400 * Makefile.in (dsrec.o): Update dependencies.
401
e85cddad
MC
4022003-08-27 Michael Chastain <mec@shout.net>
403
404 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
405
8bbfbb23
AC
4062003-08-27 Andrew Cagney <cagney@redhat.com>
407
408 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
409 (alpha_osf1_init_abi): Do not set call_dummy_address.
410
ba058b66
DC
4112003-08-27 David Carlton <carlton@kealia.com>
412
413 From Randolph Chung <tausq@debian.org>:
414 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
415 compiles with -Wformat-nonliteral -Werror.
416
87f84c9d
JB
4172003-08-26 Jim Blandy <jimb@redhat.com>
418
419 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
420 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
421 bfd_lookup_symbol, since we only want symbols in code sections.
422 (look_for_base): Pass zero as the SECT_FLAGS argument to
423 bfd_lookup_symbol, since we're not concerned about which section
424 the symbol is in.
425
102d615a
JJ
4262003-08-26 Jeff Johnston <jjohnstn@redhat.com>
427
428 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
429 we are frameless or the return address register is already known.
430
cc7ad3ea
AC
4312003-08-26 Andrew Cagney <cagney@redhat.com>
432
433 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
434 in size. Add comments.
435
af8b88dd
JJ
4362003-08-26 Jeff Johnston <jjohnstn@redhat.com>
437
438 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
439 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
440
e0a4f5a1
JM
4412003-08-26 Jason Merrill <jason@redhat.com>
442
443 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
444 case out of #ifdef MIPS block.
445
4ae9ee8e
DJ
4462003-08-25 Daniel Jacobowitz <drow@mvista.com>
447
448 PR java/1322
449 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
450 available before calling SECT_OFF_TEXT.
3c164570 451 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 452
004d836a
JJ
4532003-08-25 Jeff Johnston <jjohnstn@redhat.com>
454
455 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
456 bof, and nat0-nat127 as pseudo-registers.
457 (ia64_frame_cache): New struct used to cache frame info.
458 (ia64_register_reggroup_p): New routine used to override default
459 register grouping so registers without names are still saved and
460 restored.
461 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
462 pseudo values.
463 (ia64_pseudo_register_read): New routine to read pseudo-registers.
464 (ia64_pseudo_register_write): New routine to write pseudo-registers.
465 (ia64_alloc_frame_cache): New routine to create a new
466 ia64_frame_cache.
467 (examine_prologue): Change prototype to add next_frame pointer.
468 Assume frameless until otherwise proven. Verify that the cfm for
469 current frame matches the cfm that should occur for the prologues
470 alloc insn and if equal, mark as not frameless. At end of routine,
471 if not frameless, calculate registers for the previous frame and store
472 in the cache, if a cache is provided.
473 (ia64_skip_prologue): Use new prototype when calling examine_prologue
474 and pass 0 for next_frame.
475 (ia64_store_return_value): Change to use convert_typed_floating()
476 instead of calling ia64_convert_to_raw().
477 (ia64_extract_return_value): Change to use convert_typed_floating()
478 instead of calling ia64_convert_to_virtual().
479 (ia64_frame_cache): New routine to support new frame model.
480 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
481 (ia64_frame_sniffer): Ditto.
482 (ia64_sigtramp_frame_init_saved_regs): Ditto.
483 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
484 (ia64_sigtramp_frame_prev_register): Ditto.
485 (ia64_sigtramp_frame_sniffer): Ditto.
486 (ia64_frame_base_address): Ditto.
487 (ia64_extract_struct_value_address): Change to issue error message.
488 (ia64_frame_align): New routine to align sp.
489 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
490 (ia64_push_arguments): Removed. Logic moved to
491 ia64_push_dummy_call().
492 (ia64_push_return_address): Ditto.
493 (ia64_unwind_dummy_id): New function.
494 (ia64_unwind_pc): Ditto.
495 (ia64_convert_register_p): Ditto.
496 (ia64_register_to_value): Ditto.
497 (ia64_value_to_register): Ditto.
498 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
499 (ia64_register_byte, ia64_register_raw_size): Ditto.
500 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
501 (ia64_saved_pc_after_call): Ditto.
502 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
503 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
504 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
505 (ia64_register_convert_to_raw): Ditto.
506 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
507 (ia64_init_extra_frame_info): Ditto.
508 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
509 (ia64_gdbarch_init): Remove registering of deprecated functions that
510 are no longer used. Add registration of new gdbarch functions.
511 Remove registering deprecated_write_sp. Replace
512 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
513 Delete set_gdbarch_deprecated_register_convertible(),
514 set_gdbarch_deprecated_register_convert_to_virtual(), and
515 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
516 set_gdbarch_deprecated_register_size(),
517 set_gdbarch_deprecated_register_bytes(),
518 set_gdbarch_pcregnum(),
519 set_gdbarch_deprecated_register_byte(),
520 set_gdbarch_deprecated_register_raw_size(),
521 set_gdbarch_deprecated_max_register_raw_size(),
522 set_gdbarch_deprecated_register_virtual_size(),
523 and set_gdbarch_deprecated_max_register_virtual_size() calls.
524 Replace set_gdbarch_deprecated_extract_return_value() with
525 set_gdbarch_extract_return_value(). Remove calls to:
526 set_gdbarch_deprecated_saved_pc_after_call();
527 set_gdbarch_deprecated_frame_chain(),
528 set_gdbarch_deprecated_frame_saved_pc(),
529 set_gdbarch_deprecated_frame_init_saved_regs(),
530 set_gdbarch_deprecated_get_saved_register(),
531 set_gdbarch_deprecated_call_dummy_words(),
532 set_gdbarch_deprecated_sizeof_call_dummy_words(),
533 set_gdbarch_deprecated_init_extra_frame_info(),
534 set_gdbarch_deprecated_frame_args_address(),
535 set_gdbarch_deprecated_frame_locals_address(),
536 and set_gdbarch_deprecated_dummy_write_sp().
537 Add set_gdbarch_convert_register_p(),
538 set_gdbarch_register_to_value(),
539 set_gdbarch_value_to_register(),
540 set_gdbarch_push_dummy_call(),
541 set_gdbarch_frame_align(),
542 set_gdbarch_unwind_dummy_id(),
543 set_gdbarch_unwind_pc(),
544 frame_unwind_append_sniffer(),
545 frame_unwind_append_sniffer(),
546 and frame_base_set_default().
547
aede7613
CD
5482003-08-25 Chris Demetriou <cgd@broadcom.com>
549
550 * configure.tgt: Document need for special "mipsisa64" handling.
551 (mipsisa64*-*-linux64): Handle as target linux64.
552 (mipsisa64*-*-*): Handle as target embed64.
553
43c3a82e
MC
5542003-08-18 Michael Chastain <mec@shout.net>
555
556 * PROBLEMS: Document pr gdb/1322, the Java anonymous
557 objfile bug.
558
6564f77d
MK
5592003-08-24 Mark Kettenis <kettenis@gnu.org>
560
2de139ba
MK
561 * i387-tdep.h: Update copyright date.
562 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
563
6564f77d
MK
564 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
565 CFLAGS games to reflect reality.
566
42cf1509
AC
5672003-08-24 Andrew Cagney <cagney@redhat.com>
568
569 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
570 GDB_MULTI_ARCH is always non-zero.
571 * osabi.c (_initialize_gdb_osabi): Ditto.
572 (gdbarch_init_osabi): Ditto.
573 * sparc-tdep.c: Ditto for #if code.
574
0485f6ad
MK
5752003-08-23 Mark Kettenis <kettenis@gnu.org>
576
577 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
578 Update comments.
579 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
580 comments.
581 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
582 x86_64_supply_fxsave.
583 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
584 x86_64_supply_fxsave.
585 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
586 x86_64_supply_fxsave.
587
c7716133
AJ
5882003-08-23 Andreas Jaeger <aj@suse.de>
589
590 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
591 i387_supply_fxsave.
592
ed504bdf
MK
5932003-08-23 Mark Kettenis <kettenis@gnu.org>
594
595 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
596 i387_supply_register.
597 (go32_fetch_registers): Adjust call to i387_supply_fsave.
598 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
599 i387_supply_fsave.
600 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
601 i387_supply_fxsave.
602 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
603 i387_supply_fsave.
604 * i386bsd-nat.c (supply_fpregset): Adjust call to
605 i387_supply_fsave.
606 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
607 call to i387_supply_fxsave. Call i387_supply_fsave instead of
608 supply_fpregset.
609 (store_inferior_registers): Remove extraneous whitespace. Call
610 i387_fill_fsave instead of fill_fpregset.
611 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
612 (supply_fpregset): Likewise.
613 * i386v4-nat.c (supply_fpregset): Adjust call to
614 i387_supply_fsave.
615 * i386-interix-nat.c (supply_fpregset): Adjust call to
616 i387_supply_fsave.
617 * i386-linux-nat.c (supply_fpregset): Adjust call to
618 i387_supply_fsave.
619 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
620 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
621 i387supply_fsave and i387_supply_fxsave.
622 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
623 Incorporate code from `i387_supply_register.
624 (i387_supply_register): Remove.
625 (i387_supply_fxsave): Add `regnum' argument.
626 Update comments.
627 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
628 prototype.
629 (i387_supply_register): remove prototype.
630 Update comments.
631
4be5d520
MC
6322003-08-22 Michael Chastain <mec@shout.net>
633
634 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
635 Add lines for files in gdb/testsuite/gdb.cp/* that are
636 still not 8.3 unique.
637
7ed85d26
DJ
6382003-08-22 Daniel Jacobowitz <drow@mvista.com>
639
640 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
641 TYPE_VPTR_FIELDNO is valid.
642
eb0d3137
MK
6432003-08-19 Mark Kettenis <kettenis@gnu.org>
644
645 * utils.c (set_width_command): Remove prototypes.
646 (set_screen_size): New prototype.
647 (init_page_info): Simplify by fetching the screen size from
648 Readline. Call set_screen_size.
649 (set_screen_size): New function.
650 (set_width): Add missing whitespace in comment.
651 (set_width_command): Call set_screen_size.
652 (set_height_command): New function.
653 (initialize_utils): Fix formatting. Make "set height" command
654 call set_height_command. Remove redundant code that turns off
655 pagination if output isn't a terminal. Remove redundant call to
656 set_width_command.
657
7e6d0ac8
MK
6582003-08-22 Mark Kettenis <kettenis@gnu.org>
659
3567a8ea
MK
660 * sparc64-tdep.h (sparc64_regnum): Fix comment.
661 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
662 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
663 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
664 `case' keyword.
665 (sparc64_register_info): Give the reister with number
666 SPARC64_STATE_REGNUM a name.
667 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
668 %asi and %ccr.
669 (sparc64_push_dummy_call): Take BIAS into account when checking
670 stcak alignment.
671 (sparc_software_single_step): Remove assertions that check whether
672 NPC and NNPC were zero.
673 (sparc_supply_rwindow): Make public. Merge functionality with
674 sparc64_supply_rwindow.
675 (sparc_fill_rwindow): Make public. Merge functionality with
676 sparc64_fill_rwindow.
677 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
678 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
679 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
680 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
681 sparc_supply_rwindow instead of sparc64_supply_rwindow.
682
7e6d0ac8
MK
683 * reggroups.c: Add whitespace after declarations of local
684 variables in functions.
685
72e5f484
MC
6862003-08-21 Michael Chastain <mec@shout.net>
687
688 * gdbtypes.h: Change array bound type from an int to enum.
689
435ac228
AC
6902003-08-21 Andrew Cagney <cagney@redhat.com>
691
692 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
693 * config/sparc/tm-sparc.h: Ditto.
694 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
695 unconditionally.
696 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
697
0d0e1a63
MK
6982003-07-13 Mark Kettenis <kettenis@gnu.org>
699
700 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
701 (register_objfile_data, set_objfile_data, objfile_data): New
702 prototypes.
703 * objfiles.c (objfile_alloc_data, objfile_free_data): New
704 prototypes.
705 (allocate_objfile): Call objfile_alloc_data.
706 (free_objfile): Call objfile_free_data.
707 (struct objfile_data): New.
708 (struct objfile_data_registration): New.
709 (struct objfile_data_registry): New.
710 (objfile_data_registry): New variable.
711 (register_objfile_data): New function.
712 (objfile_alloc_data, objfile_free_data): New functions.
713 (set_objfile_data, objfile_data): New functions.
714 * dwarf2-frame.c (dwarf2_frame_data): New variable.
715 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
716 (_initialize_dwarf2_frame): New function and prototype.
717
d90cf509
AC
7182003-08-21 Andrew Cagney <cagney@redhat.com>
719
720 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
721 a specific architecture.
722 * arch-utils.h (set_architecture_from_arch_mach): Delete
723 declaration.
724 (target_architecture_hook): Delete declaration.
725 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
726 (default_float_format): Assume GDB_MULTI_ARCH.
727 (default_double_format): Assume GDB_MULTI_ARCH.
728 (set_endian_from_file): Delete function.
729 (arch_ok): Delete function.
730 (set_arch): Delete function.
731 (set_architecture_from_arch_mach): Delete function.
732 (set_architecture_from_file): Delete function.
733 (set_architecture): Assume GDB_MULTI_ARCH.
734 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
735
8b39fe56
MK
7362003-08-21 Mark Kettenis <kettenis@gnu.org>
737
738 Rewrite FreeBSD/sparc64 native configuration.
739 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
740 * sparc64fbsd-nat.c: New file.
741 * sparc64fbsd-tdep.c: New file.
742 * sparc64-tdep.c sparc64-tdep.h: New files.
743 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
744 sparc64fbsd-tdep.o): New dependencies.
745 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
746 and sparc64fbsd-tdep.c.
747 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
748 * config/sparc/fbsd.mh: Remove copyright notice.
749 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
750 sparcbsd-nat.o.
751 * config/sparc/fbsd.mt: Remove copyright notice.
752 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
753 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
754 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
755 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
756 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
757 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
758 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
759 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
760 "sparc/tm-sp64.h".
761 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
762 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
763
a7f19c79
MC
7642003-08-21 Michael Chastain <mec@shout.net>
765
766 * symtab.h: Add doco on the space critical structures and
767 some measurements of space usage.
768
da08ea5b
MS
7692003-08-21 Michael Snyder <msnyder@redhat.com>
770
771 * tracepoint.c (trace_dump_command): Trace break address
772 is subject to DECR_PC_AFTER_BREAK.
773 (set_traceframe_context): Make "trace_line" an int.
774 Fixes suggested by Mark Newman <mark.newman@lmco.com>
775
6df2bf50
MS
7762003-08-20 Michael Snyder <msnyder@redhat.com>
777
778 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
779 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
780 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
781 argument passing.
782 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
783 functions, replace sh_push_dummy_call.
784 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
785
0955bbf0
MC
7862003-08-20 Michael Chastain <mec@shout.net>
787
788 * gdbtypes.h (struct main_type): Rearrange to save space.
789
260a4188
MS
7902003-08-20 Michael Snyder <msnyder@redhat.com>
791
792 * trad-frame.c: Comment typo fix.
793
8baa6f92
KB
7942003-08-20 Michael Snyder <msnyder@redhat.com>
795 Kevin Buettner <kevinb@redhat.com>
796
797 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
798 (frv_frame_init_saved_regs): Add declaration.
799 (frame_extra_info): Add new field ``saved_regs''.
800 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
801 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
802 Update frame related code.
803 (frv_extract_struct_value_address): Adjust formatting.
804 * Makefile.in (frv-tdep.o): Update dependencies.
805 * config/frv/tm-frv.h (target_insert_watchpoint)
806 (target_remove_watchpoint, target_insert_hw_breakpoint)
807 (target_remove_hw_breakpoint): Delete these macros.
808 (remote_insert_watchpoint, remote_remove_watchpoint)
809 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
810 these declarations.
811
87193939
MC
8122003-08-20 Michael Chastain <mec@shout.net>
813
814 * defs.h (ENUM_BITFIELD): New macro.
815 * symtab.h (ENUM_BITFIELD): Use it.
816 (BYTE_BITFIELD): Remove old macro, which was already disabled.
817
062103ba
SA
8182003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
819
820 * MAINTAINERS (write after approval): Add myself.
821
8b148df9
AC
8222003-08-18 Andrew Cagney <cagney@redhat.com>
823
824 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
825 * gdbarch.h, gdbarch.c: Re-generate.
826 * infcall.c (call_function_by_hand): Adjust the SP by
827 frame_red_zone_size before allocating any stack space.
828 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
829 * x86-64-tdep.c (x86_64_frame_align): New function.
830 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
831
832 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
833 Remove code adjusting SP so that it skips over the Red Zone.
834
954a4db8
MK
8352003-08-18 Mark Kettenis <kettenis@gnu.org>
836
837 * NEWS (New native configurations): Mention FreeBSD/amd64.
838
1a241548
AC
8392003-08-18 Andrew Cagney <cagney@redhat.com>
840
841 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
842 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
843 "m68k_frame_p".
844 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
845
f82b2acd
MK
8462003-08-18 Mark Kettenis <kettenis@gnu.org>
847
848 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
849
4056d258
ML
8502003-08-18 Michal Ludvig <mludvig@suse.cz>
851
852 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
853 Define.
854 * i386-linux-nat.c: Include "linux-nat.h".
855 (child_post_startup_inferior): New function.
856
99ab4326
MK
8572003-08-18 Mark Kettenis <kettenis@gnu.org>
858
859 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
860 at the start of a frameless function. This probably fixes PR
861 backtrace/1338.
862
c8d5f0d6
MC
8632003-08-17 Michael Chastain <mec@shout.net>
864
865 * symfile.c (find_sym_fns): Remove special case for apollo target.
866
9016a515
DJ
8672003-08-17 Daniel Jacobowitz <drow@mvista.com>
868
869 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
870 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
871 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
872 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
873 (linux_supports_tracevforkdone): New function.
874 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
875 TRACEVFORKDONE.
876 (child_follow_fork): Handle vfork.
877 (linux_handle_extended_wait): Likewise. Also handle exec.
878 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
879 * NEWS: Mention fork tracing.
880
c538c11c
DJ
8812003-08-17 Daniel Jacobowitz <drow@mvista.com>
882
883 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
884
4de4c07c
DJ
8852003-08-17 Daniel Jacobowitz <drow@mvista.com>
886
887 * Makefile.in (i386-linux-nat.o): Update dependencies.
888 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
889 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
890 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
891 * i386-linux-nat.c: Include "linux-nat.h".
892 (child_post_startup_inferior): New function.
893 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
894 * infptrace.c (kill_inferior): Wrap in #ifdef.
895 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
896 attaching to each LWP.
897 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
898 (init_lin_lwp_ops): Fill in some more operations.
899 * linux-nat.h (linux_enable_event_reporting)
900 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
901 prototypes.
902 * linux-nat.c (linux_enable_event_reporting): New function.
903 (child_post_attach, linux_child_post_startup_inferior)
904 (child_post_startup_inferior, child_follow_fork)
905 (linux_handle_extended_wait, kill_inferior): New functions.
906
7996bcec
AC
9072003-08-16 Andrew Cagney <cagney@redhat.com>
908
909 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
910 * gdbarch.h, gdbarch.c: Re-generate.
911
3d48a7a0
MK
9122003-08-16 Mark Kettenis <kettenis@gnu.org>
913
914 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
915
7989c619
AC
9162003-08-16 Andrew Cagney <cagney@redhat.com>
917
918 * NEWS: Mention that "set prompt-escape-char" was deleted.
919 * top.c (get_prompt_1): Delete function.
920 (gdb_prompt_escape):
921 (init_main): Do not clear "gdb_prompt_escape". Delete "set
922 prompt-escape-char" command.
923 (MAX_PROMPT_SIZE): Delete macro.
924 (get_prompt): Simplify, do not call get_prompt_1.
925
07978cd8
AC
9262003-08-16 Andrew Cagney <cagney@redhat.com>
927
928 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
929 -Werror. -Wformat-nonliteral problems.
930
3ff7cf9e
JB
9312003-08-15 J. Brobecker <brobecker@gnat.com>
932
933 Further multiarching work mostly for hppa64-*-hpux11:
934 * hppa-tdep.h: New file.
935 * hppa-tdep.c: #include hppa-tdep.c.
936 (hppa32_num_regs): Renamed from hppa_num_regs.
937 (hppa64_num_regs): New constant.
938 (hppa64_call_dummy_breakpoint_offset): New constant.
939 (hppa32_call_dummy_length): New constant.
940 (hppa64_call_dummy_length): New constant.
941 (hppa32_stack_align): Make name 32bit explicit.
942 (hppa32_register_virtual_type): Likewise.
943 (hppa32_extract_return_value): Likewise.
944 (hppa32_use_struct_convention): Likewise.
945 (hppa32_store_return_value): Likewise.
946 (hppa64_register_virtual_type): New function.
947 (hppa64_extract_return_value): New function.
948 (hppa64_use_struct_convention): New function.
949 (hppa64_store_return_value): New function.
950 (hppa_frame_locals_address): Remove declaration, function does
951 not exist anymore.
952 (hppa_register_byte): Add support for PA64 ABI.
953 (hppa_gdbarch_init): Add support for PA64 ABI.
954 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
955 Make name 32bit explicit.
956 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
957 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
958 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
959 (hppa64_hpux_frame_base_before_sigtramp): New function.
960 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
961 * config/pa/tm-hppa64.h: Remove macros that are no longer
962 necessary now that the gdbarch vector is properly setup.
963 Transform some macros into function calls. Some minor cleanup.
964 * config/pa/tm-hppah.h: Update function calls in macros
965 following the function renaming in hppa-hpux-tdep.c.
966 * Makefile.in (hppa_tdep_h): New variable.
967 (hppa-tdep.o): Add dependency over hppa_tdep_h.
968
5d05ca6d
MS
9692003-08-14 Michael Snyder <msnyder@redhat.com>
970
971 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
972
37ba2569
JB
9732003-08-13 J. Brobecker <brobecker@gnat.com>
974
975 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
976 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
977 routine.
978
aed7f26a
MS
9792003-08-13 Michael Snyder <msnyder@redhat.com>
980
981 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
982 (frv_saved_pc_after_call): Use deprecated ftype.
983 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
984 (frv_remote_translate_xfer_address): Remove.
985 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
986
752d4ac1
JB
9872003-08-13 J. Brobecker <brobecker@gnat.com>
988
989 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
990 initialization after the common gdbarch initialization, not before.
991
1426ac1d
JB
9922003-08-13 J. Brobecker <brobecker@gnat.com>
993
994 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
995 (ADDR_BITS_REMOVE): Remove, redundant.
996
b6fbdd1d
JB
9972003-08-13 J. Brobecker <brobecker@gnat.com>
998
999 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1000 gdbarch method to clear the 2 low bits of text addresses.
1001
44160db3
AC
10022003-08-12 Andrew Cagney <cagney@redhat.com>
1003
1004 * Makefile.in (dsrec.o): Update dependencies.
1005 * dsrec.c: Include "gdb_assert.h".
1006 (make_srec): Use snprintf instead of sprintf, use a literal format
1007 string.
1008
bcf7d3ca
AC
10092003-08-12 Andrew Cagney <cagney@redhat.com>
1010
1011 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1012 FRAME_OBSTACK_ZALLOC.
1013
49ed40de
KB
10142003-08-12 Kevin Buettner <kevinb@redhat.com>
1015
1016 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1017 SSE registers.
1018
b246147c
MK
10192003-08-10 Mark Kettenis <kettenis@gnu.org>
1020
1021 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1022 amd64fbsd_sc_reg_offset): Add extern declarations.
1023 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1024 declarations.
1025
d95fdc0d
BE
10262003-08-11 Ben Elliston <bje@wasabisystems.com>
1027
1028 * MAINTAINERS (write after approval): Update my mail address.
1029
cf6a0e73
AC
10302003-08-10 Andrew Cagney <cagney@redhat.com>
1031
1032 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1033
f837910f
MK
10342003-08-10 Mark Kettenis <kettenis@gnu.org>
1035
e2dbbd2d
MK
1036 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1037 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1038 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1039 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1040 i386bsd_sc_reg_offset): Add extern declarations.
1041 * i386obsd-nat.c: Include "i386-tdep.h"
1042 (_initialize_i386obsd_nat): Remove extern declarations.
1043 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1044 declarations.
1045 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1046 declarations.
1047
f837910f
MK
1048 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1049 instead of frame_read_register.
1050 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1051 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1052 SP_REGNUM.
1053 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1054 instead of frame_unwind_unsigned_register. Use
1055 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1056 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1057 instead of read_register. Use builtin_type_void_data_ptr instead
1058 of builtin_type_void_func_ptr when extracting the address of the
1059 jmp_buf.
1060 (i386_extract_return_value, i386_store_return_value,
1061 i386_pseudo_register_read, i386_pseudo_register_write): Use
1062 register_size instead REGISTER_RAW_SIZE.
1063
edcf254d
AC
10642003-08-10 Andrew Cagney <cagney@redhat.com>
1065
1066 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1067 sprintf. Make "name" constant.
1068
26604a34
MK
10692003-08-10 Mark Kettenis <kettenis@gnu.org>
1070
192285c6
MK
1071 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1072 instead of frame_read_register.
f837910f
MK
1073 (i387_print_float_info): Use get_frame_register and
1074 get_frame_register_unsigned instead of frame_register_read.
192285c6 1075
f0925262
MK
1076 * i386fbsd-nat.c: Include "i386-tdep.h".
1077 (child_resume): Make `eflags' an ULONGEST. Use
1078 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1079 instead of register_read and register_write.
1080
a144416f
MK
1081 * i386bsd-nat.c (fetch_inferior_registers,
1082 store_inferior_registers): Don't use && at the end of a line.
1083 (_initialize_i386bsd_nat): Fix typo.
1084
fec74868
MK
1085 * frame.c (_initialize_frame): Add missing backslash.
1086
87232496
MK
1087 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1088 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1089 and supply_register instead of manipulating the register buffer
1090 directly.
1091
c9b9de0b
MK
1092 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1093 * config/i386/nm-i386sol2.h
1094 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1095
26604a34
MK
1096 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1097 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1098 instructions that GCC likes to mingle into the prologue. Fixes
1099 gdb/1253 and gdb/1255.
1100
25d29d70
AC
11012003-08-09 Andrew Cagney <cagney@redhat.com>
1102
1103 Fix GDB PR cli/926.
1104 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1105 * command.h (add_setshow_uinteger_cmd): Declare.
1106 * frame.c (set_backtrace_cmd): New function.
1107 (show_backtrace_cmd): New function.
1108 * frame.c (_initialize_frame): Replace "set/show
1109 backtrace-below-main" with "set/show backtrace past-main". Add
1110 command "set/show backtrace limit".
1111 (backtrace_past_main): Rename "backtrace_below_main".
1112 (backtrace_limit): New variable.
1113 (get_prev_frame): Update. Check the backtrace_limit.
1114
9ebf4acf
AC
11152003-08-09 Andrew Cagney <cagney@redhat.com>
1116
1117 * defs.h (xstrprintf): Declare.
1118 * utils.c (xstrprintf): New function.
1119 * breakpoint.c (insert_breakpoints): Replace sprintf and
1120 non-literal format strings, with xstrprintf and cleanups.
1121 (delete_breakpoint,breakpoint_re_set): Ditto.
1122 (commands_command, insert_breakpoints): Ditto.
1123 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1124 (break_at_finish_command_1): Ditto.
1125
3771659b
AC
11262003-08-09 Andrew Cagney <cagney@redhat.com>
1127
1128 * MAINTAINERS (language support): List Adam Fedor as Objective C
1129 maintainer.
1130
b4263afa
JB
11312003-08-08 J. Brobecker <brobecker@gnat.com>
1132
1133 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1134 are now multiarched.
1135
d84defb1
JB
11362003-08-08 J. Brobecker <brobecker@gnat.com>
1137
1138 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1139 longer necessary now that hppa64 is partially multiarch'ed.
1140
f786f615
AC
11412003-08-08 Andrew Cagney <cagney@redhat.com>
1142
1143 * interps.c (interp_set): Check for a NULL "old_interp".
1144
c938e9b0
L
11452003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1146
1147 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1148 (install-only): Support DESTDIR.
1149 (uninstall): Likewise.
1150 (install-gdbtk): Likewise.
1151
9a146a11
EZ
11522003-08-08 Elena Zannoni <ezannoni@redhat.com>
1153
1154 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1155 contains something meaningful at all times.
1156
1157Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 1158
62599e99 1159 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 1160
56296155
BC
1161Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1162
62599e99 1163 * MAINTAINERS (write after approval): Added self.
56296155 1164
9710e734
AC
11652003-08-07 Andrew Cagney <cagney@redhat.com>
1166
1167 * inferior.h (AT_SYMBOL): Define.
1168 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1169 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1170 * mips-tdep.c (mips_call_dummy_address): Delete function.
1171 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1172 set call_dummy_address.
1173
98b3ab73
AC
11742003-08-07 Andrew Cagney <cagney@redhat.com>
1175
1176 * language.c (op_error): Delete function.
1177 (binop_type_check): Delete function.
1178 * language.h (type_op_error, range_op_error): Delete macros.
1179 (op_error): Delete declaration.
1180
2fcf52f0
AC
11812003-08-07 Andrew Cagney <cagney@redhat.com>
1182
1183 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1184
abd4220e 11852003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 1186
abd4220e 1187 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 1188 (x86_64_push_arguments): Skip the red zone.
abd4220e 1189
9dd5f34f
AC
11902003-08-05 Andrew Cagney <cagney@redhat.com>
1191
1192 * reggroups.c (reggroup_next): Check for the final entry.
1193
e5e78edc
AC
11942003-08-04 Andrew Cagney <cagney@redhat.com>
1195
ab4e3d93
AC
1196 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1197 * cli/cli-script.c (define_command): Call query directly, instead
1198 of passing it a buffer.
1199 * ocd.c (ocd_error): Pass error a constant format string.
1200 * remote-mips.c (mips_error): Use fputs_filtered.
1201
1062ca82
AC
1202 * solib-svr4.c (_initialize_svr4_solib): Update
1203 register_gdbarch_data call.
1204 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1205
fcc1c85c
AC
1206 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1207 (register_gdbarch_data): Delete "free" parameter. Update
1208 comments.
1209 * gdbarch.h, gdbarch.c: Re-generate.
1210 * reggroups.c (_initialize_reggroup): Update.
1211 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1212 * frame-base.c (_initialize_frame_base): Update.
1213 * frame-unwind.c (_initialize_frame_unwind): Update.
1214 * user-regs.c (_initialize_user_regs): Update.
1215 * remote.c (_initialize_remote): Update.
1216 * regcache.c (_initialize_regcache): Update.
1217
116f06ea
AC
1218 * regcache.c (xfree_regcache_descr): Delete function.
1219 (_initialize_regcache): Update call to register_gdbarch_data.
1220 (init_regcache_descr, init_legacy_regcache_descr): Use
1221 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1222
e5e78edc
AC
1223 * remote.c (free_remote_state): Delete function.
1224 (_initialize_remote): Update register_gdbarch_data.
1225 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1226 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1227
6c7d17ba
AC
12282003-08-04 Andrew Cagney <cagney@redhat.com>
1229
1230 * reggroups.c (struct reggroup_el): Define.
1231 (struct reggroups): Delete field "nr_group". Replace array
1232 "group" with a "first" to "last" linked list.
1233 (reggroups_init): Update. Allocate using gdbarch's obstack.
1234 (reggroups_free): Delete function.
1235 (add_group): Update. Add "el" parameter.
1236 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1237 (default_groups): Update.
1238 (reggroup_next): Replace reggroups.
1239 (reggroups_dump): Update.
1240 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1241 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1242 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1243
89b7795b
DJ
12442003-08-04 Daniel Jacobowitz <drow@mvista.com>
1245
1246 * Makefile.in (tui-interp.o): Update dependencies.
1247
306d9ac5
DC
12482003-08-04 David Carlton <carlton@kealia.com>
1249
1250 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1251 to internal_error call.
1252 * source.c (forward_search_command): Add "%s" format argument.
1253 (reverse_search_command): Ditto.
1254 * top.c (quit_confirm): Ditto.
1255 * cli/cli-setshow.c (do_setshow_command): Ditto.
1256 * cp-valprint.c (cp_print_class_method): Replace
1257 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1258 (cp_print_class_member): Ditto.
1259 * event-top.c (command_line_handler): Ditto.
1260 * linux-proc.c (linux_info_proc_cmd): Ditto.
1261 * p-typeprint.c (pascal_type_print_base): Ditto.
1262 * p-valprint.c (pascal_object_print_class_method): Ditto.
1263 (pascal_object_print_class_member): Ditto.
1264 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1265 * remote.c (remote_cisco_section_offsets): Ditto.
1266 * top.c (command_line_input): Ditto.
1267 * utils.c (vwarning,error_stream,quit): Ditto.
1268 * valprint.c (print_floating,print_binary_chars)
1269 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1270
57bfe177
AC
12712003-08-04 Andrew Cagney <cagney@redhat.com>
1272
1273 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1274
e546b999
AC
12752003-08-02 Andrew Cagney <cagney@redhat.com>
1276
1277 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1278 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1279 amd64fbsd-nat.c.
1280
91092ee5
AC
12812003-08-02 Andrew Cagney <cagney@redhat.com>
1282
1283 * Makefile.in: Update all dependencies and definitions.
1284
889f28e2
AF
12852003-08-02 Adam Fedor <fedor@gnu.org>
1286
1287 * linespec.c (is_objc_method_format): New function
1288 (decode_line_1, locate_first_half): Use it.
1289 Fixes PR objc/1298
1290
880bc914
AC
12912003-08-01 Andrew Cagney <cagney@redhat.com>
1292
1293 * NEWS: Mention that m32r is multi-arch.
1294 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1295 * configure.tgt: Recognize m32r-*-*.
1296 * config/m32r/tm-m32r.h: Delete file.
1297 * config/m32r/m32r.mt: New file.
1298 * m32r-rom.c (m32r_upload_command): Use hostent only when
1299 gethostname succeeds, in order to avoid a compilation
1300 warning.
1301 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1302 compiler warning.
1303
19f59343
MS
13042003-08-01 Michael Snyder <msnyder@redhat.com>
1305
1306 * sh-tdep.c (sh_frame_align): New gdbarch method.
1307 (sh_gdbarch_init): Set up frame_align method.
1308
4e7d7511
MS
13092003-07-31 Michael Snyder <msnyder@redhat.com>
1310
1311 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1312 which is already covered by the new frames infrastructure.
1313
63022984
AC
13142003-07-31 Andrew Cagney <cagney@redhat.com>
1315
1316 * user-regs.c (struct user_reg): Add "next" link.
1317 (struct user_regs): Replace "user" with "first" and "last" links.
1318 (append_user_reg): Add pre-allocated "reg" parameter.
1319 (builtin_user_regs): Provide initial value for "last".
1320 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1321 (user_regs_init): Allocate memory from the gdbarch obstack.
1322 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1323 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1324 linked list.
1325 (usernum_to_user_reg): New function.
1326 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1327 (value_of_user_reg): Use usernum_to_user_reg.
1328 (user_regs_free): Delete function.
1329 (_initialize_user_regs): Update register_gdbarch_data call.
1330
7cf6e574
DJ
13312003-07-31 Daniel Jacobowitz <drow@mvista.com>
1332
1333 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1334
c48a845b
MS
13352003-07-30 Michael Snyder <msnyder@redhat.com>
1336
4e7d7511 1337 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
1338 * infcall.c (call_function_by_hand): Pass struct_addr to
1339 value_being_returned.
1340 * infcmd.c (print_return_value): Pass zero as struct_addr.
1341 * values.c (value_being_returned): If struct_addr is passed,
1342 use it instead of trying to recover it from the inferior.
1343
f0d8db19
KB
13442003-07-30 Kevin Buettner <kevinb@redhat.com>
1345
1346 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1347 the prologue analyzer won't need to attempt to extract the pc
1348 value from the woefully incomplete dummy frame.
1349 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1350 possible. Disable code which modifies the frame.
1351
e5c113a1
AC
13522003-07-28 Andrew Cagney <cagney@redhat.com>
1353
1354 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1355 to level 2.
1356 (annotate_breakpoints_table, annotate_record): Ditto.
1357 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1358 (annotate_field_name_end, annotate_field_value): Ditto.
1359 (annotate_field_end, annotate_frame_source_begin): Ditto.
1360 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1361 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1362 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1363 (annotate_frame_address_end, annotate_frame_address): Ditto.
1364 (annotate_frame_args, annotate_frame_end): Ditto.
1365 (annotate_frame_where, annotate_arg_begin): Ditto.
1366 (annotate_arg_name_end, annotate_arg_value): Ditto.
1367 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1368 (annotate_function_call, annotate_signal_name): Ditto.
1369 (annotate_signal_string, annotate_signal_name_end): Ditto.
1370 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1371 (annotate_value_begin, annotate_value_history_value): Ditto.
1372 (annotate_value_history_end, annotate_value_end): Ditto.
1373 (annotate_display_begin, annotate_display_number_end): Ditto.
1374 (annotate_display_format, annotate_display_expression): Ditto.
1375 (annotate_display_expression_end, annotate_display_value): Ditto.
1376 (annotate_display_end, annotate_array_section_begin): Ditto.
1377 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1378 (annotate_elt, annotate_array_section_end): Ditto.
1379
bb1db049
AC
13802003-07-28 Andrew Cagney <cagney@redhat.com>
1381
1382 * regcache.c (struct regcache_descr): Update comments on
1383 nr_raw_registers.
1384 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1385 sizeof_raw_register_valid_p.
1386 (init_regcache_descr): Set nr_raw_registers and
1387 sizeof_raw_register_valid_p before calling
1388 init_legacy_regcache_descr.
1389
20e6603c
AC
13902003-07-28 Andrew Cagney <cagney@redhat.com>
1391
1392 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1393 MOD NUM_REGS.
1394
db742940
DJ
13952003-07-28 Daniel Jacobowitz <drow@mvista.com>
1396
1397 * thread.c (info_threads_command): Use get_selected_frame ().
1398 Check that there is at least one non-sentinel frame.
1399
ce7f4371
SC
14002003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1401
1402 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1403 (m68hc11_pop_frame): Remove.
1404 (m68hc11_frame_saved_pc): Remove.
1405 (m68hc11_frame_chain): Remove.
1406 (m68hc11_frame_init_saved_regs): Remove.
1407 (m68hc11_init_extra_frame_info): Remove.
1408 (m68hc11_store_struct_return): Remove.
1409 (m68hc11_saved_pc_after_call): Remove.
1410
1ea653ae
SC
14112003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1412
1413 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1414 frame unwind information.
1415 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1416 and adapted for frame unwinding.
1417 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1418 (m68hc11_unwind_pc): New function.
1419 (m68hc11_frame_unwind_cache): New function to analyze frames.
1420 (m68hc11_frame_this_id): New function to create new frame struct.
1421 (m68hc11_frame_prev_register): New function to unwind a register from
1422 the frame.
1423 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1424 (m68hc11_frame_p): New function for the above.
1425 (m68hc11_frame_base_address): New function to return fp of frame.
1426 (m68hc11_frame_args_address): Update for frame.
1427 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1428 (m68hc11_unwind_sp): New function.
1429 (m68hc11_unwind_dummy_id): New function.
1430 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1431 calls.
1432
c8a7f6ac
SC
14332003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1434
1435 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1436 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1437 when we are beyond the current pc.
1438
3dc990bf
SC
14392003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1440
1441 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1442 from m68hc11_push_arguments.
1443 (m68hc11_push_arguments): Remove.
1444 (m68hc11_push_return_address): Remove.
1445 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1446 handlers; remove deprecated_extra_stack_alignment_needed.
1447
222e5d1d
AC
14482003-07-27 Andrew Cagney <cagney@redhat.com>
1449
1450 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1451 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1452 REAL_PC and not the pointer.
1453 * hppa-hpux-tdep.c: Include frame.h
1454
a7e9a47e
AC
14552003-07-27 Andrew Cagney <cagney@redhat.com>
1456
1457 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1458 GDB_MULTI_ACH_PARTIAL.
1459
7e3dd49e
AC
14602003-07-27 Andrew Cagney <cagney@redhat.com>
1461
1462 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1463 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1464 operator at start and not end of line.
1465 (decode_prologue): Ditto.
1466 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1467 frame_unwind_register_unsigned instead of
1468 frame_unwind_unsigned_register.
1469 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1470 read_register.
1471 (m32r_push_dummy_call): Use register_size instead of
1472 REGISTER_RAW_SIZE.
1473 (m32r_frame_sniffer): Replace m32r_frame_p.
1474 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1475 * m32r-rom.c (report_transfer_performance): Delete extern
1476 declaration.
1477 (m32r_load, m32r_upload_command): Use print_transfer_performance
1478 instead of report_transfer_performance.
1479 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1480 / add_show_from_set.
1481
0880807f
AC
14822003-07-26 Andrew Cagney <cagney@redhat.com>
1483
1484 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1485 store_return_value and extract_struct_value_address.
1486
64ae9269
DJ
14872003-07-26 Daniel Jacobowitz <drow@mvista.com>
1488
1489 PR c++/1267
1490 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1491 NULL, default to the section containing PC.
1492
e286caf2
SC
14932003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1494
1495 * NEWS: Mention "regs" deprecated for m68hc11 too.
1496
1497 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1498 (m68hc11_print_register): New function to print out one register.
1499 (m68hc11_print_registers_info): New function to print registers.
1500 (show_regs): Deprecate and use the above.
1501 (m68hc11_gdbarch_init): Install the print_registers_info.
1502
705b278b
JJ
15032003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1504
1505 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1506 that we have a SIGTRAP before returning non-zero.
1507
63cd4198
EZ
15082003-07-23 Michal Ludvig <mludvig@suse.cz>
1509 Elena Zannoni <ezannoni@redhat.com>
1510
1511 * linespec.c (decode_line_2): Avoid crash if
1512 find_function_start_sal() returns empty record.
1513
6926787d
AS
15142003-07-23 Andreas Schwab <schwab@suse.de>
1515
1516 * ia64-tdep.c (ia64_print_insn): New function.
1517 (ia64_gdbarch_init): Set print_insn to it.
1518 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1519 deprecated_tm_print_insn_info.
1520
708cc1b6
MS
15212003-07-22 Michael Snyder <msnyder@redhat.com>
1522
1523 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1524 handle 8-bit returns (long long).
1525 (h8300h_extract_return_value): Ditto.
1526 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1527
aebd7893
AC
15282003-07-22 Andrew Cagney <cagney@redhat.com>
1529
1530 * gdbarch.c Include "gdb_obstack.h".
1531 (struct gdbarch): Add an "obstack".
1532 (alloc_gdbarch_data): Allocate the gdbarch data using
1533 GDBARCH_OBSTACK_CALLOC.
1534 (free_gdbarch_data): Delete function.
1535 (gdbarch_obstack_zalloc): New function.
1536 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1537 Assert that the architecture is not initialized.
1538 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1539 vector from the obstack.
1540 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1541 architecture obstack.
1542 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1543 (set_gdbarch_data): Assert that the data is not initialized.
1544 (struct gdbarch_data): Delete member "free".
1545 (register_gdbarch_data): Do not initialize "free".
1546 * gdbarch.h, gdbarch.c: Re-generate.
1547
153721e6
AC
15482003-07-22 Andrew Cagney <cagney@redhat.com>
1549
1550 * configure.in (build_warnings): Add -Wformat-nonliteral.
1551 * configure: Re-generate.
1552
c193f044 15532003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
1554
1555 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 1556
c3228f12
EZ
15572003-07-22 Elena Zannoni <ezannoni@redhat.com>
1558
1559 * findvar.c (read_var_value): Remove case for thread local storage
1560 variables. It is now entirely handled by the dwarf2 location
1561 expression code.
1562 * printcmd.c (address_info): Ditto.
1563 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1564 enumeration value.
1565 (struct symbol): Remove objfile field, which was used by
1566 LOC_THREAD_LOCAL_STATIC only.
1567 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1568 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1569 usage of objfile pointer.
1570 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1571 thread local variables.
1572 Add include of objfiles.h.
1573 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1574 storage variables.
1575 * Makefile.in (dwarf2loc.o): Update dependencies.
1576
aef9bcd2
AC
15772003-07-22 Andrew Cagney <cagney@redhat.com>
1578
1579 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1580 get_frame_base.
1581 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1582 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1583 (struct value): Add opaque declaration.
1584 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1585
d95a8903
AC
15862003-07-21 Andrew Cagney <cagney@redhat.com>
1587
1588 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1589 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1590
4db73d49
SC
15912003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1592
1593 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1594 regcache_cooked_read_unsigned instead of read_register.
1595 (m68hc11_saved_pc_after_call): Likewise.
1596 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1597 instead of write_register.
1598 (m68hc11_register_type): New function.
1599 (m68hc11_register_virtual_type): Remove.
1600 (m68hc11_store_return_value): Convert to use the regcache.
1601 (m68hc11_extract_struct_value_address): Likewise.
1602 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1603 m68hc11_register_type; undeprecate store_return_value and
1604 extract_struct_value_address.
1605
ef2b8fcd
SC
16062003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1607
1608 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1609 and translate to use regcache.
1610 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1611
625b0b97
AC
16122003-07-18 Andrew Cagney <cagney@redhat.com>
1613
1614 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1615 * gdbarch.h, gdbarch.c: Re-generate.
1616 * i386-tdep.c (i386_gdbarch_init): Do not set
1617 DWARF2_BUILD_FRAME_INFO.
1618 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1619 unconditionally.
1620 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1621 DWARF2_BUILD_FRAME_INFO.
1622
22b0d388
AC
16232003-07-18 Andrew Cagney <cagney@redhat.com>
1624
1625 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1626 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1627
1ce5d6dd
AC
16282003-07-18 Andrew Cagney <cagney@redhat.com>
1629
1630 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1631 frame_unwind_address_in_block, instead of frame_pc_unwind.
1632 (dwarf2_frame_cache): Ditto.
1633
e6e5e94c
AC
16342003-07-18 Andrew Cagney <cagney@redhat.com>
1635
1636 * user-regs.h (struct gdbarch): Declare opaque.
1637 * ui-out.h (struct ui_file): Declare opaque.
1638 * dwarf2-frame.h (struct frame_info): Declare opaque.
1639
5483d879
KW
16402003-07-18 Kris Warkentin <kewarken@qnx.com>
1641
1642 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1643 #include "...".
1644 (procfs_meminfo): Change strerror to safe_strerror.
1645 (procfs_can_run): Remove K&R badness.
1646
278a7cf7
MS
16472003-07-17 Michael Snyder <msnyder@redhat.com>
1648
1649 * remote-sim.c: Comment typo fix.
1650
606e3b82
AC
16512003-07-17 Andrew Cagney <cagney@redhat.com>
1652
1653 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1654 configure.
1655 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1656 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1657 GDB_MULTI_ARCH_PARTIAL.
1658
c43af07c
EZ
16592003-07-17 Elena Zannoni <ezannoni@redhat.com>
1660
1661 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1662 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1663 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1664
3b85b0f1
TR
16652003-07-16 Theodore A. Roth <troth@openavr.org>
1666
1667 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1668 found.
1669 (avr_frame_unwind_cache): Don't unwind FP for main.
1670 Update a comment.
1671 Save the computed prev_sp.
1672 (avr_saved_regs_unwinder): Remove function.
1673 (avr_frame_prev_register): Use PC unwind logic from
1674 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1675
336d1bba
AC
16762003-07-16 Andrew Cagney <cagney@redhat.com>
1677
1678 * frame-base.h (frame_base_p_ftype): Delete definition.
1679 (frame_base_append_predicate): Delete declaration.
1680 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1681 (frame_unwind_append_predicate): Delete declaration.
1682 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1683 (append_predicate): Delete parameter "p".
1684 (frame_unwind_append_predicate): Delete function.
1685 (frame_unwind_append_sniffer): Update call to append_predicate.
1686 (frame_unwind_free): Delete function.
1687 (_initialize_frame_unwind): Pass NULL as "free" to
1688 register_gdbarch_data.
1689 (frame_unwind_init): Append the dummy_frame_sniffer.
1690 (frame_unwind_find_by_frame): Simplify.
1691 * frame-base.c (struct frame_base_table): Delete field "p".
1692 (append_predicate): Delete parameter "p".
1693 (frame_base_append_predicate): Delete function.
1694 (frame_base_append_sniffer): Update call to append_predicate.
1695 (frame_base_free): Delete function.
1696 (frame_base_find_by_frame): Simplify.
1697 (_initialize_frame_base): Pass NULL as "free" to
1698 register_gdbarch_data.
1699 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1700 (x86_64_sigtramp_frame_sniffer): Replace
1701 "x86_64_sigtramp_frame_p".
1702 (x86_64_init_abi): Set the frame unwind sniffers.
1703 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1704 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1705 (m68k_gdbarch_init): Set the frame unwind sniffers.
1706 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1707 "i386_sigtramp_frame_p".
1708 (i386_frame_sniffer): Replace "i386_frame_p".
1709 (i386_gdbarch_init): Set the frame unwind sniffers.
1710 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1711 (avr_gdbarch_init): Set the frame unwind sniffers.
1712 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1713 "alpha_sigtramp_frame_p"
1714 (alpha_heuristic_frame_sniffer): Replace
1715 "alpha_heuristic_frame_p".
1716 (alpha_gdbarch_init): Set the frame unwind sniffers.
1717 (alpha_dwarf2_init_abi): Ditto.
1718 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1719 "alpha_debug_frame_p".
1720 (alpha_mdebug_frame_base_sniffer): Replace
1721 "alpha_mdebug_frame_base_p".
1722 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1723 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1724 (d10v_gdbarch_init): Set the frame unwind sniffer.
1725 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1726 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1727 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1728 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1729 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1730 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1731
48db5a3c
CV
17322003-07-16 Michael Snyder <msnyder@redhat.com>
1733
1734 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1735 should go thru sh_dsp_register_sim_regno, else the dsp regs
1736 will not get the right values.
1737
17382003-07-16 Corinna Vinschen <vinschen@redhat.com>
1739
1740 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1741 deprecated_store_floating by call to store_typed_floating.
1742 (sh_sh4_register_convert_to_raw): Substitute call to
1743 deprecated_extract_floating by call to extract_typed_floating.
1744
17452003-07-16 Corinna Vinschen <vinschen@redhat.com>
1746
1747 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1748
17492003-07-16 Corinna Vinschen <vinschen@redhat.com>
1750
1751 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1752 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1753 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1754 as possible.
1755 (do_pseudo_register): Remove.
1756 (sh_push_dummy_code): New function.
1757 (sh64_store_struct_return): Rename from sh_store_struct_return.
1758 Only called for sh64 now.
1759 (sh_extract_struct_value_address): Regcache'ify.
1760 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1761 and accomodate new tasks.
1762 (sh64_push_return_address): Rename from sh_push_return_address.
1763 Only called for sh64 now.
1764 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1765 Regcache'ify.
1766 (sh3e_sh4_extract_return_value): Regcache'ify.
1767 (sh_default_store_return_value): Ditto.
1768 (sh3e_sh4_store_return_value): Ditto.
1769 (sh_default_register_byte): Remove.
1770 (sh_sh4_register_byte): Remove.
1771 (sh_default_register_raw_size): Remove.
1772 (sh_sh4_register_raw_size): Remove.
1773 (sh_register_virtual_size): Remove.
1774 (sh_sh3e_register_virtual_type): Remove.
1775 (sh_sh3e_register_type): New function.
1776 (sh_sh4_register_virtual_type): Remove.
1777 (sh_sh4_register_type): New function.
1778 (sh_default_register_virtual_type): Remove.
1779 (sh_default_register_type): New function.
1780 (do_fv_register_info): Add parameters to accomodate call from
1781 sh_print_registers_info.
1782 (do_dr_register_info): Ditto.
1783 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1784 Add parameters to accomodate call from sh_print_registers_info.
1785 (sh_do_fp_register): Ditto.
1786 (sh64_do_pseudo_register): Call do_dr_register_info,
1787 do_fv_register_info and sh_do_fp_register with default parameters.
1788 (sh_do_register): Add parameters to accomodate call from
1789 sh_print_registers_info.
1790 (sh_print_register): Ditto.
1791 (sh_print_registers_info): Rename from sh_do_registers_info.
1792 Add parameters to be used as gdbarch_print_registers_info
1793 implementation. Accomodate removed do_pseudo_register function
1794 pointer.
1795 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1796 function pointer. Call sh_print_register with default parameters.
1797 (sh64_do_registers_info): Call sh_print_registers_info instead of
1798 sh_do_registers_info.
1799 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1800 detection of deprecated vs. non-deprecated functionality.
1801 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1802 function pointer assignments by direct function calls.
1803
e8a89fe2
AC
18042003-07-15 Andrew Cagney <cagney@redhat.com>
1805
1806 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1807 (frame_register_unwind, create_new_frame): Ditto.
1808 (legacy_get_prev_frame, get_frame_type): Ditto.
1809 (get_frame_base_address): Use frame_base_find_by_frame.
1810 (get_frame_locals_address): Use frame_base_find_by_frame.
1811 (get_frame_args_address): Use frame_base_find_by_frame.
1812 * frame-base.h (frame_base_sniffer_ftype): Declare.
1813 (frame_base_append_sniffer): Declare.
1814 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1815 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1816 (frame_base_append_sniffer): New function.
1817 (frame_base_append_predicate): Add a NULL sniffer.
1818 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1819 (struct frame_base_table): Add "sniffer".
1820 (frame_base_free): Free the "sniffer" table.
1821 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1822 (frame_unwind_append_sniffer): Declare.
1823 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1824 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1825 (struct frame_unwind_table): Add "sniffer", delete "middle".
1826 (append_predicate): Add "sniffer" parameter, append the sniffer.
1827 (frame_unwind_init): Update append_predicate call.
1828 (frame_unwind_append_sniffer): New function.
1829 (frame_unwind_append_predicate): Update append_predicate call.
1830 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1831
0714963c
AC
18322003-07-15 Andrew Cagney <cagney@redhat.com>
1833
1834 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1835 before code inhibiting repeated unwind attempts. Add to
1836 commentary on that test's problems.
1837 * blockframe.c (inside_main_func): Look for "main" in the minimal
1838 symbol table.
1839 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1840 identical.
1841
d9170e22
AC
18422003-07-15 Andrew Cagney <cagney@redhat.com>
1843
1844 * complaints.c (struct explanation): Define.
1845 (struct complaints): Change type of "explanation" to "struct
1846 explanation".
1847 (symfile_explanations): Convert to a "struct explanation" table.
1848 (vcomplaint): Update.
1849
eba29c8c
ML
18502003-07-15 Michal Ludvig <mludvig@suse.cz>
1851
1852 * x86-64-linux-nat.c (regmap): Removed.
1853 (supply_gregset, fill_gregset): Call
1854 x86_64_linux_(fill,supply)_gregset functions.
1855 * x86-64-linux-tdep.c (USER_*): New defines.
1856 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1857 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1858 New functions.
1859 (fetch_core_registers): Ditto.
1860 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1861 * x86-64-linux-tdep.h: New file.
1862 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1863 and core-regset.o.
1864 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1865
68cc0bfb
MK
18662003-07-13 Mark Kettenis <kettenis@gnu.org>
1867
88a115f7
MK
1868 * x86-64-tdep.c (x86_64_store_return_value): Use
1869 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 1870
68cc0bfb
MK
1871 * configure.host: Add x86_64-*-freebsd*.
1872 * configure.tgt: Add x86_64-*-freebsd*.
1873 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1874 * amd64fbsd-nat.c: New file.
1875 * amd64fbsd-tdep.c: New file.
1876 * config/i386/nm-fbsd64.h: New file.
1877 * config/i386/fbsd64.mh: New file.
1878 * config/i386/fbsd64.mt: New file.
1879
138e7be5
MK
18802003-07-11 Mark Kettenis <kettenis@gnu.org>
1881
1882 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1883 `sc_regs_offset' and `sc_fpregs_offset'.
1884 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1885 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1886 (alpha_sigtramp_register_address): Rewrite to use new members of
1887 `struct gdbarch_tdep'.
1888 (alpha_gdbarch_init): Initialize new members of struct
1889 gdbarch_tdep'.
1890 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1891 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1892 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1893 (alphafbsd_pc_in_sigtramp): Implement.
1894 (alphafbsd_sigtramp_offset): New function.
1895 (alphafbsd_sigcontext_addr): New function.
1896 (alphafbsd_init_abi): Initialize signal trampoline related members
1897 of `struct gdbarch_tdep'.
1898 (_initialize_alphafbsd_tdep): Add prototype.
1899
95303a68
TR
19002003-07-11 Theodore A. Roth <troth@openavr.org>
1901
ba292e4c
TR
1902 * Makefile.in (install-only): Quote sed expression when generating
1903 transformed_name.
95303a68 1904
6896c0c7
RH
19052003-07-11 Richard Henderson <rth@redhat.com>
1906
1907 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1908 * dwarf2-frame.c: Include complaints.h.
1909 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1910 variable initialization; return NULL on error.
1911 (decode_frame_entry): New.
1912
8edd5d01
AC
19132003-07-11 Andrew Cagney <cagney@redhat.com>
1914
c4a09524
AC
1915 * frame.h (frame_address_in_block): Delete declaration.
1916 * blockframe.c (frame_address_in_block): Delete function.
1917 (get_frame_block): Use get_frame_address_in_block.
1918 (block_innermost_frame): Ditto.
1919 * stack.c (print_frame, backtrace_command_1): Ditto.
1920
8edd5d01
AC
1921 * frame.h (get_frame_address_in_block): Declare.
1922 (frame_unwind_address_in_block): Declare.
1923 * frame.c (frame_unwind_address_in_block): New function.
1924 (get_frame_address_in_block): New function.
1925
f7968451
AC
19262003-07-10 Andrew Cagney <cagney@redhat.com>
1927
1928 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1929 pre-default. Note: re-generate has no effect.
1930
ae99b398
AC
19312003-07-10 Andrew Cagney <cagney@redhat.com>
1932
1933 * gdbarch.sh: When a variable, but not a function, compare against
1934 0. Fix problem in previous patch.
1935 * gdbarch.c: Re-generate.
1936
956ac328
AC
19372003-07-10 Andrew Cagney <cagney@redhat.com>
1938
1939 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1940 functions against NULL, not 0.
1941 * gdbarch.c: Re-generate.
1942
287c3240
FF
19432003-07-10 Fred Fish <fnf@ninemoons.com>
1944
1945 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1946 null string instead of a null pointer.
1947 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1948
32f63c4b
MS
19492003-07-09 Michael Snyder <msnyder@redhat.com>
1950
1951 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1952
402ecd56
MK
19532003-07-09 Mark Kettenis <kettenis@gnu.org>
1954
1955 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1956 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1957 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1958 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1959 * x86-64-tdep.c: ... from here.
1960
c481dac7
AS
19612003-07-09 Andreas Schwab <schwab@suse.de>
1962
1963 * m68k-tdep.h (enum struct_return): Define.
1964 (struct gdbarch_tdep): Add struct_return.
1965 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1966 bytes are padded to the right, not to the left. Pass struct value
1967 address in register %a1, not on stack.
1968 (m68k_use_struct_convention): New function.
1969 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1970 struct_return in tdep to pcc_struct_return.
1971 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1972 reg_struct_return.
1973
64176fa3
JB
19742003-07-09 Joel Brobecker <brobecker@gnat.com>
1975
1976 * somread.c (som_symfile_offsets): Fix compilation error.
1977
96a4ee76
AC
19782003-07-09 Andrew Cagney <cagney@redhat.com>
1979
1980 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1981 Add comments about the checks.
1982
1517c6d1
AC
19832003-07-08 Andrew Cagney <cagney@redhat.com>
1984
1985 * Makefile.in: Make dependency section headers consistent.
1986 (config_h): Move to $BUILD headers section.
1987 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1988 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1989 (ada-exp.tab.c): Move to YACC/LEX section.
1990 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1991 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1992
dc5dd1eb
KW
19932003-07-08 Kris Warkentin <kewarken@qnx.com>
1994
1995 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
1996 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1997 of strerror with safe_strerror, use ISO C function definitions,
1998 and replace instances of sprintf with snprintf.
dc5dd1eb 1999
612dde91
AC
20002003-07-07 Andrew Cagney <cagney@redhat.com>
2001
2002 * frame.c (get_prev_frame): Enable check for identical frames.
2003 Update comments. Update error messages.
2004
492c11d3
JB
20052003-07-07 Joel Brobecker <brobecker@gnat.com>
2006
2007 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2008
376a5a49
JB
20092003-07-07 Joel Brobecker <brobecker@gnat.com>
2010
2011 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2012 sort_symtab_syms, no longer necessary.
2013
22b4a9ad
JB
20142003-07-07 Joel Brobecker <brobecker@gnat.com>
2015
2016 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2017
5bbcb741
JB
20182003-07-07 Joel Brobecker <brobecker@gnat.com>
2019
2020 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2021 (mips_register_byte): Likewise.
2022
c139e7d9
DJ
20232003-07-07 Daniel Jacobowitz <drow@mvista.com>
2024
2025 * Makefile.in (sparc_tdep_h): New.
2026 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2027 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2028 * sparc-linux-nat.c: Include "sparc-tdep.h".
2029 * sparc-nat.c: Likewise.
2030 * sparc-tdep.c: Likewise.
2031 * sparc64nbsd-nat.c: Likewise.
2032 * sparcnbsd-nat.c: Likewise.
2033 * sparcnbsd-tdep.c: Likewise.
2034 * sparc-tdep.h: New file.
2035 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2036 and sparc_npc_regnum.
2037
fd8f87c5
DJ
20382003-07-07 Daniel Jacobowitz <drow@mvista.com>
2039
2040 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2041 (mips_linux_cannot_store_register): List supported instead of
2042 unsupported registers.
2043
13adf674
DJ
20442003-07-07 Daniel Jacobowitz <drow@mvista.com>
2045
2046 * disasm.c (dump_insns): Separate instructions from addresses.
2047
8de307e0
AS
20482003-07-07 Andreas Schwab <schwab@suse.de>
2049
2050 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2051 dependencies.
2052 * m68k-tdep.c (NUM_FREGS): Delete.
2053 (SIG_PC_FP_OFFSET): Delete.
2054 (TARGET_M68K): Delete.
2055 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2056 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2057 P_MOVEL_SP, P_MOVEML_SP): Define.
2058 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2059 P_TRAP): Delete.
2060 (m68k_register_raw_size): Delete.
2061 (m68k_register_virtual_size): Delete.
2062 (m68k_register_type): Renamed from m68k_register_virtual_type and
2063 add gdbarch argument.
2064 (m68k_store_struct_return): Delete.
2065 (m68k_deprecated_extract_return_value): Delete.
2066 (m68k_deprecated_extract_struct_value_address): Delete.
2067 (m68k_frame_chain): Delete.
2068 (m68k_frame_saved_pc): Delete.
2069 (m68k_fix_call_dummy): Delete.
2070 (m68k_push_dummy_frame): Delete.
2071 (m68k_pop_frame): Delete.
2072 (m68k_extract_return_value): New function.
2073 (m68k_store_return_value): Rewrite using regcache.
2074 (m68k_extract_struct_value_address): Rewrite using regcache.
2075 (m68k_push_dummy_call): New function.
2076 (struct m68k_frame_cache): Define.
2077 (m68k_alloc_frame_cache): New function.
2078 (m68k_analyze_frame_setup): New function.
2079 (m68k_analyze_register_saves): New function.
2080 (m68k_analyze_prologue): New function.
2081 (m68k_skip_prologue): Rewrite using above functions.
2082 (m68k_unwind_pc): New function.
2083 (m68k_frame_cache): New function.
2084 (m68k_frame_this_id): New function.
2085 (m68k_frame_prev_register): New function.
2086 (m68k_frame_unwind): New variable.
2087 (m68k_frame_p): New function.
2088 (m68k_sigtramp_frame_cache): New function.
2089 (m68k_sigtramp_frame_this_id): New function.
2090 (m68k_sigtramp_frame_prev_register): New function.
2091 (m68k_sigtramp_frame_unwind): New variable.
2092 (m68k_sigtramp_frame_p): New function.
2093 (m68k_frame_base_address): New function.
2094 (m68k_frame_base): New function.
2095 (m68k_unwind_dummy_id): New function.
2096 (fill_gregset): Use regcache_collect.
2097 (fill_fpregset): Likewise.
2098 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2099 defined.
2100 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2101 deprecated_init_frame_pc, deprecated_store_struct_return,
2102 deprecated_extract_return_value, deprecated_store_return_value,
2103 deprecated_frame_chain, deprecated_frame_saved_pc,
2104 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2105 deprecated_register_virtual_size,
2106 deprecated_max_register_raw_size,
2107 deprecated_max_register_virtual_size,
2108 deprecated_register_virtual_type, deprecated_register_size,
2109 deprecated_register_byte, deprecated_register_bytes,
2110 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2111 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2112 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2113 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2114 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2115 deprecated_push_dummy_frame, deprecated_pop_frame,
2116 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2117 only if SYSCALL_TRAP is defined. Set extract_return_value,
2118 store_return_value, extract_struct_value_address, register_type,
2119 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2120 predicates.
2121 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2122 M68K_MAX_REGISTER_SIZE): Define.
2123 (struct m68k_sigtramp_info): Define.
2124 (struct gdbarch_tdep): Add get_sigtramp_info.
2125 * m68klinux-nat.c (fetch_register): Use register_size instead of
2126 REGISTER_RAW_SIZE. Don't put assignment in if.
2127 (store_register): Likewise.
2128 (fetch_inferior_registers): Likewise.
2129 (store_inferior_registers): Likewise.
2130 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2131 (m68k_linux_frame_saved_pc): Delete.
2132 (m68k_linux_sigcontext_reg_offset,
2133 m68k_linux_ucontext_reg_offset): Define.
2134 (m68k_linux_get_sigtramp_info): New function.
2135 (m68k_linux_extract_return_value): Rewrite using regcache.
2136 (m68k_linux_store_return_value): Likewise.
2137 (m68k_linux_extract_struct_value_address): Likewise.
2138 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2139 Don't set deprecated_frame_saved_pc,
2140 deprecated_extract_return_value, deprecated_store_return_value,
2141 deprecated_extract_struct_value_address. Set
2142 extract_return_value, store_return_value,
2143 extract_struct_value_address.
2144
eb8bc282
AC
21452003-07-07 Andrew Cagney <cagney@redhat.com>
2146
2147 * expprint.c: Include "user-regs.h" instead of "frame.h".
2148 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2149 frame_map_regnum_to_name.
2150 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2151 (frame_map_name_to_regnum): Simplify, call
2152 user_reg_map_name_to_regnum.
2153 (frame_map_regnum_to_name): Simplify, call
2154 user_reg_map_regnum_to_name.
2155 (frame_register_unwind): Update.
2156 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2157 (_initialize_frame_reg): Call user_reg_add_builtin.
2158 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2159 (value_of_register): Use value_of_user_reg.
2160 * eval.c (evaluate_subexp_standard): Update.
2161 * parse.c (write_dollar_variable): Update.
2162 * d10v-tdep.c (d10v_print_registers_info): Update.
2163 * infcmd.c (registers_info): Update.
2164 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2165 (builtin_regs_h): Delete macro.
2166 (user_regs_h): Define.
2167 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2168 (builtin-regs.o): Delete target.
2169 (user-regs.o): Specify dependencies.
2170 (expprint.o): Update dependencies.
2171 (findvar.o): Update dependencies.
2172 (frame.o): Update dependencies.
2173 (std-regs.o): Update dependencies.
2174
9f476a01
CF
21752003-07-06 Christopher Faylor <cgf@redhat.com>
2176
2177 * win32-nat.c (solib_symbols_add): Use one variable for all section
2178 address stuff. Pass variable rather than address of variable to
2179 safe_symbol_file_add.
2180
a731b831
AS
21812003-07-06 Andreas Schwab <schwab@suse.de>
2182
2183 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2184
9f83329d
JB
21852003-07-04 Joel Brobecker <brobecker@gnat.com>
2186
2187 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2188
27e28cc5
KW
21892003-07-04 Kris Warkentin <kewarken@qnx.com>
2190
2191 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2192
21932003-07-04 Kris Warkentin <kewarken@qnx.com>
2194
2195 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2196 * config/i386/nto.mh: New file.
2197 * config/i386/nm-nto.h: New file.
2198 * configure.host: Add i[3456]86-*-nto*.
2199
100f2e98
JB
22002003-07-03 Joel Brobecker <brobecker@gnat.com>
2201
2202 * remote-vx.c (vx_add_symbols): Fix compilation error.
2203
e23457df
AC
22042003-07-03 Andrew Cagney <cagney@redhat.com>
2205
2206 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2207 * gdbarch.h, gdbarch.c: Re-generate.
2208 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2209 (legacy_register_name): Declare.
2210 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2211 (REGISTER_NAME): Define.
2212 * sparc-tdep.c (legacy_register_name): New function.
2213 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2214 (REGISTER_NAME): Define.
2215 (hppa64_register_name): Declare.
2216 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2217 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2218 (hppa64_register_name): New function.
2219 (hppa_register_name): New function.
2220 * arch-utils.c (legacy_register_name): Delete.
2221 * arch-utils.h (legacy_register_name): Delete.
2222
38caaeec
DJ
22232003-07-03 Daniel Jacobowitz <drow@mvista.com>
2224
2225 * cli/cli-interp.c (cli_interpreter_resume): Update the
2226 cli_uiout's stream to gdb_stdout.
2227
dadd712e
AC
22282003-07-03 Andrew Cagney <cagney@redhat.com>
2229
2230 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2231 predicate.
2232 * gdbarch.h, gdbarch.c: Re-generate.
2233 * regcache.c (init_regcache_descr): Use legacy code when either
2234 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2235
c7f1390e
DJ
22362003-07-02 Daniel Jacobowitz <drow@mvista.com>
2237
2238 * NEWS: Move "set logging" entry into GDB 6.0 section.
2239
4bc8c588
JB
22402003-07-02 Jim Blandy <jimb@redhat.com>
2241
a9dd42f1
JB
2242 * s390-tdep.c (struct frame_extra_info): new member:
2243 'stack_bought_valid'.
2244 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2245 initialize fextra_info->stack_bought.
2246 (s390_frameless_function_invocation): Don't trust the value of
2247 fextra_info_ptr->stack_bought unless
2248 fextra_info->stack_bought_valid is set.
2249
4bc8c588
JB
2250 New S390 prologue analyzer.
2251 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2252 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2253 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2254 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2255 compute_x_addr, s390_on_stack, s390_store,
2256 s390_get_signal_frame_info): New functions.
2257 (S390_NUM_SPILL_SLOTS): New macro.
2258 (s390_get_frame_info): Rewritten.
2259 (is_arg_reg): Deleted.
2260
2261 Break out the decoding of S/390 instructions into separate
2262 functions, to make it more legible, and easier to check
2263 against the spec.
2264 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2265 is_rx, is_rxe): New functions.
2266 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2267 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2268 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2269 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2270 enums for opcode values. (Is this an improvement?)
2271
fd13a04a
AC
22722003-07-02 Andrew Cagney <cagney@redhat.com>
2273
2274 * i386-tdep.c: Revert change committed as part of trad-frame code
2275 below.
2276
3f8091c1
DJ
22772003-07-02 Daniel Jacobowitz <drow@mvista.com>
2278
2279 * breakpoint.c (insert_catchpoint): Make static.
2280
8dd5115e
AS
22812003-07-02 Andreas Schwab <schwab@suse.de>
2282
2283 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2284 former ia64_push_arguments and ia64_push_return_address, and use
2285 regcache functions instead of read/write_register.
2286 (ia64_gdbarch_init): Set push_dummy_call instead of
2287 deprecated_push_arguments and deprecated_push_return_address.
2288
a2229c23
AJ
22892003-07-01 Andreas Jaeger <aj@suse.de>
2290
2291 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2292 before the call.
2293 Set %rax only to number of SSE registers used.
2294
3b3850e8
AC
22952003-07-01 Andrew Cagney <cagney@redhat.com>
2296
2297 * trad-frame.h: Update comments, a -1 .addr is reserved.
2298 (trad_frame_value_p, trad_frame_addr_p): Declare.
2299 (trad_frame_reg_p): Declare.
2300 (trad_frame_set_value): Rename trad_frame_register_value.
2301 (trad_frame_set_unknown): Declare.
2302 * trad-frame.c (trad_frame_realreg_p): New function.
2303 (trad_frame_addr_p, trad_frame_value_p): New function.
2304 (trad_frame_set_unknown): New function.
2305 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2306 (trad_frame_prev_register): Use trad_frame_realreg_p,
2307 trad_frame_addr_p and trad_frame_value_p.
2308 (trad_frame_set_value): Rename trad_frame_register_value.
2309 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2310 and trad_frame_set_value.
a2229c23 2311
4d819d0e
JB
23122003-06-30 Jim Blandy <jimb@redhat.com>
2313
2314 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2315 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2316 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2317 for 16 registers, and then 32 more bytes.
2318 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2319 New macros.
2320 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2321 Move up in the file, since it's now used by is_simple_arg.
2322 (is_simple_arg): Don't assume registers are four bytes long.
2323 Exclude all double arguments. Extended floats are not simple
2324 args.
2325 (is_power_of_two): New function.
2326 (pass_by_copy_ref): Call is_power_of_two, and check that the
2327 length fits in a register, rather than listing all the acceptable
2328 sizes. Extended floats are not passed by reference.
2329 (s390_push_arguments): Don't assume registers are four bytes long.
2330 Reserve an argument register to point to the buffer for structures
2331 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2332 S390_STACK_FRAME_OVERHEAD.
2333
1ad828f1
AS
23342003-06-30 Andreas Schwab <schwab@suse.de>
2335
2336 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2337 format error message.
2338
39b00981
JB
23392003-06-30 Joel Brobecker <brobecker@gnat.com>
2340
2341 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2342
b2a7f303
DC
23432003-06-30 David Carlton <carlton@kealia.com>
2344
2345 Band-aid for PR c++/1245.
2346 * Makefile.in (cp-support.o): Depend on complaints_h.
2347 * cp-support.c: Include complaints.h. Add declaration for
2348 find_last_component.
2349 (cp_find_first_component): Separate code into
2350 cp_find_first_component_aux.
2351 (cp_find_first_component_aux): Call demangled_name_complaint.
2352 (demangled_name_complaint): New.
2353
a257b5bb
AC
23542003-06-30 Andrew Cagney <cagney@redhat.com>
2355
2356 * remote.c (remote_write_bytes): Explicitly compute and then use
2357 the payload size. Update comments to reflect. Fixes problem of
2358 GDB not sending small packets as found by Fred Fish.
2359
0a2cfde4
AC
23602003-06-30 Andrew Cagney <cagney@redhat.com>
2361
2362 * remote.c (remote_async_wait): Fix -Wformat problem.
2363
3fcb8548
AC
23642003-06-29 Andrew Cagney <cagney@redhat.com>
2365
2366 * remote.c (remote_wait): Call error, and not warning, when the
2367 packet is corrupt.
2368 (remote_async_wait): Ditto.
2369
9f9970a3
DJ
23702003-06-29 Daniel Jacobowitz <drow@mvista.com>
2371
2372 * sparc-tdep.c (sparc_y_regnum): Make external again.
2373
83a8ccca
DJ
23742003-06-29 Daniel Jacobowitz <drow@mvista.com>
2375
2376 * cli/cli-logging.c (pop_output_files): Add void to function
2377 definition.
2378
d2cf594a
AC
23792003-06-29 Andrew Cagney <cagney@redhat.com>
2380
2381 * frame.c (frame_register_unwind): Use unsigned char when dumping
2382 the buffer contents.
2383
0fac0b41
DJ
23842003-06-28 Daniel Jacobowitz <drow@mvista.com>
2385
2386 * cli/cli-logging.c: New file.
2387 * cli-out.c (struct ui_out_data): Add original_stream.
2388 (cli_redirect): New function.
2389 (cli_ui_out_impl): Add cli_redirect.
2390 (cli_out_new): Initialize original_stream.
2391 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2392 (uo_redirect, ui_out_redirect): New.
2393 * ui-out.h (struct ui_out_impl): Add redirect member.
2394 (redirect_ftype): New.
2395 (ui_out_redirect): Add prototype.
2396 * Makefile.in: Add rules for cli-logging.c.
2397 * NEWS: Mention "set logging".
2398
88a07d7c
EZ
23992003-06-27 Elena Zannoni <ezannoni@redhat.com>
2400
2401 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2402
4eb58876
AC
24032003-06-27 Andrew Cagney <cagney@redhat.com>
2404
2405 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2406 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2407 * avr-tdep.c (avr_call_dummy_address): Delete function.
2408 (avr_gdbarch_init): Do not set call_dummy_address.
2409
1549f619
EZ
24102003-06-27 Elena Zannoni <ezannoni@redhat.com>
2411
2412 * symfile.c (syms_from_objfile): Move variables to inner block.
2413 Move the checks for the non-mainline case a bit earlier to avoid
2414 doing some useless computations.
2415
3cb3398d
EZ
24162003-06-27 Elena Zannoni <ezannoni@redhat.com>
2417
2418 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2419
3799ccc6
EZ
24202003-06-26 Elena Zannoni <ezannoni@redhat.com>
2421
2422 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2423 sections.
2424
ce1f6491
MC
24252003-06-26 Michael Chastain <mec@shout.net>
2426
2427 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2428 gdb/testsuite/gdb.c++/pr-1210.exp.
2429
d958dfd0
AC
24302003-06-26 Andrew Cagney <cagney@redhat.com>
2431
2432 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2433 altivec_expression.h and altivec_registers.h.
2434
d31431ed
AC
24352003-06-26 Andrew Cagney <cagney@redhat.com>
2436
2437 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2438 info->mach when MIPS16. Patch suggested by Fred Fish.
2439
714b1282
AC
24402003-06-26 Andrew Cagney <cagney@redhat.com>
2441
2442 * utils.c (internal_vproblem): Print the problem to a reason
2443 buffer and then pass to query. Make the msg variable more local.
2444
42efa47a
AC
24452003-06-26 Andrew Cagney <cagney@redhat.com>
2446
2447 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2448 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2449 * gdbarch.h, gdbarch.c: Re-generate.
2450 * frame-base.c (default_frame_args_address): Update. Use
2451 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2452 not available.
2453 (default_frame_locals_address): Ditto for
2454 DEPRECATED_FRAME_LOCALS_ADDRESS.
2455 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2456 (vax_frame_num_args): Update.
2457 (vax_gdbarch_init): Update.
2458 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2459 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2460 * mcore-tdep.c (mcore_gdbarch_init): Update.
2461 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2462 * ia64-tdep.c (ia64_gdbarch_init): Update.
2463 * symtab.h (address_class): Update comments.
2464 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2465 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2466 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2467 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2468 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2469 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2470 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2471 * alpha-mdebug-tdep.c: Update.
2472 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2473
8ffd9b1b
AJ
24742003-06-26 Andreas Jaeger <aj@suse.de>
2475
2476 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2477 of SSE registers so that varargs functions work. Rework handling
2478 of passing arguments on the stack.
2479 (x86_64_store_return_value): Return double and float values in SSE
2480 register.
2481
e8ac10a6
MC
24822003-06-24 Michael Chastain <mec@shout.net>
2483
2484 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2485 the "constructor breakpoints ignored" bug.
2486
986af8e6
DC
24872003-06-25 David Carlton <carlton@kealia.com>
2488
2489 * MAINTAINERS: Update e-mail address.
2490
d64558a5
JB
24912003-06-24 Jim Blandy <jimb@redhat.com>
2492
e538d2d7
JB
2493 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2494
02631ec0
JB
2495 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2496 function.
2497 (ppc_linux_init_abi): Register it as the
2498 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2499
e716d87a
JB
2500 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2501 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2502 method.
2503
d64558a5
JB
2504 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2505 (ppc64_standard_linkage_target): Use it.
2506
449a5da4
AC
25072003-06-23 Andrew Cagney <cagney@redhat.com>
2508
2509 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2510 for 0 "int0" and 4 "int32" sized registers.
2511 * gdbtypes.c (builtin_type_int0): Define.
2512 (build_gdbtypes): Initialize builtin_type_int0.
2513 * gdbtypes.h (builtin_type_int0): Declare.
2514
b2a02dda
SC
25152003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2516
2517 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2518 as characters are unsigned.
2519
fba3138e
DJ
25202003-06-22 Daniel Jacobowitz <drow@mvista.com>
2521
2522 PR gdb/1179
2523 * dwarfread.c (struct_type): Skip static fields without crashing.
2524
f6c8180b
AC
25252003-06-22 Andrew Cagney <cagney@redhat.com>
2526
2527 GDB 6.0 branch created.
f2c06f52
AC
2528 * README: Update.
2529 * PROBLEMS: Update. Empty.
2530 * NEWS: Update.
f6c8180b 2531
ae822768
DJ
25322003-06-22 Daniel Jacobowitz <drow@mvista.com>
2533
2534 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2535 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2536
261de166
AC
25372003-06-22 Andrew Cagney <cagney@redhat.com>
2538
2539 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2540 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2541 Velikov.
2542
30e94205
DJ
25432003-06-22 Daniel Jacobowitz <drow@mvista.com>
2544
2545 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2546 compilers.
2547
9e14d721
DJ
25482003-06-21 Daniel Jacobowitz <drow@mvista.com>
2549
2550 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2551 argument of val_print.
2552 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2553 to the address argument of baseclass_offset or target_read_memory.
2554 Do add it to the argument of cp_print_value_fields.
2555
a4b8ebc8
AC
25562003-06-21 Andrew Cagney <cagney@redhat.com>
2557
2558 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2559 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2560 instead of 0..NUM_REGS.
2561 (mips_register_reggroup_p): New function.
2562 (mips_pseudo_register_write): New function.
2563 (mips_pseudo_register_read): New function.
2564 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2565 based on the register's type.
2566 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2567 cooked.
2568 (mips_get_saved_register): Simplify. Assert that REGNO is a
2569 pseudo / cooked.
2570 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2571 (mips_register_type): Replace mips_register_virtual_type. Map
2572 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2573 when available.
2574 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2575 that the register is cooked / virtual.
2576 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2577 Only get the extra info when needed.
2578 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2579 (mips32_heuristic_proc_desc): Fetch the cooked register.
2580 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2581 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2582 (mips_print_register): Use gdbarch_register_type, instead of
2583 REGISTER_VIRTUAL_TYPE.
2584 (print_gp_register_row): Use gdbarch_register_type, instead of
2585 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2586 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2587 Print the pseudo / cooked registers.
2588 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2589 Print the pseudo / cooked registers.
2590 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2591 REG_NUM is pseudo / cooked.
2592 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2593 (mips_n32n64_xfer_return_value): Ditto.
2594 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2595 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2596 (mips_register_sim_regno): New function.
2597 (mips_gdbarch_init): Set deprecated_register_byte,
2598 register_group_p, pseudo_register_write, pseudo_register_read,
2599 register_sim_regno, and num_pseudo_regs. Set register_type,
2600 instead of register_virtual_type.
2601 * Makefile.in (mips-tdep.o): Update dependencies.
2602 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2603 REGISTER_VIRTUAL_TYPE.
2604 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2605 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2606 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2607 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2608 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2609
325ed089
DJ
26102003-06-21 Daniel Jacobowitz <drow@mvista.com>
2611
2612 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2613 * cli/cli-cmds.c: Include "gdb_vfork.h".
2614 (shell_escape): Use vfork.
2615
f0e7d0e8
AC
26162003-06-21 Andrew Cagney <cagney@redhat.com>
2617
c57bb9fa
AC
2618 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2619 32 bit floating-point register saves.
2620
6e51443a
AC
2621 * frame.h (deprecated_unwind_get_saved_register): Delete.
2622 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2623 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2624 and deprecated_get_next_frame_hack instead of
2625 deprecated_unwind_get_saved_register.
2626
ed183c7c
AC
2627 * mips-tdep.c (mips_dump_tdep): Do not print
2628 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2629
f0e7d0e8
AC
2630 * frame.c (get_frame_register): New function.
2631 (frame_unwind_register_signed): New function.
2632 (get_frame_register_signed): New function.
2633 (frame_unwind_register_unsigned): New function.
2634 (get_frame_register_unsigned): New function.
2635 * frame.h: Add comments on naming schema.
2636 (get_frame_register, frame_unwind_register_signed): Declare.
2637 (get_frame_register_signed, get_frame_register_signed): Declare.
2638 (frame_unwind_register_unsigned): Declare.
2639 (get_frame_register_unsigned): Declare.
2640
2224d941
TR
26412003-06-20 Theodore A. Roth <troth@openavr.org>
2642
2643 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2644
8619218d
TR
26452003-06-20 Theodore A. Roth <troth@openavr.org>
2646
2647 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2648 (avr_read_sp): Ditto.
2649
0b1b50c0
DJ
26502003-06-20 Daniel Jacobowitz <drow@mvista.com>
2651
2652 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2653 * config/arm/nm-linux.h: Likewise.
2654 * config/arm/tm-linux.h: Likewise.
2655 * config/ia64/nm-linux.h: Likewise.
2656 * config/ia64/tm-ia64.h: Likewise.
2657 * config/s390/tm-linux.h: Likewise.
2658 * config/s390/tm-s390.h: Likewise.
2659 * s390-nat.c: Likewise.
2660 * s390-tdep.c: Likewise.
2661
2662 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2663 * config/ia64/linux.mt: Likewise.
2664 * config/m68k/linux.mh: Likewise.
2665 * config/mips/linux.mt: Likewise.
2666 * config/powerpc/linux.mh: Likewise.
2667 * config/sh/linux.mt: Likewise.
2668
c8c18e65
KW
26692003-06-19 Kris Warkentin <kewarken@qnx.com>
2670
2671 * solib.c (solib_open): Change tests for whether to search
2672 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2673 comments.
2674
dcccef2e
TR
26752003-06-19 Theodore A. Roth <troth@openavr.org>
2676
2677 * avr-tdep.c (avr_frame_address): Delete function.
2678 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2679 set_gdbarch_frame_args_address.
2680
5861a190
AC
26812003-06-19 Andrew Cagney <cagney@redhat.com>
2682
2683 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2684 (REGISTER_CONVERT_FROM_TYPE): Delete.
2685 (mips_register_convert_to_type): Delete declaration.
2686 (mips_register_convert_from_type): Delete declaration.
2687 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2688 kernel/.
2689
0274a8ce
MS
26902003-06-19 Michael Snyder <msnyder@redhat.com>
2691
2692 * linux-nat.h: New file.
2693 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 2694 * lin-lwp.c: Include linux-nat.h.
0274a8ce 2695 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 2696 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
2697 (linux_make_note_section): Iterate over lwps instead of threads.
2698 (linux_do_thread_registers): Use lwp instead of merged pid.
2699 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 2700 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
2701 Add dependency on linux_nat_h.
2702
adf5f719
TR
27032003-06-19 Theodore A. Roth <troth@openavr.org>
2704
2705 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2706
6766a268
DJ
27072003-06-19 Daniel Jacobowitz <drow@mvista.com>
2708
2709 * varobj.c (get_type, get_target_type): Use check_typedef.
2710
1171114a
DJ
27112003-06-19 Daniel Jacobowitz <drow@mvista.com>
2712
2713 * breakpoint.c (insert_catchpoint): Call internal_error.
2714
adcf68a2
TR
27152003-06-19 Theodore A. Roth <troth@openavr.org>
2716
2717 * avr-tdep.c (avr_push_dummy_code): Delete function.
2718 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2719
ea67f13b
DJ
27202003-06-19 Daniel Jacobowitz <drow@mvista.com>
2721
2722 * arch-utils.c (default_prepare_to_proceed): Remove.
2723 (generic_prepare_to_proceed): Remove.
2724 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2725 (generic_prepare_to_proceed): Remove prototype.
2726 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2727 * gdbarch.c: Regenerate.
2728 * gdbarch.h: Regenerate.
2729 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2730 * hppah-nat.c (hppa_switched_threads): Remove.
2731 * infrun.c (prepare_to_proceed): New static function, copied from
2732 generic_prepare_to_proceed. Remove select_it argument.
2733 (proceed): Call prepare_to_proceed.
2734 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2735 variables.
2736 (ptrace_wait): Don't set the removed variables.
2737 (hppa_switched_threads): Remove.
2738 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2739 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2740 (lin_lwp_prepare_to_proceed): Remove prototype.
2741 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2742 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2743
4add8633
TR
27442003-06-18 Theodore A. Roth <troth@openavr.org>
2745
2746 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2747 trad-frame.h.
2748 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2749 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2750 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2751 (AVR_PROLOGUE_*): Enumerate prologue types.
2752 (struct frame_extra_info): Remove.
2753 (struct avr_unwind_cache): Define.
2754 (avr_write_sp): Delete function.
2755 (avr_read_fp): Ditto.
2756 (avr_init_extra_frame_info): Ditto.
2757 (avr_pop_frame): Ditto.
2758 (avr_frame_saved_pc): Ditto.
2759 (avr_saved_pc_after_call): Ditto.
2760 (avr_push_return_address): Ditto.
2761 (avr_frame_chain): Ditto.
2762 (avr_store_struct_return): Ditto.
2763 (avr_push_arguments): Ditto.
2764 (avr_scan_prologue): Update comments. Changed to set up the info for
2765 cache unwinding. Now returns end of prologue PC.
2766 (avr_skip_prologue): Better handling of functions lacking a prologue
2767 by using avr_scan_prologue.
2768 (avr_scan_arg_moves): New function.
2769 (avr_saved_regs_unwinder): Ditto.
2770 (avr_frame_unwind_cache): Ditto.
2771 (avr_unwind_pc): Ditto.
2772 (avr_frame_this_id): Ditto.
2773 (avr_frame_prev_register): Ditto.
2774 (avr_frame_p): Ditto.
2775 (avr_frame_base_address ): Ditto.
2776 (avr_unwind_dummy_id): Ditto.
2777 (avr_push_dummy_code): Ditto.
2778 (push_stack_item): Ditto.
2779 (pop_stack_item): Ditto.
2780 (avr_push_dummy_call): Ditto.
2781 (struct stack_item): Define.
2782 (avr_frame_unwind): Declare structure.
2783 (avr_frame_base): Ditto.
2784 (avr_gdbarch_init): Remove calls to
2785 set_gdbarch_deprecated_init_frame_pc,
2786 set_gdbarch_deprecated_target_read_fp,
2787 set_gdbarch_deprecated_dummy_write_sp,
2788 set_gdbarch_deprecated_fp_regnum,
2789 set_gdbarch_deprecated_push_arguments,
2790 set_gdbarch_deprecated_push_return_address,
2791 set_gdbarch_deprecated_pop_frame,
2792 set_gdbarch_deprecated_store_struct_return,
2793 set_gdbarch_deprecated_frame_init_saved_regs,
2794 set_gdbarch_deprecated_init_extra_frame_info,
2795 set_gdbarch_deprecated_frame_chain,
2796 set_gdbarch_deprecated_frame_saved_pc,
2797 set_gdbarch_deprecated_saved_pc_after_call.
2798 Add calls to set_gdbarch_push_dummy_call,
2799 set_gdbarch_push_dummy_code,
2800 frame_unwind_append_predicate,
2801 frame_base_set_default,
2802 set_gdbarch_unwind_dummy_id,
2803 set_gdbarch_unwind_pc.
2804 Wrap a long line.
2805
7be04a68
MS
28062003-06-18 Corinna Vinschen <vinschen@redhat.com>
2807
2808 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2809 registers for H8/300S.
2810 (h8300_print_registers_info): Ditto.
8ffd9b1b 2811 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 2812
ae087d01
DJ
28132003-06-18 Daniel Jacobowitz <drow@mvista.com>
2814
2815 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2816 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2817 (lin_lwp_wait): Likewise. Update comments.
2818 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2819 (pull_pid_from_list, linux_record_stopped_pid): New.
2820
07d8f827
SC
28212003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2822
2823 * ada-lang.c (scan_discrim_bound): Name first argument.
2824 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2825 declared by ALL_BLOCK_SYMBOLS.
2826
7cb47b14
SC
28272003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2828
2829 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2830 ("regcache.h"): Include it.
2831 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2832
6ad8ae5c
DJ
28332003-06-17 Daniel Jacobowitz <drow@mvista.com>
2834
2835 * NEWS: Mention gdbserver detach change and "disconnect" command.
2836 * infcmd.c (disconnect_command): New function.
2837 (_initialize_infcmd): Add ``disconnect'' command.
2838 * remote.c (remote_async_detach): Delete.
2839 (remote_detach): Merge remote_async_detach.
2840 (remote_disconnect): New.
2841 (init_remote_ops): Set to_disconnect.
2842 (init_remote_cisco_ops): Likewise.
2843 (init_remote_async_ops): Likewise. Use remote_detach.
2844 * target.c (cleanup_target): Default to_disconnect.
2845 (update_current_target): Inherit to_disconnect.
2846 (target_disconnect, debug_to_disconnect): New functions.
2847 (setup_target_debug): Set to_disconnect.
2848 * target.h (struct target_ops): Add to_disconnect.
2849 (target_disconnect): Add prototype.
2850
687595f9
DJ
28512003-06-17 Daniel Jacobowitz <drow@mvista.com>
2852
2853 * breakpoint.c (insert_catchpoint): New function.
2854 (insert_breakpoints): Use catch_exceptions to call
2855 insert_catchpoint. Disable catchpoints if they fail to insert.
2856
29239a8f
DJ
28572003-06-17 Daniel Jacobowitz <drow@mvista.com>
2858
2859 * symfile.c (reread_symbols): Clear sym_private.
2860
2cdf3c63
AC
28612003-06-17 Andrew Cagney <cagney@redhat.com>
2862
2863 * trad-frame.h (struct frame_info): Add opaque declaration.
2864 * remote-fileio.h (struct cmd_list_element): Add opaque
2865 declaration.
2866 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2867 comments.
2868
cf0e1e0d
DJ
28692003-06-17 Daniel Jacobowitz <drow@mvista.com>
2870
2871 * remote.c (remote_prepare_to_store): Replace call to
2872 deprecated_read_register_bytes with multiple regcache_raw_read
2873 calls.
2874
192cdb19
KW
28752003-06-17 Kris Warkentin <kewarken@qnx.com>
2876
2877 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2878 (nto_find_and_open_solib): Likewise.
2879 (nto_init_solib_absolute_prefix): Likewise.
2880 (_initialize_nto_tdep): Fix indentation.
2881
89929b45
KW
28822003-06-17 Kris Warkentin <kewarken@qnx.com>
2883
2884 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2885
46019f27
KW
28862003-06-17 Kris Warkentin <kewarken@qnx.com>
2887
2888 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2889
1a38736e
JB
28902003-06-17 Jim Blandy <jimb@redhat.com>
2891
2892 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2893
3605c34a
TR
28942003-06-16 Theodore A. Roth <troth@openavr.org>
2895
2896 * avr-tdep.c (avr_extract_return_value): New function.
2897 (avr_gdbarch_init): Set extract_return_value method.
2898
870b3035
AC
28992003-06-16 Andrew Cagney <cagney@redhat.com>
2900
2901 * frame.h (deprecated_get_next_frame_hack): Declare.
2902 * frame.c (legacy_saved_regs_prev_register): Only require
2903 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2904 there are always saved regs.
2905 (deprecated_generic_get_saved_register): Do not require
2906 DEPRECATED_FRAME_INIT_SAVED_REGS.
2907 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2908 use frame ID unwind instead.
2909 (deprecated_get_next_frame_hack): New function.
2910
63d47a7d
CV
29112003-06-16 Corinna Vinschen <vinschen@redhat.com>
2912
2913 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2914 (h8300_push_dummy_call): ...this function. Some minor optimization.
2915 (h8300_push_return_address): Remove.
2916 (h8300_gdbarch_init): Remove calls to
2917 set_gdbarch_deprecated_dummy_write_sp,
2918 set_gdbarch_deprecated_push_arguments and
2919 set_gdbarch_deprecated_push_return_address.
2920 Add call to set_gdbarch_push_dummy_call.
2921
4bb1dc5e
CV
29222003-06-16 Corinna Vinschen <vinschen@redhat.com>
2923
2924 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2925 (E_PSEUDO_EXR_REGNUM): Ditto.
2926 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 2927 registers into safe registers.
4bb1dc5e
CV
2928 (h8300_skip_prologue): Check for stm instruction to push registers
2929 used for register variables onto stack.
2930 (gdb_print_insn_h8300): Remove.
2931 (h8300_examine_prologue): Add a comment.
2932 (h8300_register_name): Take pseudo registers into account.
2933 (h8300s_register_name): Ditto.
2934 (h8300sx_register_name): Ditto.
2935 (h8300_print_register): Ditto.
2936 (h8300_print_registers_info): Define "nice" printing order.
2937 (h8300_saved_pc_after_call): Take pseudo registers into account.
2938 (h8300_register_type): Ditto. Return type used for remote connection
2939 when requesting real CCR or EXR register, return actual type when
2940 requesting pseudo CCR or EXR.
2941 (h8300_pseudo_register_read): New function.
2942 (h8300_pseudo_register_write): Ditto.
2943 (h8300_dbg_reg_to_regnum): Ditto.
2944 (h8300s_dbg_reg_to_regnum): Ditto.
2945 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2946 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2947 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2948 set_gdbarch_print_insn architecture dependent.
2949 Call set_gdbarch_pseudo_register_read and
2950 set_gdbarch_pseudo_register_write.
2951 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2952
a59fe496
AC
29532003-06-16 Andrew Cagney <cagney@redhat.com>
2954
2955 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2956 * gdbarch.h, gdbarch.c: Re-generate.
2957 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2958 * s390-tdep.c (s390_gdbarch_init): Update.
2959 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2960 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2961 * mips-tdep.c (mips_gdbarch_init): Update.
2962 * mcore-tdep.c (mcore_gdbarch_init): Update.
2963 * cris-tdep.c (cris_gdbarch_init): Update.
2964 * infcall.c (call_function_by_hand): Update.
2965 * ia64-tdep.c (ia64_push_arguments): Update comment.
2966 * frame.c (legacy_get_prev_frame): Do not assume
2967 SAVE_DUMMY_FRAME_TOS_P.
2968 * dummy-frame.c (find_dummy_frame): Update comment.
2969
6f4e5a41
AC
29702003-06-16 Andrew Cagney <cagney@redhat.com>
2971
2972 * regcache.c (do_cooked_read): Do not use register_valid_p.
2973
72fab697
TR
29742003-06-15 Theodore A. Roth <troth@openavr.org>
2975
2976 * avr-tdep.c (avr_register_type): Remove a blank line.
2977 (avr_scan_prologue): Correct some comments.
2978
e3d8b004
TR
29792003-06-15 Theodore A. Roth <troth@openavr.org>
2980
2981 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2982 prologue types.
8ffd9b1b 2983 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
2984 option.
2985 Add code to scan -mcall-prologues for mega devices.
2986
866b76ea
TR
29872003-06-15 Theodore A. Roth <troth@openavr.org>
2988
2989 * avr-tdep.c (avr_register_byte): Delete function.
2990 (avr_register_raw_size): Delete function.
2991 (avr_register_virtual_size): Delete function.
2992 (avr_register_virtual_type): Delete function.
2993 (avr_register_type): New function.
2994 (avr_address_to_pointer): Remove unused code.
2995 (avr_read_fp): Need to read FP as two separate bytes due to change to
2996 avr_register_type() usage.
2997 (avr_gdbarch_init): Don't set deprecated_register_size.
2998 Don't set deprecated_register_bytes.
2999 Don't set deprecated_register_byte.
3000 Don't set deprecated_register_raw_size.
3001 Don't set deprecated_max_register_raw_size.
3002 Don't set deprecated_register_virtual_size.
3003 Don't set deprecated_max_register_virtual_size.
3004 Don't set deprecated_register_virtual_type.
3005 Set register_type method.
3006
3993f6b1
DJ
30072003-06-15 Daniel Jacobowitz <drow@mvista.com>
3008
3009 * Makefile.in (linux-nat.o): Add rule.
3010 * linux-nat.c: New file.
3011 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3012 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3013 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3014 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3015 * config/arm/linux.mh (NATDEPFILES): Likewise.
3016 * config/i386/linux.mh (NATDEPFILES): Likewise.
3017 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3018 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3019 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3020 * config/mips/linux.mh (NATDEPFILES): Likewise.
3021 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3022 * config/s390/s390.mh (NATDEPFILES): Likewise.
3023 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3024
786a90bb
MK
30252003-06-15 Mark Kettenis <kettenis@gnu.org>
3026
3027 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3028 replace out-of-date comment.
3029
3bd3f01e
AC
30302003-06-15 Andrew Cagney <cagney@redhat.com>
3031
3032 * rdi-share/host.h (Fail): Change to a varargs function.
3033 * remote-rdi.c (Fail): Update.
8ffd9b1b 3034
de5b9bb9
MK
30352003-06-15 Mark Kettenis <kettenis@gnu.org>
3036
3037 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3038 (i386_convert_register_p, i386_register_to_value,
3039 i386_register_from_value): Handle types longer than 8 bytes.
3040
d532c08f
MK
30412003-06-15 Mark Kettenis <kettenis@gnu.org>
3042
3043 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3044 Move floating-point code to new function in i387-tdep.c.
3045 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3046 New functions containing code moved here from i386-tdep.c.
3047 * i387-tdep.h: Add opaque declaration for `struct type'.
3048 (i387_register_to_value, i387_value_to_register): New prototypes.
3049 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3050 (x86_64_init_abi): Set convert_register_p, register_to_value and
3051 value_to_register here.
8ffd9b1b 3052
42c466d7
AC
30532003-06-14 Andrew Cagney <cagney@redhat.com>
3054
3055 * mips-tdep.c (mips_register_to_value): Make static.
3056 (mips_value_to_register): Make static.
3057 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3058 * ia64-tdep.c (ia64_register_raw_size): Make static.
3059 (ia64_register_virtual_size): Make static.
3060 (ia64_register_byte): Make static.
3061 * i387-tdep.c: Include "i387-tdep.h".
3062 (print_387_control_word): Delete function.
3063 (print_387_status_word): Delete function.
3064 (print_387_status_bits): Delete function.
3065 (print_387_control_bits): Delete function.
3066 * Makefile.in (i387-tdep.o): Update dependencies.
3067 * rdi-share/host.h (Fail): Declare.
3068 * remote-rdi.c (Fail): Update to match declaration.
3069
2a9cda49
AC
30702003-06-14 Andrew Cagney <cagney@redhat.com>
3071
3072 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3073 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3074 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3075 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3076 * README: Delete reference to remote-array.
3077 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3078 (remote-array.o): Delete target.
3079 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3080 * remote-array.c: Delete file.
3081
ff2e87ac
AC
30822003-06-14 Andrew Cagney <cagney@redhat.com>
3083 Mark Kettenis <kettenis@gnu.org>
3084
3085 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3086 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3087 parameter with "frame".
3088 * gdbarch.h, gdbarch.c: Re-generate.
3089 * frame.h (put_frame_register): Declare.
3090 * frame.c (put_frame_register): New function.
3091 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3092 (legacy_register_to_value): Rewrite, use "frame" to get the
3093 register value.
3094 (legacy_value_to_register): Rewrite, use "frame" to find the
3095 register's location before storing.
3096 * arch-utils.h (legacy_convert_register_p): Update.
3097 (legacy_register_to_value, legacy_value_to_register): Update.
3098 * findvar.c (value_from_register): Rewrite, eliminate use of
3099 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3100 "frame" to REGISTER_TO_VALUE.
3101 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3102 lval_reg_frame_relative + lval_register branch of the switch. Do
3103 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3104 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3105 I386_EDI_REGNUM): New defines.
3106 (i386_next_regnum, i386_convert_register_p,
3107 i386_register_to_value, i386_value_to_register): New functions.
3108 (i386_register_convertible, i386_register_convert_to_virtual,
3109 i386_convert_to_raw): Remove functions.
3110 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3111 value_to_register instead of register_convertible,
3112 register_convert_to_virtual and register_convert_to_raw.
3113 * mips-tdep.c (mips_convert_register_p): New function.
3114 (mips_value_to_register): Replace mips_register_convert_from_type.
3115 (mips_register_to_value): Replace mips_register_convert_to_type.
3116 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3117 register_to_value.
3118 * alpha-tdep.c (alpha_convert_register_p): Update.
3119 (alpha_value_to_register): Update, store the register.
3120 (alpha_register_to_value): Update, fetch the register.
3121
98be1e77
TR
31222003-06-14 Theodore A. Roth <troth@openavr.org>
3123
3124 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3125 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3126 Don't set deprecated_call_dummy_words.
3127 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3128 Don't set remote_translate_xfer_address.
3129 (avr_io_reg_read_command): Remove commented out debug printf.
3130 Wrap a long line.
3131
57bc6122
TR
31322003-06-14 Theodore A. Roth <troth@openavr.org>
3133
3134 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3135 causes gdb to seg fault.
3136
eb01fc62
DJ
31372003-06-14 Daniel Jacobowitz <drow@mvista.com>
3138
3139 * sparc-nat.c (fetch_inferior_registers): Correct
3140 a reference to "registers".
3141
3b3e6bee
DJ
31422003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3143
3144 * Makefile.in (exc_request_U_h): Define
3145 (exc_request_S_h): Likewise.
3146 (msg_reply_S_h): Likewise.
3147 (msg_U_h): Likewise.
3148 (notify_S_h): Likewise.
3149 (process_reply_S_h): Likewise.
3150 (gnu-nat.o): Depend on gdb_obstack_h
3151 * gnu-nat.c: Include "gdb_obstack.h".
3152
b8de8283
AC
31532003-06-13 Andrew Cagney <cagney@redhat.com>
3154
3155 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3156 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 3157
f3be58bc
AC
31582003-06-13 Andrew Cagney <cagney@redhat.com>
3159
3160 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3161 when deprecated REGISTER macros can be deleted.
3162 * gdbarch.h, gdbarch.c: Re-generate.
3163
4c0122c8
JB
31642003-06-13 Jim Blandy <jimb@redhat.com>
3165
3166 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3167 Linux entry point symbols for _dl_debug_state, too.
3168
3e210248
AC
31692003-06-13 Andrew Cagney <cagney@redhat.com>
3170
3171 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3172 available, do not use the FP register, and always save the TOS.
3173 * dummy-frame.c (dummy_frame_this_id): Do not assert
3174 SAVE_DUMMY_FRAME_TOS.
3175 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3176 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3177 (i386_push_dummy_call): Add 8 to the returned SP.
3178 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3179 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3180 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3181 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3182 (x86_64_push_dummy_call): Return "sp + 16".
3183 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3184 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3185 save_dummy_frame_tos.
3186
0b65af49
JB
31872003-06-13 Jim Blandy <jimb@redhat.com>
3188
3189 * frv-tdep.c (frv_use_struct_convention): Delete static
3190 declaration for function deleted in my change of 2003-06-12.
3191
4ea2465e
TR
31922003-06-13 Theodore A. Roth <troth@openavr.org>
3193
3194 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3195 (avr_pointer_to_address): Shift code addrs left 1 bit.
3196 (avr_convert_from_func_ptr_addr): Delete function since operation is
3197 better handled by avr_address_to_pointer and avr_pointer_to_address.
3198 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3199
1581182a
MK
32002003-06-13 Mark Kettenis <kettenis@gnu.org>
3201
3202 From Kelley Cook <kelleycook@wideopenwest.com>:
3203 * configure.host: Accept i[34567]86 variants.
3204 * configure.tgt: Likewise.
3205 * nlm/configure.in: Likewise.
3206 * nlm/configure: Regenerated.
3207
7aa1783e
RE
32082003-06-13 Richard Earnshaw <rearnsha@arm.com>
3209
3210 * arm-tdep.c (solib-svr4.h): Dont' include it.
3211 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3212 * arm-linux-tdep.c: ... here. Make static.
3213 (arm_linux_init_abi): Register it.
3214 (solib-svr4.h): Include it.
3215 * Makefile.in: Update dependencies.
3216 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3217 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3218
0261a0d0
CV
32192003-06-13 Corinna Vinschen <vinschen@redhat.com>
3220
3221 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3222 indicate registers used for return values.
3223 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3224 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3225 members.
3226 (h8300_init_extra_frame_info): Ditto.
3227 (h8300_frame_locals_address): Removed.
3228 (h8300_frame_args_address): Removed.
3229 (h8300_extract_return_value): Use new regcache structure. Only care
3230 for 16 bit CPUs.
3231 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3232 (h8300_store_return_value): Use new regcache structure. Only care
3233 for 16 bit CPUs.
3234 (h8300h_store_return_value): Same function for 32 bit CPUs.
3235 (h8300_store_struct_return): Removed.
3236 (h8300_extract_struct_value_address): Use new regcache structure.
3237 (h8300h_extract_struct_value_address): Removed.
3238 (h8300_push_dummy_code): New function.
3239 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3240 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3241 set_gdbarch_store_return_value architecture dependent.
3242 Call set_gdbarch_push_dummy_code and
3243 set_gdbarch_extract_struct_value_address.
3244 Remove calls to set_gdbarch_frame_args_address,
3245 set_gdbarch_frame_locals_address,
3246 set_gdbarch_deprecated_store_struct_return,
3247 set_gdbarch_deprecated_extract_return_value,
3248 set_gdbarch_deprecated_extract_struct_value_address,
3249 set_gdbarch_deprecated_call_dummy_words and
3250 set_gdbarch_deprecated_sizeof_call_dummy_words.
3251
055c394a
CV
32522003-06-13 Corinna Vinschen <vinschen@redhat.com>
3253
3254 * h8300-tdep.c (h8300_register_byte): Remove.
3255 (h8300h_register_byte): Remove.
3256 (h8300_register_virtual_type): Remove. Substitute by...
3257 (h8300_register_type): New function.
3258 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3259 (h8300h_extract_struct_value_address): Ditto.
3260 (h8300_gdbarch_init): Drop calls to
3261 set_gdbarch_deprecated_register_byte and
3262 set_gdbarch_deprecated_register_virtual_type.
3263 Add call to set_gdbarch_register_type.
3264
9c04cab7
AC
32652003-06-13 Andrew Cagney <cagney@redhat.com>
3266
3267 * gdbarch.sh: Update comments on registers.
3268 (deprecated_register_byte): Rename register_byte.
3269 (deprecated_register_raw_size): Rename register_raw_size.
3270 (deprecated_register_virtual_size): Rename register_virtual_size.
3271 (deprecated_register_virtual_type): Rename register_virtual_type.
3272 * gdbarch.h, gdbarch.c: Re-generate.
3273 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3274 * vax-tdep.c (vax_gdbarch_init): Update.
3275 * v850-tdep.c (v850_gdbarch_init): Update.
3276 * sparc-tdep.c (sparc_gdbarch_init): Update.
3277 * sh-tdep.c (sh_gdbarch_init): Update.
3278 * s390-tdep.c (s390_gdbarch_init): Update.
3279 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3280 * ns32k-tdep.c: Update.
3281 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3282 * mips-tdep.c (mips_gdbarch_init): Update.
3283 * mcore-tdep.c (mcore_gdbarch_init): Update.
3284 * m68k-tdep.c (m68k_gdbarch_init): Update.
3285 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3286 * ia64-tdep.c (ia64_gdbarch_init): Update.
3287 * hppa-tdep.c (hppa_gdbarch_init): Update.
3288 * h8300-tdep.c (h8300_gdbarch_init): Update.
3289 * frv-tdep.c (frv_gdbarch_init): Update.
3290 * cris-tdep.c (cris_gdbarch_init): Update.
3291 * avr-tdep.c (avr_gdbarch_init): Update.
3292 * alpha-tdep.c (alpha_gdbarch_init): Update.
3293 * arm-tdep.c (arm_gdbarch_init): Update.
3294
b060cbea
AC
32952003-06-13 Andrew Cagney <cagney@redhat.com>
3296
3297 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3298 mips_o32_use_struct_convention with always_use_struct_convention.
3299
0fc9922a
DC
33002003-06-12 David Carlton <carlton@kealia.com>
3301
3302 * cp-namespace.c (cp_set_block_scope): Comment out
3303 processing_has_namespace_info branch.
3304
1fd35568
JB
33052003-06-12 Jim Blandy <jimb@redhat.com>
3306
f470a70a
JB
3307 Recognize and skip 64-bit PowerPC Linux linkage functions.
3308 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3309 insn_pattern, insns_match_pattern, d_field, ds_field): New
3310 functions, macros, and types for working with PPC instructions.
3311 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3312 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3313 ppc64_skip_trampoline_code): New functions, variables, and macros
3314 for recognizing and skipping linkage functions.
3315 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3316 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3317
49ff75ad
JB
3318 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3319 register offsets for both the 32- and 64-bit interfaces.
3320
bd918c83
JB
3321 Actually finish the job started by my change of 2003-05-29.
3322 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3323 other #definition of this.
3324 (ppc_linux_skip_trampoline_code): Remove declaration.
3325 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3326 static.
3327 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3328 method for GDBARCH.
3329
3330 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3331 'long' on ppc64-*-linux*.
3332
f8c59253
JB
3333 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3334 isn't #defined, assume the register doesn't exist: act as if
3335 tdep->ppc_mq_regnum were -1.
3336
8fbb30b1
JB
3337 * configure.host, configure.tgt: Add entries for
3338 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3339 powerpc/linux.mt.
3340 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3341 New files.
3342
1fd35568
JB
3343 * arch-utils.c (always_use_struct_convention): New function.
3344 * arch-utils.h (always_use_struct_convention): New prototype.
3345 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3346 (alpha_gdbarch_init): Register always_use_struct_convention,
3347 instead of alpha_use_struct_convention.
3348 * cris-tdep.c (cris_use_struct_convention): Delete.
3349 (cris_gdbarch_init): Register always_use_struct_convention,
3350 instead of cris_use_struct_convention.
3351 * frv-tdep.c (frv_use_struct_convention): Delete.
3352 (frv_gdbarch_init): Register always_use_struct_convention,
3353 instead of frv_use_struct_convention.
3354 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3355 (h8300_gdbarch_init): Register always_use_struct_convention,
3356 instead of h8300_use_struct_convention.
e3305dd9 3357 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
3358 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3359 instead of mips_o32_use_struct_convention.
3360
e14e6e9c
AC
33612003-06-12 Andrew Cagney <cagney@redhat.com>
3362
3363 * wince.c: Include "mips-tdep.h".
3364 * mips-tdep.h (mips_next_pc): Declare.
3365 * mcore-tdep.c: Make more local functions static.
3366 * Makefile.in (wince.o): Update dependencies.
3367
2335f48e
DC
33682003-06-12 David Carlton <carlton@kealia.com>
3369
3370 * symtab.c (lookup_symbol_aux_minsyms): Replace
3371 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3372 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3373 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3374 SYMBOL_NATURAL_NAME.
3375
f70a7d61
AS
33762003-06-12 Andreas Schwab <schwab@suse.de>
3377
3378 * Makefile.in (tuiDisassem.o): Update dependencies.
3379
b6429628
DC
33802003-06-12 David Carlton <carlton@bactrian.org>
3381
3382 * symtab.h: Delete declaration of make_symbol_overload_list.
3383 Add declaration of lookup_partial_symbol.
3384 * symtab.c (remove_params): Move to cp-support.c.
3385 (overload_list_add_symbol, make_symbol_overload_list)
3386 (sym_return_val_size, sym_return_val_index): Ditto.
3387 (lookup_partial_symbol): Make extern.
3388 * cp-support.h: Add declaration of make_symbol_overload_list.
3389 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3390 symtab.h, and block.h.
3391 (remove_params): Move here from symtab.c.
3392 (overload_list_add_symbol, make_symbol_overload_list)
3393 (sym_return_val_size, sym_return_val_index): Ditto.
3394 * valops.c: Include cp-support.h.
3395 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3396 frame_h, and block_h.
3397 (valops.o): Depend on cp_support_h.
3398
084edea5
CV
33992003-06-12 Corinna Vinschen <vinschen@redhat.com>
3400
3401 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3402 substitute by NUM_REGS throughout.
3403 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3404 (h8300s_register_name): New function for H8S registers.
3405 (h8300sx_register_name): Ditto for H8SX registers.
3406 (h8300_print_register): Revise register printing, avoid depending
3407 on 32 bit long.
0261a0d0 3408 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
3409 (h8300h_register_byte): New function for any other architecture.
3410 (h8300_register_raw_size): Remove.
3411 (h8300_register_virtual_type): Revise to return actually useful
3412 type.
3413 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3414 (h8300h_extract_struct_value_address): New function for any other
3415 architecture.
3416 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3417 set_gdbarch_register_name, set_gdbarch_register_byte,
3418 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3419 Remove calls to set_gdbarch_deprecated_register_size,
3420 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3421 set_gdbarch_deprecated_max_register_raw_size,
3422 set_gdbarch_register_virtual_size and
3423 set_gdbarch_deprecated_max_register_virtual_size entirely.
3424 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3425 set_gdbarch_long_double_bit.
3426
06194148
JJ
34272003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3428
8ffd9b1b
AJ
3429 * doublest.c (convert_doublest_to_floatformat): When dealing
3430 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
3431 processing a full 32 bits of mantissa.
3432
de4f826b
DC
34332003-06-11 David Carlton <carlton@bactrian.org>
3434
3435 * dictionary.h: New.
3436 * dictionary.c: New.
3437 * block.h: Add opaque declaration for struct dictionary.
3438 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3439 'sym' members.
3440 (BLOCK_DICT): New macro.
3441 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3442 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3443 BLOCK_SHOULD_SORT.
3444 (ALL_BLOCK_SYMBOLS): Update definition.
3445 * Makefile.in (SFILES): Add dictionary.c.
3446 (dictionary_h): New.
3447 (COMMON_OBS): Add dictionary.o.
3448 (dictionary.o): New.
3449 (ada-lang.o): Depend on dictionary_h.
3450 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3451 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3452 (mi-cmd-stack.o): Ditto.
3453 (gdbtk-cmds.o): Update dependencies.
3454 (gdbtk-stack.o): Ditto.
3455 * ada-lang.c: Include dictionary.h.
3456 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3457 (fill_in_ada_prototype, debug_print_block): Ditto.
3458 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3459 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3460 'is_sorted'.
3461 * mdebugread.c: Include dictionary.h.
3462 (struct parse_stack): Delete 'maxsyms' member.
3463 (parse_symbol): Update calls to new_block. Delete calls to
3464 shrink_block. Use dictionary methods.
3465 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3466 Update calls to new_symtab. Don't maintain maxsyms data.
3467 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3468 (add_symbol): Just call dict_add_symbol.
3469 (new_symtab): Delete 'maxsyms' argument.
3470 (new_symtab): Update calls to new_block.
3471 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3472 (shrink_block): Delete function.
3473 (fixup_sigtramp): Update call to new_block. Add symbol via
3474 dict_add_symbol.
3475 * jv-lang.c: Include dictionary.h.
3476 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3477 appropriately. Set class_symtab->free_func. Make sure the
3478 blockvector is big enough to hold two blocks.
3479 (add_class_symtab_symbol): Use dictionary methods.
3480 (free_class_block): New function.
3481 (type_from_class): Replace explicit iteration by
3482 ALL_BLOCK_SYMBOLS.
3483 * symtab.h (struct symtab): Replace 'free_ptr' method by
3484 'free_func'.
3485 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3486 sort_symtab_syms.
3487 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3488 sort_symtab_syms.
3489 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3490 Include dictionary.h.
3491 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3492 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3493 sort_symtab_syms.
3494 * objfiles.c: Include dictionary.h.
3495 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3496 * buildsym.c: Include dictionary.h.
3497 (finish_block): Use dictionary methods.
3498 (end_symtab): Set free_func to NULL, not free_ptr.
3499 * tracepoint.c: Include dictionary.h.
3500 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3501 (scope_info): Ditto.
3502 * stack.c: Include dictionary.h.
3503 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3504 (print_block_frame_labels, print_frame_arg_vars)
3505 (print_frame_args): Ditto.
3506 * symmisc.c (free_symtab_block): Use dictionary methods.
3507 (dump_symtab): Ditto.
3508 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3509 Include dictionary.h.
3510 * symfile.h: Delete declarations of sort_block_syms,
3511 sort_symtab_syms.
3512 * symfile.c (sort_block_syms): Delete.
3513 (sort_symtab_syms): Delete.
3514 * symtab.c: Include dictionary.h.
3515 (lookup_block_symbol): Use dictionary iterators.
3516 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3517 (search_symbols, make_symbol_completion_list): Ditto.
3518 (make_symbol_overload_list): Ditto.
3519 * valops.c (value_of_local): Use dict_empty.
3520 Include dictionary.h.
3521
a31f978c
JB
35222003-06-11 J. Brobecker <brobecker@gnat.com>
3523
3524 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3525
526e70c0
DC
35262003-06-11 David Carlton <carlton@bactrian.org>
3527
3528 * block.h (BLOCK_SHOULD_SORT): Delete.
3529 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3530 blocks.
3531 * ada-lang.c (ada_add_block_symbols): Ditto.
3532 * symfile.c (sort_block_syms): Delete.
3533 (sort_symtab_syms): Ditto.
3534 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3535 declarations.
3536 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3537 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3538 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3539 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3540 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3541 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3542 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3543
33c08150
JJ
35442003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3545
8ffd9b1b 3546 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
3547 bits to 128.
3548
781a750d
AC
35492003-06-11 Andrew Cagney <cagney@redhat.com>
3550
3551 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3552 REGISTER_CONVERTIBLE.
3553 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3554 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3555 * gdbarch.h, gdbarch.c: Re-generate.
3556 * arch-utils.h (deprecated_register_convertible_not): Rename
3557 generic_register_convertible_not.
3558 * arch-utils.c (deprecated_register_convertible_not): Rename
3559 generic_register_convertible.
3560 (legacy_convert_register_p, legacy_register_to_value): Update.
3561 * sh-tdep.c (sh64_push_arguments): Update.
3562 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3563 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3564 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3565 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3566 * arch-utils.c (legacy_value_to_register): Update.
3567 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3568 (rs6000_register_convert_to_raw): Make parameter "from" const.
3569 * mips-tdep.c (mips_gdbarch_init): Update.
3570 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3571 * infcmd.c (default_print_registers_info): Update.
3572 * ia64-tdep.c (ia64_gdbarch_init): Update.
3573 (ia64_register_convert_to_raw): Make parameter "from" const.
3574 * i386-tdep.c (i386_gdbarch_init): Update.
3575 (i386_register_convert_to_raw): Update.
3576
cd90e54f
AC
35772003-06-11 Andrew Cagney <cagney@redhat.com>
3578
3579 * remote-fileio.c: Include "remote-fileio.h".
3580 * Makefile.in (remote-fileio.o): Update dependencies.
3581 (remote_fileio_h): Fix typo.
3582
a78f21af
AC
35832003-06-11 Andrew Cagney <cagney@redhat.com>
3584
3585 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3586 (xstormy16_save_dummy_frame_tos): Make static.
3587 (_initialize_xstormy16_tdep): Add declaration.
3588 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3589 * v850-tdep.c: Make local functions static.
3590 (_initialize_v850_tdep): Add declaration.
3591 * sparc-tdep.c: Make local functions static.
3592 (_initialize_sparc_tdep): Add declaration.
3593 * sh-tdep.c: Make local functions static.
3594 (_initialize_sh_tdep): Add declaration.
3595 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3596 * s390-tdep.c: Make local functions static.
3597 (_initialize_s390_tdep): Add declaration.
3598 * dbxread.c (find_stab_function_addr): Make static.
3599 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3600 * ocd.c (_initialize_remote_ocd): Add declaration.
3601 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3602 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3603 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3604 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3605 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3606 * remote-array.c (_initialize_array): Add declaration.
3607 (_initialize_remote_monitors): Add declaration.
3608 * remote-mips.c: Make local functions static.
3609 (_initialize_remote_mips): Add declaration.
3610 * mcore-tdep.c: Make all local functions static.
3611 (_initialize_mcore_tdep): Add declaration.
3612 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3613 * abug-rom.c (_initialize_abug_rom): Add declaration.
3614 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3615 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3616 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3617 * remote-est.c (_initialize_est): Add declaration.
3618 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3619 (m68hc11_call_dummy_address): Make static.
3620 * ia64-tdep.c: Make local functions static.
3621 (_initialize_ia64_tdep): Add declaration.
3622 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3623 * monitor.c (monitor_wait_filter): Make static.
3624 (_initialize_remote_monitors): Add declaration.
3625 * remote-hms.c (_initialize_remote_hms): Add declaration.
3626 * remote-e7000.c (fetch_regs_from_dump): Make static.
3627 (expect_n): Make static.
3628 (_initialize_remote_e7000): Add declaration.
3629 * ser-e7kpc.c: Always include "defs.h".
3630 (_initialize_ser_e7000pc): Add declaration.
3631 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3632 * cris-tdep.c: Make all but one function static.
3633 (_initialize_cris_tdep): Add declaration.
3634 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3635 * solib.c (update_solib_list): Make static.
3636 (_initialize_solib): Add declaration.
3637 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3638 (_initialize_avr_tdep): Add declaration.
3639 * remote-rdi.c (voiddummy): Make static.
3640 (_initialize_remote_rdi): Add declaration.
3641 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3642 * remote-rdp.c (send_rdp): Make static.
3643 (_initialize_remote_rdp): Add declaration.
3644 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3645
cbcdb1f5
CV
36462003-06-11 Corinna Vinschen <vinschen@redhat.com>
3647
3648 * remote-fileio.c: Make ari happy.
3649
a191ea8d
JB
36502003-06-10 J. Brobecker <brobecker@gnat.com>
3651
3652 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3653 fetching the trailing bytes of the buffer we are about to write.
3654
0ef75e11
AC
36552003-06-10 Andrew Cagney <cagney@redhat.com>
3656
3657 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3658 * Makefile.in (remote-fileio.o): Update dependencies.
3659 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3660 include <setjmp.h>, or <sys/types.h> conditional on USG.
3661 (remote_fio_jmp_buf): Delete global variable.
3662
449092f6 36632003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 3664 Martin M. Hunt <hunt@redhat.com>
449092f6 3665
559fa028
AC
3666 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3667 (SFILES): Add remote-fileio.c.
3668 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3669 dependencies for building remote.o.
449092f6
CV
3670 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3671 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 3672 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
3673 static storage class.
3674 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3675 'F' packet.
3676 (_initialize_remote): Call initialize_remote_fileio().
3677 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
3678 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3679 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3680 (captured_main): Initialize new ui_files.
3681 * ui-file.c: Add read and fgets input functions.
3682 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3683 (null_file_read): New function.
3684 (ui_file_read): New function.
3685 (set_ui_file_read): New function.
3686 (stdio_file_read): New function.
3687 * ui-file.h: New type ui_file_read_ftype.
3688 (set_ui_file_read): Declare.
3689 (ui_file_read): Declare.
3690
248de703
AC
36912003-06-09 Andrew Cagney <cagney@redhat.com>
3692
3693 * frame.h (deprecated_unwind_get_saved_register): Rename
3694 generic_unwind_get_saved_register, update comments.
3695 * mips-tdep.c (mips_get_saved_register): Update.
3696 * frame.c (deprecated_unwind_get_saved_register): Update.
3697
0ed8aa57
AC
36982003-06-09 Andrew Cagney <cagney@redhat.com>
3699
3700 * vax-tdep.c (vax_frame_locals_address): Delete function.
3701 (vax_gdbarch_init): Do not set frame_locals_address.
3702 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3703 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3704 * s390-tdep.c (s390_frame_args_address): Delete function.
3705 (s390_gdbarch_init): Do not set frame_args_address or
3706 frame_locals_address.
3707 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3708 (ns32k_gdbarch_init): Do not set frame_locals_address.
3709 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3710 (hppa_frame_locals_address): Delete function.
3711 (hppa_gdbarch_init): Do not set frame_args_address, or
3712 frame_locals_address.
3713 * arm-tdep.c (arm_frame_args_address): Delete.
3714 (arm_frame_locals_address): Delete.
3715 (arm_gdbarch_init): Do not set frame_args_address, or
3716 frame_locals_address.
3717
983a287a
AC
37182003-06-09 Andrew Cagney <cagney@redhat.com>
3719
3720 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3721 * gdbarch.h, gdbarch.c: Re-generate.
3722 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3723 * arch-utils.c (frame_num_args_unknown): Delete function.
3724 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3725 (frame_info): Use FRAME_NUM_ARGS_P.
3726 * arm-tdep.c (arm_frame_num_args): Delete function.
3727 (arm_gdbarch_init): Do not set frame_num_args.
3728 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3729 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3730 (hppa_gdbarch_init): Do not set frame_num_args.
3731 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3732 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3733 frame_num_args to default frame_num_args_unknown.
3734 * v850-tdep.c (v850_gdbarch_init): Ditto.
3735 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3736 * sh-tdep.c (sh_gdbarch_init): Ditto.
3737 * s390-tdep.c (s390_gdbarch_init): Ditto.
3738 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3739 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3740 * mips-tdep.c (mips_gdbarch_init): Ditto.
3741 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3742 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3743 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3744 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3745 * i386-tdep.c (i386_gdbarch_init): Ditto.
3746 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3747 * frv-tdep.c (frv_gdbarch_init): Ditto.
3748 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3749 * cris-tdep.c (cris_gdbarch_init): Ditto.
3750 * avr-tdep.c (avr_gdbarch_init): Ditto.
3751 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3752
8d3b0994
AC
37532003-06-09 Andrew Cagney <cagney@redhat.com>
3754
3755 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3756 (print_frame_args): Moved to "stack.c".
3757 * stack.c: Include "gdb_assert.h".
3758 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3759 (print_frame_args): Moved from "printcmd.c".
3760 * frame.h (print_frame_args): Delete declaration.
3761 * Makefile.in (stack.o): Update dependencies.
3762
25e3a86b
AC
37632003-06-08 Andrew Cagney <cagney@redhat.com>
3764
3765 * frame.c (get_prev_frame): Remove reference to
3766 frame_args_address_correct in comments.
3767 * frame-base.c (default_frame_args_address): Delete code
3768 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3769 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3770 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3771 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3772 (vax_frame_args_address_correct): Delete declaration.
3773
a9e5fdc2
AC
37742003-06-08 Andrew Cagney <cagney@redhat.com>
3775
3776 * gdbarch.sh (UNWIND_SP): Add.
3777 * gdbarch.h, gdbarch.c: Re-generate.
3778 * frame.c (frame_sp_unwind): New function.
3779 (get_frame_sp): New function.
3780 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3781 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3782 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3783 value.
3784 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3785 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3786
8983bd83
AC
37872003-06-08 Andrew Cagney <cagney@redhat.com>
3788
7fec2c59
AC
3789 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3790 REMOTE_BREAKPOINT.
3791 * remote.c: Update.
3792 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3793 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3794 * config/m68k/tm-sun3.h: Update.
3795 * config/m68k/tm-m68klynx.h: Update.
3796 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3797
8983bd83
AC
3798 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3799 trad_frame". Update comments.
3800 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3801 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3802 (trad_frame_register_value, trad_frame_prev_register): Update.
3803
b9362cc7
AC
38042003-06-08 Andrew Cagney <cagney@redhat.com>
3805
3806 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3807 from GCC's acinclude.m4.
3808 * configure.in: Check for getopt's delcaration.
8ffd9b1b 3809 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
3810 * main.c (error_init): Delete declaration.
3811 * defs.h (error_init): Declare.
3812 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3813 (rs6000_convert_from_func_ptr_addr): Make static.
3814 (_initialize_rs6000_tdep): Add declaration.
3815 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3816 (show_commands, set_verbose, show_history): Delete declaration.
3817 * top.h (set_verbose): Add declaration.
3818 (show_history, set_history, show_commands): Add declaration.
3819 (do_restore_instream_cleanup): Add declaration.
3820 * objc-lang.c (specialcmp): Make static.
3821 (print_object_command): Make static.
3822 (find_objc_msgsend): Make static.
3823 (find_objc_msgcall_submethod_helper): Make static.
3824 (find_objc_msgcall_submethod): Make static.
3825 (_initialize_objc_language): Add declaration.
3826 (find_implementation_from_class): Make static.
3827 (find_implementation): Make static.
3828 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3829 * objc-lang.h (lookup_struct_typedef): Add declaration.
3830 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3831 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3832 (do_restore_user_call_depth): Make static.
3833 (do_restore_instream_cleanup): Delete declaration.
3834 (dont_repeat): Delete declaration.
3835 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3836 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3837 * reggroups.c (_initialize_reggroup): Add declaration.
3838 * cp-support.c (_initialize_cp_support): Add declaration.
3839 * cp-abi.c (_initialize_cp_abi): Add declaration.
3840 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3841 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3842 (_initialize_gnu_v3_abi): Add declaration.
3843 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3844 (_initialize_gnu_v2_abi): Add declaration.
3845 * frame-base.c (_initialize_frame_base): Add declaration.
3846 * doublest.c (floatformat_from_length): Make static.
3847 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3848 * frame.c (create_sentinel_frame): Make static.
3849 (_initialize_frame): Add declaration.
3850 * top.c (do_catch_errors): Make static.
3851 (gdb_rl_operate_and_get_next_completion): Make static.
3852 * typeprint.c: Include "typeprint.h".
3853 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3854 (sentinel_frame_this_id): Make static.
3855 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3856 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3857 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3858 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3859 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3860 * maint.c (maintenance_print_architecture): Make static.
3861 * signals/signals.c (_initialize_signals): Add declaration.
3862 * std-regs.c (_initialize_frame_reg): Add declaration.
3863 * jv-exp.y (push_variable): ISO C definition.
3864 (push_qualified_expression_name): Ditto.
3865 * memattr.c (_initialize_mem): Add declaration.
3866 * remote.c (remote_check_watch_resources): Make static.
3867 (remote_stopped_by_watchpoint): Make static.
3868 (remote_stopped_data_address): Make static.
3869 * d10v-tdep.c (nr_dmap_regs): Make static.
3870 (a0_regnum): Make static.
3871 (d10v_frame_unwind_cache): Make static.
3872 (d10v_frame_p): Make static.
3873 * osabi.c (show_osabi): Make static.
3874 (_initialize_gdb_osabi): Add extern declaration.
3875 * gdbtypes.c (make_qualified_type): Make static.
3876 (safe_parse_type): Make static.
3877 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3878 * macrotab.c (macro_bcache_free): Make static.
3879 * interps.c (interp_set_quiet): Make static.
3880 (interpreter_exec_cmd): Make static.
3881 * stack.h (select_frame_command): New file.
3882 * stack.c: Include "stack.h".
3883 (select_frame_command_wrapper): Delete function.
3884 (select_frame_command): Make global.
3885 * infcall.c: Include "infcall.h".
3886 * linespec.c: Include "linespec.h".
3887 * symfile.c (sections_overlap): Make static.
3888 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3889 * charset.c (_initialize_charset): Add missing prototype.
3890 * regcache.c (init_legacy_regcache_descr): Make static.
3891 (do_regcache_xfree): Make static.
3892 (regcache_xfer_part): Make static.
3893 (_initialize_regcache): Add missing prototype.
3894 * breakpoint.c (parse_breakpoint_sals): Make static.
3895 (breakpoint_sals_to_pc): Make static.
3896 * interps.h (clear_interpreter_hooks): ISO C declaration.
3897 * Makefile.in (stack_h): Define.
3898 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3899 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3900
a0f267c7
AC
39012003-06-08 Andrew Cagney <cagney@redhat.com>
3902
3903 * Makefile.in (d10v-tdep.o): Update dependencies.
3904 (SFILES): Add trad-frame.c.
3905 (trad_frame_h): Define.
3906 (COMMON_OBS): Add trad-frame.o.
3907 (trad-frame.o): Specify dependencies.
3908 * d10v-tdep.c: Include "trad-frame.h".
3909 (saved_regs_unwinder): Delete function.
3910 (d10v_frame_prev_register): Use trad_frame_prev_register.
3911 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3912 trad_frame", delete "regs" and "prev_sp".
3913 (prologue_find_regs): Use trad-frame.
3914 * trad-frame.h, trad-frame.c: New files.
3915
4538b4f4
MK
39162003-06-08 Mark Kettenis <kettenis@gnu.org>
3917
3918 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3919
a0273b2f
AF
39202003-06-07 Adam Fedor <fedor@gnu.org>
3921
3922 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3923 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3924 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3925 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 3926 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
3927 Use it.
3928
3a6c3343
AC
39292003-06-07 Andrew Cagney <cagney@redhat.com>
3930
3931 * symfile.h: Re-indent, clean up comments.
3932
b46e02f6
AC
39332003-06-07 Andrew Cagney <cagney@redhat.com>
3934
3935 * inferior.h (deprecated_write_sp): Replace
3936 generic_target_write_sp.
3937 * regcache.c (deprecated_write_sp): Replace
3938 generic_target_write_sp.
3939 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3940 * vax-tdep.c (vax_gdbarch_init): Update.
3941 * v850-tdep.c (v850_gdbarch_init): Update.
3942 * sparc-tdep.c (sparc_gdbarch_init): Update.
3943 * sh-tdep.c (sh_gdbarch_init): Update.
3944 * s390-tdep.c (s390_gdbarch_init): Update.
3945 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3946 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3947 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3948 * mcore-tdep.c (mcore_gdbarch_init): Update.
3949 * m68k-tdep.c (m68k_gdbarch_init): Update.
3950 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3951 * ia64-tdep.c (ia64_gdbarch_init): Update.
3952 * h8300-tdep.c (h8300_gdbarch_init): Update.
3953 * frv-tdep.c (frv_gdbarch_init): Update.
3954 * cris-tdep.c (cris_gdbarch_init): Update.
3955 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3956
a42e117c
AC
39572003-06-07 Andrew Cagney <cagney@redhat.com>
3958
3959 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3960 Assert that PC_REGNUM is valid.
3961 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3962
bd1ce8ba
AC
39632003-06-07 Andrew Cagney <cagney@redhat.com>
3964
3965 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3966 * gdbarch.h, gdbarch.c: Regenerate.
3967 * mn10300-tdep.c: Include "gdb_assert.h".
3968 (mn10300_read_fp): New function.
3969 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3970 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3971 * ia64-tdep.c: Include "gdb_assert.h".
3972 (ia64_read_fp): New function.
3973 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3974 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3975 * regcache.c (generic_target_read_sp): Delete function.
3976 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3977 * inferior.h (generic_target_read_sp): Delete declaration.
3978 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3979 generic_target_read_sp.
3980 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3981 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3982 * sh-tdep.c (sh_gdbarch_init): Ditto.
3983 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3984 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3985
ec5cbaec
AC
39862003-06-07 Andrew Cagney <cagney@redhat.com>
3987
3988 * gdbarch.sh: Comment each field of startup_gdbarch.
3989 * gdbarch.h, gdbarch.c: Re-generate.
3990
cde9ea48
AC
39912003-06-07 Andrew Cagney <cagney@redhat.com>
3992
3993 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3994 * gdbarch.h, gdbarch.c: Re-generate.
3995 * regcache.c: Update comments on read_pc et.al.
3996 (generic_target_read_pc): Delete function.
3997 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3998 * inferior.h (generic_target_read_pc): Delete declaration.
3999 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4000 generic_target_read_pc.
4001 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4002 * sh-tdep.c (sh_gdbarch_init): Ditto.
4003 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4004 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 4005
9a90a780
AC
40062003-06-07 Andrew Cagney <cagney@redhat.com>
4007
4008 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4009 "index" with "special_local_sect". Use strcmp instead of STREQ.
4010 Append period to coments.
4011
a39a16c4
MM
40122003-06-06 Mark Mitchell <mark@codesourcery.com>
4013
4014 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4015 (elfstab_offset_sections): Likewise.
4016 * gdb-stabs.h (stab_section_info): Likewise.
4017 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4018 * objfiles.c (objfile_relocate): Likewise.
4019 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4020 * remote.c (get_offsets): Likewise.
4021 (remote_cisco_objfile_relocate): Likewise.
4022 * somread.c (som_symfile_offsets): Likewise.
4023 * symfile.c (alloc_section_addr_info): New function.
4024 (build_section_addr_info_from_section_tab): Use it.
4025 (free_section_addr_info): Adjust.
4026 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4027 (syms_from_objfile): Allocate local_addr dynamically.
4028 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4029 dynamically.
4030 (add_symbol_file_command): Allocate sect_opts dynamically.
4031 (reread_symbols): Avoid use of SECT_OFF_MAX.
4032 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4033 (alloc_section_addr_info): Declare it.
4034 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4035 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4036 dynamically.
4037 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 4038
20c6c2f8
AC
40392003-06-06 Andrew Cagney <cagney@redhat.com>
4040
4041 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4042 (d10v_frame_unwind_cache): Do not set "return_pc".
4043
884a26c8
MS
40442003-06-06 Michael Snyder <msnyder@redhat.com>
4045
4046 * h8300-tdep.c: Make tidy (long lines).
4047
088ce440
ML
40482003-06-06 Michal Ludvig <mludvig@suse.cz>
4049
8ffd9b1b 4050 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
4051 to regcache_collect().
4052
7d773d96
JB
40532003-06-05 J. Brobecker <brobecker@gnat.com>
4054
4055 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4056 pc_in_sigtramp multiarch method.
4057 (hppa_hpux_som_init_abi): Use it.
4058 (hppa_hpux_elf_init_abi): Likewise.
4059 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4060 macro has been multiarched.
4061 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4062 macro here, as hppa64 isn't multiarched yet.
4063
1df6926e
AC
40642003-06-05 Andrew Cagney <cagney@redhat.com>
4065
4066 * Makefile.in (value_h): Add $(frame_h).
4067 * value.h: Include "frame.h".
4068 (struct value): Replace "frame_addr" with "frame_id".
4069 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4070 * values.c (allocate_value): Use VALUE_FRAME_ID.
4071 (value_copy): Use VALUE_FRAME_ID.
4072 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4073 * valops.c (value_assign): Update. Use frame_find_by_id.
4074
6b53acc6
ML
40752003-06-05 Michal Ludvig <mludvig@suse.cz>
4076
4077 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4078 in each pass.
4079
4d9850d3
JJ
40802003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4081
4082 * thread-db.c (check_event): For create/death event breakpoints,
4083 loop through all messages to ensure that we read the message
4084 corresponding to the breakpoint we are at.
4085
8efca6ba
MS
40862003-06-04 Michael Snyder <msnyder@redhat.com>
4087
4088 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4089
0912c7f2
MK
40902003-06-04 Mark Kettenis <kettenis@gnu.org>
4091
4092 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4093 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4094 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4095 when handling .eh_frame sections.
4096
4e370325
JB
40972003-06-04 J. Brobecker <brobecker@gnat.com>
4098
4099 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4100 prepare_to_proceed procedure instead of the hppa-specific one.
4101 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4102
b757528f 41032003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4104
b757528f
JJ
4105 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4106 * config.in: Regenerated.
4107 * configure.in: Add test for syscall function and check for
4108 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4109 * configure: Regenerated.
4110 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4111 <sys/syscall.h>.
4112 (kill_lwp): New function that uses tkill syscall or
4113 uses kill, depending on whether threading model is nptl or not.
4114 All callers of kill() changed to use kill_lwp().
4115 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4116 see if all threads have already exited in the nptl model.
4117 (stop_and_resume_callback): New callback function used by the
4118 lin_lwp_wait thread exit handling code.
4119 (stop_wait_callback): Check for threads already having exited and
4120 delete such threads fromt the lwp list when discovered.
4121 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 4122
b757528f
JJ
4123 Roland McGrath <roland@redhat.com>
4124 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4125 nptl libthread_db.
4126
087779b1
RH
41272003-06-03 Richard Henderson <rth@redhat.com>
4128
b21fd293
RH
4129 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4130 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4131 (alpha_sigtramp_frame_prev_register): Likewise.
4132 (alpha_heuristic_frame_prev_register): Likewise.
4133 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4134
8ffd9b1b 4135 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
4136 alpha-specific register id names.
4137 (alpha_mdebug_frame_unwind_cache): Likewise.
4138 (alpha_mdebug_frame_prev_register): Likewise.
4139
baa490c4
RH
41402003-06-03 Richard Henderson <rth@redhat.com>
4141
4142 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4143 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4144 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4145 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4146 unwind routines.
4147 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4148 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4149 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4150
4151 * alpha-linux-tdep.c: Remove unnecessary includes.
4152 * Makefile.in (alpha-linux-tdep.o): Update.
4153
41542003-06-03 Richard Henderson <rth@redhat.com>
4155
4156 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4157 (alphabsd_fill_fpreg): Likewise.
4158
f534e522
JB
41592003-06-03 J. Brobecker <brobecker@gnat.com>
4160
4161 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4162 references to struct frame_info fields by calls to the equivalent
4163 accessors. Necessary now that frame_info is opaque.
4164
4035536b
JB
41652003-06-03 J. Brobecker <brobecker@gnat.com>
4166
4167 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4168 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4169 structure, field no longer exists.
4170
0bd79c5c
JB
41712003-06-03 J. Brobecker <brobecker@gnat.com>
4172
4173 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4174 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4175
37bb6d9f
JB
41762003-06-03 J. Brobecker <brobecker@gnat.com>
4177
4178 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4179 references to struct frame_info fields by calls to the equivalent
4180 accessors. Necessary now that frame_info is opaque.
4181
852ee05c
JB
41822003-06-03 J. Brobecker <brobecker@gnat.com>
4183
4184 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4185 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4186 structure, field no longer exists.
4187
7d58c67d
TR
41882003-06-03 Theodore A. Roth <troth@openavr.org>
4189
8ffd9b1b 4190 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
4191 accumulation of the size of all registers instead of blindly using
4192 DEPRECATED_REGISTER_BYTES.
4193
0a48e7e8
MS
41942003-06-03 Michael Snyder <msnyder@redhat.com>
4195
4196 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4197 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4198 for h8300sx.
4199
9798ab0d
JB
42002003-06-03 J. Brobecker <brobecker@gnat.com>
4201
4202 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4203 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4204
00b037e2
AC
42052003-06-03 Andrew Cagney <cagney@redhat.com>
4206
4207 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4208 (sparc_convert_to_raw): Delete function.
4209 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4210 register_convert_to_virtual.
4211
043b2f77
JJ
42122003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4213
4214 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4215 layer if not dealing with a statically-linked threaded program.
4216
f43caff8
KW
42172003-06-03 Kris Warkentin <kewarken@qnx.com>
4218
4219 * solib.c (solib_open): Update comment to reflect actual search order.
4220
ae1e7417
AC
42212003-06-03 Andrew Cagney <cagney@redhat.com>
4222
4223 * frame.c (get_frame_memory_signed): New function.
4224 (get_frame_memory, get_frame_memory_unsigned): New function.
4225 (get_frame_arch): New function.
4226 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4227 (get_frame_memory, get_frame_unsigned_memory): Declare.
4228 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4229 get_frame_memory_unsigned and get_frame_arch.
4230 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4231
cb123844
RG
42322003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4233
4234 * MAINTAINERS (write after approval): Add myself.
4235
1bb792e9
JB
42362003-06-03 Jim Blandy <jimb@redhat.com>
4237
4238 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4239 elements of gregset_t are 64 bits each, but access registers
4240 are still 32 bits, so they're packed two per gregset_t
4241 element. Unpack/pack them properly.
4242
aee8d8ba
DC
42432003-06-02 David Carlton <carlton@bactrian.org>
4244
4245 * linespec.c (find_methods): Break out code into
4246 add_matching_methods and add_constructors.
4247 (add_matching_methods): New.
4248 (add_constructors): Ditto.
4249
bf7488d2
AC
42502003-06-02 Andrew Cagney <cagney@redhat.com>
4251
bf7488d2
AC
4252 * sparc-tdep.c (sparc_print_registers): Delete call to
4253 REGISTER_CONVERTIBLE.
4254 (sparc_gdbarch_init): Do not set register_convertible.
4255 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4256 * frv-tdep.c (frv_gdbarch_init): Ditto.
4257 * cris-tdep.c (cris_gdbarch_init): Ditto.
4258
adedef68
EZ
42592003-06-02 Elena Zannoni <ezannoni@redhat.com>
4260
8ffd9b1b 4261 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
4262 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4263 (syms_from_objfile): Ditto.
4264
650fcc91
AS
42652003-06-03 Andreas Schwab <schwab@suse.de>
4266
4267 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4268 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4269
df4a182b
RH
42702003-06-02 Richard Henderson <rth@redhat.com>
4271
4272 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4273 a member of all_reggroup.
4274
c483c494
RH
42752003-06-02 Richard Henderson <rth@redhat.com>
4276
4277 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4278 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4279 (alpha_lds, alpha_sts): New.
4280 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 4281 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
4282 restructure and fail for type sizes other than 4 or 8.
4283 (alpha_value_to_register): Similarly.
4284 (alpha_extract_return_value): Use alpha_sts.
4285 (alpha_store_return_value): Use alpha_lds.
4286 (alpha_gdbarch_init): Update hooks.
4287
b38b6be2
RH
42882003-06-02 Richard Henderson <rth@redhat.com>
4289
4290 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4291 regnum identifiers.
4292 (alpha_sigtramp_register_address): Likewise.
4293
98a8e1e5
RH
42942003-06-02 Richard Henderson <rth@redhat.com>
4295
4296 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4297 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4298 * alpha-tdep.h: Declare them.
4299
4300 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4301 Remove zerobuf. Don't error on UNIQUE.
4302 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4303 (ALPHA_REGSET_UNIQUE): Provide default.
4304 (supply_gregset): Use alpha_supply_int_regs.
4305 (fill_gregset): Use alpha_fill_int_regs.
4306 (supply_fpregset): Use alpha_supply_fp_regs.
4307 (fill_fpregset): Use alpha_fill_fp_regs.
4308 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4309 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4310 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4311 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4312 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4313 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4314
67dfac52
RH
43152003-06-02 Richard Henderson <rth@redhat.com>
4316
f75d70cc
RH
4317 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4318
67dfac52
RH
4319 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4320 (alpha_store_return_value): Likewise.
4321
0cf566ec
DC
43222003-06-02 David Carlton <carlton@math.stanford.edu>
4323
4324 * block.c (contained_in): Add 'const' to arguments.
4325 (block_function): Ditto.
4326 * block.h: Update declarations for block_function and
4327 contained_in.
4328
cdef89d0
DC
43292003-06-02 David Carlton <carlton@math.stanford.edu>
4330
4331 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4332 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4333 * p-valprint.c (pascal_val_print): Ditto.
4334 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4335
72667056
RH
43362003-06-02 Richard Henderson <rth@redhat.com>
4337
98a8e1e5
RH
4338 * alpha-tdep.c (alpha_push_dummy_call): Use
4339 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 4340
8ffd9b1b 4341 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
4342 sign-extension of 32-bit values.
4343 (alpha_store_return_value): Similarly.
0ede8eca 4344
98a8e1e5
RH
4345 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4346 (alpha_extract_return_value): Likewise.
4347 (alpha_store_return_value): Likewise.
7b5e1cb3 4348
98a8e1e5
RH
4349 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4350 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 4351
98a8e1e5
RH
4352 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4353 (alpha_extract_struct_value_address): Likewise.
4354 (alpha_store_return_value): Likewise.
4355 (alpha_store_struct_return): Remove.
4356 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 4357
98a8e1e5
RH
4358 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4359 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4360 macros where appropriate.
4361 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4362 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 4363
98a8e1e5
RH
4364 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4365 for SP, GP; void_func_ptr for PC; non-language-specific types
4366 for all others.
4367 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 4368
6dd77b81
RH
43692003-06-02 Richard Henderson <rth@redhat.com>
4370
4371 * top.h (lim_at_start): Declare.
4372 * main.c (captured_main): Set it.
4373 * top.c (lim_at_start): Define.
4374 (command_loop): Use it instead of &environ.
4375 * event-top.c (command_handler): Likewise.
4376
f4dbdb54
JT
43772003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4378
4379 * mipsnbsd-tdep.c: Update copyright years.
4380 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4381
8f285956
RH
43822003-06-01 Richard Henderson <rth@redhat.com>
4383
98a8e1e5
RH
4384 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4385 (alpha-linux-tdep.o): Update dependencies.
4386 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4387 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 4388
615967cb
RH
43892003-06-01 Richard Henderson <rth@redhat.com>
4390
98a8e1e5
RH
4391 * alpha-tdep.c (alpha_register_reggroup_p): New.
4392 (alpha_gdbarch_init): Register it.
615967cb 4393
b59661bd
AC
43942003-06-02 Andrew Cagney <cagney@redhat.com>
4395
4396 * dwarfread.c: Eliminate "register"
4397 (decode_die_type): Eliminate assignment within "if".
4398 (struct_type, decode_array_element_type): Ditto.
4399 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4400 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4401 (decode_modified_type, completedieinfo): Ditto.
4402 * block.c: Eliminate "register".
4403 (blockvector_for_pc_sect): Eliminate assignment within "if".
4404 * cp-support.h (struct symbol): Opaque declaration.
4405 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4406
5ef165c2
RH
44072003-06-01 Richard Henderson <rth@redhat.com>
4408
98a8e1e5
RH
4409 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4410 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 4411
143985b7
AF
44122003-06-01 Adam Fedor <fedor@gnu.org>
4413
4414 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4415 * gdbarch.[ch]: Regenerate.
4416 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4417 (hppa_gdbarch_init): Set it in the gdbarch vector.
4418 * i386-tdep.c (i386_fetch_pointer_argument): New
4419 (i386_gdbarch_init): Set it into gdbarch.
4420 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4421 (rs6000_gdbarch_init): Set it in gdbarch.
4422 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4423 (sparc_gdbarch_init): Set it in gdbarch.
4424
ae0167b9
AC
44252003-06-01 Andrew Cagney <cagney@redhat.com>
4426
7c0b4a20
AC
4427 * defs.h (extract_address): Delete declaration.
4428 * findvar.c (extract_address): Delete function.
4429 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4430 extract_address with the inline equivalent,
4431 extract_unsigned_integer.
4432 (xstormy16_extract_struct_value_address): Ditto.
4433 (xstormy16_pointer_to_address): Ditto.
4434 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4435 * v850-tdep.c (v850_push_arguments): Ditto.
4436 (v850_extract_return_value): Ditto.
4437 (v850_extract_struct_value_address): Ditto.
4438 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4439 (sparcnbsd_get_longjmp_target_64): Ditto.
4440 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4441 (get_longjmp_target): Ditto.
4442 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4443 (sh64_extract_struct_value_address): Ditto.
4444 (sh_push_arguments): Ditto.
4445 (sh64_push_arguments): Ditto.
4446 * remote-vxsparc.c (vx_read_register): Ditto.
4447 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4448 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4449 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4450 * mipsv4-nat.c (get_longjmp_target): Ditto.
4451 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4452 * mips-nat.c (get_longjmp_target): Ditto.
4453 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4454 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4455 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4456 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4457 * irix5-nat.c (get_longjmp_target): Ditto.
4458 * irix4-nat.c (get_longjmp_target): Ditto.
4459 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4460 (ia64_push_arguments): Ditto.
4461 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4462 * h8300-tdep.c (h8300_push_arguments): Ditto.
4463 (h8300_store_return_value): Ditto.
4464 (h8300_extract_struct_value_address): Ditto.
4465 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4466 (frv_push_arguments): Ditto.
4467 * avr-tdep.c (avr_pointer_to_address): Ditto.
4468 (avr_push_arguments): Ditto.
4469 * arm-tdep.c (arm_push_dummy_call): Ditto.
4470 (arm_get_longjmp_target): Ditto.
4471 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4472 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4473 (alpha_get_longjmp_target): Ditto.
4474
ae0167b9
AC
4475 * solib-irix.c (extract_mips_address): Inline extract_address,
4476 replacing it with extract_signed_integer.
4477 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4478 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4479 (first_link_map_member, open_symbol_file_object): Ditto.
4480 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4481 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4482 (LM_NEXT, LM_NAME): Ditto.
4483
44d88583
RH
44842003-06-01 Richard Henderson <rth@redhat.com>
4485
98a8e1e5
RH
4486 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4487 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4488 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4489 (alpha_cannot_store_register): Likewise.
4490 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4491 * alpha-nat.c (supply_gregset): Likewise.
4492 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 4493
310e9b6a
AC
44942003-06-01 Andrew Cagney <cagney@redhat.com>
4495
4496 * infcall.c (call_function_by_hand): Update comment on
4497 DEPRECATED_DUMMY_WRITE_SP.
4498
4499 * mips-tdep.c (mips_gdbarch_init): Do not set
4500 deprecated_dummy_write_sp.
4501 (mips_eabi_push_dummy_call): Set the SP register.
4502 (mips_o64_push_dummy_call): Set the SP register.
4503 (mips_o32_push_dummy_call): Set the SP register.
4504 (mips_n32n64_push_dummy_call): Set the SP register.
4505
5ab84872
RH
45062003-06-01 Richard Henderson <rth@redhat.com>
4507
98a8e1e5
RH
4508 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4509 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4510 (supply_gregset): Likewise.
4511 * alpha-tdep.c (alpha_store_return_value): Likewise.
4512 (alpha_get_longjmp_target): Likewise.
4513 (alpha_register_name): Constify array.
4514 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4515 deprecated_register_size, deprecated_register_bytes,
4516 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4517 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4518 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 4519
09cc52fd
RH
45202003-06-01 Richard Henderson <rth@redhat.com>
4521
4522 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4523 from arg_reg_buffer to regcache to avoid double conversion.
4524
c7f16359
MK
45252003-06-01 Mark Kettenis <kettenis@gnu.org>
4526
4527 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4528 SP_REGNUM.
4529 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4530 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4531
7131cb6e
RH
45322003-06-01 Richard Henderson <rth@redhat.com>
4533
98a8e1e5
RH
4534 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4535 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 4536
f3e0f90b
RH
45372003-06-01 Richard Henderson <rth@redhat.com>
4538
98a8e1e5
RH
4539 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4540 not overlapping PC_REGNUM.
f3e0f90b 4541
c88e30c0
RH
45422003-06-01 Richard Henderson <rth@redhat.com>
4543
98a8e1e5
RH
4544 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4545 alpha_push_arguments. Don't dump argument register data to
4546 the target stack. Fix float and 128-bit long double semantics.
4547 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4548 (alpha_fix_call_dummy): Remove.
4549 (alpha_call_dummy_words): Remove.
4550 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 4551
f1a559ae
RH
45522003-06-01 Richard Henderson <rth@redhat.com>
4553
4554 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4555
5e045346
AC
45562003-06-01 Andrew Cagney <cagney@redhat.com>
4557
95404a3e
AC
4558 * mips-tdep.c (is_mips16_addr): New function.
4559 (make_mips16_addr, unmake_mips16_addr): New functions.
4560 (pc_is_mips16, mips_fetch_instruction): Use.
4561 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4562 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4563 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4564 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4565 TARGET_MIPS.
4566 * config/mips/tm-mips.h: Update copyright.
4567 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4568 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4569 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4570 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4571 (TM_PRINT_INSN_MACH): Delete.
4572 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4573
5e045346
AC
4574 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4575 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4576 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4577 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4578 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4579 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4580 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4581 mips*-*-riscos* and mips*-*-sysv* onto mips.
4582 * config/mips/mips64.mt: New file.
4583 * config/mips/mips.mt: New file.
4584 * config/mips/littlemips.mt: Delete file.
4585 * config/mips/decstation.mt: Delete file.
4586 * config/mips/vr4300el.mt: Delete file.
4587 * config/mips/vr5000el.mt: Delete file.
4588 * config/mips/vr5000.mt: Delete file.
4589 * config/mips/vr4100.mt: Delete file.
4590 * config/mips/vr4xxxel.mt: Delete file.
4591 * config/mips/vr4300.mt: Delete file.
4592 * config/mips/vr4xxx.mt: Delete file.
4593 * config/mips/bigmips.mt: Delete file.
4594 * config/mips/bigmips64.mt: Delete file.
4595 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4596 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4597 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4598 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4599 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4600 "tm-bigmips.h".
4601 * config/mips/tm-irix3.h: Ditto.
4602 * config/mips/tm-mipsv4.h: Ditto.
4603 * config/mips/tm-embed.h: Ditto.
4604 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4605 "tm-bigmips64.h".
4606 * config/mips/tm-vr5000el.h: Delete file.
4607 * config/mips/tm-tx39l.h: Delete file.
4608 * config/mips/tm-vr4300el.h: Delete file.
4609 * config/mips/tm-vr4xxxel.h: Delete file.
4610 * config/mips/tm-vr4300.h: Delete file.
4611 * config/mips/tm-vr4100.h: Delete file.
4612 * config/mips/tm-vr4xxx.h: Delete file.
4613 * config/mips/tm-vr5000.h: Delete file.
4614 * config/mips/tm-embedl64.h: Delete file.
4615 * config/mips/tm-embedl.h: Delete file.
4616 * config/mips/tm-embed64.h: Delete file.
4617 * config/mips/tm-bigmips64.h: Delete file.
4618 * config/mips/tm-bigmips.h: Delete file.
4619
2473a4a9
MK
46202003-06-01 Mark Kettenis <kettenis@gnu.org>
4621
97a5b208
MK
4622 Fix gdb/1216.
4623 * shnbsd-nat.c: Include "sh-tdep.h".
4624
2473a4a9
MK
4625 From Richard Henderson <rth@redhat.com>:
4626 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4627
e0f7ec59
AC
46282003-05-31 Andrew Cagney <cagney@redhat.com>
4629
4630 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4631 forward declaration.
4632 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4633 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4634 (mips_find_saved_regs): Use set_reg_offset.
4635 (mips_frame_init_saved_regs): Delete function.
4636 (mips_pop_frame): Call mips_find_saved_regs instead of
4637 DEPRECATED_FRAME_INIT_SAVED_REGS.
4638
68dcc709
AC
46392003-05-31 Andrew Cagney <cagney@redhat.com>
4640
4641 * mips-tdep.c (mips_gdbarch_init): Do not set
4642 deprecated_max_register_raw_size, register_virtual_size, and
4643 deprecated_max_register_virtual_size.
4644
cfc14b3a
MK
46452003-05-31 Mark Kettenis <kettenis@gnu.org>
4646
6405b0a6
MK
4647 * i386-tdep.c: Include "dwarf2-frame.h".
4648 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4649 * Makefile.in (i386-tdep.o): Update dependencies.
4650
cfc14b3a
MK
4651 * dwarf2-frame.c, dwarf2-frame.h: New files.
4652 * Makefile.in (SFILES): Add dwarf2-frame.c.
4653 (dwarf2_frame_h): Define.
4654 (COMMON_OBS): Add dwarf2-frame.o.
4655 (dwarf2-frame.o): Add dependencies.
4656
6a2751d2
AJ
46572003-05-31 Andreas Jaeger <aj@suse.de>
4658
4659 * x86-64-linux-nat.c: Fix comment.
4660
1c3545ae
MK
46612003-05-31 Mark Kettenis <kettenis@gnu.org>
4662
10f93086
MK
4663 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4664 function signature.
4665
1c3545ae
MK
4666 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4667 have a sigcontext_addr handler.
4668 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4669 sigcontext_addr handler.
4670
e11c53d2
AC
46712003-05-31 Andrew Cagney <cagney@redhat.com>
4672
4673 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4674 (print_fp_register_row): Replace do_fp_register_row.
4675 (mips_print_fp_register): Add "file" and "frame" parameters.
4676 (mips_print_register): Add "file" and "frame" parameters.
4677 (mips_print_registers_info): Replace mips_do_registers_info.
4678 (mips_gdbarch_init): Set print_registers_info instead of
4679 deprecated_do_registers_info.
4680 (mips_read_fp_register_single): Add "frame" parameter.
4681 (mips_read_fp_register_double): Add "frame" parameter.
4682
a3386186
MK
46832003-05-31 Mark Kettenis <kettenis@gnu.org>
4684
70913449
MK
4685 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4686 Fixes a bug where GDB would print the wrong register names for
4687 targets without SSE.
4688
2b5e0749
MK
4689 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4690 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4691 registers.
4692
4693 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4694 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4695 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4696 TDEP->sc_sp_offset.
4697
a3386186
MK
4698 From Michal Ludvig <mludvig@suse.cz>:
4699 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4700 and `sc_num_regs'.
4701 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4702 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4703 I386_ST0_REGNUM): Move here from...
4704 * i386-tdep.c: ... here.
4705 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4706 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4707 registers if possible.
4708 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4709 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4710 Remove variables.
4711 (i386bsd_sc_reg_offset): New variable.
4712 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4713 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4714 TDEP->sc_sp_offset.
4715 (i386fbsd_sc_reg_offset): New variable.
4716 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4717 TDEP->sc_num_regs.
4718 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4719 variables.
4720 (i386fbsd4_sc_reg_offset): New variable.
4721 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4722 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4723 TDEP->sc_sp_offset.
4724 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4725 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4726 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4727 Remove variables.
4728 (i386nbsd_sc_reg_offset): New variable.
4729 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4730 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4731 TDEP->sc_sp_offset.
4732 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4733 Remove variables.
4734 (i386obsd_sc_reg_offset): New variable.
4735 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4736 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4737 TDEP->sc_sp_offset.
4738 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4739 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4740 for frame pointer offset in `struct sigcontext'.
4741
25ab4790
AC
47422003-05-31 Andrew Cagney <cagney@redhat.com>
4743
4744 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4745 architecture methods call_dummy_words, sizeof_call_dummy_words,
4746 push_return_address, store_struct_return, and fix_call_dummy. Set
4747 push_dummy_call instead of deprecated_push_arguments.
4748 (mips_store_struct_return): Delete function.
4749 (mips_fix_call_dummy): Delete function.
4750 (mips_push_return_address): Delete function.
4751 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4752 RA_REGNUM and T9_REGNUM.
4753 (mips_n32n64_push_dummy_call): Ditto for
4754 mips_n32n64_push_arguments.
4755 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4756 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4757
6a65450a
AC
47582003-05-31 Andrew Cagney <cagney@redhat.com>
4759
4760 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4761 "dummy_addr" to "bp_addr".
4762 * infcall.c (call_function_by_hand): Pass "funaddr" to
4763 gdbarch_push_dummy_call.
4764 * gdbarch.h, gdbarch.c: Re-generate.
4765 * i386-tdep.c (i386_push_dummy_call): Update.
4766 * arm-tdep.c (arm_push_dummy_call): Update.
4767 * d10v-tdep.c (d10v_push_dummy_call): Update.
4768
c4f35dd8
MK
47692003-05-31 Mark Kettenis <kettenis@gnu.org>
4770
4771 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4772 variable declarations.
4773 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4774 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4775 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4776 x86_64_init_frame_pc, x86_64_init_frame_pc,
4777 x86_64_function_has_prologue): Remove prototypes.
4778 (X86_64_NUM_GREGS): New define.
4779 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4780 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4781 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4782 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4783 XMM1_REGNUM): Remove defines.
4784 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4785 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4786 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4787 X86_64_XMM1_REGNUM): New defines.
4788 (struct x86_64_register_info): Renamed from `struct
4789 register_info'. Remove `size' member.
4790 (x86_64_register_info_table): Remove variable.
4791 (x86_64_register_info): New variable.
4792 (X86_64_NUM_REGS): New define.
4793 (X86_64_NUM_GREGS): Remove define.
4794 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4795 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4796 Remove variables.
4797 (x86_54_dwarf2_reg_to_regnum): Remove function.
4798 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4799 (x86_64_dwarf_reg_to_regnum): New function.
4800 (x86_64_register_name): Rewrite.
4801 (x86_64_register_raw_size): Remove function.
4802 (x86_64_register_byte_table): Remove variable.
4803 (x86_64_register_byte): Remove function.
4804 (x86_64_register_virtual_type): Remove function.
4805 (x86_64_register_type): New function.
4806 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4807 x86_64_register_convert_to_raw): Remove functions.
4808 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4809 (x86_64_use_struct_convention): Make static. Adjust for renamed
4810 defines.
4811 (x86_64_frame_init_saved_regs): Remove function.
4812 (x86_64_push_arguments): Make static. Change to accept a regcache
4813 as argument.
4814 (x86_64_store_return_value, x86_64_extract_return_value): Make
4815 static. Rewrite based on i386 counterparts.
4816 (x86_64_push_dummy_call): New function.
4817 (X86_64_NUM_SAVED_REGS): New define.
4818 (x86_64_register_number): Remove function.
4819 (x86_64_store_struct_return): Remove function.
4820 (x86_64_frameless_function_invocation,
4821 x86_64_function_has_prologue): Remove functions.
4822 (PROLOG_BUFSIZE): Remove define.
4823 (struct x86_64_frame_cache): New structure.
4824 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4825 x86_64_frame_cache, x86_64_frame_this_id,
4826 x86_64_frame_prev_register, x86_64_frame_p,
4827 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4828 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4829 functions.
4830 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4831 variables.
4832 (x86_64_skip_prologue): Rewrite in terms of
4833 x86_64_analyze_prologue.
4834 (x86_64_frame_base_address): New function.
4835 (x86_64_frame_base): New variable.
4836 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4837 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4838 set deprecated_fp_regnum, deprecated_register_size,
4839 deprecated_register_bytes, register_raw_size, register_byte,
4840 register_virtual_type, register_convertiable,
4841 register_convert_to_virtual, convert_to_raw,
4842 deprecated_get_saved_register, deprecated_target_read_fp,
4843 deprecated_push_arguments, deprecated_push_return_address,
4844 deprecated_pop_frame, deprecated_store_struct_return,
4845 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4846 frameless_function_invocation, deprecated_frame_saved_pc,
4847 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4848 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4849 deprecated_init_frame_pc and virtual_frame_pointer. Call
4850 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4851 and x86_64_frame_p. Call frame_base_set_default to register
4852 x86_64_frame_base.
4853 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4854 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4855 (_initialize_x86_64_tdep): Remove function.
4856 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4857 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4858 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4859 define.
4860 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4861 (x86_64_linux_sigcontext_addr): Rewrite.
4862 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4863 x86_64_linux_frame_saved_pc): Remove functions.
4864 (x86_64_linux_pc_in_sigtramp): Renamed from
4865 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4866 trampoline.
4867 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4868 Remove_functions.
4869 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4870 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4871 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4872 (x86_64_regmap): Rename to regmap.
4873 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4874 x86_64_num_gregs.
4875 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4876 x86_64_regmap.
4877 (x86_64_fxsave_offset): Remove function.
4878 (supply_fpregset): Simply call x86_64_supply_fxsave.
4879 (fill_fpregset): Simply call x86_64_fill_fxsave.
4880 (fetch_inferior_registers, store_inferior_registers): Avoid
4881 asignment in if-statement.
4882 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4883 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4884 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4885 (fetch_core_registers): Remove function.
4886 (linux_elf_core_fns): Remove.
4887 (offsetoff): Don't define.
4888 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4889 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4890 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4891 add core-regset.o.
4892 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4893 protection against multiple includes instead of NM_X86_64_h. Add
4894 various comments. Include "config/nm-linux.h". Don't include
4895 <signal.h>.
4896 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4897 GET_THREAD_SIGNALS): Remove defines.
4898 (x86_64_register_u_addr, kernel_u_size,
4899 lin_thread_get_thread_signals): Remove prototypes.
4900 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4901 [HAVE_LINK_H]: Don't include "solib.h".
4902 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4903 * config/i386/tm-x86-64linux.h: Fix comments.
4904 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4905 x86-64-tdep.o): Update dependencies.
4906
c25083af
AC
49072003-05-30 Andrew Cagney <cagney@redhat.com>
4908
c8f55a7b
AC
4909 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4910 Change parameter type to a "struct regcache *".
4911
c25083af
AC
4912 * gdbarch.sh: Regardless of the multi-arch level, always define
4913 the macro when not already defined.
4914 * gdbarch.h, gdbarch.c: Re-generate.
4915
fbe586ae
RH
49162003-05-30 Richard Henderson <rth@redhat.com>
4917
4918 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4919 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4920 (alpha_mdebug_frame_this_id): Likewise.
4921 (alpha_mdebug_frame_prev_register): Likewise.
4922 (alpha_mdebug_frame_base_address): Likewise.
4923 (alpha_mdebug_frame_locals_address): Likewise.
4924 (alpha_mdebug_frame_args_address): Likewise.
4925 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4926 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4927 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4928 loop increment.
4929 (alpha_heuristic_frame_this_id): Make static.
4930 (alpha_heuristic_frame_prev_register): Likewise.
4931 (alpha_heuristic_frame_base_address): Likewise.
4932 * alpha-tdep.h: Update.
4933
acd5c798
MK
49342003-05-30 Mark Kettenis <kettenis@gnu.org>
4935
4936 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4937 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4938 defenitions.
4939 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4940 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4941 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4942 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4943 I386_ST0_REGNUM): New defines.
4944 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4945 codestream_get): Remove define.
4946 (codestream_next_addr, condestream_addr, condestream_buf,
4947 codestream_off, codestream_cnt): Remove variables.
4948 (codestream_fill, codestream_seek, codestream_read): Remove
4949 functions.
4950 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4951 functionality.
4952 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4953 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4954 i386_frame_saved_pc, i386_saved_pc_after_call,
4955 i386_frame_num_args, i386_frame_init_saved_regs,
4956 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4957 i386_push_arguments): Remove functions.
4958 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4959 functionality. Use i386_analyze_prologue instead of
4960 i386_get_frame_setup.
4961 (I386_NUM_SAVED_REGS): New define.
4962 (struct i386_frame_cache): New structure.
4963 (i386_alloc_frame_cache, i386_analyze_struct_return,
4964 i386_skip_probe, i386_analyze_frame_setup,
4965 i386_analyze_register_saves, i386_analyze_prologue,
4966 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4967 i386_frame_prev_register, i386_sigtramp_frame_cache,
4968 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4969 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4970 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4971 New functions.
4972 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4973 New variables.
4974 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4975 I386_EAX_REGNUM and I386_EDX_REGNUM.
4976 (i386_extract_return_value, i386_store_return_value): Use
4977 I386_ST0_REGNUM where appropriate.
4978 (i386_extract_struct_value_address): Rewrite to use extract_address.
4979 (i386_svr4_pc_in_sigtramp): Add comment.
4980 (i386_svr4_sigcontext_addr): Rewrite.
4981 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4982 TDEP->sc_sp_offset.
4983 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4984 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4985 of new defines. Set push_dummy_call, don't set
4986 deprecated_push_arguments, deprecated_push_return_address,
4987 deprecated_pop_frame. Don't set parm_boundary. Don't set
4988 deprecated_frame_chain, deprecated_frame_saved_pc,
4989 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4990 save_dummy_frame_tos, unwind_pc. Call
4991 frame_unwind_append_predicate and frame_base_set_default. Don't
4992 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4993 Don't set frameless_function_invocation. Don't set
4994 deprecated_register_bytes, deprecated_register_size,
4995 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4996 * i386-linux-tdep.c: Fix formatting in some comments.
4997 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4998 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4999 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5000 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5001 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5002 redundant parentheses.
5003 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5004 (i386_linux_sigcontext_addr): Use it. Rewrite.
5005 (find_minsym_and_objfile): Change name of second argument.
5006 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5007 changed. Use frame_pc_unwind instead of
5008 DEPRECATED_SAVED_PC_AFTER_CALL.
5009 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5010 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5011 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5012 unwinder.
5013 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5014 "dummy-frame.h".
5015 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5016 (_initialize_i386_cygwin_tdep): New prototype.
5017 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5018 deprecated_frame_chain_valid.
5019 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5020 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5021 Rely on the SVR4 defaults.
5022 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5023 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5024
c89b70f1
AC
50252003-05-30 Andrew Cagney <cagney@redhat.com>
5026
5027 * infcall.c (call_function_by_hand): Always call
5028 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5029
85b32d22
RH
50302003-05-30 Richard Henderson <rth@redhat.com>
5031
c89b70f1
AC
5032 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5033 increment.
85b32d22 5034
bfe51b1e
JB
50352003-05-29 Jim Blandy <jimb@redhat.com>
5036
5037 Use gdbarch methods for solib stuff on PowerPC Linux.
5038 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5039 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5040 show through.
5041 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5042 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5043 giving the same effect as the #definitions above.
5044
1abf022c
AF
50452003-05-29 Adam Fedor <fedor@gnu.org>
5046
5047 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5048 (find_implementation_from_class): Replace it with the standard
5049 case i.e. do nothing.
5050
d2427a71
RH
50512003-05-29 Richard Henderson <rth@redhat.com>
5052
5053 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5054 (alpha_linux_sigtramp_offset): Use it. Make static.
5055 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5056 update for new frame model.
5057 * alpha-mdebug-tdep.c: New file.
5058 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5059 (alpha_osf1_init_abi): Install it.
5060 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5061 (linked_proc_desc_table): Remove.
5062 (alpha_frame_past_sigtramp_frame): Remove.
5063 (alpha_dynamic_sigtramp_offset): Remove.
5064 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5065 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5066 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5067 (push_sigtramp_desc): Remove.
5068 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5069 (alpha_cannot_store_register): Likewise.
5070 (alpha_sigcontext_addr): Remove.
5071 (alpha_find_saved_regs): Remove.
5072 (alpha_frame_init_saved_regs): Remove.
5073 (alpha_init_frame_pc_first): Remove.
5074 (read_next_frame_reg): Remove.
5075 (alpha_frame_saved_pc): Remove.
5076 (alpha_saved_pc_after_call): Remove.
5077 (temp_proc_desc, temp_saved_regs): Remove.
5078 (alpha_about_to_return): Remove.
5079 (cached_proc_desc): Remove.
5080 (alpha_frame_chain): Remove.
5081 (alpha_print_extra_frame_info): Remove.
5082 (alpha_init_extra_frame_info): Remove.
5083 (alpha_frame_locals_address): Remove.
5084 (alpha_frame_args_address): Remove.
5085 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5086 (alpha_push_dummy_frame): Remove.
5087 (alpha_pop_frame): Remove.
5088 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5089 (alpha_read_insn): New.
5090 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5091 for different insn encodings.
5092 (alpha_in_lenient_prologue): Remove.
5093 (struct alpha_sigtramp_unwind_cache): New.
5094 (alpha_sigtramp_frame_unwind_cache): New.
5095 (alpha_sigtramp_register_address): New.
5096 (alpha_sigtramp_frame_this_id): New.
5097 (alpha_sigtramp_frame_prev_register): New.
5098 (alpha_sigtramp_frame_unwind): New.
5099 (alpha_sigtramp_frame_p): New.
5100 (struct alpha_heuristic_unwind_cache): New.
5101 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5102 don't count nop insns that occur between functions.
5103 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5104 heuristic_proc_desc, but without the mdebug wrapping.
5105 (alpha_heuristic_frame_this_id): New.
5106 (alpha_heuristic_frame_prev_register): New.
5107 (alpha_heuristic_frame_unwind): New.
5108 (alpha_heuristic_frame_p): New.
5109 (alpha_heuristic_frame_base_address): New.
5110 (alpha_heuristic_frame_base): New.
5111 (alpha_unwind_dummy_id): New.
5112 (alpha_unwind_pc): New.
5113 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5114 frame related deprecated initializations; install replacements.
5115 (alpha_dump_tdep): Remove.
5116 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5117 (alpha_read_insn, alpha_after_prologue,
5118 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5119 alpha_heuristic_frame_prev_register,
5120 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5121 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5122 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5123 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5124
93ec1121
AC
51252003-05-29 Andrew Cagney <cagney@redhat.com>
5126
5127 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5128 dependant on the availability of ASSERT_FUNCTION.
5129 (ASSERT_FUNCTION): Do not define when there is no function name.
5130
98f08d3d
KB
51312003-05-29 Kevin Buettner <kevinb@redhat.com>
5132
5133 From Jimi X <jimix@watson.ibm.com>:
5134 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5135
0897f59b
JB
51362003-05-28 Jim Blandy <jimb@redhat.com>
5137
5138 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5139 argument to ptrace to int; the system headers should give it the
5140 right type, and pointers don't fit in ints on powerpc64-*-*.
5141
14898363
L
51422003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5143
5144 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5145 DW_TAG_catch_block.
5146
a7a48797
EZ
51472003-05-26 Elena Zannoni <ezannoni@redhat.com>
5148
5149 * stabsread.c (dbx_lookup_type): Make static.
5150 (read_type): Ditto.
5151 (add_undefined_type): Ditto.
5152 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5153 not export.
5154
f5479e9c
EZ
51552003-05-26 Elena Zannoni <ezannoni@redhat.com>
5156
5157 * hpread.c (hpread_has_name): Make static.
5158 (hpread_psymtab_to_symtab): Ditto.
5159 (file_exists): Ditto.
5160 (hpread_call_pxdb): Ditto.
5161 (hpread_pxdb_needed): Ditto.
5162 (hpread_quick_traverse): Ditto.
5163 (hpread_get_header): Ditto.
5164 (hpread_get_lntt): Ditto.
5165 (hpread_get_slt): Ditto.
5166 (class_of): Ditto.
5167
eb2e12d7
AS
51682003-05-25 Andreas Schwab <schwab@suse.de>
5169
78bf922a
AS
5170 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5171 stack_align and deprecated_extra_stack_alignment_needed.
5172 (m68k_stack_align): Delete.
5173
eb2e12d7
AS
5174 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5175 (m68k_register_virtual_size): Likewise.
5176 (altos_skip_prologue): Remove obsolete function.
5177 (isi_frame_num_args): Likewise.
5178 (news_frame_num_args): Likewise.
5179 (m68k_fix_call_dummy): Make static.
5180 (m68k_push_dummy_frame): Likewise.
5181 (m68k_pop_frame): Likewise.
5182 (m68k_skip_prologue): Likewise.
5183 (m68k_frame_init_saved_regs): Likewise.
5184 (m68k_saved_pc_after_call): Likewise.
5185 (m68k_get_longjmp_target): Make multi-arch.
5186 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5187 structure. Register m68k_get_longjmp_target if enabled.
5188 * m68k-tdep.h (struct gdbarch_tdep): Define.
5189 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5190
5191 * Makefile.in (config.status): Also depend on configure.tgt
5192 and configure.host.
5193 (m68klinux-tdep.o): Update dependencies.
5194 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5195 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5196 (M68K_LINUX_JB_PC): Define.
5197 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5198 and take additional parameter.
5199 (m68k_linux_sigtramp_saved_pc): Update.
5200 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5201 m68k_linux_pc_in_sigtramp, in_plt_section,
5202 find_solib_trampoline_target.
5203 * config/m68k/tm-linux.h: Don't include any tm headers.
5204 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5205 (JB_ELEMENT_SIZE): Likewise.
5206 (JB_PC): Likewise.
5207 (GET_LONGJMP_TARGET): Likewise.
5208 (IN_SIGTRAMP): Likewise.
5209 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5210
eb2c22dc
MK
52112003-05-25 Mark Kettenis <kettenis@gnu.org>
5212
5213 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5214 (sparc32_push_arguments): Re-implement by calling
5215 sparc32_do_push_arguments.
5216
44b7b84e
MK
52172003-05-25 Mark Kettenis <kettenis@gnu.org>
5218
5219 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5220 SPARC_O1_REGNUM): New defines.
5221 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5222 (sparc32_store_return_value): New function.
5223 (sparc_extract_struct_value_address): Rewrite to operate on a
5224 regcache.
5225 (sparc_gdbarch_init): Don't set
5226 deprecated_extract_struct_value_address. Set
5227 extract_struct_value_address instead. Don't set
5228 deprecated_extract_return_value and deprecated_store_return_value
5229 for 32-bit targets. Set extract_return_value and
5230 store_return_value instead.
5231 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5232 DEPRECTAED_EXTRACT_RETURN_VALUE,
5233 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5234 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5235 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5236 (sparc_store_return_value): Remove prototype.
5237 (sparc32_store_return_value): New prototype.
5238 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5239 Adjust prototypes.
5240
f6ad61e3
MK
52412003-05-24 Mark Kettenis <kettenis@gnu.org>
5242
5243 * sparcnbsd-tdep.c: Include "gdb_string.h".
5244
b276f1bb
AC
52452003-05-23 Andrew Cagney <cagney@redhat.com>
5246
5247 * p-valprint.c (pascal_val_print): Replace extract_address with
5248 the inline equivalent extract_unsigned_integer.
5249 * jv-valprint.c (java_value_print): Ditto.
5250 * ada-valprint.c (ada_val_print_1): Ditto.
5251 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5252
e76c5fcc
TR
52532003-05-23 Theodore A. Roth <troth@openavr.org>
5254
5255 * blockframe.c (frameless_look_for_prologue): Remove unused
5256 after_prologue variable.
5257
2cdd89cb
MK
52582003-05-23 Mark Kettenis <kettenis@gnu.org>
5259
5260 * blockframe.c (get_pc_function_start): Rewrite to avoid
5261 asignments in if-statements.
5262
182d43bc
EZ
52632003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5264
5265 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 5266 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
5267 files, don't relocate absolute symbols (and do use mst_abs).
5268
e8f3fcdd
AC
52692003-05-23 Andrew Cagney <cagney@redhat.com>
5270
5271 * objc-lang.c: Include "gdb_assert.h".
5272 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5273 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5274 (gdb_check, gdb_check_fatal): Delete functions.
5275 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5276 gdb_assert.
5277 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5278 * Makefile.in (objc-lang.o): Update dependencies.
5279
3c23e6fb
ILT
52802003-05-22 Ian Lance Taylor <ian@airs.com>
5281
5282 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5283 with fprintf_filtered, not fprintf_unfiltered.
5284
af1342ab
AC
52852003-05-22 Andrew Cagney <cagney@redhat.com>
5286
5287 * stack.c (frame_info): Inline extract_address, replacing it with
5288 extract_unsigned_integer.
5289 * findvar.c (unsigned_pointer_to_address): Ditto.
5290 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5291 * dwarf2expr.c (dwarf2_read_address): Ditto.
5292 * frame.c (frame_pc_unwind): Update comment.
5293 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5294
47e242ec
JJ
52952003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5296
5297 * infptrace.c (detach): Call print_sys_errmsg rather than
5298 perror_with_name to issue warning message when errno is non-zero
5299 after calling ptrace detach.
5300
e2ac8128
JB
53012003-05-21 J. Brobecker <brobecker@gnat.com>
5302
5303 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5304 macro definitions from here...
5305 * hppa-tdep.c: ...to there.
5306
92b3541e
KB
53072003-05-20 Kevin Buettner <kevinb@redhat.com>
5308
5309 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5310 register_ptrace_addr(). Fix all callers.
5311
55809acb
AS
53122003-05-21 Andreas Schwab <schwab@suse.de>
5313
5314 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5315 dependencies.
5316 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5317 end.
5318 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5319 (_initialize_m68k_linux_tdep): New function.
5320 (m68k_linux_frame_saved_pc): Make static.
5321 (m68k_linux_extract_return_value): Likewise.
5322 (m68k_linux_store_return_value): Likewise.
5323 (m68k_linux_extract_struct_value_address): Likewise.
5324 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5325 Remove.
5326 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5327 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5328 (DEPRECATED_FRAME_SAVED_PC): Remove.
5329
0fbc10f7
KW
53302003-05-20 Kris Warkentin <kewarken@qnx.com>
5331
5332 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5333 regset numbering rather than our own.
5334
58da2eb2
DC
53352003-05-19 David Carlton <carlton@bactrian.org>
5336
5337 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5338
1fcb5155
DC
53392003-05-19 David Carlton <carlton@bactrian.org>
5340
5341 Partial fix for PR c++/827.
5342 * cp-support.h: Include symtab.h.
5343 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5344 * cp-namespace.c: Update contributors.
5345 (cp_lookup_symbol_nonlocal): New.
5346 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5347 (lookup_symbol_file): Ditto.
5348 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5349 * block.h: Declare block_scope, block_using, block_global_block.
5350 * block.c (block_scope): New.
5351 (block_using, block_global_block): Ditto.
5352 * Makefile.in (cp_support_h): Depend on symtab_h.
5353 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5354
5f9a71c3
DC
53552003-05-19 David Carlton <carlton@bactrian.org>
5356
5357 * language.h (struct language_defn): Add 'la_value_of_this'
5358 and 'la_lookup_symbol_nonlocal' members.
5359 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5360 lookup_symbol_static, lookup_symbol_global,
5361 lookup_symbol_aux_block.
5362 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5363 if we should search fields of this and how to do static/global
5364 lookup.
5365 (lookup_symbol_aux_block): Make extern.
5366 (basic_lookup_symbol_nonlocal): New.
5367 (lookup_symbol_static, lookup_symbol_global): Ditto.
5368 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5369 'la_lookup_symbol_nonlocal' members.
5370 * c-lang.c (c_language_defn, cplus_language_defn)
5371 (asm_language_defn, minimal_language_defn): Ditto.
5372 * jv-lang.c (java_language_defn): Ditto.
5373 * language.c (unknown_language_defn, auto_language_defn)
5374 (local_language_defn): Ditto.
5375 * m2-lang.c (m2_language_defn): Ditto.
5376 * objc-lang.c (objc_language_defn): Ditto.
5377 * scm-lang.c (scm_language_defn): Ditto.
5378 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5379 * p-lang.c (pascal_language_defn): Ditto for both.
5380 * Makefile.in (f-lang.o): Depend on value_h.
5381 (p-lang.o): Ditto.
5382
89a9d1b1
DC
53832003-05-19 David Carlton <carlton@bactrian.org>
5384
5385 * block.h: Declare block_static_block.
5386 * block.c (block_static_block): New.
5387 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5388 lookup_symbol_aux_local, calling block_static_block instead.
5389 (lookup_symbol_aux_local): Delete 'static_block' argument.
5390
eed3f8ab
DC
53912003-05-19 David Carlton <carlton@bactrian.org>
5392
5393 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5394
a09d8bda
ML
53952003-05-19 Michal Ludvig <mludvig@suse.cz>
5396
5397 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5398 register numbers mapping.
5399
69636828
AF
54002003-05-18 Adam Fedor <fedor@gnu.org>
5401
5402 * symtab.c (completion_list_objc_symbol): New function.
5403 (make_symbol_completion_list): Use it to add ObjC symbols
5404 when looking though the list.
5405 (language_search_unquoted_string): New function.
5406 (make_file_symbol_completion_list): Use it.
5407
55baeb84
AS
54082003-05-18 Andreas Schwab <schwab@suse.de>
5409
d0b45d99
AS
5410 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5411 dependencies.
5412 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5413 as m68k_linux_extract_return_value.
5414 (DEPRECATED_STORE_RETURN_VALUE): Define as
5415 m68k_linux_store_return_value.
5416 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5417 m68k_linux_extract_struct_value_address.
5418 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5419 get_next_frame, get_frame_base, get_frame_pc.
5420 (m68k_linux_frame_saved_pc): Use get_frame_base.
5421 (m68k_linux_extract_return_value): New function.
5422 (m68k_linux_store_return_value): New function.
5423 (m68k_linux_extract_struct_value_address): New function.
5424 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5425
55baeb84
AS
5426 * c-exp.y (typebase): Remove duplicate occurence of
5427 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 5428 of lookup_signed_typename.
55baeb84 5429
b6b08ebf
MK
54302003-05-18 Mark Kettenis <kettenis@gnu.org>
5431
5432 * dwarf2loc.c (find_location_expression): Change type of second
5433 argument to `size_t *'.
5434 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5435 for size variable.
5436
5ad1c190
DC
54372003-05-18 David Carlton <carlton@bactrian.org>
5438
5439 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5440 'linkage_name'. Add comment.
5441 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5442 'linkage_name'.
5443 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5444 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5445 (lookup_block_symbol): Ditto.
5446
b8b527c5
AC
54472003-05-16 Andrew Cagney <cagney@redhat.com>
5448
5449 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5450 * gdbarch.h, gdbarch.c: Re-generate.
5451 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5452 * TODO (REGISTER_BYTES): Delete reference.
5453 * alpha-tdep.c (alpha_gdbarch_init): Update.
5454 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5455 * x86-64-tdep.c (x86_64_init_abi): Update.
5456 * vax-tdep.c (vax_gdbarch_init): Update.
5457 * v850-tdep.c (v850_gdbarch_init): Update.
5458 * sparc-tdep.c (sparc_gdbarch_init): Update.
5459 * sh-tdep.c (sh_gdbarch_init): Update.
5460 * s390-tdep.c (s390_gdbarch_init): Update.
5461 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5462 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5463 (ns32k_gdbarch_init_32382): Update.
5464 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5465 * mcore-tdep.c (mcore_gdbarch_init): Update.
5466 * m68k-tdep.c (m68k_gdbarch_init): Update.
5467 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5468 * ia64-tdep.c (ia64_gdbarch_init): Update.
5469 * i386-tdep.c (i386_gdbarch_init): Update.
5470 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5471 * hppa-tdep.c (hppa_gdbarch_init): Update.
5472 * h8300-tdep.c (h8300_gdbarch_init): Update.
5473 * frv-tdep.c (frv_gdbarch_init): Update.
5474 * cris-tdep.c (cris_gdbarch_init): Update.
5475 * avr-tdep.c (avr_gdbarch_init): Update.
5476 * arm-tdep.c (arm_gdbarch_init): Update.
5477 * sparc-tdep.c (sparc_pop_frame): Update.
5478 * rs6000-tdep.c (rs6000_pop_frame): Update.
5479 * remote.c (init_remote_state): Update.
5480 (remote_prepare_to_store): Update.
5481 * remote-vx.c (vx_prepare_to_store): Update.
5482 * remote-sds.c (sds_fetch_registers): Update.
5483 (sds_prepare_to_store): Update.
5484 * remote-array.c: Update.
5485 * regcache.c (init_legacy_regcache_descr): Update.
5486 (init_regcache_descr): Update.
5487 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5488 (mips_o64_extract_return_value): Update.
5489 * irix5-nat.c (fetch_core_registers): Update.
5490 * irix4-nat.c (fetch_core_registers): Update.
5491 * i386-tdep.h: Update.
5492 * hppa-tdep.c (pa_do_registers_info): Update.
5493 (pa_do_strcat_registers_info): Update.
5494 * cris-tdep.c (cris_register_bytes_ok): Update.
5495 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5496 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5497 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5498 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5499 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5500 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5501 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5502 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5503 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5504 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5505 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5506 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5507 (REGISTER_BYTES_OK): Update.
5508 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5509 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5510
ee2842e2
ILT
55112003-05-16 Ian Lance Taylor <ian@airs.com>
5512
5513 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5514 (vax_print_insn, print_insn_arg): Remove static functions.
5515 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5516 print_insn_vax from opcodes library.
5517 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5518
973177d3
AC
55192003-05-15 Andrew Cagney <cagney@redhat.com>
5520
aaab4dba
AC
5521 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5522 * target.h (memory_breakpoint_from_pc): Delete declaration.
5523 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5524 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5525 * monitor.c (monitor_insert_breakpoint): Use
5526 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5527 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5528 * gdbarch.h, gdbarch.c: Re-generate.
5529 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5530 (sparc_gdbarch_init): Set breakpoint_from_pc to
5531 sparc_breakpoint_from_pc.
5532 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5533 (BREAKPOINT_FROM_PC): Define.
5534 (sparc_breakpoint_from_pc): Declare.
5535 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5536 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5537 (BREAKPOINT_FROM_PC): Define.
5538 (BREAKPOINT): Delete macro.
5539 * target.h: Update comment.
5540 * s390-tdep.c (s390_gdbarch_init): Update comments.
5541 * remote.c: Update comments.
5542 * remote-mips.c: Update comments.
5543 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5544 * mem-break.c: Update comment.
5545 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5546 (ia64_memory_insert_breakpoint): Update.
5547 * config/sparc/tm-sparc.h: Update comment.
5548 * config/pa/tm-hppa64.h: Update comment.
5549 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5550 (rs6000_breakpoint_from_pc): Update.
5551 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5552 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5553 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5554 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5555 (mips_breakpoint_from_pc): Update.
5556 (mips_dump_tdep): Update.
5557
e06963ff
AC
5558 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5559 * minsyms.c (lookup_minimal_symbol): Inline
5560 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5561
973177d3
AC
5562 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5563 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5564 * p-lang.c (pascal_printstr): Ditto.
5565 * objc-lang.c (objc_printstr): Ditto.
5566 * m2-lang.c (m2_printstr): Ditto.
5567 * jv-valprint.c (java_print_value_fields): Ditto.
5568 * f-lang.c (f_printstr): Ditto.
5569 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5570 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5571 for repeat_count_threshold.
5572 * Makefile.in (cp-valprint.o): Update dependencies.
5573
5ea2bd7f 55742003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5575
5ea2bd7f
JJ
5576 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5577 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
5578 they start with mov r2,r12. Support skipping over indirect stores
5579 of the input registers. Upon hitting a non-nop branch instruction
5580 or predicated instruction, bail out by setting lim_pc to the current
5581 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
5582 beyond our calculated value and we have trust_limit set,
5583 use the lim_pc value.
5584
cc8c88f3
AC
55852003-05-15 Andrew Cagney <cagney@redhat.com>
5586
5587 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5588 generic_find_dummy_frame.
5589 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5590 (deprecated_generic_find_dummy_frame): Update.
5591 (deprecated_read_register_dummy): Update.
5592 * frame.c (deprecated_generic_get_saved_register): Update.
5593
909cd28e
TR
55942003-05-15 Theodore A. Roth <troth@openavr.org>
5595
5596 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5597 (avr_gdbarch_init): Set breakpoint_from_pc method.
5598
b923b08d
AC
55992003-05-15 Andrew Cagney <cagney@redhat.com>
5600
5601 * regcache.c (build_regcache): Set deprecated_register_valid
5602 directly.
5603 (deprecated_grub_regcache_for_register_valid): Delete function.
5604 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5605 declaration.
5606
ae2f03ac 56072003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
5608
5609 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
5610 * symtab.c (lookup_symbol_aux): Delete calls to
5611 lookup_symbol_aux_minsyms.
5612 (lookup_symbol_aux_minsyms): Comment out function and
5613 prototype. Delete lookup by mangled name.
ae2f03ac 5614
18ec9831
KB
56152003-05-14 Kevin Buettner <kevinb@redhat.com>
5616
5617 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5618 correctly indicate an empty stack and ``stack_allocated'' to the
5619 indicate the number of elements initially allocated.
5620 (dwarf_expr_grow_stack): Simplify method for computing new
5621 stack size. Don't loop infinitely if ``stack_len'' is zero.
5622 (execute_stack_op): Move ``ctx->in_reg'' initialization
5623 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5624 be used in conjuction with DW_OP_piece. Revise error message
5625 accordingly.
5626
de18ac1f
TR
56272003-05-14 Theodore A. Roth <troth@openavr.org>
5628
5629 * MAINTAINERS: Update my email address.
5630 * avr-tdep.c: Ditto.
5631
176620f1
EZ
56322003-05-14 Elena Zannoni <ezannoni@redhat.com>
5633
5634 * symtab.h (enum domain_enum): Rename from namespace_enum.
5635 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5636 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5637 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5638 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5639 TYPES_NAMESPACE, METHODS_NAMESPACE.
5640 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5641 (struct symbol, struct partial_symbol): Rename field
5642 'namespace_enum namespace' to 'domain_enum domain'.
5643 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5644 Delete old define kludge for namespace.
5645
5646 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5647 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5648 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5649 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5650 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5651 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5652 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5653 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5654 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5655 occurrences of the above.
5656
b7f31508
ILT
56572003-05-14 Ian Lance Taylor <ian@airs.com>
5658
5659 * Makefile.in (install-only): Use $(SHELL) when running
5660 mkinstalldirs.
5661
2fdbdd39
ILT
56622003-05-13 Ian Lance Taylor <ian@airs.com>
5663
a208d82c
ILT
5664 * MAINTAINERS (write after approval): Add myself.
5665
2fdbdd39
ILT
5666 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5667 second and third arguments.
5668 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5669 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5670
fbd9dcd3
AC
56712003-05-13 Andrew Cagney <cagney@redhat.com>
5672
5673 * defs.h (store_address): Delete declaration.
5674 findvar.c (store_address): Delete function.
5675 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5676 store_unsigned_integer.
5677 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5678 * v850-tdep.c (v850_push_arguments): Ditto.
5679 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5680 * sh-tdep.c (sh64_get_saved_register): Ditto.
5681 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5682 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5683 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5684 (mips_get_saved_register): Ditto.
5685 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5686 (find_func_descr, ia64_push_arguments): Ditto.
5687 * i386-tdep.c (i386_push_arguments): Ditto.
5688 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5689 * frv-tdep.c (frv_push_arguments): Ditto.
5690 * frame.c (legacy_saved_regs_prev_register): Ditto.
5691 (deprecated_generic_get_saved_register): Ditto.
5692 * findvar.c (unsigned_address_to_pointer): Ditto.
5693 * dwarf2read.c (dwarf2_const_value): Ditto.
5694 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5695 * alpha-tdep.c (alpha_push_arguments): Ditto.
5696
6760f9e6
JB
56972003-05-12 J. Brobecker <brobecker@gnat.com>
5698
5699 * NEWS: Mention that the hppa-hpux port has been partially
5700 multiarched (32bit ABIT only, so far).
5701
30e221b4
AC
57022003-05-11 Andrew Cagney <cagney@redhat.com>
5703
5704 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5705 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5706 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5707 sim/testsuite/sim/arm/misaligned2.ms, and
5708 sim/testsuite/sim/arm/misaligned3.ms.
5709 * disasm.h (struct ui_file): Add opaque struct declaration.
5710 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5711 * frame.h (struct ui_file): Ditto.
5712
dea7f9ba
MK
57132003-05-11 Mark Kettenis <kettenis@gnu.org>
5714
5715 * value.h: Pretty print.
5716
01986c48
MK
57172003-05-10 Mark Kettenis <kettenis@gnu.org>
5718
5719 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5720
123a958e
AC
57212003-05-08 Andrew Cagney <cagney@redhat.com>
5722
5723 * regcache.h (max_register_size): Delete declaration.
5724 * regcache.c (max_register_size): Delete function.
5725 (struct regcache_descr): Delete field "max_register_size".
5726 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5727 registers fit in MAX_REGISTER_SIZE.
5728 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5729 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5730 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5731 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5732 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5733 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5734 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5735 * dve3900-rom.c, hppa-tdep.c: Ditto.
5736
eb294659
DC
57372003-05-08 David Carlton <carlton@math.stanford.edu>
5738
5739 * valops.c (push_word): Fix typo.
5740
d9d9c31f
AC
57412003-05-08 Andrew Cagney <cagney@redhat.com>
5742
5743 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5744 * gdbarch.h: Re-generate.
5745 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5746 (legacy_max_register_raw_size): Delete declaration.
5747 * regcache.c (legacy_max_register_raw_size): Delete function.
5748 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5749 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5750 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5751 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5752 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5753 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5754 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5755 * findvar.c, dwarf2cfi.c: Ditto.
5756
22540ece
AC
57572003-05-08 Andrew Cagney <cagney@redhat.com>
5758
5759 * mips-tdep.c (read_signed_register): New function, moved to here
5760 from "regcache.c".
5761 (read_signed_register_pid): Ditto.
5762 * regcache.c (read_signed_register_pid): Delete function, moved to
5763 "mips-tdep.c".
5764 (read_signed_register): Ditto.
5765 * regcache.h (read_signed_register): Delete declaration.
5766 (read_signed_register_pid): Delete declaration.
5767
0c92afe8
AC
57682003-05-08 Andrew Cagney <cagney@redhat.com>
5769
5770 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5771 * gdbarch.h: Re-generate.
5772 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5773 (legacy_max_register_virtual_size): Delete declaration.
5774 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5775 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5776 * tracepoint.c (memrange_sortmerge): Ditto.
5777 * sparc-tdep.c (sparc_print_registers): Ditto.
5778 * regcache.c (legacy_max_register_virtual_size): Delete function.
5779
6037b830
JB
57802002-05-08 J. Brobecker <brobecker@gnat.com>
5781
5782 * fork-child.c (escape_bang_in_quoted_argument): New function.
5783 (fork_inferior): Escape '!' characters in quoted arguments
5784 only when needed.
5785
5d62c8b1
JB
57862003-05-08 J. Brobecker <brobecker@gnat.com>
5787
5788 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5789 the language of the CU is not currently supported by GDB.
5790
20a0e81d
JB
57912003-05-08 J. Brobecker <brobecker@gnat.com>
5792
5793 * defs.h (language): Add language_minimal enum value.
5794 * c-lang.c (minimal_language_defn): New language definition.
5795 (_initialize_c_language): Add the new minimal language to the list
5796 of languages known to GDB.
5797
710ee10a
KB
57982003-05-08 Kevin Buettner <kevinb@redhat.com>
5799
5800 * frame.c (get_frame_type): Don't attempt to lazily initialize
5801 frame's unwinder for legacy frames.
5802
1750fa04
AC
58032003-05-07 Andrew Cagney <cagney@redhat.com>
5804
5805 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5806 and "regcache" parameters.
5807 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5808
ddf9f258 58092003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
5810
5811 * dwarf2read.c (dwarf_decode_lines): Only use output of
5812 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
5813 the current address.
5814
87767c29
AC
58152003-05-07 Andrew Cagney <cagney@redhat.com>
5816
5817 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5818 code.
5819
5e7b2f39
JB
58202003-05-07 Jim Blandy <jimb@redhat.com>
5821
5822 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5823 'maint info symtabs' and 'maint info psymtabs'.
5824 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5825 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5826 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5827 Declarations updated.
5828 * maint.c (maintenance_list_command): Delete.
5829 (_initialize_maint_cmds): Update calls to add_cmd.
5830 * gdbcmd.h (maintenancelistlist): Delete declaration.
5831 * cli/cli-cmds.c (maintenancelistlist): Delete.
5832 (init_cmd_lists): Don't initialize it.
5833 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5834
f6684c31
AC
58352003-05-07 Andrew Cagney <cagney@redhat.com>
5836
5837 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5838 "regcache".
5839 (d10v_print_registers_info): Update.
5840 (d10v_dmap_register, d10v_imap_register): Delete functions.
5841 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5842 and "imap_register".
5843 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5844 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5845 * arch-utils.c (generic_remote_translate_xfer_address): Add
5846 "regcache" and "gdbarch" parameters.
5847 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5848 parameter. Change class to multi-arch.
5849 * gdbarch.h, gdbarch.c: Re-generate.
5850 * remote.c (remote_xfer_memory): Use
5851 gdbarch_remote_translate_xfer_address.
8ffd9b1b 5852
e4846b08
JJ
58532003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5854
5855 * infrun.c (prev_pc): Move declaration ahead of proceed().
5856 (proceed): Refresh prev_pc value before resuming.
5857 (stop_stepping): Remove code to refresh prev_pc.
5858
6b71b8ac
KW
58592003-05-06 Kris Warkentin <kewarken@qnx.com>
5860
5861 * nto-tdep.c: Removed stray comment.
5862
47979a4b
KW
58632003-05-06 Kris Warkentin <kewarken@qnx.com>
5864
5865 * i386-nto-tdep.c: Fix old K&R function definitions.
5866 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5867 Also change add_show_from_set() call to add_setshow_cmd().
5868 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5869
00905d52
AC
58702003-05-05 Andrew Cagney <cagney@redhat.com>
5871
5872 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5873 (fprint_dummy_frames): New function.
5874 (maintenance_print_dummy_frames): New function.
5875 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5876 * frame.c (fprint_frame_id): Make global.
5877 * frame.h (fprint_frame_id): Declare.
5878 * Makefile.in (dummy-frame.o): Update dependencies.
5879
b1e29e33
AC
58802003-05-05 Andrew Cagney <cagney@redhat.com>
5881
5882 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5883 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5884 SIZEOF_CALL_DUMMY_WORDS.
5885 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5886 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5887 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5888 CALL_DUMMY_BREAKPOINT_OFFSET.
5889 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5890 CALL_DUMMY_START_OFFSET.
5891 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5892 * gdbarch.h, gdbarch.c: Re-generate.
5893 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5894 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5895 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5896 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5897 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5898 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5899 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5900 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5901 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5902 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5903 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5904 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5905 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5906 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5907 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
5908
59092003-05-05 Kris Warkentin <kewarken@qnx.com>
5910
5911 * configure.tgt: Add i[3456]86-*-nto*.
5912 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5913 * nto-tdep.c: New file. Neutrino target support routines.
5914 * nto-tdep.h: New file. Neutrino target header.
5915 * config/tm-qnxnto.h: New file.
5916 * config/i386/i386nto.mt: New file.
5917 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 5918
0ce3d317
AC
59192003-05-04 Andrew Cagney <cagney@redhat.com>
5920
5921 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5922 (load_infrun_state): Ditto.
5923 (struct thread_info): Drop "prev_func_name" field.
5924 * thread.c (load_infrun_state): Update.
5925 (save_infrun_state): Update.
5926 * infrun.c (prev_func_name): Delete variable.
5927 (init_wait_for_inferior): Do not clear prev_func_name.
5928 (stop_stepping, keep_going, context_switch): Do not swap
5929 prev_func_name.
5930 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5931 instead of PC_IN_SIGTRAMP.
5932
46654a5b
AC
59332003-05-04 Andrew Cagney <cagney@redhat.com>
5934
5935 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5936 REGISTER_BYTE with register_offset_hack.
5937 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5938 that REGISTER_BYTE is consistent with the regcache.
5939 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5940 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 5941
14b08c1b
MK
59422003-05-04 Mark Kettenis <kettenis@gnu.org>
5943
04c8243f
MK
5944 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5945 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5946
14b08c1b
MK
5947 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5948
c7a11e01
JB
59492003-05-03 J. Brobecker <brobecker@gnat.com>
5950
5951 From Thierry Schneider <tpschneider1@yahoo.com>
5952 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5953 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5954 (mi-cmd-symbol.o): Add rule.
5955
7043d8dc
AC
59562003-05-03 Andrew Cagney <cagney@redhat.com>
5957
5958 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5959 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5960 * gdbarch.h, gdbarch.c: Re-generate.
5961 * d10v-tdep.c (d10v_push_dummy_code): New function.
5962 (d10v_gdbarch_init): Set push_dummy_code.
5963 * infcall.c (legacy_push_dummy_code): New function.
5964 (generic_push_dummy_code): New function.
5965 (push_dummy_code): New function.
5966 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5967 instead of dummy_addr, to push_dummy_call. Move call to
5968 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5969 switch.
5970 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5971
92bf2b80
AC
59722003-05-03 Andrew Cagney <cagney@redhat.com>
5973
5974 * disasm.h (print_insn): Declare.
5975 * disasm.c (init_gdb_disassemble_info): New function.
5976 (gdb_disassembly): Call init_gdb_disassemble_info.
5977 (gdb_print_insn): New function.
5978 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5979 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5980 * mcore-tdep.c: Include "disasm.h"
5981 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5982 * d10v-tdep.c: Include "disasm.h".
5983 (display_trace): Call gdb_print_insn, instead of print_insn.
5984 (print_insn): Delete function.
5985 * printcmd.c: Include "disasm.h".
5986 (print_insn): Delete function.
5987 (print_formatted): Call gdb_print_insn, instead of print_insn.
5988 * Makefile.in (printcmd.o): Update dependencies.
5989 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 5990
27d94c49
AC
59912003-05-02 Andrew Cagney <cagney@redhat.com>
5992
82de1e5b
AC
5993 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5994 PC_REGNUM, re-indent.
5995 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5996 PC_REGNUM isn't set.
5997
27d94c49
AC
5998 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5999 * gdbarch.h, gdbarch.c: Re-generate.
6000 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6001 register_virtual_size, pc_regnum, or register_bytes.
6002 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6003 (d10v_register_type): Use D10V_PC_REGNUM.
6004 (d10v_print_registers_info, d10v_read_pc): Ditto.
6005 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6006 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6007
a9c0dc7f
DC
60082003-05-02 David Carlton <carlton@bactrian.org>
6009
6010 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6011 the name with mstrsave.
6012
e33d66ec
EZ
60132003-05-02 Elena Zannoni <ezannoni@redhat.com>
6014
6015 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6016 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6017 (host_charset_name, target_charset_name): New vars for use by
6018 set/show commands.
6019 (host_charset_enum, target_charset_enum): New enums for set/show
6020 commands.
6021 (set_charset_sfunc, set_host_charset_sfunc,
6022 set_target_charset_sfunc): New functions.
6023 (set_host_charset, set_target_charset): Make static.
6024 (list_charsets, set_host_charset_command,
6025 set_target_charset_command): Delete functions.
6026 (show_charset_command): Rewrite as....
6027 (show_charset): Hook this up with the set/show command mechanism.
6028 (_initialize_charset): Change names of charsets to match the
6029 set/show enums. Use host_charset_name and target_charset_name.
6030 Use set/show mechanism for charset, host-charset, target-charset
6031 commands. Do not make 'show host-charset' and 'show
6032 target-charset' be aliases of 'show charset'.
6033
6034 * charset.h (set_host_charset, set_target_charset): Don't export,
6035 they are not used outside the file.
6036
2b6fd0d8
AC
60372003-05-01 Andrew Cagney <cagney@redhat.com>
6038
6039 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6040 (gdb_disassembly): Make "di" non static, always initialize and
6041 cleanup. Always use dis_asm_read_memory.
6042 (gdb_dis_asm_read_memory): Delete function.
6043
6ae2f580
AC
60442003-05-01 Andrew Cagney <cagney@redhat.com>
6045
6046 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6047 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6048
810ecf9f
AC
60492003-04-30 Andrew Cagney <cagney@redhat.com>
6050
6051 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6052 "tm_print_insn_info".
6053 (TARGET_PRINT_INSN_INFO): Delete macro.
6054 (dis_asm_read_memory): Delete function declaration.
6055 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6056 (tm_print_insn_info): Delete variable definition.
6057 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6058 * gdbarch.h, gdbarch.c: Re-generate.
6059 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6060 "deprecated_tm_print_insn_info".
6061 * mcore-tdep.c (mcore_dump_insn): Ditto.
6062 * mips-tdep.c (mips_gdbarch_init): Ditto.
6063 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6064 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6065 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6066 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6067 instead of TARGET_PRINT_INSN_INFO, add comment.
6068 * s390-tdep.c (s390_get_frame_info): Instead of
6069 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6070 (s390_check_function_end, s390_is_sigreturn): Ditto.
6071 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6072 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6073 * disasm.c: Include "gdbcore.h".
6074 (_initialize_disasm): New function, initialize
6075 "deprecated_tm_print_insn_info".
6076 (deprecated_tm_print_insn_info): New variable.
6077 (dis_asm_read_memory): Moved from "corefile.c", made static.
6078 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6079 * Makefile.in (disasm.o): Update dependencies.
6080
07020390
AC
60812003-04-30 Andrew Cagney <cagney@redhat.com>
6082
6083 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6084
a9fa03de
AF
60852003-04-29 Adam Fedor <fedor@gnu.org>
6086
6087 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6088 * infcall.c (find_function_addr): Make non-static.
6089 * infcall.h (find_function_addr): Declare.
6090 * Makefile.in (eval.o): Update dependencies.
6091
1bae87b9
AF
60922003-04-28 Adam Fedor <fedor@gnu.org>
6093
6094 * symtab.c (symbol_find_demangled_name): Check for and demangle
6095 ObjC symbols.
6096 (symbol_init_demangled_name): Init for language_objc as well.
6097
0ba6dca9
AC
60982003-04-28 Andrew Cagney <cagney@redhat.com>
6099
6100 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6101 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6102 * gdbarch.h, gdbarch.c: Re-generate.
6103 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6104 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6105 * inferior.h (deprecated_read_fp): Rename read_fp.
6106 (generic_target_read_fp): Delete declaration.
6107 * regcache.c (generic_target_read_fp): Delete function.
6108 (deprecated_read_fp): Replace read_fp, use
6109 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6110 * d10v-tdep.c (d10v_read_fp): Delete function.
6111 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6112
6113 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6114 deprecated_target_read_fp to generic_target_read_fp.
6115 * sh-tdep.c (sh_gdbarch_init): Ditto.
6116 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6117 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6118 * frv-tdep.c (frv_gdbarch_init): Ditto.
6119
6120 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6121 deprecated_fp_regnum.
6122 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6123 * vax-tdep.c (vax_gdbarch_init): Ditto.
6124 * v850-tdep.c (v850_gdbarch_init): Ditto.
6125 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6126 * sh-tdep.c (sh_gdbarch_init): Ditto.
6127 * s390-tdep.c (s390_gdbarch_init): Ditto.
6128 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6129 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6130 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6131 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6132 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6133 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6134 * i386-tdep.c (i386_gdbarch_init): Ditto.
6135 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6136 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6137 * frv-tdep.c (frv_gdbarch_init): Ditto.
6138 * cris-tdep.c (cris_gdbarch_init): Ditto.
6139 * avr-tdep.c (avr_gdbarch_init): Ditto.
6140 * arm-tdep.c (arm_gdbarch_init): Ditto.
6141 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6142
6143 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6144 * v850-tdep.c (v850_gdbarch_init): Ditto.
6145 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6146 * sh-tdep.c (sh_gdbarch_init): Ditto.
6147 * s390-tdep.c (s390_gdbarch_init): Ditto.
6148 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6149 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6150 * mips-tdep.c (mips_gdbarch_init): Ditto.
6151 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6152 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6153 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6154 * frv-tdep.c (frv_gdbarch_init): Ditto.
6155 * avr-tdep.c (avr_gdbarch_init): Ditto.
6156 * arm-tdep.c (arm_gdbarch_init): Ditto.
6157
6158 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6159 DEPRECATED_FP_REGNUM.
6160 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6161 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6162 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6163 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6164 (sparc32_register_virtual_type): Ditto.
6165 * sh-tdep.c (sh64_frame_chain): Ditto.
6166 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6167 (sh_nofp_frame_init_saved_regs): Ditto.
6168 (sh64_nofp_frame_init_saved_regs): Ditto.
6169 (sh_fp_frame_init_saved_regs): Ditto.
6170 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6171 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6172 * procfs.c (procfs_fetch_registers): Ditto.
6173 (procfs_store_registers): Ditto.
6174 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6175 (store_inferior_registers, fetch_core_registers): Ditto.
6176 (fetch_kcore_registers, clear_regs): Ditto.
6177 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6178 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6179 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6180 * nlm/i386.c (do_status): Ditto.
6181 * mipsv4-nat.c (supply_gregset): Ditto.
6182 * mips-tdep.c: Ditto for comments.
6183 * mips-nat.c (fetch_inferior_registers): Ditto.
6184 (store_inferior_registers, fetch_core_registers): Ditto.
6185 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6186 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6187 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6188 (i386_do_pop_frame, i386_register_type): Ditto.
6189 * hppa-tdep.c (hppa_frame_chain): Ditto.
6190 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6191 (hppa_pop_frame, hppa_read_fp): Ditto.
6192 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6193 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6194 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6195 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6196 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6197 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6198 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6199 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6200 * blockframe.c: Ditto for comments.
6201 * arch-utils.h: Ditto for comments.
6202 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6203 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6204 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6205 * alpha-tdep.h: Ditto for comments.
6206 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6207 (alpha_cannot_store_register): Ditto.
6208 (alpha_push_dummy_frame): Ditto.
6209 * alpha-nat.c (supply_gregset): Ditto.
6210
6211 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6212 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6213 * config/sparc/tm-sparc.h: Update comment.
6214
6215 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6216 deprecated_read_fp instead of TARGET_READ_FP.
6217 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6218 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6219 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6220 deprecated_read_fp instead of read_fp.
6221 * s390-tdep.c (s390_push_arguments): Ditto.
6222 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6223 * frame.h: Ditto in comments.
6224 * frame.c (legacy_get_prev_frame): Ditto.
6225 * dummy-frame.c (dummy_frame_this_id): Ditto.
6226 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6227
d7a27068
AC
62282003-04-28 Andrew Cagney <cagney@redhat.com>
6229
6230 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6231 * gdbarch.h, gdbarch.c: Re-generate.
6232 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6233 * vax-tdep.c (_initialize_vax_tdep): Update.
6234 * v850-tdep.c (_initialize_v850_tdep): Update.
6235 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6236 * s390-tdep.c (_initialize_s390_tdep): Update.
6237 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6238 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6239 * mips-tdep.c (_initialize_mips_tdep): Update.
6240 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6241 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6242 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6243 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6244 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6245 * frv-tdep.c (_initialize_frv_tdep): Update.
6246 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6247 (_initialize_cris_tdep): Update.
6248 * arch-utils.c (legacy_print_insn): Update.
6249 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6250
d2630e69
AF
62512003-04-26 Adam Fedor <fedor@gnu.org>
6252
6253 * linespec.c (decode_objc): New function to decode ObjC calls
6254 (decode_line_1): Check for ObjC calls (using decode_objc)
6255 * Makefile (linespec.o): Update dependencies.
6256
3086aeae
DJ
62572003-04-26 Daniel Jacobowitz <drow@mvista.com>
6258
6259 * breakpoint.h (struct breakpoint_ops): New.
6260 (struct breakpoint): Add ops member.
6261
6262 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6263 (mention): Use new breakpoint ops member.
6264 (set_raw_breakpoint): Initialize ops field to NULL.
6265 (print_exception_catchpoint, print_one_exception_catchpoint)
6266 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6267 (gnu_v3_exception_catchpoint_ops): New.
6268 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6269
1fbec6c3
AF
62702003-04-25 Adam Fedor <fedor@gnu.org>
6271
6272 * Makefile.in (COMMON_OBS): Add objc-lang.o
6273
0ef21242
AC
62742003-04-25 Andrew Cagney <cagney@redhat.com>
6275
6276 * d10v-tdep.c (print_insn): Delete function.
6277 (display_trace): Use TARGET_PRINT_INSN.
6278 (_initialize_d10v_tdep): Do not set tm_print_insn.
6279 (d10v_gdbarch_init): Set print_insn.
6280
f75493ed
AC
62812003-04-25 Andrew Cagney <cagney@redhat.com>
6282
6283 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6284 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6285 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6286 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6287 (nr_dmap_regs, a0_regnum): ... new functions.
6288 (d10v_print_registers_info): Use a0_regnum, use register_size.
6289 (d10v_register_byte): Delete function.
6290 (d10v_register_raw_size): Delete function.
6291 (d10v_register_type): Use a0_regnum.
6292 (d10v_print_registers_info): Use a0_regnum.
6293 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6294 (d10v_gdbarch_init): Do not set register_byte or
6295 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6296 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6297 extract_address.
6298 (trace_command): Use XCALLOC.
6299 (print_insn): Delete reference to tm_print_insn.
6300 (saved_regs_unwinder): Use store_unsigned_integer instead of
6301 store_address.
6302 * frame.h (FRAME_OBSTACK_CALLOC): Define
6303
2202b100
DC
63042003-04-25 David Carlton <carlton@bactrian.org>
6305
6306 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6307
4e45ca2e
AF
63082003-04-24 Adam Fedor <fedor@gnu.org>
6309
6310 * objc-lang.c: Include "valprint.h"
6311 * Makefile.in (objc-lang.o): Update dependencies.
6312
93de3e7f
AF
63132003-04-24 Adam Fedor <fedor@gnu.org>
6314
8ffd9b1b 6315 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
6316 architecture dependant compilation and mark as unimplemented
6317 (until they get put in the gdbarch vector).
6318
0f20eeea
DC
63192003-04-23 David Carlton <carlton@bactrian.org>
6320
6321 * cp-support.c (cp_find_first_component): Accept 'operator' in
6322 more locations.
6323
74cfe982
AC
63242003-04-23 Andrew Cagney <cagney@redhat.com>
6325
6326 * infcall.c (call_function_by_hand): Eliminate redundant
6327 indentation. Move "saved_async" and "old_cleanups" to where they
6328 are needed.
8ffd9b1b 6329
52557533
AC
63302003-04-23 Andrew Cagney <cagney@redhat.com>
6331
6332 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6333 and "buffer". Move the "name" code to where it is needed.
6334
158775de
AC
63352003-04-23 Andrew Cagney <cagney@redhat.com>
6336
6337 * infcall.c (call_function_by_hand): Move variables "start_sp",
6338 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6339 code to ON_STACK switch branch.
8ffd9b1b 6340
ebc7896c
AC
63412003-04-23 Andrew Cagney <cagney@redhat.com>
6342
6343 * infcall.c (call_function_by_hand): Make declaration of "i",
6344 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6345 lint.
6346
d727590f
AC
63472003-04-23 Andrew Cagney <cagney@redhat.com>
6348
6349 * infcall.c (call_function_by_hand): Delete variable
6350 "n_method_args". Localize "param_type"'s declaration to the loop
6351 that it is used. Reinstate code assigning to said variable -
6352 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6353 Rationalize code using "param_type".
6354
d585e13a
AC
63552003-04-22 Andrew Cagney <cagney@redhat.com>
6356
6357 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6358 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6359 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6360 to DEPRECATED_PUSH_RETURN_ADDRESS.
6361
051caad9
KB
63622003-04-22 Kevin Buettner <kevinb@redhat.com>
6363
6364 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6365 on the DWARF2 register number prior to fetching a register.
6366
77296879
JB
63672003-04-22 J. Brobecker <brobecker@gnat.com>
6368
6369 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6370 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 6371 this macro was always set to 0.
77296879
JB
6372 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6373 considering the fact that this macro was always set to 0.
6374 * hppa-tdep.h (hppa_store_return_value): Likewise.
6375 (hppa_extract_return_value): Likewise.
6376
4252f1df
JB
63772003-04-22 J. Brobecker <brobecker@gnat.com>
6378
6379 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6380 the hppa-pro target only.
6381
14604c6b
JB
63822003-04-21 J. Brobecker <brobecker@gnat.com>
6383
6384 Ongoing multi-arch conversion effort for HP/UX:
6385 * config/pa/tm-hppa.h: Move all macro that are no longer
6386 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6387 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6388
77eb01d1
JB
63892003-04-21 J. Brobecker <brobecker@gnat.com>
6390
6391 * config/pa/tm-hppa.h: Obsolete a section that was only used
6392 for hppa-pro.
6393
61995b3b
JB
63942003-04-21 J. Brobecker <brobecker@gnat.com>
6395
6396 Ongoing multi-arch conversion for HP/UX.
6397 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6398 if already defined (allows hppa64 to stay non-multiarched for now).
6399 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6400
4aa79dcc
AC
64012003-04-21 Andrew Cagney <cagney@redhat.com>
6402
6403 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6404
0f751ff2
AC
64052003-04-21 Andrew Cagney <cagney@redhat.com>
6406
6407 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6408 "i386_num_mmx_regs".
6409
04714b91
AC
64102003-04-21 Andrew Cagney <cagney@redhat.com>
6411
6412 * infcall.c: New file.
6413 * infcall.h: New file.
6414 * valarith.c: Include "infcall.h".
6415 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6416 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6417 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6418 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6419 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6420 (SFILES): Add "infcall.c"
6421 (COMMON_OBS): Add "infcall.o".
6422 (infcall.o): Specify dependencies.
6423 * value.h (call_function_by_hand): Delete declaration.
6424 * inferior.h (run_stack_dummy): Delete declaration.
6425 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6426 (run_stack_dummy): Move to "infcall.c", merged into
6427 call_function_by_hand.
6428 * valops.c (call_function_by_hand): Moved to "infcall.c".
6429 (find_function_addr, value_arg_coerce): Ditto.
6430 (unwindonsignal_p, coerce_float_to_double): Ditto.
6431 (_initialize_valops): Move "set/show coerce-float-to-double", and
6432 "set/show unwindonsignal" commands to "infcall.c".
6433 * v850-tdep.c, target.h: Update comments.
6434 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6435 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6436 (sh64_init_extra_frame_info): Update comments.
6437 * mn10300-tdep.c: Update comments.
6438 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6439 * config/sparc/tm-sparc.h: Update comments.
6440 * breakpoint.h: Update comments.
6441 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6442 * arm-tdep.c: Update comment.
6443
f9d3c2a8
MK
64442003-04-19 Mark Kettenis <kettenis@gnu.org>
6445
c40e1eab
MK
6446 * i386-tdep.c (i386_num_register_names): New variable.
6447 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6448 (MM0_REGNUM): Remove redundant parentheses in define.
6449 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6450 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6451 i386_mxcsr_regnum_p): Remove redundant parentheses.
6452 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 6453
94ea66b3
MK
6454 * i386-tdep.c (i386_extract_return_value,
6455 i386_store_return_value): Correct check for availability of
6456 floating-point registers.
6457
54299a1d
MK
6458 * i386-tdep.c (i386_frame_num_args): Remove function.
6459 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6460
c86c27af
MK
6461 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6462 mmx_regnum_to_fp_regnum. Adjust all callers.
6463
f9d3c2a8
MK
6464 * i386-tdep.c (i386_get_longjmp_target): Use
6465 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6466 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6467 extract_address.
6468
94ba74a9
MK
64692003-04-19 Mark Kettenis <kettenis@gnu.org>
6470
6471 * core-regset.c: Update comments to reflect reality. Re-order
6472 includes.
6473 (fetch_core_registers): Use switch instead of if. Remove
6474 redundant prototype.
6475
4074e13c
JB
64762003-04-18 Jim Blandy <jimb@redhat.com>
6477
6478 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 6479 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 6480
e3ab4aba
RH
64812003-04-17 Richard Henderson <rth@redhat.com>
6482
6483 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6484
627bf7c1
EZ
64852003-04-17 Michael Snyder <msnyder@redhat.com>
6486 Karen Bennet <bennet@redhat.com>
6487
6488 Committed by Elena Zannoni <ezannoni@redhat.com>
6489 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 6490
514621a9
EZ
64912003-04-17 Elena Zannoni <ezannoni@redhat.com>
6492
6493 * values.c (value_being_returned): Don't fetch the return
fbe586ae 6494 value if the return type is void.
514621a9 6495
b4acd559
JJ
64962003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6497
6498 * thread-db.c: Reindented.
8ffd9b1b 6499
530b167e 65002003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6501
6502 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6503 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
6504 as types.
6505
0a48e7e8
MS
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
8ffd9b1b 6529
ab9fe00e
KB
65302003-04-16 Kevin Buettner <kevinb@redhat.com>
6531
610a3745 6532 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
6533 the size of ``long double'' to 16, instead of 8.
6534
e64a344c
MK
65352003-04-16 Mark Kettenis <kettenis@gnu.org>
6536
6537 * i386-linux-nat.c: Add some whitespace to make things more
6538 readable.
6539 (fetch_register, store_register, fetch_inferior_registers,
6540 store_inferior_registers): Get rid of assignment in if-statement.
6541 (store_register): Fix typo in error message.
6542
25d41031
AC
65432003-04-16 Andrew Cagney <cagney@redhat.com>
6544
6545 * utils.c (xmmalloc): Always allocate something, matches
6546 libiberty/xmalloc's semantics.
6547 (xmrealloc, xmcalloc): Ditto.
6548
c50901fd
AC
65492003-04-16 Andrew Cagney <cagney@redhat.com>
6550
6551 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6552 update comments.
6553 (get_frame_type): Initialize unwind and type when needed.
6554 (get_frame_id, frame_register_unwind): Ditto.
6555
f81824a9
AC
65562003-04-16 Andrew Cagney <cagney@redhat.com>
6557
6558 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6559 obsolete.
6560 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6561 * sparcl-stub.c: Obsolete file.
6562 * config/sparc/tm-sparclet.h: Obsolete file.
6563 * sparclet-stub.c: Obsolete file.
6564 * sparclet-rom.c: Obsolete file.
6565 * sparcl-tdep.c: Obsolete file.
6566 * config/sparc/tm-sparclite.h: Obsolete file.
6567 * config/sparc/sparclite.mt: Obsolete file.
6568 * config/sparc/sparclet.mt: Obsolete file.
6569 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6570 sparc86x-*-* obsolete.
6571
9219021c
DC
65722003-04-15 David Carlton <carlton@math.stanford.edu>
6573
6574 * Makefile.in (SFILES): Add cp-namespace.c.
6575 (COMMON_OBS): Add cp-namespace.o.
6576 (block.o): Depend on gdb_obstack_h and cp_support_h.
6577 (buildsym.o): Depend on cp_support_h.
6578 (cp-namespace.o): New.
6579 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6580 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6581 (dwarf2read.o): Depend on cp_support_h.
6582 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6583 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6584 processing_current_namespace.
6585 (read_namespace): Update processing_current_namespace; check for
6586 anonymous namespaces.
6587 (dwarf2_name): New function.
6588 (dwarf2_extension): Ditto.
6589 * cp-support.h: Update copyright, contributors.
6590 Add inclusion guards.
6591 Add opaque declaration for structs obstack, block, symbol.
6592 (struct using_direct): New struct.
6593 Add declarations for cp_find_first_component,
6594 cp_entire_prefix_len, processing_has_namespace_info,
6595 processing_current_namespace, cp_is_anonymous,
6596 cp_add_using_directive, cp_initialize_namespace,
6597 cp_finalize_namespace, cp_set_block_scope,
6598 cp_scan_for_anonymous_namespaces.
6599 * cp-namespace.c: New file.
6600 * cp-support.c: Update copyright.
6601 Include ctype.h, gdb_assert.h, gdbcmd.h.
6602 New variable maint_cplus_cmd_list.
6603 (cp_find_first_component): New function.
6604 (cp_entire_prefix_len, maint_cplus_command)
6605 (first_component_command, _initialize_cp_support): Ditto.
6606 * buildsym.c: Include cp-support.h.
6607 New variable using_list.
6608 (add_symbol_to_list): Check for anonymous namespaces.
6609 (finish_block): Set block's scope.
6610 (start_symtab): Initialize C++ namespace support.
6611 (end_symtab): Finalize C++ namespace support.
6612 * block.h: Add opaque declarations for structs
6613 block_namespace_info, using_direct, and obstack.
6614 Add declarations for block_set_scope and block_set_using.
6615 (struct block): Add 'language_specific' member.
6616 (BLOCK_NAMESPACE): New macro.
6617 * block.c: Include gdb_obstack.h and cp-support.h.
6618 (struct block_namespace_info): New struct.
6619 (block_set_scope): New function.
6620 (block_set_using, block_initialize_namespace): Ditto.
6621
d5a921c9
KB
66222003-04-14 Kevin Buettner <kevinb@redhat.com>
6623
6624 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6625 (locate_base): Return early if there aren't any link map offsets.
6626 (svr4_solib_create_inferior_hook): Warn if shared library support
6627 is unavailable.
6628
d2a52b27
DC
66292003-04-14 David Carlton <carlton@math.stanford.edu>
6630
6631 * symtab.c (symbol_set_names): Add prefix when storing Java names
6632 in hash table. Fix for PR java/1039.
6633
980cae7a
DC
66342003-04-14 David Carlton <carlton@math.stanford.edu>
6635
6636 * symtab.c (symbol_set_names): Rename 'name' arg to
6637 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6638 * symtab.h: Change 'name' argument in declaration of
6639 symbol_set_names to 'linkage_name'.
6640 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6641
e227b13c
AC
66422003-04-14 Andrew Cagney <cagney@redhat.com>
6643
6644 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6645 return the fully sign-extended register value.
6646 (get_frame_pointer): Ditto.
6647 (mips_pop_frame): Initialize "proc_desc" after checking for a
6648 dummy frame.
6649
36712a20
AC
66502003-04-14 Andrew Cagney <cagney@redhat.com>
6651
6652 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6653 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6654 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6655 (mips_push_register): Delete function.
6656 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6657 PUSH_FP_REGNUM.
6658
44ea7b70
JB
66592003-04-14 Jim Blandy <jimb@redhat.com>
6660
6661 * symmisc.c: #include "gdb_regex.h".
6662 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6663 functions.
6664 * maint.c (maintenance_list_command): New function.
6665 (_initialize_maint_cmds): Register the above as commands.
6666 * symtab.h (maintenance_list_symtabs,
6667 maintenance_list_psymtabs): New declarations.
6668 * cli/cli-cmds.c (maintenancelistlist): New variable.
6669 (init_cmd_lists): Initialize it.
6670 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6671 * gdbcmd.h (maintenancelistlist): New declaration.
6672 * Makefile.in (symmisc.o): Update dependencies.
6673
2d0c7962
EZ
66742003-04-14 Elena Zannoni <ezannoni@redhat.com>
6675
6676 * s390-nat.c: Include asm/types.h for addr_t.
6677
1947a811
CV
66782003-04-14 Corinna Vinschen <vinschen@redhat.com>
6679
6680 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6681 actually incoming type.
6682
adb616d7
AC
66832003-04-13 Andrew Cagney <cagney@redhat.com>
6684
6685 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6686 get_next_frame and get_frame_saved_regs.
6687
9b5e151c
AC
66882003-04-13 Andrew Cagney <cagney@redhat.com>
6689
6690 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6691 of gdbarch_num_regs.
6692
ef6e7e13
AC
66932003-04-13 Andrew Cagney <cagney@redhat.com>
6694
6695 * frame.h: Mention what replaced what in "struct frame_info".
6696 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6697 deprecated_update_frame_base_hack and
6698 deprecated_update_frame_pc_hack.
6699 * hppa-tdep.c: Ditto.
6700
61fbb938
DJ
67012003-04-13 Daniel Jacobowitz <drow@mvista.com>
6702
6703 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6704 to read_reg and update its comment. Remove regnum member.
6705 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6706 Don't call read_reg when setting in_reg. Call read_reg to get
6707 the frame base if it's in a register. Return the register number
6708 on the stack instead of in the context. Remove extra arguments
6709 to read_reg.
6710 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6711 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6712 the register number on the expression stack.
6713 (needs_frame_read_reg): Remove extra arguments.
6714
0d53c4c4
DJ
67152003-04-13 Daniel Jacobowitz <drow@mvista.com>
6716
6717 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6718 made non-static.
6719 (execute_stack_op): All callers updated.
6720 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6721 * dwarf2loc.c (find_location_expression): New function.
6722 (dwarf_expr_frame_base): Call it.
6723 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6724 (dwarf2_tracepoint_var_ref): New function, broken out from
6725 locexpr_tracepoint_var_ref.
6726 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6727 Make static.
6728 (loclist_read_variable, loclist_read_needs_frame): New functions.
6729 (loclist_describe_location, loclist_tracepoint_var_ref): New
6730 functions.
6731 (dwarf2_loclist_funcs): New struct location_funcs.
6732 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6733 (struct dwarf2_locexpr_baton): Add comments.
6734 (dwarf2_loclist_funcs): New extern.
6735 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6736 base_address and base_known.
6737 (dwarf_loc_buffer): New variable.
6738 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6739 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6740 (dwarf2_has_info): Initialize dwarf_loc_offset.
6741 (dwarf2_build_psymtabs): Read in .debug_loc.
6742 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6743 DWARF_LOC_SIZE.
6744 (psymtab_to_symtab_1): Likewise. Move base address calculation
6745 here, from...
6746 (dwarf2_get_pc_bounds): ... here. Use the base address from
6747 cu_header.
6748 (dwarf2_symbol_mark_computed): Handle location lists.
6749
6aca59a3
DJ
67502003-04-13 Daniel Jacobowitz <drow@mvista.com>
6751
6752 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6753 if the linkage name demangled successfully.
6754
aca1fcd0
MK
67552003-04-13 Mark Kettenis <kettenis@gnu.org>
6756
97095916
MK
6757 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6758 disassmbly_flavour): Removed.
6759
aca1fcd0
MK
6760 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6761
562a961f
MK
67622003-04-13 Mark Kettenis <kettenis@gnu.org>
6763
6764 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6765
bd013d54
AC
67662003-04-12 Andrew Cagney <cagney@redhat.com>
6767
6768 * frame.h (struct frame_info): Move definition from here ...
6769 * frame.c (struct frame_info): ... to here.
6770
167ef8b1
AC
67712003-04-12 Andrew Cagney <cagney@redhat.com>
6772
6773 * gdbthread.h (save_infrun_state): Delete parameter
6774 "prev_func_start".
6775 (struct thread_info): Delete field "prev_func_start".
6776 (load_infrun_state): Ditto.
6777 * thread.c (load_infrun_state, save_infrun_state): Update.
6778 * infrun.c (prev_func_start): Delete variable.
6779 (context_switch, init_wait_for_inferior): Update.
6780 (stop_stepping, keep_going): Update.
6781
da3331ec
AC
67822003-04-12 Andrew Cagney <cagney@redhat.com>
6783
6784 * gdbarch.sh: Add missing opaque declarations.
6785 * gdbarch.h: Regnerate.
6786 * symtab.h: Add missing opaque declarations.
6787 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6788 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6789 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6790 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6791 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6792 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6793 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6794 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6795 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6796 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6797 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6798 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6799 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6800
18adea3f
AC
68012003-04-11 Andrew Cagney <cagney@redhat.com>
6802
6803 * frame.c (get_frame_id): Return this frame's "id".
6804 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6805 function start.
6806 (legacy_saved_regs_this_id): Replace function body with
6807 internal-error.
6808 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6809 FRAME_OBSTACK_ZALLOC.
6810 (create_new_frame): Mark the frame ID as valid.
6811
2252e863
AO
68122003-04-11 Alexandre Oliva <aoliva@redhat.com>
6813
6814 * Makefile.in (libbfd_h): Added missing setting.
6815 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6816 according to the selected ABI.
6817
a8245ab8
JJ
68182003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6819
6820 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6821
6913c89a
AC
68222003-04-11 Andrew Cagney <cagney@redhat.com>
6823
6824 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6825 SAVED_PC_AFTER_CALL.
6826 * gdbarch.h, gdbarch.c: Regenerate.
6827 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6828 * x86-64-tdep.c (x86_64_init_abi): Update.
6829 * vax-tdep.c (vax_gdbarch_init): Update.
6830 * v850-tdep.c (v850_gdbarch_init): Update.
6831 * sparc-tdep.c (sparc_gdbarch_init): Update.
6832 * sh-tdep.c (sh_gdbarch_init): Update.
6833 * s390-tdep.c (s390_gdbarch_init): Update.
6834 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6835 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6836 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6837 * mips-tdep.c (mips_gdbarch_init): Update.
6838 * mcore-tdep.c (mcore_gdbarch_init): Update.
6839 * m68k-tdep.c (m68k_gdbarch_init): Update.
6840 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6841 * ia64-tdep.c (ia64_gdbarch_init): Update.
6842 (ia64_saved_pc_after_call): Update declaration.
6843 * i386ly-tdep.c (i386lynx_init_abi): Update.
6844 * i386-tdep.c (i386_gdbarch_init): Update.
6845 * hppa-tdep.c (hppa_gdbarch_init): Update.
6846 * h8300-tdep.c (h8300_gdbarch_init): Update.
6847 * frv-tdep.c (frv_gdbarch_init): Update.
6848 * cris-tdep.c (cris_gdbarch_init): Update.
6849 * avr-tdep.c (avr_gdbarch_init): Update.
6850 * arm-tdep.c (arm_gdbarch_init): Update.
6851 * alpha-tdep.c (alpha_gdbarch_init): Update.
6852 * ns32knbsd-nat.c (frame_num_args): Update.
6853 * ns32k-tdep.c (umax_frame_num_args): Update.
6854 * mips-tdep.c (mips_init_frame_pc_first): Update.
6855 * infrun.c (step_over_function): Update.
6856 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6857 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6858 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6859 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6860 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6861 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6862 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6863 * arch-utils.c (init_frame_pc_default): Update.
6864 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6865 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6866 declaration.
8ffd9b1b 6867
38edeab8
AC
68682003-04-11 Andrew Cagney <cagney@redhat.com>
6869
6870 * i387-tdep.c: Update copyright.
6871 (i387_to_double): Delete function.
6872 (double_to_i387): Delete function.
6873
81f8a206
AC
68742003-04-10 Andrew Cagney <cagney@redhat.com>
6875
6876 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6877 frame's function's address. Simplify.
6878 (d10v_frame_unwind_cache): Check that the frame's function is
6879 non-zero.
6880
6e691f7a
JB
68812003-04-10 Jim Blandy <jimb@redhat.com>
6882
6883 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6884 call to set_gdbarch_deprecated_push_arguments.
6885
7f78e237
AC
68862003-04-10 Andrew Cagney <cagney@redhat.com>
6887
6888 * frame.c (fprint_frame_id): New function.
6889 (fprint_frame_type, fprint_frame): New function.
6890 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6891 (create_sentinel_frame, get_frame_id): Ditto.
6892 (frame_id_p, frame_id_eq): Ditto.
6893 (frame_id_inner, create_new_frame): Ditto.
6894 (legacy_get_prev_frame, get_prev_frame): Ditto.
6895 (deprecated_update_frame_pc_hack): Ditto.
6896 (frame_register_unwind): Ditto.
6897 (deprecated_update_frame_base_hack): Ditto.
6898
f870b49b
CV
68992003-04-10 Corinna Vinschen <vinschen@redhat.com>
6900
6901 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6902 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6903 frame_chain function.
6904 * Makefile.in: Add dependencies due to above change.
6905
7c86889b
CV
69062003-04-10 Corinna Vinschen <vinschen@redhat.com>
6907
6908 * blockframe.c (legacy_frame_chain_valid): Move call to
6909 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6910 inside_entry_file.
6911
d0a55772
AC
69122003-04-09 Andrew Cagney <cagney@redhat.com>
6913
6914 * frame.h (struct frame_id): Replace "pc" and "base" with
6915 "stack_addr" and "code_addr". Update comments.
6916 (frame_id_build): Update parameter names and comment.
6917 (struct frame_info): Replace "id_p" and "id" with "this_id".
6918 * dummy-frame.c (dummy_frame_this_id): Update.
6919 * breakpoint.c (print_one_breakpoint): Update.
6920 * frame.c (get_frame_id): Update.
6921 (get_frame_base, frame_id_build): Update.
6922 (create_sentinel_frame, legacy_get_prev_frame): Update.
6923 (deprecated_update_frame_base_hack): Update.
6924 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6925 (frame_id_inner): Ditto.
6926
ac16bf07
AC
69272003-04-09 Andrew Cagney <cagney@redhat.com>
6928
6929 * defs.h (gdb_print_host_address): Make "addr" parameter a
6930 pointer constant.
6931 * utils.c (gdb_print_host_address): Update.
6932
366cfc9e
KB
69332003-04-09 Kevin Buettner <kevinb@redhat.com>
6934
6935 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6936 register number for R0 is 0.
6937
cd983b5c
JB
69382003-04-09 J. Brobecker <brobecker@gnat.com>
6939
6940 * frame.h (struct gdbarch): Add opaque structure definition
6941 to avoid a compilation warning on LynxOS 4.0.
6942
d1340264
AC
69432003-04-09 Andrew Cagney <cagney@redhat.com>
6944
6945 * frame.h (struct frame_info): Delete field "pc". Replace
6946 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6947 structure.
6948 * frame.c (frame_pc_unwind): Update.
6949 (create_sentinel_frame): Do not set "pc".
6950 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6951 (get_frame_pc): Call frame_pc_unwind.
6952 (deprecated_update_frame_pc_hack): Update.
6953 (create_new_frame): Use "pc" not "->pc".
6954
90a6fffb
AC
69552003-04-09 Andrew Cagney <cagney@redhat.com>
6956
6957 * frame.c (get_frame_id): Eliminate code updating "frame".
6958 (legacy_get_prev_frame): Ditto.
6959 (get_frame_base): Return id.base directly.
6960 (deprecated_update_frame_base_hack): Update "id.base".
6961 * frame.h (struct frame_info): Delete field "frame".
6962
2fbce691
AC
69632003-04-09 Andrew Cagney <cagney@redhat.com>
6964
6965 * NEWS: Mention that the "Sequent family" is obsolete.
6966 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6967 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6968 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6969 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6970 * config/i386/tm-ptx4.h: Obsolete file.
6971 * config/i386/tm-ptx.h: Obsolete file.
6972 * symm-tdep.c: Obsolete file.
6973 * config/i386/symmetry.mt: Obsolete file.
6974 * config/i386/tm-symmetry.h: Obsolete file.
6975 * symm-nat.c: Obsolete file.
6976 * config/i386/nm-symmetry.h: Obsolete file.
6977 * config/i386/xm-symmetry.h: Obsolete file.
6978 * config/i386/symmetry.mh: Obsolete file.
6979 * config/i386/nm-ptx4.h: Obsolete file.
6980 * config/i386/ptx4.mh: Obsolete file.
6981 * config/i386/ptx.mt: Obsolete file.
6982 * config/i386/ptx.mh: Obsolete file.
6983 * config/i386/xm-ptx4.h: Obsolete file.
6984 * config/i386/xm-ptx.h: Obsolete file.
6985
78c43945
AC
69862003-04-09 Andrew Cagney <cagney@redhat.com>
6987
6988 Obsolete mips*-*-mach3*.
6989 * NEWS: Mention that mips*-*-mach3* is obsolete.
6990 * m3-nat.c: Obsolete file.
6991 * config/nm-m3.h: Obsolete file.
6992 * config/mips/tm-mipsm3.h: Obsolete file.
6993 * config/mips/mipsm3.mt: Obsolete file.
6994 * config/mips/mipsm3.mh: Obsolete file.
6995 * config/mips/xm-mipsm3.h: Obsolete file.
6996 * mipsm3-nat.c: Obsolete file.
6997 * configure.host: Obsolete mips-dec-mach3*.
6998 * configure.tgt: Obsolete mips*-*-mach3*.
6999
f1908289
AC
70002003-04-09 Andrew Cagney <cagney@redhat.com>
7001
7002 * doublest.h: Update copyright.
7003 (deprecated_store_floating, deprecated_extract_floating): Rename
7004 store_floating and extract_floating. Update comments.
7005 * doublest.c: Update copyright.
7006 (extract_floating_by_length): Replace extract_floating.
7007 (store_floating_by_length): Replace store_floating.
7008 (deprecated_extract_floating): New function.
7009 (deprecated_store_floating): New function.
7010 (extract_typed_floating): Call extract_floating_by_length.
7011 (store_typed_floating): Call store_floating_by_length.
7012 * x86-64-tdep.c (x86_64_store_return_value): Update.
7013 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7014 (sh64_extract_return_value): Update.
7015 (sh_sh4_register_convert_to_virtual): Update.
7016 (sh_sh64_register_convert_to_virtual): Update.
7017 (sh_sh4_register_convert_to_raw): Update.
7018 (sh_sh64_register_convert_to_raw): Update.
7019 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7020 (rs6000_register_convert_to_raw): Update.
7021 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7022 (ia64_register_convert_to_raw): Update.
7023 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7024 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7025 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7026 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7027 (alpha_register_convert_to_raw): Update.
7028
4443bd83
AC
70292003-04-08 Andrew Cagney <cagney@redhat.com>
7030
7031 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7032 * gdbarch.h, gdbarch.c: Re-generate.
7033 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7034 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7035 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7036 conditionally, use frame_pc_unwind as an alternative. Add
7037 comments.
7038 * arch-utils.c (init_frame_pc_default): Only call
7039 SAVED_PC_AFTER_CALL when available.
7040
c0236d92
EZ
70412003-04-08 Elena Zannoni <ezannoni@redhat.com>
7042
fbe586ae 7043 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7044 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7045 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7046 (start_remote): Ditto.
7047 (handle_inferior_event): Ditto.
7048 (save_inferior_status): Ditto.
7049 (restore_inferior_status): Ditto.
7050 * infcmd.c (attach_command): Ditto.
7051 * fork-child.c (startup_inferior): Ditto.
fbe586ae 7052 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7053 * alpha-tdep.c (heuristic_proc_start): Ditto.
7054 * mips-tdep.c (heuristic_proc_start): Ditto.
7055 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7056 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7057 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7058 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7059 * remote-vx.c (vx_create_inferior): Ditto.
7060
70612003-04-08 Elena Zannoni <ezannoni@redhat.com>
7062
7063 * infrun.c (stop_soon_quietly): Make it an enum, to better
7064 override the default behavior of handle_inferior_event.
7065 (clear_proceed_status): Update uses of stop_soon_quietly to
7066 reflect that it is now an enum.
7067 (start_remote): Ditto.
7068 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7069 is set to handle the new GNU/Linux kernel behavior for
7070 attach/sigstop. Update uses of stop_soon_quietly.
7071 * inferior.h (enum stop_kind): New enum.
7072 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7073 Reset normal handle_inferior_event behavior, afterwards.
7074 * fork-child.c (startup_inferior): Update.
7075 * alpha-tdep.c (heuristic_proc_start): Update.
7076 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7077 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7078 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7079 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7080 * remote-vx.c (vx_create_inferior): Update.
7081 * mips-tdep.c (heuristic_proc_start): Update.
7082
1211bce3
EZ
70832003-04-07 Elena Zannoni <ezannoni@redhat.com>
7084
7085 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 7086 be freed more than once, causing wild memory corruptions.
1211bce3 7087 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 7088 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 7089 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 7090 with the "core" target.
1211bce3 7091
f0ef6b29
KB
70922003-04-07 Kevin Buettner <kevinb@redhat.com>
7093
7094 * mips-tdep.c (mips_print_fp_register): New function, created from
7095 do_fp_register_row(). Registers are now (also) printed as hex.
7096 Only one register is printed per row.
7097 (mips_print_register, do_fp_register_row): Print floating point
7098 registers with mips_print_fp_register().
7099
8cf71652
AC
71002003-04-06 Andrew Cagney <cagney@redhat.com>
7101
5e488a7b
AC
7102 * valprint.h (inspect_it): Add extern declaration.
7103 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7104 (selectors_info, classes_info): Ditto.
7105 (find_objc_msgcall): Fix indentation.
7106 (objc_printstr): Delete extern declarations.
7107
8cf71652
AC
7108 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7109
e6ba3bc9
AC
71102003-04-06 Andrew Cagney <cagney@redhat.com>
7111
7112 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7113 Update comment.
7114 * frame.c (legacy_saved_regs_this_id): Update.
7115 (legacy_get_prev_frame): Update.
7116 * xstormy16-tdep.c: Update comment.
7117 * sparc-tdep.c (sparc_frame_chain): Update comment.
7118 * blockframe.c (legacy_frame_chain_valid): Update.
7119
55e1d7e7
AC
71202003-04-06 Andrew Cagney <cagney@redhat.com>
7121
996179ee
AC
7122 * valprint.c (val_print_type_code_int): Delete #ifdef
7123 PRINT_TYPELESS_INTEGER code.
7124
55e1d7e7
AC
7125 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7126 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7127 multi-arch definition.
7128 * gdbarch.h: Re-generate.
7129
43bd9a9e
AC
71302003-04-05 Andrew Cagney <cagney@redhat.com>
7131
7132 Eliminate FRAME_FIND_SAVED_REGS.
7133 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7134 Change FSR parameter to a pointer.
7135 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7136 Assume FSR parameter is a pointer.
7137 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7138 Make fsr a pointer.
7139 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7140 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7141 saved_regs a pointer.
7142 (hppa_frame_saved_pc): Ditto.
7143 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7144 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7145 pointer.
7146 (restore_pc_queue): Make fsr a pointer.
7147 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7148 (hppa_frame_chain): Make saved_regs a pointer, call
7149 hppa_frame_init_saved_regs.
7150 * sparc-tdep.c: Include "gdb_assert.h".
7151 (sparc_frame_find_saved_regs): Replace internal_error with
7152 gdb_assert.
7153 * remote-vxsparc.c (vx_read_register): Delete reference to
7154 FRAME_FIND_SAVED_REGS.
7155 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7156 * gdbarch.h: Regenerate.
7157 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7158 (deprecated_get_frame_saved_regs): Delete declaration.
7159 (struct frame_saved_regs): Delete definition.
7160 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7161 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7162 (hppa_frame_find_saved_regs): Delete declaration.
7163 (FRAME_FIND_SAVED_REGS): Delete macro.
7164 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7165 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7166 FRAME_FIND_SAVED_REGS in comment.
7167
be41e9f4
AC
71682003-04-05 Andrew Cagney <cagney@redhat.com>
7169
7170 * frame.c (frame_func_unwind, get_frame_func): New functions.
7171 * frame.h (get_frame_func, frame_func_unwind): Declare.
7172 (struct frame_info): Add field "prev_func" for caching the
7173 previous frame's function address.
7174 * arm-tdep.c (arm_frameless_function_invocation): Combine
7175 get_pc_function_start and get_frame_pc into get_frame_func.
7176 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7177 (sh64_nofp_frame_init_saved_regs): Ditto.
7178 * s390-tdep.c (s390_function_start): Ditto.
7179 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7180 (rs6000_frameless_function_invocation): Ditto.
7181 (rs6000_frame_saved_pc): Ditto.
7182 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7183 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7184 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7185 (i386_frame_init_saved_regs): Ditto.
7186 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7187 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7188 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7189 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7190 * blockframe.c (frameless_look_for_prologue): Ditto.
7191
a01dd7cc
AC
71922003-04-05 Andrew Cagney <cagney@redhat.com>
7193
7194 * frame.c (legacy_get_prev_frame): Link prev to next at the
7195 function start. Update comments.
7196
5e5592e6
AC
71972003-04-05 Andrew Cagney <cagney@redhat.com>
7198
7199 * frame.c (get_frame_id): Update comment.
7200 (legacy_get_prev_frame): Update comment.
7201 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7202 * gdbarch.h: Regenerate.
7203 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7204 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7205
6fba5002
AC
72062003-04-05 Andrew Cagney <cagney@redhat.com>
7207
7208 * stack.c (print_frame_info): Use get_frame_pc.
7209
7df05f2b
AC
72102003-04-04 Andrew Cagney <cagney@redhat.com>
7211
7212 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7213 the frame's type from the unwinder.
7214 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7215 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7216 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7217 (get_frame_base_address): Use get_frame_type.
7218 (get_frame_locals_address, get_frame_args_address): Ditto.
7219 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7220 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7221 (struct frame_info): Add comment explaining why the frame contains
7222 a "type" field.
7223 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7224 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7225 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7226 NORMAL_FRAME.
7227 * frame-unwind.h: Include "frame.h".
7228 (struct frame_unwind): Add "type" field.
7229 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 7230
11889732
AC
72312003-04-04 Andrew Cagney <cagney@redhat.com>
7232
7233 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7234 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7235 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7236 get_frame_base.
7237 (d10v_unwind_dummy_id): Use frame_id_build.
7238 * frame.c (find_frame_sal): Use get_frame_pc.
7239 (create_new_frame): Use deprecated_update_frame_pc_hack and
7240 deprecated_update_frame_base_hack.
7241 (create_sentinel_frame): Add comment about ->pc going away.
7242 (get_prev_frame): Add comment about ->pc going away.
7243 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7244 frame_id_build, deprecated_update_frame_pc_hack and
7245 deprecated_update_frame_base_hack.
7246 (select_frame): Use get_frame_pc.
7247 (legacy_saved_regs_this_id): Use frame_id_build.
7248
50c46a0d
EZ
72492003-04-04 Elena Zannoni <ezannoni@redhat.com>
7250
fbe586ae
RH
7251 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7252 signed integer case.
7253 (classify_argument): Handle enumerations and references.
50c46a0d 7254
50bbdbd9
AC
72552003-04-04 Andrew Cagney <cagney@redhat.com>
7256
7257 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7258 ID to NULL.
7259
36018d2e
AF
72602003-04-01 Adam Fedor <fedor@gnu.org>
7261
7262 * gdb/objc-lang.c (selectors_info): Replace calls to
7263 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7264 SYMBOL_NATURAL_NAME.
7265 (classes_info, find_methods): Likewise.
7266
35cec841
KB
72672003-04-03 Kevin Buettner <kevinb@redhat.com>
7268
7269 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7270 ``mach'' to the value determined by bfd_default_set_arch_mach().
7271
43136899
BR
72722003-04-02 Bob Rossi <bob_rossi@cox.net>
7273
7274 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7275 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7276 (mi-cmd-file.o): Update dependencies.
7277
040b99fd
KB
72782003-04-01 Kevin Buettner <kevinb@redhat.com>
7279
7280 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7281 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7282
9a3d7dfd
AF
72832003-04-01 Adam Fedor <fedor@gnu.org>
7284
7285 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7286 * language.h (struct language_defn): Add la_demangle.
7287 (language_demangle): Declare.
7288 * language.c (language_demangle): New function.
7289 (unk_lang_demangle): Likewise.
7290 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 7291 Add ukn_lang_demangle.
9a3d7dfd 7292 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 7293 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
7294 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7295 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7296 * jv-lang.c (java_demangle): New function
7297 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
7298 * objc-lang.c (objc_demangle): Add options argument
7299 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
7300 * maint.c (maintenance_demangle): Replace switch with
7301 call to language_demangle.
7302 * utils.c (fprintf_symbol_filtered): Likewise.
7303
5e074003
AC
73042003-04-01 Andrew Cagney <cagney@redhat.com>
7305
7306 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7307 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7308 PRINT_TYPELESS_INTEGER.
7309 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7310 PUSH_RETURN_ADDRESS.
7311
270cb5d6
AC
73122003-04-01 Andrew Cagney <cagney@redhat.com>
7313
7314 * Makefile.in (d10v-tdep.o): Update dependencies.
7315 * d10v-tdep.c: Include "frame-base.h".
7316 (d10v_frame_unwind): Make constant.
7317 (d10v_frame_base_address): New function.
7318 (d10v_frame_base): New variable.
7319 (d10v_gdbarch_init): Set frame_base default.
7320 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7321 comment for base.
7322 (d10v_frame_unwind_cache): Set and use "prev_sp".
7323 (d10v_frame_this_id): Use the previous frame's inner most stack
7324 address and this frame's func address for the frame ID. Use
7325 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 7326
6bfb3e36
AC
73272003-04-01 Andrew Cagney <cagney@redhat.com>
7328
7329 * frame.h (get_frame_locals_address, get_frame_args_address):
7330 Refer to the base address, instead of the address of the first
7331 local or parameter.
8ffd9b1b 7332
da62e633
AC
73332003-04-01 Andrew Cagney <cagney@redhat.com>
7334
7335 Add frame debug info addresses:
7336 * frame-base.c: New file.
7337 * frame-base.h: New file.
7338 * frame.h (struct frame_base): Add opaque declaration.
7339 (get_frame_base): Update comment.
7340 (get_frame_base_address): Declare.
7341 (get_frame_locals_address): Declare.
7342 (get_frame_args_address): Declare.
7343 (struct frame_info): Add "base" and "base_cache". Update
7344 comments on the unwinder.
7345 * frame.c: Include "frame-base.h".
7346 (get_frame_locals_address): New function.
7347 (get_frame_base_address): New function.
7348 (get_frame_args_address): New function.
7349 * findvar.c (read_var_value): Use get_frame_locals_address and
7350 get_frame_args_address.
7351 * stack.c (frame_info): Use get_frame_locals_address and
7352 get_frame_args_address.
7353 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7354 moved to "frame-base.c".
7355 * printcmd.c (print_frame_nameless_args): Ditto.
7356 * symtab.h (address_class): Update comments.
7357 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7358 get_frame_base_address.
7359 * dwarf2expr.c (execute_stack_op): Ditto.
7360 * Makefile.in (frame_base_h): Define.
7361 (frame.o): Update dependencies.
7362 (frame-base.o): Add dependencies.
7363 (SFILES): Add frame-base.c.
7364 (COMMON_OBS): Add frame-base.o.
7365
3d30e9c2
AC
73662003-04-01 Andrew Cagney <cagney@redhat.com>
7367
7368 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7369 CALL_DUMMY_LENGTH): Ditto.
7370 * gdbarch.c: Re-generate.
7371 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7372 (CALL_DUMMY_LENGTH): Delete macro.
7373 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7374 * arm-tdep.c (arm_gdbarch_init): Ditto.
7375 * avr-tdep.c (avr_gdbarch_init): Ditto.
7376 * cris-tdep.c (cris_gdbarch_init): Ditto.
7377 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7378 * frv-tdep.c (frv_gdbarch_init): Ditto.
7379 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7380 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7381 * i386-tdep.c (i386_gdbarch_init): Ditto.
7382 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7383 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7384 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7385 * mips-tdep.c (mips_gdbarch_init): Ditto.
7386 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7387 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7388 * s390-tdep.c (s390_gdbarch_init): Ditto.
7389 * sh-tdep.c (sh_gdbarch_init): Ditto.
7390 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7391 * v850-tdep.c (v850_gdbarch_init): Ditto.
7392 * vax-tdep.c (vax_gdbarch_init): Ditto.
7393 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7394
ce0c7262
CV
73952003-04-01 Corinna Vinschen <vinschen@redhat.com>
7396
7397 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7398
73dd234f
AC
73992003-04-01 Andrew Cagney <cagney@redhat.com>
7400
7401 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7402 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7403 * gdbarch.h, gdbarch.c: Re-generate.
7404 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7405 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7406 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7407 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7408 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7409 * infcmd.c (run_stack_dummy): Simplify assuming
7410 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7411 * infrun.c (handle_inferior_event): Ditto.
7412 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7413 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7414 * arm-tdep.c (arm_gdbarch_init): Ditto.
7415 * avr-tdep.c (avr_gdbarch_init): Ditto.
7416 * cris-tdep.c (cris_gdbarch_init): Ditto.
7417 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7418 * frv-tdep.c (frv_gdbarch_init): Ditto.
7419 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7420 * i386-tdep.c (i386_gdbarch_init): Ditto.
7421 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7422 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7423 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7424 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7425 * mips-tdep.c (mips_gdbarch_init): Ditto.
7426 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7427 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7428 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7429 * s390-tdep.c (s390_gdbarch_init): Ditto.
7430 * sh-tdep.c (sh_gdbarch_init): Ditto.
7431 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7432 * v850-tdep.c (v850_gdbarch_init): Ditto.
7433 * vax-tdep.c (vax_gdbarch_init): Ditto.
7434 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7435
97606a13
DJ
74362003-04-01 Daniel Jacobowitz <drow@mvista.com>
7437
7438 * symfile.c (symfile_relocate_debug_section): Update call to
7439 bfd_simple_get_relocated_section_contents.
7440
e8ab51f7
AC
74412003-03-31 Andrew Cagney <cagney@redhat.com>
7442
7443 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7444 * gdbarch.h, gdbarch.c: Regenerate.
7445 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7446 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7447 available.
7448 * frame.h (generic_fix_call_dummy): Delete declaration.
7449 * dummy-frame.h: Update comment.
7450 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7451 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7452 fix_call_dummy.
7453 * sh-tdep.c (sh_gdbarch_init): Ditto.
7454 * s390-tdep.c (s390_gdbarch_init): Ditto.
7455 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7456 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7457 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7458 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7459 * i386-tdep.c (i386_gdbarch_init): Ditto.
7460 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7461 * frv-tdep.c (frv_gdbarch_init): Ditto.
7462 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7463 * cris-tdep.c (cris_gdbarch_init): Ditto.
7464 * avr-tdep.c (avr_gdbarch_init): Ditto.
7465 * arm-tdep.c (arm_gdbarch_init): Ditto.
7466
018d1b48
JB
74672003-03-31 J. Brobecker <brobecker@gnat.com>
7468
7469 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7470 (INIT_FRAME_AP): Likewise.
7471 (EXTRA_FRAME_INFO): Likewise.
7472
e9a2674e
AC
74732003-03-31 Andrew Cagney <cagney@redhat.com>
7474
7475 * gdbarch.sh: Include "symfile.h".
7476 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7477 * gdbarch.h, gdbarch.c: Re-generate.
7478 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7479 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7480 call_dummy_address, the default is at entry_point_address.
7481 * v850-tdep.c (v850_gdbarch_init): Ditto.
7482 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7483 * sh-tdep.c (sh_gdbarch_init): Ditto.
7484 * s390-tdep.c (s390_gdbarch_init): Ditto.
7485 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7486 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7487 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7488 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7489 * i386-tdep.c (i386_gdbarch_init): Ditto.
7490 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7491 * frv-tdep.c (frv_gdbarch_init): Ditto.
7492 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7493 * cris-tdep.c (cris_gdbarch_init): Ditto.
7494 * arm-tdep.c (arm_gdbarch_init): Ditto.
7495
e8a8712a
AC
74962003-03-31 Andrew Cagney <cagney@redhat.com>
7497
7498 * gdbarch.sh (CALL_DUMMY_P): Delete.
7499 * gdbarch.h, gdbarch.c: Re-generate.
7500 * inferior.h (CALL_DUMMY_P): Delete macro.
7501 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7502 * vax-tdep.c (vax_gdbarch_init): Update.
7503 * v850-tdep.c (v850_gdbarch_init): Update.
7504 * sparc-tdep.c (sparc_gdbarch_init): Update.
7505 * sh-tdep.c (sh_gdbarch_init): Update.
7506 * s390-tdep.c (s390_gdbarch_init): Update.
7507 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7508 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7509 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7510 * mips-tdep.c (mips_gdbarch_init): Update.
7511 * mcore-tdep.c (mcore_gdbarch_init): Update.
7512 * m68k-tdep.c (m68k_gdbarch_init): Update.
7513 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7514 * ia64-tdep.c (ia64_gdbarch_init): Update.
7515 * i386-tdep.c (i386_gdbarch_init): Update.
7516 * h8300-tdep.c (h8300_gdbarch_init): Update.
7517 * frv-tdep.c (frv_gdbarch_init): Update.
7518 * d10v-tdep.c (d10v_gdbarch_init): Update.
7519 * cris-tdep.c (cris_gdbarch_init): Update.
7520 * breakpoint.c (deprecated_frame_in_dummy): Update.
7521 * avr-tdep.c (avr_gdbarch_init): Update.
7522 * alpha-tdep.c (alpha_gdbarch_init): Update.
7523 * arm-tdep.c (arm_gdbarch_init): Update.
7524 * dummy-frame.c (dummy_frame_this_id): Update comments.
7525 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7526 * frame.c (legacy_get_prev_frame): Ditto.
7527 * valops.c (call_function_by_hand): Delete function.
7528 (hand_function_call): Rename to call_function_by_hand
7529
ed234cf8
AC
75302003-03-30 Andrew Cagney <cagney@redhat.com>
7531
7532 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 7533 * value.h (struct value): Update comment.
ed234cf8 7534
06c77151
AC
75352003-03-30 Andrew Cagney <cagney@redhat.com>
7536
6c2b5168
AC
7537 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7538 D10V_FP_REGNUM.
7539 (d10v_gdbarch_init): Do not set fp_regnum.
7540
06c77151
AC
7541 * frame.c (get_frame_base): Force ID initialization.
7542 (get_prev_frame): Move computation of the frame ID from here ...
7543 (get_frame_id): ... to here.
7544 (legacy_get_prev_frame): Mark the frame ID as valid.
7545 * frame.h (struct frame_info): Add field "id_p".
7546
97a1a11c
MK
75472003-03-30 Mark Kettenis <kettenis@gnu.org>
7548
7549 * i386-tdep.c (i386_store_struct_return): Removed.
7550 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7551
6c0e89ed
AC
75522003-03-30 Andrew Cagney <cagney@redhat.com>
7553
7554 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7555 * gdbarch.h, gdbarch.c: Regenerate.
7556 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7557 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7558 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7559 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7560 * i386-tdep.c (i386_gdbarch_init): Ditto.
7561 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7562 * cris-tdep.c (cris_gdbarch_init): Ditto.
7563 * vax-tdep.c (vax_gdbarch_init): Ditto.
7564 * s390-tdep.c (s390_gdbarch_init): Ditto.
7565 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7566 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7567 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7568 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7569 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7570 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7571 * sparc-tdep.c (sparc_gdbarch_init): Update.
7572 * sh-tdep.c (sh_gdbarch_init): Update.
7573 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7574 * mips-tdep.c (mips_gdbarch_init): Update.
7575 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7576 * ia64-tdep.c (ia64_gdbarch_init): Update.
7577 * frv-tdep.c (frv_gdbarch_init): Update.
7578 * avr-tdep.c (avr_gdbarch_init): Update.
7579 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7580 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7581 instead of when push_dummy_call is not available.
8ffd9b1b 7582
f7dd6af2
AC
75832003-03-30 Andrew Cagney <cagney@redhat.com>
7584
7585 * infttrace.c: Include "gdbthread.h".
7586 (parent_attach_all): Fix function signature.
7587 (call_ptrace): Update call.
7588 * Makefile.in (infttrace.o): Update dependencies.
7589
28f617b3
AC
75902003-03-30 Andrew Cagney <cagney@redhat.com>
7591
7592 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7593 PUSH_RETURN_ADDRESS.
7594 * gdbarch.h, gdbarch.c: Regenerate.
7595 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7596 * x86-64-tdep.c (x86_64_init_abi): Update.
7597 * v850-tdep.c (v850_gdbarch_init): Update.
7598 * sparc-tdep.c (sparc_gdbarch_init): Update.
7599 * sh-tdep.c (sh_gdbarch_init): Update.
7600 * s390-tdep.c (s390_gdbarch_init): Update.
7601 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7602 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7603 * mips-tdep.c (mips_gdbarch_init): Update.
7604 * mcore-tdep.c (mcore_gdbarch_init): Update.
7605 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7606 * ia64-tdep.c (ia64_gdbarch_init): Update.
7607 * i386-tdep.c (i386_gdbarch_init): Update.
7608 * h8300-tdep.c (h8300_gdbarch_init): Update.
7609 * frv-tdep.c (frv_gdbarch_init): Update.
7610 * cris-tdep.c (cris_gdbarch_init): Update.
7611 * avr-tdep.c (avr_gdbarch_init): Update.
7612 * arm-tdep.c (arm_gdbarch_init): Update.
7613 * valops.c (hand_function_call): Update.
7614
4d628cd7
AC
76152003-03-29 Andrew Cagney <cagney@redhat.com>
7616
7617 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7618 sizeof_call_dummy_words.
7619 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7620 define.
7621 * gdbarch.h: Regenerate.
8ffd9b1b 7622
65e82032
AC
76232003-03-29 Andrew Cagney <cagney@redhat.com>
7624
7625 * infttrace.h: New file.
7626 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7627 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7628 (hpread_read_doc_function_type): Detect an initialized type1.
7629 (hpread_quick_traverse): Initialize mod_name_string.
7630 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7631 (som_solib_get_solib_by_pc): Declare.
7632 (so_lib_thread_start_addr): Declare.
7633 (no_shared_libraries): Declare.
7634 * somread.c (init_import_symbols): Make static. Add forward
7635 declaration.
7636 * config/pa/nm-hppah.h: Include "infttrace.h" for
7637 parent_attach_all.
7638 (hppa_insert_hw_watchpoint): Declare.
7639 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7640 * hppah-nat.c: Include "gdb_string.h".
7641 (parent_attach_all): Delete extern declaration, moved to
7642 "infttrace.h".
7643 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7644 int.
7645 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7646 * Makefile.in (infttrace_h): Define.
7647 (hpread.o): Update dependencies.
7648 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7649 * hppa-hpux-tdep.c: Include "gdb_string.h".
7650 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7651 * infrun.c (handle_inferior_event): Always initialize
7652 stepped_after_stopped_by_watchpoint. Add default and remove
7653 fallthrough in switch statement.
7654 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7655 parameter to int.
7656 (hppa_remove_hw_watchpoint): Ditto.
7657
2c3bbe77
AC
76582003-03-29 Andrew Cagney <cagney@redhat.com>
7659
7660 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7661 offset.
7662
2dd604e7
RE
76632003-03-29 Richard Earnshaw <rearnsha@arm.com>
7664
7665 * arm-tdep.c (arm_push_arguments): Delete.
7666 (struct stack_item): New type.
7667 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7668 (arm_store_struct_return): Delte.
7669 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7670 arm_push_arguments or arm_store_struct_return.
7671
e8933a55
AC
76722003-03-28 Andrew Cagney <cagney@redhat.com>
7673
7674 * Makefile.in (d10v-tdep.o): Update dependencies.
7675 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7676 * d10v-tdep.c: Include "remote.h".
7677 (target_resume_hook): Delete extern declaration.
7678 (target_wait_loop_hook): Ditto.
7679 (tdisassemble_command): Eliminate assignment in "if" conditional.
7680 (d10v_ts2_register_sim_regno): Eliminate call to
7681 legacy_register_sim_regno.
7682 (d10v_ts3_register_sim_regno): Ditto.
7683
6949171e
JJ
76842003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7685
7686 * thread.c: Reindented.
7687 * lin-lwp.c: Ditto.
7688 * linux-proc.c: Ditto.
7689
98c7071f
BR
76902003-03-28 Bob Rossi <bob_rossi@cox.net>
7691
fbe586ae 7692 * MAINTAINERS (write after approval): Add myself.
98c7071f 7693
5edc9ca6
TR
76942003-03-27 Theodore A. Roth <troth@openavr.org>
7695
7696 * objc-exp.y: Add missing semi-colons.
7697
378bfd1b
AC
76982003-03-27 Andrew Cagney <cagney@redhat.com>
7699
7700 * regcache.c (write_sp): Delete function and references.
7701 * inferior.h (write_sp): Delete declaration.
7702 * valops.c (hand_function_call): Replace write_sp with
7703 TARGET_WRITE_SP.
7704 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7705 (sparc_pop_frame): Ditto.
8ffd9b1b 7706
56056df7
AC
77072003-03-27 Andrew Cagney <cagney@redhat.com>
7708
7709 * NEWS: Mention removal of support for hppa*-*-bsd* and
7710 hppa*-*-osf* natives, and hppa*-*-pro* target.
7711 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7712 * config/pa/xm-pa.h: Obsolete file.
7713 * config/pa/xm-hppab.h: Obsolete file.
7714 * config/pa/nm-hppab.h: Obsolete file.
7715 * config/pa/tm-hppab.h: Obsolete file.
7716 * config/pa/tm-hppao.h: Obsolete file.
7717 * config/pa/nm-hppao.h: Obsolete file.
7718 * config/pa/tm-pro.h: Obsolete file.
7719 * config/pa/hppaosf.mt: Obsolete file.
7720 * config/pa/hppaosf.mh: Obsolete file.
7721 * config/pa/hppapro.mt: Obsolete file.
7722 * config/pa/hppabsd.mt: Obsolete file.
7723 * config/pa/hppabsd.mh: Obsolete file.
7724 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7725 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7726 hppa*-*-osf*.
7727
5873a88d
AC
77282003-03-27 Andrew Cagney <cagney@redhat.com>
7729
7730 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7731 push_arguments. Don't set push_return_address or write_sp.
7732 (d10v_push_dummy_call): Replace d10v_push_arguments.
7733 (d10v_push_return_address, d10v_write_sp): Delete function,
7734 handled by push_dummy_call.
7735
b81774d8
AC
77362003-03-26 Andrew Cagney <cagney@redhat.com>
7737
7738 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7739 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7740 regcache and dummy_addr parameters.
7741 * gdbarch.h, gdbarch.c: Re-generate.
7742 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7743 available; assume it will handle stack alignment and return
7744 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7745 legacy_push_arguments.
7746 (legacy_push_arguments): Rename default_push_arguments.
7747 * value.h (legacy_push_arguments): Rename default_push_arguments.
7748 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7749 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7750 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7751 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7752 * config/i386/tm-symmetry.h: Update.
7753 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7754 * x86-64-tdep.c (x86_64_init_abi): Update.
7755 * v850-tdep.c (v850_gdbarch_init): Update.
7756 * sparc-tdep.c (sparc_gdbarch_init): Update.
7757 * sh-tdep.c (sh_gdbarch_init): Update.
7758 * s390-tdep.c (s390_gdbarch_init): Update.
7759 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7760 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7761 * mips-tdep.c (mips_gdbarch_init): Update.
7762 * mcore-tdep.c (mcore_gdbarch_init): Update.
7763 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7764 * ia64-tdep.c (ia64_gdbarch_init): Update.
7765 * i386-tdep.c (i386_gdbarch_init): Update.
7766 * hppa-tdep.c (hppa_gdbarch_init): Update.
7767 * h8300-tdep.c (h8300_gdbarch_init): Update.
7768 * frv-tdep.c (frv_gdbarch_init): Update.
7769 * d10v-tdep.c (d10v_gdbarch_init): Update.
7770 * cris-tdep.c (cris_gdbarch_init): Update.
7771 * avr-tdep.c (avr_gdbarch_init): Update.
7772 * arm-tdep.c (arm_gdbarch_init): Update.
7773 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7774 * alpha-tdep.c (alpha_gdbarch_init): Update.
7775
f541410f
DJ
77762003-03-26 Daniel Jacobowitz <drow@mvista.com>
7777
7778 * signals/signals.c (do_target_signal_to_host): Correct realtime
7779 signal range test.
7780
69f567ae
DJ
77812003-03-26 Daniel Jacobowitz <drow@mvista.com>
7782
7783 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7784 (struct sal_chain, map_catch_names): Remove.
7785 (catch_exception_command_1): Don't call
7786 handle_gnu_4_16_catch_command.
7787
d5d14a5a
DJ
77882003-03-26 Daniel Jacobowitz <drow@mvista.com>
7789
7790 From Mark Dettinger <dettinge@de.ibm.com>:
7791 * dwarf2cfi.c (read_2u): Increment pointer by two.
7792
bdd73e22
DJ
77932003-03-26 Daniel Jacobowitz <drow@mvista.com>
7794
7795 * signals/signals.c: Fix typos in last change.
7796
960cb555
DJ
77972003-03-26 Daniel Jacobowitz <drow@mvista.com>
7798
7799 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7800 not already defined. Use __SIGRTMIN if available.
7801 (target_signal_from_host): Remove SIGRTMIN block.
7802 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7803 the signal is within the realtime range.
7804
f636b87d
AF
78052003-03-25 Adam Fedor <fedor@gnu.org>
7806
7807 * Makefile.in (infrun.o): Add $(language_h)
7808 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7809 for language specific trampolines.
7810 * language.h (struct language_defn): Add skip_trampoline.
7811 (skip_language_trampoline): Declare.
7812 * language.c (unk_lang_trampoline, skip_language_trampoline):
7813 New functions.
7814 (unknown_language_defn, auto_language_defn, local_language_defn):
7815 Add ukn_lang_trampoline.
7816 * ada-lang.c (ada_language_defn): Add NULL for language
7817 specific skip_trampoline.
7818 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7819 scm-lang.c: Likewise.
7820 * objc-lang.c (objc_skip_trampoline): New function.
7821 (objc_language_defn): Add objc_skip_trampoline.
7822
28f617b3 78232003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
7824
7825 * frame.c (get_prev_frame): Delay validating a frame's ID -
7826 non-NULL, didn't go backwards - until an attempt to unwind it to
7827 the previous frame.
7828
f933a9c5
AC
78292003-03-25 Andrew Cagney <cagney@redhat.com>
7830
7831 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7832 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7833 * gdbarch.h, gdbarch.c: Re-generate.
7834 * config/sparc/tm-sparc.h
7835 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7836 * sparc-tdep.c (sparc_gdbarch_init): Set
7837 deprecated_extra_stack_alignment_needed.
7838 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7839 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7840 extra_stack_alignment_needed.
7841 * v850-tdep.c (v850_gdbarch_init): Ditto.
7842 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7843 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7844 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7845 * cris-tdep.c (cris_gdbarch_init): Ditto.
7846 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7847 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7848
4183d812
AC
78492003-03-25 Andrew Cagney <cagney@redhat.com>
7850
7851 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7852 STORE_STRUCT_RETURN.
7853 * gdbarch.h, gdbarch.c: Regenerate.
7854 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7855 (d10v_push_arguments): Set the struct return register.
7856 (d10v_gdbarch_init): Update.
7857 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7858 * x86-64-tdep.c (x86_64_init_abi): Update.
7859 * vax-tdep.c (vax_gdbarch_init): Update.
7860 * v850-tdep.c (v850_gdbarch_init): Update.
7861 * sparc-tdep.c (sparc_gdbarch_init): Update.
7862 * sh-tdep.c (sh_gdbarch_init): Update.
7863 * s390-tdep.c (s390_gdbarch_init): Update.
7864 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7865 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7866 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7867 * mips-tdep.c (mips_gdbarch_init): Update.
7868 * mcore-tdep.c (mcore_gdbarch_init): Update.
7869 * m68k-tdep.c (m68k_gdbarch_init): Update.
7870 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7871 * ia64-tdep.c (ia64_gdbarch_init): Update.
7872 * i386-tdep.c (i386_gdbarch_init): Update.
7873 * hppa-tdep.c (hppa_gdbarch_init): Update.
7874 * h8300-tdep.c (h8300_gdbarch_init): Update.
7875 * frv-tdep.c (frv_gdbarch_init): Update.
7876 * cris-tdep.c (cris_gdbarch_init): Update.
7877 * avr-tdep.c (avr_gdbarch_init): Update.
7878 * arm-tdep.c (arm_gdbarch_init): Update.
7879 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 7880
1bf6d5cc
AC
78812003-03-25 Andrew Cagney <cagney@redhat.com>
7882
7883 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7884 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7885 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7886 * gdbarch.h, gdbarch.c: Regenerate.
7887 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7888 call_dummy_stack_adjust_p.
7889 * vax-tdep.c (vax_gdbarch_init): Ditto.
7890 * v850-tdep.c (v850_gdbarch_init): Ditto.
7891 * sh-tdep.c (sh_gdbarch_init): Ditto.
7892 * s390-tdep.c (s390_gdbarch_init): Ditto.
7893 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7894 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7895 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7896 * mips-tdep.c (mips_gdbarch_init): Ditto.
7897 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7898 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7899 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7900 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7901 * i386-tdep.c (i386_gdbarch_init): Ditto.
7902 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7903 * frv-tdep.c (frv_gdbarch_init): Ditto.
7904 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7905 * cris-tdep.c (cris_gdbarch_init): Ditto.
7906 * avr-tdep.c (avr_gdbarch_init): Ditto.
7907 * arm-tdep.c (arm_gdbarch_init): Ditto.
7908 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7909 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7910 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7911 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7912 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7913 call_dummy_stack_adjust_p.
7914 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7915 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7916 * sparc-tdep.c (sparc32_push_arguments): Update.
7917 * valops.c (hand_function_call): Update.
7918
71c08af0
CV
79192003-03-25 Corinna Vinschen <vinschen@redhat.com>
7920
7921 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7922 set_gdbarch_char_signed.
7923
30757f90
RE
79242003-03-25 Richard Earnshaw <rearnsha@arm.com>
7925
7926 PR cli/548
7927 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7928
03d48a7d
RE
79292003-03-25 Richard Earnshaw <rearnsha@arm.com>
7930
7931 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7932 (_initialize_arm_tdep): Don't set tm_print_insn.
7933
2cf6873c
AF
79342003-03-24 Adam Fedor <fedor@gnu.org>
7935
7936 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7937 * objc-lang.h: Add multiple inclusion protection.
7938 (start_msglist, add_msglist, end_msglist): Additional declarations.
7939
17c0759e
RE
79402003-03-24 Richard Earnshaw <rearnsha@arm.com>
7941
7942 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7943 value was renamed to ARM_FLOAT_SOFT_FPA.
7944
618ce49f
AC
79452003-03-23 Andrew Cagney <cagney@redhat.com>
7946
7947 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7948 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7949 * gdbarch.h, gdbarch.c: Regenerate.
7950 * valops.c (hand_function_call): Update.
7951 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7952 * frame.c (legacy_saved_regs_this_id): Update.
7953 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7954 * dummy-frame.h: Update.
7955 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7956 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7957 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7958 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7959 * config/m68k/tm-sun3.h: Update.
7960 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7961 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7962 * x86-64-tdep.c (x86_64_init_abi): Update.
7963 * vax-tdep.c (vax_gdbarch_init): Update.
7964 * v850-tdep.c (v850_gdbarch_init): Update.
7965 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7966 * sh-tdep.c (sh_gdbarch_init): Update.
7967 * s390-tdep.c (s390_gdbarch_init): Update.
7968 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7969 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7970 (frame_get_saved_regs): Update.
7971 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7972 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7973 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7974 * mips-tdep.c (mips_gdbarch_init): Update.
7975 * mcore-tdep.c (mcore_gdbarch_init): Update.
7976 * m68k-tdep.c (m68k_gdbarch_init): Update.
7977 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7978 * ia64-tdep.c (ia64_gdbarch_init): Update.
7979 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7980 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7981 (i386_interix_back_one_frame): Update.
7982 * hppa-tdep.c (hppa_gdbarch_init): Update.
7983 (hppa_init_extra_frame_info): Update.
7984 * h8300-tdep.c (h8300_gdbarch_init): Update.
7985 * frv-tdep.c (frv_gdbarch_init): Update.
7986 * cris-tdep.c (cris_gdbarch_init): Update.
7987 * avr-tdep.c (avr_gdbarch_init): Update.
7988 * arm-tdep.c (arm_gdbarch_init): Update.
7989 * alpha-tdep.c (alpha_gdbarch_init): Update.
7990
fd50bc42
RE
79912003-03-22 Richard Earnshaw <rearnsha@arm.com>
7992
7993 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7994 (arm_get_fp_model): Declare.
7995 * arm-tdep.c (fp_model_strings): New string array.
7996 (arm_fp_model, current_fp_model): New variables.
7997 (arm_get_fp_model): New function.
7998 (arm_set_fp): New function.
7999 (set_fp_model_sfunc): New function.
8000 (show_fp_model): New function.
8001 (_initialize_arm_tdep): Add new command to set/show the FPU.
8002 (arm_extract_return_value): Use arm_get_fp_model.
8003 (arm_store_return_value): Likewise.
8004 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8005 to initialize the floating-point data types.
8006 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8007 model is FPA.
8008
26304000
RE
80092003-03-22 Richard Earnshaw <rearnsha@arm.com>
8010
8011 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8012 the current setting of each value.
8013 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 8014 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
8015 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8016 commands and add new version as subcommands of "set/show arm".
8017
afd7eef0
RE
80182003-03-22 Richard Earnshaw <rearnsha@arm.com>
8019
8020 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8021 (set_arm_command, show_arm_command): New functions.
8022 (_initialize_arm_tdep): Add them.
8023 (num_disassembly_options): Renamed from num_flavor_options.
8024 (valid_disassembly_styles): Renamed from valid_flavors.
8025 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 8026 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
8027 set_disassembly_flavor_sfunc.
8028 (set_disassembly_style): Renamed from set_disassembly_flavor.
8029 (arm_othernames): Updated.
8030 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8031 command. Add "set/show arm disassembly" commands. Deprecate
8032 "othernames" command.
8033
299a7944
RE
80342003-03-22 Richard Earnshaw <rearnsha@arm.com>
8035
8036 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8037 (arm-tdep.o): Depend on elf_arm_h.
8038
c1dac9e6
RE
80392003-03-22 Richard Earnshaw <rearnsha@arm.com>
8040
8041 * Makefile.in (coff_internal_h): Define.
8042 (arm-tdep.o): Update dependencies.
8043
2702d96c
RE
80442003-03-22 Richard Earnshaw <rearnsha@arm.com>
8045
8046 * arm-tdep.c (prologue_cache): Delete.
8047 (check_prologue_cache, save_prologue_cache): Delete.
8048 (arm_scan_prologue): Don't check or update the prologue_cache.
8049 (arm_gdb_arch_init): Don't initialize it.
8050 (_initialize_arm_tdep): Likewise.
8051
27d5d74b
SC
80522003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8053
8054 * MAINTAINERS (tui): Maintainer of tui code.
8055
1762d96d
CV
80562003-03-21 Corinna Vinschen <vinschen@redhat.com>
8057
8058 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8059 (i386-cygwin-tdep.o): Add dependencies.
8060 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8061 * i386-cygwin-tdep.c: New file.
8062 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8063 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8064
4c2e2391
AC
80652003-03-20 Andrew Cagney <cagney@redhat.com>
8066
f20d38b7
AC
8067 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8068 (handle_inferior_event): Remove code calling
8069 DYNAMIC_TRAMPOLINE_NEXTPC.
8070
0022b738
AC
8071 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8072 already has a full path.
8073
864dbc90
AC
8074 * main.c (gdb_main): Return 1.
8075 (captured_main): Call error to report an invalid interpreter.
8076
4c2e2391
AC
8077 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8078 * alpha-osf1-tdep.c: Include "gdb_string.h".
8079
5ef7553b
JB
80802003-03-19 J. Brobecker <brobecker@gnat.com>
8081
8082 Continuing work to convert the hppa targets to multiarch partial.
8083
8084 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8085 method, now that hppa_push_dummy_frame has a conformant prototype.
8086 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8087 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8088 for the switch to multiarch partial.
8089
7bde8967
KB
80902003-03-19 Kevin Buettner <kevinb@redhat.com>
8091
8092 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8093 when iss is issNull.
8094
b006a9e9
KB
80952003-03-18 Kevin Buettner <kevinb@redhat.com>
8096
8097 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8098 NUM_REGS bounds check.
8099
5e2e9765
KB
81002003-03-18 Kevin Buettner <kevinb@redhat.com>
8101
8102 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8103 * mips-tdep.c (gdb_assert.h): Include.
8104 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8105 (mips_register_name): Handle integer registers explicitly. Add
8106 bounds checking.
8107 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8108 (mips_lsi33k_reg_names): Don't list integer registers; they're
8109 handled by mips_register_name() now.
8110 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8111 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8112 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8113 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8114 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8115
a2867626
AC
81162003-03-18 Andrew Cagney <cagney@redhat.com>
8117
8118 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8119 a void pointer.
8120 * gdbtypes.h (print_scalar_formatted): Update declaration.
8121 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8122
06600e06
JB
81232003-03-18 J. Brobecker <brobecker@gnat.com>
8124
8125 * infrun.c (observer.h): Add #include.
8126 (normal_stop): Add call to observer_notify_normal_stop.
8127 * Makefile.in (infrun.o): Add dependency on observer.h.
8128
7daf4f5b
JB
81292003-03-18 J. Brobecker <brobecker@gnat.com>
8130
8131 Continuing work to convert the hppa targets to multiarch partial.
8132 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8133 parameter. Reformat comment.
8134 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8135 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8136 to match new profile.
8137
3371ccc0
JB
81382003-03-18 J. Brobecker <brobecker@gnat.com>
8139
8140 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8141 appear to be working in any case.
8142
4fbe891e
JB
81432003-03-18 J. Brobecker <brobecker@gnat.com>
8144
8145 * observer.c (observer_test_first_observer): New static variable.
8146 (observer_test_second_observer): Likewise.
8147 (observer_test_third_observer): Likewise.
8148 (observer_test_first_notification_function): New static function.
8149 (observer_test_second_notification_function): Likewise.
8150 (observer_test_third_notification_function): Likewise.
8151
a7ff40e7
JB
81522003-03-17 J. Brobecker <brobecker@gnat.com>
8153
8154 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8155 * somsolib.c (gdb_assert.h): Likewise.
8156 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8157 (somsolib.o): Likewise.
8158
26ca4152
AC
81592003-03-17 Andrew Cagney <cagney@redhat.com>
8160
8161 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8162 BFD. Simplify setting of di.endian.
8163
0a613259
AC
81642003-03-17 Andrew Cagney <cagney@redhat.com>
8165
8166 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8167 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8168
8169 From Elena Zannoni <ezannoni@redhat.com>
8170 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8171 vector and floating-point parameters.
8172 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8173 convention.
8174 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8175
1132738f
FN
81762003-03-17 Fernando Nasser <fnasser@redhat.com>
8177
8178 * MAINTAINERS: Remove my name from several maintainership roles.
8179
6dc42492
AC
81802003-03-17 Andrew Cagney <cagney@redhat.com>
8181
8182 Fix frame off-by-one bug.
8183 * frame-unwind.h (frame_this_id_ftype): Replace
8184 frame_unwind_id_ftype.
8185 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8186 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8187 with "prev_register".
8188 * frame-unwind.c (frame_unwind_find_by_pc): Return
8189 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8190 comment.
8191 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8192 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8193 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8194 (dummy_frame_unwind): Update.
8195 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8196 sentinel_frame_register_unwind.
8197 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8198 (sentinel_frame_unwinder): Update.
8199 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8200 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8201 * frame.c (create_sentinel_frame): Update. Initialize
8202 "prologue_cache" instead of "unwind_cache".
8203 (frame_register_unwind): Call this frame's prev_register with the
8204 next frame and this frame's prologue cache.
8205 (get_prev_frame): Simplify. Always call prev frame's this_id with
8206 this frame and prev frame's prologue cache. Document that this
8207 call is shifted one to the left when compared to the
8208 frame_register_unwind call.
8209 (legacy_saved_regs_prev_register): Replace
8210 frame_saved_regs_register_unwind.
8211 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8212 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8213 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8214 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8215 (d10v_frame_unwind): Update.
8216 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8217 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8218 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8219 "saved_regs" with "this_saved_regs".
8220
efd710d6
AC
82212003-03-16 Andrew Cagney <cagney@redhat.com>
8222
8223 * frame.c (frame_pop): Don't call target_store_registers. Fix
8224 problem reported by Mark Kettenis.
8225
4e259f09
MK
82262003-03-16 Mark Kettenis <kettenis@gnu.org>
8227
8228 * i386-tdep.c (i386_register_type): Renamed from
8229 i386_register_virtual_type. Adjust function signature.
8230 (i386_gdbarch_init): Set register_type instead of
8231 deprecated_max_register_raw_size,
8232 deprecated_max_register_virtual_size and register_virtual_type.
8233
055bb976
AC
82342003-03-14 Andrew Cagney <cagney@redhat.com>
8235
8236 * frame.c (get_prev_frame): When a legacy frame, always call
8237 legacy_get_prev_frame. Simplify unwind code using assumption that
8238 the unwinder is new.
8239 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8240 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8241 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8242
ac2adee5
AC
82432003-03-14 Andrew Cagney <cagney@redhat.com>
8244
8245 * frame.c (get_saved_register): Delete function.
8246 * frame.h (get_saved_register): Delete declaration.
8247 * xstormy16-tdep.c: Update comment.
8248 * regcache.h: Update comments.
8249 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8250 get_saved_register and extract_address, use
8251 frame_read_unsigned_register.
8252 (sparc_frame_saved_pc): Ditto.
8253 (sparc_get_saved_register): Instead of get_saved_register, use
8254 frame_register.
8255 (sparc_pop_frame): Ditto.
8256 * findvar.c: Update comments.
8257 (value_of_register): Call frame_register instead of
8258 get_saved_register.
8259 (value_from_register): Ditto.
8260 * config/sparc/tm-sparc.h: Update comment.
8261 * breakpoint.c: Update comment.
8262
129c1cd6
AC
82632003-03-14 Andrew Cagney <cagney@redhat.com>
8264
8265 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8266 GET_SAVED_REGISTER.
8267 * gdbarch.h, gdbarch.c: Re-generate.
8268 * frame.h: Update comments.
8269 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8270 * x86-64-tdep.c (x86_64_init_abi): Update.
8271 * sparc-tdep.c (sparc_gdbarch_init): Update.
8272 * sh-tdep.c (sh_gdbarch_init): Update.
8273 * mips-tdep.c (mips_gdbarch_init): Update.
8274 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8275 * cris-tdep.c (cris_gdbarch_init): Update.
8276 * ia64-tdep.c (ia64_gdbarch_init): Update.
8277 * frame.c (frame_register): Update.
8278 (get_saved_register): Update.
8279 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 8280
749b82f6
AC
82812003-03-13 Andrew Cagney <cagney@redhat.com>
8282
8283 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8284 * gdbarch.h, gdbarch.c: Regenerate.
8285 * valops.c (hand_function_call): Update comment.
8286 * stack.c (return_command): Update comment.
8287 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8288 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8289 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8290 * x86-64-tdep.c (x86_64_init_abi): Update.
8291 * vax-tdep.c (vax_gdbarch_init): Update.
8292 * v850-tdep.c (v850_gdbarch_init): Update.
8293 * sparc-tdep.c (sparc_gdbarch_init): Update.
8294 * sh-tdep.c (sh_gdbarch_init): Update.
8295 * s390-tdep.c (s390_gdbarch_init): Update.
8296 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8297 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8298 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8299 * mips-tdep.c (mips_gdbarch_init): Update.
8300 * mcore-tdep.c (mcore_gdbarch_init): Update.
8301 * m68k-tdep.c (m68k_gdbarch_init): Update.
8302 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8303 * ia64-tdep.c (ia64_gdbarch_init): Update.
8304 * i386-tdep.c (i386_gdbarch_init): Update.
8305 * hppa-tdep.c (hppa_gdbarch_init): Update.
8306 * h8300-tdep.c (h8300_gdbarch_init): Update.
8307 * frv-tdep.c (frv_gdbarch_init): Update.
8308 * cris-tdep.c (cris_gdbarch_init): Update.
8309 * avr-tdep.c (avr_gdbarch_init): Update.
8310 * arm-tdep.c (arm_gdbarch_init): Update.
8311 * alpha-tdep.c (alpha_gdbarch_init): Update.
8312
1594fa56
AC
83132003-03-13 Andrew Cagney <cagney@redhat.com>
8314
8315 * frame.c (legacy_frame_p): New function.
8316 (get_prev_frame): Use legacy_frame_p.
8317 * frame.h (legacy_frame_p): Declare.
8318
7717fda3
V
83192003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8320
fbe586ae 8321 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
8322 listing corrected.
8323
0c67cbe9
V
83242003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8325
fbe586ae 8326 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 8327
03febf99
AC
83282003-03-12 Andrew Cagney <cagney@redhat.com>
8329
8330 * frame.c (get_prev_frame): Rename the frame parameter to
8331 "this_frame".
8332 (get_next_frame, legacy_get_prev_frame): Ditto.
8333
0a1e1ca1
AC
83342003-03-12 Andrew Cagney <cagney@redhat.com>
8335
8336 * frame.c (get_current_frame): Check target_has_registers before
8337 checking target_has_stack.
8338 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8339 instead of deprecated_selected_frame.
8340 * findvar.c (value_of_register): Pass "frame", not
8341 deprecated_selected_frame, to value_of_builtin_reg.
8342
a66a9c23
AC
83432003-03-12 Andrew Cagney <cagney@redhat.com>
8344
8345 * regcache.c (regcache_cooked_write_signed): New function.
8346 (regcache_cooked_write_unsigned): New function.
8347 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8348 (regcache_cooked_read_signed): Fix regnum in range assertion.
8349 * regcache.h (regcache_cooked_write_signed): Declare.
8350 (regcache_cooked_write_unsigned): Declare.
8351
8bedc050
AC
83522003-03-12 Andrew Cagney <cagney@redhat.com>
8353
8354 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8355 * gdbarch.h, gdbarch.c: Re-generate.
8356 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8357 * x86-64-tdep.h: Update.
8358 * x86-64-tdep.c (x86_64_init_abi): Update.
8359 * v850-tdep.c (v850_gdbarch_init): Update.
8360 * sparc-tdep.c (sparc_gdbarch_init): Update.
8361 * sh-tdep.c (sh_gdbarch_init): Update.
8362 * s390-tdep.c (s390_gdbarch_init): Update.
8363 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8364 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8365 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8366 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8367 * mips-tdep.c (mips_gdbarch_init): Update.
8368 * mcore-tdep.c (mcore_gdbarch_init): Update.
8369 * m68k-tdep.c (m68k_gdbarch_init): Update.
8370 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8371 * ia64-tdep.c (ia64_gdbarch_init): Update.
8372 * i386-tdep.c (i386_gdbarch_init): Update.
8373 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8374 * hppa-tdep.c (hppa_gdbarch_init): Update.
8375 * h8300-tdep.c (h8300_gdbarch_init): Update.
8376 * frv-tdep.c (frv_gdbarch_init): Update.
8377 * cris-tdep.c (cris_gdbarch_init): Update.
8378 * avr-tdep.c (avr_gdbarch_init): Update.
8379 * arm-tdep.c (arm_gdbarch_init): Update.
8380 * alpha-tdep.c (alpha_gdbarch_init): Update.
8381 * sh-tdep.c (sh_init_extra_frame_info): Update.
8382 (sh64_init_extra_frame_info): Update.
8383 * ns32knbsd-nat.c (frame_num_args): Update.
8384 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8385 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8386 (xstormy16_frame_chain_valid): Update.
8387 * vax-tdep.c (vax_saved_pc_after_call): Update.
8388 * v850-tdep.c (v850_frame_chain): Update.
8389 (v850_pop_frame): Update.
8390 (v850_init_extra_frame_info): Update.
8391 * sparc-tdep.c (setup_arbitrary_frame): Update.
8392 * ns32k-tdep.c (umax_frame_num_args): Update.
8393 * s390-tdep.c (s390_pop_frame_regular): Update.
8394 * mn10300-tdep.c (mn10300_frame_chain): Update.
8395 (mn10300_pop_frame_regular): Update.
8396 (mn10300_init_extra_frame_info): Update.
8397 * mips-tdep.c (mips_init_frame_pc_first): Update.
8398 (mips_frame_chain): Update.
8399 (mips_pop_frame): Update.
8400 * mcore-tdep.c (mcore_frame_chain): Update.
8401 (mcore_pop_frame): Update.
8402 (mcore_init_extra_frame_info): Update.
8403 * arch-utils.c (init_frame_pc_default): Update.
8404 * m68k-tdep.c (isi_frame_num_args): Update.
8405 (delta68_frame_num_args): Update.
8406 (news_frame_num_args): Update.
8407 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8408 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8409 (alpha_frame_chain): Update.
8410 (alpha_pop_frame): Update.
8411 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8412 (hppa_init_extra_frame_info): Update.
8413 (hppa_frame_chain): Update.
8414 (hppa_frame_chain_valid): Update.
8415 * cris-tdep.c (cris_init_extra_frame_info): Update.
8416 * avr-tdep.c (avr_init_extra_frame_info): Update.
8417 * arm-tdep.c (arm_frame_chain_valid): Update.
8418 (arm_init_extra_frame_info): Update.
8419 (arm_pop_frame): Update.
8420 * frame.c (frame_pc_unwind): Update.
8421 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8422 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8423 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8424 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8425 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8426 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8427
7a25a7c1
AC
84282003-03-12 Andrew Cagney <cagney@redhat.com>
8429
8430 Eliminate the need for POP_FRAME.
8431 * frame.c (do_frame_unwind_register): New function.
8432 (frame_pop): When no POP_FRAME, pop the frame using register
8433 unwind and a scratch regcache.
8434 (frame_saved_regs_pop): Delete function.
8435 (trad_frame_unwinder): Update.
8436 * d10v-tdep.c (d10v_frame_pop): Delete function.
8437 (d10v_frame_unwind): Update.
8438 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8439 (sentinel_frame_unwinder): Update.
8440 * dummy-frame.c (dummy_frame_pop): Delete function.
8441 (dummy_frame_unwind): Update.
8442 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8443 (struct frame_unwind): Update.
8444
2f38ef89
KB
84452003-03-11 Kevin Buettner <kevinb@redhat.com>
8446
8447 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8448 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8449 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8450 Do range checks on register number obtained from debugging info.
8451 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8452 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8453 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8454 mapping function.
8455 (do_fp_register_row): Fix typo which caused double type to be
8456 used when attempting to unpack a float.
8457
552f4abf
JB
84582003-03-11 J. Brobecker <brobecker@gnat.com>
8459
8460 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8461
e0d2ae16
AC
84622003-03-11 Andrew Cagney <cagney@redhat.com>
8463
8464 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8465 frame. Problem found by Corinna Vinschen.
8466
ddbfdd06
PM
84672003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8468
8469 * doublest.c (floatformat_from_length): Accept also
8470 the real size of 'long double' type.
8471
088b2ddc 84722003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 8473
088b2ddc 8474 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
8475 * breakpoint.c (bpstat_copy): Copy the command lines as well
8476 as the old value, to match what is freed in bpstat_clear.
8477
f56f77c1
DC
84782003-03-10 David Carlton <carlton@math.stanford.edu>
8479
8480 * minsyms.c (add_minsym_to_hash_table): Replace
8481 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8482 (compare_minimal_symbols, compact_minimal_symbols)
8483 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8484 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8485 of DEPRECATED_SYMBOL_MATCHES_NAME.
8486 (lookup_minimal_symbol_solib_trampoline): Ditto.
8487
5602984a
AC
84882003-03-10 Andrew Cagney <cagney@redhat.com>
8489
8490 * regcache.h (regcache_cooked_read_ftype): Define.
8491 (regcache_save, regcache_restore): Add a cooked_read parameter.
8492 * regcache.c (regcache_save, regcache_restore): Update.
8493 (do_cooked_read): New function.
8494 (regcache_cpy): Pass do_cooked_read to regcache_save and
8495 regcache_restore.
8496
8bedc050
AC
84972003-03-10 Andrew Cagney <cagney@redhat.com>
8498
8499 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8500 * gdbarch.h, gdbarch.c: Re-generate.
8501 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8502 * x86-64-tdep.h: Update.
8503 * x86-64-tdep.c (x86_64_init_abi): Update.
8504 * v850-tdep.c (v850_gdbarch_init): Update.
8505 * sparc-tdep.c (sparc_gdbarch_init): Update.
8506 * sh-tdep.c (sh_gdbarch_init): Update.
8507 * s390-tdep.c (s390_gdbarch_init): Update.
8508 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8509 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8510 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8511 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8512 * mips-tdep.c (mips_gdbarch_init): Update.
8513 * mcore-tdep.c (mcore_gdbarch_init): Update.
8514 * m68k-tdep.c (m68k_gdbarch_init): Update.
8515 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8516 * ia64-tdep.c (ia64_gdbarch_init): Update.
8517 * i386-tdep.c (i386_gdbarch_init): Update.
8518 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8519 * hppa-tdep.c (hppa_gdbarch_init): Update.
8520 * h8300-tdep.c (h8300_gdbarch_init): Update.
8521 * frv-tdep.c (frv_gdbarch_init): Update.
8522 * cris-tdep.c (cris_gdbarch_init): Update.
8523 * avr-tdep.c (avr_gdbarch_init): Update.
8524 * arm-tdep.c (arm_gdbarch_init): Update.
8525 * alpha-tdep.c (alpha_gdbarch_init): Update.
8526 * sh-tdep.c (sh_init_extra_frame_info): Update.
8527 (sh64_init_extra_frame_info): Update.
8528 * ns32knbsd-nat.c (frame_num_args): Update.
8529 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8530 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8531 (xstormy16_frame_chain_valid): Update.
8532 * vax-tdep.c (vax_saved_pc_after_call): Update.
8533 * v850-tdep.c (v850_frame_chain): Update.
8534 (v850_pop_frame): Update.
8535 (v850_init_extra_frame_info): Update.
8536 * sparc-tdep.c (setup_arbitrary_frame): Update.
8537 * ns32k-tdep.c (umax_frame_num_args): Update.
8538 * s390-tdep.c (s390_pop_frame_regular): Update.
8539 * mn10300-tdep.c (mn10300_frame_chain): Update.
8540 (mn10300_pop_frame_regular): Update.
8541 (mn10300_init_extra_frame_info): Update.
8542 * mips-tdep.c (mips_init_frame_pc_first): Update.
8543 (mips_frame_chain): Update.
8544 (mips_pop_frame): Update.
8545 * mcore-tdep.c (mcore_frame_chain): Update.
8546 (mcore_pop_frame): Update.
8547 (mcore_init_extra_frame_info): Update.
8548 * arch-utils.c (init_frame_pc_default): Update.
8549 * m68k-tdep.c (isi_frame_num_args): Update.
8550 (delta68_frame_num_args): Update.
8551 (news_frame_num_args): Update.
8552 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8553 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8554 (alpha_frame_chain): Update.
8555 (alpha_pop_frame): Update.
8556 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8557 (hppa_init_extra_frame_info): Update.
8558 (hppa_frame_chain): Update.
8559 (hppa_frame_chain_valid): Update.
8560 * cris-tdep.c (cris_init_extra_frame_info): Update.
8561 * avr-tdep.c (avr_init_extra_frame_info): Update.
8562 * arm-tdep.c (arm_frame_chain_valid): Update.
8563 (arm_init_extra_frame_info): Update.
8564 (arm_pop_frame): Update.
8565 * frame.c (frame_pc_unwind): Update.
8566 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8567 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8568 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8569 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8570 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8571 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8572
12cc2063
AC
85732003-03-10 Andrew Cagney <cagney@redhat.com>
8574
8575 * gdbarch.sh (gdbarch_unwind_pc): New method.
8576 * gdbarch.h, gdbarch.c: Regenerate.
8577 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8578 but use read_pc and FRAME_SAVED_PC as fall backs.
8579 (frame_saved_regs_pc_unwind): Delete function.
8580 (trad_frame_unwinder): Update.
8581 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8582 (struct frame_unwind): Update.
8583 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8584 (dummy_frame_unwind): Update.
8585 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8586 (sentinel_frame_unwinder): Update.
8587 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8588 (d10v_frame_unwind): Update.
8589 (d10v_unwind_pc): New function.
8590 (d10v_gdbarch_init): Set unwind_pc.
8591
ef840a37
AC
85922003-03-10 Andrew Cagney <cagney@redhat.com>
8593
a2ce2e56
AC
8594 * gdbarch.h: Re-generate.
8595
ef840a37
AC
8596 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8597 PC.
8598 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8599 the PC register.
8600
08f3424b
MK
86012003-03-08 Mark Kettenis <kettenis@gnu.org>
8602
8603 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8604
1248ede2
AC
86052003-03-08 Andrew Cagney <cagney@redhat.com>
8606
8607 * cli-out.c: Update copyright.
8608 (cli_out_data): Define typedef. Use instead of ui_out_data.
8609
f49bacc8
AC
86102003-03-08 Andrew Cagney <cagney@redhat.com>
8611
8612 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8613 the result.
8614
9b05f993
AC
86152003-03-07 Andrew Cagney <cagney@redhat.com>
8616
8617 * gdbarch.sh: Don't generate two macro definitions when an
8618 undefined macro taking no arguments.
8619 * gdbarch.h: Regenerate.
8ffd9b1b 8620
166f4c7b
ML
86212002-03-07 Michal Ludvig <mludvig@suse.cz>
8622
8623 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8624 (x86_64_unwind_dummy_id): New functions.
8625 (x86_64_init_abi): Register these two new functions.
8626
6d686a84
ML
86272003-03-07 Michal Ludvig <mludvig@suse.cz>
8628
8629 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 8630 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
8631 separate function.
8632 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8633
6314f104
AC
86342003-03-05 Andrew Cagney <cagney@redhat.com>
8635
8636 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8637 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8638 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8639 to use unwind_dummy_id when a dummy frame.
8640 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8641 predicate.
8642 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 8643
ceea5145
AC
86442003-03-05 Andrew Cagney <cagney@redhat.com>
8645
8646 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8647 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8648 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8649 values.
8650
0d843116
AC
86512003-03-05 Andrew Cagney <cagney@redhat.com>
8652
8653 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8654 (struct d10v_unwind_cache): Delete field "frameless". Replace
8655 "next_addr" with "sp_offset". Add "r11_offset".
8656 (d10v_frame_unwind_cache): Update.
8657 (prologue_find_regs): Update. When "mv r11, sp", save the
8658 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8659 RN was saved in r11_offset.
8660
b2579786
AC
86612003-03-05 Andrew Cagney <cagney@redhat.com>
8662
8663 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8664 cached PC value in the next frame.
8665
218e5956
AC
86662003-03-05 Andrew Cagney <cagney@redhat.com>
8667
8668 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8669 "id_unwind_cache" with "id".
8670 (frame_id_unwind): Delete declaration.
8671 * frame.c (frame_id_unwind): Delete function.
8672 (get_prev_frame): Call the frame id unwind method directly. Store
8673 the returned next frame's ID value in NEXT_FRAME. Note that there
8674 is a problem with the wrong unwind ID being called with the wrong
8675 unwind cache.
8676
ed363b1b
DJ
86772003-03-05 Daniel Jacobowitz <drow@mvista.com>
8678
8679 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8680
fe1f4a5e
DJ
86812003-03-05 James Ingham <jingham@apple.com>
8682 Daniel Jacobowitz <drow@mvista.com>
8683
8684 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8685 (auto_cp_abi): New variable.
8686 (current_cp_abi, num_cp_abis): Make static.
8687 (CP_ABI_MAX): Define.
8688 (cp_abis): Turn into an array.
8689 (value_virtual_fn_field): Fix formatting.
8690 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8691 takes a pointer.
8692 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8693 (list_cp_abis, _initialize_cp_abi): New functions.
8694 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8695 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8696 switch_to_cp_abi. Update prototype for register_cp_abi.
8697 * Makefile.in (cp-abi.o): Update dependencies.
8698 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8699 instead of switch_to_cp_abi.
8700 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8701 register_cp_abi.
8702 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8703 register_cp_abi.
8704 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8705
e4adbba9
DJ
87062003-03-05 Daniel Jacobowitz <drow@mvista.com>
8707
8708 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8709 * dwarf2loc.c: Include "regcache.h".
8710 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8711 register_size.
8712 * Makefile.in (dwarf2loc.o): Update dependencies.
8713
91ccbfc1
TR
87142003-03-04 Theodore A. Roth <troth@openavr.org>
8715
8716 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8717 number of io registers reported by remote target is not a multiple of
8718 step.
8719
3d4e8fd2
DC
87202003-03-04 David Carlton <carlton@math.stanford.edu>
8721
8722 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8723 (lookup_symbol_aux_psymtabs): Update call to
8724 lookup_partial_symbol.
8725 (lookup_transparent_type, find_main_psymtab)
8726 (make_symbol_overload_list): Ditto.
8727
ed42d87b
KH
87282003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8729
8730 * MAINTAINERS (Write after approval): Update my email address.
8731
a0ed5532
AC
87322003-03-03 Andrew Cagney <cagney@redhat.com>
8733
8734 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8735 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8736 predicate. Replace MAX_REGISTER_RAW_SIZE.
8737 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8738 MAX_REGISTER_VIRTUAL_SIZE.
8739 * regcache.c (legacy_max_register_raw_size): New function.
8740 (legacy_max_register_virtual_size): New function.
8741 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8742 (MAX_REGISTER_RAW_SIZE): Define.
8743 (legacy_max_register_raw_size): Declare.
8744 (legacy_max_register_virtual_size): Declare.
8745 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8746 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8747 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8748 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8749 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8750 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8751 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8752 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8753 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8754 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8755 * vax-tdep.c (vax_gdbarch_init): Update.
8756 * v850-tdep.c (v850_gdbarch_init): Update.
8757 * sparc-tdep.c (sparc_gdbarch_init): Update.
8758 * sh-tdep.c (sh_gdbarch_init): Update.
8759 * s390-tdep.c (s390_gdbarch_init): Update.
8760 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8761 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8762 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8763 * mips-tdep.c (mips_gdbarch_init): Update.
8764 * mcore-tdep.c (mcore_gdbarch_init): Update.
8765 * m68k-tdep.c (m68k_gdbarch_init): Update.
8766 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8767 * ia64-tdep.c (ia64_gdbarch_init): Update.
8768 * i386-tdep.c (i386_gdbarch_init): Update.
8769 * hppa-tdep.c (hppa_gdbarch_init): Update.
8770 * h8300-tdep.c (h8300_gdbarch_init): Update.
8771 * frv-tdep.c (frv_gdbarch_init): Update.
8772 * cris-tdep.c (cris_gdbarch_init): Update.
8773 * avr-tdep.c (avr_gdbarch_init): Update.
8774 * arm-tdep.c (arm_gdbarch_init): Update.
8775 * alpha-tdep.c (alpha_gdbarch_init): Update.
8776 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8777 max_register_raw_size or max_register_virtual_size.
8778
8e437497
DC
87792003-03-03 David Carlton <carlton@math.stanford.edu>
8780
8781 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8782 SYMBOL_MATCHES_NAME, add comment.
8783 (SYMBOL_MATCHES_NATURAL_NAME): New.
8784 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8785 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8786 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8787 * symtab.c (lookup_partial_symbol): Use
8788 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8789 unhelpful comment.
8790 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8791 SYMBOL_MATCHES_NAME.
8792 Fix for PR c++/33.
8793
25120b0d
DC
87942003-03-03 David Carlton <carlton@math.stanford.edu>
8795
8796 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8797 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8798 by regexp matching against SYMBOL_NATURAL_NAME.
8799
78a11fb4
DC
88002003-03-03 David Carlton <carlton@math.stanford.edu>
8801
8802 * linespec.c (find_method): Extract code into collect_methods.
8803 (collect_methods): New.
8804
645dd519
MK
88052003-03-02 Mark Kettenis <kettenis@gnu.org>
8806
b4700d91
MK
8807 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8808 get_frame_base.
8809
645dd519
MK
8810 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8811 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8812
0aa7e1aa
SC
88132003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8814
8ffd9b1b 8815 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
8816 and not regnum when summing the size of all registers up to regnum.
8817
f30ee0bc
AC
88182003-03-01 Andrew Cagney <cagney@redhat.com>
8819
8820 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8821 FRAME_INIT_SAVED_REGS.
8822 * gdbarch.h, gdbarch.c: Regenerate.
8823 * stack.c (frame_info): Update.
8824 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8825 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8826 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8827 * ns32k-tdep.c (ns32k_pop_frame): Update.
8828 * mips-tdep.c (mips_pop_frame): Update.
8829 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8830 * ia64-tdep.c (ia64_frame_chain): Update.
8831 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8832 (ia64_frameless_function_invocation): Update.
8833 (ia64_init_extra_frame_info): Update.
8834 (ia64_pop_frame_regular): Update.
8835 * frame.h (struct frame_info): Update comment.
8836 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8837 * frame.c (frame_saved_regs_register_unwind): Update.
8838 (frame_saved_regs_register_unwind): Update.
8839 (deprecated_generic_get_saved_register): Update.
8840 * cris-tdep.c: Update comment.
8841 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8842 Rename macro.
8843 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8844 * x86-64-tdep.c (x86_64_init_abi): Update.
8845 * vax-tdep.c (vax_gdbarch_init): Update.
8846 * v850-tdep.c (v850_gdbarch_init): Update.
8847 * sparc-tdep.c (sparc_gdbarch_init): Update.
8848 * sh-tdep.c (sh_gdbarch_init): Update.
8849 * s390-tdep.c (s390_gdbarch_init): Update.
8850 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8851 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8852 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8853 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8854 * mips-tdep.c (mips_gdbarch_init): Update.
8855 * mcore-tdep.c (mcore_gdbarch_init): Update.
8856 * m68k-tdep.c (m68k_gdbarch_init): Update.
8857 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8858 * ia64-tdep.c (ia64_gdbarch_init): Update.
8859 * i386-tdep.c (i386_gdbarch_init): Update.
8860 * frv-tdep.c (frv_gdbarch_init): Update.
8861 * avr-tdep.c (avr_gdbarch_init): Update.
8862 * arm-tdep.c (arm_gdbarch_init): Update.
8863 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8864
42fa7c0f
AC
88652003-03-01 Andrew Cagney <cagney@redhat.com>
8866
8867 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8868 option enum and switch. When no windows, set the interpreter to
8869 INTERP_CONSOLE.
8ffd9b1b 8870
49c7e338
AC
88712003-03-01 Andrew Cagney <cagney@redhat.com>
8872
8873 * main.c (captured_main): Replace magic option characters with an
8874 enum.
8875
e9582e71
AC
88762003-03-01 Andrew Cagney <cagney@redhat.com>
8877
8878 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8879 INIT_EXTRA_FRAME_INFO.
8880 * gdbarch.h, gdbarch.c: Regenerate.
8881 * arm-tdep.c: Update comments.
8882 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8883 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8884 * frame.h, avr-tdep.c: Ditto.
8885 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8886 (create_new_frame, legacy_get_prev_frame): Ditto.
8887 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8888 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8889 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8890 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8891 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8892 * v850-tdep.c (v850_gdbarch_init): Ditto.
8893 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8894 * sh-tdep.c (sh_gdbarch_init): Ditto.
8895 * s390-tdep.c (s390_gdbarch_init): Ditto.
8896 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8897 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8898 * mips-tdep.c (mips_gdbarch_init): Ditto.
8899 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8900 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8901 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8902 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8903 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8904 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8905 * frv-tdep.c (frv_gdbarch_init): Ditto.
8906 * cris-tdep.c (cris_gdbarch_init): Ditto.
8907 * avr-tdep.c (avr_gdbarch_init): Ditto.
8908 * arm-tdep.c (arm_gdbarch_init): Ditto.
8909 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8910 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8911
35cac7cf
AC
89122003-03-01 Andrew Cagney <cagney@redhat.com>
8913
8914 * gdbarch.sh (register_type): New function with predicate.
8915 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8916 * gdbarch.h, gdbarch.c: Re-generate.
8917 * arch-utils.c (generic_register_byte): Use generic_register_size.
8918 (generic_register_size): When available, use
8919 gdbarch_register_type.
8920 * regcache.c (init_regcache_descr): When available, initialize the
8921 register type array using gdbarch_register_type. If the
8922 architecture supplies gdbarch_register_type, do not use the legacy
8923 regcache layout.
8924 * d10v-tdep.c (d10v_register_type): Replace
8925 d10v_register_virtual_type.
8926 (d10v_gdbarch_init): Set register_type instead of
8927 register_virtual_type.
8928
7b83296f
AC
89292003-03-01 Andrew Cagney <cagney@redhat.com>
8930
8931 * Makefile.in (ax-gdb.o): Update dependencies.
8932 * ax-gdb.c: Include "regcache.h".
8933 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8934 * findvar.c (value_of_register): Ditto.
8935 * infcmd.c (default_print_registers_info): Ditto.
8936
eadc1c87
MK
89372003-03-01 Mark Kettenis <kettenis@gnu.org>
8938
8939 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8940 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8941
14143612
MK
89422003-03-01 Mark Kettenis <kettenis@gnu.org>
8943
8944 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8945 of STREQ.
8946
a55cc764
DJ
89472003-02-28 Daniel Jacobowitz <drow@mvista.com>
8948
8949 * Makefile.in (dwarf2loc.o): Update dependencies.
8950 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8951 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8952 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8953 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8954 (locexpr_tracepoint_var_ref): New function.
8955 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8956
08a617da
AC
89572003-02-28 Andrew Cagney <cagney@redhat.com>
8958
8959 * regcache.c (register_size): New function.
8960 * regcache.h (register_size): Declare
8961 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8962 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8963
4224873a
DC
89642003-02-28 David Carlton <carlton@math.stanford.edu>
8965
8966 * linespec.c (decode_compound): Extract code into find_method.
8967 (find_method): New.
8968
ccdc5d7f
JB
89692003-02-28 J. Brobecker <brobecker@gnat.com>
8970
8971 * Makefile.in: Add rules to build and link in observer.o.
8972
974e8ced
JB
89732003-02-27 J. Brobecker <brobecker@gnat.com>
8974
8975 * observer.c: Minor comments edits.
8976
7a28f973
JB
89772003-02-27 J. Brobecker <brobecker@gnat.com>
8978
8979 * observer.h, observer.c: New file.
8980
27cddce2
AC
89812003-02-27 Andrew Cagney <cagney@redhat.com>
8982
8983 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8984
b94a41a1
SC
89852003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8986
8987 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8988 (M6812_OP_STS_EXT): Likewise.
8989 (m6811_prologue): Use the above to recognize prologue.
8990 (m6812_prologue): Likewise.
8991
c8be8951
DC
89922003-02-27 David Carlton <carlton@math.stanford.edu>
8993
8994 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8995 SYMBOL_PRINT_NAME.
8996 (compare_psymbols): Ditto.
8997 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8998
d05bb1fc
MS
89992003-02-27 Michael Snyder <msnyder@redhat.com>
9000
4e845cd3
MS
9001 * f-lang.c (build_fortran_types): New function.
9002 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
9003 * doublest.c (extract_floating): Fix warning text.
9004
f3824013
AC
90052003-02-27 Andrew Cagney <cagney@redhat.com>
9006
9007 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9008 predicate. Replaces PUSH_DUMMY_FRAME.
9009 * gdbarch.h, gdbarch.c: Regnerate.
9010 * valops.c (hand_function_call): Update. Call
9011 generic_push_dummy_frame directly.
9012 * vax-tdep.c (vax_gdbarch_init): Update.
9013 * sparc-tdep.c (sparc_gdbarch_init): Update.
9014 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9015 * m68k-tdep.c (m68k_gdbarch_init): Update.
9016 * hppa-tdep.c (hppa_gdbarch_init): Update.
9017 * alpha-tdep.c (alpha_gdbarch_init): Update.
9018 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9019 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9020 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9021 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9022 push_dummy_frame to generic_push_dummy_frame.
9023 * v850-tdep.c (v850_gdbarch_init): Ditto.
9024 * sh-tdep.c (sh_gdbarch_init): Ditto.
9025 * s390-tdep.c (s390_gdbarch_init): Ditto.
9026 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9027 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9028 * mips-tdep.c (mips_gdbarch_init): Ditto.
9029 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9030 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9031 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9032 * i386-tdep.c (i386_gdbarch_init): Ditto.
9033 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9034 * frv-tdep.c (frv_gdbarch_init): Ditto.
9035 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9036 * cris-tdep.c (cris_gdbarch_init): Ditto.
9037 * avr-tdep.c (avr_gdbarch_init): Ditto.
9038 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 9039
ad188201
KB
90402003-02-26 Kevin Buettner <kevinb@redhat.com>
9041
9042 * mips-tdep.c (show_mips_abi): New function.
9043 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9044 command ``show mips abi''.
9045
6b37567a 90462003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9047
6b37567a 9048 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 9049 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
9050 more sline entries have been seen for the function.
9051
d3e0a5bf
MC
90522003-02-26 Michael Chastain <mec@shout.net>
9053
9054 * configure: Regenerate with autoconf 000227.
9055
18972eea
MC
90562003-02-26 Michael Chastain <mec@shout.net>
9057
9058 Close PR build/660.
9059 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9060 for old libc5/glibc.
9061 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9062
0bbde931
KW
90632003-02-26 Kris Warkentin <kewarken@qnx.com>
9064
9065 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9066 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9067
27ca5dad
MC
90682003-02-26 Michael Chastain <mec@shout.net>
9069
9070 * configure.in: New variable HAVE_UINTPTR_T.
9071 * configure, config.in: Regenerated.
9072
6f88d630
DJ
90732003-02-26 Daniel Jacobowitz <drow@mvista.com>
9074
9075 Fix PR build/1097.
9076 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9077
b14185ce
AC
90782003-02-25 Andrew Cagney <cagney@redhat.com>
9079
9080 * frame.c (get_prev_frame): Add comment on check for
9081 inside_entry_func. Only check for inside_entry_file when not a
9082 dummy and not a sentinel. Check that the new frame is not inner
9083 to the old frame.
9084
ac2bd0a9
AC
90852003-02-25 Andrew Cagney <cagney@redhat.com>
9086
9087 * frame.c (frame_debug): New variable.
9088 (_initialize_frame): Add "set/show debug frame" command.
9089 (get_prev_frame): When frame_debug, print reason why unwind
9090 failed.
9091
b18a0fd2
MC
90922003-02-25 Michael Chastain <mec@shout.net>
9093
9094 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9095 to avoid uintptr_t definition problems.
9096
22abf04a
DC
90972003-02-25 David Carlton <carlton@math.stanford.edu>
9098
9099 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9100 (SYMBOL_LINKAGE_NAME): Ditto.
9101 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9102 SYMBOL_LINKAGE_NAME.
9103 (struct general_symbol_info): Expand comment.
9104 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9105 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9106 (SYMBOL_MATCHES_REGEXP): Ditto.
9107 * symtab.c (symbol_natural_name): New function.
9108 * objfiles.h: Replace all uses of SYMBOL_NAME by
9109 DEPRECATED_SYMBOL_NAME.
9110 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9111 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9112 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9113 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9114 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9115 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9116 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9117 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9118 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9119 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9120 * ada-exp.y: Ditto.
9121 * ada-exp.y: Update copyright.
9122 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9123 * cp-valprint.c: Ditto.
9124
1a5848f6
JJ
91252003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9126
9127 * infptrace.c (detach): Do not flag error if ptrace detach fails
9128 and errno is set to ESRCH.
9129
7343d46a
AC
91302003-02-24 Andrew Cagney <cagney@redhat.com>
9131
9132 * infptrace.c (udot_info): Change type of udot_off to long. Use
9133 paddr when printing udot_off's value.
9134
49fa1dc2
DC
91352003-02-24 David Carlton <carlton@math.stanford.edu>
9136
9137 * symtab.c (make_symbol_overload_list): Only read in partial
9138 symtabs containing a matching partial symbol.
9139
0fe19209
DC
91402003-02-24 David Carlton <carlton@math.stanford.edu>
9141
9142 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9143 do the comparison, not strcmp.
9144 * symfile.c (compare_psymbols): Ditto.
9145 * defs.h: Declare strcmp_iw_ordered.
9146 * utils.c (strcmp_iw_ordered): New function.
9147
8e3ee7b5
JB
91482003-02-24 Jim Blandy <jimb@redhat.com>
9149
9150 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9151 support, shared libs): Remove my name from here, to better reflect
9152 reality.
9153
7df1a324
KW
91542003-02-24 Kris Warkentin <kewarken@qnx.com>
9155
9156 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9157 (target_ops): Add to_have_continuable_watchpoint.
9158 * target.c (update_current_target): Add INHERIT line for
9159 to_have_continuable_watchpoint.
9160 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9161 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9162 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9163 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9164
d1c76907
EZ
91652003-02-24 Elena Zannoni <ezannoni@redhat.com>
9166
9167 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9168 maintainership.
9169
2610b0bf
KW
91702003-02-24 Kris Warkentin <kewarken@qnx.com>
9171
f46169db
KW
9172 * solib.c (solib_open): Call target defined search function after
9173 failing with solib-search-path.
9174 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9175 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 9176
9a3c34fe
KW
91772003-02-24 Kris Warkentin <kewarken@qnx.com>
9178
f46169db 9179 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 9180
2417dd25
SC
91812003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9182
9183 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9184
b631436b
SC
91852003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9186
9187 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9188 (m68hc11_add_reggroups): New function.
9189 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9190 (m68hc11_gdbarch_init): Install the reggroups.
9191 (_initialize_m68hc11_tdep): Initialize them.
9192
0aa8c1e4
JW
91932003-02-21 James E Wilson <wilson@tuliptree.org>
9194
9195 * MAINTAINERS: Update my email address.
9196
50ceaba5
DC
91972003-02-21 David Carlton <carlton@math.stanford.edu>
9198
9199 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9200
4c2df51b
DJ
92012003-02-21 Daniel Jacobowitz <drow@mvista.com>
9202
9203 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9204 * symtab.h: Add opaque declarations of struct axs_value and
9205 struct agent_expr.
9206 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9207 (struct location_funcs): New type.
9208 (struct symbol): Add "loc" to aux_value.
9209 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9210 * dwarf2read.c: Include "dwarf2expr.h".
9211 (dwarf2_symbol_mark_computed): New function.
9212 (read_func_scope): Use it.
9213 (var_decode_location): New function.
9214 (new_symbol): Use it.
9215 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9216
9217 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9218 (dwarf2expr_h, dwarf2loc_h): New variables.
9219 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9220 (dwarf2expr.o, dwarf2loc.o): New rules.
9221 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9222 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9223 LOC_COMPUTED_ARG.
9224 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9225 * m2-exp.y (yylex): Likewise.
9226 * printcmd.c (address_info, print_frame_args): Likewise.
9227 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9228 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9229 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9230 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9231 * symtab.c (lookup_block_symbol): Likewise.
9232
5784d15e
AF
92332003-02-20 Adam Fedor <fedor@gnu.org>
9234
9235 * symtab.h: Remove objc_specific struct
9236 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9237 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9238 Have language_objc use cplus_specific struct.
9239
d4cad8db
TT
92402003-02-20 Tom Tromey <tromey@redhat.com>
9241
9242 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9243 TYPE_NAME, when printing a String value. PR java/1075.
9244
2f9a90b4
AF
92452003-02-20 Adam Fedor <fedor@gnu.org>
9246
d38074a8 9247 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 9248 * objc-lang.c (find_methods): Make static.
2f9a90b4 9249
6f17862b
CF
92502003-02-20 Christopher Faylor <cgf@redhat.com>
9251
9252 * win32-nat.c (get_image_name): Check return value from
9253 ReadProcessMemory.
9254 (child_xfer_memory): Ditto.
9255
715d1656
AO
92562003-02-20 Alexandre Oliva <aoliva@redhat.com>
9257
9258 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9259 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9260 '${exec_prefix}' (in addition to the expansion thereof) as
9261 relocatable.
9262 * configure: Rebuilt.
9263
b1262a02
DC
92642003-02-20 David Carlton <carlton@math.stanford.edu>
9265
9266 * symtab.c (search_symbols): Revert the search_symbols part of my
9267 2002-12-23 patch. Add comment.
9268
7134143f
DJ
92692002-02-20 Daniel Jacobowitz <drow@mvista.com>
9270
9271 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9272 * dbxread.c (elfstab_build_psymtabs): Don't call
9273 install_minimal_symbols.
9274 (stabsect_build_psymtabs): Likewise.
9275 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9276 earlier.
9277 * somread.c (som_symfile_read): Call install_minimal_symbols
9278 and do_cleanups earlier.
9279 * nlmread.c (nlm_symfile_read): Likewise.
9280 * mdebugread.c (elfmdebug_build_psymtabs): Call
9281 install_minimal_symbols and make appropriate cleanups.
9282
cf466558
KB
92832003-02-20 Kevin Buettner <kevinb@redhat.com>
9284
9285 * solib.c (reload_shared_libraries): New function.
9286 (_initialize_solib): Add callbacks for ``set solib-search-path''
9287 and ``set solib-absolute-prefix''.
9288
de5ad195
DC
92892003-02-20 David Carlton <carlton@math.stanford.edu>
9290
9291 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9292 expand comment.
9293 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9294 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9295 * ada-typeprint.c (ada_typedef_print): Ditto.
9296 * ax-gdb.c (gen_var_ref): Ditto.
9297 * breakpoint.c (print_one_breakpoint): Ditto.
9298 * buildsym.c (finish_block): Ditto.
9299 * c-valprint.c (c_val_print): Ditto.
9300 * expprint.c (print_subexp): Ditto.
9301 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
9302 * infcmd.c (jump_command): Ditto.
9303 * linespec.c (decode_line_2, decode_compound): Ditto.
9304 * maint.c (maintenance_translate_address): Ditto.
9305 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
9306 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9307 Ditto.
8ffd9b1b
AJ
9308 * p-valprint.c (pascal_val_print): Ditto.
9309 * stabsread.c (define_symbol): Ditto.
de5ad195 9310 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
9311 (print_frame_arg_vars, return_command): Ditto.
9312 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9313 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
9314 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9315 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
9316 (rbreak_command): Ditto.
9317 * tracepoint.c (tracepoints_info): Ditto.
9318 * typeprint.c (typedef_print): Ditto.
9319 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
9320 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9321 * ada-typeprint.c: Update Copyright.
9322 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9323 * tracepoint.c, cli/cli-cmds.c: Ditto.
9324
f796e4be
KB
93252003-02-20 Kevin Buettner <kevinb@redhat.com>
9326
9327 * frame.c (generic_unwind_get_saved_register): Make non-static.
9328 * frame.h (generic_unwind_get_saved_register): Declare.
9329 * mips-tdep.c (read_next_frame_reg): Fetch register from
9330 current regcache when frame is NULL.
9331 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9332 that must be NULL.
9333 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9334 instead of frame_register_unwind().
9335
836cc9f4
AC
93362003-02-20 Andrew Cagney <ac131313@redhat.com>
9337
9338 * remote-sim.c (gdbsim_insert_breakpoint)
9339 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9340 code.
9341
501eef12
AC
93422003-02-20 Andrew Cagney <ac131313@redhat.com>
9343
9344 * remote.c (_initialize_remote): Add commands "set/show remote
9345 hardware-watchpoint-limit" and "set/show remote
9346 hardware-breakpoint-limit".
9347 (remote_hw_watchpoint_limit): Initialize to -1.
9348 (remote_hw_breakpoint_limit): Ditto.
9349 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9350
1b6bc7e0
CF
93512003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9352
9353 * coff-pe-read.c: New file - support reading of minimal symbols from a
9354 portable executable using the export table.
9355 * coff-pe-read.h: New file.
9356 * coffread.c: Include coff-pe-read.h.
9357 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9358 debugging symbols found.
9359 * Makefile.in (SFILES): Add coff-pe-read.o.
9360 (coff_pe_read_h): Define.
9361 (COMMON_OBS): Add coff-pe-read.o.
9362 (coffread.o): Add coff_pe_read_h dependency.
9363 (coff-pe-read.o): New target.
9364
fe898f56
DC
93652003-02-19 David Carlton <carlton@math.stanford.edu>
9366
9367 * Makefile.in (SFILES): Add block.c.
9368 (block_h): New.
9369 (COMMON_OBS): Add block.o.
9370 (block.o): New.
9371 (x86-64-tdep.o): Add $(block_h).
9372 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9373 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9374 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9375 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9376 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9377 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9378 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9379 * value.h: Add opaque declaration for struct block.
9380 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9381 * ada-lang.h: Ditto.
9382 * x86-64-tdep.c: #include "block.h"
9383 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9384 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9385 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9386 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9387 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9388 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9389 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9390 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9391 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9392 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9393 * symtab.c (block_function): Ditto.
9394 (contained_in): Ditto.
9395 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9396 block.h. Add opaque declaration for struct block.
9397 * symtab.h: Move block_function and contained_in declarations to
9398 block.h. Add opaque declarations for struct block, struct
9399 blockvector.
9400 (struct block): Move to block.h.
9401 (struct blockvector): Ditto.
9402 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9403 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9404 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9405 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9406 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9407 Ditto.
9408 * block.c: New file.
9409 * block.h: New file.
9410
173345b5
TR
94112003-02-19 Theodore A. Roth <troth@openavr.org>
9412
9413 * avr-tdep.c (avr_extract_return_value): Remove function.
9414 (avr_store_return_value): Remove function.
9415 (avr_extract_struct_value_address): Remove function.
9416 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9417
338ef23d
AC
94182003-02-19 Andrew Cagney <ac131313@redhat.com>
9419
9420 * rs6000-tdep.c: Include "gdb_assert.h".
9421 (registers_e500): Add "acc" and "spefscr".
9422 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9423 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9424 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9425 really is "r0".
9426 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9427
5412f5f3
KS
94282003-02-18 Keith Seitz <keiths@redhat.com>
9429
9430 * Makefile.in: Add gdbtk-interps.c.
9431
881324eb
KB
94322003-02-18 Kevin Buettner <kevinb@redhat.com>
9433
9434 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9435 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9436
6a2f5abf
AC
94372003-02-18 Andrew Cagney <cagney@redhat.com>
9438
9439 * symtab.h (struct objfile): Add opaque declaration.
9440
54c7009d
EZ
94412003-02-18 Elena Zannoni <ezannoni@redhat.com>
9442
9443 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
9444 * dbxread.c (process_one_symbol): Use last_function_start rather
9445 than function_start_offset to find the real beginning of the
9446 current function. The latter is just the text section offset on
9447 some systems, the former is always the real function start.
54c7009d 9448
7ee6d7eb
AC
94492003-02-17 Andrew Cagney <cagney@redhat.com>
9450
9451 * configure.in: Revert ${target} != ${host}.
9452
2846da9b
AC
94532003-02-17 Andrew Cagney <ac131313@redhat.com>
9454
9455 * configure.in (Makefile): Use the test ${target} != ${host},
9456 instead of the absence of the "nm.h" file, to determine of the
9457 configuration non-native.
9458 * configure: Regenerate.
8ffd9b1b 9459
3b27aeea
EZ
94602003-02-14 Elena Zannoni <ezannoni@redhat.com>
9461
fbe586ae 9462 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
9463
9464 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9465 conditionalize tui_active test.
9466 (lookup_cmd_1): Ditto.
9467
b0b1c2c0
MK
94682003-02-14 Mark Kettenis <kettenis@gnu.org>
9469
9470 * configure.in: Add check for _etext.
9471 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9472 available.
9473 * config.in, configure: regenerated.
9474
8f05cde5
DJ
94752003-02-14 Daniel Jacobowitz <drow@mvista.com>
9476
9477 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9478
021e7609
AC
94792003-02-14 Andrew Cagney <ac131313@redhat.com>
9480
9481 * main.c (tui_version): Delete variable.
9482 (captured_main): When --tui, set interpreter_p to "tui" instead of
9483 enabling tui_version.
9484 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9485 tui_version.
9486 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9487 * cli/cli-cmds.c (disassemble_command): Ditto.
9488 * defs.h (tui_version): Delete declaration.
9489 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9490 (tui-interp.o): Add rules.
9491 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9492
e325dcec
CF
94932003-02-14 Christopher Faylor <cgf@redhat.com>
9494
36ffb041 9495 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
9496 just-loaded dll.
9497
c4f90d87
JM
94982003-02-12 Jason Molenda (jmolenda@apple.com)
9499
fbe586ae
RH
9500 * symmisc.c (print_objfile_statistics): Include information about
9501 the number of psymtabs and symtabs in each object file.
c4f90d87 9502
e46e5ccd
KS
95032003-02-13 Keith R Seitz <keiths@redhat.com>
9504
9505 * main.h (struct captured_main_args): Add interpreter_p.
9506 * main.c (captured_main): Initialize interpreter_p from context.
9507 * gdb.c (main): Set interpreter_p argument.
9508 * Makefile.in (gdb.o): Add dependency for interps.h.
9509
fe97fe9c
AC
95102003-02-12 Andrew Cagney <ac131313@redhat.com>
9511
9512 * event-top.c (cli_command_loop): Delete declaration.
9513 (_initialize_event_loop): Delete function setting event_loop_hook.
9514 * event-top.h (cli_command_loop): Declare. Update copyright.
9515 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9516 * interps.c (current_interp_command_loop): When event_loop_p, call
9517 cli_command_loop.
9518
1cdac4ef
AC
95192003-02-12 Andrew Cagney <ac131313@redhat.com>
9520
9521 * interps.h (interp_command_loop_ftype): Change return type to
9522 void.
9523
48037ead
ML
95242003-02-12 Michal Ludvig <mludvig@suse.cz>
9525
9526 * x86-64-tdep.c (x86_64_extract_return_value)
9527 (x86_64_store_return_value): Use regcache instead of regbuf.
9528 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9529 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9530
033afc63
AC
95312003-02-11 Andrew Cagney <ac131313@redhat.com>
9532
9533 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9534 * aclocal.m4: Regenerate.
9535 * configure: Regenerate.
9536
9537 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9538 TCL_LD_SEARCH_FLAGS.
9539
40d02bca
ML
95402003-02-10 Michal Ludvig <mludvig@suse.cz>
9541
9542 * dwarf2cfi.c: Reindented.
9543
11308a41
AC
95442003-02-09 Andrew Cagney <ac131313@redhat.com>
9545
9546 * interps.c (clear_interpreter_hooks): Convert function definition
9547 to ISO C.
9548
e1c1c0f6
DC
95492003-02-07 David Carlton <carlton@math.stanford.edu>
9550
9551 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9552
ab5d3da6
KB
95532003-02-07 Kevin Buettner <kevinb@redhat.com>
9554
9555 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9556 (struct type): ...to here.
9557 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9558 field.
9559 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9560 (replace_type): Set length on all type variants for a given type.
9561
b8a92b82
AC
95622003-02-07 Andrew Cagney <ac131313@redhat.com>
9563
9564 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9565 <sys/stat.h>.
9566 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 9567
5cb316ef
AC
95682003-02-06 Andrew Cagney <ac131313@redhat.com>
9569
2555fe1a
AC
9570 * Makefile.in (symm-nat.o): Update dependencies.
9571 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9572 (lynx-nat.o, ia64-linux-nat.): Ditto.
9573 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9574 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9575 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9576
44270758
AC
9577 * Makefile.in (inflow_h): Define.
9578 (procfs.o, inflow.o, procfs.o): Update dependencies.
9579 * inftarg.c (child_stop): Delete extern declaration of
9580 inferior_process_group. Include "inflow.h".
9581 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9582 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9583 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9584 (our_process_group, inferior_process_group): Extern declarations.
9585
df8f7274
AC
9586 * procfs.c: Include "gdb_assert.h".
9587
5cb316ef
AC
9588 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9589 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9590 * jv-typeprint.c (java_type_print_base): Ditto.
9591 * typeprint.c (typedef_print): Eliminate STREQ.
9592 * cli/cli-script.c (define_command, define_command): Ditto.
9593 * main.c (captured_main): Ditto.
9594 * values.c (lookup_internalvar): Ditto.
9595 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9596 within `if' conditional.
9597 * linespec.c (decode_line_2): Ditto.
9598 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9599 (bfd_openw_with_cleanup): Ditto.
9600
2a28ccea
MK
96012003-02-07 Mark Kettenis <kettenis@gnu.org>
9602
9603 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9604 legacy_extract_return_value and store_return_value to
9605 legacy_return_value.
9606
786b8124
CF
96072003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9608
9609 * win32-nat.c (get_relocated_section_addrs): New function. Find
9610 section load addresses for symbol handling in relocated DLLs.
9611 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9612
b871e4ec
FF
96132003-02-05 Fred Fish <fnf@intrinsity.com>
9614
9615 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9616 '=' and '!='.
9617 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9618 with '&' and '=='.
9619 (angel_RDI_info): Ditto.
9620 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9621 with '&' and '!='.
9622 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 9623
4389a95a 96242003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
9625 Keith Seitz <keiths@redhat.com>
9626 Elena Zannoni <ezannoni@redhat.com>
9627 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
9628
9629 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9630 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9631 (SUBDIR_MI_OBS): Add "mi-interp.o".
9632 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9633 (SFILES): Add "interps.c".
9634 (COMMON_OBS): Add "interps.o".
9635 (interps_h, mi_main_h): Define.
9636 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9637 (mi-main.o, main.o, event-top.o): Update dependencies.
9638 * cli/cli-interp.c: New file.
9639 * interps.h, interps.c: New files.
9640 * top.c: (gdb_init): Don't install the default interpreter, handed
9641 by captured_main.
9642 * main.c: Include "interps.h".
9643 (interpreter_p): Note that it should malloc'ed.
9644 (captured_command_loop): Call current_interp_command_loop.
9645 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9646 xfree and xstrdup when updating interpreter_p. Install the
9647 default interpreter. Add hack to stop mi1's copyright notice
9648 being encoded.
9649 * event-top.h (gdb_setup_readline): Declare.
9650 (gdb_disable_readline): Declare.
9651 * event-top.c: Include "interps.h".
9652 (display_gdb_prompt): Call current_interp_display_prompt_p.
9653 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9654 gdb_stdlog, and gdb_stdtarg.
9655 (_initialize_event_loop): Don't call gdb_setup_readline.
9656 * cli-out.c (cli_out_set_stream): New function.
9657 * cli-out.h (cli_out_set_stream): Declare.
9658
ff3b5810
MK
96592003-02-06 Mark Kettenis <kettenis@gnu.org>
9660
9661 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9662 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9663 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9664 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9665 config/i386/i386v42mp.mt: Removed.
9666
5b729aa5
MK
96672003-02-05 Mark Kettenis <kettenis@gnu.org>
9668
9669 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9670 GDB_OSABI_SOLARIS.
9671
8cc15142
MC
96722003-02-05 Michael Chastain <mec@shout.net>
9673
9674 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9675 2.12.1 and earlier versions.
9676
5aa5d4b9
AC
96772003-02-05 Andrew Cagney <ac131313@redhat.com>
9678
9679 Remove orphaned hosts, targets and files.
9680 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9681 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9682 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9683 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9684 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9685 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9686 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9687 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9688 * config/sparc/tm-sp64sim.h: Delete.
9689 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9690 hosts.
9691 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9692 mips*-dec-mach3* targets.
9693
b68767c1
MC
96942003-02-04 Michael Chastain <mec@shout.net>
9695
9696 * NEWS: Fix typo: sepcifying -> specifying.
9697
5ae7ca1d
MC
96982003-02-04 Michael Chastain <mec@shout.net>
9699
9700 * dwarfread.c: Add documentation on the state of dwarf-1,
9701 looking towards obsoletion.
9702
d08a4280
MC
97032003-02-03 Michael Chastain <mec@shout.net>
9704
9705 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9706 gdb/testsuite/gdb.c++/pr-1023.exp.
9707
e9be73e4
AC
97082003-02-04 Andrew Cagney <ac131313@redhat.com>
9709
9710 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9711 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9712
9713 * utils.c (init_page_info): Delete reference to MPW in comments.
9714 * main.c (captured_main): Delete #ifdef MPW.
9715
05d57f6f
AC
97162003-02-04 Andrew Cagney <ac131313@redhat.com>
9717
8ffd9b1b 9718 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
9719 * monitor.c (monitor_expect): Obsolete reference to m32r.
9720 * configure.tgt: Mark m32r-*-elf* as obsolete.
9721 * MAINTAINERS: Mark m32k as obsolete.
9722 * m32r-rom.c: Obsolete file.
9723 * config/m32r/m32r.mt: Obsolete file.
9724 * config/m32r/tm-m32r.h: Obsolete file.
9725 * m32r-stub.c: Obsolete file.
9726 * m32r-tdep.c: Obsolete file.
9727
8b0e5691
AC
97282003-02-04 Andrew Cagney <ac131313@redhat.com>
9729
9730 * NEWS: Mention that the z8k-zilog-none is obsolete.
9731 * MAINTAINERS: Mark z8k as obsolete.
9732 * configure.tgt: Obsolete the z8k-*-coff* target.
9733 * config/z8k/z8k.mt: Obsolete file.
9734 * config/z8k/tm-z8k.h: Obsolete file.
9735 * z8k-tdep.c: Obsolete file.
9736
67f16606
AC
97372003-02-04 Andrew Cagney <ac131313@redhat.com>
9738
9739 * NEWS: Mention that the mn10200-elf is obsolete.
9740 * configure.tgt: Obsolete mn10200-*-* target.
9741 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9742 mention that the mn10200 is obsolete.
9743 * breakpoint.h: Ditto.
9744 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9745 * config/mn10200/mn10200.mt: Obsolete file.
9746 * config/mn10200/tm-mn10200.h: Obsolete file.
9747 * mn10200-tdep.c: Obsolete file.
9748
fd2299bd
AC
97492003-02-04 Andrew Cagney <ac131313@redhat.com>
9750
9751 * MAINTAINERS: Mark h8500 as obsolete.
9752 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9753 * findvar.c (value_from_register): Ditto.
9754 * h8500-tdep.c: Mark file as obsolete.
9755 * config/h8500/h8500.mt: Ditto.
9756 * config/h8500/tm-h8500.h: Ditto.
9757 * NEWS: Mention that h8500 is obsolete.
9758
eb9a305d
DC
97592003-02-04 David Carlton <carlton@math.stanford.edu>
9760
9761 * objfiles.c (allocate_objfile): Always set name. Add comment at
9762 start of function.
9763 * jv-lang.c (get_dynamics_objfile): Add comment.
9764
406fc7fb
DC
97652003-02-04 David Carlton <carlton@math.stanford.edu>
9766
9767 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9768 * printcmd.c (build_address_symbolic): Replace uses of
9769 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9770 SYMBOL_NAME, and asm_demangle.
9771 Update copyright.
9772
93d91629
DC
97732003-02-04 David Carlton <carlton@math.stanford.edu>
9774
9775 * linespec.c (decode_compound): Extract code into
9776 lookup_prefix_sym.
9777 (lookup_prefix_sym): New function.
9778
1c5cb38e
DC
97792003-02-04 David Carlton <carlton@math.stanford.edu>
9780
9781 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9782 FLOAT_COERCION_BADNESS.
9783 * gdbtypes.c (rank_one_type): Replace all uses of
9784 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9785
0cf824c9
JB
97862003-02-04 Jim Blandy <jimb@redhat.com>
9787
9788 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9789 section, let dwarf_macinfo_section point to it, not
9790 dwarf_loc_section.
9791
a2d356b0
DJ
97922003-02-04 Daniel Jacobowitz <drow@mvista.com>
9793
9794 Pointed out by Anton Blanchard <anton@samba.org>.
9795 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9796 (ppc_linux_at_sigtramp_return_path): Use it.
9797
2de7ced7
DJ
97982003-02-04 Daniel Jacobowitz <drow@mvista.com>
9799
9800 * defs.h (streq): Add prototype.
9801 * utils.c (streq): New function.
9802
9803 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9804 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9805 * mdebugread.c (new_symbol): Likewise.
9806 * stabsread.c (define_symbol): Likewise.
9807 * coffread.c (process_coff_symbol): Likewise.
9808 * dwarfread.c (new_symbol): Likewise.
9809
9810 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9811 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9812 here.
9813 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9814 SYMBOL_INIT_DEMANGLED_NAME.
9815 * objfiles.c: Include "hashtab.h".
9816 (allocate_objfile): Call htab_set_functions_ex for the
9817 demangled_names_hash.
9818 (free_objfile): Call htab_delete for the demangled_names_hash.
9819 * objfiles.h (struct htab): Add declaration.
9820 (struct objfile): Add demangled_names_hash.
9821 * symfile.c: Include "hashtab.h".
9822 (reread_symbols): Call htab_delete for the demangled_names_hash.
9823 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9824 SYMBOL_NAME in the bcache.
9825 * symtab.c: Include "hashtab.h". Update comments.
9826 (create_demangled_names_hash, symbol_set_names): New functions.
9827 (symbol_find_demangled_name): New function, broken out from
9828 symbol_init_demangled_names.
9829 (symbol_init_demangled_names): Use it.
9830 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9831 (SYMBOL_SET_NAMES): New macro.
9832 (symbol_set_names): Add prototype.
9833
15831452
JB
98342003-02-03 Jim Blandy <jimb@redhat.com>
9835
9836 Use a single, consistent representation for an empty minimal
9837 symbol table in an objfile.
9838 * objfiles.c (terminate_minimal_symbol_table): New function.
9839 (allocate_objfile): Call it.
9840 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9841 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 9842 non-NULL.
15831452
JB
9843 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9844 objfile has minimal symbols, compare minimal_symbol_count to zero,
9845 instead of comparing msymbols with NULL.
9846 * objfiles.c (have_minimal_symbols): Same.
9847 * solib-sunos.c (solib_add_common_symbols): Call
9848 terminate_minimal_symbol_table.
9849 * symfile.c (reread_symbols): Same.
8ffd9b1b 9850
ffc65945
KB
98512003-02-03 Kevin Buettner <kevinb@redhat.com>
9852
9853 * s390-tdep.c (s390_address_class_type_flags)
9854 (s390_address_class_type_flags_to_name)
9855 (s390_address_class_name_to_type_flags): New functions.
9856 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9857 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9858
f211c6d4
MS
98592003-02-03 Michael Snyder <msnyder@redhat.com>
9860
9861 * arm-tdep.c: Fix spell-o in comment.
9862
659b0389
ML
98632003-02-03 Michal Ludvig <mludvig@suse.cz>
9864
9865 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9866 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 9867 error messages to contain BFD filename.
659b0389 9868
3b31d625
EZ
98692003-02-02 Elena Zannoni <ezannoni@redhat.com>
9870
997b089a 9871 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
9872 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9873 (do_mixed_source_and_assembly): Use
9874 make_cleanup_ui_out_tuple_begin_end and
9875 make_cleanup_ui_out_tuple_begin_end.
9876 (do_mixed_source_and_assembly): Ditto.
9877 * thread.c (do_captured_list_thread_ids): Ditto.
9878 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9879 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9880 ui_out_tuple_end): Delete prototypes.
9881 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9882 ui_out_list_end, ui_out_tuple_end): Delete.
9883
9884 From Kevin Buettner <kevinb@redhat.com>:
9885 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
9886 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9887 (do_cleanup_table_end): New functions.
9888 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9889 Use cleanups to invoke_ui_out_tuple_end().
9890 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
9891 * cli/cli-setshow.c (cmd_show_list): Use
9892 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 9893
5b181d62
AC
98942003-02-02 Andrew Cagney <ac131313@redhat.com>
9895
9896 * frame.c (frame_unwind_register): New function.
9897 (frame_unwind_unsigned_register): Use.
9898 (frame_unwind_signed_register): Use.
9899 (frame_read_register): New function.
9900 * frame.h (frame_unwind_register): Declare.
9901 (frame_read_register): Declare.
9902
9903 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9904 and frame_unwind_register instead of read_memory, write_register
9905 and deprecated_write_register_bytes.
9906
5f601589
AC
99072003-02-02 Andrew Cagney <ac131313@redhat.com>
9908
9909 * frame.h: Note that namelen can be negative.
9910 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9911 NAME's length.
9912
9913 * NEWS: Mention that the d10v's `regs' command is deprecated.
9914 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9915 (d10v_print_registers_info): New function.
9916 (show_regs): Call d10v_print_registers_info.
9917 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9918
6a3fe0a4
MK
99192003-02-02 Mark Kettenis <kettenis@gnu.org>
9920
9921 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9922 lost in the previous patch.
9923
075559bc
AC
99242003-02-01 Andrew Cagney <ac131313@redhat.com>
9925
9926 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
9927 * stack.c (print_frame_info_base): Output complete FRAME tuple
9928 for synthesized frames.
075559bc 9929
6789195b
AC
99302003-02-02 Andrew Cagney <ac131313@redhat.com>
9931
9932 * mips-nat.c (zerobuf): Delete.
9933 (fetch_inferior_registers): Alloc local zerobuf.
9934 (fetch_core_registers): Alloc local zerobuf.
9935 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9936 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9937 * thread-db.c (thread_db_store_registers): Ditto.
9938 * sh-tdep.c (sh_do_register): Ditto.
9939 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9940 * remote-sim.c (gdbsim_store_register): Ditto.
9941 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9942 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9943 * monitor.c (monitor_supply_register): Ditto.
9944 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9945 * mips-nat.c (fetch_inferior_registers): Ditto.
9946 * m68klinux-nat.c (fetch_register): Ditto.
9947 * lynx-nat.c (fetch_inferior_registers): Ditto.
9948 (fetch_inferior_registers): Ditto.
9949 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9950 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9951 (hpux_thread_store_registers): Ditto.
9952 * hppah-nat.c (fetch_register): Ditto.
9953 * hppab-nat.c (fetch_register): Ditto.
9954 * hppa-tdep.c (pa_register_look_aside): Ditto.
9955 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9956 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9957
e669114a
AC
99582003-02-01 Andrew Cagney <ac131313@redhat.com>
9959
9960 * gdbarch.sh: Explictly specify all method levels. When a
9961 variable with an empty level, provide a non-multi-arch default.
9962 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9963 * gdbarch.h: Re-generate.
9964 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9965 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9966
9a043c1d
AC
99672003-02-01 Andrew Cagney <ac131313@redhat.com>
9968
9969 * defs.h (host_pointer_to_address): Delete declaration.
9970 (address_to_host_pointer): Delete declaration.
9971 * utils.c (host_pointer_to_address): Delete function.
9972 (address_to_host_pointer): Delete function.
9973 * procfs.c (procfs_address_to_host_pointer): New function.
9974 * procfs.c (proc_set_watchpoint): Use.
9975 (procfs_can_use_hw_breakpoint): Update comments.
9976 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9977 (som_solib_add): Use.
9978 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9979 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 9980
7ca9f392
AC
99812003-02-01 Andrew Cagney <ac131313@redhat.com>
9982
94bbfd30
AC
9983 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9984 strlen d_name.
9985
7ca9f392
AC
9986 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9987 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9988 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9989 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9990 (define_symbol): Update.
9991 * symfile.c (generic_load): Remove references to nindy.
9992 * symtab.c: Remove references to nindy.
9993
31a85ea2
AC
99942003-02-01 Andrew Cagney <ac131313@redhat.com>
9995
9996 * infcmd.c (print_float_info): Delete code conditional on
9997 FLOAT_INFO.
9998 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9999 * config/m68k/nm-apollo68b.h: Ditto.
10000 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10001 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10002 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10003
f6e85fc8
MK
100042003-02-01 Mark Kettenis <kettenis@gnu.org>
10005
6015b6a0
MK
10006 * config/i386/tm-i386os9k.h: Removed.
10007
f7a30bdf
MK
10008 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10009 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10010 they're identical to i[3456]86-*-sysv* now.
10011 * config/i386/i386v32.mh: Removed.
10012 * config/i386/xm-i386v32.h: Removed.
10013 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10014
28d52111
MK
10015 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10016
4d3f6bce
MK
10017 * config/i386/i386dgux.mh: Removed.
10018 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10019
f6e85fc8
MK
10020 * configure.in: Fix typo.
10021 * configure: Regenerated.
10022
53955967
DC
100232003-01-31 David Carlton <carlton@math.stanford.edu>
10024
10025 * dwarf2read.c (dwarf2_locate_sections): Set
10026 dwarf_ranges_section.
10027
b1364885
AC
100282003-01-31 Andrew Cagney <ac131313@redhat.com>
10029
8dbb1c65
AC
10030 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10031 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 10032
8731e58e
AC
10033 * utils.c: Re-indent.
10034
b1364885
AC
10035 * config/djgpp/fnchange.lst: Delete nindy files.
10036 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10037 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10038 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10039 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10040 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10041 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10042 * Makefile.in (init.c): Remove nindy references.
10043 (saber_gdb): Delete rule.
10044 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10045 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10046 and a68v-nat.c.
10047 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10048 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10049 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10050 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10051 nindy-share/stop.h.
10052 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10053 * saber.suppress: Delete file.
10054
086df311
DJ
100552003-01-31 Daniel Jacobowitz <drow@mvista.com>
10056
10057 * dbxread.c (stabs_data): New static variable.
10058 (fill_symbuf): Support an in-memory buffer for stabs data.
10059 (stabs_seek): New function.
10060 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10061 (read_ofile_symtab): Use stabs_seek.
10062 (elfstab_build_psymtabs): Take an asection* instead of
10063 an offset and size. Relocate the stabs data if necessary.
10064 Save the section* for dbx_psymtab_to_symtab.
10065 * dwarf2read.c: Add section variables for each debug section.
10066 (dwarf2_locate_sections): Fill them in.
10067 (dwarf2_read_section): Take an asection* argument.
10068 Relocate the section contents if necessary.
10069 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10070 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10071 it to dwarf2_read_section.
10072 (dwarf2_build_frame_info): Update callers.
10073 * elfread.c (elf_symfile_read): Update call to
10074 elfstab_build_psymtabs.
10075 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10076 (DBX_STAB_SECTION): New macro.
8ffd9b1b 10077 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
10078 * symfile.c (symfile_dummy_outputs): New function.
10079 (symfile_relocate_debug_section): New function.
10080 * symfile.h (symfile_relocate_debug_section): Add prototype.
10081
87d1b352
RH
100822003-01-31 Richard Henderson <rth@redhat.com>
10083
10084 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10085 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10086 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10087 * alpha-tdep.c (alpha_register_name): Add "unique".
10088 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10089 (ALPHA_UNIQUE_REGNUM): New.
10090 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10091
c48861fb
AC
100922003-01-31 Andrew Cagney <ac131313@redhat.com>
10093
10094 * README: Remove reference to Ericsson 1800 monitor.
10095 * Makefile.in (remote-es.o): Delete rule.
10096 (ALLDEPFILES): Delete remote-es.c.
10097 * remote-es.c: Delete file.
10098 * config/m68k/es1800.mt: Delete file.
10099 * config/djgpp/fnchange.lst: Update.
10100 * configure.tgt: Delete m68*-ericsson-* target.
10101
d764a824
AF
101022003-01-31 Adam Fedor <fedor@gnu.org>
10103
10104 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10105 Remove duplicate/shadowing variable of same name.
10106
fe36c4f4
JB
101072003-01-30 Jim Blandy <jimb@redhat.com>
10108
10109 * symfile.c (find_separate_debug_file): Assert that the objfile's
10110 directory name we compute ends with a slash, and then assume that
10111 that's so everywhere we use it.
10112
cb741690
DJ
101132003-01-30 Daniel Jacobowitz <drow@mvista.com>
10114
10115 * valops.c (value_assign): Flush frame cache after stores to memory
10116 also.
10117
96ee5227
AC
101182003-01-30 Andrew Cagney <ac131313@redhat.com>
10119
10120 * Makefile.in (mon960-rom.o): Delete rule.
10121 * mon960-rom.c: Delete file.
10122
7f6104a9
AC
101232003-01-30 Andrew Cagney <ac131313@redhat.com>
10124
10125 * d10v-tdep.c: Include "frame-unwind.h".
10126 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10127 list.
10128 (next_addr, uses_frame): Delete.
10129 (struct d10v_unwind_cache): Define.
10130 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10131 Use info instead of next_addr and uses_frame globals.
10132 (d10v_frame_init_saved_regs): Delete function.
10133 (d10v_init_extra_frame_info): Delete function.
10134 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10135 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10136 init_frame_pc or frame_saved_pc.
10137 (d10v_pop_frame): Delete function.
10138 (do_d10v_pop_frame): Delete function.
10139 (d10v_frame_chain): Delete function.
10140 (d10v_frame_chain_valid): Delete function.
10141 (d10v_frame_pc_unwind): New function.
10142 (d10v_frame_id_unwind): New function.
10143 (saved_regs_unwinder): New function.
10144 (d10v_frame_register_unwind): New function.
10145 (d10v_frame_pop): New function.
10146 (d10v_frame_unwind): New variable.
10147 (d10v_frame_p): New function.
10148 (d10v_frame_saved_pc): Delete function.
10149 * Makefile.in (d10v-tdep.o): Update dependencies.
10150
cad2e848
JB
101512003-01-30 J. Brobecker <brobecker@gnat.com>
10152
10153 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10154 causing some regressions due to a change in the default value
10155 for this macro.
10156
af34e669
DJ
101572003-01-29 Richard Henderson <rth@redhat.com>
10158 Elena Zannoni <ezannoni@redhat.com>
10159 Daniel Jacobowitz <drow@mvista.com>
10160
10161 Fix PR gdb/961.
8ffd9b1b 10162 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
10163 variables.
10164 (RANGES_SECTION): New.
10165 (dwarf_ranges_buffer): New variable.
10166 (struct comp_unit_head): Add member "die".
10167 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10168 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10169 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10170 (dwarf2_locate_sections): Likewise.
10171 (dwarf2_build_psymtabs): Read .debug_ranges.
10172 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10173 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10174 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10175 Look for DW_AT_ranges and return the bounding box.
10176
baa93fa6
CF
101772003-01-29 Brian Ford <ford@vss.fsi.com>
10178
10179 * win32-nat.c (cygwin_pid): Removed as unused.
10180 (child_attach): Try fall back to Cygwin pid.
10181
c63f977f
JB
101822003-01-29 Jim Blandy <jimb@redhat.com>
10183
10184 * objfiles.h (struct objfile): Doc fix.
10185
d62d1979
AC
101862003-01-29 Andrew Cagney <ac131313@redhat.com>
10187
10188 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10189 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10190 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10191 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10192 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10193 (FRAME_SAVED_PC): Change to a function with predicate.
10194 * gdbarch.h, gdbarch.c: Re-generate.
10195
1ae18a04
AC
101962003-01-28 Andrew Cagney <ac131313@redhat.com>
10197
52287340
AC
10198 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10199
1ae18a04
AC
10200 * complaints.c (complain): Delete function.
10201 * complaints.h (struct deprecated_complaint): Delete definition.
10202 (complain): Delete declaration.
10203
f2c16bd6
KB
102042003-01-28 Kevin Buettner <kevinb@redhat.com>
10205
10206 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10207 dummy frames.
10208
a94dd1fd
AC
102092003-01-27 Andrew Cagney <ac131313@redhat.com>
10210
10211 * sentinel-frame.h, sentinel-frame.c: New files.
10212 * Makefile.in (frame.o): Update dependencies.
10213 (SFILES): Add sentinel-frame.c.
10214 (sentinel_frame_h): Define.
10215 (COMMON_OBS): Add sentinel-frame.o.
10216 (sentinel-frame.o): Specify dependencies.
10217 * frame.c: Include "sentinel-frame.h".
10218 (frame_register_unwind): Rewrite assuming that there is always a a
10219 ->next frame.
10220 (frame_register, generic_unwind_get_saved_register): Ditto.
10221 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10222 (create_sentinel_frame, unwind_to_current_frame): New functions.
10223 (get_current_frame): Rewrite using create_sentinel_frame and
10224 unwind_to_current_frame. When possible, always create a frame.
10225 (create_new_frame): Set next to the sentinel frame.
10226 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10227 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10228 ID cache when necessary.
10229 (frame_saved_regs_id_unwind): Use frame_relative_level.
10230 (deprecated_generic_get_saved_register): Use frame_relative_level,
10231 get_frame_saved_regs, get_frame_pc, get_frame_base and
10232 get_next_frame.
10233 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10234 frame_register.
10235
5378adc4
DJ
102362003-01-27 Daniel Jacobowitz <drow@mvista.com>
10237
10238 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10239
51ee2ddc
DJ
102402003-01-27 Daniel Jacobowitz <drow@mvista.com>
10241
10242 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10243 (maintenance_set_profile_cmd): Use error () instead of warning ().
10244
d9feb4e7
DJ
102452003-01-27 Daniel Jacobowitz <drow@mvista.com>
10246
10247 * configure.in: Check that -pg works if using --enable-profiling.
10248 Check for monstartup and _mcleanup regardless of --enable-profiling.
10249 * maint.c: Check for monstartup and _mcleanup before using them.
10250 * config.in: Regenerated.
10251 * configure: Regenerated.
10252
2d188dd3
NC
102532003-01-24 Nick Clifton <nickc@redhat.com>
10254
10255 * Add sh2e support:
10256
10257 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10258
10259 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10260 (sh2e_show_regs): New.
10261 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10262 * config/sh/tm-sh.h: Added sh2e to comments.
10263
cb3c37b2
JB
102642003-01-23 Jim Blandy <jimb@redhat.com>
10265
10266 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10267 symbols found)" message here; we haven't checked for a separate
10268 debug info file yet, so we don't know yet.
10269 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10270 we've looked everywhere. Also, there's no need to print a special
10271 message when we're loading the separate debug info file: the one
10272 symbol_file_add prints is fine.
10273
5b5d99cf
JB
102742003-01-23 Alexander Larsson <alexl@redhat.com>
10275 Jim Blandy <jimb@redhat.com>
10276
10277 Add support for executables whose debug info has been separated
10278 out into a separate file, leaving only a link behind.
10279 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10280 and separate_debug_objfile_backlink.
10281 (put_objfile_before): New declaration.
10282 * symfile.c: #include "filenames.h".
10283 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10284 debug info in a separate file, read that, too. Save the addrs
10285 argument, so we can use it again to read the separated debug info;
10286 syms_from_objfile modifies the table we pass it.
10287 (reread_symbols): After re-reading an objfile, call
10288 reread_separate_symbols to refresh its separate debug info
10289 objfile, if it has one.
10290 (reread_separate_symbols, find_separate_debug_file,
10291 get_debug_link_info, separate_debug_file_exists): New functions.
10292 (debug_file_directory): New global var.
10293 (_initialize_symfile): Initialize debug_file_directory, and
10294 provide the new `set debug-file-directory' command to let the user
10295 change it.
10296 * objfiles.c (free_objfile): If this objfile has its debug info in
10297 a separate objfile, free that one too. If this is itself a
10298 separate debug info objfile, clear our parent's backlink.
10299 (put_objfile_before): New function.
10300 * utils.c (gnu_debuglink_crc32): New function.
10301 * defs.h (gnu_debuglink_crc32): New declaration.
10302 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10303 * configure.in: Handle --with-separate-debug-dir config option.
10304 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10305 * acconfig.h (DEBUGDIR): New macro.
10306 * configure, aclocal.m4, config.in: Regenerated.
10307
7e8580c1
JB
103082003-01-22 Jim Blandy <jimb@redhat.com>
10309
7904e09f
JB
10310 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10311 like the old symbol_file_add, but taking new arguments: you can
10312 now pass in either a `struct section_addr_info' list to say where
10313 each section is loaded, or a `struct section_offsets' table. Pass
10314 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 10315 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
10316 with the appropriate quiescent values for the new arguments.
10317
7e8580c1
JB
10318 * symfile.c: #include "gdb_assert.h".
10319 (syms_from_objfile): Add the ability to pass in a section offset
10320 table directly, as an alternative to the section_addr_info table.
10321 Document arguments better.
10322 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10323 * symfile.h (syms_from_objfile): Update declaration.
10324 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10325 syms_from_objfile.
10326 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10327
d28f9cdf
DJ
103282003-01-22 Daniel Jacobowitz <drow@mvista.com>
10329
10330 Original patch by Tom Tromey <tromey@cygnus.com> and
10331 Jason Molenda <jmolenda@apple.com>.
10332 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10333 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10334 * NEWS: Mention profiling.
10335 * configure.in (--enable-gdbtk): Fix typo.
10336 (--enable-profiling): New. Set PROFILE_CFLAGS.
10337 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10338 Fill in function.
10339 (profiling_state): New variable.
10340 (mcleanup_wrapper): New function.
10341 (_initialize_maint): Remove NOTYET, fix call to
10342 add_setshow_boolean_cmd for "maint set profile".
10343 * configure: Regenerated.
10344
df21e465
MH
103452003-01-21 Martin M. Hunt <hunt@redhat.com>
10346
10347 * Makefile.in (install-gdbtk): Install PNG images too.
10348
73c1f219
AC
103492003-01-21 Andrew Cagney <ac131313@redhat.com>
10350
10351 * exec.c (text_start): Delete global variable.
10352 (exec_file_attach): Make text_start local to the function.
10353 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10354 * valops.c (hand_function_call): Delete code that handles
10355 BEFORE_TEXT_END and AFTER_TEXT_END.
10356 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10357 of CALL_DUMMY_LOCATION.
10358 * gdbarch.c: Regenerate.
10359 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10360 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10361 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10362 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10363 (text_end): Delete extern declaration.
10364
eb4f72c5
AC
103652003-01-21 Andrew Cagney <ac131313@redhat.com>
10366
10367 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10368 * blockframe.c (backtrace_below_main): Move to "frame.c".
10369 (frame_chain_valid): Delete check for backtrace_below_main.
10370 (_initialize_blockframe): Delete initialization, move ``set
10371 backtrace-below-main'' command to "frame.c".
10372 (do_flush_frames_sfunc): Delete function.
10373 * frame.c: Include "command.h" and "gdbcmd.h".
10374 (frame_type_from_pc): New function.
10375 (create_new_frame): Use frame_type_from_pc.
10376 (legacy_get_prev_frame): New function.
10377 (get_prev_frame): Rewrite. When an old style frame, call
10378 legacy_get_prev_frame. Otherwize, unwind the PC first.
10379 (_initialize_frame): Add ``set backtrace-below-main'' command.
10380 * Makefile.in (frame.o): Update dependencies.
10381
778ce8cc
AC
103822003-01-19 Andrew Cagney <ac131313@redhat.com>
10383
10384 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10385 DEPRECATED_REGISTERS_INFO.
10386
01c193c8
AC
103872003-01-19 Andrew Cagney <ac131313@redhat.com>
10388
10389 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10390 Maintainers'. Update `Various Maintainers'.
10391
dedc2a2b
AC
103922003-01-19 Andrew Cagney <ac131313@redhat.com>
10393
10394 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10395 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10396 Suppress actual parameters when `-'.
10397 * gdbarch.h, gdbarch.c: Regenerate.
10398
b7261c70
AC
103992003-01-19 Andrew Cagney <ac131313@redhat.com>
10400
10401 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10402 code handling dummy frames.
10403
dbe9fe58
AC
104042003-01-19 Andrew Cagney <ac131313@redhat.com>
10405
10406 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10407 (struct frame_unwind): Add field pop.
10408 * frame.h (frame_pop): Declare.
10409 * frame.c (frame_saved_regs_pop): New function.
10410 (trad_frame_unwinder): Add frame_saved_regs_pop.
10411 (frame_pop): New function.
10412 * dummy-frame.c (dummy_frame_pop): New function.
10413 (discard_innermost_dummy): New function.
10414 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10415 (dummy_frame_unwind): Add dummy_frame_pop.
10416 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10417 * valops.c (hand_function_call): Ditto.
10418 * stack.c (return_command): Ditto.
10419
570b8f7c
AC
104202003-01-18 Andrew Cagney <ac131313@redhat.com>
10421
10422 * cris-tdep.c: Fix function declaration indentation.
10423 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10424 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10425 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10426 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10427 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10428 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10429
104302003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
10431
10432 * README (Unpacking and Installation -- quick overview):
10433 Warn against ".../gdb-5.3/gdb/configure".
10434
494cca16
AC
104352003-01-18 Andrew Cagney <ac131313@redhat.com>
10436
10437 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10438 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10439 (struct frame_unwind): Declare opaque.
10440 (dummy_frame_p): Declare function.
10441 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10442 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10443 * dummy-frame.c: Include "frame-unwind.h".
10444 (dummy_frame_p): New function.
10445 (dummy_frame_unwind): New variable.
10446 * frame.c: Include "frame-unwind.h".
10447 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10448 to use the new unwind field.
10449 (set_unwind_by_pc): Delete function.
10450 (create_new_frame, get_prev_frame): Set unwind field using
10451 frame_unwind_find_by_pc.
10452 (trad_frame_unwind, trad_frame_unwinder): New variables.
10453 * frame.h (trad_frame_unwind): Declare variable.
10454 (frame_id_unwind_ftype): Delete declaration.
10455 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10456 (struct frame_unwind): Declare opaque.
10457 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10458 register_unwind with a single unwind pointer.
10459 * frame-unwind.h, frame-unwind.c: New files.
10460 * Makefile.in (SFILES): Add frame-unwind.c.
10461 (frame_unwind_h): Define.
10462 (COMMON_OBS): Add frame-unwind.o.
10463 (frame-unwind.o): Specify dependencies.
10464 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 10465
4efb68b1
AC
104662003-01-18 Andrew Cagney <ac131313@redhat.com>
10467
10468 * ada-valprint.c: Eliminate PTR.
10469 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10470 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10471 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10472 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10473 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10474 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10475 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 10476
a84d24ee
AC
104772003-01-17 Andrew Cagney <ac131313@redhat.com>
10478
762f08a3
AC
10479 * main.c (captured_main): Don't use PTR.
10480 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10481 * gdbtypes.c (lookup_primitive_typename): Ditto.
10482 (lookup_struct_elt_type): Ditto.
10483 * f-valprint.c (info_common_command): Ditto.
10484 (list_all_visible_commons): Ditto.
10485 * jv-typeprint.c (java_type_print_base): Ditto.
10486
a84d24ee
AC
10487 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10488 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10489 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10490 i386-interix-nat.c and i386-interix-tdep.c. Rename
10491 m68klinux-nat.c and m68klinux-tdep.c. Rename
10492 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10493 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10494 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10495 * main.c (captured_main): Use xfree, not free.
10496
c170fb60
AC
104972003-01-16 Andrew Cagney <ac131313@redhat.com>
10498
10499 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10500 ID back using a parameter.
10501 * frame.c (frame_id_unwind): Update call.
10502 (frame_saved_regs_id_unwind): Update.
10503 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10504 * dummy-frame.h (struct frame_id): Add opaque declaration.
10505 (dummy_frame_id_unwind): Update declaration.
10506
867f3898
AC
105072003-01-15 Andrew Cagney <ac131313@redhat.com>
10508
10509 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10510
40622be8 105112003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 10512
40622be8 10513 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 10514
ae66c1fc
EZ
105152003-01-14 Elena Zannoni <ezannoni@redhat.com>
10516
997b089a 10517 Fix PR gdb/898
ae66c1fc
EZ
10518 * breakpoint.c (until_break_command): Add new argument. Use it to
10519 decide whether to stop only at the current frame or not.
10520 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 10521 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
10522 call.
10523 (advance_command): New function.
10524 (_initialize_infcmd): Update help string for 'until' command.
10525 Add new 'advance' command.
10526
a04257e6
DC
105272003-01-14 David Carlton <carlton@math.stanford.edu>
10528
10529 * linespec.c (decode_line_1): Normalize comments.
10530 (set_flags): Ditto.
10531 (locate_first_half): Ditto.
10532 (decode_compound): Ditto.
10533 (symtab_from_filename): Ditto.
10534 (decode_all_digits): Ditto.
10535 (decode_dollar): Ditto.
10536 (find_methods): Ditto.
10537 (find_toplevel_char): Ditto.
10538
1bac305b
AC
105392003-01-13 Andrew Cagney <ac131313@redhat.com>
10540
10541 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10542 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10543 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10544 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10545 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10546 * language.c, language.h, m32r-tdep.c: Update copyright.
10547 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10548 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10549 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10550 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10551 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10552 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10553
25caa7a8
EZ
105542003-01-13 Elena Zannoni <ezannoni@redhat.com>
10555
10556 * stabsread.h (process_later, resolve_cfront_continuation):
10557 Obsolete.
10558 Update copyright years.
10559 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10560 Update copyright year.
10561 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 10562 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
10563 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10564 Update copyright year.
10565 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10566 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10567 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10568 (parse_partial_symbols): Obsolete cfront support.
10569 * stabsread.c
10570 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10571 macros.
10572 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10573 read_cfront_baseclasses, read_cfront_member_functions,
10574 resolve_cfront_continuation,read_cfront_static_fields,
10575 copy_cfront_struct_fields): Obsolete functions.
10576 (define_symbol, read_one_struct_field): Obsolete cfront support.
10577 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10578 Update Copyright year.
10579
7789c6f5
EZ
105802003-01-13 Elena Zannoni <ezannoni@redhat.com>
10581
10582 * stack.c (print_frame_info, print_stack_frame_base_stub,
10583 print_stack_frame_base, show_and_print_stack_frame_stub,
10584 show_and_print_stack_frame, print_only_stack_frame_stub,
10585 print_only_stack_frame): Delete functions.
10586 (print_stack_frame_stub): Call print_frame_info instead of
10587 print_frame_info_base.
10588 (print_frame_info_base): Rename to print_frame_info.
10589 (backtrace_command_1): Call print_frame_info, instead of
10590 print_frame_info_base.
10591 (current_frame_command): Call print_stack_frame, instead of
10592 print_only_stack_frame.
10593 (frame_command): Call print_stack_frame, instead of
10594 show_and_print_stack_frame.
10595 (up_command): Ditto.
10596 (down_command): Ditto.
10597 * frame.h (print_only_stack_frame): Delete prototype.
10598 * infrun.c (normal_stop): Call print_stack_frame, instead of
10599 show_and_print_stack_frame.
10600 * thread.c (info_threads_command): Call print_stack_frame, instead
10601 of print_only_stack_frame.
10602
3f5a3016
AC
106032003-01-13 Andrew Cagney <ac131313@redhat.com>
10604
d99ba314
AC
10605 * README (Graphical interface to GDB): Update URL. Point at
10606 gdb/links/.
10607
3f5a3016
AC
10608 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10609 version match.
10610
083ae935
DJ
106112003-01-13 Daniel Jacobowitz <drow@mvista.com>
10612
10613 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10614 lines.
10615
5365276c
DJ
106162003-01-13 Daniel Jacobowitz <drow@mvista.com>
10617
10618 * thread-db.c (attach_thread): Prototype.
10619 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10620 thread information (ti), and valid flags (th_valid, ti_valid).
10621 (attach_thread): Move target_pid_to_str call to after the thread
10622 is added to GDB's list. Initialize the cache.
10623 (thread_get_info_callback, thread_db_map_id2thr)
10624 (thread_db_get_info): New functions.
10625 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10626 (thread_db_store_registers, thread_db_thread_alive)
10627 (thread_db_get_thread_local_address): Use them.
10628 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10629 of calling error() for threads in unknown state.
10630
10631 (clear_lwpid_callback): New function.
10632 (thread_db_resume): Use it to clear the cache.
10633
9fc30b6b
DJ
106342003-01-13 Daniel Jacobowitz <drow@mvista.com>
10635
10636 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10637 (resume_callback): Remove dead code.
10638
8f871025
AC
106392003-01-13 Andrew Cagney <ac131313@redhat.com>
10640
10641 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10642 predicate.
10643 * gdbarch.h, gdbarch.c: Regenerate.
10644 * stack.c (frame_info): Only initialize the saved registers when
10645 FRAME_INIT_SAVED_REGS_P.
10646 * frame.c (frame_saved_regs_register_unwind): Assert
10647 FRAME_INIT_SAVED_REGS_P.
10648 (deprecated_generic_get_saved_register): Ditto.
10649
3f565f1e
DJ
106502003-01-13 Daniel Jacobowitz <drow@mvista.com>
10651
10652 * source.c (openp): Squelch warning about "filename".
10653
072b1022
DJ
106542003-01-13 Daniel Jacobowitz <drow@mvista.com>
10655
10656 * source.c (openp): If the file does not exist don't necessarily
10657 search the path.
10658
973ccf8b
DJ
106592003-01-13 Daniel Jacobowitz <drow@mvista.com>
10660
10661 Fix PR gdb/872.
10662 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10663 (integer_types_same_name_p): New function.
10664 (rank_one_type): Use it.
10665 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10666
030292b7
DJ
106672003-01-13 Daniel Jacobowitz <drow@mvista.com>
10668
10669 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10670 variables.
10671 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10672 * configure.in: Add --with-sysroot.
10673 * configure: Regenerated.
10674 * main.c (gdb_sysroot): New variable.
10675 (captured_main): Initialize gdb_sysroot.
10676 * defs.h (gdb_sysroot): New extern declaration.
10677 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10678
afb5d334
MC
106792003-01-12 Michael Chastain <mec@shout.net>
10680
10681 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10682
751ceeb4
MC
106832003-01-12 Michael Chastain <mec@shout.net>
10684
10685 * top.c (print_gdb_version): Bump copyright year to 2003.
10686
94cd26f8
DC
106872003-01-12 David Carlton <carlton@bactrian.org>
10688
10689 * linespec.c (symtab_from_filename): Rename variable 's' to
10690 'file_symtab'.
10691
1ce79225
AC
106922003-01-12 Andrew Cagney <ac131313@redhat.com>
10693
10694 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10695 dummy frame.
10696 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10697
fa1fd571
AC
106982003-01-12 Andrew Cagney <ac131313@redhat.com>
10699
10700 * d10v-tdep.c: Include "gdb_assert.h".
10701 (d10v_store_return_value): Rewrite to match current interface.
10702 (d10v_extract_struct_value_address): Ditto.
10703 (d10v_extract_return_value): Ditto.
10704 (d10v_gdbarch_init): Set store_restore_value,
10705 extract_struct_value_address and extract_return_value.
10706
68b8d23e
JB
107072003-01-12 J. Brobecker <brobecker@gnat.com>
10708
10709 * hpread.c (set_namestring): New procedure replacing the
10710 SET_NAMESTRING macro.
10711 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10712 by calls to set_namestring.
10713
107142003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
10715
10716 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10717 a compilation warning.
10718 (hpread_process_one_debug_symbol): Likewise.
10719
88d262ca
DC
107202003-01-10 David Carlton <carlton@math.stanford.edu>
10721
10722 * linespec.c (decode_line_1): Rename variable 's' to
10723 'file_symtab'.
10724 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10725 (decode_dollar): Ditto.
10726 (decode_variable): Ditto.
10727 (symbol_found): Ditto.
10728
86669319
MC
107292003-01-09 Michael Chastain <mec@shout.net>
10730
10731 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10732
616a9dc4
CV
107332003-01-07 Corinna Vinschen <vinschen@redhat.com>
10734
10735 * win32-nat.c (set_process_privilege): New function.
10736 (child_attach): Call set_process_privilege() to enable the
10737 SE_DEBUG_NAME user privilege if available in process token.
10738
3269bcfa
JB
107392003-01-10 J. Brobecker <brobecker@gnat.com>
10740
10741 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10742 compilation error in the previous revision.
10743
2b0ee454
DC
107442003-01-09 David Carlton <carlton@math.stanford.edu>
10745
10746 * linespec.c: Update copyright.
10747
b3ba1b44
DJ
107482003-01-09 Daniel Jacobowitz <drow@mvista.com>
10749
10750 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10751 than inferior_ptid.
10752 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10753
4ef3f3be
AC
107542003-01-09 Andrew Cagney <ac131313@redhat.com>
10755
479ab5a0
AC
10756 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10757 Update comments.
10758 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10759 (frame_saved_regs_zalloc): Update.
10760 (frame_saved_regs_register_unwind): Update.
10761 (create_new_frame): Update.
10762 (get_prev_frame): Update.
10763 (frame_extra_info_zalloc): Update.
10764 (deprecated_get_frame_saved_regs): Update.
10765 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10766 * cris-tdep.c: Update comment.
10767
bde58177
AC
10768 * somsolib.h: Fix function indentation.
10769 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10770 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10771 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10772 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10773 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10774
4ef3f3be
AC
10775 * infrun.c (follow_fork): Use ISO C definition.
10776 * expprint.c (print_subexp): Use xfree instead of free.
10777 * charset.c: Include "gdb_string.h" instead of <string.h>.
10778 (register_iconv_charsets): Use ISO C definition.
10779 (host_charset, target_charset): Ditto.
10780 * Makefile.in (charset.o): Update dependencies.
10781 (mi-cmd-env.o): Update dependencies.
10782
1c615f7a
AC
107832003-01-08 Andrew Cagney <cagney@redhat.com>
10784
10785 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10786 get_frame_base.
10787
c9a1dc08
AC
107882003-01-08 Andrew Cagney <ac131313@redhat.com>
10789
10790 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10791 build directories. Save edited gdb output in Mbuild.log. If a
10792 build fails, remove any final GDB executable.
10793
dbad9d94
AC
107942003-01-08 Andrew Cagney <ac131313@redhat.com>
10795
10796 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10797 replacing hex constants with function names and stripping leading
10798 file name directory prefixes.
10799
8d357cca
AC
108002003-01-08 Andrew Cagney <cagney@redhat.com>
10801
10802 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10803 get_frame_base.
10804
bca02a8a
DC
108052003-01-08 David Carlton <carlton@math.stanford.edu>
10806
10807 * linespec.c (decode_line_1): Move code into decode_variable.
10808 (decode_variable): New function.
10809
7f8ab3a0
AC
108102003-01-08 Andrew Cagney <ac131313@redhat.com>
10811
10812 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10813
7b5849cc
AC
108142003-01-08 Andrew Cagney <cagney@redhat.com>
10815
10816 * cris-tdep.c (cris_frame_init_saved_regs): Use
10817 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10818 saved_regs buffer.
10819 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10820 (sh64_nofp_frame_init_saved_regs): Ditto.
10821 (sh_fp_frame_init_saved_regs): Ditto.
10822 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10823 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10824 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10825 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10826
72a5efb3
DJ
108272003-01-08 Daniel Jacobowitz <drow@mvista.com>
10828
10829 * minsyms.c (lookup_minimal_symbol): Update comment.
10830 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10831 (lookup_minimal_symbol_solib_trampoline): Likewise.
10832
11c02a10
AC
108332003-01-08 Andrew Cagney <cagney@redhat.com>
10834
aab3ea25
AC
10835 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10836 frame_relative_level.
10837
da50a4b7
AC
10838 * alpha-tdep.c: Use get_frame_extra_info.
10839 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10840 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10841 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10842 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10843
11c02a10
AC
10844 * alpha-tdep.c: Use get_next_frame.
10845 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10846 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10847 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10848 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10849 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10850 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10851 * xstormy16-tdep.c: Ditto.
8ffd9b1b 10852
1e2330ba
AC
108532003-01-07 Andrew Cagney <cagney@redhat.com>
10854
10855 * alpha-tdep.c: Use get_frame_base.
10856 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10857 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10858 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10859 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10860 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10861 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10862 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10863 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 10864
2d75187b
AC
108652003-01-07 Andrew Cagney <cagney@redhat.com>
10866
10867 * frame.c (deprecated_get_frame_context): New function.
10868 (deprecated_set_frame_context): New function.
10869 * frame.h (deprecated_get_frame_context): Declare.
10870 (deprecated_set_frame_context): Declare.
10871 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10872 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 10873
483d36b2
AC
108742003-01-07 Andrew Cagney <cagney@redhat.com>
10875
10876 * frame.c (deprecated_set_frame_next_hack): New function.
10877 (deprecated_set_frame_prev_hack): New function.
10878 * frame.h (deprecated_set_frame_next_hack): Declare.
10879 (deprecated_set_frame_prev_hack): Declare.
10880 * mcore-tdep.c (analyze_dummy_frame): Use
10881 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10882 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10883
14e91ac5
DC
108842003-01-07 David Carlton <carlton@math.stanford.edu>
10885
10886 * linespec.c (decode_line_1): Move code into decode_dollar.
10887 (decode_dollar): New function.
10888
b0c6b05c
AC
108892003-01-07 Andrew Cagney <cagney@redhat.com>
10890
10891 * arm-tdep.c (arm_init_extra_frame_info): Use
10892 deprecated_update_frame_base_hack.
10893 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10894 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10895 (fix_frame_pointer): Ditto.
10896 (mn10300_analyze_prologue): Ditto.
10897
a00a19e9
AC
108982003-01-07 Andrew Cagney <cagney@redhat.com>
10899
10900 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10901 extra_info using frame_extra_info_zalloc.
10902 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10903 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10904 (sh64_init_extra_frame_info): Ditto.
10905 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10906 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10907 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10908 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10909 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10910 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10911 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10912 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10913 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10914 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10915 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10916 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10917
10918 * mn10300-tdep.c (analyze_dummy_frame): Use
10919 deprecated_set_frame_extra_info_hack.
10920 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10921
1fb4c65b
JB
109222003-01-07 J. Brobecker <brobecker@gnat.com>
10923
10924 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10925 class is not scText. These do not define "real" procedures.
10926 (parse_partial_symbols): Likewise.
10927
9fe7d6bf
MS
109282003-01-06 Michael Snyder <msnyder@redhat.com>
10929
10930 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10931
f6c609c4
AC
109322003-01-06 Andrew Cagney <ac131313@redhat.com>
10933
10934 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10935 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10936 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10937 deprecated_frame_xmalloc_with_cleanup.
10938 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10939 deprecated_frame_xmalloc.
10940 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10941 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10942
d995ff4b
AC
109432003-01-06 Andrew Cagney <cagney@redhat.com>
10944
84dc46cb
AC
10945 * x86-64-linux-tdep.c: Include "osabi.h".
10946 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10947
d995ff4b
AC
10948 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10949
66140c26
AC
109502003-01-06 Andrew Cagney <cagney@redhat.com>
10951
10952 * MAINTAINERS (Target Instruction Set Architectures): Update
10953 arm-elf. Can be built with -Werror, has been multiarched.
10954
10955 * value.h (unpack_long): Make buffer parameter constant.
10956 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10957 * scm-lang.h (scm_parse): Ditto.
10958 * defs.h (extract_typed_address, extract_address): Ditto.
10959 (extract_long_unsigned_integer): Ditto.
10960 * inferior.h (unsigned_pointer_to_address): Ditto.
10961 (signed_pointer_to_address): Ditto.
10962 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10963 * gdbarch.h, gdbarch.c: Regenerate.
10964 * findvar.c (extract_long_unsigned_integer): Update.
10965 (extract_address): Update.
10966 (extract_typed_address): Update.
10967 (unsigned_pointer_to_address): Update.
10968 * values.c (unpack_long): Update.
10969 (unpack_double): Update.
10970 (unpack_pointer): Update.
10971 (unpack_field_as_long): Update.
10972 * d10v-tdep.c (d10v_pointer_to_address): Update.
10973 * avr-tdep.c (avr_pointer_to_address): Update.
10974 * scm-lang.c (scm_unpack): Update.
10975 * findvar.c (signed_pointer_to_address): Update.
10976
b089b3da
ML
109772003-01-06 Michal Ludvig <mludvig@suse.cz>
10978
8ffd9b1b 10979 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
10980 since it is in i386-tdep.c.
10981
aff87235
JB
109822003-01-06 J. Brobecker <brobecker@gnat.com>
10983
10984 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10985 failure introduced in the previous change.
10986
34f5e845
MC
109872003-01-05 Michael Chastain <mec@shout.net>
10988
10989 * README: Remove references to deleted remote-*.c files:
10990 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10991 remote-nrom.c, remote-os9k.c, remote-udi.c.
10992
28bcfd30
MK
109932003-01-05 Mark Kettenis <kettenis@gnu.org>
10994
10995 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10996 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10997 i386_get_longjmp_target.
10998
15a5b3ee
AC
109992003-01-05 Andrew Cagney <ac131313@redhat.com>
11000
11001 * arm-tdep.c (prologue_cache): Change to a pointer.
11002 (_initialize_arm_tdep): Allocate prologue_cache.
11003 (check_prologue_cache): Update.
11004 (save_prologue_cache): Update.
11005 (arm_gdbarch_init): Update.
11006
c263362b
DJ
110072003-01-04 Daniel Jacobowitz <drow@mvista.com>
11008
11009 * stabsread.c (update_method_name_from_physname): Call complaint()
11010 instead of error.
11011
51603483
DJ
110122003-01-04 Daniel Jacobowitz <drow@mvista.com>
11013
11014 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11015 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11016 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11017
11018 * blockframe.c: Include "gdbcmd.h" and "command.h".
11019 (backtrace_below_main): New variable.
11020 (file_frame_chain_valid, func_frame_chain_valid)
11021 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11022 (generic_func_frame_chain_valid): Remove functions.
11023 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11024 (_initialize_blockframe): New function.
11025 * Makefile.in (blockframe.o): Update dependencies.
11026 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11027 comment. Call frame_chain_valid ().
11028 * frame.h: Remove old prototypes. Add prototype for
11029 frame_chain_valid and update comments to match.
11030 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11031 Remove old comment.
11032 * gdbarch.h: Regenerated.
11033 * gdbarch.c: Regenerated.
11034
11035 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11036 set_gdbarch_frame_chain_valid.
11037 * avr-tdep.c (avr_gdbarch_init): Likewise.
11038 * cris-tdep.c (cris_gdbarch_init): Likewise.
11039 * frv-tdep.c (frv_gdbarch_init): Likewise.
11040 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11041 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11042 (i386_nw_init_abi): Likewise.
11043 (i386_gdbarch_init): Likewise.
11044 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11045 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11046 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11047 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11048 * mips-tdep.c (mips_gdbarch_init): Likewise.
11049 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11050 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11051 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11052 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11053 * s390-tdep.c (s390_gdbarch_init): Likewise.
11054 * sh-tdep.c (sh_gdbarch_init): Likewise.
11055 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11056 * v850-tdep.c (v850_gdbarch_init): Likewise.
11057 * vax-tdep.c (vax_gdbarch_init): Likewise.
11058 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11059
11060 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11061 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11062 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11063 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11064 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11065 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11066 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11067 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11068
b00a8037
DJ
110692002-01-04 Daniel Jacobowitz <drow@mvista.com>
11070
11071 * Makefile.in (acconfig_h): Remove incorrect macro.
11072 (config_h): Define.
11073 (osabi.o): Update dependencies.
11074 * configure.tgt: Set gdb_osabi based on target triplet.
11075 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11076 * configure: Regenerated.
11077 * config.in: Regenerated.
11078 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11079 (GDB_OSABI_DEFAULT): Define if not already defined.
11080 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11081 (set_osabi_string): New variables.
11082 (gdbarch_register_osabi): Add new OS ABI to
11083 gdb_osabi_available_names.
11084 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11085 (set_osabi, show_osabi): New functions.
11086 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11087
4be87837
DJ
110882003-01-04 Daniel Jacobowitz <drow@mvista.com>
11089
11090 * arch-utils.c (gdbarch_info_init): Set osabi to
11091 GDB_OSABI_UNINITIALIZED.
11092 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11093 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11094 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11095 * gdbarch.c: Regenerated.
11096 * gdbarch.h: Regenerated.
11097 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11098 there's no BFD.
11099 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11100 * osabi.h (enum gdb_osabi): Move to defs.h.
11101 (gdbarch_init_osabi): Update prototype.
11102 * defs.h (enum gdb_osabi): Moved here.
11103 * Makefile.in: Update dependencies.
11104
11105 * alpha-tdep.h: Don't include "osabi.h".
11106 (struct gdbarch_tdep): Remove osabi member.
11107 * alpha-tdep.c: Include "osabi.h".
11108 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11109 iterate over arches. Update call to gdbarch_init_osabi.
11110 (alpha_dump_tdep): Don't dump osabi.
11111 * alpha-linux-tdep.c: Include "osabi.h".
11112 * alpha-osf1-tdep.c: Include "osabi.h".
11113 * alphafbsd-tdep.c: Include "osabi.h".
11114 * alphanbsd-tdep.c: Include "osabi.h".
11115
11116 * arm-tdep.h: Don't include "osabi.h".
11117 (struct gdbarch_tdep): Remove osabi member.
11118 * arm-tdep.c: Include "osabi.h".
11119 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11120 iterate over arches. Update call to gdbarch_init_osabi.
11121 (arm_dump_tdep): Don't dump osabi.
11122 * arm-linux-tdep.c: Include "osabi.h".
11123 * armnbsd-tdep.c: Include "osabi.h".
11124
11125 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11126 Update call to gdbarch_init_osabi.
11127
11128 * i386-tdep.h: Don't include "osabi.h".
11129 (struct gdbarch_tdep): Remove osabi member.
11130 * i386-tdep.c: Include "osabi.h".
11131 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11132 iterate over arches. Update call to gdbarch_init_osabi.
11133 (i386_dump_tdep): Don't dump osabi.
11134 * i386-linux-tdep.c: Include "osabi.h".
11135 * i386-sol2-tdep.c: Include "osabi.h".
11136 * i386bsd-tdep.c: Include "osabi.h".
11137 * i386gnu-tdep.c: Include "osabi.h".
11138 * i386ly-tdep.c: Include "osabi.h".
11139 * i386nbsd-tdep.c: Include "osabi.h".
11140 * i386obsd-tdep.c: Include "osabi.h".
11141
11142 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11143 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11144 check osabi when iterating over arches. Update call to
11145 gdbarch_init_osabi.
11146 (mips_dump_tdep): Don't dump osabi.
11147
11148 * ns32k-tdep.h: Don't include "osabi.h".
11149 (struct gdbarch_tdep): Remove.
11150 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11151 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11152 allocate tdep. Update call to gdbarch_init_osabi.
11153 (ns32k_dump_tdep): Remove.
11154 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11155 * ns32knbsd-tdep.c: Include "osabi.h".
11156
11157 * ppc-tdep.h: Don't include "osabi.h".
11158 (struct gdbarch_tdep): Remove osabi member.
11159 * rs6000-tdep.c: Include "osabi.h".
11160 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11161 osabi when iterating over arches. Update call to
11162 gdbarch_init_osabi.
11163 (rs6000_dump_tdep): Don't dump osabi.
11164 * ppc-linux-tdep.c: Include "osabi.h".
11165 * ppcnbsd-tdep.c: Include "osabi.h".
11166
11167 * sh-tdep.h: Don't include "osabi.h".
11168 (struct gdbarch_tdep): Remove osabi member.
11169 * sh-tdep.c: Include "osabi.h".
11170 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11171 iterate over arches. Update call to gdbarch_init_osabi.
11172 (sh_dump_tdep): Don't dump osabi.
11173 * shnbsd-tdep.c: Include "osabi.h".
11174
11175 * sparc-tdep.c: Include "osabi.h".
11176 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11177 iterate over arches. Update call to gdbarch_init_osabi.
11178 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11179 tdep structure.
11180
11181 * vax-tdep.h: Don't include "osabi.h".
11182 (struct gdbarch_tdep): Remove.
11183 * vax-tdep.c: Include "osabi.h".
11184 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11185 iterate over arches. Don't allocate tdep. Update call
11186 to gdbarch_init_osabi.
11187 (vax_dump_tdep): Remove.
11188 (_initialize_vax_tdep): Update call to gdbarch_register.
11189
a881cf8e
DJ
111902003-01-04 Daniel Jacobowitz <drow@mvista.com>
11191
11192 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11193 entirely.
11194 (breakpoint_re_set_one): Don't fetch the value for a disabled
11195 watchpoint.
11196
1e698235
DJ
111972003-01-04 Daniel Jacobowitz <drow@mvista.com>
11198
11199 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11200 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11201 (COERCE_FLOAT_TO_DOUBLE): Remove.
11202 * gdbarch.c: Regenerate.
11203 * gdbarch.h: Regenerate.
11204 * Makefile.in: Remove value_h from gdbarch_h.
11205 * valops.c (coerce_float_to_double): New variable.
11206 (default_coerce_float_to_double): Remove.
11207 (standard_coerce_float_to_double): Remove.
11208 (value_arg_coerce): Use coerce_float_to_double.
11209 (_initialize_valops): Add "set coerce-float-to-double".
11210 * value.h (default_coerce_float_to_double): Remove prototype.
11211 (standard_coerce_float_to_double): Remove prototype.
11212
11213 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11214 prototyped.
11215 * mdebugread.c (parse_symbol): Likewise.
11216 * stabsread.c (define_symbol): Mark all functions as prototyped.
11217
11218 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11219 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11220 set_gdbarch_coerce_float_to_double.
11221 * arm-tdep.c (arm_gdbarch_init): Likewise.
11222 * frv-tdep.c (frv_gdbarch_init): Likewise.
11223 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11224 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11225 * mips-tdep.c (mips_gdbarch_init): Likewise.
11226 (mips_coerce_float_to_double): Remove.
11227 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11228 (rs6000_coerce_float_to_double): Remove.
11229 * s390-tdep.c (s390_gdbarch_init): Likewise.
11230 * sh-tdep.c (sh_gdbarch_init): Likewise.
11231 (sh_coerce_float_to_double): Remove.
11232 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11233 (sparc_coerce_float_to_double): Remove.
11234 * v850-tdep.c (v850_gdbarch_init): Likewise.
11235 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11236 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11237 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11238 (hppa_coerce_float_to_double): Remove prototype.
11239 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11240
f436a26a
DJ
112412003-01-04 Daniel Jacobowitz <drow@mvista.com>
11242
11243 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11244
248f8055
DJ
112452003-01-04 Daniel Jacobowitz <drow@mvista.com>
11246
11247 Suggested by Stewart Brown <sb24@avaya.com>:
11248 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11249 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11250 (c_type_print_varspec_suffix): Likewise.
11251
72cfdc76
MK
112522003-01-04 Mark Kettenis <kettenis@gnu.org>
11253
bfd260bb
MK
11254 * configure.in: Don't set and AC_SUBST SUBDIRS.
11255 * configure: Regenerated.
11256
72cfdc76
MK
11257 * configure.in: Remove code dealing with shared libraries.
11258 * Makefile.in: Remove HLDFLAGS and HLDENV.
11259 * configure: Regenerated.
11260
c8b8a898
AC
112612003-01-04 Andrew Cagney <ac131313@redhat.com>
11262
11263 * frame.c (deprecated_frame_xmalloc): New function.
11264 (deprecated_set_frame_saved_regs_hack): New function.
11265 (deprecated_set_frame_extra_info_hack): New function.
11266 * frame.h (deprecated_frame_xmalloc): Declare.
11267 (deprecated_set_frame_saved_regs_hack): Declare.
11268 (deprecated_set_frame_extra_info_hack): Declare.
11269
14abd0fb
MK
112702003-01-04 Mark Kettenis <kettenis@gnu.org>
11271
8ee53726
MK
11272 * configure.in: Move code that provides the --enable-gdbtk option
11273 right after the code that handles the --enable-tui option, and
11274 polish it somewhat.
11275 * configure: Regenerated.
11276
14abd0fb
MK
11277 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11278 AC_CHECK_FUNCS and remove the old check for pread64.
11279 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11280 * acconfig.h (_GNU_SOURCE): Add.
11281 (HAVE_PREAD64): Remove.
11282 * configure, aclocal.m4, config.in: Regenerated.
11283
b2fb4676
AC
112842003-01-03 Andrew Cagney <ac131313@redhat.com>
11285
11286 * alpha-tdep.c: Use get_frame_saved_regs.
11287 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11288 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11289 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11290 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11291 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11292
8dcde887
MK
112932003-01-03 Mark Kettenis <kettenis@gnu.org>
11294
11295 * configure.in: Remove all use of the SUBDIRS variable; add
11296 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11297 code providing the --enable-multi-ice option, and move it right in
11298 front of the code that checks whether gdbserver is supported.
11299 Polish that too.
11300 * configure: Regenerated.
11301 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11302 @SUBDIRS@.
11303
8ccd593b
AC
113042003-01-03 Andrew Cagney <cagney@redhat.com>
11305
11306 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11307 * avr-tdep.c, cris-tdep.c: Ditto.
11308 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11309 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 11310
91151a06
MK
113112003-01-03 Mark Kettenis <kettenis@gnu.org>
11312
11313 * configure.in: Remove --enable-netrom option.
11314 * configure: Regenerated.
11315
8fe84d01
MK
113162003-01-03 Mark Kettenis <kettenis@gnu.org>
11317
11318 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11319 declaration for `struct re_pattern_buffer' instead.
11320 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11321
f0394be6
JB
113222003-01-03 J. Brobecker <brobecker@gnat.com>
11323
11324 * mdebugread.c (parse_symbol): Count until the stEnd matching
11325 the structure name.
11326
27e9bf90
MK
113272003-01-02 Mark Kettenis <kettenis@gnu.org>
11328
93d331ba
MK
11329 * configure.in: Remove --with-cpu option.
11330 subscripts. Remove evil changequotes here.
11331 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11332 * config.in, configure: Regenerated.
8ffd9b1b 11333
27e9bf90
MK
11334 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11335 * configure.in: Cleanup section that sources GDB and BFD configure
11336 subscripts. Remove evil changequotes here.
11337 * config.in, configure: Regenerated.
11338
50abf9e5
AC
113392003-01-02 Andrew Cagney <ac131313@redhat.com>
11340
11341 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11342 frame accessor methods.
11343 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11344 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11345 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11346 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11347 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11348 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11349 * z8k-tdep.c: Ditto.
8ffd9b1b 11350
287c1a40
MK
113512003-01-02 Mark Kettenis <kettenis@gnu.org>
11352
f5dbc56d
MK
11353 * configure.in: Remove UI_OUT configuration code.
11354 * ada-lang.c: Update assuming UI_OUT is always true.
11355 * Makefile.in (UIOUT_CFLAGS): Remove.
11356 * configure: Regenerated.
11357 * TODO: Remove blurb about elimination of -DUI_OUT.
11358
627af7ea
MK
11359 * configure.in: Move code that provides the --enable-gdbcli,
11360 --enable-gdbmi options right before the code that handles the
11361 --enable-tui option. Polish a bit.
11362 * configure: Regenerated.
11363
06825bd1
MK
11364 * configure.in: Rewrite check for GNU regex and the
11365 --without-included regex option, and move it into the "Checks for
11366 library functions" section. This makes us use the system regex
11367 again by default on systems with version 2 of the GNU C library.
11368 This was apparently broken.
11369 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11370 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11371 * config.in, configure: Regenerated.
11372
287c1a40
MK
11373 * configure.in: Move code that provides the --enable-tui option
11374 before the "Checks for libraries" section. Polish the code
11375 somewhat and set need_curses to yes if we build the TUI. Rewrite
11376 code that looks for a library providing termcap functionality to
11377 match more closely what's done in the Readline library, and move
11378 it into to the "Checks for libraries" section.
11379 * configure: Regenerated.
11380 * Makefile.in (TERMCAP): Remove variable.
11381 * config/i386/go32.mh (TERMCAP): Remove variable.
11382
684e56bf
AC
113832003-01-02 Andrew Cagney <ac131313@redhat.com>
11384
11385 * MAINTAINERS: Mention gdb_mbuild.sh.
11386 * gdb_mbuild.sh: Rewrite.
11387
e1ea1d75
MK
113882003-01-02 Mark Kettenis <kettenis@gnu.org>
11389
11390 * configure.in: Fix typo in last change.
11391 * config.in, configure: Regenerated.
11392
1b831c93
AC
113932003-01-02 Andrew Cagney <ac131313@redhat.com>
11394
11395 * valarith.c (value_binop): Delete obsolete code and comments.
11396 * configure.host: Ditto.
11397 * buildsym.h (make_blockvector): Ditto.
11398 * buildsym.c (make_blockvector): Ditto.
11399 * defs.h (enum language): Ditto.
11400 (chill_demangle): Ditto.
11401 * elfread.c (elf_symtab_read): Ditto.
11402 * dwarfread.c (CHILL_PRODUCER): Ditto.
11403 (set_cu_language): Ditto.
11404 (handle_producer): Ditto.
11405 * expprint.c (print_subexp): Ditto.
11406 * gdbtypes.c (chill_varying_type): Ditto.
11407 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11408 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11409 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11410 (chill_varying_type): Ditto.
11411 * language.h (_LANG_chill): Ditto.
11412 * language.c (binop_result_type, integral_type): Ditto.
11413 (character_type, string_type, structured_type): Ditto.
11414 (lang_bool_type, binop_type_check): Ditto.
11415 * stabsread.h (os9k_stabs): Ditto.
11416 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11417 (define_symbol, read_type, read_struct_fields): Ditto.
11418 (read_array_type, read_enum_type, read_huge_number): Ditto.
11419 (read_range_type, start_stabs): Ditto.
11420 * symfile.c (init_filename_language_table): Ditto.
11421 (add_psymbol_with_dem_name_to_list): Ditto.
11422 * symtab.c (symbol_init_language_specific): Ditto.
11423 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11424 * symtab.h (struct general_symbol_info): Ditto.
11425 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11426 * typeprint.c (typedef_print): Ditto.
11427 * utils.c (fprintf_symbol_filtered): Ditto.
11428 * valops.c (value_cast, search_struct_field, value_slice): Delete
11429 obsolete code.
11430 (varying_to_slice): Delete function.
11431 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11432 (varying_to_slice): Delete declaration.
11433 * MAINTAINERS: Update.
11434
8bb2c122
MK
114352003-01-02 Mark Kettenis <kettenis@gnu.org>
11436
97bf5e38
MK
11437 * configure.in: Reorganize "Checks for library functions section"
11438 a bit. Remove check for `btowc' and `isascii' functions.
11439 * configure: Regenerated.
11440
5ee754fc
MK
11441 * acconfig.h (_MSE_INT_H): Remove.
11442 * configure.in: Create "Checks for header files" section, and move
11443 appropriate tests there. Don't check for objlist.h, wchar.h,
11444 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11445 misdetection fix. Also add "Checks for types", "Checks for
11446 compiler characteristics" and "Checks for library functions"
11447 sections.
11448 * config.in, configure: Regenerated.
11449
8bb2c122
MK
11450 * configure.in: Create "Checks for programs" section, and move
11451 appropriate tests there.
11452
9a156167
MK
114532003-01-01 Mark Kettenis <kettenis@gnu.org>
11454
11455 * configure.in: Create "Checks for libraries" section, and move
11456 appropriate tests there. Cleanup check for wctype in libw. Use
11457 AC_SEARCH_LIBS to see whether we need libsocket.
11458 * configure: Regenerated.
11459
a80e2bcb 11460For older changes see ChangeLog-2002
c906108c
SS
11461\f
11462Local Variables:
11463mode: change-log
11464left-margin: 8
11465fill-column: 74
11466version-control: never
11467End:
This page took 1.00186 seconds and 4 git commands to generate.