Match GNU/KFreeBSD with new kfreebsd*-gnu triplet.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f6c40618
AC
12003-09-03 Andrew Cagney <cagney@redhat.com>
2
3 * arch-utils.h (legacy_print_insn): Delete declaration.
4 * arch-utils.c (legacy_print_insn): Delete function.
5 * disasm.c (deprecated_tm_print_insn_info): Delete.
6 (_initialize_disasm): Delete function, contained code initializing
7 deprecated_tm_print_insn_info.
8 * gdbarch.sh (deprecated_tm_print_insn): Delete.
9 (deprecated_tm_print_insn_info): Delete.
10 (TARGET_PRINT_INSN): Do not provide a default.
11 * gdbarch.h, gdbarch.c: Re-generate.
12
242e8be5
AC
132003-09-03 Andrew Cagney <cagney@redhat.com>
14
15 * disasm.c (fprintf_disasm): New function.
16 (gdb_disassemble_info): Call "init_disassemble_info", instead of
17 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
18 reverts 2003-08-14 change.
19 (_initialize_disasm): Call "init_disassemble_info", instead of
20 INIT_DISASSEMBLE_INFO_NO_ARCH.
21
3ffc3dda
MS
222003-09-03 Michael Snyder <msnyder@redhat.com>
23
24 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
25
52d16ba8
AC
262003-09-03 Andrew Cagney <cagney@redhat.com>
27
28 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
29 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
30 * symfile.c (syms_from_objfile): Update.
31 (reread_symbols): `Update
32 * exec.c (exec_file_attach): Update.
33 (exec_file_attach): Update.
34 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
35 2003-08-29 change.
36 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
37
eb5492fa
DJ
382003-09-03 Daniel Jacobowitz <drow@mvista.com>
39
40 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
41 trad-frame.h.
42 (arm_get_cache): Delete macro.
43 (struct arm_prologue_cache): Update comments. Make saved_regs into
44 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
45 to prev_sp.
46 (thumb_scan_prologue): Update for cache changes. Don't call
47 DEPRECATED_PC_IN_CALL_DUMMY.
48 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
49 argument and use it in desperation search for our prologue. Do not
50 search past the specified PC.
51 (arm_make_prologue_cache): Simplify.
52
53 (arm_prologue_this_id, arm_prologue_prev_register)
54 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
55 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
56 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
57 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
58 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
59
60 (arm_frame_chain_valid, arm_find_callers_reg)
61 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
62 (arm_pop_frame): Delete obsolete methods.
63 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
64
65 (arm_gdbarch_init): Update for new frame methods. Register prologue
66 and sigtramp unwinders. Set the default frame base method.
67
68 * Makefile.in (arm-tdep.o): Update dependencies.
69 * varobj.c (find_frame_addr_in_frame_chain): Call
70 get_frame_base_address.
71 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
72
24de872b
DJ
732003-09-03 Daniel Jacobowitz <drow@mvista.com>
74
75 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
76 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
77 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
78 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
79 Take NEXT_FRAME and CACHE arguments. Call
80 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
81 Set unwound_pc in CACHE instead of modifying the frame argument.
82 Don't bother checking the frame type when looking for sigtramp
83 frames.
84 (arm_make_prologue_cache, arm_frame_chain)
85 (arm_init_extra_frame_info): New functions.
86
9b8d791a
DJ
872003-09-03 Daniel Jacobowitz <drow@mvista.com>
88
89 * arm-tdep.c (arm_get_cache): Define.
90 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
91 unwound_sp, unwound_pc, and saved_regs.
92 (thumb_scan_prologue): Take a cache instead of the frame.
93 (arm_scan_prologue): Likewise.
94 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
95 instead of a temporary frame.
96 (arm_init_extra_frame_info): Allocate and use a cache.
97 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
98
7ee3275f
AC
992003-09-03 Andrew Cagney <cagney@redhat.com>
100
101 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
102 * config/mips/wince.mt (TM_CLIBS): Ditto.
103 * config/sh/wince.mt (TM_CLIBS): Ditto.
104 * config/pa/hppa64.mt (TM_CLIBS): Delete.
105 * config/sparc/sp64.mt (CC): Delete.
106
57b29be7
AC
1072003-09-03 Andrew Cagney <cagney@redhat.com>
108
109 * defs.h: Do not include "arch-utils.h".
110 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
111 GDB_MULTI_ARCH_PURE.
112 * configure.in (GDB_MULTI_ARCH): Do not define.
113 * configure, config.in: Regenerate.
114 * configure.tgt: Do not set variable "gdb_multi_arch".
115 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
116 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
117 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
118 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
119 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
120 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
121 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
122 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
123 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
124 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
125 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
126 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
127 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
128 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
129 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
130 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
131 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
132 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
133
12e035e2
MC
1342003-08-30 Michael Chastain <mec@shout.net>
135
136 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
137 * config/m68k/nm-hp300hpux.h: Delete.
138 * config/m68k/tm-hp300hpux.h: Delete.
139 * config/m68k/xm-hp300hpux.h: Delete.
140 * config/m68k/xm-hp300bsd.h: Delete.
141 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
142 tm-hp300hpux.h, xm-hp300hpux.h.
143 * somsolib.c: Remove comment about hp300 shared libraries.
144
bda34dc2
MK
1452003-08-31 Mark Kettenis <kettenis@gnu.org>
146
5bca7895
MK
147 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
148 Only define PTRACE_GET_THREAD_AREA is not already defined.
149 Various style fixes in code and comments and some additional
150 spelling fixes in comments. Move after functions dealing with
151 debug registers.
152 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
153 Fix coding-style.
154
bda34dc2
MK
155 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
156 frame_unwind_register_unsigned instead of
157 frame_unwind_unsigned_register.
158
c890192f
MK
1592003-08-30 Mark Kettenis <kettenis@gnu.org>
160
161 * configure.in: Search for gethostbyname in libnsl.
162 * configure: Regenerated.
163
60fac5b8
MK
1642003-08-29 Mark Kettenis <kettenis@gnu.org>
165
e294916c
MK
166 * configure.in: Remove redundant AC_MSG_RESULT in check for
167 uintptr_t in stdint.h.
168 * configure: Regenerated.
169
c40d267a
MK
170 * amd64-nat.h (struct regcache): Add opaque declaration.
171
60fac5b8
MK
172 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
173 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
174 Change "register array" to "register cache" in comments.
175 (x86_64_linux_gregset64_reg_offset): New variable.
176 (GETREGS_SUPPLIES): Remove macro.
177 (supply_gregset): Call amd64_supply_native_gregset instead of
178 x86_64_linux_supply_gregset.
179 (fill_gregset): Rename `regno' to `regnum'. Call
180 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
181 (store_regs): Rename `regno' to `regnum'.
182 (store_fpregs): Rename `regno' to `regnum'.
183 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
184 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
185 Reorganize function a bit.
186 (store_inferior_registers): Rename `regno' to `regnum'. Use
187 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
188 Reorganize function a bit.
189 (_initialize_x86_64_linux_nat): New function.
190 * config/i386/x86-64linux.mh.
191
546143b6
AC
1922003-08-29 Andrew Cagney <cagney@redhat.com>
193
194 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
195 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
196 (target_remove_watchpoint): Delete macro.
197 (target_insert_watchpoint): Delete macro.
198 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
199 (remote_mips_stopped_by_watchpoint): Delete declaration.
200 (remote_mips_remove_watchpoint): Delete declaration.
201 (remote_mips_set_watchpoint): Delete declaration.
202 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
203 * remote-mips.c (_initialize_remote_mips): Set
204 "to_insert_watchpoint", "to_stopped_by_watchpoint",
205 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
206 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
207 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
208 (mips_stopped_by_watchpoint): Rename
209 remote_mips_stopped_by_watchpoint.
210 (mips_can_hardware_watchpoint): Rename
211 remote_mips_can_use_hardware_watchpoint, update function
212 signature.
213
7bace51b
MK
2142003-08-29 Mark Kettenis <kettenis@gnu.org>
215
b0f5c6f2
MK
216 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
217 USER_DS. We haven't given them a register number yet.
218
2a6d284d
MK
219 * amd64-nat.h: New file.
220 * amd64-nat.c: New file.
221 * amd64fbsd-nat.c: Include "amd64-nat.h".
222 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
223 (amd64fbsd32_r_reg_offset): New variable.
224 (supply_gregset): Simply call amd64_supply_native_gregset.
225 (fill_gregset): Rename `regno' to `regnum'. Simply call
226 amd64_collect_native_gregset.
227 (fill_fpregset): Rename `regno' to `regnum'.
228 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
229 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
230 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
231 `fpregset_t'. Call amd64_supply_native_gregset instead of
232 supply_gregset. Call x86_64_supply_fxsave instead of
233 supply_fpregset.
234 (store_inferior_registers): Rename `regno' to `regnum'. Replace
235 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
236 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
237 `fpregset_t'. Call amd64_collect_native_gregset instead of
238 fill_gregset. Call x86_64_collect_fxsave instead of
239 fill_fpregset.
240 (_initialize_am64fbsd_nat): Initialize
241 amd64_native_gregset32_reg_offset and
242 amd64_native_gregset64_reg_offset.
243 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
244
a16d75cc
MK
245 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
246 null pointer. Fix typo in comment.
247
7bace51b
MK
248 * regcache.c (supply_register): Reimplement to call
249 regcache_raw_supply.
250 (regcache_collect): Reimplement by calling regcache_raw_collect.
251
9a661b68
MK
2522003-08-28 Mark Kettenis <kettenis@gnu.org>
253
254 * regcache.c (register_buffer): Consitify first argument.
255 (regcache_raw_supply, regcache_raw_collect): New
256 functions.
257
e94cc8fa
DJ
2582003-08-28 Daniel Jacobowitz <drow@mvista.com>
259
260 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
261 by Nathan J. Williams.
262
c64bd0ce
DJ
2632003-08-28 Daniel Jacobowitz <drow@mvista.com>
264
265 * lin-lwp.c (wait_lwp): New function, copied from
266 stop_wait_callback. Clean up.
267 (stop_wait_callback): Use wait_lwp.
268
e5ab0dce
AC
2692003-08-28 Andrew Cagney <cagney@redhat.com>
270
271 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
272 flavour and disassembler options.
273 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
274 (mips_gdbarch_init): Set "print_insn". Delete initialization of
275 deprecated_tm_print_insn_info.
276
a788de9b
AC
2772003-08-27 Andrew Cagney <cagney@redhat.com>
278
279 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
280 Use target_read_memory.
281 (s390_get_frame_info): Update. Do not reference
282 deprecated_tm_print_insn_info.
283 (s390_check_function_end, s390_is_sigreturn): Ditto.
284
36482093
AC
2852003-08-27 Andrew Cagney <cagney@redhat.com>
286
287 * Makefile.in (cris-tdep.o): Update dependencies.
288 * cris-tdep.c: Include "gdb_assert.h".
289 (cris_gdbarch_init): Set print_insn.
290 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
291 (cris_delayed_get_disassembler): Simplify, directly call the
292 disassembler returned by cris_get_disassembler.
293 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
294 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
295 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
296 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
297 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
298 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
299 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
300 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
301 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
302 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
303 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
304 (gdb_print_insn_sparc): Delete function.
305 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
306 deprecated_tm_print_insn_info.
307 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
308 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
309 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
310 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
311 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
312 * s390-tdep.c (gdb_print_insn_s390): Delete function.
313 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
314 (s390_gdbarch_init): Set print_insn.
315
0285512f
AC
3162003-08-27 Andrew Cagney <cagney@redhat.com>
317
318 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
319 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
320 * infcall.c (call_function_by_hand): Convert the entry point
321 address into a code address.
322
cdcd5552
AC
3232003-08-27 Andrew Cagney <cagney@redhat.com>
324
325 * dsrec.c: Include "gdb_string.h".
326 * Makefile.in (dsrec.o): Update dependencies.
327
e85cddad
MC
3282003-08-27 Michael Chastain <mec@shout.net>
329
330 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
331
8bbfbb23
AC
3322003-08-27 Andrew Cagney <cagney@redhat.com>
333
334 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
335 (alpha_osf1_init_abi): Do not set call_dummy_address.
336
ba058b66
DC
3372003-08-27 David Carlton <carlton@kealia.com>
338
339 From Randolph Chung <tausq@debian.org>:
340 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
341 compiles with -Wformat-nonliteral -Werror.
342
87f84c9d
JB
3432003-08-26 Jim Blandy <jimb@redhat.com>
344
345 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
346 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
347 bfd_lookup_symbol, since we only want symbols in code sections.
348 (look_for_base): Pass zero as the SECT_FLAGS argument to
349 bfd_lookup_symbol, since we're not concerned about which section
350 the symbol is in.
351
102d615a
JJ
3522003-08-26 Jeff Johnston <jjohnstn@redhat.com>
353
354 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
355 we are frameless or the return address register is already known.
356
cc7ad3ea
AC
3572003-08-26 Andrew Cagney <cagney@redhat.com>
358
359 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
360 in size. Add comments.
361
af8b88dd
JJ
3622003-08-26 Jeff Johnston <jjohnstn@redhat.com>
363
364 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
365 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
366
e0a4f5a1
JM
3672003-08-26 Jason Merrill <jason@redhat.com>
368
369 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
370 case out of #ifdef MIPS block.
371
4ae9ee8e
DJ
3722003-08-25 Daniel Jacobowitz <drow@mvista.com>
373
374 PR java/1322
375 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
376 available before calling SECT_OFF_TEXT.
3c164570 377 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 378
004d836a
JJ
3792003-08-25 Jeff Johnston <jjohnstn@redhat.com>
380
381 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
382 bof, and nat0-nat127 as pseudo-registers.
383 (ia64_frame_cache): New struct used to cache frame info.
384 (ia64_register_reggroup_p): New routine used to override default
385 register grouping so registers without names are still saved and
386 restored.
387 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
388 pseudo values.
389 (ia64_pseudo_register_read): New routine to read pseudo-registers.
390 (ia64_pseudo_register_write): New routine to write pseudo-registers.
391 (ia64_alloc_frame_cache): New routine to create a new
392 ia64_frame_cache.
393 (examine_prologue): Change prototype to add next_frame pointer.
394 Assume frameless until otherwise proven. Verify that the cfm for
395 current frame matches the cfm that should occur for the prologues
396 alloc insn and if equal, mark as not frameless. At end of routine,
397 if not frameless, calculate registers for the previous frame and store
398 in the cache, if a cache is provided.
399 (ia64_skip_prologue): Use new prototype when calling examine_prologue
400 and pass 0 for next_frame.
401 (ia64_store_return_value): Change to use convert_typed_floating()
402 instead of calling ia64_convert_to_raw().
403 (ia64_extract_return_value): Change to use convert_typed_floating()
404 instead of calling ia64_convert_to_virtual().
405 (ia64_frame_cache): New routine to support new frame model.
406 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
407 (ia64_frame_sniffer): Ditto.
408 (ia64_sigtramp_frame_init_saved_regs): Ditto.
409 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
410 (ia64_sigtramp_frame_prev_register): Ditto.
411 (ia64_sigtramp_frame_sniffer): Ditto.
412 (ia64_frame_base_address): Ditto.
413 (ia64_extract_struct_value_address): Change to issue error message.
414 (ia64_frame_align): New routine to align sp.
415 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
416 (ia64_push_arguments): Removed. Logic moved to
417 ia64_push_dummy_call().
418 (ia64_push_return_address): Ditto.
419 (ia64_unwind_dummy_id): New function.
420 (ia64_unwind_pc): Ditto.
421 (ia64_convert_register_p): Ditto.
422 (ia64_register_to_value): Ditto.
423 (ia64_value_to_register): Ditto.
424 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
425 (ia64_register_byte, ia64_register_raw_size): Ditto.
426 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
427 (ia64_saved_pc_after_call): Ditto.
428 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
429 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
430 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
431 (ia64_register_convert_to_raw): Ditto.
432 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
433 (ia64_init_extra_frame_info): Ditto.
434 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
435 (ia64_gdbarch_init): Remove registering of deprecated functions that
436 are no longer used. Add registration of new gdbarch functions.
437 Remove registering deprecated_write_sp. Replace
438 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
439 Delete set_gdbarch_deprecated_register_convertible(),
440 set_gdbarch_deprecated_register_convert_to_virtual(), and
441 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
442 set_gdbarch_deprecated_register_size(),
443 set_gdbarch_deprecated_register_bytes(),
444 set_gdbarch_pcregnum(),
445 set_gdbarch_deprecated_register_byte(),
446 set_gdbarch_deprecated_register_raw_size(),
447 set_gdbarch_deprecated_max_register_raw_size(),
448 set_gdbarch_deprecated_register_virtual_size(),
449 and set_gdbarch_deprecated_max_register_virtual_size() calls.
450 Replace set_gdbarch_deprecated_extract_return_value() with
451 set_gdbarch_extract_return_value(). Remove calls to:
452 set_gdbarch_deprecated_saved_pc_after_call();
453 set_gdbarch_deprecated_frame_chain(),
454 set_gdbarch_deprecated_frame_saved_pc(),
455 set_gdbarch_deprecated_frame_init_saved_regs(),
456 set_gdbarch_deprecated_get_saved_register(),
457 set_gdbarch_deprecated_call_dummy_words(),
458 set_gdbarch_deprecated_sizeof_call_dummy_words(),
459 set_gdbarch_deprecated_init_extra_frame_info(),
460 set_gdbarch_deprecated_frame_args_address(),
461 set_gdbarch_deprecated_frame_locals_address(),
462 and set_gdbarch_deprecated_dummy_write_sp().
463 Add set_gdbarch_convert_register_p(),
464 set_gdbarch_register_to_value(),
465 set_gdbarch_value_to_register(),
466 set_gdbarch_push_dummy_call(),
467 set_gdbarch_frame_align(),
468 set_gdbarch_unwind_dummy_id(),
469 set_gdbarch_unwind_pc(),
470 frame_unwind_append_sniffer(),
471 frame_unwind_append_sniffer(),
472 and frame_base_set_default().
473
aede7613
CD
4742003-08-25 Chris Demetriou <cgd@broadcom.com>
475
476 * configure.tgt: Document need for special "mipsisa64" handling.
477 (mipsisa64*-*-linux64): Handle as target linux64.
478 (mipsisa64*-*-*): Handle as target embed64.
479
43c3a82e
MC
4802003-08-18 Michael Chastain <mec@shout.net>
481
482 * PROBLEMS: Document pr gdb/1322, the Java anonymous
483 objfile bug.
484
6564f77d
MK
4852003-08-24 Mark Kettenis <kettenis@gnu.org>
486
2de139ba
MK
487 * i387-tdep.h: Update copyright date.
488 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
489
6564f77d
MK
490 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
491 CFLAGS games to reflect reality.
492
42cf1509
AC
4932003-08-24 Andrew Cagney <cagney@redhat.com>
494
495 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
496 GDB_MULTI_ARCH is always non-zero.
497 * osabi.c (_initialize_gdb_osabi): Ditto.
498 (gdbarch_init_osabi): Ditto.
499 * sparc-tdep.c: Ditto for #if code.
500
0485f6ad
MK
5012003-08-23 Mark Kettenis <kettenis@gnu.org>
502
503 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
504 Update comments.
505 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
506 comments.
507 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
508 x86_64_supply_fxsave.
509 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
510 x86_64_supply_fxsave.
511 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
512 x86_64_supply_fxsave.
513
c7716133
AJ
5142003-08-23 Andreas Jaeger <aj@suse.de>
515
516 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
517 i387_supply_fxsave.
518
ed504bdf
MK
5192003-08-23 Mark Kettenis <kettenis@gnu.org>
520
521 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
522 i387_supply_register.
523 (go32_fetch_registers): Adjust call to i387_supply_fsave.
524 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
525 i387_supply_fsave.
526 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
527 i387_supply_fxsave.
528 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
529 i387_supply_fsave.
530 * i386bsd-nat.c (supply_fpregset): Adjust call to
531 i387_supply_fsave.
532 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
533 call to i387_supply_fxsave. Call i387_supply_fsave instead of
534 supply_fpregset.
535 (store_inferior_registers): Remove extraneous whitespace. Call
536 i387_fill_fsave instead of fill_fpregset.
537 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
538 (supply_fpregset): Likewise.
539 * i386v4-nat.c (supply_fpregset): Adjust call to
540 i387_supply_fsave.
541 * i386-interix-nat.c (supply_fpregset): Adjust call to
542 i387_supply_fsave.
543 * i386-linux-nat.c (supply_fpregset): Adjust call to
544 i387_supply_fsave.
545 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
546 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
547 i387supply_fsave and i387_supply_fxsave.
548 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
549 Incorporate code from `i387_supply_register.
550 (i387_supply_register): Remove.
551 (i387_supply_fxsave): Add `regnum' argument.
552 Update comments.
553 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
554 prototype.
555 (i387_supply_register): remove prototype.
556 Update comments.
557
4be5d520
MC
5582003-08-22 Michael Chastain <mec@shout.net>
559
560 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
561 Add lines for files in gdb/testsuite/gdb.cp/* that are
562 still not 8.3 unique.
563
7ed85d26
DJ
5642003-08-22 Daniel Jacobowitz <drow@mvista.com>
565
566 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
567 TYPE_VPTR_FIELDNO is valid.
568
eb0d3137
MK
5692003-08-19 Mark Kettenis <kettenis@gnu.org>
570
571 * utils.c (set_width_command): Remove prototypes.
572 (set_screen_size): New prototype.
573 (init_page_info): Simplify by fetching the screen size from
574 Readline. Call set_screen_size.
575 (set_screen_size): New function.
576 (set_width): Add missing whitespace in comment.
577 (set_width_command): Call set_screen_size.
578 (set_height_command): New function.
579 (initialize_utils): Fix formatting. Make "set height" command
580 call set_height_command. Remove redundant code that turns off
581 pagination if output isn't a terminal. Remove redundant call to
582 set_width_command.
583
7e6d0ac8
MK
5842003-08-22 Mark Kettenis <kettenis@gnu.org>
585
3567a8ea
MK
586 * sparc64-tdep.h (sparc64_regnum): Fix comment.
587 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
588 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
589 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
590 `case' keyword.
591 (sparc64_register_info): Give the reister with number
592 SPARC64_STATE_REGNUM a name.
593 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
594 %asi and %ccr.
595 (sparc64_push_dummy_call): Take BIAS into account when checking
596 stcak alignment.
597 (sparc_software_single_step): Remove assertions that check whether
598 NPC and NNPC were zero.
599 (sparc_supply_rwindow): Make public. Merge functionality with
600 sparc64_supply_rwindow.
601 (sparc_fill_rwindow): Make public. Merge functionality with
602 sparc64_fill_rwindow.
603 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
604 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
605 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
606 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
607 sparc_supply_rwindow instead of sparc64_supply_rwindow.
608
7e6d0ac8
MK
609 * reggroups.c: Add whitespace after declarations of local
610 variables in functions.
611
72e5f484
MC
6122003-08-21 Michael Chastain <mec@shout.net>
613
614 * gdbtypes.h: Change array bound type from an int to enum.
615
435ac228
AC
6162003-08-21 Andrew Cagney <cagney@redhat.com>
617
618 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
619 * config/sparc/tm-sparc.h: Ditto.
620 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
621 unconditionally.
622 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
623
0d0e1a63
MK
6242003-07-13 Mark Kettenis <kettenis@gnu.org>
625
626 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
627 (register_objfile_data, set_objfile_data, objfile_data): New
628 prototypes.
629 * objfiles.c (objfile_alloc_data, objfile_free_data): New
630 prototypes.
631 (allocate_objfile): Call objfile_alloc_data.
632 (free_objfile): Call objfile_free_data.
633 (struct objfile_data): New.
634 (struct objfile_data_registration): New.
635 (struct objfile_data_registry): New.
636 (objfile_data_registry): New variable.
637 (register_objfile_data): New function.
638 (objfile_alloc_data, objfile_free_data): New functions.
639 (set_objfile_data, objfile_data): New functions.
640 * dwarf2-frame.c (dwarf2_frame_data): New variable.
641 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
642 (_initialize_dwarf2_frame): New function and prototype.
643
d90cf509
AC
6442003-08-21 Andrew Cagney <cagney@redhat.com>
645
646 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
647 a specific architecture.
648 * arch-utils.h (set_architecture_from_arch_mach): Delete
649 declaration.
650 (target_architecture_hook): Delete declaration.
651 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
652 (default_float_format): Assume GDB_MULTI_ARCH.
653 (default_double_format): Assume GDB_MULTI_ARCH.
654 (set_endian_from_file): Delete function.
655 (arch_ok): Delete function.
656 (set_arch): Delete function.
657 (set_architecture_from_arch_mach): Delete function.
658 (set_architecture_from_file): Delete function.
659 (set_architecture): Assume GDB_MULTI_ARCH.
660 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
661
8b39fe56
MK
6622003-08-21 Mark Kettenis <kettenis@gnu.org>
663
664 Rewrite FreeBSD/sparc64 native configuration.
665 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
666 * sparc64fbsd-nat.c: New file.
667 * sparc64fbsd-tdep.c: New file.
668 * sparc64-tdep.c sparc64-tdep.h: New files.
669 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
670 sparc64fbsd-tdep.o): New dependencies.
671 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
672 and sparc64fbsd-tdep.c.
673 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
674 * config/sparc/fbsd.mh: Remove copyright notice.
675 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
676 sparcbsd-nat.o.
677 * config/sparc/fbsd.mt: Remove copyright notice.
678 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
679 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
680 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
681 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
682 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
683 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
684 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
685 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
686 "sparc/tm-sp64.h".
687 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
688 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
689
a7f19c79
MC
6902003-08-21 Michael Chastain <mec@shout.net>
691
692 * symtab.h: Add doco on the space critical structures and
693 some measurements of space usage.
694
da08ea5b
MS
6952003-08-21 Michael Snyder <msnyder@redhat.com>
696
697 * tracepoint.c (trace_dump_command): Trace break address
698 is subject to DECR_PC_AFTER_BREAK.
699 (set_traceframe_context): Make "trace_line" an int.
700 Fixes suggested by Mark Newman <mark.newman@lmco.com>
701
6df2bf50
MS
7022003-08-20 Michael Snyder <msnyder@redhat.com>
703
704 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
705 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
706 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
707 argument passing.
708 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
709 functions, replace sh_push_dummy_call.
710 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
711
0955bbf0
MC
7122003-08-20 Michael Chastain <mec@shout.net>
713
714 * gdbtypes.h (struct main_type): Rearrange to save space.
715
260a4188
MS
7162003-08-20 Michael Snyder <msnyder@redhat.com>
717
718 * trad-frame.c: Comment typo fix.
719
8baa6f92
KB
7202003-08-20 Michael Snyder <msnyder@redhat.com>
721 Kevin Buettner <kevinb@redhat.com>
722
723 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
724 (frv_frame_init_saved_regs): Add declaration.
725 (frame_extra_info): Add new field ``saved_regs''.
726 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
727 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
728 Update frame related code.
729 (frv_extract_struct_value_address): Adjust formatting.
730 * Makefile.in (frv-tdep.o): Update dependencies.
731 * config/frv/tm-frv.h (target_insert_watchpoint)
732 (target_remove_watchpoint, target_insert_hw_breakpoint)
733 (target_remove_hw_breakpoint): Delete these macros.
734 (remote_insert_watchpoint, remote_remove_watchpoint)
735 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
736 these declarations.
737
87193939
MC
7382003-08-20 Michael Chastain <mec@shout.net>
739
740 * defs.h (ENUM_BITFIELD): New macro.
741 * symtab.h (ENUM_BITFIELD): Use it.
742 (BYTE_BITFIELD): Remove old macro, which was already disabled.
743
062103ba
SA
7442003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
745
746 * MAINTAINERS (write after approval): Add myself.
747
8b148df9
AC
7482003-08-18 Andrew Cagney <cagney@redhat.com>
749
750 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
751 * gdbarch.h, gdbarch.c: Re-generate.
752 * infcall.c (call_function_by_hand): Adjust the SP by
753 frame_red_zone_size before allocating any stack space.
754 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
755 * x86-64-tdep.c (x86_64_frame_align): New function.
756 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
757
758 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
759 Remove code adjusting SP so that it skips over the Red Zone.
760
954a4db8
MK
7612003-08-18 Mark Kettenis <kettenis@gnu.org>
762
763 * NEWS (New native configurations): Mention FreeBSD/amd64.
764
1a241548
AC
7652003-08-18 Andrew Cagney <cagney@redhat.com>
766
767 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
768 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
769 "m68k_frame_p".
770 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
771
f82b2acd
MK
7722003-08-18 Mark Kettenis <kettenis@gnu.org>
773
774 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
775
4056d258
ML
7762003-08-18 Michal Ludvig <mludvig@suse.cz>
777
778 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
779 Define.
780 * i386-linux-nat.c: Include "linux-nat.h".
781 (child_post_startup_inferior): New function.
782
99ab4326
MK
7832003-08-18 Mark Kettenis <kettenis@gnu.org>
784
785 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
786 at the start of a frameless function. This probably fixes PR
787 backtrace/1338.
788
c8d5f0d6
MC
7892003-08-17 Michael Chastain <mec@shout.net>
790
791 * symfile.c (find_sym_fns): Remove special case for apollo target.
792
9016a515
DJ
7932003-08-17 Daniel Jacobowitz <drow@mvista.com>
794
795 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
796 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
797 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
798 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
799 (linux_supports_tracevforkdone): New function.
800 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
801 TRACEVFORKDONE.
802 (child_follow_fork): Handle vfork.
803 (linux_handle_extended_wait): Likewise. Also handle exec.
804 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
805 * NEWS: Mention fork tracing.
806
c538c11c
DJ
8072003-08-17 Daniel Jacobowitz <drow@mvista.com>
808
809 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
810
4de4c07c
DJ
8112003-08-17 Daniel Jacobowitz <drow@mvista.com>
812
813 * Makefile.in (i386-linux-nat.o): Update dependencies.
814 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
815 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
816 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
817 * i386-linux-nat.c: Include "linux-nat.h".
818 (child_post_startup_inferior): New function.
819 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
820 * infptrace.c (kill_inferior): Wrap in #ifdef.
821 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
822 attaching to each LWP.
823 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
824 (init_lin_lwp_ops): Fill in some more operations.
825 * linux-nat.h (linux_enable_event_reporting)
826 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
827 prototypes.
828 * linux-nat.c (linux_enable_event_reporting): New function.
829 (child_post_attach, linux_child_post_startup_inferior)
830 (child_post_startup_inferior, child_follow_fork)
831 (linux_handle_extended_wait, kill_inferior): New functions.
832
7996bcec
AC
8332003-08-16 Andrew Cagney <cagney@redhat.com>
834
835 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
836 * gdbarch.h, gdbarch.c: Re-generate.
837
3d48a7a0
MK
8382003-08-16 Mark Kettenis <kettenis@gnu.org>
839
840 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
841
7989c619
AC
8422003-08-16 Andrew Cagney <cagney@redhat.com>
843
844 * NEWS: Mention that "set prompt-escape-char" was deleted.
845 * top.c (get_prompt_1): Delete function.
846 (gdb_prompt_escape):
847 (init_main): Do not clear "gdb_prompt_escape". Delete "set
848 prompt-escape-char" command.
849 (MAX_PROMPT_SIZE): Delete macro.
850 (get_prompt): Simplify, do not call get_prompt_1.
851
07978cd8
AC
8522003-08-16 Andrew Cagney <cagney@redhat.com>
853
854 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
855 -Werror. -Wformat-nonliteral problems.
856
3ff7cf9e
JB
8572003-08-15 J. Brobecker <brobecker@gnat.com>
858
859 Further multiarching work mostly for hppa64-*-hpux11:
860 * hppa-tdep.h: New file.
861 * hppa-tdep.c: #include hppa-tdep.c.
862 (hppa32_num_regs): Renamed from hppa_num_regs.
863 (hppa64_num_regs): New constant.
864 (hppa64_call_dummy_breakpoint_offset): New constant.
865 (hppa32_call_dummy_length): New constant.
866 (hppa64_call_dummy_length): New constant.
867 (hppa32_stack_align): Make name 32bit explicit.
868 (hppa32_register_virtual_type): Likewise.
869 (hppa32_extract_return_value): Likewise.
870 (hppa32_use_struct_convention): Likewise.
871 (hppa32_store_return_value): Likewise.
872 (hppa64_register_virtual_type): New function.
873 (hppa64_extract_return_value): New function.
874 (hppa64_use_struct_convention): New function.
875 (hppa64_store_return_value): New function.
876 (hppa_frame_locals_address): Remove declaration, function does
877 not exist anymore.
878 (hppa_register_byte): Add support for PA64 ABI.
879 (hppa_gdbarch_init): Add support for PA64 ABI.
880 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
881 Make name 32bit explicit.
882 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
883 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
884 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
885 (hppa64_hpux_frame_base_before_sigtramp): New function.
886 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
887 * config/pa/tm-hppa64.h: Remove macros that are no longer
888 necessary now that the gdbarch vector is properly setup.
889 Transform some macros into function calls. Some minor cleanup.
890 * config/pa/tm-hppah.h: Update function calls in macros
891 following the function renaming in hppa-hpux-tdep.c.
892 * Makefile.in (hppa_tdep_h): New variable.
893 (hppa-tdep.o): Add dependency over hppa_tdep_h.
894
5d05ca6d
MS
8952003-08-14 Michael Snyder <msnyder@redhat.com>
896
897 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
898
37ba2569
JB
8992003-08-13 J. Brobecker <brobecker@gnat.com>
900
901 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
902 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
903 routine.
904
aed7f26a
MS
9052003-08-13 Michael Snyder <msnyder@redhat.com>
906
907 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
908 (frv_saved_pc_after_call): Use deprecated ftype.
909 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
910 (frv_remote_translate_xfer_address): Remove.
911 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
912
752d4ac1
JB
9132003-08-13 J. Brobecker <brobecker@gnat.com>
914
915 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
916 initialization after the common gdbarch initialization, not before.
917
1426ac1d
JB
9182003-08-13 J. Brobecker <brobecker@gnat.com>
919
920 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
921 (ADDR_BITS_REMOVE): Remove, redundant.
922
b6fbdd1d
JB
9232003-08-13 J. Brobecker <brobecker@gnat.com>
924
925 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
926 gdbarch method to clear the 2 low bits of text addresses.
927
44160db3
AC
9282003-08-12 Andrew Cagney <cagney@redhat.com>
929
930 * Makefile.in (dsrec.o): Update dependencies.
931 * dsrec.c: Include "gdb_assert.h".
932 (make_srec): Use snprintf instead of sprintf, use a literal format
933 string.
934
bcf7d3ca
AC
9352003-08-12 Andrew Cagney <cagney@redhat.com>
936
937 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
938 FRAME_OBSTACK_ZALLOC.
939
49ed40de
KB
9402003-08-12 Kevin Buettner <kevinb@redhat.com>
941
942 * i386-tdep.c (i386_gdbarch_init): Enable default support for
943 SSE registers.
944
b246147c
MK
9452003-08-10 Mark Kettenis <kettenis@gnu.org>
946
947 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
948 amd64fbsd_sc_reg_offset): Add extern declarations.
949 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
950 declarations.
951
d95fdc0d
BE
9522003-08-11 Ben Elliston <bje@wasabisystems.com>
953
954 * MAINTAINERS (write after approval): Update my mail address.
955
cf6a0e73
AC
9562003-08-10 Andrew Cagney <cagney@redhat.com>
957
958 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
959
f837910f
MK
9602003-08-10 Mark Kettenis <kettenis@gnu.org>
961
e2dbbd2d
MK
962 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
963 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
964 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
965 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
966 i386bsd_sc_reg_offset): Add extern declarations.
967 * i386obsd-nat.c: Include "i386-tdep.h"
968 (_initialize_i386obsd_nat): Remove extern declarations.
969 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
970 declarations.
971 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
972 declarations.
973
f837910f
MK
974 * i386-tdep.c (i386_register_to_value): Use get_frame_register
975 instead of frame_read_register.
976 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
977 instead of frame_read_register. Use I386_ESP_REGNUM instead of
978 SP_REGNUM.
979 (i386_frame_prev_register): Use frame_unwind_register_unsigned
980 instead of frame_unwind_unsigned_register. Use
981 I386_EFLAGS_REGISTER instead of PS_REGNUM.
982 (i386_get_longjmp_target): Use regcache_read_unsigned_register
983 instead of read_register. Use builtin_type_void_data_ptr instead
984 of builtin_type_void_func_ptr when extracting the address of the
985 jmp_buf.
986 (i386_extract_return_value, i386_store_return_value,
987 i386_pseudo_register_read, i386_pseudo_register_write): Use
988 register_size instead REGISTER_RAW_SIZE.
989
edcf254d
AC
9902003-08-10 Andrew Cagney <cagney@redhat.com>
991
992 * infcall.c (call_function_by_hand): Use xstrprintf instead of
993 sprintf. Make "name" constant.
994
26604a34
MK
9952003-08-10 Mark Kettenis <kettenis@gnu.org>
996
192285c6
MK
997 * i387-tdep.c (i387_register_to_value): Use get_frame_register
998 instead of frame_read_register.
f837910f
MK
999 (i387_print_float_info): Use get_frame_register and
1000 get_frame_register_unsigned instead of frame_register_read.
192285c6 1001
f0925262
MK
1002 * i386fbsd-nat.c: Include "i386-tdep.h".
1003 (child_resume): Make `eflags' an ULONGEST. Use
1004 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1005 instead of register_read and register_write.
1006
a144416f
MK
1007 * i386bsd-nat.c (fetch_inferior_registers,
1008 store_inferior_registers): Don't use && at the end of a line.
1009 (_initialize_i386bsd_nat): Fix typo.
1010
fec74868
MK
1011 * frame.c (_initialize_frame): Add missing backslash.
1012
87232496
MK
1013 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1014 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1015 and supply_register instead of manipulating the register buffer
1016 directly.
1017
c9b9de0b
MK
1018 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1019 * config/i386/nm-i386sol2.h
1020 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1021
26604a34
MK
1022 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1023 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1024 instructions that GCC likes to mingle into the prologue. Fixes
1025 gdb/1253 and gdb/1255.
1026
25d29d70
AC
10272003-08-09 Andrew Cagney <cagney@redhat.com>
1028
1029 Fix GDB PR cli/926.
1030 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1031 * command.h (add_setshow_uinteger_cmd): Declare.
1032 * frame.c (set_backtrace_cmd): New function.
1033 (show_backtrace_cmd): New function.
1034 * frame.c (_initialize_frame): Replace "set/show
1035 backtrace-below-main" with "set/show backtrace past-main". Add
1036 command "set/show backtrace limit".
1037 (backtrace_past_main): Rename "backtrace_below_main".
1038 (backtrace_limit): New variable.
1039 (get_prev_frame): Update. Check the backtrace_limit.
1040
9ebf4acf
AC
10412003-08-09 Andrew Cagney <cagney@redhat.com>
1042
1043 * defs.h (xstrprintf): Declare.
1044 * utils.c (xstrprintf): New function.
1045 * breakpoint.c (insert_breakpoints): Replace sprintf and
1046 non-literal format strings, with xstrprintf and cleanups.
1047 (delete_breakpoint,breakpoint_re_set): Ditto.
1048 (commands_command, insert_breakpoints): Ditto.
1049 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1050 (break_at_finish_command_1): Ditto.
1051
3771659b
AC
10522003-08-09 Andrew Cagney <cagney@redhat.com>
1053
1054 * MAINTAINERS (language support): List Adam Fedor as Objective C
1055 maintainer.
1056
b4263afa
JB
10572003-08-08 J. Brobecker <brobecker@gnat.com>
1058
1059 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1060 are now multiarched.
1061
d84defb1
JB
10622003-08-08 J. Brobecker <brobecker@gnat.com>
1063
1064 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1065 longer necessary now that hppa64 is partially multiarch'ed.
1066
f786f615
AC
10672003-08-08 Andrew Cagney <cagney@redhat.com>
1068
1069 * interps.c (interp_set): Check for a NULL "old_interp".
1070
c938e9b0
L
10712003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1072
1073 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1074 (install-only): Support DESTDIR.
1075 (uninstall): Likewise.
1076 (install-gdbtk): Likewise.
1077
9a146a11
EZ
10782003-08-08 Elena Zannoni <ezannoni@redhat.com>
1079
1080 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1081 contains something meaningful at all times.
1082
1083Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 1084
62599e99 1085 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 1086
56296155
BC
1087Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1088
62599e99 1089 * MAINTAINERS (write after approval): Added self.
56296155 1090
9710e734
AC
10912003-08-07 Andrew Cagney <cagney@redhat.com>
1092
1093 * inferior.h (AT_SYMBOL): Define.
1094 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1095 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1096 * mips-tdep.c (mips_call_dummy_address): Delete function.
1097 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1098 set call_dummy_address.
1099
98b3ab73
AC
11002003-08-07 Andrew Cagney <cagney@redhat.com>
1101
1102 * language.c (op_error): Delete function.
1103 (binop_type_check): Delete function.
1104 * language.h (type_op_error, range_op_error): Delete macros.
1105 (op_error): Delete declaration.
1106
2fcf52f0
AC
11072003-08-07 Andrew Cagney <cagney@redhat.com>
1108
1109 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1110
abd4220e 11112003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 1112
abd4220e 1113 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 1114 (x86_64_push_arguments): Skip the red zone.
abd4220e 1115
9dd5f34f
AC
11162003-08-05 Andrew Cagney <cagney@redhat.com>
1117
1118 * reggroups.c (reggroup_next): Check for the final entry.
1119
e5e78edc
AC
11202003-08-04 Andrew Cagney <cagney@redhat.com>
1121
ab4e3d93
AC
1122 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1123 * cli/cli-script.c (define_command): Call query directly, instead
1124 of passing it a buffer.
1125 * ocd.c (ocd_error): Pass error a constant format string.
1126 * remote-mips.c (mips_error): Use fputs_filtered.
1127
1062ca82
AC
1128 * solib-svr4.c (_initialize_svr4_solib): Update
1129 register_gdbarch_data call.
1130 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1131
fcc1c85c
AC
1132 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1133 (register_gdbarch_data): Delete "free" parameter. Update
1134 comments.
1135 * gdbarch.h, gdbarch.c: Re-generate.
1136 * reggroups.c (_initialize_reggroup): Update.
1137 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1138 * frame-base.c (_initialize_frame_base): Update.
1139 * frame-unwind.c (_initialize_frame_unwind): Update.
1140 * user-regs.c (_initialize_user_regs): Update.
1141 * remote.c (_initialize_remote): Update.
1142 * regcache.c (_initialize_regcache): Update.
1143
116f06ea
AC
1144 * regcache.c (xfree_regcache_descr): Delete function.
1145 (_initialize_regcache): Update call to register_gdbarch_data.
1146 (init_regcache_descr, init_legacy_regcache_descr): Use
1147 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1148
e5e78edc
AC
1149 * remote.c (free_remote_state): Delete function.
1150 (_initialize_remote): Update register_gdbarch_data.
1151 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1152 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1153
6c7d17ba
AC
11542003-08-04 Andrew Cagney <cagney@redhat.com>
1155
1156 * reggroups.c (struct reggroup_el): Define.
1157 (struct reggroups): Delete field "nr_group". Replace array
1158 "group" with a "first" to "last" linked list.
1159 (reggroups_init): Update. Allocate using gdbarch's obstack.
1160 (reggroups_free): Delete function.
1161 (add_group): Update. Add "el" parameter.
1162 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1163 (default_groups): Update.
1164 (reggroup_next): Replace reggroups.
1165 (reggroups_dump): Update.
1166 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1167 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1168 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1169
89b7795b
DJ
11702003-08-04 Daniel Jacobowitz <drow@mvista.com>
1171
1172 * Makefile.in (tui-interp.o): Update dependencies.
1173
306d9ac5
DC
11742003-08-04 David Carlton <carlton@kealia.com>
1175
1176 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1177 to internal_error call.
1178 * source.c (forward_search_command): Add "%s" format argument.
1179 (reverse_search_command): Ditto.
1180 * top.c (quit_confirm): Ditto.
1181 * cli/cli-setshow.c (do_setshow_command): Ditto.
1182 * cp-valprint.c (cp_print_class_method): Replace
1183 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1184 (cp_print_class_member): Ditto.
1185 * event-top.c (command_line_handler): Ditto.
1186 * linux-proc.c (linux_info_proc_cmd): Ditto.
1187 * p-typeprint.c (pascal_type_print_base): Ditto.
1188 * p-valprint.c (pascal_object_print_class_method): Ditto.
1189 (pascal_object_print_class_member): Ditto.
1190 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1191 * remote.c (remote_cisco_section_offsets): Ditto.
1192 * top.c (command_line_input): Ditto.
1193 * utils.c (vwarning,error_stream,quit): Ditto.
1194 * valprint.c (print_floating,print_binary_chars)
1195 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1196
57bfe177
AC
11972003-08-04 Andrew Cagney <cagney@redhat.com>
1198
1199 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1200
e546b999
AC
12012003-08-02 Andrew Cagney <cagney@redhat.com>
1202
1203 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1204 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1205 amd64fbsd-nat.c.
1206
91092ee5
AC
12072003-08-02 Andrew Cagney <cagney@redhat.com>
1208
1209 * Makefile.in: Update all dependencies and definitions.
1210
889f28e2
AF
12112003-08-02 Adam Fedor <fedor@gnu.org>
1212
1213 * linespec.c (is_objc_method_format): New function
1214 (decode_line_1, locate_first_half): Use it.
1215 Fixes PR objc/1298
1216
880bc914
AC
12172003-08-01 Andrew Cagney <cagney@redhat.com>
1218
1219 * NEWS: Mention that m32r is multi-arch.
1220 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1221 * configure.tgt: Recognize m32r-*-*.
1222 * config/m32r/tm-m32r.h: Delete file.
1223 * config/m32r/m32r.mt: New file.
1224 * m32r-rom.c (m32r_upload_command): Use hostent only when
1225 gethostname succeeds, in order to avoid a compilation
1226 warning.
1227 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1228 compiler warning.
1229
19f59343
MS
12302003-08-01 Michael Snyder <msnyder@redhat.com>
1231
1232 * sh-tdep.c (sh_frame_align): New gdbarch method.
1233 (sh_gdbarch_init): Set up frame_align method.
1234
4e7d7511
MS
12352003-07-31 Michael Snyder <msnyder@redhat.com>
1236
1237 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1238 which is already covered by the new frames infrastructure.
1239
63022984
AC
12402003-07-31 Andrew Cagney <cagney@redhat.com>
1241
1242 * user-regs.c (struct user_reg): Add "next" link.
1243 (struct user_regs): Replace "user" with "first" and "last" links.
1244 (append_user_reg): Add pre-allocated "reg" parameter.
1245 (builtin_user_regs): Provide initial value for "last".
1246 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1247 (user_regs_init): Allocate memory from the gdbarch obstack.
1248 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1249 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1250 linked list.
1251 (usernum_to_user_reg): New function.
1252 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1253 (value_of_user_reg): Use usernum_to_user_reg.
1254 (user_regs_free): Delete function.
1255 (_initialize_user_regs): Update register_gdbarch_data call.
1256
7cf6e574
DJ
12572003-07-31 Daniel Jacobowitz <drow@mvista.com>
1258
1259 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1260
c48a845b
MS
12612003-07-30 Michael Snyder <msnyder@redhat.com>
1262
4e7d7511 1263 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
1264 * infcall.c (call_function_by_hand): Pass struct_addr to
1265 value_being_returned.
1266 * infcmd.c (print_return_value): Pass zero as struct_addr.
1267 * values.c (value_being_returned): If struct_addr is passed,
1268 use it instead of trying to recover it from the inferior.
1269
f0d8db19
KB
12702003-07-30 Kevin Buettner <kevinb@redhat.com>
1271
1272 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1273 the prologue analyzer won't need to attempt to extract the pc
1274 value from the woefully incomplete dummy frame.
1275 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1276 possible. Disable code which modifies the frame.
1277
e5c113a1
AC
12782003-07-28 Andrew Cagney <cagney@redhat.com>
1279
1280 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1281 to level 2.
1282 (annotate_breakpoints_table, annotate_record): Ditto.
1283 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1284 (annotate_field_name_end, annotate_field_value): Ditto.
1285 (annotate_field_end, annotate_frame_source_begin): Ditto.
1286 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1287 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1288 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1289 (annotate_frame_address_end, annotate_frame_address): Ditto.
1290 (annotate_frame_args, annotate_frame_end): Ditto.
1291 (annotate_frame_where, annotate_arg_begin): Ditto.
1292 (annotate_arg_name_end, annotate_arg_value): Ditto.
1293 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1294 (annotate_function_call, annotate_signal_name): Ditto.
1295 (annotate_signal_string, annotate_signal_name_end): Ditto.
1296 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1297 (annotate_value_begin, annotate_value_history_value): Ditto.
1298 (annotate_value_history_end, annotate_value_end): Ditto.
1299 (annotate_display_begin, annotate_display_number_end): Ditto.
1300 (annotate_display_format, annotate_display_expression): Ditto.
1301 (annotate_display_expression_end, annotate_display_value): Ditto.
1302 (annotate_display_end, annotate_array_section_begin): Ditto.
1303 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1304 (annotate_elt, annotate_array_section_end): Ditto.
1305
bb1db049
AC
13062003-07-28 Andrew Cagney <cagney@redhat.com>
1307
1308 * regcache.c (struct regcache_descr): Update comments on
1309 nr_raw_registers.
1310 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1311 sizeof_raw_register_valid_p.
1312 (init_regcache_descr): Set nr_raw_registers and
1313 sizeof_raw_register_valid_p before calling
1314 init_legacy_regcache_descr.
1315
20e6603c
AC
13162003-07-28 Andrew Cagney <cagney@redhat.com>
1317
1318 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1319 MOD NUM_REGS.
1320
db742940
DJ
13212003-07-28 Daniel Jacobowitz <drow@mvista.com>
1322
1323 * thread.c (info_threads_command): Use get_selected_frame ().
1324 Check that there is at least one non-sentinel frame.
1325
ce7f4371
SC
13262003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1327
1328 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1329 (m68hc11_pop_frame): Remove.
1330 (m68hc11_frame_saved_pc): Remove.
1331 (m68hc11_frame_chain): Remove.
1332 (m68hc11_frame_init_saved_regs): Remove.
1333 (m68hc11_init_extra_frame_info): Remove.
1334 (m68hc11_store_struct_return): Remove.
1335 (m68hc11_saved_pc_after_call): Remove.
1336
1ea653ae
SC
13372003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1338
1339 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1340 frame unwind information.
1341 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1342 and adapted for frame unwinding.
1343 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1344 (m68hc11_unwind_pc): New function.
1345 (m68hc11_frame_unwind_cache): New function to analyze frames.
1346 (m68hc11_frame_this_id): New function to create new frame struct.
1347 (m68hc11_frame_prev_register): New function to unwind a register from
1348 the frame.
1349 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1350 (m68hc11_frame_p): New function for the above.
1351 (m68hc11_frame_base_address): New function to return fp of frame.
1352 (m68hc11_frame_args_address): Update for frame.
1353 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1354 (m68hc11_unwind_sp): New function.
1355 (m68hc11_unwind_dummy_id): New function.
1356 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1357 calls.
1358
c8a7f6ac
SC
13592003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1360
1361 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1362 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1363 when we are beyond the current pc.
1364
3dc990bf
SC
13652003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1366
1367 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1368 from m68hc11_push_arguments.
1369 (m68hc11_push_arguments): Remove.
1370 (m68hc11_push_return_address): Remove.
1371 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1372 handlers; remove deprecated_extra_stack_alignment_needed.
1373
222e5d1d
AC
13742003-07-27 Andrew Cagney <cagney@redhat.com>
1375
1376 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1377 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1378 REAL_PC and not the pointer.
1379 * hppa-hpux-tdep.c: Include frame.h
1380
a7e9a47e
AC
13812003-07-27 Andrew Cagney <cagney@redhat.com>
1382
1383 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1384 GDB_MULTI_ACH_PARTIAL.
1385
7e3dd49e
AC
13862003-07-27 Andrew Cagney <cagney@redhat.com>
1387
1388 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1389 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1390 operator at start and not end of line.
1391 (decode_prologue): Ditto.
1392 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1393 frame_unwind_register_unsigned instead of
1394 frame_unwind_unsigned_register.
1395 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1396 read_register.
1397 (m32r_push_dummy_call): Use register_size instead of
1398 REGISTER_RAW_SIZE.
1399 (m32r_frame_sniffer): Replace m32r_frame_p.
1400 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1401 * m32r-rom.c (report_transfer_performance): Delete extern
1402 declaration.
1403 (m32r_load, m32r_upload_command): Use print_transfer_performance
1404 instead of report_transfer_performance.
1405 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1406 / add_show_from_set.
1407
0880807f
AC
14082003-07-26 Andrew Cagney <cagney@redhat.com>
1409
1410 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1411 store_return_value and extract_struct_value_address.
1412
64ae9269
DJ
14132003-07-26 Daniel Jacobowitz <drow@mvista.com>
1414
1415 PR c++/1267
1416 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1417 NULL, default to the section containing PC.
1418
e286caf2
SC
14192003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1420
1421 * NEWS: Mention "regs" deprecated for m68hc11 too.
1422
1423 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1424 (m68hc11_print_register): New function to print out one register.
1425 (m68hc11_print_registers_info): New function to print registers.
1426 (show_regs): Deprecate and use the above.
1427 (m68hc11_gdbarch_init): Install the print_registers_info.
1428
705b278b
JJ
14292003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1430
1431 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1432 that we have a SIGTRAP before returning non-zero.
1433
63cd4198
EZ
14342003-07-23 Michal Ludvig <mludvig@suse.cz>
1435 Elena Zannoni <ezannoni@redhat.com>
1436
1437 * linespec.c (decode_line_2): Avoid crash if
1438 find_function_start_sal() returns empty record.
1439
6926787d
AS
14402003-07-23 Andreas Schwab <schwab@suse.de>
1441
1442 * ia64-tdep.c (ia64_print_insn): New function.
1443 (ia64_gdbarch_init): Set print_insn to it.
1444 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1445 deprecated_tm_print_insn_info.
1446
708cc1b6
MS
14472003-07-22 Michael Snyder <msnyder@redhat.com>
1448
1449 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1450 handle 8-bit returns (long long).
1451 (h8300h_extract_return_value): Ditto.
1452 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1453
aebd7893
AC
14542003-07-22 Andrew Cagney <cagney@redhat.com>
1455
1456 * gdbarch.c Include "gdb_obstack.h".
1457 (struct gdbarch): Add an "obstack".
1458 (alloc_gdbarch_data): Allocate the gdbarch data using
1459 GDBARCH_OBSTACK_CALLOC.
1460 (free_gdbarch_data): Delete function.
1461 (gdbarch_obstack_zalloc): New function.
1462 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1463 Assert that the architecture is not initialized.
1464 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1465 vector from the obstack.
1466 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1467 architecture obstack.
1468 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1469 (set_gdbarch_data): Assert that the data is not initialized.
1470 (struct gdbarch_data): Delete member "free".
1471 (register_gdbarch_data): Do not initialize "free".
1472 * gdbarch.h, gdbarch.c: Re-generate.
1473
153721e6
AC
14742003-07-22 Andrew Cagney <cagney@redhat.com>
1475
1476 * configure.in (build_warnings): Add -Wformat-nonliteral.
1477 * configure: Re-generate.
1478
c193f044 14792003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
1480
1481 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 1482
c3228f12
EZ
14832003-07-22 Elena Zannoni <ezannoni@redhat.com>
1484
1485 * findvar.c (read_var_value): Remove case for thread local storage
1486 variables. It is now entirely handled by the dwarf2 location
1487 expression code.
1488 * printcmd.c (address_info): Ditto.
1489 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1490 enumeration value.
1491 (struct symbol): Remove objfile field, which was used by
1492 LOC_THREAD_LOCAL_STATIC only.
1493 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1494 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1495 usage of objfile pointer.
1496 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1497 thread local variables.
1498 Add include of objfiles.h.
1499 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1500 storage variables.
1501 * Makefile.in (dwarf2loc.o): Update dependencies.
1502
aef9bcd2
AC
15032003-07-22 Andrew Cagney <cagney@redhat.com>
1504
1505 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1506 get_frame_base.
1507 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1508 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1509 (struct value): Add opaque declaration.
1510 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1511
d95a8903
AC
15122003-07-21 Andrew Cagney <cagney@redhat.com>
1513
1514 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1515 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1516
4db73d49
SC
15172003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1518
1519 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1520 regcache_cooked_read_unsigned instead of read_register.
1521 (m68hc11_saved_pc_after_call): Likewise.
1522 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1523 instead of write_register.
1524 (m68hc11_register_type): New function.
1525 (m68hc11_register_virtual_type): Remove.
1526 (m68hc11_store_return_value): Convert to use the regcache.
1527 (m68hc11_extract_struct_value_address): Likewise.
1528 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1529 m68hc11_register_type; undeprecate store_return_value and
1530 extract_struct_value_address.
1531
ef2b8fcd
SC
15322003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1533
1534 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1535 and translate to use regcache.
1536 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1537
625b0b97
AC
15382003-07-18 Andrew Cagney <cagney@redhat.com>
1539
1540 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1541 * gdbarch.h, gdbarch.c: Re-generate.
1542 * i386-tdep.c (i386_gdbarch_init): Do not set
1543 DWARF2_BUILD_FRAME_INFO.
1544 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1545 unconditionally.
1546 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1547 DWARF2_BUILD_FRAME_INFO.
1548
22b0d388
AC
15492003-07-18 Andrew Cagney <cagney@redhat.com>
1550
1551 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1552 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1553
1ce5d6dd
AC
15542003-07-18 Andrew Cagney <cagney@redhat.com>
1555
1556 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1557 frame_unwind_address_in_block, instead of frame_pc_unwind.
1558 (dwarf2_frame_cache): Ditto.
1559
e6e5e94c
AC
15602003-07-18 Andrew Cagney <cagney@redhat.com>
1561
1562 * user-regs.h (struct gdbarch): Declare opaque.
1563 * ui-out.h (struct ui_file): Declare opaque.
1564 * dwarf2-frame.h (struct frame_info): Declare opaque.
1565
5483d879
KW
15662003-07-18 Kris Warkentin <kewarken@qnx.com>
1567
1568 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1569 #include "...".
1570 (procfs_meminfo): Change strerror to safe_strerror.
1571 (procfs_can_run): Remove K&R badness.
1572
278a7cf7
MS
15732003-07-17 Michael Snyder <msnyder@redhat.com>
1574
1575 * remote-sim.c: Comment typo fix.
1576
606e3b82
AC
15772003-07-17 Andrew Cagney <cagney@redhat.com>
1578
1579 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1580 configure.
1581 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1582 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1583 GDB_MULTI_ARCH_PARTIAL.
1584
c43af07c
EZ
15852003-07-17 Elena Zannoni <ezannoni@redhat.com>
1586
1587 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1588 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1589 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1590
3b85b0f1
TR
15912003-07-16 Theodore A. Roth <troth@openavr.org>
1592
1593 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1594 found.
1595 (avr_frame_unwind_cache): Don't unwind FP for main.
1596 Update a comment.
1597 Save the computed prev_sp.
1598 (avr_saved_regs_unwinder): Remove function.
1599 (avr_frame_prev_register): Use PC unwind logic from
1600 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1601
336d1bba
AC
16022003-07-16 Andrew Cagney <cagney@redhat.com>
1603
1604 * frame-base.h (frame_base_p_ftype): Delete definition.
1605 (frame_base_append_predicate): Delete declaration.
1606 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1607 (frame_unwind_append_predicate): Delete declaration.
1608 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1609 (append_predicate): Delete parameter "p".
1610 (frame_unwind_append_predicate): Delete function.
1611 (frame_unwind_append_sniffer): Update call to append_predicate.
1612 (frame_unwind_free): Delete function.
1613 (_initialize_frame_unwind): Pass NULL as "free" to
1614 register_gdbarch_data.
1615 (frame_unwind_init): Append the dummy_frame_sniffer.
1616 (frame_unwind_find_by_frame): Simplify.
1617 * frame-base.c (struct frame_base_table): Delete field "p".
1618 (append_predicate): Delete parameter "p".
1619 (frame_base_append_predicate): Delete function.
1620 (frame_base_append_sniffer): Update call to append_predicate.
1621 (frame_base_free): Delete function.
1622 (frame_base_find_by_frame): Simplify.
1623 (_initialize_frame_base): Pass NULL as "free" to
1624 register_gdbarch_data.
1625 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1626 (x86_64_sigtramp_frame_sniffer): Replace
1627 "x86_64_sigtramp_frame_p".
1628 (x86_64_init_abi): Set the frame unwind sniffers.
1629 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1630 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1631 (m68k_gdbarch_init): Set the frame unwind sniffers.
1632 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1633 "i386_sigtramp_frame_p".
1634 (i386_frame_sniffer): Replace "i386_frame_p".
1635 (i386_gdbarch_init): Set the frame unwind sniffers.
1636 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1637 (avr_gdbarch_init): Set the frame unwind sniffers.
1638 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1639 "alpha_sigtramp_frame_p"
1640 (alpha_heuristic_frame_sniffer): Replace
1641 "alpha_heuristic_frame_p".
1642 (alpha_gdbarch_init): Set the frame unwind sniffers.
1643 (alpha_dwarf2_init_abi): Ditto.
1644 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1645 "alpha_debug_frame_p".
1646 (alpha_mdebug_frame_base_sniffer): Replace
1647 "alpha_mdebug_frame_base_p".
1648 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1649 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1650 (d10v_gdbarch_init): Set the frame unwind sniffer.
1651 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1652 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1653 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1654 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1655 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1656 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1657
48db5a3c
CV
16582003-07-16 Michael Snyder <msnyder@redhat.com>
1659
1660 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1661 should go thru sh_dsp_register_sim_regno, else the dsp regs
1662 will not get the right values.
1663
16642003-07-16 Corinna Vinschen <vinschen@redhat.com>
1665
1666 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1667 deprecated_store_floating by call to store_typed_floating.
1668 (sh_sh4_register_convert_to_raw): Substitute call to
1669 deprecated_extract_floating by call to extract_typed_floating.
1670
16712003-07-16 Corinna Vinschen <vinschen@redhat.com>
1672
1673 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1674
16752003-07-16 Corinna Vinschen <vinschen@redhat.com>
1676
1677 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1678 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1679 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1680 as possible.
1681 (do_pseudo_register): Remove.
1682 (sh_push_dummy_code): New function.
1683 (sh64_store_struct_return): Rename from sh_store_struct_return.
1684 Only called for sh64 now.
1685 (sh_extract_struct_value_address): Regcache'ify.
1686 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1687 and accomodate new tasks.
1688 (sh64_push_return_address): Rename from sh_push_return_address.
1689 Only called for sh64 now.
1690 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1691 Regcache'ify.
1692 (sh3e_sh4_extract_return_value): Regcache'ify.
1693 (sh_default_store_return_value): Ditto.
1694 (sh3e_sh4_store_return_value): Ditto.
1695 (sh_default_register_byte): Remove.
1696 (sh_sh4_register_byte): Remove.
1697 (sh_default_register_raw_size): Remove.
1698 (sh_sh4_register_raw_size): Remove.
1699 (sh_register_virtual_size): Remove.
1700 (sh_sh3e_register_virtual_type): Remove.
1701 (sh_sh3e_register_type): New function.
1702 (sh_sh4_register_virtual_type): Remove.
1703 (sh_sh4_register_type): New function.
1704 (sh_default_register_virtual_type): Remove.
1705 (sh_default_register_type): New function.
1706 (do_fv_register_info): Add parameters to accomodate call from
1707 sh_print_registers_info.
1708 (do_dr_register_info): Ditto.
1709 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1710 Add parameters to accomodate call from sh_print_registers_info.
1711 (sh_do_fp_register): Ditto.
1712 (sh64_do_pseudo_register): Call do_dr_register_info,
1713 do_fv_register_info and sh_do_fp_register with default parameters.
1714 (sh_do_register): Add parameters to accomodate call from
1715 sh_print_registers_info.
1716 (sh_print_register): Ditto.
1717 (sh_print_registers_info): Rename from sh_do_registers_info.
1718 Add parameters to be used as gdbarch_print_registers_info
1719 implementation. Accomodate removed do_pseudo_register function
1720 pointer.
1721 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1722 function pointer. Call sh_print_register with default parameters.
1723 (sh64_do_registers_info): Call sh_print_registers_info instead of
1724 sh_do_registers_info.
1725 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1726 detection of deprecated vs. non-deprecated functionality.
1727 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1728 function pointer assignments by direct function calls.
1729
e8a89fe2
AC
17302003-07-15 Andrew Cagney <cagney@redhat.com>
1731
1732 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1733 (frame_register_unwind, create_new_frame): Ditto.
1734 (legacy_get_prev_frame, get_frame_type): Ditto.
1735 (get_frame_base_address): Use frame_base_find_by_frame.
1736 (get_frame_locals_address): Use frame_base_find_by_frame.
1737 (get_frame_args_address): Use frame_base_find_by_frame.
1738 * frame-base.h (frame_base_sniffer_ftype): Declare.
1739 (frame_base_append_sniffer): Declare.
1740 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1741 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1742 (frame_base_append_sniffer): New function.
1743 (frame_base_append_predicate): Add a NULL sniffer.
1744 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1745 (struct frame_base_table): Add "sniffer".
1746 (frame_base_free): Free the "sniffer" table.
1747 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1748 (frame_unwind_append_sniffer): Declare.
1749 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1750 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1751 (struct frame_unwind_table): Add "sniffer", delete "middle".
1752 (append_predicate): Add "sniffer" parameter, append the sniffer.
1753 (frame_unwind_init): Update append_predicate call.
1754 (frame_unwind_append_sniffer): New function.
1755 (frame_unwind_append_predicate): Update append_predicate call.
1756 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1757
0714963c
AC
17582003-07-15 Andrew Cagney <cagney@redhat.com>
1759
1760 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1761 before code inhibiting repeated unwind attempts. Add to
1762 commentary on that test's problems.
1763 * blockframe.c (inside_main_func): Look for "main" in the minimal
1764 symbol table.
1765 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1766 identical.
1767
d9170e22
AC
17682003-07-15 Andrew Cagney <cagney@redhat.com>
1769
1770 * complaints.c (struct explanation): Define.
1771 (struct complaints): Change type of "explanation" to "struct
1772 explanation".
1773 (symfile_explanations): Convert to a "struct explanation" table.
1774 (vcomplaint): Update.
1775
eba29c8c
ML
17762003-07-15 Michal Ludvig <mludvig@suse.cz>
1777
1778 * x86-64-linux-nat.c (regmap): Removed.
1779 (supply_gregset, fill_gregset): Call
1780 x86_64_linux_(fill,supply)_gregset functions.
1781 * x86-64-linux-tdep.c (USER_*): New defines.
1782 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1783 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1784 New functions.
1785 (fetch_core_registers): Ditto.
1786 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1787 * x86-64-linux-tdep.h: New file.
1788 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1789 and core-regset.o.
1790 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1791
68cc0bfb
MK
17922003-07-13 Mark Kettenis <kettenis@gnu.org>
1793
88a115f7
MK
1794 * x86-64-tdep.c (x86_64_store_return_value): Use
1795 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 1796
68cc0bfb
MK
1797 * configure.host: Add x86_64-*-freebsd*.
1798 * configure.tgt: Add x86_64-*-freebsd*.
1799 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1800 * amd64fbsd-nat.c: New file.
1801 * amd64fbsd-tdep.c: New file.
1802 * config/i386/nm-fbsd64.h: New file.
1803 * config/i386/fbsd64.mh: New file.
1804 * config/i386/fbsd64.mt: New file.
1805
138e7be5
MK
18062003-07-11 Mark Kettenis <kettenis@gnu.org>
1807
1808 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1809 `sc_regs_offset' and `sc_fpregs_offset'.
1810 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1811 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1812 (alpha_sigtramp_register_address): Rewrite to use new members of
1813 `struct gdbarch_tdep'.
1814 (alpha_gdbarch_init): Initialize new members of struct
1815 gdbarch_tdep'.
1816 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1817 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1818 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1819 (alphafbsd_pc_in_sigtramp): Implement.
1820 (alphafbsd_sigtramp_offset): New function.
1821 (alphafbsd_sigcontext_addr): New function.
1822 (alphafbsd_init_abi): Initialize signal trampoline related members
1823 of `struct gdbarch_tdep'.
1824 (_initialize_alphafbsd_tdep): Add prototype.
1825
95303a68
TR
18262003-07-11 Theodore A. Roth <troth@openavr.org>
1827
ba292e4c
TR
1828 * Makefile.in (install-only): Quote sed expression when generating
1829 transformed_name.
95303a68 1830
6896c0c7
RH
18312003-07-11 Richard Henderson <rth@redhat.com>
1832
1833 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1834 * dwarf2-frame.c: Include complaints.h.
1835 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1836 variable initialization; return NULL on error.
1837 (decode_frame_entry): New.
1838
8edd5d01
AC
18392003-07-11 Andrew Cagney <cagney@redhat.com>
1840
c4a09524
AC
1841 * frame.h (frame_address_in_block): Delete declaration.
1842 * blockframe.c (frame_address_in_block): Delete function.
1843 (get_frame_block): Use get_frame_address_in_block.
1844 (block_innermost_frame): Ditto.
1845 * stack.c (print_frame, backtrace_command_1): Ditto.
1846
8edd5d01
AC
1847 * frame.h (get_frame_address_in_block): Declare.
1848 (frame_unwind_address_in_block): Declare.
1849 * frame.c (frame_unwind_address_in_block): New function.
1850 (get_frame_address_in_block): New function.
1851
f7968451
AC
18522003-07-10 Andrew Cagney <cagney@redhat.com>
1853
1854 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1855 pre-default. Note: re-generate has no effect.
1856
ae99b398
AC
18572003-07-10 Andrew Cagney <cagney@redhat.com>
1858
1859 * gdbarch.sh: When a variable, but not a function, compare against
1860 0. Fix problem in previous patch.
1861 * gdbarch.c: Re-generate.
1862
956ac328
AC
18632003-07-10 Andrew Cagney <cagney@redhat.com>
1864
1865 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1866 functions against NULL, not 0.
1867 * gdbarch.c: Re-generate.
1868
287c3240
FF
18692003-07-10 Fred Fish <fnf@ninemoons.com>
1870
1871 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1872 null string instead of a null pointer.
1873 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1874
32f63c4b
MS
18752003-07-09 Michael Snyder <msnyder@redhat.com>
1876
1877 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1878
402ecd56
MK
18792003-07-09 Mark Kettenis <kettenis@gnu.org>
1880
1881 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1882 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1883 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1884 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1885 * x86-64-tdep.c: ... from here.
1886
c481dac7
AS
18872003-07-09 Andreas Schwab <schwab@suse.de>
1888
1889 * m68k-tdep.h (enum struct_return): Define.
1890 (struct gdbarch_tdep): Add struct_return.
1891 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1892 bytes are padded to the right, not to the left. Pass struct value
1893 address in register %a1, not on stack.
1894 (m68k_use_struct_convention): New function.
1895 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1896 struct_return in tdep to pcc_struct_return.
1897 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1898 reg_struct_return.
1899
64176fa3
JB
19002003-07-09 Joel Brobecker <brobecker@gnat.com>
1901
1902 * somread.c (som_symfile_offsets): Fix compilation error.
1903
96a4ee76
AC
19042003-07-09 Andrew Cagney <cagney@redhat.com>
1905
1906 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1907 Add comments about the checks.
1908
1517c6d1
AC
19092003-07-08 Andrew Cagney <cagney@redhat.com>
1910
1911 * Makefile.in: Make dependency section headers consistent.
1912 (config_h): Move to $BUILD headers section.
1913 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1914 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1915 (ada-exp.tab.c): Move to YACC/LEX section.
1916 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1917 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1918
dc5dd1eb
KW
19192003-07-08 Kris Warkentin <kewarken@qnx.com>
1920
1921 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
1922 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1923 of strerror with safe_strerror, use ISO C function definitions,
1924 and replace instances of sprintf with snprintf.
dc5dd1eb 1925
612dde91
AC
19262003-07-07 Andrew Cagney <cagney@redhat.com>
1927
1928 * frame.c (get_prev_frame): Enable check for identical frames.
1929 Update comments. Update error messages.
1930
492c11d3
JB
19312003-07-07 Joel Brobecker <brobecker@gnat.com>
1932
1933 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1934
376a5a49
JB
19352003-07-07 Joel Brobecker <brobecker@gnat.com>
1936
1937 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1938 sort_symtab_syms, no longer necessary.
1939
22b4a9ad
JB
19402003-07-07 Joel Brobecker <brobecker@gnat.com>
1941
1942 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1943
5bbcb741
JB
19442003-07-07 Joel Brobecker <brobecker@gnat.com>
1945
1946 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1947 (mips_register_byte): Likewise.
1948
c139e7d9
DJ
19492003-07-07 Daniel Jacobowitz <drow@mvista.com>
1950
1951 * Makefile.in (sparc_tdep_h): New.
1952 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1953 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1954 * sparc-linux-nat.c: Include "sparc-tdep.h".
1955 * sparc-nat.c: Likewise.
1956 * sparc-tdep.c: Likewise.
1957 * sparc64nbsd-nat.c: Likewise.
1958 * sparcnbsd-nat.c: Likewise.
1959 * sparcnbsd-tdep.c: Likewise.
1960 * sparc-tdep.h: New file.
1961 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1962 and sparc_npc_regnum.
1963
fd8f87c5
DJ
19642003-07-07 Daniel Jacobowitz <drow@mvista.com>
1965
1966 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1967 (mips_linux_cannot_store_register): List supported instead of
1968 unsupported registers.
1969
13adf674
DJ
19702003-07-07 Daniel Jacobowitz <drow@mvista.com>
1971
1972 * disasm.c (dump_insns): Separate instructions from addresses.
1973
8de307e0
AS
19742003-07-07 Andreas Schwab <schwab@suse.de>
1975
1976 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1977 dependencies.
1978 * m68k-tdep.c (NUM_FREGS): Delete.
1979 (SIG_PC_FP_OFFSET): Delete.
1980 (TARGET_M68K): Delete.
1981 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1982 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1983 P_MOVEL_SP, P_MOVEML_SP): Define.
1984 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1985 P_TRAP): Delete.
1986 (m68k_register_raw_size): Delete.
1987 (m68k_register_virtual_size): Delete.
1988 (m68k_register_type): Renamed from m68k_register_virtual_type and
1989 add gdbarch argument.
1990 (m68k_store_struct_return): Delete.
1991 (m68k_deprecated_extract_return_value): Delete.
1992 (m68k_deprecated_extract_struct_value_address): Delete.
1993 (m68k_frame_chain): Delete.
1994 (m68k_frame_saved_pc): Delete.
1995 (m68k_fix_call_dummy): Delete.
1996 (m68k_push_dummy_frame): Delete.
1997 (m68k_pop_frame): Delete.
1998 (m68k_extract_return_value): New function.
1999 (m68k_store_return_value): Rewrite using regcache.
2000 (m68k_extract_struct_value_address): Rewrite using regcache.
2001 (m68k_push_dummy_call): New function.
2002 (struct m68k_frame_cache): Define.
2003 (m68k_alloc_frame_cache): New function.
2004 (m68k_analyze_frame_setup): New function.
2005 (m68k_analyze_register_saves): New function.
2006 (m68k_analyze_prologue): New function.
2007 (m68k_skip_prologue): Rewrite using above functions.
2008 (m68k_unwind_pc): New function.
2009 (m68k_frame_cache): New function.
2010 (m68k_frame_this_id): New function.
2011 (m68k_frame_prev_register): New function.
2012 (m68k_frame_unwind): New variable.
2013 (m68k_frame_p): New function.
2014 (m68k_sigtramp_frame_cache): New function.
2015 (m68k_sigtramp_frame_this_id): New function.
2016 (m68k_sigtramp_frame_prev_register): New function.
2017 (m68k_sigtramp_frame_unwind): New variable.
2018 (m68k_sigtramp_frame_p): New function.
2019 (m68k_frame_base_address): New function.
2020 (m68k_frame_base): New function.
2021 (m68k_unwind_dummy_id): New function.
2022 (fill_gregset): Use regcache_collect.
2023 (fill_fpregset): Likewise.
2024 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2025 defined.
2026 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2027 deprecated_init_frame_pc, deprecated_store_struct_return,
2028 deprecated_extract_return_value, deprecated_store_return_value,
2029 deprecated_frame_chain, deprecated_frame_saved_pc,
2030 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2031 deprecated_register_virtual_size,
2032 deprecated_max_register_raw_size,
2033 deprecated_max_register_virtual_size,
2034 deprecated_register_virtual_type, deprecated_register_size,
2035 deprecated_register_byte, deprecated_register_bytes,
2036 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2037 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2038 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2039 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2040 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2041 deprecated_push_dummy_frame, deprecated_pop_frame,
2042 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2043 only if SYSCALL_TRAP is defined. Set extract_return_value,
2044 store_return_value, extract_struct_value_address, register_type,
2045 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2046 predicates.
2047 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2048 M68K_MAX_REGISTER_SIZE): Define.
2049 (struct m68k_sigtramp_info): Define.
2050 (struct gdbarch_tdep): Add get_sigtramp_info.
2051 * m68klinux-nat.c (fetch_register): Use register_size instead of
2052 REGISTER_RAW_SIZE. Don't put assignment in if.
2053 (store_register): Likewise.
2054 (fetch_inferior_registers): Likewise.
2055 (store_inferior_registers): Likewise.
2056 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2057 (m68k_linux_frame_saved_pc): Delete.
2058 (m68k_linux_sigcontext_reg_offset,
2059 m68k_linux_ucontext_reg_offset): Define.
2060 (m68k_linux_get_sigtramp_info): New function.
2061 (m68k_linux_extract_return_value): Rewrite using regcache.
2062 (m68k_linux_store_return_value): Likewise.
2063 (m68k_linux_extract_struct_value_address): Likewise.
2064 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2065 Don't set deprecated_frame_saved_pc,
2066 deprecated_extract_return_value, deprecated_store_return_value,
2067 deprecated_extract_struct_value_address. Set
2068 extract_return_value, store_return_value,
2069 extract_struct_value_address.
2070
eb8bc282
AC
20712003-07-07 Andrew Cagney <cagney@redhat.com>
2072
2073 * expprint.c: Include "user-regs.h" instead of "frame.h".
2074 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2075 frame_map_regnum_to_name.
2076 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2077 (frame_map_name_to_regnum): Simplify, call
2078 user_reg_map_name_to_regnum.
2079 (frame_map_regnum_to_name): Simplify, call
2080 user_reg_map_regnum_to_name.
2081 (frame_register_unwind): Update.
2082 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2083 (_initialize_frame_reg): Call user_reg_add_builtin.
2084 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2085 (value_of_register): Use value_of_user_reg.
2086 * eval.c (evaluate_subexp_standard): Update.
2087 * parse.c (write_dollar_variable): Update.
2088 * d10v-tdep.c (d10v_print_registers_info): Update.
2089 * infcmd.c (registers_info): Update.
2090 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2091 (builtin_regs_h): Delete macro.
2092 (user_regs_h): Define.
2093 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2094 (builtin-regs.o): Delete target.
2095 (user-regs.o): Specify dependencies.
2096 (expprint.o): Update dependencies.
2097 (findvar.o): Update dependencies.
2098 (frame.o): Update dependencies.
2099 (std-regs.o): Update dependencies.
2100
9f476a01
CF
21012003-07-06 Christopher Faylor <cgf@redhat.com>
2102
2103 * win32-nat.c (solib_symbols_add): Use one variable for all section
2104 address stuff. Pass variable rather than address of variable to
2105 safe_symbol_file_add.
2106
a731b831
AS
21072003-07-06 Andreas Schwab <schwab@suse.de>
2108
2109 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2110
9f83329d
JB
21112003-07-04 Joel Brobecker <brobecker@gnat.com>
2112
2113 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2114
27e28cc5
KW
21152003-07-04 Kris Warkentin <kewarken@qnx.com>
2116
2117 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2118
21192003-07-04 Kris Warkentin <kewarken@qnx.com>
2120
2121 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2122 * config/i386/nto.mh: New file.
2123 * config/i386/nm-nto.h: New file.
2124 * configure.host: Add i[3456]86-*-nto*.
2125
100f2e98
JB
21262003-07-03 Joel Brobecker <brobecker@gnat.com>
2127
2128 * remote-vx.c (vx_add_symbols): Fix compilation error.
2129
e23457df
AC
21302003-07-03 Andrew Cagney <cagney@redhat.com>
2131
2132 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2133 * gdbarch.h, gdbarch.c: Re-generate.
2134 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2135 (legacy_register_name): Declare.
2136 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2137 (REGISTER_NAME): Define.
2138 * sparc-tdep.c (legacy_register_name): New function.
2139 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2140 (REGISTER_NAME): Define.
2141 (hppa64_register_name): Declare.
2142 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2143 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2144 (hppa64_register_name): New function.
2145 (hppa_register_name): New function.
2146 * arch-utils.c (legacy_register_name): Delete.
2147 * arch-utils.h (legacy_register_name): Delete.
2148
38caaeec
DJ
21492003-07-03 Daniel Jacobowitz <drow@mvista.com>
2150
2151 * cli/cli-interp.c (cli_interpreter_resume): Update the
2152 cli_uiout's stream to gdb_stdout.
2153
dadd712e
AC
21542003-07-03 Andrew Cagney <cagney@redhat.com>
2155
2156 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2157 predicate.
2158 * gdbarch.h, gdbarch.c: Re-generate.
2159 * regcache.c (init_regcache_descr): Use legacy code when either
2160 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2161
c7f1390e
DJ
21622003-07-02 Daniel Jacobowitz <drow@mvista.com>
2163
2164 * NEWS: Move "set logging" entry into GDB 6.0 section.
2165
4bc8c588
JB
21662003-07-02 Jim Blandy <jimb@redhat.com>
2167
a9dd42f1
JB
2168 * s390-tdep.c (struct frame_extra_info): new member:
2169 'stack_bought_valid'.
2170 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2171 initialize fextra_info->stack_bought.
2172 (s390_frameless_function_invocation): Don't trust the value of
2173 fextra_info_ptr->stack_bought unless
2174 fextra_info->stack_bought_valid is set.
2175
4bc8c588
JB
2176 New S390 prologue analyzer.
2177 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2178 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2179 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2180 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2181 compute_x_addr, s390_on_stack, s390_store,
2182 s390_get_signal_frame_info): New functions.
2183 (S390_NUM_SPILL_SLOTS): New macro.
2184 (s390_get_frame_info): Rewritten.
2185 (is_arg_reg): Deleted.
2186
2187 Break out the decoding of S/390 instructions into separate
2188 functions, to make it more legible, and easier to check
2189 against the spec.
2190 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2191 is_rx, is_rxe): New functions.
2192 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2193 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2194 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2195 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2196 enums for opcode values. (Is this an improvement?)
2197
fd13a04a
AC
21982003-07-02 Andrew Cagney <cagney@redhat.com>
2199
2200 * i386-tdep.c: Revert change committed as part of trad-frame code
2201 below.
2202
3f8091c1
DJ
22032003-07-02 Daniel Jacobowitz <drow@mvista.com>
2204
2205 * breakpoint.c (insert_catchpoint): Make static.
2206
8dd5115e
AS
22072003-07-02 Andreas Schwab <schwab@suse.de>
2208
2209 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2210 former ia64_push_arguments and ia64_push_return_address, and use
2211 regcache functions instead of read/write_register.
2212 (ia64_gdbarch_init): Set push_dummy_call instead of
2213 deprecated_push_arguments and deprecated_push_return_address.
2214
a2229c23
AJ
22152003-07-01 Andreas Jaeger <aj@suse.de>
2216
2217 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2218 before the call.
2219 Set %rax only to number of SSE registers used.
2220
3b3850e8
AC
22212003-07-01 Andrew Cagney <cagney@redhat.com>
2222
2223 * trad-frame.h: Update comments, a -1 .addr is reserved.
2224 (trad_frame_value_p, trad_frame_addr_p): Declare.
2225 (trad_frame_reg_p): Declare.
2226 (trad_frame_set_value): Rename trad_frame_register_value.
2227 (trad_frame_set_unknown): Declare.
2228 * trad-frame.c (trad_frame_realreg_p): New function.
2229 (trad_frame_addr_p, trad_frame_value_p): New function.
2230 (trad_frame_set_unknown): New function.
2231 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2232 (trad_frame_prev_register): Use trad_frame_realreg_p,
2233 trad_frame_addr_p and trad_frame_value_p.
2234 (trad_frame_set_value): Rename trad_frame_register_value.
2235 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2236 and trad_frame_set_value.
a2229c23 2237
4d819d0e
JB
22382003-06-30 Jim Blandy <jimb@redhat.com>
2239
2240 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2241 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2242 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2243 for 16 registers, and then 32 more bytes.
2244 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2245 New macros.
2246 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2247 Move up in the file, since it's now used by is_simple_arg.
2248 (is_simple_arg): Don't assume registers are four bytes long.
2249 Exclude all double arguments. Extended floats are not simple
2250 args.
2251 (is_power_of_two): New function.
2252 (pass_by_copy_ref): Call is_power_of_two, and check that the
2253 length fits in a register, rather than listing all the acceptable
2254 sizes. Extended floats are not passed by reference.
2255 (s390_push_arguments): Don't assume registers are four bytes long.
2256 Reserve an argument register to point to the buffer for structures
2257 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2258 S390_STACK_FRAME_OVERHEAD.
2259
1ad828f1
AS
22602003-06-30 Andreas Schwab <schwab@suse.de>
2261
2262 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2263 format error message.
2264
39b00981
JB
22652003-06-30 Joel Brobecker <brobecker@gnat.com>
2266
2267 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2268
b2a7f303
DC
22692003-06-30 David Carlton <carlton@kealia.com>
2270
2271 Band-aid for PR c++/1245.
2272 * Makefile.in (cp-support.o): Depend on complaints_h.
2273 * cp-support.c: Include complaints.h. Add declaration for
2274 find_last_component.
2275 (cp_find_first_component): Separate code into
2276 cp_find_first_component_aux.
2277 (cp_find_first_component_aux): Call demangled_name_complaint.
2278 (demangled_name_complaint): New.
2279
a257b5bb
AC
22802003-06-30 Andrew Cagney <cagney@redhat.com>
2281
2282 * remote.c (remote_write_bytes): Explicitly compute and then use
2283 the payload size. Update comments to reflect. Fixes problem of
2284 GDB not sending small packets as found by Fred Fish.
2285
0a2cfde4
AC
22862003-06-30 Andrew Cagney <cagney@redhat.com>
2287
2288 * remote.c (remote_async_wait): Fix -Wformat problem.
2289
3fcb8548
AC
22902003-06-29 Andrew Cagney <cagney@redhat.com>
2291
2292 * remote.c (remote_wait): Call error, and not warning, when the
2293 packet is corrupt.
2294 (remote_async_wait): Ditto.
2295
9f9970a3
DJ
22962003-06-29 Daniel Jacobowitz <drow@mvista.com>
2297
2298 * sparc-tdep.c (sparc_y_regnum): Make external again.
2299
83a8ccca
DJ
23002003-06-29 Daniel Jacobowitz <drow@mvista.com>
2301
2302 * cli/cli-logging.c (pop_output_files): Add void to function
2303 definition.
2304
d2cf594a
AC
23052003-06-29 Andrew Cagney <cagney@redhat.com>
2306
2307 * frame.c (frame_register_unwind): Use unsigned char when dumping
2308 the buffer contents.
2309
0fac0b41
DJ
23102003-06-28 Daniel Jacobowitz <drow@mvista.com>
2311
2312 * cli/cli-logging.c: New file.
2313 * cli-out.c (struct ui_out_data): Add original_stream.
2314 (cli_redirect): New function.
2315 (cli_ui_out_impl): Add cli_redirect.
2316 (cli_out_new): Initialize original_stream.
2317 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2318 (uo_redirect, ui_out_redirect): New.
2319 * ui-out.h (struct ui_out_impl): Add redirect member.
2320 (redirect_ftype): New.
2321 (ui_out_redirect): Add prototype.
2322 * Makefile.in: Add rules for cli-logging.c.
2323 * NEWS: Mention "set logging".
2324
88a07d7c
EZ
23252003-06-27 Elena Zannoni <ezannoni@redhat.com>
2326
2327 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2328
4eb58876
AC
23292003-06-27 Andrew Cagney <cagney@redhat.com>
2330
2331 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2332 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2333 * avr-tdep.c (avr_call_dummy_address): Delete function.
2334 (avr_gdbarch_init): Do not set call_dummy_address.
2335
1549f619
EZ
23362003-06-27 Elena Zannoni <ezannoni@redhat.com>
2337
2338 * symfile.c (syms_from_objfile): Move variables to inner block.
2339 Move the checks for the non-mainline case a bit earlier to avoid
2340 doing some useless computations.
2341
3cb3398d
EZ
23422003-06-27 Elena Zannoni <ezannoni@redhat.com>
2343
2344 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2345
3799ccc6
EZ
23462003-06-26 Elena Zannoni <ezannoni@redhat.com>
2347
2348 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2349 sections.
2350
ce1f6491
MC
23512003-06-26 Michael Chastain <mec@shout.net>
2352
2353 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2354 gdb/testsuite/gdb.c++/pr-1210.exp.
2355
d958dfd0
AC
23562003-06-26 Andrew Cagney <cagney@redhat.com>
2357
2358 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2359 altivec_expression.h and altivec_registers.h.
2360
d31431ed
AC
23612003-06-26 Andrew Cagney <cagney@redhat.com>
2362
2363 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2364 info->mach when MIPS16. Patch suggested by Fred Fish.
2365
714b1282
AC
23662003-06-26 Andrew Cagney <cagney@redhat.com>
2367
2368 * utils.c (internal_vproblem): Print the problem to a reason
2369 buffer and then pass to query. Make the msg variable more local.
2370
42efa47a
AC
23712003-06-26 Andrew Cagney <cagney@redhat.com>
2372
2373 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2374 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2375 * gdbarch.h, gdbarch.c: Re-generate.
2376 * frame-base.c (default_frame_args_address): Update. Use
2377 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2378 not available.
2379 (default_frame_locals_address): Ditto for
2380 DEPRECATED_FRAME_LOCALS_ADDRESS.
2381 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2382 (vax_frame_num_args): Update.
2383 (vax_gdbarch_init): Update.
2384 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2385 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2386 * mcore-tdep.c (mcore_gdbarch_init): Update.
2387 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2388 * ia64-tdep.c (ia64_gdbarch_init): Update.
2389 * symtab.h (address_class): Update comments.
2390 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2391 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2392 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2393 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2394 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2395 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2396 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2397 * alpha-mdebug-tdep.c: Update.
2398 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2399
8ffd9b1b
AJ
24002003-06-26 Andreas Jaeger <aj@suse.de>
2401
2402 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2403 of SSE registers so that varargs functions work. Rework handling
2404 of passing arguments on the stack.
2405 (x86_64_store_return_value): Return double and float values in SSE
2406 register.
2407
e8ac10a6
MC
24082003-06-24 Michael Chastain <mec@shout.net>
2409
2410 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2411 the "constructor breakpoints ignored" bug.
2412
986af8e6
DC
24132003-06-25 David Carlton <carlton@kealia.com>
2414
2415 * MAINTAINERS: Update e-mail address.
2416
d64558a5
JB
24172003-06-24 Jim Blandy <jimb@redhat.com>
2418
e538d2d7
JB
2419 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2420
02631ec0
JB
2421 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2422 function.
2423 (ppc_linux_init_abi): Register it as the
2424 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2425
e716d87a
JB
2426 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2427 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2428 method.
2429
d64558a5
JB
2430 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2431 (ppc64_standard_linkage_target): Use it.
2432
449a5da4
AC
24332003-06-23 Andrew Cagney <cagney@redhat.com>
2434
2435 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2436 for 0 "int0" and 4 "int32" sized registers.
2437 * gdbtypes.c (builtin_type_int0): Define.
2438 (build_gdbtypes): Initialize builtin_type_int0.
2439 * gdbtypes.h (builtin_type_int0): Declare.
2440
b2a02dda
SC
24412003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2442
2443 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2444 as characters are unsigned.
2445
fba3138e
DJ
24462003-06-22 Daniel Jacobowitz <drow@mvista.com>
2447
2448 PR gdb/1179
2449 * dwarfread.c (struct_type): Skip static fields without crashing.
2450
f6c8180b
AC
24512003-06-22 Andrew Cagney <cagney@redhat.com>
2452
2453 GDB 6.0 branch created.
f2c06f52
AC
2454 * README: Update.
2455 * PROBLEMS: Update. Empty.
2456 * NEWS: Update.
f6c8180b 2457
ae822768
DJ
24582003-06-22 Daniel Jacobowitz <drow@mvista.com>
2459
2460 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2461 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2462
261de166
AC
24632003-06-22 Andrew Cagney <cagney@redhat.com>
2464
2465 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2466 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2467 Velikov.
2468
30e94205
DJ
24692003-06-22 Daniel Jacobowitz <drow@mvista.com>
2470
2471 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2472 compilers.
2473
9e14d721
DJ
24742003-06-21 Daniel Jacobowitz <drow@mvista.com>
2475
2476 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2477 argument of val_print.
2478 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2479 to the address argument of baseclass_offset or target_read_memory.
2480 Do add it to the argument of cp_print_value_fields.
2481
a4b8ebc8
AC
24822003-06-21 Andrew Cagney <cagney@redhat.com>
2483
2484 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2485 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2486 instead of 0..NUM_REGS.
2487 (mips_register_reggroup_p): New function.
2488 (mips_pseudo_register_write): New function.
2489 (mips_pseudo_register_read): New function.
2490 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2491 based on the register's type.
2492 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2493 cooked.
2494 (mips_get_saved_register): Simplify. Assert that REGNO is a
2495 pseudo / cooked.
2496 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2497 (mips_register_type): Replace mips_register_virtual_type. Map
2498 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2499 when available.
2500 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2501 that the register is cooked / virtual.
2502 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2503 Only get the extra info when needed.
2504 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2505 (mips32_heuristic_proc_desc): Fetch the cooked register.
2506 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2507 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2508 (mips_print_register): Use gdbarch_register_type, instead of
2509 REGISTER_VIRTUAL_TYPE.
2510 (print_gp_register_row): Use gdbarch_register_type, instead of
2511 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2512 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2513 Print the pseudo / cooked registers.
2514 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2515 Print the pseudo / cooked registers.
2516 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2517 REG_NUM is pseudo / cooked.
2518 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2519 (mips_n32n64_xfer_return_value): Ditto.
2520 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2521 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2522 (mips_register_sim_regno): New function.
2523 (mips_gdbarch_init): Set deprecated_register_byte,
2524 register_group_p, pseudo_register_write, pseudo_register_read,
2525 register_sim_regno, and num_pseudo_regs. Set register_type,
2526 instead of register_virtual_type.
2527 * Makefile.in (mips-tdep.o): Update dependencies.
2528 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2529 REGISTER_VIRTUAL_TYPE.
2530 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2531 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2532 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2533 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2534 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2535
325ed089
DJ
25362003-06-21 Daniel Jacobowitz <drow@mvista.com>
2537
2538 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2539 * cli/cli-cmds.c: Include "gdb_vfork.h".
2540 (shell_escape): Use vfork.
2541
f0e7d0e8
AC
25422003-06-21 Andrew Cagney <cagney@redhat.com>
2543
c57bb9fa
AC
2544 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2545 32 bit floating-point register saves.
2546
6e51443a
AC
2547 * frame.h (deprecated_unwind_get_saved_register): Delete.
2548 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2549 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2550 and deprecated_get_next_frame_hack instead of
2551 deprecated_unwind_get_saved_register.
2552
ed183c7c
AC
2553 * mips-tdep.c (mips_dump_tdep): Do not print
2554 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2555
f0e7d0e8
AC
2556 * frame.c (get_frame_register): New function.
2557 (frame_unwind_register_signed): New function.
2558 (get_frame_register_signed): New function.
2559 (frame_unwind_register_unsigned): New function.
2560 (get_frame_register_unsigned): New function.
2561 * frame.h: Add comments on naming schema.
2562 (get_frame_register, frame_unwind_register_signed): Declare.
2563 (get_frame_register_signed, get_frame_register_signed): Declare.
2564 (frame_unwind_register_unsigned): Declare.
2565 (get_frame_register_unsigned): Declare.
2566
2224d941
TR
25672003-06-20 Theodore A. Roth <troth@openavr.org>
2568
2569 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2570
8619218d
TR
25712003-06-20 Theodore A. Roth <troth@openavr.org>
2572
2573 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2574 (avr_read_sp): Ditto.
2575
0b1b50c0
DJ
25762003-06-20 Daniel Jacobowitz <drow@mvista.com>
2577
2578 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2579 * config/arm/nm-linux.h: Likewise.
2580 * config/arm/tm-linux.h: Likewise.
2581 * config/ia64/nm-linux.h: Likewise.
2582 * config/ia64/tm-ia64.h: Likewise.
2583 * config/s390/tm-linux.h: Likewise.
2584 * config/s390/tm-s390.h: Likewise.
2585 * s390-nat.c: Likewise.
2586 * s390-tdep.c: Likewise.
2587
2588 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2589 * config/ia64/linux.mt: Likewise.
2590 * config/m68k/linux.mh: Likewise.
2591 * config/mips/linux.mt: Likewise.
2592 * config/powerpc/linux.mh: Likewise.
2593 * config/sh/linux.mt: Likewise.
2594
c8c18e65
KW
25952003-06-19 Kris Warkentin <kewarken@qnx.com>
2596
2597 * solib.c (solib_open): Change tests for whether to search
2598 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2599 comments.
2600
dcccef2e
TR
26012003-06-19 Theodore A. Roth <troth@openavr.org>
2602
2603 * avr-tdep.c (avr_frame_address): Delete function.
2604 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2605 set_gdbarch_frame_args_address.
2606
5861a190
AC
26072003-06-19 Andrew Cagney <cagney@redhat.com>
2608
2609 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2610 (REGISTER_CONVERT_FROM_TYPE): Delete.
2611 (mips_register_convert_to_type): Delete declaration.
2612 (mips_register_convert_from_type): Delete declaration.
2613 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2614 kernel/.
2615
0274a8ce
MS
26162003-06-19 Michael Snyder <msnyder@redhat.com>
2617
2618 * linux-nat.h: New file.
2619 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 2620 * lin-lwp.c: Include linux-nat.h.
0274a8ce 2621 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 2622 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
2623 (linux_make_note_section): Iterate over lwps instead of threads.
2624 (linux_do_thread_registers): Use lwp instead of merged pid.
2625 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 2626 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
2627 Add dependency on linux_nat_h.
2628
adf5f719
TR
26292003-06-19 Theodore A. Roth <troth@openavr.org>
2630
2631 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2632
6766a268
DJ
26332003-06-19 Daniel Jacobowitz <drow@mvista.com>
2634
2635 * varobj.c (get_type, get_target_type): Use check_typedef.
2636
1171114a
DJ
26372003-06-19 Daniel Jacobowitz <drow@mvista.com>
2638
2639 * breakpoint.c (insert_catchpoint): Call internal_error.
2640
adcf68a2
TR
26412003-06-19 Theodore A. Roth <troth@openavr.org>
2642
2643 * avr-tdep.c (avr_push_dummy_code): Delete function.
2644 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2645
ea67f13b
DJ
26462003-06-19 Daniel Jacobowitz <drow@mvista.com>
2647
2648 * arch-utils.c (default_prepare_to_proceed): Remove.
2649 (generic_prepare_to_proceed): Remove.
2650 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2651 (generic_prepare_to_proceed): Remove prototype.
2652 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2653 * gdbarch.c: Regenerate.
2654 * gdbarch.h: Regenerate.
2655 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2656 * hppah-nat.c (hppa_switched_threads): Remove.
2657 * infrun.c (prepare_to_proceed): New static function, copied from
2658 generic_prepare_to_proceed. Remove select_it argument.
2659 (proceed): Call prepare_to_proceed.
2660 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2661 variables.
2662 (ptrace_wait): Don't set the removed variables.
2663 (hppa_switched_threads): Remove.
2664 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2665 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2666 (lin_lwp_prepare_to_proceed): Remove prototype.
2667 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2668 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2669
4add8633
TR
26702003-06-18 Theodore A. Roth <troth@openavr.org>
2671
2672 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2673 trad-frame.h.
2674 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2675 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2676 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2677 (AVR_PROLOGUE_*): Enumerate prologue types.
2678 (struct frame_extra_info): Remove.
2679 (struct avr_unwind_cache): Define.
2680 (avr_write_sp): Delete function.
2681 (avr_read_fp): Ditto.
2682 (avr_init_extra_frame_info): Ditto.
2683 (avr_pop_frame): Ditto.
2684 (avr_frame_saved_pc): Ditto.
2685 (avr_saved_pc_after_call): Ditto.
2686 (avr_push_return_address): Ditto.
2687 (avr_frame_chain): Ditto.
2688 (avr_store_struct_return): Ditto.
2689 (avr_push_arguments): Ditto.
2690 (avr_scan_prologue): Update comments. Changed to set up the info for
2691 cache unwinding. Now returns end of prologue PC.
2692 (avr_skip_prologue): Better handling of functions lacking a prologue
2693 by using avr_scan_prologue.
2694 (avr_scan_arg_moves): New function.
2695 (avr_saved_regs_unwinder): Ditto.
2696 (avr_frame_unwind_cache): Ditto.
2697 (avr_unwind_pc): Ditto.
2698 (avr_frame_this_id): Ditto.
2699 (avr_frame_prev_register): Ditto.
2700 (avr_frame_p): Ditto.
2701 (avr_frame_base_address ): Ditto.
2702 (avr_unwind_dummy_id): Ditto.
2703 (avr_push_dummy_code): Ditto.
2704 (push_stack_item): Ditto.
2705 (pop_stack_item): Ditto.
2706 (avr_push_dummy_call): Ditto.
2707 (struct stack_item): Define.
2708 (avr_frame_unwind): Declare structure.
2709 (avr_frame_base): Ditto.
2710 (avr_gdbarch_init): Remove calls to
2711 set_gdbarch_deprecated_init_frame_pc,
2712 set_gdbarch_deprecated_target_read_fp,
2713 set_gdbarch_deprecated_dummy_write_sp,
2714 set_gdbarch_deprecated_fp_regnum,
2715 set_gdbarch_deprecated_push_arguments,
2716 set_gdbarch_deprecated_push_return_address,
2717 set_gdbarch_deprecated_pop_frame,
2718 set_gdbarch_deprecated_store_struct_return,
2719 set_gdbarch_deprecated_frame_init_saved_regs,
2720 set_gdbarch_deprecated_init_extra_frame_info,
2721 set_gdbarch_deprecated_frame_chain,
2722 set_gdbarch_deprecated_frame_saved_pc,
2723 set_gdbarch_deprecated_saved_pc_after_call.
2724 Add calls to set_gdbarch_push_dummy_call,
2725 set_gdbarch_push_dummy_code,
2726 frame_unwind_append_predicate,
2727 frame_base_set_default,
2728 set_gdbarch_unwind_dummy_id,
2729 set_gdbarch_unwind_pc.
2730 Wrap a long line.
2731
7be04a68
MS
27322003-06-18 Corinna Vinschen <vinschen@redhat.com>
2733
2734 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2735 registers for H8/300S.
2736 (h8300_print_registers_info): Ditto.
8ffd9b1b 2737 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 2738
ae087d01
DJ
27392003-06-18 Daniel Jacobowitz <drow@mvista.com>
2740
2741 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2742 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2743 (lin_lwp_wait): Likewise. Update comments.
2744 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2745 (pull_pid_from_list, linux_record_stopped_pid): New.
2746
07d8f827
SC
27472003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2748
2749 * ada-lang.c (scan_discrim_bound): Name first argument.
2750 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2751 declared by ALL_BLOCK_SYMBOLS.
2752
7cb47b14
SC
27532003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2754
2755 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2756 ("regcache.h"): Include it.
2757 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2758
6ad8ae5c
DJ
27592003-06-17 Daniel Jacobowitz <drow@mvista.com>
2760
2761 * NEWS: Mention gdbserver detach change and "disconnect" command.
2762 * infcmd.c (disconnect_command): New function.
2763 (_initialize_infcmd): Add ``disconnect'' command.
2764 * remote.c (remote_async_detach): Delete.
2765 (remote_detach): Merge remote_async_detach.
2766 (remote_disconnect): New.
2767 (init_remote_ops): Set to_disconnect.
2768 (init_remote_cisco_ops): Likewise.
2769 (init_remote_async_ops): Likewise. Use remote_detach.
2770 * target.c (cleanup_target): Default to_disconnect.
2771 (update_current_target): Inherit to_disconnect.
2772 (target_disconnect, debug_to_disconnect): New functions.
2773 (setup_target_debug): Set to_disconnect.
2774 * target.h (struct target_ops): Add to_disconnect.
2775 (target_disconnect): Add prototype.
2776
687595f9
DJ
27772003-06-17 Daniel Jacobowitz <drow@mvista.com>
2778
2779 * breakpoint.c (insert_catchpoint): New function.
2780 (insert_breakpoints): Use catch_exceptions to call
2781 insert_catchpoint. Disable catchpoints if they fail to insert.
2782
29239a8f
DJ
27832003-06-17 Daniel Jacobowitz <drow@mvista.com>
2784
2785 * symfile.c (reread_symbols): Clear sym_private.
2786
2cdf3c63
AC
27872003-06-17 Andrew Cagney <cagney@redhat.com>
2788
2789 * trad-frame.h (struct frame_info): Add opaque declaration.
2790 * remote-fileio.h (struct cmd_list_element): Add opaque
2791 declaration.
2792 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2793 comments.
2794
cf0e1e0d
DJ
27952003-06-17 Daniel Jacobowitz <drow@mvista.com>
2796
2797 * remote.c (remote_prepare_to_store): Replace call to
2798 deprecated_read_register_bytes with multiple regcache_raw_read
2799 calls.
2800
192cdb19
KW
28012003-06-17 Kris Warkentin <kewarken@qnx.com>
2802
2803 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2804 (nto_find_and_open_solib): Likewise.
2805 (nto_init_solib_absolute_prefix): Likewise.
2806 (_initialize_nto_tdep): Fix indentation.
2807
89929b45
KW
28082003-06-17 Kris Warkentin <kewarken@qnx.com>
2809
2810 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2811
46019f27
KW
28122003-06-17 Kris Warkentin <kewarken@qnx.com>
2813
2814 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2815
1a38736e
JB
28162003-06-17 Jim Blandy <jimb@redhat.com>
2817
2818 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2819
3605c34a
TR
28202003-06-16 Theodore A. Roth <troth@openavr.org>
2821
2822 * avr-tdep.c (avr_extract_return_value): New function.
2823 (avr_gdbarch_init): Set extract_return_value method.
2824
870b3035
AC
28252003-06-16 Andrew Cagney <cagney@redhat.com>
2826
2827 * frame.h (deprecated_get_next_frame_hack): Declare.
2828 * frame.c (legacy_saved_regs_prev_register): Only require
2829 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2830 there are always saved regs.
2831 (deprecated_generic_get_saved_register): Do not require
2832 DEPRECATED_FRAME_INIT_SAVED_REGS.
2833 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2834 use frame ID unwind instead.
2835 (deprecated_get_next_frame_hack): New function.
2836
63d47a7d
CV
28372003-06-16 Corinna Vinschen <vinschen@redhat.com>
2838
2839 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2840 (h8300_push_dummy_call): ...this function. Some minor optimization.
2841 (h8300_push_return_address): Remove.
2842 (h8300_gdbarch_init): Remove calls to
2843 set_gdbarch_deprecated_dummy_write_sp,
2844 set_gdbarch_deprecated_push_arguments and
2845 set_gdbarch_deprecated_push_return_address.
2846 Add call to set_gdbarch_push_dummy_call.
2847
4bb1dc5e
CV
28482003-06-16 Corinna Vinschen <vinschen@redhat.com>
2849
2850 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2851 (E_PSEUDO_EXR_REGNUM): Ditto.
2852 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 2853 registers into safe registers.
4bb1dc5e
CV
2854 (h8300_skip_prologue): Check for stm instruction to push registers
2855 used for register variables onto stack.
2856 (gdb_print_insn_h8300): Remove.
2857 (h8300_examine_prologue): Add a comment.
2858 (h8300_register_name): Take pseudo registers into account.
2859 (h8300s_register_name): Ditto.
2860 (h8300sx_register_name): Ditto.
2861 (h8300_print_register): Ditto.
2862 (h8300_print_registers_info): Define "nice" printing order.
2863 (h8300_saved_pc_after_call): Take pseudo registers into account.
2864 (h8300_register_type): Ditto. Return type used for remote connection
2865 when requesting real CCR or EXR register, return actual type when
2866 requesting pseudo CCR or EXR.
2867 (h8300_pseudo_register_read): New function.
2868 (h8300_pseudo_register_write): Ditto.
2869 (h8300_dbg_reg_to_regnum): Ditto.
2870 (h8300s_dbg_reg_to_regnum): Ditto.
2871 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2872 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2873 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2874 set_gdbarch_print_insn architecture dependent.
2875 Call set_gdbarch_pseudo_register_read and
2876 set_gdbarch_pseudo_register_write.
2877 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2878
a59fe496
AC
28792003-06-16 Andrew Cagney <cagney@redhat.com>
2880
2881 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2882 * gdbarch.h, gdbarch.c: Re-generate.
2883 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2884 * s390-tdep.c (s390_gdbarch_init): Update.
2885 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2886 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2887 * mips-tdep.c (mips_gdbarch_init): Update.
2888 * mcore-tdep.c (mcore_gdbarch_init): Update.
2889 * cris-tdep.c (cris_gdbarch_init): Update.
2890 * infcall.c (call_function_by_hand): Update.
2891 * ia64-tdep.c (ia64_push_arguments): Update comment.
2892 * frame.c (legacy_get_prev_frame): Do not assume
2893 SAVE_DUMMY_FRAME_TOS_P.
2894 * dummy-frame.c (find_dummy_frame): Update comment.
2895
6f4e5a41
AC
28962003-06-16 Andrew Cagney <cagney@redhat.com>
2897
2898 * regcache.c (do_cooked_read): Do not use register_valid_p.
2899
72fab697
TR
29002003-06-15 Theodore A. Roth <troth@openavr.org>
2901
2902 * avr-tdep.c (avr_register_type): Remove a blank line.
2903 (avr_scan_prologue): Correct some comments.
2904
e3d8b004
TR
29052003-06-15 Theodore A. Roth <troth@openavr.org>
2906
2907 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2908 prologue types.
8ffd9b1b 2909 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
2910 option.
2911 Add code to scan -mcall-prologues for mega devices.
2912
866b76ea
TR
29132003-06-15 Theodore A. Roth <troth@openavr.org>
2914
2915 * avr-tdep.c (avr_register_byte): Delete function.
2916 (avr_register_raw_size): Delete function.
2917 (avr_register_virtual_size): Delete function.
2918 (avr_register_virtual_type): Delete function.
2919 (avr_register_type): New function.
2920 (avr_address_to_pointer): Remove unused code.
2921 (avr_read_fp): Need to read FP as two separate bytes due to change to
2922 avr_register_type() usage.
2923 (avr_gdbarch_init): Don't set deprecated_register_size.
2924 Don't set deprecated_register_bytes.
2925 Don't set deprecated_register_byte.
2926 Don't set deprecated_register_raw_size.
2927 Don't set deprecated_max_register_raw_size.
2928 Don't set deprecated_register_virtual_size.
2929 Don't set deprecated_max_register_virtual_size.
2930 Don't set deprecated_register_virtual_type.
2931 Set register_type method.
2932
3993f6b1
DJ
29332003-06-15 Daniel Jacobowitz <drow@mvista.com>
2934
2935 * Makefile.in (linux-nat.o): Add rule.
2936 * linux-nat.c: New file.
2937 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2938 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2939 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2940 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2941 * config/arm/linux.mh (NATDEPFILES): Likewise.
2942 * config/i386/linux.mh (NATDEPFILES): Likewise.
2943 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2944 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2945 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2946 * config/mips/linux.mh (NATDEPFILES): Likewise.
2947 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2948 * config/s390/s390.mh (NATDEPFILES): Likewise.
2949 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2950
786a90bb
MK
29512003-06-15 Mark Kettenis <kettenis@gnu.org>
2952
2953 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2954 replace out-of-date comment.
2955
3bd3f01e
AC
29562003-06-15 Andrew Cagney <cagney@redhat.com>
2957
2958 * rdi-share/host.h (Fail): Change to a varargs function.
2959 * remote-rdi.c (Fail): Update.
8ffd9b1b 2960
de5b9bb9
MK
29612003-06-15 Mark Kettenis <kettenis@gnu.org>
2962
2963 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2964 (i386_convert_register_p, i386_register_to_value,
2965 i386_register_from_value): Handle types longer than 8 bytes.
2966
d532c08f
MK
29672003-06-15 Mark Kettenis <kettenis@gnu.org>
2968
2969 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2970 Move floating-point code to new function in i387-tdep.c.
2971 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2972 New functions containing code moved here from i386-tdep.c.
2973 * i387-tdep.h: Add opaque declaration for `struct type'.
2974 (i387_register_to_value, i387_value_to_register): New prototypes.
2975 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2976 (x86_64_init_abi): Set convert_register_p, register_to_value and
2977 value_to_register here.
8ffd9b1b 2978
42c466d7
AC
29792003-06-14 Andrew Cagney <cagney@redhat.com>
2980
2981 * mips-tdep.c (mips_register_to_value): Make static.
2982 (mips_value_to_register): Make static.
2983 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2984 * ia64-tdep.c (ia64_register_raw_size): Make static.
2985 (ia64_register_virtual_size): Make static.
2986 (ia64_register_byte): Make static.
2987 * i387-tdep.c: Include "i387-tdep.h".
2988 (print_387_control_word): Delete function.
2989 (print_387_status_word): Delete function.
2990 (print_387_status_bits): Delete function.
2991 (print_387_control_bits): Delete function.
2992 * Makefile.in (i387-tdep.o): Update dependencies.
2993 * rdi-share/host.h (Fail): Declare.
2994 * remote-rdi.c (Fail): Update to match declaration.
2995
2a9cda49
AC
29962003-06-14 Andrew Cagney <cagney@redhat.com>
2997
2998 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2999 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3000 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3001 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3002 * README: Delete reference to remote-array.
3003 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3004 (remote-array.o): Delete target.
3005 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3006 * remote-array.c: Delete file.
3007
ff2e87ac
AC
30082003-06-14 Andrew Cagney <cagney@redhat.com>
3009 Mark Kettenis <kettenis@gnu.org>
3010
3011 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3012 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3013 parameter with "frame".
3014 * gdbarch.h, gdbarch.c: Re-generate.
3015 * frame.h (put_frame_register): Declare.
3016 * frame.c (put_frame_register): New function.
3017 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3018 (legacy_register_to_value): Rewrite, use "frame" to get the
3019 register value.
3020 (legacy_value_to_register): Rewrite, use "frame" to find the
3021 register's location before storing.
3022 * arch-utils.h (legacy_convert_register_p): Update.
3023 (legacy_register_to_value, legacy_value_to_register): Update.
3024 * findvar.c (value_from_register): Rewrite, eliminate use of
3025 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3026 "frame" to REGISTER_TO_VALUE.
3027 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3028 lval_reg_frame_relative + lval_register branch of the switch. Do
3029 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3030 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3031 I386_EDI_REGNUM): New defines.
3032 (i386_next_regnum, i386_convert_register_p,
3033 i386_register_to_value, i386_value_to_register): New functions.
3034 (i386_register_convertible, i386_register_convert_to_virtual,
3035 i386_convert_to_raw): Remove functions.
3036 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3037 value_to_register instead of register_convertible,
3038 register_convert_to_virtual and register_convert_to_raw.
3039 * mips-tdep.c (mips_convert_register_p): New function.
3040 (mips_value_to_register): Replace mips_register_convert_from_type.
3041 (mips_register_to_value): Replace mips_register_convert_to_type.
3042 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3043 register_to_value.
3044 * alpha-tdep.c (alpha_convert_register_p): Update.
3045 (alpha_value_to_register): Update, store the register.
3046 (alpha_register_to_value): Update, fetch the register.
3047
98be1e77
TR
30482003-06-14 Theodore A. Roth <troth@openavr.org>
3049
3050 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3051 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3052 Don't set deprecated_call_dummy_words.
3053 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3054 Don't set remote_translate_xfer_address.
3055 (avr_io_reg_read_command): Remove commented out debug printf.
3056 Wrap a long line.
3057
57bc6122
TR
30582003-06-14 Theodore A. Roth <troth@openavr.org>
3059
3060 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3061 causes gdb to seg fault.
3062
eb01fc62
DJ
30632003-06-14 Daniel Jacobowitz <drow@mvista.com>
3064
3065 * sparc-nat.c (fetch_inferior_registers): Correct
3066 a reference to "registers".
3067
3b3e6bee
DJ
30682003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3069
3070 * Makefile.in (exc_request_U_h): Define
3071 (exc_request_S_h): Likewise.
3072 (msg_reply_S_h): Likewise.
3073 (msg_U_h): Likewise.
3074 (notify_S_h): Likewise.
3075 (process_reply_S_h): Likewise.
3076 (gnu-nat.o): Depend on gdb_obstack_h
3077 * gnu-nat.c: Include "gdb_obstack.h".
3078
b8de8283
AC
30792003-06-13 Andrew Cagney <cagney@redhat.com>
3080
3081 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3082 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 3083
f3be58bc
AC
30842003-06-13 Andrew Cagney <cagney@redhat.com>
3085
3086 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3087 when deprecated REGISTER macros can be deleted.
3088 * gdbarch.h, gdbarch.c: Re-generate.
3089
4c0122c8
JB
30902003-06-13 Jim Blandy <jimb@redhat.com>
3091
3092 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3093 Linux entry point symbols for _dl_debug_state, too.
3094
3e210248
AC
30952003-06-13 Andrew Cagney <cagney@redhat.com>
3096
3097 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3098 available, do not use the FP register, and always save the TOS.
3099 * dummy-frame.c (dummy_frame_this_id): Do not assert
3100 SAVE_DUMMY_FRAME_TOS.
3101 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3102 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3103 (i386_push_dummy_call): Add 8 to the returned SP.
3104 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3105 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3106 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3107 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3108 (x86_64_push_dummy_call): Return "sp + 16".
3109 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3110 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3111 save_dummy_frame_tos.
3112
0b65af49
JB
31132003-06-13 Jim Blandy <jimb@redhat.com>
3114
3115 * frv-tdep.c (frv_use_struct_convention): Delete static
3116 declaration for function deleted in my change of 2003-06-12.
3117
4ea2465e
TR
31182003-06-13 Theodore A. Roth <troth@openavr.org>
3119
3120 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3121 (avr_pointer_to_address): Shift code addrs left 1 bit.
3122 (avr_convert_from_func_ptr_addr): Delete function since operation is
3123 better handled by avr_address_to_pointer and avr_pointer_to_address.
3124 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3125
1581182a
MK
31262003-06-13 Mark Kettenis <kettenis@gnu.org>
3127
3128 From Kelley Cook <kelleycook@wideopenwest.com>:
3129 * configure.host: Accept i[34567]86 variants.
3130 * configure.tgt: Likewise.
3131 * nlm/configure.in: Likewise.
3132 * nlm/configure: Regenerated.
3133
7aa1783e
RE
31342003-06-13 Richard Earnshaw <rearnsha@arm.com>
3135
3136 * arm-tdep.c (solib-svr4.h): Dont' include it.
3137 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3138 * arm-linux-tdep.c: ... here. Make static.
3139 (arm_linux_init_abi): Register it.
3140 (solib-svr4.h): Include it.
3141 * Makefile.in: Update dependencies.
3142 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3143 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3144
0261a0d0
CV
31452003-06-13 Corinna Vinschen <vinschen@redhat.com>
3146
3147 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3148 indicate registers used for return values.
3149 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3150 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3151 members.
3152 (h8300_init_extra_frame_info): Ditto.
3153 (h8300_frame_locals_address): Removed.
3154 (h8300_frame_args_address): Removed.
3155 (h8300_extract_return_value): Use new regcache structure. Only care
3156 for 16 bit CPUs.
3157 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3158 (h8300_store_return_value): Use new regcache structure. Only care
3159 for 16 bit CPUs.
3160 (h8300h_store_return_value): Same function for 32 bit CPUs.
3161 (h8300_store_struct_return): Removed.
3162 (h8300_extract_struct_value_address): Use new regcache structure.
3163 (h8300h_extract_struct_value_address): Removed.
3164 (h8300_push_dummy_code): New function.
3165 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3166 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3167 set_gdbarch_store_return_value architecture dependent.
3168 Call set_gdbarch_push_dummy_code and
3169 set_gdbarch_extract_struct_value_address.
3170 Remove calls to set_gdbarch_frame_args_address,
3171 set_gdbarch_frame_locals_address,
3172 set_gdbarch_deprecated_store_struct_return,
3173 set_gdbarch_deprecated_extract_return_value,
3174 set_gdbarch_deprecated_extract_struct_value_address,
3175 set_gdbarch_deprecated_call_dummy_words and
3176 set_gdbarch_deprecated_sizeof_call_dummy_words.
3177
055c394a
CV
31782003-06-13 Corinna Vinschen <vinschen@redhat.com>
3179
3180 * h8300-tdep.c (h8300_register_byte): Remove.
3181 (h8300h_register_byte): Remove.
3182 (h8300_register_virtual_type): Remove. Substitute by...
3183 (h8300_register_type): New function.
3184 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3185 (h8300h_extract_struct_value_address): Ditto.
3186 (h8300_gdbarch_init): Drop calls to
3187 set_gdbarch_deprecated_register_byte and
3188 set_gdbarch_deprecated_register_virtual_type.
3189 Add call to set_gdbarch_register_type.
3190
9c04cab7
AC
31912003-06-13 Andrew Cagney <cagney@redhat.com>
3192
3193 * gdbarch.sh: Update comments on registers.
3194 (deprecated_register_byte): Rename register_byte.
3195 (deprecated_register_raw_size): Rename register_raw_size.
3196 (deprecated_register_virtual_size): Rename register_virtual_size.
3197 (deprecated_register_virtual_type): Rename register_virtual_type.
3198 * gdbarch.h, gdbarch.c: Re-generate.
3199 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3200 * vax-tdep.c (vax_gdbarch_init): Update.
3201 * v850-tdep.c (v850_gdbarch_init): Update.
3202 * sparc-tdep.c (sparc_gdbarch_init): Update.
3203 * sh-tdep.c (sh_gdbarch_init): Update.
3204 * s390-tdep.c (s390_gdbarch_init): Update.
3205 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3206 * ns32k-tdep.c: Update.
3207 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3208 * mips-tdep.c (mips_gdbarch_init): Update.
3209 * mcore-tdep.c (mcore_gdbarch_init): Update.
3210 * m68k-tdep.c (m68k_gdbarch_init): Update.
3211 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3212 * ia64-tdep.c (ia64_gdbarch_init): Update.
3213 * hppa-tdep.c (hppa_gdbarch_init): Update.
3214 * h8300-tdep.c (h8300_gdbarch_init): Update.
3215 * frv-tdep.c (frv_gdbarch_init): Update.
3216 * cris-tdep.c (cris_gdbarch_init): Update.
3217 * avr-tdep.c (avr_gdbarch_init): Update.
3218 * alpha-tdep.c (alpha_gdbarch_init): Update.
3219 * arm-tdep.c (arm_gdbarch_init): Update.
3220
b060cbea
AC
32212003-06-13 Andrew Cagney <cagney@redhat.com>
3222
3223 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3224 mips_o32_use_struct_convention with always_use_struct_convention.
3225
0fc9922a
DC
32262003-06-12 David Carlton <carlton@kealia.com>
3227
3228 * cp-namespace.c (cp_set_block_scope): Comment out
3229 processing_has_namespace_info branch.
3230
1fd35568
JB
32312003-06-12 Jim Blandy <jimb@redhat.com>
3232
f470a70a
JB
3233 Recognize and skip 64-bit PowerPC Linux linkage functions.
3234 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3235 insn_pattern, insns_match_pattern, d_field, ds_field): New
3236 functions, macros, and types for working with PPC instructions.
3237 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3238 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3239 ppc64_skip_trampoline_code): New functions, variables, and macros
3240 for recognizing and skipping linkage functions.
3241 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3242 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3243
49ff75ad
JB
3244 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3245 register offsets for both the 32- and 64-bit interfaces.
3246
bd918c83
JB
3247 Actually finish the job started by my change of 2003-05-29.
3248 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3249 other #definition of this.
3250 (ppc_linux_skip_trampoline_code): Remove declaration.
3251 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3252 static.
3253 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3254 method for GDBARCH.
3255
3256 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3257 'long' on ppc64-*-linux*.
3258
f8c59253
JB
3259 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3260 isn't #defined, assume the register doesn't exist: act as if
3261 tdep->ppc_mq_regnum were -1.
3262
8fbb30b1
JB
3263 * configure.host, configure.tgt: Add entries for
3264 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3265 powerpc/linux.mt.
3266 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3267 New files.
3268
1fd35568
JB
3269 * arch-utils.c (always_use_struct_convention): New function.
3270 * arch-utils.h (always_use_struct_convention): New prototype.
3271 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3272 (alpha_gdbarch_init): Register always_use_struct_convention,
3273 instead of alpha_use_struct_convention.
3274 * cris-tdep.c (cris_use_struct_convention): Delete.
3275 (cris_gdbarch_init): Register always_use_struct_convention,
3276 instead of cris_use_struct_convention.
3277 * frv-tdep.c (frv_use_struct_convention): Delete.
3278 (frv_gdbarch_init): Register always_use_struct_convention,
3279 instead of frv_use_struct_convention.
3280 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3281 (h8300_gdbarch_init): Register always_use_struct_convention,
3282 instead of h8300_use_struct_convention.
e3305dd9 3283 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
3284 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3285 instead of mips_o32_use_struct_convention.
3286
e14e6e9c
AC
32872003-06-12 Andrew Cagney <cagney@redhat.com>
3288
3289 * wince.c: Include "mips-tdep.h".
3290 * mips-tdep.h (mips_next_pc): Declare.
3291 * mcore-tdep.c: Make more local functions static.
3292 * Makefile.in (wince.o): Update dependencies.
3293
2335f48e
DC
32942003-06-12 David Carlton <carlton@kealia.com>
3295
3296 * symtab.c (lookup_symbol_aux_minsyms): Replace
3297 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3298 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3299 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3300 SYMBOL_NATURAL_NAME.
3301
f70a7d61
AS
33022003-06-12 Andreas Schwab <schwab@suse.de>
3303
3304 * Makefile.in (tuiDisassem.o): Update dependencies.
3305
b6429628
DC
33062003-06-12 David Carlton <carlton@bactrian.org>
3307
3308 * symtab.h: Delete declaration of make_symbol_overload_list.
3309 Add declaration of lookup_partial_symbol.
3310 * symtab.c (remove_params): Move to cp-support.c.
3311 (overload_list_add_symbol, make_symbol_overload_list)
3312 (sym_return_val_size, sym_return_val_index): Ditto.
3313 (lookup_partial_symbol): Make extern.
3314 * cp-support.h: Add declaration of make_symbol_overload_list.
3315 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3316 symtab.h, and block.h.
3317 (remove_params): Move here from symtab.c.
3318 (overload_list_add_symbol, make_symbol_overload_list)
3319 (sym_return_val_size, sym_return_val_index): Ditto.
3320 * valops.c: Include cp-support.h.
3321 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3322 frame_h, and block_h.
3323 (valops.o): Depend on cp_support_h.
3324
084edea5
CV
33252003-06-12 Corinna Vinschen <vinschen@redhat.com>
3326
3327 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3328 substitute by NUM_REGS throughout.
3329 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3330 (h8300s_register_name): New function for H8S registers.
3331 (h8300sx_register_name): Ditto for H8SX registers.
3332 (h8300_print_register): Revise register printing, avoid depending
3333 on 32 bit long.
0261a0d0 3334 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
3335 (h8300h_register_byte): New function for any other architecture.
3336 (h8300_register_raw_size): Remove.
3337 (h8300_register_virtual_type): Revise to return actually useful
3338 type.
3339 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3340 (h8300h_extract_struct_value_address): New function for any other
3341 architecture.
3342 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3343 set_gdbarch_register_name, set_gdbarch_register_byte,
3344 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3345 Remove calls to set_gdbarch_deprecated_register_size,
3346 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3347 set_gdbarch_deprecated_max_register_raw_size,
3348 set_gdbarch_register_virtual_size and
3349 set_gdbarch_deprecated_max_register_virtual_size entirely.
3350 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3351 set_gdbarch_long_double_bit.
3352
06194148
JJ
33532003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3354
8ffd9b1b
AJ
3355 * doublest.c (convert_doublest_to_floatformat): When dealing
3356 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
3357 processing a full 32 bits of mantissa.
3358
de4f826b
DC
33592003-06-11 David Carlton <carlton@bactrian.org>
3360
3361 * dictionary.h: New.
3362 * dictionary.c: New.
3363 * block.h: Add opaque declaration for struct dictionary.
3364 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3365 'sym' members.
3366 (BLOCK_DICT): New macro.
3367 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3368 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3369 BLOCK_SHOULD_SORT.
3370 (ALL_BLOCK_SYMBOLS): Update definition.
3371 * Makefile.in (SFILES): Add dictionary.c.
3372 (dictionary_h): New.
3373 (COMMON_OBS): Add dictionary.o.
3374 (dictionary.o): New.
3375 (ada-lang.o): Depend on dictionary_h.
3376 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3377 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3378 (mi-cmd-stack.o): Ditto.
3379 (gdbtk-cmds.o): Update dependencies.
3380 (gdbtk-stack.o): Ditto.
3381 * ada-lang.c: Include dictionary.h.
3382 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3383 (fill_in_ada_prototype, debug_print_block): Ditto.
3384 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3385 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3386 'is_sorted'.
3387 * mdebugread.c: Include dictionary.h.
3388 (struct parse_stack): Delete 'maxsyms' member.
3389 (parse_symbol): Update calls to new_block. Delete calls to
3390 shrink_block. Use dictionary methods.
3391 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3392 Update calls to new_symtab. Don't maintain maxsyms data.
3393 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3394 (add_symbol): Just call dict_add_symbol.
3395 (new_symtab): Delete 'maxsyms' argument.
3396 (new_symtab): Update calls to new_block.
3397 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3398 (shrink_block): Delete function.
3399 (fixup_sigtramp): Update call to new_block. Add symbol via
3400 dict_add_symbol.
3401 * jv-lang.c: Include dictionary.h.
3402 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3403 appropriately. Set class_symtab->free_func. Make sure the
3404 blockvector is big enough to hold two blocks.
3405 (add_class_symtab_symbol): Use dictionary methods.
3406 (free_class_block): New function.
3407 (type_from_class): Replace explicit iteration by
3408 ALL_BLOCK_SYMBOLS.
3409 * symtab.h (struct symtab): Replace 'free_ptr' method by
3410 'free_func'.
3411 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3412 sort_symtab_syms.
3413 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3414 sort_symtab_syms.
3415 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3416 Include dictionary.h.
3417 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3418 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3419 sort_symtab_syms.
3420 * objfiles.c: Include dictionary.h.
3421 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3422 * buildsym.c: Include dictionary.h.
3423 (finish_block): Use dictionary methods.
3424 (end_symtab): Set free_func to NULL, not free_ptr.
3425 * tracepoint.c: Include dictionary.h.
3426 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3427 (scope_info): Ditto.
3428 * stack.c: Include dictionary.h.
3429 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3430 (print_block_frame_labels, print_frame_arg_vars)
3431 (print_frame_args): Ditto.
3432 * symmisc.c (free_symtab_block): Use dictionary methods.
3433 (dump_symtab): Ditto.
3434 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3435 Include dictionary.h.
3436 * symfile.h: Delete declarations of sort_block_syms,
3437 sort_symtab_syms.
3438 * symfile.c (sort_block_syms): Delete.
3439 (sort_symtab_syms): Delete.
3440 * symtab.c: Include dictionary.h.
3441 (lookup_block_symbol): Use dictionary iterators.
3442 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3443 (search_symbols, make_symbol_completion_list): Ditto.
3444 (make_symbol_overload_list): Ditto.
3445 * valops.c (value_of_local): Use dict_empty.
3446 Include dictionary.h.
3447
a31f978c
JB
34482003-06-11 J. Brobecker <brobecker@gnat.com>
3449
3450 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3451
526e70c0
DC
34522003-06-11 David Carlton <carlton@bactrian.org>
3453
3454 * block.h (BLOCK_SHOULD_SORT): Delete.
3455 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3456 blocks.
3457 * ada-lang.c (ada_add_block_symbols): Ditto.
3458 * symfile.c (sort_block_syms): Delete.
3459 (sort_symtab_syms): Ditto.
3460 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3461 declarations.
3462 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3463 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3464 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3465 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3466 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3467 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3468 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3469
33c08150
JJ
34702003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3471
8ffd9b1b 3472 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
3473 bits to 128.
3474
781a750d
AC
34752003-06-11 Andrew Cagney <cagney@redhat.com>
3476
3477 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3478 REGISTER_CONVERTIBLE.
3479 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3480 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3481 * gdbarch.h, gdbarch.c: Re-generate.
3482 * arch-utils.h (deprecated_register_convertible_not): Rename
3483 generic_register_convertible_not.
3484 * arch-utils.c (deprecated_register_convertible_not): Rename
3485 generic_register_convertible.
3486 (legacy_convert_register_p, legacy_register_to_value): Update.
3487 * sh-tdep.c (sh64_push_arguments): Update.
3488 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3489 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3490 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3491 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3492 * arch-utils.c (legacy_value_to_register): Update.
3493 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3494 (rs6000_register_convert_to_raw): Make parameter "from" const.
3495 * mips-tdep.c (mips_gdbarch_init): Update.
3496 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3497 * infcmd.c (default_print_registers_info): Update.
3498 * ia64-tdep.c (ia64_gdbarch_init): Update.
3499 (ia64_register_convert_to_raw): Make parameter "from" const.
3500 * i386-tdep.c (i386_gdbarch_init): Update.
3501 (i386_register_convert_to_raw): Update.
3502
cd90e54f
AC
35032003-06-11 Andrew Cagney <cagney@redhat.com>
3504
3505 * remote-fileio.c: Include "remote-fileio.h".
3506 * Makefile.in (remote-fileio.o): Update dependencies.
3507 (remote_fileio_h): Fix typo.
3508
a78f21af
AC
35092003-06-11 Andrew Cagney <cagney@redhat.com>
3510
3511 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3512 (xstormy16_save_dummy_frame_tos): Make static.
3513 (_initialize_xstormy16_tdep): Add declaration.
3514 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3515 * v850-tdep.c: Make local functions static.
3516 (_initialize_v850_tdep): Add declaration.
3517 * sparc-tdep.c: Make local functions static.
3518 (_initialize_sparc_tdep): Add declaration.
3519 * sh-tdep.c: Make local functions static.
3520 (_initialize_sh_tdep): Add declaration.
3521 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3522 * s390-tdep.c: Make local functions static.
3523 (_initialize_s390_tdep): Add declaration.
3524 * dbxread.c (find_stab_function_addr): Make static.
3525 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3526 * ocd.c (_initialize_remote_ocd): Add declaration.
3527 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3528 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3529 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3530 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3531 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3532 * remote-array.c (_initialize_array): Add declaration.
3533 (_initialize_remote_monitors): Add declaration.
3534 * remote-mips.c: Make local functions static.
3535 (_initialize_remote_mips): Add declaration.
3536 * mcore-tdep.c: Make all local functions static.
3537 (_initialize_mcore_tdep): Add declaration.
3538 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3539 * abug-rom.c (_initialize_abug_rom): Add declaration.
3540 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3541 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3542 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3543 * remote-est.c (_initialize_est): Add declaration.
3544 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3545 (m68hc11_call_dummy_address): Make static.
3546 * ia64-tdep.c: Make local functions static.
3547 (_initialize_ia64_tdep): Add declaration.
3548 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3549 * monitor.c (monitor_wait_filter): Make static.
3550 (_initialize_remote_monitors): Add declaration.
3551 * remote-hms.c (_initialize_remote_hms): Add declaration.
3552 * remote-e7000.c (fetch_regs_from_dump): Make static.
3553 (expect_n): Make static.
3554 (_initialize_remote_e7000): Add declaration.
3555 * ser-e7kpc.c: Always include "defs.h".
3556 (_initialize_ser_e7000pc): Add declaration.
3557 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3558 * cris-tdep.c: Make all but one function static.
3559 (_initialize_cris_tdep): Add declaration.
3560 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3561 * solib.c (update_solib_list): Make static.
3562 (_initialize_solib): Add declaration.
3563 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3564 (_initialize_avr_tdep): Add declaration.
3565 * remote-rdi.c (voiddummy): Make static.
3566 (_initialize_remote_rdi): Add declaration.
3567 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3568 * remote-rdp.c (send_rdp): Make static.
3569 (_initialize_remote_rdp): Add declaration.
3570 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3571
cbcdb1f5
CV
35722003-06-11 Corinna Vinschen <vinschen@redhat.com>
3573
3574 * remote-fileio.c: Make ari happy.
3575
a191ea8d
JB
35762003-06-10 J. Brobecker <brobecker@gnat.com>
3577
3578 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3579 fetching the trailing bytes of the buffer we are about to write.
3580
0ef75e11
AC
35812003-06-10 Andrew Cagney <cagney@redhat.com>
3582
3583 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3584 * Makefile.in (remote-fileio.o): Update dependencies.
3585 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3586 include <setjmp.h>, or <sys/types.h> conditional on USG.
3587 (remote_fio_jmp_buf): Delete global variable.
3588
449092f6 35892003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 3590 Martin M. Hunt <hunt@redhat.com>
449092f6 3591
559fa028
AC
3592 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3593 (SFILES): Add remote-fileio.c.
3594 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3595 dependencies for building remote.o.
449092f6
CV
3596 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3597 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 3598 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
3599 static storage class.
3600 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3601 'F' packet.
3602 (_initialize_remote): Call initialize_remote_fileio().
3603 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
3604 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3605 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3606 (captured_main): Initialize new ui_files.
3607 * ui-file.c: Add read and fgets input functions.
3608 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3609 (null_file_read): New function.
3610 (ui_file_read): New function.
3611 (set_ui_file_read): New function.
3612 (stdio_file_read): New function.
3613 * ui-file.h: New type ui_file_read_ftype.
3614 (set_ui_file_read): Declare.
3615 (ui_file_read): Declare.
3616
248de703
AC
36172003-06-09 Andrew Cagney <cagney@redhat.com>
3618
3619 * frame.h (deprecated_unwind_get_saved_register): Rename
3620 generic_unwind_get_saved_register, update comments.
3621 * mips-tdep.c (mips_get_saved_register): Update.
3622 * frame.c (deprecated_unwind_get_saved_register): Update.
3623
0ed8aa57
AC
36242003-06-09 Andrew Cagney <cagney@redhat.com>
3625
3626 * vax-tdep.c (vax_frame_locals_address): Delete function.
3627 (vax_gdbarch_init): Do not set frame_locals_address.
3628 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3629 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3630 * s390-tdep.c (s390_frame_args_address): Delete function.
3631 (s390_gdbarch_init): Do not set frame_args_address or
3632 frame_locals_address.
3633 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3634 (ns32k_gdbarch_init): Do not set frame_locals_address.
3635 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3636 (hppa_frame_locals_address): Delete function.
3637 (hppa_gdbarch_init): Do not set frame_args_address, or
3638 frame_locals_address.
3639 * arm-tdep.c (arm_frame_args_address): Delete.
3640 (arm_frame_locals_address): Delete.
3641 (arm_gdbarch_init): Do not set frame_args_address, or
3642 frame_locals_address.
3643
983a287a
AC
36442003-06-09 Andrew Cagney <cagney@redhat.com>
3645
3646 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3647 * gdbarch.h, gdbarch.c: Re-generate.
3648 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3649 * arch-utils.c (frame_num_args_unknown): Delete function.
3650 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3651 (frame_info): Use FRAME_NUM_ARGS_P.
3652 * arm-tdep.c (arm_frame_num_args): Delete function.
3653 (arm_gdbarch_init): Do not set frame_num_args.
3654 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3655 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3656 (hppa_gdbarch_init): Do not set frame_num_args.
3657 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3658 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3659 frame_num_args to default frame_num_args_unknown.
3660 * v850-tdep.c (v850_gdbarch_init): Ditto.
3661 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3662 * sh-tdep.c (sh_gdbarch_init): Ditto.
3663 * s390-tdep.c (s390_gdbarch_init): Ditto.
3664 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3665 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3666 * mips-tdep.c (mips_gdbarch_init): Ditto.
3667 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3668 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3669 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3670 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3671 * i386-tdep.c (i386_gdbarch_init): Ditto.
3672 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3673 * frv-tdep.c (frv_gdbarch_init): Ditto.
3674 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3675 * cris-tdep.c (cris_gdbarch_init): Ditto.
3676 * avr-tdep.c (avr_gdbarch_init): Ditto.
3677 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3678
8d3b0994
AC
36792003-06-09 Andrew Cagney <cagney@redhat.com>
3680
3681 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3682 (print_frame_args): Moved to "stack.c".
3683 * stack.c: Include "gdb_assert.h".
3684 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3685 (print_frame_args): Moved from "printcmd.c".
3686 * frame.h (print_frame_args): Delete declaration.
3687 * Makefile.in (stack.o): Update dependencies.
3688
25e3a86b
AC
36892003-06-08 Andrew Cagney <cagney@redhat.com>
3690
3691 * frame.c (get_prev_frame): Remove reference to
3692 frame_args_address_correct in comments.
3693 * frame-base.c (default_frame_args_address): Delete code
3694 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3695 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3696 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3697 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3698 (vax_frame_args_address_correct): Delete declaration.
3699
a9e5fdc2
AC
37002003-06-08 Andrew Cagney <cagney@redhat.com>
3701
3702 * gdbarch.sh (UNWIND_SP): Add.
3703 * gdbarch.h, gdbarch.c: Re-generate.
3704 * frame.c (frame_sp_unwind): New function.
3705 (get_frame_sp): New function.
3706 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3707 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3708 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3709 value.
3710 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3711 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3712
8983bd83
AC
37132003-06-08 Andrew Cagney <cagney@redhat.com>
3714
7fec2c59
AC
3715 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3716 REMOTE_BREAKPOINT.
3717 * remote.c: Update.
3718 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3719 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3720 * config/m68k/tm-sun3.h: Update.
3721 * config/m68k/tm-m68klynx.h: Update.
3722 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3723
8983bd83
AC
3724 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3725 trad_frame". Update comments.
3726 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3727 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3728 (trad_frame_register_value, trad_frame_prev_register): Update.
3729
b9362cc7
AC
37302003-06-08 Andrew Cagney <cagney@redhat.com>
3731
3732 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3733 from GCC's acinclude.m4.
3734 * configure.in: Check for getopt's delcaration.
8ffd9b1b 3735 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
3736 * main.c (error_init): Delete declaration.
3737 * defs.h (error_init): Declare.
3738 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3739 (rs6000_convert_from_func_ptr_addr): Make static.
3740 (_initialize_rs6000_tdep): Add declaration.
3741 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3742 (show_commands, set_verbose, show_history): Delete declaration.
3743 * top.h (set_verbose): Add declaration.
3744 (show_history, set_history, show_commands): Add declaration.
3745 (do_restore_instream_cleanup): Add declaration.
3746 * objc-lang.c (specialcmp): Make static.
3747 (print_object_command): Make static.
3748 (find_objc_msgsend): Make static.
3749 (find_objc_msgcall_submethod_helper): Make static.
3750 (find_objc_msgcall_submethod): Make static.
3751 (_initialize_objc_language): Add declaration.
3752 (find_implementation_from_class): Make static.
3753 (find_implementation): Make static.
3754 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3755 * objc-lang.h (lookup_struct_typedef): Add declaration.
3756 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3757 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3758 (do_restore_user_call_depth): Make static.
3759 (do_restore_instream_cleanup): Delete declaration.
3760 (dont_repeat): Delete declaration.
3761 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3762 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3763 * reggroups.c (_initialize_reggroup): Add declaration.
3764 * cp-support.c (_initialize_cp_support): Add declaration.
3765 * cp-abi.c (_initialize_cp_abi): Add declaration.
3766 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3767 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3768 (_initialize_gnu_v3_abi): Add declaration.
3769 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3770 (_initialize_gnu_v2_abi): Add declaration.
3771 * frame-base.c (_initialize_frame_base): Add declaration.
3772 * doublest.c (floatformat_from_length): Make static.
3773 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3774 * frame.c (create_sentinel_frame): Make static.
3775 (_initialize_frame): Add declaration.
3776 * top.c (do_catch_errors): Make static.
3777 (gdb_rl_operate_and_get_next_completion): Make static.
3778 * typeprint.c: Include "typeprint.h".
3779 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3780 (sentinel_frame_this_id): Make static.
3781 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3782 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3783 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3784 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3785 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3786 * maint.c (maintenance_print_architecture): Make static.
3787 * signals/signals.c (_initialize_signals): Add declaration.
3788 * std-regs.c (_initialize_frame_reg): Add declaration.
3789 * jv-exp.y (push_variable): ISO C definition.
3790 (push_qualified_expression_name): Ditto.
3791 * memattr.c (_initialize_mem): Add declaration.
3792 * remote.c (remote_check_watch_resources): Make static.
3793 (remote_stopped_by_watchpoint): Make static.
3794 (remote_stopped_data_address): Make static.
3795 * d10v-tdep.c (nr_dmap_regs): Make static.
3796 (a0_regnum): Make static.
3797 (d10v_frame_unwind_cache): Make static.
3798 (d10v_frame_p): Make static.
3799 * osabi.c (show_osabi): Make static.
3800 (_initialize_gdb_osabi): Add extern declaration.
3801 * gdbtypes.c (make_qualified_type): Make static.
3802 (safe_parse_type): Make static.
3803 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3804 * macrotab.c (macro_bcache_free): Make static.
3805 * interps.c (interp_set_quiet): Make static.
3806 (interpreter_exec_cmd): Make static.
3807 * stack.h (select_frame_command): New file.
3808 * stack.c: Include "stack.h".
3809 (select_frame_command_wrapper): Delete function.
3810 (select_frame_command): Make global.
3811 * infcall.c: Include "infcall.h".
3812 * linespec.c: Include "linespec.h".
3813 * symfile.c (sections_overlap): Make static.
3814 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3815 * charset.c (_initialize_charset): Add missing prototype.
3816 * regcache.c (init_legacy_regcache_descr): Make static.
3817 (do_regcache_xfree): Make static.
3818 (regcache_xfer_part): Make static.
3819 (_initialize_regcache): Add missing prototype.
3820 * breakpoint.c (parse_breakpoint_sals): Make static.
3821 (breakpoint_sals_to_pc): Make static.
3822 * interps.h (clear_interpreter_hooks): ISO C declaration.
3823 * Makefile.in (stack_h): Define.
3824 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3825 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3826
a0f267c7
AC
38272003-06-08 Andrew Cagney <cagney@redhat.com>
3828
3829 * Makefile.in (d10v-tdep.o): Update dependencies.
3830 (SFILES): Add trad-frame.c.
3831 (trad_frame_h): Define.
3832 (COMMON_OBS): Add trad-frame.o.
3833 (trad-frame.o): Specify dependencies.
3834 * d10v-tdep.c: Include "trad-frame.h".
3835 (saved_regs_unwinder): Delete function.
3836 (d10v_frame_prev_register): Use trad_frame_prev_register.
3837 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3838 trad_frame", delete "regs" and "prev_sp".
3839 (prologue_find_regs): Use trad-frame.
3840 * trad-frame.h, trad-frame.c: New files.
3841
4538b4f4
MK
38422003-06-08 Mark Kettenis <kettenis@gnu.org>
3843
3844 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3845
a0273b2f
AF
38462003-06-07 Adam Fedor <fedor@gnu.org>
3847
3848 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3849 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3850 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3851 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 3852 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
3853 Use it.
3854
3a6c3343
AC
38552003-06-07 Andrew Cagney <cagney@redhat.com>
3856
3857 * symfile.h: Re-indent, clean up comments.
3858
b46e02f6
AC
38592003-06-07 Andrew Cagney <cagney@redhat.com>
3860
3861 * inferior.h (deprecated_write_sp): Replace
3862 generic_target_write_sp.
3863 * regcache.c (deprecated_write_sp): Replace
3864 generic_target_write_sp.
3865 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3866 * vax-tdep.c (vax_gdbarch_init): Update.
3867 * v850-tdep.c (v850_gdbarch_init): Update.
3868 * sparc-tdep.c (sparc_gdbarch_init): Update.
3869 * sh-tdep.c (sh_gdbarch_init): Update.
3870 * s390-tdep.c (s390_gdbarch_init): Update.
3871 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3872 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3873 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3874 * mcore-tdep.c (mcore_gdbarch_init): Update.
3875 * m68k-tdep.c (m68k_gdbarch_init): Update.
3876 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3877 * ia64-tdep.c (ia64_gdbarch_init): Update.
3878 * h8300-tdep.c (h8300_gdbarch_init): Update.
3879 * frv-tdep.c (frv_gdbarch_init): Update.
3880 * cris-tdep.c (cris_gdbarch_init): Update.
3881 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3882
a42e117c
AC
38832003-06-07 Andrew Cagney <cagney@redhat.com>
3884
3885 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3886 Assert that PC_REGNUM is valid.
3887 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3888
bd1ce8ba
AC
38892003-06-07 Andrew Cagney <cagney@redhat.com>
3890
3891 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3892 * gdbarch.h, gdbarch.c: Regenerate.
3893 * mn10300-tdep.c: Include "gdb_assert.h".
3894 (mn10300_read_fp): New function.
3895 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3896 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3897 * ia64-tdep.c: Include "gdb_assert.h".
3898 (ia64_read_fp): New function.
3899 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3900 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3901 * regcache.c (generic_target_read_sp): Delete function.
3902 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3903 * inferior.h (generic_target_read_sp): Delete declaration.
3904 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3905 generic_target_read_sp.
3906 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3907 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3908 * sh-tdep.c (sh_gdbarch_init): Ditto.
3909 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3910 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3911
ec5cbaec
AC
39122003-06-07 Andrew Cagney <cagney@redhat.com>
3913
3914 * gdbarch.sh: Comment each field of startup_gdbarch.
3915 * gdbarch.h, gdbarch.c: Re-generate.
3916
cde9ea48
AC
39172003-06-07 Andrew Cagney <cagney@redhat.com>
3918
3919 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3920 * gdbarch.h, gdbarch.c: Re-generate.
3921 * regcache.c: Update comments on read_pc et.al.
3922 (generic_target_read_pc): Delete function.
3923 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3924 * inferior.h (generic_target_read_pc): Delete declaration.
3925 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3926 generic_target_read_pc.
3927 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3928 * sh-tdep.c (sh_gdbarch_init): Ditto.
3929 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3930 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 3931
9a90a780
AC
39322003-06-07 Andrew Cagney <cagney@redhat.com>
3933
3934 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3935 "index" with "special_local_sect". Use strcmp instead of STREQ.
3936 Append period to coments.
3937
a39a16c4
MM
39382003-06-06 Mark Mitchell <mark@codesourcery.com>
3939
3940 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3941 (elfstab_offset_sections): Likewise.
3942 * gdb-stabs.h (stab_section_info): Likewise.
3943 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3944 * objfiles.c (objfile_relocate): Likewise.
3945 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3946 * remote.c (get_offsets): Likewise.
3947 (remote_cisco_objfile_relocate): Likewise.
3948 * somread.c (som_symfile_offsets): Likewise.
3949 * symfile.c (alloc_section_addr_info): New function.
3950 (build_section_addr_info_from_section_tab): Use it.
3951 (free_section_addr_info): Adjust.
3952 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3953 (syms_from_objfile): Allocate local_addr dynamically.
3954 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3955 dynamically.
3956 (add_symbol_file_command): Allocate sect_opts dynamically.
3957 (reread_symbols): Avoid use of SECT_OFF_MAX.
3958 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3959 (alloc_section_addr_info): Declare it.
3960 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3961 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3962 dynamically.
3963 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 3964
20c6c2f8
AC
39652003-06-06 Andrew Cagney <cagney@redhat.com>
3966
3967 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3968 (d10v_frame_unwind_cache): Do not set "return_pc".
3969
884a26c8
MS
39702003-06-06 Michael Snyder <msnyder@redhat.com>
3971
3972 * h8300-tdep.c: Make tidy (long lines).
3973
088ce440
ML
39742003-06-06 Michal Ludvig <mludvig@suse.cz>
3975
8ffd9b1b 3976 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
3977 to regcache_collect().
3978
7d773d96
JB
39792003-06-05 J. Brobecker <brobecker@gnat.com>
3980
3981 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3982 pc_in_sigtramp multiarch method.
3983 (hppa_hpux_som_init_abi): Use it.
3984 (hppa_hpux_elf_init_abi): Likewise.
3985 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3986 macro has been multiarched.
3987 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3988 macro here, as hppa64 isn't multiarched yet.
3989
1df6926e
AC
39902003-06-05 Andrew Cagney <cagney@redhat.com>
3991
3992 * Makefile.in (value_h): Add $(frame_h).
3993 * value.h: Include "frame.h".
3994 (struct value): Replace "frame_addr" with "frame_id".
3995 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3996 * values.c (allocate_value): Use VALUE_FRAME_ID.
3997 (value_copy): Use VALUE_FRAME_ID.
3998 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3999 * valops.c (value_assign): Update. Use frame_find_by_id.
4000
6b53acc6
ML
40012003-06-05 Michal Ludvig <mludvig@suse.cz>
4002
4003 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4004 in each pass.
4005
4d9850d3
JJ
40062003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4007
4008 * thread-db.c (check_event): For create/death event breakpoints,
4009 loop through all messages to ensure that we read the message
4010 corresponding to the breakpoint we are at.
4011
8efca6ba
MS
40122003-06-04 Michael Snyder <msnyder@redhat.com>
4013
4014 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4015
0912c7f2
MK
40162003-06-04 Mark Kettenis <kettenis@gnu.org>
4017
4018 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4019 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4020 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4021 when handling .eh_frame sections.
4022
4e370325
JB
40232003-06-04 J. Brobecker <brobecker@gnat.com>
4024
4025 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4026 prepare_to_proceed procedure instead of the hppa-specific one.
4027 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4028
b757528f 40292003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4030
b757528f
JJ
4031 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4032 * config.in: Regenerated.
4033 * configure.in: Add test for syscall function and check for
4034 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4035 * configure: Regenerated.
4036 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4037 <sys/syscall.h>.
4038 (kill_lwp): New function that uses tkill syscall or
4039 uses kill, depending on whether threading model is nptl or not.
4040 All callers of kill() changed to use kill_lwp().
4041 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4042 see if all threads have already exited in the nptl model.
4043 (stop_and_resume_callback): New callback function used by the
4044 lin_lwp_wait thread exit handling code.
4045 (stop_wait_callback): Check for threads already having exited and
4046 delete such threads fromt the lwp list when discovered.
4047 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 4048
b757528f
JJ
4049 Roland McGrath <roland@redhat.com>
4050 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4051 nptl libthread_db.
4052
087779b1
RH
40532003-06-03 Richard Henderson <rth@redhat.com>
4054
b21fd293
RH
4055 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4056 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4057 (alpha_sigtramp_frame_prev_register): Likewise.
4058 (alpha_heuristic_frame_prev_register): Likewise.
4059 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4060
8ffd9b1b 4061 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
4062 alpha-specific register id names.
4063 (alpha_mdebug_frame_unwind_cache): Likewise.
4064 (alpha_mdebug_frame_prev_register): Likewise.
4065
baa490c4
RH
40662003-06-03 Richard Henderson <rth@redhat.com>
4067
4068 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4069 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4070 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4071 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4072 unwind routines.
4073 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4074 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4075 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4076
4077 * alpha-linux-tdep.c: Remove unnecessary includes.
4078 * Makefile.in (alpha-linux-tdep.o): Update.
4079
40802003-06-03 Richard Henderson <rth@redhat.com>
4081
4082 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4083 (alphabsd_fill_fpreg): Likewise.
4084
f534e522
JB
40852003-06-03 J. Brobecker <brobecker@gnat.com>
4086
4087 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4088 references to struct frame_info fields by calls to the equivalent
4089 accessors. Necessary now that frame_info is opaque.
4090
4035536b
JB
40912003-06-03 J. Brobecker <brobecker@gnat.com>
4092
4093 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4094 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4095 structure, field no longer exists.
4096
0bd79c5c
JB
40972003-06-03 J. Brobecker <brobecker@gnat.com>
4098
4099 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4100 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4101
37bb6d9f
JB
41022003-06-03 J. Brobecker <brobecker@gnat.com>
4103
4104 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4105 references to struct frame_info fields by calls to the equivalent
4106 accessors. Necessary now that frame_info is opaque.
4107
852ee05c
JB
41082003-06-03 J. Brobecker <brobecker@gnat.com>
4109
4110 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4111 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4112 structure, field no longer exists.
4113
7d58c67d
TR
41142003-06-03 Theodore A. Roth <troth@openavr.org>
4115
8ffd9b1b 4116 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
4117 accumulation of the size of all registers instead of blindly using
4118 DEPRECATED_REGISTER_BYTES.
4119
0a48e7e8
MS
41202003-06-03 Michael Snyder <msnyder@redhat.com>
4121
4122 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4123 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4124 for h8300sx.
4125
9798ab0d
JB
41262003-06-03 J. Brobecker <brobecker@gnat.com>
4127
4128 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4129 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4130
00b037e2
AC
41312003-06-03 Andrew Cagney <cagney@redhat.com>
4132
4133 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4134 (sparc_convert_to_raw): Delete function.
4135 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4136 register_convert_to_virtual.
4137
043b2f77
JJ
41382003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4139
4140 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4141 layer if not dealing with a statically-linked threaded program.
4142
f43caff8
KW
41432003-06-03 Kris Warkentin <kewarken@qnx.com>
4144
4145 * solib.c (solib_open): Update comment to reflect actual search order.
4146
ae1e7417
AC
41472003-06-03 Andrew Cagney <cagney@redhat.com>
4148
4149 * frame.c (get_frame_memory_signed): New function.
4150 (get_frame_memory, get_frame_memory_unsigned): New function.
4151 (get_frame_arch): New function.
4152 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4153 (get_frame_memory, get_frame_unsigned_memory): Declare.
4154 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4155 get_frame_memory_unsigned and get_frame_arch.
4156 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4157
cb123844
RG
41582003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4159
4160 * MAINTAINERS (write after approval): Add myself.
4161
1bb792e9
JB
41622003-06-03 Jim Blandy <jimb@redhat.com>
4163
4164 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4165 elements of gregset_t are 64 bits each, but access registers
4166 are still 32 bits, so they're packed two per gregset_t
4167 element. Unpack/pack them properly.
4168
aee8d8ba
DC
41692003-06-02 David Carlton <carlton@bactrian.org>
4170
4171 * linespec.c (find_methods): Break out code into
4172 add_matching_methods and add_constructors.
4173 (add_matching_methods): New.
4174 (add_constructors): Ditto.
4175
bf7488d2
AC
41762003-06-02 Andrew Cagney <cagney@redhat.com>
4177
bf7488d2
AC
4178 * sparc-tdep.c (sparc_print_registers): Delete call to
4179 REGISTER_CONVERTIBLE.
4180 (sparc_gdbarch_init): Do not set register_convertible.
4181 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4182 * frv-tdep.c (frv_gdbarch_init): Ditto.
4183 * cris-tdep.c (cris_gdbarch_init): Ditto.
4184
adedef68
EZ
41852003-06-02 Elena Zannoni <ezannoni@redhat.com>
4186
8ffd9b1b 4187 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
4188 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4189 (syms_from_objfile): Ditto.
4190
650fcc91
AS
41912003-06-03 Andreas Schwab <schwab@suse.de>
4192
4193 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4194 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4195
df4a182b
RH
41962003-06-02 Richard Henderson <rth@redhat.com>
4197
4198 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4199 a member of all_reggroup.
4200
c483c494
RH
42012003-06-02 Richard Henderson <rth@redhat.com>
4202
4203 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4204 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4205 (alpha_lds, alpha_sts): New.
4206 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 4207 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
4208 restructure and fail for type sizes other than 4 or 8.
4209 (alpha_value_to_register): Similarly.
4210 (alpha_extract_return_value): Use alpha_sts.
4211 (alpha_store_return_value): Use alpha_lds.
4212 (alpha_gdbarch_init): Update hooks.
4213
b38b6be2
RH
42142003-06-02 Richard Henderson <rth@redhat.com>
4215
4216 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4217 regnum identifiers.
4218 (alpha_sigtramp_register_address): Likewise.
4219
98a8e1e5
RH
42202003-06-02 Richard Henderson <rth@redhat.com>
4221
4222 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4223 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4224 * alpha-tdep.h: Declare them.
4225
4226 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4227 Remove zerobuf. Don't error on UNIQUE.
4228 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4229 (ALPHA_REGSET_UNIQUE): Provide default.
4230 (supply_gregset): Use alpha_supply_int_regs.
4231 (fill_gregset): Use alpha_fill_int_regs.
4232 (supply_fpregset): Use alpha_supply_fp_regs.
4233 (fill_fpregset): Use alpha_fill_fp_regs.
4234 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4235 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4236 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4237 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4238 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4239 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4240
67dfac52
RH
42412003-06-02 Richard Henderson <rth@redhat.com>
4242
f75d70cc
RH
4243 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4244
67dfac52
RH
4245 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4246 (alpha_store_return_value): Likewise.
4247
0cf566ec
DC
42482003-06-02 David Carlton <carlton@math.stanford.edu>
4249
4250 * block.c (contained_in): Add 'const' to arguments.
4251 (block_function): Ditto.
4252 * block.h: Update declarations for block_function and
4253 contained_in.
4254
cdef89d0
DC
42552003-06-02 David Carlton <carlton@math.stanford.edu>
4256
4257 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4258 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4259 * p-valprint.c (pascal_val_print): Ditto.
4260 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4261
72667056
RH
42622003-06-02 Richard Henderson <rth@redhat.com>
4263
98a8e1e5
RH
4264 * alpha-tdep.c (alpha_push_dummy_call): Use
4265 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 4266
8ffd9b1b 4267 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
4268 sign-extension of 32-bit values.
4269 (alpha_store_return_value): Similarly.
0ede8eca 4270
98a8e1e5
RH
4271 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4272 (alpha_extract_return_value): Likewise.
4273 (alpha_store_return_value): Likewise.
7b5e1cb3 4274
98a8e1e5
RH
4275 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4276 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 4277
98a8e1e5
RH
4278 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4279 (alpha_extract_struct_value_address): Likewise.
4280 (alpha_store_return_value): Likewise.
4281 (alpha_store_struct_return): Remove.
4282 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 4283
98a8e1e5
RH
4284 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4285 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4286 macros where appropriate.
4287 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4288 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 4289
98a8e1e5
RH
4290 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4291 for SP, GP; void_func_ptr for PC; non-language-specific types
4292 for all others.
4293 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 4294
6dd77b81
RH
42952003-06-02 Richard Henderson <rth@redhat.com>
4296
4297 * top.h (lim_at_start): Declare.
4298 * main.c (captured_main): Set it.
4299 * top.c (lim_at_start): Define.
4300 (command_loop): Use it instead of &environ.
4301 * event-top.c (command_handler): Likewise.
4302
f4dbdb54
JT
43032003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4304
4305 * mipsnbsd-tdep.c: Update copyright years.
4306 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4307
8f285956
RH
43082003-06-01 Richard Henderson <rth@redhat.com>
4309
98a8e1e5
RH
4310 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4311 (alpha-linux-tdep.o): Update dependencies.
4312 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4313 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 4314
615967cb
RH
43152003-06-01 Richard Henderson <rth@redhat.com>
4316
98a8e1e5
RH
4317 * alpha-tdep.c (alpha_register_reggroup_p): New.
4318 (alpha_gdbarch_init): Register it.
615967cb 4319
b59661bd
AC
43202003-06-02 Andrew Cagney <cagney@redhat.com>
4321
4322 * dwarfread.c: Eliminate "register"
4323 (decode_die_type): Eliminate assignment within "if".
4324 (struct_type, decode_array_element_type): Ditto.
4325 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4326 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4327 (decode_modified_type, completedieinfo): Ditto.
4328 * block.c: Eliminate "register".
4329 (blockvector_for_pc_sect): Eliminate assignment within "if".
4330 * cp-support.h (struct symbol): Opaque declaration.
4331 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4332
5ef165c2
RH
43332003-06-01 Richard Henderson <rth@redhat.com>
4334
98a8e1e5
RH
4335 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4336 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 4337
143985b7
AF
43382003-06-01 Adam Fedor <fedor@gnu.org>
4339
4340 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4341 * gdbarch.[ch]: Regenerate.
4342 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4343 (hppa_gdbarch_init): Set it in the gdbarch vector.
4344 * i386-tdep.c (i386_fetch_pointer_argument): New
4345 (i386_gdbarch_init): Set it into gdbarch.
4346 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4347 (rs6000_gdbarch_init): Set it in gdbarch.
4348 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4349 (sparc_gdbarch_init): Set it in gdbarch.
4350
ae0167b9
AC
43512003-06-01 Andrew Cagney <cagney@redhat.com>
4352
7c0b4a20
AC
4353 * defs.h (extract_address): Delete declaration.
4354 * findvar.c (extract_address): Delete function.
4355 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4356 extract_address with the inline equivalent,
4357 extract_unsigned_integer.
4358 (xstormy16_extract_struct_value_address): Ditto.
4359 (xstormy16_pointer_to_address): Ditto.
4360 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4361 * v850-tdep.c (v850_push_arguments): Ditto.
4362 (v850_extract_return_value): Ditto.
4363 (v850_extract_struct_value_address): Ditto.
4364 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4365 (sparcnbsd_get_longjmp_target_64): Ditto.
4366 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4367 (get_longjmp_target): Ditto.
4368 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4369 (sh64_extract_struct_value_address): Ditto.
4370 (sh_push_arguments): Ditto.
4371 (sh64_push_arguments): Ditto.
4372 * remote-vxsparc.c (vx_read_register): Ditto.
4373 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4374 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4375 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4376 * mipsv4-nat.c (get_longjmp_target): Ditto.
4377 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4378 * mips-nat.c (get_longjmp_target): Ditto.
4379 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4380 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4381 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4382 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4383 * irix5-nat.c (get_longjmp_target): Ditto.
4384 * irix4-nat.c (get_longjmp_target): Ditto.
4385 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4386 (ia64_push_arguments): Ditto.
4387 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4388 * h8300-tdep.c (h8300_push_arguments): Ditto.
4389 (h8300_store_return_value): Ditto.
4390 (h8300_extract_struct_value_address): Ditto.
4391 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4392 (frv_push_arguments): Ditto.
4393 * avr-tdep.c (avr_pointer_to_address): Ditto.
4394 (avr_push_arguments): Ditto.
4395 * arm-tdep.c (arm_push_dummy_call): Ditto.
4396 (arm_get_longjmp_target): Ditto.
4397 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4398 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4399 (alpha_get_longjmp_target): Ditto.
4400
ae0167b9
AC
4401 * solib-irix.c (extract_mips_address): Inline extract_address,
4402 replacing it with extract_signed_integer.
4403 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4404 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4405 (first_link_map_member, open_symbol_file_object): Ditto.
4406 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4407 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4408 (LM_NEXT, LM_NAME): Ditto.
4409
44d88583
RH
44102003-06-01 Richard Henderson <rth@redhat.com>
4411
98a8e1e5
RH
4412 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4413 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4414 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4415 (alpha_cannot_store_register): Likewise.
4416 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4417 * alpha-nat.c (supply_gregset): Likewise.
4418 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 4419
310e9b6a
AC
44202003-06-01 Andrew Cagney <cagney@redhat.com>
4421
4422 * infcall.c (call_function_by_hand): Update comment on
4423 DEPRECATED_DUMMY_WRITE_SP.
4424
4425 * mips-tdep.c (mips_gdbarch_init): Do not set
4426 deprecated_dummy_write_sp.
4427 (mips_eabi_push_dummy_call): Set the SP register.
4428 (mips_o64_push_dummy_call): Set the SP register.
4429 (mips_o32_push_dummy_call): Set the SP register.
4430 (mips_n32n64_push_dummy_call): Set the SP register.
4431
5ab84872
RH
44322003-06-01 Richard Henderson <rth@redhat.com>
4433
98a8e1e5
RH
4434 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4435 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4436 (supply_gregset): Likewise.
4437 * alpha-tdep.c (alpha_store_return_value): Likewise.
4438 (alpha_get_longjmp_target): Likewise.
4439 (alpha_register_name): Constify array.
4440 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4441 deprecated_register_size, deprecated_register_bytes,
4442 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4443 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4444 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 4445
09cc52fd
RH
44462003-06-01 Richard Henderson <rth@redhat.com>
4447
4448 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4449 from arg_reg_buffer to regcache to avoid double conversion.
4450
c7f16359
MK
44512003-06-01 Mark Kettenis <kettenis@gnu.org>
4452
4453 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4454 SP_REGNUM.
4455 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4456 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4457
7131cb6e
RH
44582003-06-01 Richard Henderson <rth@redhat.com>
4459
98a8e1e5
RH
4460 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4461 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 4462
f3e0f90b
RH
44632003-06-01 Richard Henderson <rth@redhat.com>
4464
98a8e1e5
RH
4465 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4466 not overlapping PC_REGNUM.
f3e0f90b 4467
c88e30c0
RH
44682003-06-01 Richard Henderson <rth@redhat.com>
4469
98a8e1e5
RH
4470 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4471 alpha_push_arguments. Don't dump argument register data to
4472 the target stack. Fix float and 128-bit long double semantics.
4473 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4474 (alpha_fix_call_dummy): Remove.
4475 (alpha_call_dummy_words): Remove.
4476 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 4477
f1a559ae
RH
44782003-06-01 Richard Henderson <rth@redhat.com>
4479
4480 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4481
5e045346
AC
44822003-06-01 Andrew Cagney <cagney@redhat.com>
4483
95404a3e
AC
4484 * mips-tdep.c (is_mips16_addr): New function.
4485 (make_mips16_addr, unmake_mips16_addr): New functions.
4486 (pc_is_mips16, mips_fetch_instruction): Use.
4487 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4488 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4489 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4490 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4491 TARGET_MIPS.
4492 * config/mips/tm-mips.h: Update copyright.
4493 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4494 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4495 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4496 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4497 (TM_PRINT_INSN_MACH): Delete.
4498 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4499
5e045346
AC
4500 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4501 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4502 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4503 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4504 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4505 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4506 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4507 mips*-*-riscos* and mips*-*-sysv* onto mips.
4508 * config/mips/mips64.mt: New file.
4509 * config/mips/mips.mt: New file.
4510 * config/mips/littlemips.mt: Delete file.
4511 * config/mips/decstation.mt: Delete file.
4512 * config/mips/vr4300el.mt: Delete file.
4513 * config/mips/vr5000el.mt: Delete file.
4514 * config/mips/vr5000.mt: Delete file.
4515 * config/mips/vr4100.mt: Delete file.
4516 * config/mips/vr4xxxel.mt: Delete file.
4517 * config/mips/vr4300.mt: Delete file.
4518 * config/mips/vr4xxx.mt: Delete file.
4519 * config/mips/bigmips.mt: Delete file.
4520 * config/mips/bigmips64.mt: Delete file.
4521 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4522 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4523 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4524 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4525 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4526 "tm-bigmips.h".
4527 * config/mips/tm-irix3.h: Ditto.
4528 * config/mips/tm-mipsv4.h: Ditto.
4529 * config/mips/tm-embed.h: Ditto.
4530 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4531 "tm-bigmips64.h".
4532 * config/mips/tm-vr5000el.h: Delete file.
4533 * config/mips/tm-tx39l.h: Delete file.
4534 * config/mips/tm-vr4300el.h: Delete file.
4535 * config/mips/tm-vr4xxxel.h: Delete file.
4536 * config/mips/tm-vr4300.h: Delete file.
4537 * config/mips/tm-vr4100.h: Delete file.
4538 * config/mips/tm-vr4xxx.h: Delete file.
4539 * config/mips/tm-vr5000.h: Delete file.
4540 * config/mips/tm-embedl64.h: Delete file.
4541 * config/mips/tm-embedl.h: Delete file.
4542 * config/mips/tm-embed64.h: Delete file.
4543 * config/mips/tm-bigmips64.h: Delete file.
4544 * config/mips/tm-bigmips.h: Delete file.
4545
2473a4a9
MK
45462003-06-01 Mark Kettenis <kettenis@gnu.org>
4547
97a5b208
MK
4548 Fix gdb/1216.
4549 * shnbsd-nat.c: Include "sh-tdep.h".
4550
2473a4a9
MK
4551 From Richard Henderson <rth@redhat.com>:
4552 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4553
e0f7ec59
AC
45542003-05-31 Andrew Cagney <cagney@redhat.com>
4555
4556 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4557 forward declaration.
4558 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4559 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4560 (mips_find_saved_regs): Use set_reg_offset.
4561 (mips_frame_init_saved_regs): Delete function.
4562 (mips_pop_frame): Call mips_find_saved_regs instead of
4563 DEPRECATED_FRAME_INIT_SAVED_REGS.
4564
68dcc709
AC
45652003-05-31 Andrew Cagney <cagney@redhat.com>
4566
4567 * mips-tdep.c (mips_gdbarch_init): Do not set
4568 deprecated_max_register_raw_size, register_virtual_size, and
4569 deprecated_max_register_virtual_size.
4570
cfc14b3a
MK
45712003-05-31 Mark Kettenis <kettenis@gnu.org>
4572
6405b0a6
MK
4573 * i386-tdep.c: Include "dwarf2-frame.h".
4574 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4575 * Makefile.in (i386-tdep.o): Update dependencies.
4576
cfc14b3a
MK
4577 * dwarf2-frame.c, dwarf2-frame.h: New files.
4578 * Makefile.in (SFILES): Add dwarf2-frame.c.
4579 (dwarf2_frame_h): Define.
4580 (COMMON_OBS): Add dwarf2-frame.o.
4581 (dwarf2-frame.o): Add dependencies.
4582
6a2751d2
AJ
45832003-05-31 Andreas Jaeger <aj@suse.de>
4584
4585 * x86-64-linux-nat.c: Fix comment.
4586
1c3545ae
MK
45872003-05-31 Mark Kettenis <kettenis@gnu.org>
4588
10f93086
MK
4589 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4590 function signature.
4591
1c3545ae
MK
4592 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4593 have a sigcontext_addr handler.
4594 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4595 sigcontext_addr handler.
4596
e11c53d2
AC
45972003-05-31 Andrew Cagney <cagney@redhat.com>
4598
4599 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4600 (print_fp_register_row): Replace do_fp_register_row.
4601 (mips_print_fp_register): Add "file" and "frame" parameters.
4602 (mips_print_register): Add "file" and "frame" parameters.
4603 (mips_print_registers_info): Replace mips_do_registers_info.
4604 (mips_gdbarch_init): Set print_registers_info instead of
4605 deprecated_do_registers_info.
4606 (mips_read_fp_register_single): Add "frame" parameter.
4607 (mips_read_fp_register_double): Add "frame" parameter.
4608
a3386186
MK
46092003-05-31 Mark Kettenis <kettenis@gnu.org>
4610
70913449
MK
4611 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4612 Fixes a bug where GDB would print the wrong register names for
4613 targets without SSE.
4614
2b5e0749
MK
4615 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4616 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4617 registers.
4618
4619 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4620 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4621 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4622 TDEP->sc_sp_offset.
4623
a3386186
MK
4624 From Michal Ludvig <mludvig@suse.cz>:
4625 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4626 and `sc_num_regs'.
4627 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4628 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4629 I386_ST0_REGNUM): Move here from...
4630 * i386-tdep.c: ... here.
4631 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4632 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4633 registers if possible.
4634 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4635 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4636 Remove variables.
4637 (i386bsd_sc_reg_offset): New variable.
4638 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4639 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4640 TDEP->sc_sp_offset.
4641 (i386fbsd_sc_reg_offset): New variable.
4642 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4643 TDEP->sc_num_regs.
4644 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4645 variables.
4646 (i386fbsd4_sc_reg_offset): New variable.
4647 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4648 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4649 TDEP->sc_sp_offset.
4650 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4651 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4652 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4653 Remove variables.
4654 (i386nbsd_sc_reg_offset): New variable.
4655 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4656 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4657 TDEP->sc_sp_offset.
4658 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4659 Remove variables.
4660 (i386obsd_sc_reg_offset): New variable.
4661 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4662 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4663 TDEP->sc_sp_offset.
4664 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4665 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4666 for frame pointer offset in `struct sigcontext'.
4667
25ab4790
AC
46682003-05-31 Andrew Cagney <cagney@redhat.com>
4669
4670 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4671 architecture methods call_dummy_words, sizeof_call_dummy_words,
4672 push_return_address, store_struct_return, and fix_call_dummy. Set
4673 push_dummy_call instead of deprecated_push_arguments.
4674 (mips_store_struct_return): Delete function.
4675 (mips_fix_call_dummy): Delete function.
4676 (mips_push_return_address): Delete function.
4677 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4678 RA_REGNUM and T9_REGNUM.
4679 (mips_n32n64_push_dummy_call): Ditto for
4680 mips_n32n64_push_arguments.
4681 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4682 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4683
6a65450a
AC
46842003-05-31 Andrew Cagney <cagney@redhat.com>
4685
4686 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4687 "dummy_addr" to "bp_addr".
4688 * infcall.c (call_function_by_hand): Pass "funaddr" to
4689 gdbarch_push_dummy_call.
4690 * gdbarch.h, gdbarch.c: Re-generate.
4691 * i386-tdep.c (i386_push_dummy_call): Update.
4692 * arm-tdep.c (arm_push_dummy_call): Update.
4693 * d10v-tdep.c (d10v_push_dummy_call): Update.
4694
c4f35dd8
MK
46952003-05-31 Mark Kettenis <kettenis@gnu.org>
4696
4697 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4698 variable declarations.
4699 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4700 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4701 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4702 x86_64_init_frame_pc, x86_64_init_frame_pc,
4703 x86_64_function_has_prologue): Remove prototypes.
4704 (X86_64_NUM_GREGS): New define.
4705 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4706 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4707 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4708 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4709 XMM1_REGNUM): Remove defines.
4710 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4711 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4712 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4713 X86_64_XMM1_REGNUM): New defines.
4714 (struct x86_64_register_info): Renamed from `struct
4715 register_info'. Remove `size' member.
4716 (x86_64_register_info_table): Remove variable.
4717 (x86_64_register_info): New variable.
4718 (X86_64_NUM_REGS): New define.
4719 (X86_64_NUM_GREGS): Remove define.
4720 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4721 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4722 Remove variables.
4723 (x86_54_dwarf2_reg_to_regnum): Remove function.
4724 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4725 (x86_64_dwarf_reg_to_regnum): New function.
4726 (x86_64_register_name): Rewrite.
4727 (x86_64_register_raw_size): Remove function.
4728 (x86_64_register_byte_table): Remove variable.
4729 (x86_64_register_byte): Remove function.
4730 (x86_64_register_virtual_type): Remove function.
4731 (x86_64_register_type): New function.
4732 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4733 x86_64_register_convert_to_raw): Remove functions.
4734 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4735 (x86_64_use_struct_convention): Make static. Adjust for renamed
4736 defines.
4737 (x86_64_frame_init_saved_regs): Remove function.
4738 (x86_64_push_arguments): Make static. Change to accept a regcache
4739 as argument.
4740 (x86_64_store_return_value, x86_64_extract_return_value): Make
4741 static. Rewrite based on i386 counterparts.
4742 (x86_64_push_dummy_call): New function.
4743 (X86_64_NUM_SAVED_REGS): New define.
4744 (x86_64_register_number): Remove function.
4745 (x86_64_store_struct_return): Remove function.
4746 (x86_64_frameless_function_invocation,
4747 x86_64_function_has_prologue): Remove functions.
4748 (PROLOG_BUFSIZE): Remove define.
4749 (struct x86_64_frame_cache): New structure.
4750 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4751 x86_64_frame_cache, x86_64_frame_this_id,
4752 x86_64_frame_prev_register, x86_64_frame_p,
4753 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4754 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4755 functions.
4756 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4757 variables.
4758 (x86_64_skip_prologue): Rewrite in terms of
4759 x86_64_analyze_prologue.
4760 (x86_64_frame_base_address): New function.
4761 (x86_64_frame_base): New variable.
4762 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4763 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4764 set deprecated_fp_regnum, deprecated_register_size,
4765 deprecated_register_bytes, register_raw_size, register_byte,
4766 register_virtual_type, register_convertiable,
4767 register_convert_to_virtual, convert_to_raw,
4768 deprecated_get_saved_register, deprecated_target_read_fp,
4769 deprecated_push_arguments, deprecated_push_return_address,
4770 deprecated_pop_frame, deprecated_store_struct_return,
4771 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4772 frameless_function_invocation, deprecated_frame_saved_pc,
4773 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4774 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4775 deprecated_init_frame_pc and virtual_frame_pointer. Call
4776 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4777 and x86_64_frame_p. Call frame_base_set_default to register
4778 x86_64_frame_base.
4779 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4780 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4781 (_initialize_x86_64_tdep): Remove function.
4782 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4783 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4784 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4785 define.
4786 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4787 (x86_64_linux_sigcontext_addr): Rewrite.
4788 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4789 x86_64_linux_frame_saved_pc): Remove functions.
4790 (x86_64_linux_pc_in_sigtramp): Renamed from
4791 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4792 trampoline.
4793 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4794 Remove_functions.
4795 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4796 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4797 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4798 (x86_64_regmap): Rename to regmap.
4799 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4800 x86_64_num_gregs.
4801 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4802 x86_64_regmap.
4803 (x86_64_fxsave_offset): Remove function.
4804 (supply_fpregset): Simply call x86_64_supply_fxsave.
4805 (fill_fpregset): Simply call x86_64_fill_fxsave.
4806 (fetch_inferior_registers, store_inferior_registers): Avoid
4807 asignment in if-statement.
4808 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4809 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4810 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4811 (fetch_core_registers): Remove function.
4812 (linux_elf_core_fns): Remove.
4813 (offsetoff): Don't define.
4814 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4815 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4816 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4817 add core-regset.o.
4818 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4819 protection against multiple includes instead of NM_X86_64_h. Add
4820 various comments. Include "config/nm-linux.h". Don't include
4821 <signal.h>.
4822 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4823 GET_THREAD_SIGNALS): Remove defines.
4824 (x86_64_register_u_addr, kernel_u_size,
4825 lin_thread_get_thread_signals): Remove prototypes.
4826 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4827 [HAVE_LINK_H]: Don't include "solib.h".
4828 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4829 * config/i386/tm-x86-64linux.h: Fix comments.
4830 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4831 x86-64-tdep.o): Update dependencies.
4832
c25083af
AC
48332003-05-30 Andrew Cagney <cagney@redhat.com>
4834
c8f55a7b
AC
4835 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4836 Change parameter type to a "struct regcache *".
4837
c25083af
AC
4838 * gdbarch.sh: Regardless of the multi-arch level, always define
4839 the macro when not already defined.
4840 * gdbarch.h, gdbarch.c: Re-generate.
4841
fbe586ae
RH
48422003-05-30 Richard Henderson <rth@redhat.com>
4843
4844 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4845 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4846 (alpha_mdebug_frame_this_id): Likewise.
4847 (alpha_mdebug_frame_prev_register): Likewise.
4848 (alpha_mdebug_frame_base_address): Likewise.
4849 (alpha_mdebug_frame_locals_address): Likewise.
4850 (alpha_mdebug_frame_args_address): Likewise.
4851 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4852 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4853 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4854 loop increment.
4855 (alpha_heuristic_frame_this_id): Make static.
4856 (alpha_heuristic_frame_prev_register): Likewise.
4857 (alpha_heuristic_frame_base_address): Likewise.
4858 * alpha-tdep.h: Update.
4859
acd5c798
MK
48602003-05-30 Mark Kettenis <kettenis@gnu.org>
4861
4862 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4863 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4864 defenitions.
4865 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4866 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4867 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4868 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4869 I386_ST0_REGNUM): New defines.
4870 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4871 codestream_get): Remove define.
4872 (codestream_next_addr, condestream_addr, condestream_buf,
4873 codestream_off, codestream_cnt): Remove variables.
4874 (codestream_fill, codestream_seek, codestream_read): Remove
4875 functions.
4876 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4877 functionality.
4878 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4879 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4880 i386_frame_saved_pc, i386_saved_pc_after_call,
4881 i386_frame_num_args, i386_frame_init_saved_regs,
4882 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4883 i386_push_arguments): Remove functions.
4884 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4885 functionality. Use i386_analyze_prologue instead of
4886 i386_get_frame_setup.
4887 (I386_NUM_SAVED_REGS): New define.
4888 (struct i386_frame_cache): New structure.
4889 (i386_alloc_frame_cache, i386_analyze_struct_return,
4890 i386_skip_probe, i386_analyze_frame_setup,
4891 i386_analyze_register_saves, i386_analyze_prologue,
4892 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4893 i386_frame_prev_register, i386_sigtramp_frame_cache,
4894 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4895 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4896 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4897 New functions.
4898 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4899 New variables.
4900 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4901 I386_EAX_REGNUM and I386_EDX_REGNUM.
4902 (i386_extract_return_value, i386_store_return_value): Use
4903 I386_ST0_REGNUM where appropriate.
4904 (i386_extract_struct_value_address): Rewrite to use extract_address.
4905 (i386_svr4_pc_in_sigtramp): Add comment.
4906 (i386_svr4_sigcontext_addr): Rewrite.
4907 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4908 TDEP->sc_sp_offset.
4909 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4910 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4911 of new defines. Set push_dummy_call, don't set
4912 deprecated_push_arguments, deprecated_push_return_address,
4913 deprecated_pop_frame. Don't set parm_boundary. Don't set
4914 deprecated_frame_chain, deprecated_frame_saved_pc,
4915 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4916 save_dummy_frame_tos, unwind_pc. Call
4917 frame_unwind_append_predicate and frame_base_set_default. Don't
4918 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4919 Don't set frameless_function_invocation. Don't set
4920 deprecated_register_bytes, deprecated_register_size,
4921 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4922 * i386-linux-tdep.c: Fix formatting in some comments.
4923 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4924 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4925 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4926 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4927 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4928 redundant parentheses.
4929 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4930 (i386_linux_sigcontext_addr): Use it. Rewrite.
4931 (find_minsym_and_objfile): Change name of second argument.
4932 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4933 changed. Use frame_pc_unwind instead of
4934 DEPRECATED_SAVED_PC_AFTER_CALL.
4935 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4936 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4937 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4938 unwinder.
4939 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4940 "dummy-frame.h".
4941 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4942 (_initialize_i386_cygwin_tdep): New prototype.
4943 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4944 deprecated_frame_chain_valid.
4945 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4946 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4947 Rely on the SVR4 defaults.
4948 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4949 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4950
c89b70f1
AC
49512003-05-30 Andrew Cagney <cagney@redhat.com>
4952
4953 * infcall.c (call_function_by_hand): Always call
4954 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4955
85b32d22
RH
49562003-05-30 Richard Henderson <rth@redhat.com>
4957
c89b70f1
AC
4958 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4959 increment.
85b32d22 4960
bfe51b1e
JB
49612003-05-29 Jim Blandy <jimb@redhat.com>
4962
4963 Use gdbarch methods for solib stuff on PowerPC Linux.
4964 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4965 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4966 show through.
4967 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4968 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4969 giving the same effect as the #definitions above.
4970
1abf022c
AF
49712003-05-29 Adam Fedor <fedor@gnu.org>
4972
4973 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4974 (find_implementation_from_class): Replace it with the standard
4975 case i.e. do nothing.
4976
d2427a71
RH
49772003-05-29 Richard Henderson <rth@redhat.com>
4978
4979 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4980 (alpha_linux_sigtramp_offset): Use it. Make static.
4981 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4982 update for new frame model.
4983 * alpha-mdebug-tdep.c: New file.
4984 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4985 (alpha_osf1_init_abi): Install it.
4986 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4987 (linked_proc_desc_table): Remove.
4988 (alpha_frame_past_sigtramp_frame): Remove.
4989 (alpha_dynamic_sigtramp_offset): Remove.
4990 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4991 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4992 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4993 (push_sigtramp_desc): Remove.
4994 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4995 (alpha_cannot_store_register): Likewise.
4996 (alpha_sigcontext_addr): Remove.
4997 (alpha_find_saved_regs): Remove.
4998 (alpha_frame_init_saved_regs): Remove.
4999 (alpha_init_frame_pc_first): Remove.
5000 (read_next_frame_reg): Remove.
5001 (alpha_frame_saved_pc): Remove.
5002 (alpha_saved_pc_after_call): Remove.
5003 (temp_proc_desc, temp_saved_regs): Remove.
5004 (alpha_about_to_return): Remove.
5005 (cached_proc_desc): Remove.
5006 (alpha_frame_chain): Remove.
5007 (alpha_print_extra_frame_info): Remove.
5008 (alpha_init_extra_frame_info): Remove.
5009 (alpha_frame_locals_address): Remove.
5010 (alpha_frame_args_address): Remove.
5011 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5012 (alpha_push_dummy_frame): Remove.
5013 (alpha_pop_frame): Remove.
5014 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5015 (alpha_read_insn): New.
5016 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5017 for different insn encodings.
5018 (alpha_in_lenient_prologue): Remove.
5019 (struct alpha_sigtramp_unwind_cache): New.
5020 (alpha_sigtramp_frame_unwind_cache): New.
5021 (alpha_sigtramp_register_address): New.
5022 (alpha_sigtramp_frame_this_id): New.
5023 (alpha_sigtramp_frame_prev_register): New.
5024 (alpha_sigtramp_frame_unwind): New.
5025 (alpha_sigtramp_frame_p): New.
5026 (struct alpha_heuristic_unwind_cache): New.
5027 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5028 don't count nop insns that occur between functions.
5029 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5030 heuristic_proc_desc, but without the mdebug wrapping.
5031 (alpha_heuristic_frame_this_id): New.
5032 (alpha_heuristic_frame_prev_register): New.
5033 (alpha_heuristic_frame_unwind): New.
5034 (alpha_heuristic_frame_p): New.
5035 (alpha_heuristic_frame_base_address): New.
5036 (alpha_heuristic_frame_base): New.
5037 (alpha_unwind_dummy_id): New.
5038 (alpha_unwind_pc): New.
5039 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5040 frame related deprecated initializations; install replacements.
5041 (alpha_dump_tdep): Remove.
5042 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5043 (alpha_read_insn, alpha_after_prologue,
5044 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5045 alpha_heuristic_frame_prev_register,
5046 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5047 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5048 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5049 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5050
93ec1121
AC
50512003-05-29 Andrew Cagney <cagney@redhat.com>
5052
5053 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5054 dependant on the availability of ASSERT_FUNCTION.
5055 (ASSERT_FUNCTION): Do not define when there is no function name.
5056
98f08d3d
KB
50572003-05-29 Kevin Buettner <kevinb@redhat.com>
5058
5059 From Jimi X <jimix@watson.ibm.com>:
5060 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5061
0897f59b
JB
50622003-05-28 Jim Blandy <jimb@redhat.com>
5063
5064 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5065 argument to ptrace to int; the system headers should give it the
5066 right type, and pointers don't fit in ints on powerpc64-*-*.
5067
14898363
L
50682003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5069
5070 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5071 DW_TAG_catch_block.
5072
a7a48797
EZ
50732003-05-26 Elena Zannoni <ezannoni@redhat.com>
5074
5075 * stabsread.c (dbx_lookup_type): Make static.
5076 (read_type): Ditto.
5077 (add_undefined_type): Ditto.
5078 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5079 not export.
5080
f5479e9c
EZ
50812003-05-26 Elena Zannoni <ezannoni@redhat.com>
5082
5083 * hpread.c (hpread_has_name): Make static.
5084 (hpread_psymtab_to_symtab): Ditto.
5085 (file_exists): Ditto.
5086 (hpread_call_pxdb): Ditto.
5087 (hpread_pxdb_needed): Ditto.
5088 (hpread_quick_traverse): Ditto.
5089 (hpread_get_header): Ditto.
5090 (hpread_get_lntt): Ditto.
5091 (hpread_get_slt): Ditto.
5092 (class_of): Ditto.
5093
eb2e12d7
AS
50942003-05-25 Andreas Schwab <schwab@suse.de>
5095
78bf922a
AS
5096 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5097 stack_align and deprecated_extra_stack_alignment_needed.
5098 (m68k_stack_align): Delete.
5099
eb2e12d7
AS
5100 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5101 (m68k_register_virtual_size): Likewise.
5102 (altos_skip_prologue): Remove obsolete function.
5103 (isi_frame_num_args): Likewise.
5104 (news_frame_num_args): Likewise.
5105 (m68k_fix_call_dummy): Make static.
5106 (m68k_push_dummy_frame): Likewise.
5107 (m68k_pop_frame): Likewise.
5108 (m68k_skip_prologue): Likewise.
5109 (m68k_frame_init_saved_regs): Likewise.
5110 (m68k_saved_pc_after_call): Likewise.
5111 (m68k_get_longjmp_target): Make multi-arch.
5112 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5113 structure. Register m68k_get_longjmp_target if enabled.
5114 * m68k-tdep.h (struct gdbarch_tdep): Define.
5115 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5116
5117 * Makefile.in (config.status): Also depend on configure.tgt
5118 and configure.host.
5119 (m68klinux-tdep.o): Update dependencies.
5120 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5121 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5122 (M68K_LINUX_JB_PC): Define.
5123 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5124 and take additional parameter.
5125 (m68k_linux_sigtramp_saved_pc): Update.
5126 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5127 m68k_linux_pc_in_sigtramp, in_plt_section,
5128 find_solib_trampoline_target.
5129 * config/m68k/tm-linux.h: Don't include any tm headers.
5130 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5131 (JB_ELEMENT_SIZE): Likewise.
5132 (JB_PC): Likewise.
5133 (GET_LONGJMP_TARGET): Likewise.
5134 (IN_SIGTRAMP): Likewise.
5135 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5136
eb2c22dc
MK
51372003-05-25 Mark Kettenis <kettenis@gnu.org>
5138
5139 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5140 (sparc32_push_arguments): Re-implement by calling
5141 sparc32_do_push_arguments.
5142
44b7b84e
MK
51432003-05-25 Mark Kettenis <kettenis@gnu.org>
5144
5145 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5146 SPARC_O1_REGNUM): New defines.
5147 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5148 (sparc32_store_return_value): New function.
5149 (sparc_extract_struct_value_address): Rewrite to operate on a
5150 regcache.
5151 (sparc_gdbarch_init): Don't set
5152 deprecated_extract_struct_value_address. Set
5153 extract_struct_value_address instead. Don't set
5154 deprecated_extract_return_value and deprecated_store_return_value
5155 for 32-bit targets. Set extract_return_value and
5156 store_return_value instead.
5157 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5158 DEPRECTAED_EXTRACT_RETURN_VALUE,
5159 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5160 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5161 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5162 (sparc_store_return_value): Remove prototype.
5163 (sparc32_store_return_value): New prototype.
5164 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5165 Adjust prototypes.
5166
f6ad61e3
MK
51672003-05-24 Mark Kettenis <kettenis@gnu.org>
5168
5169 * sparcnbsd-tdep.c: Include "gdb_string.h".
5170
b276f1bb
AC
51712003-05-23 Andrew Cagney <cagney@redhat.com>
5172
5173 * p-valprint.c (pascal_val_print): Replace extract_address with
5174 the inline equivalent extract_unsigned_integer.
5175 * jv-valprint.c (java_value_print): Ditto.
5176 * ada-valprint.c (ada_val_print_1): Ditto.
5177 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5178
e76c5fcc
TR
51792003-05-23 Theodore A. Roth <troth@openavr.org>
5180
5181 * blockframe.c (frameless_look_for_prologue): Remove unused
5182 after_prologue variable.
5183
2cdd89cb
MK
51842003-05-23 Mark Kettenis <kettenis@gnu.org>
5185
5186 * blockframe.c (get_pc_function_start): Rewrite to avoid
5187 asignments in if-statements.
5188
182d43bc
EZ
51892003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5190
5191 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 5192 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
5193 files, don't relocate absolute symbols (and do use mst_abs).
5194
e8f3fcdd
AC
51952003-05-23 Andrew Cagney <cagney@redhat.com>
5196
5197 * objc-lang.c: Include "gdb_assert.h".
5198 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5199 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5200 (gdb_check, gdb_check_fatal): Delete functions.
5201 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5202 gdb_assert.
5203 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5204 * Makefile.in (objc-lang.o): Update dependencies.
5205
3c23e6fb
ILT
52062003-05-22 Ian Lance Taylor <ian@airs.com>
5207
5208 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5209 with fprintf_filtered, not fprintf_unfiltered.
5210
af1342ab
AC
52112003-05-22 Andrew Cagney <cagney@redhat.com>
5212
5213 * stack.c (frame_info): Inline extract_address, replacing it with
5214 extract_unsigned_integer.
5215 * findvar.c (unsigned_pointer_to_address): Ditto.
5216 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5217 * dwarf2expr.c (dwarf2_read_address): Ditto.
5218 * frame.c (frame_pc_unwind): Update comment.
5219 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5220
47e242ec
JJ
52212003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5222
5223 * infptrace.c (detach): Call print_sys_errmsg rather than
5224 perror_with_name to issue warning message when errno is non-zero
5225 after calling ptrace detach.
5226
e2ac8128
JB
52272003-05-21 J. Brobecker <brobecker@gnat.com>
5228
5229 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5230 macro definitions from here...
5231 * hppa-tdep.c: ...to there.
5232
92b3541e
KB
52332003-05-20 Kevin Buettner <kevinb@redhat.com>
5234
5235 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5236 register_ptrace_addr(). Fix all callers.
5237
55809acb
AS
52382003-05-21 Andreas Schwab <schwab@suse.de>
5239
5240 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5241 dependencies.
5242 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5243 end.
5244 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5245 (_initialize_m68k_linux_tdep): New function.
5246 (m68k_linux_frame_saved_pc): Make static.
5247 (m68k_linux_extract_return_value): Likewise.
5248 (m68k_linux_store_return_value): Likewise.
5249 (m68k_linux_extract_struct_value_address): Likewise.
5250 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5251 Remove.
5252 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5253 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5254 (DEPRECATED_FRAME_SAVED_PC): Remove.
5255
0fbc10f7
KW
52562003-05-20 Kris Warkentin <kewarken@qnx.com>
5257
5258 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5259 regset numbering rather than our own.
5260
58da2eb2
DC
52612003-05-19 David Carlton <carlton@bactrian.org>
5262
5263 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5264
1fcb5155
DC
52652003-05-19 David Carlton <carlton@bactrian.org>
5266
5267 Partial fix for PR c++/827.
5268 * cp-support.h: Include symtab.h.
5269 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5270 * cp-namespace.c: Update contributors.
5271 (cp_lookup_symbol_nonlocal): New.
5272 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5273 (lookup_symbol_file): Ditto.
5274 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5275 * block.h: Declare block_scope, block_using, block_global_block.
5276 * block.c (block_scope): New.
5277 (block_using, block_global_block): Ditto.
5278 * Makefile.in (cp_support_h): Depend on symtab_h.
5279 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5280
5f9a71c3
DC
52812003-05-19 David Carlton <carlton@bactrian.org>
5282
5283 * language.h (struct language_defn): Add 'la_value_of_this'
5284 and 'la_lookup_symbol_nonlocal' members.
5285 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5286 lookup_symbol_static, lookup_symbol_global,
5287 lookup_symbol_aux_block.
5288 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5289 if we should search fields of this and how to do static/global
5290 lookup.
5291 (lookup_symbol_aux_block): Make extern.
5292 (basic_lookup_symbol_nonlocal): New.
5293 (lookup_symbol_static, lookup_symbol_global): Ditto.
5294 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5295 'la_lookup_symbol_nonlocal' members.
5296 * c-lang.c (c_language_defn, cplus_language_defn)
5297 (asm_language_defn, minimal_language_defn): Ditto.
5298 * jv-lang.c (java_language_defn): Ditto.
5299 * language.c (unknown_language_defn, auto_language_defn)
5300 (local_language_defn): Ditto.
5301 * m2-lang.c (m2_language_defn): Ditto.
5302 * objc-lang.c (objc_language_defn): Ditto.
5303 * scm-lang.c (scm_language_defn): Ditto.
5304 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5305 * p-lang.c (pascal_language_defn): Ditto for both.
5306 * Makefile.in (f-lang.o): Depend on value_h.
5307 (p-lang.o): Ditto.
5308
89a9d1b1
DC
53092003-05-19 David Carlton <carlton@bactrian.org>
5310
5311 * block.h: Declare block_static_block.
5312 * block.c (block_static_block): New.
5313 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5314 lookup_symbol_aux_local, calling block_static_block instead.
5315 (lookup_symbol_aux_local): Delete 'static_block' argument.
5316
eed3f8ab
DC
53172003-05-19 David Carlton <carlton@bactrian.org>
5318
5319 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5320
a09d8bda
ML
53212003-05-19 Michal Ludvig <mludvig@suse.cz>
5322
5323 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5324 register numbers mapping.
5325
69636828
AF
53262003-05-18 Adam Fedor <fedor@gnu.org>
5327
5328 * symtab.c (completion_list_objc_symbol): New function.
5329 (make_symbol_completion_list): Use it to add ObjC symbols
5330 when looking though the list.
5331 (language_search_unquoted_string): New function.
5332 (make_file_symbol_completion_list): Use it.
5333
55baeb84
AS
53342003-05-18 Andreas Schwab <schwab@suse.de>
5335
d0b45d99
AS
5336 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5337 dependencies.
5338 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5339 as m68k_linux_extract_return_value.
5340 (DEPRECATED_STORE_RETURN_VALUE): Define as
5341 m68k_linux_store_return_value.
5342 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5343 m68k_linux_extract_struct_value_address.
5344 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5345 get_next_frame, get_frame_base, get_frame_pc.
5346 (m68k_linux_frame_saved_pc): Use get_frame_base.
5347 (m68k_linux_extract_return_value): New function.
5348 (m68k_linux_store_return_value): New function.
5349 (m68k_linux_extract_struct_value_address): New function.
5350 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5351
55baeb84
AS
5352 * c-exp.y (typebase): Remove duplicate occurence of
5353 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 5354 of lookup_signed_typename.
55baeb84 5355
b6b08ebf
MK
53562003-05-18 Mark Kettenis <kettenis@gnu.org>
5357
5358 * dwarf2loc.c (find_location_expression): Change type of second
5359 argument to `size_t *'.
5360 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5361 for size variable.
5362
5ad1c190
DC
53632003-05-18 David Carlton <carlton@bactrian.org>
5364
5365 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5366 'linkage_name'. Add comment.
5367 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5368 'linkage_name'.
5369 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5370 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5371 (lookup_block_symbol): Ditto.
5372
b8b527c5
AC
53732003-05-16 Andrew Cagney <cagney@redhat.com>
5374
5375 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5376 * gdbarch.h, gdbarch.c: Re-generate.
5377 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5378 * TODO (REGISTER_BYTES): Delete reference.
5379 * alpha-tdep.c (alpha_gdbarch_init): Update.
5380 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5381 * x86-64-tdep.c (x86_64_init_abi): Update.
5382 * vax-tdep.c (vax_gdbarch_init): Update.
5383 * v850-tdep.c (v850_gdbarch_init): Update.
5384 * sparc-tdep.c (sparc_gdbarch_init): Update.
5385 * sh-tdep.c (sh_gdbarch_init): Update.
5386 * s390-tdep.c (s390_gdbarch_init): Update.
5387 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5388 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5389 (ns32k_gdbarch_init_32382): Update.
5390 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5391 * mcore-tdep.c (mcore_gdbarch_init): Update.
5392 * m68k-tdep.c (m68k_gdbarch_init): Update.
5393 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5394 * ia64-tdep.c (ia64_gdbarch_init): Update.
5395 * i386-tdep.c (i386_gdbarch_init): Update.
5396 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5397 * hppa-tdep.c (hppa_gdbarch_init): Update.
5398 * h8300-tdep.c (h8300_gdbarch_init): Update.
5399 * frv-tdep.c (frv_gdbarch_init): Update.
5400 * cris-tdep.c (cris_gdbarch_init): Update.
5401 * avr-tdep.c (avr_gdbarch_init): Update.
5402 * arm-tdep.c (arm_gdbarch_init): Update.
5403 * sparc-tdep.c (sparc_pop_frame): Update.
5404 * rs6000-tdep.c (rs6000_pop_frame): Update.
5405 * remote.c (init_remote_state): Update.
5406 (remote_prepare_to_store): Update.
5407 * remote-vx.c (vx_prepare_to_store): Update.
5408 * remote-sds.c (sds_fetch_registers): Update.
5409 (sds_prepare_to_store): Update.
5410 * remote-array.c: Update.
5411 * regcache.c (init_legacy_regcache_descr): Update.
5412 (init_regcache_descr): Update.
5413 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5414 (mips_o64_extract_return_value): Update.
5415 * irix5-nat.c (fetch_core_registers): Update.
5416 * irix4-nat.c (fetch_core_registers): Update.
5417 * i386-tdep.h: Update.
5418 * hppa-tdep.c (pa_do_registers_info): Update.
5419 (pa_do_strcat_registers_info): Update.
5420 * cris-tdep.c (cris_register_bytes_ok): Update.
5421 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5422 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5423 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5424 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5425 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5426 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5427 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5428 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5429 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5430 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5431 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5432 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5433 (REGISTER_BYTES_OK): Update.
5434 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5435 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5436
ee2842e2
ILT
54372003-05-16 Ian Lance Taylor <ian@airs.com>
5438
5439 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5440 (vax_print_insn, print_insn_arg): Remove static functions.
5441 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5442 print_insn_vax from opcodes library.
5443 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5444
973177d3
AC
54452003-05-15 Andrew Cagney <cagney@redhat.com>
5446
aaab4dba
AC
5447 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5448 * target.h (memory_breakpoint_from_pc): Delete declaration.
5449 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5450 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5451 * monitor.c (monitor_insert_breakpoint): Use
5452 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5453 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5454 * gdbarch.h, gdbarch.c: Re-generate.
5455 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5456 (sparc_gdbarch_init): Set breakpoint_from_pc to
5457 sparc_breakpoint_from_pc.
5458 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5459 (BREAKPOINT_FROM_PC): Define.
5460 (sparc_breakpoint_from_pc): Declare.
5461 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5462 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5463 (BREAKPOINT_FROM_PC): Define.
5464 (BREAKPOINT): Delete macro.
5465 * target.h: Update comment.
5466 * s390-tdep.c (s390_gdbarch_init): Update comments.
5467 * remote.c: Update comments.
5468 * remote-mips.c: Update comments.
5469 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5470 * mem-break.c: Update comment.
5471 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5472 (ia64_memory_insert_breakpoint): Update.
5473 * config/sparc/tm-sparc.h: Update comment.
5474 * config/pa/tm-hppa64.h: Update comment.
5475 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5476 (rs6000_breakpoint_from_pc): Update.
5477 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5478 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5479 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5480 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5481 (mips_breakpoint_from_pc): Update.
5482 (mips_dump_tdep): Update.
5483
e06963ff
AC
5484 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5485 * minsyms.c (lookup_minimal_symbol): Inline
5486 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5487
973177d3
AC
5488 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5489 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5490 * p-lang.c (pascal_printstr): Ditto.
5491 * objc-lang.c (objc_printstr): Ditto.
5492 * m2-lang.c (m2_printstr): Ditto.
5493 * jv-valprint.c (java_print_value_fields): Ditto.
5494 * f-lang.c (f_printstr): Ditto.
5495 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5496 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5497 for repeat_count_threshold.
5498 * Makefile.in (cp-valprint.o): Update dependencies.
5499
5ea2bd7f 55002003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5501
5ea2bd7f
JJ
5502 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5503 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
5504 they start with mov r2,r12. Support skipping over indirect stores
5505 of the input registers. Upon hitting a non-nop branch instruction
5506 or predicated instruction, bail out by setting lim_pc to the current
5507 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
5508 beyond our calculated value and we have trust_limit set,
5509 use the lim_pc value.
5510
cc8c88f3
AC
55112003-05-15 Andrew Cagney <cagney@redhat.com>
5512
5513 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5514 generic_find_dummy_frame.
5515 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5516 (deprecated_generic_find_dummy_frame): Update.
5517 (deprecated_read_register_dummy): Update.
5518 * frame.c (deprecated_generic_get_saved_register): Update.
5519
909cd28e
TR
55202003-05-15 Theodore A. Roth <troth@openavr.org>
5521
5522 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5523 (avr_gdbarch_init): Set breakpoint_from_pc method.
5524
b923b08d
AC
55252003-05-15 Andrew Cagney <cagney@redhat.com>
5526
5527 * regcache.c (build_regcache): Set deprecated_register_valid
5528 directly.
5529 (deprecated_grub_regcache_for_register_valid): Delete function.
5530 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5531 declaration.
5532
ae2f03ac 55332003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
5534
5535 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
5536 * symtab.c (lookup_symbol_aux): Delete calls to
5537 lookup_symbol_aux_minsyms.
5538 (lookup_symbol_aux_minsyms): Comment out function and
5539 prototype. Delete lookup by mangled name.
ae2f03ac 5540
18ec9831
KB
55412003-05-14 Kevin Buettner <kevinb@redhat.com>
5542
5543 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5544 correctly indicate an empty stack and ``stack_allocated'' to the
5545 indicate the number of elements initially allocated.
5546 (dwarf_expr_grow_stack): Simplify method for computing new
5547 stack size. Don't loop infinitely if ``stack_len'' is zero.
5548 (execute_stack_op): Move ``ctx->in_reg'' initialization
5549 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5550 be used in conjuction with DW_OP_piece. Revise error message
5551 accordingly.
5552
de18ac1f
TR
55532003-05-14 Theodore A. Roth <troth@openavr.org>
5554
5555 * MAINTAINERS: Update my email address.
5556 * avr-tdep.c: Ditto.
5557
176620f1
EZ
55582003-05-14 Elena Zannoni <ezannoni@redhat.com>
5559
5560 * symtab.h (enum domain_enum): Rename from namespace_enum.
5561 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5562 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5563 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5564 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5565 TYPES_NAMESPACE, METHODS_NAMESPACE.
5566 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5567 (struct symbol, struct partial_symbol): Rename field
5568 'namespace_enum namespace' to 'domain_enum domain'.
5569 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5570 Delete old define kludge for namespace.
5571
5572 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5573 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5574 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5575 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5576 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5577 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5578 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5579 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5580 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5581 occurrences of the above.
5582
b7f31508
ILT
55832003-05-14 Ian Lance Taylor <ian@airs.com>
5584
5585 * Makefile.in (install-only): Use $(SHELL) when running
5586 mkinstalldirs.
5587
2fdbdd39
ILT
55882003-05-13 Ian Lance Taylor <ian@airs.com>
5589
a208d82c
ILT
5590 * MAINTAINERS (write after approval): Add myself.
5591
2fdbdd39
ILT
5592 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5593 second and third arguments.
5594 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5595 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5596
fbd9dcd3
AC
55972003-05-13 Andrew Cagney <cagney@redhat.com>
5598
5599 * defs.h (store_address): Delete declaration.
5600 findvar.c (store_address): Delete function.
5601 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5602 store_unsigned_integer.
5603 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5604 * v850-tdep.c (v850_push_arguments): Ditto.
5605 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5606 * sh-tdep.c (sh64_get_saved_register): Ditto.
5607 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5608 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5609 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5610 (mips_get_saved_register): Ditto.
5611 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5612 (find_func_descr, ia64_push_arguments): Ditto.
5613 * i386-tdep.c (i386_push_arguments): Ditto.
5614 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5615 * frv-tdep.c (frv_push_arguments): Ditto.
5616 * frame.c (legacy_saved_regs_prev_register): Ditto.
5617 (deprecated_generic_get_saved_register): Ditto.
5618 * findvar.c (unsigned_address_to_pointer): Ditto.
5619 * dwarf2read.c (dwarf2_const_value): Ditto.
5620 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5621 * alpha-tdep.c (alpha_push_arguments): Ditto.
5622
6760f9e6
JB
56232003-05-12 J. Brobecker <brobecker@gnat.com>
5624
5625 * NEWS: Mention that the hppa-hpux port has been partially
5626 multiarched (32bit ABIT only, so far).
5627
30e221b4
AC
56282003-05-11 Andrew Cagney <cagney@redhat.com>
5629
5630 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5631 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5632 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5633 sim/testsuite/sim/arm/misaligned2.ms, and
5634 sim/testsuite/sim/arm/misaligned3.ms.
5635 * disasm.h (struct ui_file): Add opaque struct declaration.
5636 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5637 * frame.h (struct ui_file): Ditto.
5638
dea7f9ba
MK
56392003-05-11 Mark Kettenis <kettenis@gnu.org>
5640
5641 * value.h: Pretty print.
5642
01986c48
MK
56432003-05-10 Mark Kettenis <kettenis@gnu.org>
5644
5645 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5646
123a958e
AC
56472003-05-08 Andrew Cagney <cagney@redhat.com>
5648
5649 * regcache.h (max_register_size): Delete declaration.
5650 * regcache.c (max_register_size): Delete function.
5651 (struct regcache_descr): Delete field "max_register_size".
5652 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5653 registers fit in MAX_REGISTER_SIZE.
5654 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5655 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5656 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5657 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5658 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5659 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5660 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5661 * dve3900-rom.c, hppa-tdep.c: Ditto.
5662
eb294659
DC
56632003-05-08 David Carlton <carlton@math.stanford.edu>
5664
5665 * valops.c (push_word): Fix typo.
5666
d9d9c31f
AC
56672003-05-08 Andrew Cagney <cagney@redhat.com>
5668
5669 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5670 * gdbarch.h: Re-generate.
5671 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5672 (legacy_max_register_raw_size): Delete declaration.
5673 * regcache.c (legacy_max_register_raw_size): Delete function.
5674 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5675 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5676 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5677 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5678 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5679 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5680 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5681 * findvar.c, dwarf2cfi.c: Ditto.
5682
22540ece
AC
56832003-05-08 Andrew Cagney <cagney@redhat.com>
5684
5685 * mips-tdep.c (read_signed_register): New function, moved to here
5686 from "regcache.c".
5687 (read_signed_register_pid): Ditto.
5688 * regcache.c (read_signed_register_pid): Delete function, moved to
5689 "mips-tdep.c".
5690 (read_signed_register): Ditto.
5691 * regcache.h (read_signed_register): Delete declaration.
5692 (read_signed_register_pid): Delete declaration.
5693
0c92afe8
AC
56942003-05-08 Andrew Cagney <cagney@redhat.com>
5695
5696 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5697 * gdbarch.h: Re-generate.
5698 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5699 (legacy_max_register_virtual_size): Delete declaration.
5700 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5701 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5702 * tracepoint.c (memrange_sortmerge): Ditto.
5703 * sparc-tdep.c (sparc_print_registers): Ditto.
5704 * regcache.c (legacy_max_register_virtual_size): Delete function.
5705
6037b830
JB
57062002-05-08 J. Brobecker <brobecker@gnat.com>
5707
5708 * fork-child.c (escape_bang_in_quoted_argument): New function.
5709 (fork_inferior): Escape '!' characters in quoted arguments
5710 only when needed.
5711
5d62c8b1
JB
57122003-05-08 J. Brobecker <brobecker@gnat.com>
5713
5714 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5715 the language of the CU is not currently supported by GDB.
5716
20a0e81d
JB
57172003-05-08 J. Brobecker <brobecker@gnat.com>
5718
5719 * defs.h (language): Add language_minimal enum value.
5720 * c-lang.c (minimal_language_defn): New language definition.
5721 (_initialize_c_language): Add the new minimal language to the list
5722 of languages known to GDB.
5723
710ee10a
KB
57242003-05-08 Kevin Buettner <kevinb@redhat.com>
5725
5726 * frame.c (get_frame_type): Don't attempt to lazily initialize
5727 frame's unwinder for legacy frames.
5728
1750fa04
AC
57292003-05-07 Andrew Cagney <cagney@redhat.com>
5730
5731 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5732 and "regcache" parameters.
5733 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5734
ddf9f258 57352003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
5736
5737 * dwarf2read.c (dwarf_decode_lines): Only use output of
5738 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
5739 the current address.
5740
87767c29
AC
57412003-05-07 Andrew Cagney <cagney@redhat.com>
5742
5743 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5744 code.
5745
5e7b2f39
JB
57462003-05-07 Jim Blandy <jimb@redhat.com>
5747
5748 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5749 'maint info symtabs' and 'maint info psymtabs'.
5750 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5751 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5752 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5753 Declarations updated.
5754 * maint.c (maintenance_list_command): Delete.
5755 (_initialize_maint_cmds): Update calls to add_cmd.
5756 * gdbcmd.h (maintenancelistlist): Delete declaration.
5757 * cli/cli-cmds.c (maintenancelistlist): Delete.
5758 (init_cmd_lists): Don't initialize it.
5759 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5760
f6684c31
AC
57612003-05-07 Andrew Cagney <cagney@redhat.com>
5762
5763 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5764 "regcache".
5765 (d10v_print_registers_info): Update.
5766 (d10v_dmap_register, d10v_imap_register): Delete functions.
5767 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5768 and "imap_register".
5769 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5770 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5771 * arch-utils.c (generic_remote_translate_xfer_address): Add
5772 "regcache" and "gdbarch" parameters.
5773 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5774 parameter. Change class to multi-arch.
5775 * gdbarch.h, gdbarch.c: Re-generate.
5776 * remote.c (remote_xfer_memory): Use
5777 gdbarch_remote_translate_xfer_address.
8ffd9b1b 5778
e4846b08
JJ
57792003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5780
5781 * infrun.c (prev_pc): Move declaration ahead of proceed().
5782 (proceed): Refresh prev_pc value before resuming.
5783 (stop_stepping): Remove code to refresh prev_pc.
5784
6b71b8ac
KW
57852003-05-06 Kris Warkentin <kewarken@qnx.com>
5786
5787 * nto-tdep.c: Removed stray comment.
5788
47979a4b
KW
57892003-05-06 Kris Warkentin <kewarken@qnx.com>
5790
5791 * i386-nto-tdep.c: Fix old K&R function definitions.
5792 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5793 Also change add_show_from_set() call to add_setshow_cmd().
5794 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5795
00905d52
AC
57962003-05-05 Andrew Cagney <cagney@redhat.com>
5797
5798 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5799 (fprint_dummy_frames): New function.
5800 (maintenance_print_dummy_frames): New function.
5801 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5802 * frame.c (fprint_frame_id): Make global.
5803 * frame.h (fprint_frame_id): Declare.
5804 * Makefile.in (dummy-frame.o): Update dependencies.
5805
b1e29e33
AC
58062003-05-05 Andrew Cagney <cagney@redhat.com>
5807
5808 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5809 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5810 SIZEOF_CALL_DUMMY_WORDS.
5811 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5812 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5813 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5814 CALL_DUMMY_BREAKPOINT_OFFSET.
5815 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5816 CALL_DUMMY_START_OFFSET.
5817 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5818 * gdbarch.h, gdbarch.c: Re-generate.
5819 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5820 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5821 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5822 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5823 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5824 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5825 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5826 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5827 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5828 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5829 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5830 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5831 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5832 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5833 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
5834
58352003-05-05 Kris Warkentin <kewarken@qnx.com>
5836
5837 * configure.tgt: Add i[3456]86-*-nto*.
5838 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5839 * nto-tdep.c: New file. Neutrino target support routines.
5840 * nto-tdep.h: New file. Neutrino target header.
5841 * config/tm-qnxnto.h: New file.
5842 * config/i386/i386nto.mt: New file.
5843 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 5844
0ce3d317
AC
58452003-05-04 Andrew Cagney <cagney@redhat.com>
5846
5847 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5848 (load_infrun_state): Ditto.
5849 (struct thread_info): Drop "prev_func_name" field.
5850 * thread.c (load_infrun_state): Update.
5851 (save_infrun_state): Update.
5852 * infrun.c (prev_func_name): Delete variable.
5853 (init_wait_for_inferior): Do not clear prev_func_name.
5854 (stop_stepping, keep_going, context_switch): Do not swap
5855 prev_func_name.
5856 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5857 instead of PC_IN_SIGTRAMP.
5858
46654a5b
AC
58592003-05-04 Andrew Cagney <cagney@redhat.com>
5860
5861 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5862 REGISTER_BYTE with register_offset_hack.
5863 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5864 that REGISTER_BYTE is consistent with the regcache.
5865 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5866 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 5867
14b08c1b
MK
58682003-05-04 Mark Kettenis <kettenis@gnu.org>
5869
04c8243f
MK
5870 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5871 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5872
14b08c1b
MK
5873 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5874
c7a11e01
JB
58752003-05-03 J. Brobecker <brobecker@gnat.com>
5876
5877 From Thierry Schneider <tpschneider1@yahoo.com>
5878 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5879 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5880 (mi-cmd-symbol.o): Add rule.
5881
7043d8dc
AC
58822003-05-03 Andrew Cagney <cagney@redhat.com>
5883
5884 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5885 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5886 * gdbarch.h, gdbarch.c: Re-generate.
5887 * d10v-tdep.c (d10v_push_dummy_code): New function.
5888 (d10v_gdbarch_init): Set push_dummy_code.
5889 * infcall.c (legacy_push_dummy_code): New function.
5890 (generic_push_dummy_code): New function.
5891 (push_dummy_code): New function.
5892 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5893 instead of dummy_addr, to push_dummy_call. Move call to
5894 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5895 switch.
5896 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5897
92bf2b80
AC
58982003-05-03 Andrew Cagney <cagney@redhat.com>
5899
5900 * disasm.h (print_insn): Declare.
5901 * disasm.c (init_gdb_disassemble_info): New function.
5902 (gdb_disassembly): Call init_gdb_disassemble_info.
5903 (gdb_print_insn): New function.
5904 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5905 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5906 * mcore-tdep.c: Include "disasm.h"
5907 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5908 * d10v-tdep.c: Include "disasm.h".
5909 (display_trace): Call gdb_print_insn, instead of print_insn.
5910 (print_insn): Delete function.
5911 * printcmd.c: Include "disasm.h".
5912 (print_insn): Delete function.
5913 (print_formatted): Call gdb_print_insn, instead of print_insn.
5914 * Makefile.in (printcmd.o): Update dependencies.
5915 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 5916
27d94c49
AC
59172003-05-02 Andrew Cagney <cagney@redhat.com>
5918
82de1e5b
AC
5919 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5920 PC_REGNUM, re-indent.
5921 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5922 PC_REGNUM isn't set.
5923
27d94c49
AC
5924 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5925 * gdbarch.h, gdbarch.c: Re-generate.
5926 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5927 register_virtual_size, pc_regnum, or register_bytes.
5928 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5929 (d10v_register_type): Use D10V_PC_REGNUM.
5930 (d10v_print_registers_info, d10v_read_pc): Ditto.
5931 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5932 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5933
a9c0dc7f
DC
59342003-05-02 David Carlton <carlton@bactrian.org>
5935
5936 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5937 the name with mstrsave.
5938
e33d66ec
EZ
59392003-05-02 Elena Zannoni <ezannoni@redhat.com>
5940
5941 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5942 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5943 (host_charset_name, target_charset_name): New vars for use by
5944 set/show commands.
5945 (host_charset_enum, target_charset_enum): New enums for set/show
5946 commands.
5947 (set_charset_sfunc, set_host_charset_sfunc,
5948 set_target_charset_sfunc): New functions.
5949 (set_host_charset, set_target_charset): Make static.
5950 (list_charsets, set_host_charset_command,
5951 set_target_charset_command): Delete functions.
5952 (show_charset_command): Rewrite as....
5953 (show_charset): Hook this up with the set/show command mechanism.
5954 (_initialize_charset): Change names of charsets to match the
5955 set/show enums. Use host_charset_name and target_charset_name.
5956 Use set/show mechanism for charset, host-charset, target-charset
5957 commands. Do not make 'show host-charset' and 'show
5958 target-charset' be aliases of 'show charset'.
5959
5960 * charset.h (set_host_charset, set_target_charset): Don't export,
5961 they are not used outside the file.
5962
2b6fd0d8
AC
59632003-05-01 Andrew Cagney <cagney@redhat.com>
5964
5965 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5966 (gdb_disassembly): Make "di" non static, always initialize and
5967 cleanup. Always use dis_asm_read_memory.
5968 (gdb_dis_asm_read_memory): Delete function.
5969
6ae2f580
AC
59702003-05-01 Andrew Cagney <cagney@redhat.com>
5971
5972 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5973 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5974
810ecf9f
AC
59752003-04-30 Andrew Cagney <cagney@redhat.com>
5976
5977 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5978 "tm_print_insn_info".
5979 (TARGET_PRINT_INSN_INFO): Delete macro.
5980 (dis_asm_read_memory): Delete function declaration.
5981 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5982 (tm_print_insn_info): Delete variable definition.
5983 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5984 * gdbarch.h, gdbarch.c: Re-generate.
5985 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5986 "deprecated_tm_print_insn_info".
5987 * mcore-tdep.c (mcore_dump_insn): Ditto.
5988 * mips-tdep.c (mips_gdbarch_init): Ditto.
5989 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5990 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5991 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5992 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5993 instead of TARGET_PRINT_INSN_INFO, add comment.
5994 * s390-tdep.c (s390_get_frame_info): Instead of
5995 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5996 (s390_check_function_end, s390_is_sigreturn): Ditto.
5997 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5998 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5999 * disasm.c: Include "gdbcore.h".
6000 (_initialize_disasm): New function, initialize
6001 "deprecated_tm_print_insn_info".
6002 (deprecated_tm_print_insn_info): New variable.
6003 (dis_asm_read_memory): Moved from "corefile.c", made static.
6004 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6005 * Makefile.in (disasm.o): Update dependencies.
6006
07020390
AC
60072003-04-30 Andrew Cagney <cagney@redhat.com>
6008
6009 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6010
a9fa03de
AF
60112003-04-29 Adam Fedor <fedor@gnu.org>
6012
6013 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6014 * infcall.c (find_function_addr): Make non-static.
6015 * infcall.h (find_function_addr): Declare.
6016 * Makefile.in (eval.o): Update dependencies.
6017
1bae87b9
AF
60182003-04-28 Adam Fedor <fedor@gnu.org>
6019
6020 * symtab.c (symbol_find_demangled_name): Check for and demangle
6021 ObjC symbols.
6022 (symbol_init_demangled_name): Init for language_objc as well.
6023
0ba6dca9
AC
60242003-04-28 Andrew Cagney <cagney@redhat.com>
6025
6026 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6027 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6028 * gdbarch.h, gdbarch.c: Re-generate.
6029 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6030 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6031 * inferior.h (deprecated_read_fp): Rename read_fp.
6032 (generic_target_read_fp): Delete declaration.
6033 * regcache.c (generic_target_read_fp): Delete function.
6034 (deprecated_read_fp): Replace read_fp, use
6035 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6036 * d10v-tdep.c (d10v_read_fp): Delete function.
6037 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6038
6039 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6040 deprecated_target_read_fp to generic_target_read_fp.
6041 * sh-tdep.c (sh_gdbarch_init): Ditto.
6042 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6043 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6044 * frv-tdep.c (frv_gdbarch_init): Ditto.
6045
6046 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6047 deprecated_fp_regnum.
6048 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6049 * vax-tdep.c (vax_gdbarch_init): Ditto.
6050 * v850-tdep.c (v850_gdbarch_init): Ditto.
6051 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6052 * sh-tdep.c (sh_gdbarch_init): Ditto.
6053 * s390-tdep.c (s390_gdbarch_init): Ditto.
6054 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6055 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6056 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6057 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6058 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6059 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6060 * i386-tdep.c (i386_gdbarch_init): Ditto.
6061 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6062 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6063 * frv-tdep.c (frv_gdbarch_init): Ditto.
6064 * cris-tdep.c (cris_gdbarch_init): Ditto.
6065 * avr-tdep.c (avr_gdbarch_init): Ditto.
6066 * arm-tdep.c (arm_gdbarch_init): Ditto.
6067 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6068
6069 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6070 * v850-tdep.c (v850_gdbarch_init): Ditto.
6071 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6072 * sh-tdep.c (sh_gdbarch_init): Ditto.
6073 * s390-tdep.c (s390_gdbarch_init): Ditto.
6074 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6075 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6076 * mips-tdep.c (mips_gdbarch_init): Ditto.
6077 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6078 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6079 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6080 * frv-tdep.c (frv_gdbarch_init): Ditto.
6081 * avr-tdep.c (avr_gdbarch_init): Ditto.
6082 * arm-tdep.c (arm_gdbarch_init): Ditto.
6083
6084 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6085 DEPRECATED_FP_REGNUM.
6086 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6087 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6088 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6089 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6090 (sparc32_register_virtual_type): Ditto.
6091 * sh-tdep.c (sh64_frame_chain): Ditto.
6092 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6093 (sh_nofp_frame_init_saved_regs): Ditto.
6094 (sh64_nofp_frame_init_saved_regs): Ditto.
6095 (sh_fp_frame_init_saved_regs): Ditto.
6096 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6097 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6098 * procfs.c (procfs_fetch_registers): Ditto.
6099 (procfs_store_registers): Ditto.
6100 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6101 (store_inferior_registers, fetch_core_registers): Ditto.
6102 (fetch_kcore_registers, clear_regs): Ditto.
6103 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6104 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6105 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6106 * nlm/i386.c (do_status): Ditto.
6107 * mipsv4-nat.c (supply_gregset): Ditto.
6108 * mips-tdep.c: Ditto for comments.
6109 * mips-nat.c (fetch_inferior_registers): Ditto.
6110 (store_inferior_registers, fetch_core_registers): Ditto.
6111 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6112 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6113 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6114 (i386_do_pop_frame, i386_register_type): Ditto.
6115 * hppa-tdep.c (hppa_frame_chain): Ditto.
6116 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6117 (hppa_pop_frame, hppa_read_fp): Ditto.
6118 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6119 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6120 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6121 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6122 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6123 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6124 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6125 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6126 * blockframe.c: Ditto for comments.
6127 * arch-utils.h: Ditto for comments.
6128 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6129 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6130 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6131 * alpha-tdep.h: Ditto for comments.
6132 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6133 (alpha_cannot_store_register): Ditto.
6134 (alpha_push_dummy_frame): Ditto.
6135 * alpha-nat.c (supply_gregset): Ditto.
6136
6137 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6138 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6139 * config/sparc/tm-sparc.h: Update comment.
6140
6141 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6142 deprecated_read_fp instead of TARGET_READ_FP.
6143 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6144 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6145 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6146 deprecated_read_fp instead of read_fp.
6147 * s390-tdep.c (s390_push_arguments): Ditto.
6148 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6149 * frame.h: Ditto in comments.
6150 * frame.c (legacy_get_prev_frame): Ditto.
6151 * dummy-frame.c (dummy_frame_this_id): Ditto.
6152 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6153
d7a27068
AC
61542003-04-28 Andrew Cagney <cagney@redhat.com>
6155
6156 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6157 * gdbarch.h, gdbarch.c: Re-generate.
6158 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6159 * vax-tdep.c (_initialize_vax_tdep): Update.
6160 * v850-tdep.c (_initialize_v850_tdep): Update.
6161 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6162 * s390-tdep.c (_initialize_s390_tdep): Update.
6163 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6164 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6165 * mips-tdep.c (_initialize_mips_tdep): Update.
6166 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6167 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6168 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6169 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6170 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6171 * frv-tdep.c (_initialize_frv_tdep): Update.
6172 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6173 (_initialize_cris_tdep): Update.
6174 * arch-utils.c (legacy_print_insn): Update.
6175 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6176
d2630e69
AF
61772003-04-26 Adam Fedor <fedor@gnu.org>
6178
6179 * linespec.c (decode_objc): New function to decode ObjC calls
6180 (decode_line_1): Check for ObjC calls (using decode_objc)
6181 * Makefile (linespec.o): Update dependencies.
6182
3086aeae
DJ
61832003-04-26 Daniel Jacobowitz <drow@mvista.com>
6184
6185 * breakpoint.h (struct breakpoint_ops): New.
6186 (struct breakpoint): Add ops member.
6187
6188 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6189 (mention): Use new breakpoint ops member.
6190 (set_raw_breakpoint): Initialize ops field to NULL.
6191 (print_exception_catchpoint, print_one_exception_catchpoint)
6192 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6193 (gnu_v3_exception_catchpoint_ops): New.
6194 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6195
1fbec6c3
AF
61962003-04-25 Adam Fedor <fedor@gnu.org>
6197
6198 * Makefile.in (COMMON_OBS): Add objc-lang.o
6199
0ef21242
AC
62002003-04-25 Andrew Cagney <cagney@redhat.com>
6201
6202 * d10v-tdep.c (print_insn): Delete function.
6203 (display_trace): Use TARGET_PRINT_INSN.
6204 (_initialize_d10v_tdep): Do not set tm_print_insn.
6205 (d10v_gdbarch_init): Set print_insn.
6206
f75493ed
AC
62072003-04-25 Andrew Cagney <cagney@redhat.com>
6208
6209 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6210 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6211 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6212 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6213 (nr_dmap_regs, a0_regnum): ... new functions.
6214 (d10v_print_registers_info): Use a0_regnum, use register_size.
6215 (d10v_register_byte): Delete function.
6216 (d10v_register_raw_size): Delete function.
6217 (d10v_register_type): Use a0_regnum.
6218 (d10v_print_registers_info): Use a0_regnum.
6219 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6220 (d10v_gdbarch_init): Do not set register_byte or
6221 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6222 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6223 extract_address.
6224 (trace_command): Use XCALLOC.
6225 (print_insn): Delete reference to tm_print_insn.
6226 (saved_regs_unwinder): Use store_unsigned_integer instead of
6227 store_address.
6228 * frame.h (FRAME_OBSTACK_CALLOC): Define
6229
2202b100
DC
62302003-04-25 David Carlton <carlton@bactrian.org>
6231
6232 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6233
4e45ca2e
AF
62342003-04-24 Adam Fedor <fedor@gnu.org>
6235
6236 * objc-lang.c: Include "valprint.h"
6237 * Makefile.in (objc-lang.o): Update dependencies.
6238
93de3e7f
AF
62392003-04-24 Adam Fedor <fedor@gnu.org>
6240
8ffd9b1b 6241 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
6242 architecture dependant compilation and mark as unimplemented
6243 (until they get put in the gdbarch vector).
6244
0f20eeea
DC
62452003-04-23 David Carlton <carlton@bactrian.org>
6246
6247 * cp-support.c (cp_find_first_component): Accept 'operator' in
6248 more locations.
6249
74cfe982
AC
62502003-04-23 Andrew Cagney <cagney@redhat.com>
6251
6252 * infcall.c (call_function_by_hand): Eliminate redundant
6253 indentation. Move "saved_async" and "old_cleanups" to where they
6254 are needed.
8ffd9b1b 6255
52557533
AC
62562003-04-23 Andrew Cagney <cagney@redhat.com>
6257
6258 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6259 and "buffer". Move the "name" code to where it is needed.
6260
158775de
AC
62612003-04-23 Andrew Cagney <cagney@redhat.com>
6262
6263 * infcall.c (call_function_by_hand): Move variables "start_sp",
6264 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6265 code to ON_STACK switch branch.
8ffd9b1b 6266
ebc7896c
AC
62672003-04-23 Andrew Cagney <cagney@redhat.com>
6268
6269 * infcall.c (call_function_by_hand): Make declaration of "i",
6270 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6271 lint.
6272
d727590f
AC
62732003-04-23 Andrew Cagney <cagney@redhat.com>
6274
6275 * infcall.c (call_function_by_hand): Delete variable
6276 "n_method_args". Localize "param_type"'s declaration to the loop
6277 that it is used. Reinstate code assigning to said variable -
6278 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6279 Rationalize code using "param_type".
6280
d585e13a
AC
62812003-04-22 Andrew Cagney <cagney@redhat.com>
6282
6283 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6284 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6285 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6286 to DEPRECATED_PUSH_RETURN_ADDRESS.
6287
051caad9
KB
62882003-04-22 Kevin Buettner <kevinb@redhat.com>
6289
6290 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6291 on the DWARF2 register number prior to fetching a register.
6292
77296879
JB
62932003-04-22 J. Brobecker <brobecker@gnat.com>
6294
6295 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6296 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 6297 this macro was always set to 0.
77296879
JB
6298 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6299 considering the fact that this macro was always set to 0.
6300 * hppa-tdep.h (hppa_store_return_value): Likewise.
6301 (hppa_extract_return_value): Likewise.
6302
4252f1df
JB
63032003-04-22 J. Brobecker <brobecker@gnat.com>
6304
6305 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6306 the hppa-pro target only.
6307
14604c6b
JB
63082003-04-21 J. Brobecker <brobecker@gnat.com>
6309
6310 Ongoing multi-arch conversion effort for HP/UX:
6311 * config/pa/tm-hppa.h: Move all macro that are no longer
6312 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6313 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6314
77eb01d1
JB
63152003-04-21 J. Brobecker <brobecker@gnat.com>
6316
6317 * config/pa/tm-hppa.h: Obsolete a section that was only used
6318 for hppa-pro.
6319
61995b3b
JB
63202003-04-21 J. Brobecker <brobecker@gnat.com>
6321
6322 Ongoing multi-arch conversion for HP/UX.
6323 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6324 if already defined (allows hppa64 to stay non-multiarched for now).
6325 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6326
4aa79dcc
AC
63272003-04-21 Andrew Cagney <cagney@redhat.com>
6328
6329 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6330
0f751ff2
AC
63312003-04-21 Andrew Cagney <cagney@redhat.com>
6332
6333 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6334 "i386_num_mmx_regs".
6335
04714b91
AC
63362003-04-21 Andrew Cagney <cagney@redhat.com>
6337
6338 * infcall.c: New file.
6339 * infcall.h: New file.
6340 * valarith.c: Include "infcall.h".
6341 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6342 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6343 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6344 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6345 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6346 (SFILES): Add "infcall.c"
6347 (COMMON_OBS): Add "infcall.o".
6348 (infcall.o): Specify dependencies.
6349 * value.h (call_function_by_hand): Delete declaration.
6350 * inferior.h (run_stack_dummy): Delete declaration.
6351 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6352 (run_stack_dummy): Move to "infcall.c", merged into
6353 call_function_by_hand.
6354 * valops.c (call_function_by_hand): Moved to "infcall.c".
6355 (find_function_addr, value_arg_coerce): Ditto.
6356 (unwindonsignal_p, coerce_float_to_double): Ditto.
6357 (_initialize_valops): Move "set/show coerce-float-to-double", and
6358 "set/show unwindonsignal" commands to "infcall.c".
6359 * v850-tdep.c, target.h: Update comments.
6360 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6361 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6362 (sh64_init_extra_frame_info): Update comments.
6363 * mn10300-tdep.c: Update comments.
6364 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6365 * config/sparc/tm-sparc.h: Update comments.
6366 * breakpoint.h: Update comments.
6367 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6368 * arm-tdep.c: Update comment.
6369
f9d3c2a8
MK
63702003-04-19 Mark Kettenis <kettenis@gnu.org>
6371
c40e1eab
MK
6372 * i386-tdep.c (i386_num_register_names): New variable.
6373 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6374 (MM0_REGNUM): Remove redundant parentheses in define.
6375 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6376 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6377 i386_mxcsr_regnum_p): Remove redundant parentheses.
6378 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 6379
94ea66b3
MK
6380 * i386-tdep.c (i386_extract_return_value,
6381 i386_store_return_value): Correct check for availability of
6382 floating-point registers.
6383
54299a1d
MK
6384 * i386-tdep.c (i386_frame_num_args): Remove function.
6385 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6386
c86c27af
MK
6387 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6388 mmx_regnum_to_fp_regnum. Adjust all callers.
6389
f9d3c2a8
MK
6390 * i386-tdep.c (i386_get_longjmp_target): Use
6391 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6392 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6393 extract_address.
6394
94ba74a9
MK
63952003-04-19 Mark Kettenis <kettenis@gnu.org>
6396
6397 * core-regset.c: Update comments to reflect reality. Re-order
6398 includes.
6399 (fetch_core_registers): Use switch instead of if. Remove
6400 redundant prototype.
6401
4074e13c
JB
64022003-04-18 Jim Blandy <jimb@redhat.com>
6403
6404 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 6405 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 6406
e3ab4aba
RH
64072003-04-17 Richard Henderson <rth@redhat.com>
6408
6409 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6410
627bf7c1
EZ
64112003-04-17 Michael Snyder <msnyder@redhat.com>
6412 Karen Bennet <bennet@redhat.com>
6413
6414 Committed by Elena Zannoni <ezannoni@redhat.com>
6415 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 6416
514621a9
EZ
64172003-04-17 Elena Zannoni <ezannoni@redhat.com>
6418
6419 * values.c (value_being_returned): Don't fetch the return
fbe586ae 6420 value if the return type is void.
514621a9 6421
b4acd559
JJ
64222003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6423
6424 * thread-db.c: Reindented.
8ffd9b1b 6425
530b167e 64262003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6427
6428 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6429 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
6430 as types.
6431
0a48e7e8
MS
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
8ffd9b1b 6455
ab9fe00e
KB
64562003-04-16 Kevin Buettner <kevinb@redhat.com>
6457
610a3745 6458 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
6459 the size of ``long double'' to 16, instead of 8.
6460
e64a344c
MK
64612003-04-16 Mark Kettenis <kettenis@gnu.org>
6462
6463 * i386-linux-nat.c: Add some whitespace to make things more
6464 readable.
6465 (fetch_register, store_register, fetch_inferior_registers,
6466 store_inferior_registers): Get rid of assignment in if-statement.
6467 (store_register): Fix typo in error message.
6468
25d41031
AC
64692003-04-16 Andrew Cagney <cagney@redhat.com>
6470
6471 * utils.c (xmmalloc): Always allocate something, matches
6472 libiberty/xmalloc's semantics.
6473 (xmrealloc, xmcalloc): Ditto.
6474
c50901fd
AC
64752003-04-16 Andrew Cagney <cagney@redhat.com>
6476
6477 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6478 update comments.
6479 (get_frame_type): Initialize unwind and type when needed.
6480 (get_frame_id, frame_register_unwind): Ditto.
6481
f81824a9
AC
64822003-04-16 Andrew Cagney <cagney@redhat.com>
6483
6484 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6485 obsolete.
6486 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6487 * sparcl-stub.c: Obsolete file.
6488 * config/sparc/tm-sparclet.h: Obsolete file.
6489 * sparclet-stub.c: Obsolete file.
6490 * sparclet-rom.c: Obsolete file.
6491 * sparcl-tdep.c: Obsolete file.
6492 * config/sparc/tm-sparclite.h: Obsolete file.
6493 * config/sparc/sparclite.mt: Obsolete file.
6494 * config/sparc/sparclet.mt: Obsolete file.
6495 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6496 sparc86x-*-* obsolete.
6497
9219021c
DC
64982003-04-15 David Carlton <carlton@math.stanford.edu>
6499
6500 * Makefile.in (SFILES): Add cp-namespace.c.
6501 (COMMON_OBS): Add cp-namespace.o.
6502 (block.o): Depend on gdb_obstack_h and cp_support_h.
6503 (buildsym.o): Depend on cp_support_h.
6504 (cp-namespace.o): New.
6505 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6506 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6507 (dwarf2read.o): Depend on cp_support_h.
6508 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6509 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6510 processing_current_namespace.
6511 (read_namespace): Update processing_current_namespace; check for
6512 anonymous namespaces.
6513 (dwarf2_name): New function.
6514 (dwarf2_extension): Ditto.
6515 * cp-support.h: Update copyright, contributors.
6516 Add inclusion guards.
6517 Add opaque declaration for structs obstack, block, symbol.
6518 (struct using_direct): New struct.
6519 Add declarations for cp_find_first_component,
6520 cp_entire_prefix_len, processing_has_namespace_info,
6521 processing_current_namespace, cp_is_anonymous,
6522 cp_add_using_directive, cp_initialize_namespace,
6523 cp_finalize_namespace, cp_set_block_scope,
6524 cp_scan_for_anonymous_namespaces.
6525 * cp-namespace.c: New file.
6526 * cp-support.c: Update copyright.
6527 Include ctype.h, gdb_assert.h, gdbcmd.h.
6528 New variable maint_cplus_cmd_list.
6529 (cp_find_first_component): New function.
6530 (cp_entire_prefix_len, maint_cplus_command)
6531 (first_component_command, _initialize_cp_support): Ditto.
6532 * buildsym.c: Include cp-support.h.
6533 New variable using_list.
6534 (add_symbol_to_list): Check for anonymous namespaces.
6535 (finish_block): Set block's scope.
6536 (start_symtab): Initialize C++ namespace support.
6537 (end_symtab): Finalize C++ namespace support.
6538 * block.h: Add opaque declarations for structs
6539 block_namespace_info, using_direct, and obstack.
6540 Add declarations for block_set_scope and block_set_using.
6541 (struct block): Add 'language_specific' member.
6542 (BLOCK_NAMESPACE): New macro.
6543 * block.c: Include gdb_obstack.h and cp-support.h.
6544 (struct block_namespace_info): New struct.
6545 (block_set_scope): New function.
6546 (block_set_using, block_initialize_namespace): Ditto.
6547
d5a921c9
KB
65482003-04-14 Kevin Buettner <kevinb@redhat.com>
6549
6550 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6551 (locate_base): Return early if there aren't any link map offsets.
6552 (svr4_solib_create_inferior_hook): Warn if shared library support
6553 is unavailable.
6554
d2a52b27
DC
65552003-04-14 David Carlton <carlton@math.stanford.edu>
6556
6557 * symtab.c (symbol_set_names): Add prefix when storing Java names
6558 in hash table. Fix for PR java/1039.
6559
980cae7a
DC
65602003-04-14 David Carlton <carlton@math.stanford.edu>
6561
6562 * symtab.c (symbol_set_names): Rename 'name' arg to
6563 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6564 * symtab.h: Change 'name' argument in declaration of
6565 symbol_set_names to 'linkage_name'.
6566 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6567
e227b13c
AC
65682003-04-14 Andrew Cagney <cagney@redhat.com>
6569
6570 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6571 return the fully sign-extended register value.
6572 (get_frame_pointer): Ditto.
6573 (mips_pop_frame): Initialize "proc_desc" after checking for a
6574 dummy frame.
6575
36712a20
AC
65762003-04-14 Andrew Cagney <cagney@redhat.com>
6577
6578 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6579 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6580 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6581 (mips_push_register): Delete function.
6582 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6583 PUSH_FP_REGNUM.
6584
44ea7b70
JB
65852003-04-14 Jim Blandy <jimb@redhat.com>
6586
6587 * symmisc.c: #include "gdb_regex.h".
6588 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6589 functions.
6590 * maint.c (maintenance_list_command): New function.
6591 (_initialize_maint_cmds): Register the above as commands.
6592 * symtab.h (maintenance_list_symtabs,
6593 maintenance_list_psymtabs): New declarations.
6594 * cli/cli-cmds.c (maintenancelistlist): New variable.
6595 (init_cmd_lists): Initialize it.
6596 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6597 * gdbcmd.h (maintenancelistlist): New declaration.
6598 * Makefile.in (symmisc.o): Update dependencies.
6599
2d0c7962
EZ
66002003-04-14 Elena Zannoni <ezannoni@redhat.com>
6601
6602 * s390-nat.c: Include asm/types.h for addr_t.
6603
1947a811
CV
66042003-04-14 Corinna Vinschen <vinschen@redhat.com>
6605
6606 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6607 actually incoming type.
6608
adb616d7
AC
66092003-04-13 Andrew Cagney <cagney@redhat.com>
6610
6611 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6612 get_next_frame and get_frame_saved_regs.
6613
9b5e151c
AC
66142003-04-13 Andrew Cagney <cagney@redhat.com>
6615
6616 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6617 of gdbarch_num_regs.
6618
ef6e7e13
AC
66192003-04-13 Andrew Cagney <cagney@redhat.com>
6620
6621 * frame.h: Mention what replaced what in "struct frame_info".
6622 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6623 deprecated_update_frame_base_hack and
6624 deprecated_update_frame_pc_hack.
6625 * hppa-tdep.c: Ditto.
6626
61fbb938
DJ
66272003-04-13 Daniel Jacobowitz <drow@mvista.com>
6628
6629 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6630 to read_reg and update its comment. Remove regnum member.
6631 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6632 Don't call read_reg when setting in_reg. Call read_reg to get
6633 the frame base if it's in a register. Return the register number
6634 on the stack instead of in the context. Remove extra arguments
6635 to read_reg.
6636 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6637 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6638 the register number on the expression stack.
6639 (needs_frame_read_reg): Remove extra arguments.
6640
0d53c4c4
DJ
66412003-04-13 Daniel Jacobowitz <drow@mvista.com>
6642
6643 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6644 made non-static.
6645 (execute_stack_op): All callers updated.
6646 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6647 * dwarf2loc.c (find_location_expression): New function.
6648 (dwarf_expr_frame_base): Call it.
6649 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6650 (dwarf2_tracepoint_var_ref): New function, broken out from
6651 locexpr_tracepoint_var_ref.
6652 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6653 Make static.
6654 (loclist_read_variable, loclist_read_needs_frame): New functions.
6655 (loclist_describe_location, loclist_tracepoint_var_ref): New
6656 functions.
6657 (dwarf2_loclist_funcs): New struct location_funcs.
6658 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6659 (struct dwarf2_locexpr_baton): Add comments.
6660 (dwarf2_loclist_funcs): New extern.
6661 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6662 base_address and base_known.
6663 (dwarf_loc_buffer): New variable.
6664 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6665 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6666 (dwarf2_has_info): Initialize dwarf_loc_offset.
6667 (dwarf2_build_psymtabs): Read in .debug_loc.
6668 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6669 DWARF_LOC_SIZE.
6670 (psymtab_to_symtab_1): Likewise. Move base address calculation
6671 here, from...
6672 (dwarf2_get_pc_bounds): ... here. Use the base address from
6673 cu_header.
6674 (dwarf2_symbol_mark_computed): Handle location lists.
6675
6aca59a3
DJ
66762003-04-13 Daniel Jacobowitz <drow@mvista.com>
6677
6678 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6679 if the linkage name demangled successfully.
6680
aca1fcd0
MK
66812003-04-13 Mark Kettenis <kettenis@gnu.org>
6682
97095916
MK
6683 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6684 disassmbly_flavour): Removed.
6685
aca1fcd0
MK
6686 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6687
562a961f
MK
66882003-04-13 Mark Kettenis <kettenis@gnu.org>
6689
6690 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6691
bd013d54
AC
66922003-04-12 Andrew Cagney <cagney@redhat.com>
6693
6694 * frame.h (struct frame_info): Move definition from here ...
6695 * frame.c (struct frame_info): ... to here.
6696
167ef8b1
AC
66972003-04-12 Andrew Cagney <cagney@redhat.com>
6698
6699 * gdbthread.h (save_infrun_state): Delete parameter
6700 "prev_func_start".
6701 (struct thread_info): Delete field "prev_func_start".
6702 (load_infrun_state): Ditto.
6703 * thread.c (load_infrun_state, save_infrun_state): Update.
6704 * infrun.c (prev_func_start): Delete variable.
6705 (context_switch, init_wait_for_inferior): Update.
6706 (stop_stepping, keep_going): Update.
6707
da3331ec
AC
67082003-04-12 Andrew Cagney <cagney@redhat.com>
6709
6710 * gdbarch.sh: Add missing opaque declarations.
6711 * gdbarch.h: Regnerate.
6712 * symtab.h: Add missing opaque declarations.
6713 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6714 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6715 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6716 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6717 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6718 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6719 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6720 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6721 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6722 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6723 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6724 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6725 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6726
18adea3f
AC
67272003-04-11 Andrew Cagney <cagney@redhat.com>
6728
6729 * frame.c (get_frame_id): Return this frame's "id".
6730 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6731 function start.
6732 (legacy_saved_regs_this_id): Replace function body with
6733 internal-error.
6734 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6735 FRAME_OBSTACK_ZALLOC.
6736 (create_new_frame): Mark the frame ID as valid.
6737
2252e863
AO
67382003-04-11 Alexandre Oliva <aoliva@redhat.com>
6739
6740 * Makefile.in (libbfd_h): Added missing setting.
6741 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6742 according to the selected ABI.
6743
a8245ab8
JJ
67442003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6745
6746 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6747
6913c89a
AC
67482003-04-11 Andrew Cagney <cagney@redhat.com>
6749
6750 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6751 SAVED_PC_AFTER_CALL.
6752 * gdbarch.h, gdbarch.c: Regenerate.
6753 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6754 * x86-64-tdep.c (x86_64_init_abi): Update.
6755 * vax-tdep.c (vax_gdbarch_init): Update.
6756 * v850-tdep.c (v850_gdbarch_init): Update.
6757 * sparc-tdep.c (sparc_gdbarch_init): Update.
6758 * sh-tdep.c (sh_gdbarch_init): Update.
6759 * s390-tdep.c (s390_gdbarch_init): Update.
6760 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6761 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6762 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6763 * mips-tdep.c (mips_gdbarch_init): Update.
6764 * mcore-tdep.c (mcore_gdbarch_init): Update.
6765 * m68k-tdep.c (m68k_gdbarch_init): Update.
6766 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6767 * ia64-tdep.c (ia64_gdbarch_init): Update.
6768 (ia64_saved_pc_after_call): Update declaration.
6769 * i386ly-tdep.c (i386lynx_init_abi): Update.
6770 * i386-tdep.c (i386_gdbarch_init): Update.
6771 * hppa-tdep.c (hppa_gdbarch_init): Update.
6772 * h8300-tdep.c (h8300_gdbarch_init): Update.
6773 * frv-tdep.c (frv_gdbarch_init): Update.
6774 * cris-tdep.c (cris_gdbarch_init): Update.
6775 * avr-tdep.c (avr_gdbarch_init): Update.
6776 * arm-tdep.c (arm_gdbarch_init): Update.
6777 * alpha-tdep.c (alpha_gdbarch_init): Update.
6778 * ns32knbsd-nat.c (frame_num_args): Update.
6779 * ns32k-tdep.c (umax_frame_num_args): Update.
6780 * mips-tdep.c (mips_init_frame_pc_first): Update.
6781 * infrun.c (step_over_function): Update.
6782 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6783 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6784 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6785 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6786 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6787 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6788 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6789 * arch-utils.c (init_frame_pc_default): Update.
6790 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6791 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6792 declaration.
8ffd9b1b 6793
38edeab8
AC
67942003-04-11 Andrew Cagney <cagney@redhat.com>
6795
6796 * i387-tdep.c: Update copyright.
6797 (i387_to_double): Delete function.
6798 (double_to_i387): Delete function.
6799
81f8a206
AC
68002003-04-10 Andrew Cagney <cagney@redhat.com>
6801
6802 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6803 frame's function's address. Simplify.
6804 (d10v_frame_unwind_cache): Check that the frame's function is
6805 non-zero.
6806
6e691f7a
JB
68072003-04-10 Jim Blandy <jimb@redhat.com>
6808
6809 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6810 call to set_gdbarch_deprecated_push_arguments.
6811
7f78e237
AC
68122003-04-10 Andrew Cagney <cagney@redhat.com>
6813
6814 * frame.c (fprint_frame_id): New function.
6815 (fprint_frame_type, fprint_frame): New function.
6816 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6817 (create_sentinel_frame, get_frame_id): Ditto.
6818 (frame_id_p, frame_id_eq): Ditto.
6819 (frame_id_inner, create_new_frame): Ditto.
6820 (legacy_get_prev_frame, get_prev_frame): Ditto.
6821 (deprecated_update_frame_pc_hack): Ditto.
6822 (frame_register_unwind): Ditto.
6823 (deprecated_update_frame_base_hack): Ditto.
6824
f870b49b
CV
68252003-04-10 Corinna Vinschen <vinschen@redhat.com>
6826
6827 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6828 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6829 frame_chain function.
6830 * Makefile.in: Add dependencies due to above change.
6831
7c86889b
CV
68322003-04-10 Corinna Vinschen <vinschen@redhat.com>
6833
6834 * blockframe.c (legacy_frame_chain_valid): Move call to
6835 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6836 inside_entry_file.
6837
d0a55772
AC
68382003-04-09 Andrew Cagney <cagney@redhat.com>
6839
6840 * frame.h (struct frame_id): Replace "pc" and "base" with
6841 "stack_addr" and "code_addr". Update comments.
6842 (frame_id_build): Update parameter names and comment.
6843 (struct frame_info): Replace "id_p" and "id" with "this_id".
6844 * dummy-frame.c (dummy_frame_this_id): Update.
6845 * breakpoint.c (print_one_breakpoint): Update.
6846 * frame.c (get_frame_id): Update.
6847 (get_frame_base, frame_id_build): Update.
6848 (create_sentinel_frame, legacy_get_prev_frame): Update.
6849 (deprecated_update_frame_base_hack): Update.
6850 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6851 (frame_id_inner): Ditto.
6852
ac16bf07
AC
68532003-04-09 Andrew Cagney <cagney@redhat.com>
6854
6855 * defs.h (gdb_print_host_address): Make "addr" parameter a
6856 pointer constant.
6857 * utils.c (gdb_print_host_address): Update.
6858
366cfc9e
KB
68592003-04-09 Kevin Buettner <kevinb@redhat.com>
6860
6861 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6862 register number for R0 is 0.
6863
cd983b5c
JB
68642003-04-09 J. Brobecker <brobecker@gnat.com>
6865
6866 * frame.h (struct gdbarch): Add opaque structure definition
6867 to avoid a compilation warning on LynxOS 4.0.
6868
d1340264
AC
68692003-04-09 Andrew Cagney <cagney@redhat.com>
6870
6871 * frame.h (struct frame_info): Delete field "pc". Replace
6872 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6873 structure.
6874 * frame.c (frame_pc_unwind): Update.
6875 (create_sentinel_frame): Do not set "pc".
6876 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6877 (get_frame_pc): Call frame_pc_unwind.
6878 (deprecated_update_frame_pc_hack): Update.
6879 (create_new_frame): Use "pc" not "->pc".
6880
90a6fffb
AC
68812003-04-09 Andrew Cagney <cagney@redhat.com>
6882
6883 * frame.c (get_frame_id): Eliminate code updating "frame".
6884 (legacy_get_prev_frame): Ditto.
6885 (get_frame_base): Return id.base directly.
6886 (deprecated_update_frame_base_hack): Update "id.base".
6887 * frame.h (struct frame_info): Delete field "frame".
6888
2fbce691
AC
68892003-04-09 Andrew Cagney <cagney@redhat.com>
6890
6891 * NEWS: Mention that the "Sequent family" is obsolete.
6892 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6893 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6894 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6895 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6896 * config/i386/tm-ptx4.h: Obsolete file.
6897 * config/i386/tm-ptx.h: Obsolete file.
6898 * symm-tdep.c: Obsolete file.
6899 * config/i386/symmetry.mt: Obsolete file.
6900 * config/i386/tm-symmetry.h: Obsolete file.
6901 * symm-nat.c: Obsolete file.
6902 * config/i386/nm-symmetry.h: Obsolete file.
6903 * config/i386/xm-symmetry.h: Obsolete file.
6904 * config/i386/symmetry.mh: Obsolete file.
6905 * config/i386/nm-ptx4.h: Obsolete file.
6906 * config/i386/ptx4.mh: Obsolete file.
6907 * config/i386/ptx.mt: Obsolete file.
6908 * config/i386/ptx.mh: Obsolete file.
6909 * config/i386/xm-ptx4.h: Obsolete file.
6910 * config/i386/xm-ptx.h: Obsolete file.
6911
78c43945
AC
69122003-04-09 Andrew Cagney <cagney@redhat.com>
6913
6914 Obsolete mips*-*-mach3*.
6915 * NEWS: Mention that mips*-*-mach3* is obsolete.
6916 * m3-nat.c: Obsolete file.
6917 * config/nm-m3.h: Obsolete file.
6918 * config/mips/tm-mipsm3.h: Obsolete file.
6919 * config/mips/mipsm3.mt: Obsolete file.
6920 * config/mips/mipsm3.mh: Obsolete file.
6921 * config/mips/xm-mipsm3.h: Obsolete file.
6922 * mipsm3-nat.c: Obsolete file.
6923 * configure.host: Obsolete mips-dec-mach3*.
6924 * configure.tgt: Obsolete mips*-*-mach3*.
6925
f1908289
AC
69262003-04-09 Andrew Cagney <cagney@redhat.com>
6927
6928 * doublest.h: Update copyright.
6929 (deprecated_store_floating, deprecated_extract_floating): Rename
6930 store_floating and extract_floating. Update comments.
6931 * doublest.c: Update copyright.
6932 (extract_floating_by_length): Replace extract_floating.
6933 (store_floating_by_length): Replace store_floating.
6934 (deprecated_extract_floating): New function.
6935 (deprecated_store_floating): New function.
6936 (extract_typed_floating): Call extract_floating_by_length.
6937 (store_typed_floating): Call store_floating_by_length.
6938 * x86-64-tdep.c (x86_64_store_return_value): Update.
6939 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6940 (sh64_extract_return_value): Update.
6941 (sh_sh4_register_convert_to_virtual): Update.
6942 (sh_sh64_register_convert_to_virtual): Update.
6943 (sh_sh4_register_convert_to_raw): Update.
6944 (sh_sh64_register_convert_to_raw): Update.
6945 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6946 (rs6000_register_convert_to_raw): Update.
6947 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6948 (ia64_register_convert_to_raw): Update.
6949 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6950 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6951 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6952 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6953 (alpha_register_convert_to_raw): Update.
6954
4443bd83
AC
69552003-04-08 Andrew Cagney <cagney@redhat.com>
6956
6957 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6958 * gdbarch.h, gdbarch.c: Re-generate.
6959 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6960 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6961 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6962 conditionally, use frame_pc_unwind as an alternative. Add
6963 comments.
6964 * arch-utils.c (init_frame_pc_default): Only call
6965 SAVED_PC_AFTER_CALL when available.
6966
c0236d92
EZ
69672003-04-08 Elena Zannoni <ezannoni@redhat.com>
6968
fbe586ae 6969 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
6970 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6971 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6972 (start_remote): Ditto.
6973 (handle_inferior_event): Ditto.
6974 (save_inferior_status): Ditto.
6975 (restore_inferior_status): Ditto.
6976 * infcmd.c (attach_command): Ditto.
6977 * fork-child.c (startup_inferior): Ditto.
fbe586ae 6978 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
6979 * alpha-tdep.c (heuristic_proc_start): Ditto.
6980 * mips-tdep.c (heuristic_proc_start): Ditto.
6981 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6982 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6983 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6984 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6985 * remote-vx.c (vx_create_inferior): Ditto.
6986
69872003-04-08 Elena Zannoni <ezannoni@redhat.com>
6988
6989 * infrun.c (stop_soon_quietly): Make it an enum, to better
6990 override the default behavior of handle_inferior_event.
6991 (clear_proceed_status): Update uses of stop_soon_quietly to
6992 reflect that it is now an enum.
6993 (start_remote): Ditto.
6994 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6995 is set to handle the new GNU/Linux kernel behavior for
6996 attach/sigstop. Update uses of stop_soon_quietly.
6997 * inferior.h (enum stop_kind): New enum.
6998 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6999 Reset normal handle_inferior_event behavior, afterwards.
7000 * fork-child.c (startup_inferior): Update.
7001 * alpha-tdep.c (heuristic_proc_start): Update.
7002 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7003 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7004 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7005 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7006 * remote-vx.c (vx_create_inferior): Update.
7007 * mips-tdep.c (heuristic_proc_start): Update.
7008
1211bce3
EZ
70092003-04-07 Elena Zannoni <ezannoni@redhat.com>
7010
7011 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 7012 be freed more than once, causing wild memory corruptions.
1211bce3 7013 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 7014 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 7015 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 7016 with the "core" target.
1211bce3 7017
f0ef6b29
KB
70182003-04-07 Kevin Buettner <kevinb@redhat.com>
7019
7020 * mips-tdep.c (mips_print_fp_register): New function, created from
7021 do_fp_register_row(). Registers are now (also) printed as hex.
7022 Only one register is printed per row.
7023 (mips_print_register, do_fp_register_row): Print floating point
7024 registers with mips_print_fp_register().
7025
8cf71652
AC
70262003-04-06 Andrew Cagney <cagney@redhat.com>
7027
5e488a7b
AC
7028 * valprint.h (inspect_it): Add extern declaration.
7029 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7030 (selectors_info, classes_info): Ditto.
7031 (find_objc_msgcall): Fix indentation.
7032 (objc_printstr): Delete extern declarations.
7033
8cf71652
AC
7034 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7035
e6ba3bc9
AC
70362003-04-06 Andrew Cagney <cagney@redhat.com>
7037
7038 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7039 Update comment.
7040 * frame.c (legacy_saved_regs_this_id): Update.
7041 (legacy_get_prev_frame): Update.
7042 * xstormy16-tdep.c: Update comment.
7043 * sparc-tdep.c (sparc_frame_chain): Update comment.
7044 * blockframe.c (legacy_frame_chain_valid): Update.
7045
55e1d7e7
AC
70462003-04-06 Andrew Cagney <cagney@redhat.com>
7047
996179ee
AC
7048 * valprint.c (val_print_type_code_int): Delete #ifdef
7049 PRINT_TYPELESS_INTEGER code.
7050
55e1d7e7
AC
7051 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7052 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7053 multi-arch definition.
7054 * gdbarch.h: Re-generate.
7055
43bd9a9e
AC
70562003-04-05 Andrew Cagney <cagney@redhat.com>
7057
7058 Eliminate FRAME_FIND_SAVED_REGS.
7059 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7060 Change FSR parameter to a pointer.
7061 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7062 Assume FSR parameter is a pointer.
7063 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7064 Make fsr a pointer.
7065 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7066 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7067 saved_regs a pointer.
7068 (hppa_frame_saved_pc): Ditto.
7069 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7070 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7071 pointer.
7072 (restore_pc_queue): Make fsr a pointer.
7073 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7074 (hppa_frame_chain): Make saved_regs a pointer, call
7075 hppa_frame_init_saved_regs.
7076 * sparc-tdep.c: Include "gdb_assert.h".
7077 (sparc_frame_find_saved_regs): Replace internal_error with
7078 gdb_assert.
7079 * remote-vxsparc.c (vx_read_register): Delete reference to
7080 FRAME_FIND_SAVED_REGS.
7081 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7082 * gdbarch.h: Regenerate.
7083 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7084 (deprecated_get_frame_saved_regs): Delete declaration.
7085 (struct frame_saved_regs): Delete definition.
7086 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7087 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7088 (hppa_frame_find_saved_regs): Delete declaration.
7089 (FRAME_FIND_SAVED_REGS): Delete macro.
7090 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7091 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7092 FRAME_FIND_SAVED_REGS in comment.
7093
be41e9f4
AC
70942003-04-05 Andrew Cagney <cagney@redhat.com>
7095
7096 * frame.c (frame_func_unwind, get_frame_func): New functions.
7097 * frame.h (get_frame_func, frame_func_unwind): Declare.
7098 (struct frame_info): Add field "prev_func" for caching the
7099 previous frame's function address.
7100 * arm-tdep.c (arm_frameless_function_invocation): Combine
7101 get_pc_function_start and get_frame_pc into get_frame_func.
7102 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7103 (sh64_nofp_frame_init_saved_regs): Ditto.
7104 * s390-tdep.c (s390_function_start): Ditto.
7105 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7106 (rs6000_frameless_function_invocation): Ditto.
7107 (rs6000_frame_saved_pc): Ditto.
7108 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7109 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7110 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7111 (i386_frame_init_saved_regs): Ditto.
7112 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7113 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7114 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7115 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7116 * blockframe.c (frameless_look_for_prologue): Ditto.
7117
a01dd7cc
AC
71182003-04-05 Andrew Cagney <cagney@redhat.com>
7119
7120 * frame.c (legacy_get_prev_frame): Link prev to next at the
7121 function start. Update comments.
7122
5e5592e6
AC
71232003-04-05 Andrew Cagney <cagney@redhat.com>
7124
7125 * frame.c (get_frame_id): Update comment.
7126 (legacy_get_prev_frame): Update comment.
7127 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7128 * gdbarch.h: Regenerate.
7129 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7130 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7131
6fba5002
AC
71322003-04-05 Andrew Cagney <cagney@redhat.com>
7133
7134 * stack.c (print_frame_info): Use get_frame_pc.
7135
7df05f2b
AC
71362003-04-04 Andrew Cagney <cagney@redhat.com>
7137
7138 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7139 the frame's type from the unwinder.
7140 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7141 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7142 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7143 (get_frame_base_address): Use get_frame_type.
7144 (get_frame_locals_address, get_frame_args_address): Ditto.
7145 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7146 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7147 (struct frame_info): Add comment explaining why the frame contains
7148 a "type" field.
7149 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7150 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7151 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7152 NORMAL_FRAME.
7153 * frame-unwind.h: Include "frame.h".
7154 (struct frame_unwind): Add "type" field.
7155 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 7156
11889732
AC
71572003-04-04 Andrew Cagney <cagney@redhat.com>
7158
7159 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7160 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7161 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7162 get_frame_base.
7163 (d10v_unwind_dummy_id): Use frame_id_build.
7164 * frame.c (find_frame_sal): Use get_frame_pc.
7165 (create_new_frame): Use deprecated_update_frame_pc_hack and
7166 deprecated_update_frame_base_hack.
7167 (create_sentinel_frame): Add comment about ->pc going away.
7168 (get_prev_frame): Add comment about ->pc going away.
7169 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7170 frame_id_build, deprecated_update_frame_pc_hack and
7171 deprecated_update_frame_base_hack.
7172 (select_frame): Use get_frame_pc.
7173 (legacy_saved_regs_this_id): Use frame_id_build.
7174
50c46a0d
EZ
71752003-04-04 Elena Zannoni <ezannoni@redhat.com>
7176
fbe586ae
RH
7177 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7178 signed integer case.
7179 (classify_argument): Handle enumerations and references.
50c46a0d 7180
50bbdbd9
AC
71812003-04-04 Andrew Cagney <cagney@redhat.com>
7182
7183 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7184 ID to NULL.
7185
36018d2e
AF
71862003-04-01 Adam Fedor <fedor@gnu.org>
7187
7188 * gdb/objc-lang.c (selectors_info): Replace calls to
7189 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7190 SYMBOL_NATURAL_NAME.
7191 (classes_info, find_methods): Likewise.
7192
35cec841
KB
71932003-04-03 Kevin Buettner <kevinb@redhat.com>
7194
7195 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7196 ``mach'' to the value determined by bfd_default_set_arch_mach().
7197
43136899
BR
71982003-04-02 Bob Rossi <bob_rossi@cox.net>
7199
7200 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7201 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7202 (mi-cmd-file.o): Update dependencies.
7203
040b99fd
KB
72042003-04-01 Kevin Buettner <kevinb@redhat.com>
7205
7206 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7207 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7208
9a3d7dfd
AF
72092003-04-01 Adam Fedor <fedor@gnu.org>
7210
7211 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7212 * language.h (struct language_defn): Add la_demangle.
7213 (language_demangle): Declare.
7214 * language.c (language_demangle): New function.
7215 (unk_lang_demangle): Likewise.
7216 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 7217 Add ukn_lang_demangle.
9a3d7dfd 7218 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 7219 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
7220 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7221 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7222 * jv-lang.c (java_demangle): New function
7223 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
7224 * objc-lang.c (objc_demangle): Add options argument
7225 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
7226 * maint.c (maintenance_demangle): Replace switch with
7227 call to language_demangle.
7228 * utils.c (fprintf_symbol_filtered): Likewise.
7229
5e074003
AC
72302003-04-01 Andrew Cagney <cagney@redhat.com>
7231
7232 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7233 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7234 PRINT_TYPELESS_INTEGER.
7235 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7236 PUSH_RETURN_ADDRESS.
7237
270cb5d6
AC
72382003-04-01 Andrew Cagney <cagney@redhat.com>
7239
7240 * Makefile.in (d10v-tdep.o): Update dependencies.
7241 * d10v-tdep.c: Include "frame-base.h".
7242 (d10v_frame_unwind): Make constant.
7243 (d10v_frame_base_address): New function.
7244 (d10v_frame_base): New variable.
7245 (d10v_gdbarch_init): Set frame_base default.
7246 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7247 comment for base.
7248 (d10v_frame_unwind_cache): Set and use "prev_sp".
7249 (d10v_frame_this_id): Use the previous frame's inner most stack
7250 address and this frame's func address for the frame ID. Use
7251 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 7252
6bfb3e36
AC
72532003-04-01 Andrew Cagney <cagney@redhat.com>
7254
7255 * frame.h (get_frame_locals_address, get_frame_args_address):
7256 Refer to the base address, instead of the address of the first
7257 local or parameter.
8ffd9b1b 7258
da62e633
AC
72592003-04-01 Andrew Cagney <cagney@redhat.com>
7260
7261 Add frame debug info addresses:
7262 * frame-base.c: New file.
7263 * frame-base.h: New file.
7264 * frame.h (struct frame_base): Add opaque declaration.
7265 (get_frame_base): Update comment.
7266 (get_frame_base_address): Declare.
7267 (get_frame_locals_address): Declare.
7268 (get_frame_args_address): Declare.
7269 (struct frame_info): Add "base" and "base_cache". Update
7270 comments on the unwinder.
7271 * frame.c: Include "frame-base.h".
7272 (get_frame_locals_address): New function.
7273 (get_frame_base_address): New function.
7274 (get_frame_args_address): New function.
7275 * findvar.c (read_var_value): Use get_frame_locals_address and
7276 get_frame_args_address.
7277 * stack.c (frame_info): Use get_frame_locals_address and
7278 get_frame_args_address.
7279 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7280 moved to "frame-base.c".
7281 * printcmd.c (print_frame_nameless_args): Ditto.
7282 * symtab.h (address_class): Update comments.
7283 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7284 get_frame_base_address.
7285 * dwarf2expr.c (execute_stack_op): Ditto.
7286 * Makefile.in (frame_base_h): Define.
7287 (frame.o): Update dependencies.
7288 (frame-base.o): Add dependencies.
7289 (SFILES): Add frame-base.c.
7290 (COMMON_OBS): Add frame-base.o.
7291
3d30e9c2
AC
72922003-04-01 Andrew Cagney <cagney@redhat.com>
7293
7294 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7295 CALL_DUMMY_LENGTH): Ditto.
7296 * gdbarch.c: Re-generate.
7297 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7298 (CALL_DUMMY_LENGTH): Delete macro.
7299 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7300 * arm-tdep.c (arm_gdbarch_init): Ditto.
7301 * avr-tdep.c (avr_gdbarch_init): Ditto.
7302 * cris-tdep.c (cris_gdbarch_init): Ditto.
7303 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7304 * frv-tdep.c (frv_gdbarch_init): Ditto.
7305 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7306 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7307 * i386-tdep.c (i386_gdbarch_init): Ditto.
7308 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7309 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7310 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7311 * mips-tdep.c (mips_gdbarch_init): Ditto.
7312 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7313 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7314 * s390-tdep.c (s390_gdbarch_init): Ditto.
7315 * sh-tdep.c (sh_gdbarch_init): Ditto.
7316 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7317 * v850-tdep.c (v850_gdbarch_init): Ditto.
7318 * vax-tdep.c (vax_gdbarch_init): Ditto.
7319 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7320
ce0c7262
CV
73212003-04-01 Corinna Vinschen <vinschen@redhat.com>
7322
7323 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7324
73dd234f
AC
73252003-04-01 Andrew Cagney <cagney@redhat.com>
7326
7327 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7328 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7329 * gdbarch.h, gdbarch.c: Re-generate.
7330 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7331 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7332 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7333 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7334 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7335 * infcmd.c (run_stack_dummy): Simplify assuming
7336 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7337 * infrun.c (handle_inferior_event): Ditto.
7338 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7339 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7340 * arm-tdep.c (arm_gdbarch_init): Ditto.
7341 * avr-tdep.c (avr_gdbarch_init): Ditto.
7342 * cris-tdep.c (cris_gdbarch_init): Ditto.
7343 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7344 * frv-tdep.c (frv_gdbarch_init): Ditto.
7345 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7346 * i386-tdep.c (i386_gdbarch_init): Ditto.
7347 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7348 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7349 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7350 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7351 * mips-tdep.c (mips_gdbarch_init): Ditto.
7352 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7353 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7354 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7355 * s390-tdep.c (s390_gdbarch_init): Ditto.
7356 * sh-tdep.c (sh_gdbarch_init): Ditto.
7357 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7358 * v850-tdep.c (v850_gdbarch_init): Ditto.
7359 * vax-tdep.c (vax_gdbarch_init): Ditto.
7360 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7361
97606a13
DJ
73622003-04-01 Daniel Jacobowitz <drow@mvista.com>
7363
7364 * symfile.c (symfile_relocate_debug_section): Update call to
7365 bfd_simple_get_relocated_section_contents.
7366
e8ab51f7
AC
73672003-03-31 Andrew Cagney <cagney@redhat.com>
7368
7369 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7370 * gdbarch.h, gdbarch.c: Regenerate.
7371 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7372 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7373 available.
7374 * frame.h (generic_fix_call_dummy): Delete declaration.
7375 * dummy-frame.h: Update comment.
7376 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7377 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7378 fix_call_dummy.
7379 * sh-tdep.c (sh_gdbarch_init): Ditto.
7380 * s390-tdep.c (s390_gdbarch_init): Ditto.
7381 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7382 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7383 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7384 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7385 * i386-tdep.c (i386_gdbarch_init): Ditto.
7386 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7387 * frv-tdep.c (frv_gdbarch_init): Ditto.
7388 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7389 * cris-tdep.c (cris_gdbarch_init): Ditto.
7390 * avr-tdep.c (avr_gdbarch_init): Ditto.
7391 * arm-tdep.c (arm_gdbarch_init): Ditto.
7392
018d1b48
JB
73932003-03-31 J. Brobecker <brobecker@gnat.com>
7394
7395 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7396 (INIT_FRAME_AP): Likewise.
7397 (EXTRA_FRAME_INFO): Likewise.
7398
e9a2674e
AC
73992003-03-31 Andrew Cagney <cagney@redhat.com>
7400
7401 * gdbarch.sh: Include "symfile.h".
7402 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7403 * gdbarch.h, gdbarch.c: Re-generate.
7404 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7405 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7406 call_dummy_address, the default is at entry_point_address.
7407 * v850-tdep.c (v850_gdbarch_init): Ditto.
7408 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7409 * sh-tdep.c (sh_gdbarch_init): Ditto.
7410 * s390-tdep.c (s390_gdbarch_init): Ditto.
7411 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7412 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7413 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7414 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7415 * i386-tdep.c (i386_gdbarch_init): Ditto.
7416 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7417 * frv-tdep.c (frv_gdbarch_init): Ditto.
7418 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7419 * cris-tdep.c (cris_gdbarch_init): Ditto.
7420 * arm-tdep.c (arm_gdbarch_init): Ditto.
7421
e8a8712a
AC
74222003-03-31 Andrew Cagney <cagney@redhat.com>
7423
7424 * gdbarch.sh (CALL_DUMMY_P): Delete.
7425 * gdbarch.h, gdbarch.c: Re-generate.
7426 * inferior.h (CALL_DUMMY_P): Delete macro.
7427 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7428 * vax-tdep.c (vax_gdbarch_init): Update.
7429 * v850-tdep.c (v850_gdbarch_init): Update.
7430 * sparc-tdep.c (sparc_gdbarch_init): Update.
7431 * sh-tdep.c (sh_gdbarch_init): Update.
7432 * s390-tdep.c (s390_gdbarch_init): Update.
7433 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7434 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7435 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7436 * mips-tdep.c (mips_gdbarch_init): Update.
7437 * mcore-tdep.c (mcore_gdbarch_init): Update.
7438 * m68k-tdep.c (m68k_gdbarch_init): Update.
7439 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7440 * ia64-tdep.c (ia64_gdbarch_init): Update.
7441 * i386-tdep.c (i386_gdbarch_init): Update.
7442 * h8300-tdep.c (h8300_gdbarch_init): Update.
7443 * frv-tdep.c (frv_gdbarch_init): Update.
7444 * d10v-tdep.c (d10v_gdbarch_init): Update.
7445 * cris-tdep.c (cris_gdbarch_init): Update.
7446 * breakpoint.c (deprecated_frame_in_dummy): Update.
7447 * avr-tdep.c (avr_gdbarch_init): Update.
7448 * alpha-tdep.c (alpha_gdbarch_init): Update.
7449 * arm-tdep.c (arm_gdbarch_init): Update.
7450 * dummy-frame.c (dummy_frame_this_id): Update comments.
7451 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7452 * frame.c (legacy_get_prev_frame): Ditto.
7453 * valops.c (call_function_by_hand): Delete function.
7454 (hand_function_call): Rename to call_function_by_hand
7455
ed234cf8
AC
74562003-03-30 Andrew Cagney <cagney@redhat.com>
7457
7458 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 7459 * value.h (struct value): Update comment.
ed234cf8 7460
06c77151
AC
74612003-03-30 Andrew Cagney <cagney@redhat.com>
7462
6c2b5168
AC
7463 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7464 D10V_FP_REGNUM.
7465 (d10v_gdbarch_init): Do not set fp_regnum.
7466
06c77151
AC
7467 * frame.c (get_frame_base): Force ID initialization.
7468 (get_prev_frame): Move computation of the frame ID from here ...
7469 (get_frame_id): ... to here.
7470 (legacy_get_prev_frame): Mark the frame ID as valid.
7471 * frame.h (struct frame_info): Add field "id_p".
7472
97a1a11c
MK
74732003-03-30 Mark Kettenis <kettenis@gnu.org>
7474
7475 * i386-tdep.c (i386_store_struct_return): Removed.
7476 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7477
6c0e89ed
AC
74782003-03-30 Andrew Cagney <cagney@redhat.com>
7479
7480 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7481 * gdbarch.h, gdbarch.c: Regenerate.
7482 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7483 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7484 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7485 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7486 * i386-tdep.c (i386_gdbarch_init): Ditto.
7487 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7488 * cris-tdep.c (cris_gdbarch_init): Ditto.
7489 * vax-tdep.c (vax_gdbarch_init): Ditto.
7490 * s390-tdep.c (s390_gdbarch_init): Ditto.
7491 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7492 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7493 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7494 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7495 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7496 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7497 * sparc-tdep.c (sparc_gdbarch_init): Update.
7498 * sh-tdep.c (sh_gdbarch_init): Update.
7499 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7500 * mips-tdep.c (mips_gdbarch_init): Update.
7501 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7502 * ia64-tdep.c (ia64_gdbarch_init): Update.
7503 * frv-tdep.c (frv_gdbarch_init): Update.
7504 * avr-tdep.c (avr_gdbarch_init): Update.
7505 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7506 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7507 instead of when push_dummy_call is not available.
8ffd9b1b 7508
f7dd6af2
AC
75092003-03-30 Andrew Cagney <cagney@redhat.com>
7510
7511 * infttrace.c: Include "gdbthread.h".
7512 (parent_attach_all): Fix function signature.
7513 (call_ptrace): Update call.
7514 * Makefile.in (infttrace.o): Update dependencies.
7515
28f617b3
AC
75162003-03-30 Andrew Cagney <cagney@redhat.com>
7517
7518 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7519 PUSH_RETURN_ADDRESS.
7520 * gdbarch.h, gdbarch.c: Regenerate.
7521 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7522 * x86-64-tdep.c (x86_64_init_abi): Update.
7523 * v850-tdep.c (v850_gdbarch_init): Update.
7524 * sparc-tdep.c (sparc_gdbarch_init): Update.
7525 * sh-tdep.c (sh_gdbarch_init): Update.
7526 * s390-tdep.c (s390_gdbarch_init): Update.
7527 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7528 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7529 * mips-tdep.c (mips_gdbarch_init): Update.
7530 * mcore-tdep.c (mcore_gdbarch_init): Update.
7531 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7532 * ia64-tdep.c (ia64_gdbarch_init): Update.
7533 * i386-tdep.c (i386_gdbarch_init): Update.
7534 * h8300-tdep.c (h8300_gdbarch_init): Update.
7535 * frv-tdep.c (frv_gdbarch_init): Update.
7536 * cris-tdep.c (cris_gdbarch_init): Update.
7537 * avr-tdep.c (avr_gdbarch_init): Update.
7538 * arm-tdep.c (arm_gdbarch_init): Update.
7539 * valops.c (hand_function_call): Update.
7540
4d628cd7
AC
75412003-03-29 Andrew Cagney <cagney@redhat.com>
7542
7543 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7544 sizeof_call_dummy_words.
7545 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7546 define.
7547 * gdbarch.h: Regenerate.
8ffd9b1b 7548
65e82032
AC
75492003-03-29 Andrew Cagney <cagney@redhat.com>
7550
7551 * infttrace.h: New file.
7552 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7553 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7554 (hpread_read_doc_function_type): Detect an initialized type1.
7555 (hpread_quick_traverse): Initialize mod_name_string.
7556 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7557 (som_solib_get_solib_by_pc): Declare.
7558 (so_lib_thread_start_addr): Declare.
7559 (no_shared_libraries): Declare.
7560 * somread.c (init_import_symbols): Make static. Add forward
7561 declaration.
7562 * config/pa/nm-hppah.h: Include "infttrace.h" for
7563 parent_attach_all.
7564 (hppa_insert_hw_watchpoint): Declare.
7565 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7566 * hppah-nat.c: Include "gdb_string.h".
7567 (parent_attach_all): Delete extern declaration, moved to
7568 "infttrace.h".
7569 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7570 int.
7571 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7572 * Makefile.in (infttrace_h): Define.
7573 (hpread.o): Update dependencies.
7574 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7575 * hppa-hpux-tdep.c: Include "gdb_string.h".
7576 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7577 * infrun.c (handle_inferior_event): Always initialize
7578 stepped_after_stopped_by_watchpoint. Add default and remove
7579 fallthrough in switch statement.
7580 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7581 parameter to int.
7582 (hppa_remove_hw_watchpoint): Ditto.
7583
2c3bbe77
AC
75842003-03-29 Andrew Cagney <cagney@redhat.com>
7585
7586 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7587 offset.
7588
2dd604e7
RE
75892003-03-29 Richard Earnshaw <rearnsha@arm.com>
7590
7591 * arm-tdep.c (arm_push_arguments): Delete.
7592 (struct stack_item): New type.
7593 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7594 (arm_store_struct_return): Delte.
7595 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7596 arm_push_arguments or arm_store_struct_return.
7597
e8933a55
AC
75982003-03-28 Andrew Cagney <cagney@redhat.com>
7599
7600 * Makefile.in (d10v-tdep.o): Update dependencies.
7601 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7602 * d10v-tdep.c: Include "remote.h".
7603 (target_resume_hook): Delete extern declaration.
7604 (target_wait_loop_hook): Ditto.
7605 (tdisassemble_command): Eliminate assignment in "if" conditional.
7606 (d10v_ts2_register_sim_regno): Eliminate call to
7607 legacy_register_sim_regno.
7608 (d10v_ts3_register_sim_regno): Ditto.
7609
6949171e
JJ
76102003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7611
7612 * thread.c: Reindented.
7613 * lin-lwp.c: Ditto.
7614 * linux-proc.c: Ditto.
7615
98c7071f
BR
76162003-03-28 Bob Rossi <bob_rossi@cox.net>
7617
fbe586ae 7618 * MAINTAINERS (write after approval): Add myself.
98c7071f 7619
5edc9ca6
TR
76202003-03-27 Theodore A. Roth <troth@openavr.org>
7621
7622 * objc-exp.y: Add missing semi-colons.
7623
378bfd1b
AC
76242003-03-27 Andrew Cagney <cagney@redhat.com>
7625
7626 * regcache.c (write_sp): Delete function and references.
7627 * inferior.h (write_sp): Delete declaration.
7628 * valops.c (hand_function_call): Replace write_sp with
7629 TARGET_WRITE_SP.
7630 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7631 (sparc_pop_frame): Ditto.
8ffd9b1b 7632
56056df7
AC
76332003-03-27 Andrew Cagney <cagney@redhat.com>
7634
7635 * NEWS: Mention removal of support for hppa*-*-bsd* and
7636 hppa*-*-osf* natives, and hppa*-*-pro* target.
7637 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7638 * config/pa/xm-pa.h: Obsolete file.
7639 * config/pa/xm-hppab.h: Obsolete file.
7640 * config/pa/nm-hppab.h: Obsolete file.
7641 * config/pa/tm-hppab.h: Obsolete file.
7642 * config/pa/tm-hppao.h: Obsolete file.
7643 * config/pa/nm-hppao.h: Obsolete file.
7644 * config/pa/tm-pro.h: Obsolete file.
7645 * config/pa/hppaosf.mt: Obsolete file.
7646 * config/pa/hppaosf.mh: Obsolete file.
7647 * config/pa/hppapro.mt: Obsolete file.
7648 * config/pa/hppabsd.mt: Obsolete file.
7649 * config/pa/hppabsd.mh: Obsolete file.
7650 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7651 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7652 hppa*-*-osf*.
7653
5873a88d
AC
76542003-03-27 Andrew Cagney <cagney@redhat.com>
7655
7656 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7657 push_arguments. Don't set push_return_address or write_sp.
7658 (d10v_push_dummy_call): Replace d10v_push_arguments.
7659 (d10v_push_return_address, d10v_write_sp): Delete function,
7660 handled by push_dummy_call.
7661
b81774d8
AC
76622003-03-26 Andrew Cagney <cagney@redhat.com>
7663
7664 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7665 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7666 regcache and dummy_addr parameters.
7667 * gdbarch.h, gdbarch.c: Re-generate.
7668 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7669 available; assume it will handle stack alignment and return
7670 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7671 legacy_push_arguments.
7672 (legacy_push_arguments): Rename default_push_arguments.
7673 * value.h (legacy_push_arguments): Rename default_push_arguments.
7674 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7675 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7676 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7677 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7678 * config/i386/tm-symmetry.h: Update.
7679 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7680 * x86-64-tdep.c (x86_64_init_abi): Update.
7681 * v850-tdep.c (v850_gdbarch_init): Update.
7682 * sparc-tdep.c (sparc_gdbarch_init): Update.
7683 * sh-tdep.c (sh_gdbarch_init): Update.
7684 * s390-tdep.c (s390_gdbarch_init): Update.
7685 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7686 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7687 * mips-tdep.c (mips_gdbarch_init): Update.
7688 * mcore-tdep.c (mcore_gdbarch_init): Update.
7689 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7690 * ia64-tdep.c (ia64_gdbarch_init): Update.
7691 * i386-tdep.c (i386_gdbarch_init): Update.
7692 * hppa-tdep.c (hppa_gdbarch_init): Update.
7693 * h8300-tdep.c (h8300_gdbarch_init): Update.
7694 * frv-tdep.c (frv_gdbarch_init): Update.
7695 * d10v-tdep.c (d10v_gdbarch_init): Update.
7696 * cris-tdep.c (cris_gdbarch_init): Update.
7697 * avr-tdep.c (avr_gdbarch_init): Update.
7698 * arm-tdep.c (arm_gdbarch_init): Update.
7699 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7700 * alpha-tdep.c (alpha_gdbarch_init): Update.
7701
f541410f
DJ
77022003-03-26 Daniel Jacobowitz <drow@mvista.com>
7703
7704 * signals/signals.c (do_target_signal_to_host): Correct realtime
7705 signal range test.
7706
69f567ae
DJ
77072003-03-26 Daniel Jacobowitz <drow@mvista.com>
7708
7709 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7710 (struct sal_chain, map_catch_names): Remove.
7711 (catch_exception_command_1): Don't call
7712 handle_gnu_4_16_catch_command.
7713
d5d14a5a
DJ
77142003-03-26 Daniel Jacobowitz <drow@mvista.com>
7715
7716 From Mark Dettinger <dettinge@de.ibm.com>:
7717 * dwarf2cfi.c (read_2u): Increment pointer by two.
7718
bdd73e22
DJ
77192003-03-26 Daniel Jacobowitz <drow@mvista.com>
7720
7721 * signals/signals.c: Fix typos in last change.
7722
960cb555
DJ
77232003-03-26 Daniel Jacobowitz <drow@mvista.com>
7724
7725 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7726 not already defined. Use __SIGRTMIN if available.
7727 (target_signal_from_host): Remove SIGRTMIN block.
7728 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7729 the signal is within the realtime range.
7730
f636b87d
AF
77312003-03-25 Adam Fedor <fedor@gnu.org>
7732
7733 * Makefile.in (infrun.o): Add $(language_h)
7734 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7735 for language specific trampolines.
7736 * language.h (struct language_defn): Add skip_trampoline.
7737 (skip_language_trampoline): Declare.
7738 * language.c (unk_lang_trampoline, skip_language_trampoline):
7739 New functions.
7740 (unknown_language_defn, auto_language_defn, local_language_defn):
7741 Add ukn_lang_trampoline.
7742 * ada-lang.c (ada_language_defn): Add NULL for language
7743 specific skip_trampoline.
7744 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7745 scm-lang.c: Likewise.
7746 * objc-lang.c (objc_skip_trampoline): New function.
7747 (objc_language_defn): Add objc_skip_trampoline.
7748
28f617b3 77492003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
7750
7751 * frame.c (get_prev_frame): Delay validating a frame's ID -
7752 non-NULL, didn't go backwards - until an attempt to unwind it to
7753 the previous frame.
7754
f933a9c5
AC
77552003-03-25 Andrew Cagney <cagney@redhat.com>
7756
7757 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7758 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7759 * gdbarch.h, gdbarch.c: Re-generate.
7760 * config/sparc/tm-sparc.h
7761 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7762 * sparc-tdep.c (sparc_gdbarch_init): Set
7763 deprecated_extra_stack_alignment_needed.
7764 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7765 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7766 extra_stack_alignment_needed.
7767 * v850-tdep.c (v850_gdbarch_init): Ditto.
7768 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7769 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7770 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7771 * cris-tdep.c (cris_gdbarch_init): Ditto.
7772 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7773 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7774
4183d812
AC
77752003-03-25 Andrew Cagney <cagney@redhat.com>
7776
7777 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7778 STORE_STRUCT_RETURN.
7779 * gdbarch.h, gdbarch.c: Regenerate.
7780 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7781 (d10v_push_arguments): Set the struct return register.
7782 (d10v_gdbarch_init): Update.
7783 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7784 * x86-64-tdep.c (x86_64_init_abi): Update.
7785 * vax-tdep.c (vax_gdbarch_init): Update.
7786 * v850-tdep.c (v850_gdbarch_init): Update.
7787 * sparc-tdep.c (sparc_gdbarch_init): Update.
7788 * sh-tdep.c (sh_gdbarch_init): Update.
7789 * s390-tdep.c (s390_gdbarch_init): Update.
7790 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7791 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7792 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7793 * mips-tdep.c (mips_gdbarch_init): Update.
7794 * mcore-tdep.c (mcore_gdbarch_init): Update.
7795 * m68k-tdep.c (m68k_gdbarch_init): Update.
7796 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7797 * ia64-tdep.c (ia64_gdbarch_init): Update.
7798 * i386-tdep.c (i386_gdbarch_init): Update.
7799 * hppa-tdep.c (hppa_gdbarch_init): Update.
7800 * h8300-tdep.c (h8300_gdbarch_init): Update.
7801 * frv-tdep.c (frv_gdbarch_init): Update.
7802 * cris-tdep.c (cris_gdbarch_init): Update.
7803 * avr-tdep.c (avr_gdbarch_init): Update.
7804 * arm-tdep.c (arm_gdbarch_init): Update.
7805 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 7806
1bf6d5cc
AC
78072003-03-25 Andrew Cagney <cagney@redhat.com>
7808
7809 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7810 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7811 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7812 * gdbarch.h, gdbarch.c: Regenerate.
7813 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7814 call_dummy_stack_adjust_p.
7815 * vax-tdep.c (vax_gdbarch_init): Ditto.
7816 * v850-tdep.c (v850_gdbarch_init): Ditto.
7817 * sh-tdep.c (sh_gdbarch_init): Ditto.
7818 * s390-tdep.c (s390_gdbarch_init): Ditto.
7819 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7820 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7821 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7822 * mips-tdep.c (mips_gdbarch_init): Ditto.
7823 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7824 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7825 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7826 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7827 * i386-tdep.c (i386_gdbarch_init): Ditto.
7828 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7829 * frv-tdep.c (frv_gdbarch_init): Ditto.
7830 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7831 * cris-tdep.c (cris_gdbarch_init): Ditto.
7832 * avr-tdep.c (avr_gdbarch_init): Ditto.
7833 * arm-tdep.c (arm_gdbarch_init): Ditto.
7834 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7835 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7836 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7837 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7838 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7839 call_dummy_stack_adjust_p.
7840 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7841 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7842 * sparc-tdep.c (sparc32_push_arguments): Update.
7843 * valops.c (hand_function_call): Update.
7844
71c08af0
CV
78452003-03-25 Corinna Vinschen <vinschen@redhat.com>
7846
7847 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7848 set_gdbarch_char_signed.
7849
30757f90
RE
78502003-03-25 Richard Earnshaw <rearnsha@arm.com>
7851
7852 PR cli/548
7853 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7854
03d48a7d
RE
78552003-03-25 Richard Earnshaw <rearnsha@arm.com>
7856
7857 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7858 (_initialize_arm_tdep): Don't set tm_print_insn.
7859
2cf6873c
AF
78602003-03-24 Adam Fedor <fedor@gnu.org>
7861
7862 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7863 * objc-lang.h: Add multiple inclusion protection.
7864 (start_msglist, add_msglist, end_msglist): Additional declarations.
7865
17c0759e
RE
78662003-03-24 Richard Earnshaw <rearnsha@arm.com>
7867
7868 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7869 value was renamed to ARM_FLOAT_SOFT_FPA.
7870
618ce49f
AC
78712003-03-23 Andrew Cagney <cagney@redhat.com>
7872
7873 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7874 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7875 * gdbarch.h, gdbarch.c: Regenerate.
7876 * valops.c (hand_function_call): Update.
7877 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7878 * frame.c (legacy_saved_regs_this_id): Update.
7879 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7880 * dummy-frame.h: Update.
7881 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7882 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7883 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7884 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7885 * config/m68k/tm-sun3.h: Update.
7886 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7887 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7888 * x86-64-tdep.c (x86_64_init_abi): Update.
7889 * vax-tdep.c (vax_gdbarch_init): Update.
7890 * v850-tdep.c (v850_gdbarch_init): Update.
7891 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7892 * sh-tdep.c (sh_gdbarch_init): Update.
7893 * s390-tdep.c (s390_gdbarch_init): Update.
7894 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7895 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7896 (frame_get_saved_regs): Update.
7897 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7898 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7899 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7900 * mips-tdep.c (mips_gdbarch_init): Update.
7901 * mcore-tdep.c (mcore_gdbarch_init): Update.
7902 * m68k-tdep.c (m68k_gdbarch_init): Update.
7903 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7904 * ia64-tdep.c (ia64_gdbarch_init): Update.
7905 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7906 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7907 (i386_interix_back_one_frame): Update.
7908 * hppa-tdep.c (hppa_gdbarch_init): Update.
7909 (hppa_init_extra_frame_info): Update.
7910 * h8300-tdep.c (h8300_gdbarch_init): Update.
7911 * frv-tdep.c (frv_gdbarch_init): Update.
7912 * cris-tdep.c (cris_gdbarch_init): Update.
7913 * avr-tdep.c (avr_gdbarch_init): Update.
7914 * arm-tdep.c (arm_gdbarch_init): Update.
7915 * alpha-tdep.c (alpha_gdbarch_init): Update.
7916
fd50bc42
RE
79172003-03-22 Richard Earnshaw <rearnsha@arm.com>
7918
7919 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7920 (arm_get_fp_model): Declare.
7921 * arm-tdep.c (fp_model_strings): New string array.
7922 (arm_fp_model, current_fp_model): New variables.
7923 (arm_get_fp_model): New function.
7924 (arm_set_fp): New function.
7925 (set_fp_model_sfunc): New function.
7926 (show_fp_model): New function.
7927 (_initialize_arm_tdep): Add new command to set/show the FPU.
7928 (arm_extract_return_value): Use arm_get_fp_model.
7929 (arm_store_return_value): Likewise.
7930 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7931 to initialize the floating-point data types.
7932 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7933 model is FPA.
7934
26304000
RE
79352003-03-22 Richard Earnshaw <rearnsha@arm.com>
7936
7937 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7938 the current setting of each value.
7939 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 7940 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
7941 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7942 commands and add new version as subcommands of "set/show arm".
7943
afd7eef0
RE
79442003-03-22 Richard Earnshaw <rearnsha@arm.com>
7945
7946 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7947 (set_arm_command, show_arm_command): New functions.
7948 (_initialize_arm_tdep): Add them.
7949 (num_disassembly_options): Renamed from num_flavor_options.
7950 (valid_disassembly_styles): Renamed from valid_flavors.
7951 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 7952 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
7953 set_disassembly_flavor_sfunc.
7954 (set_disassembly_style): Renamed from set_disassembly_flavor.
7955 (arm_othernames): Updated.
7956 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7957 command. Add "set/show arm disassembly" commands. Deprecate
7958 "othernames" command.
7959
299a7944
RE
79602003-03-22 Richard Earnshaw <rearnsha@arm.com>
7961
7962 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7963 (arm-tdep.o): Depend on elf_arm_h.
7964
c1dac9e6
RE
79652003-03-22 Richard Earnshaw <rearnsha@arm.com>
7966
7967 * Makefile.in (coff_internal_h): Define.
7968 (arm-tdep.o): Update dependencies.
7969
2702d96c
RE
79702003-03-22 Richard Earnshaw <rearnsha@arm.com>
7971
7972 * arm-tdep.c (prologue_cache): Delete.
7973 (check_prologue_cache, save_prologue_cache): Delete.
7974 (arm_scan_prologue): Don't check or update the prologue_cache.
7975 (arm_gdb_arch_init): Don't initialize it.
7976 (_initialize_arm_tdep): Likewise.
7977
27d5d74b
SC
79782003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7979
7980 * MAINTAINERS (tui): Maintainer of tui code.
7981
1762d96d
CV
79822003-03-21 Corinna Vinschen <vinschen@redhat.com>
7983
7984 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7985 (i386-cygwin-tdep.o): Add dependencies.
7986 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7987 * i386-cygwin-tdep.c: New file.
7988 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7989 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7990
4c2e2391
AC
79912003-03-20 Andrew Cagney <cagney@redhat.com>
7992
f20d38b7
AC
7993 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7994 (handle_inferior_event): Remove code calling
7995 DYNAMIC_TRAMPOLINE_NEXTPC.
7996
0022b738
AC
7997 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7998 already has a full path.
7999
864dbc90
AC
8000 * main.c (gdb_main): Return 1.
8001 (captured_main): Call error to report an invalid interpreter.
8002
4c2e2391
AC
8003 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8004 * alpha-osf1-tdep.c: Include "gdb_string.h".
8005
5ef7553b
JB
80062003-03-19 J. Brobecker <brobecker@gnat.com>
8007
8008 Continuing work to convert the hppa targets to multiarch partial.
8009
8010 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8011 method, now that hppa_push_dummy_frame has a conformant prototype.
8012 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8013 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8014 for the switch to multiarch partial.
8015
7bde8967
KB
80162003-03-19 Kevin Buettner <kevinb@redhat.com>
8017
8018 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8019 when iss is issNull.
8020
b006a9e9
KB
80212003-03-18 Kevin Buettner <kevinb@redhat.com>
8022
8023 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8024 NUM_REGS bounds check.
8025
5e2e9765
KB
80262003-03-18 Kevin Buettner <kevinb@redhat.com>
8027
8028 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8029 * mips-tdep.c (gdb_assert.h): Include.
8030 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8031 (mips_register_name): Handle integer registers explicitly. Add
8032 bounds checking.
8033 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8034 (mips_lsi33k_reg_names): Don't list integer registers; they're
8035 handled by mips_register_name() now.
8036 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8037 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8038 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8039 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8040 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8041
a2867626
AC
80422003-03-18 Andrew Cagney <cagney@redhat.com>
8043
8044 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8045 a void pointer.
8046 * gdbtypes.h (print_scalar_formatted): Update declaration.
8047 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8048
06600e06
JB
80492003-03-18 J. Brobecker <brobecker@gnat.com>
8050
8051 * infrun.c (observer.h): Add #include.
8052 (normal_stop): Add call to observer_notify_normal_stop.
8053 * Makefile.in (infrun.o): Add dependency on observer.h.
8054
7daf4f5b
JB
80552003-03-18 J. Brobecker <brobecker@gnat.com>
8056
8057 Continuing work to convert the hppa targets to multiarch partial.
8058 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8059 parameter. Reformat comment.
8060 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8061 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8062 to match new profile.
8063
3371ccc0
JB
80642003-03-18 J. Brobecker <brobecker@gnat.com>
8065
8066 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8067 appear to be working in any case.
8068
4fbe891e
JB
80692003-03-18 J. Brobecker <brobecker@gnat.com>
8070
8071 * observer.c (observer_test_first_observer): New static variable.
8072 (observer_test_second_observer): Likewise.
8073 (observer_test_third_observer): Likewise.
8074 (observer_test_first_notification_function): New static function.
8075 (observer_test_second_notification_function): Likewise.
8076 (observer_test_third_notification_function): Likewise.
8077
a7ff40e7
JB
80782003-03-17 J. Brobecker <brobecker@gnat.com>
8079
8080 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8081 * somsolib.c (gdb_assert.h): Likewise.
8082 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8083 (somsolib.o): Likewise.
8084
26ca4152
AC
80852003-03-17 Andrew Cagney <cagney@redhat.com>
8086
8087 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8088 BFD. Simplify setting of di.endian.
8089
0a613259
AC
80902003-03-17 Andrew Cagney <cagney@redhat.com>
8091
8092 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8093 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8094
8095 From Elena Zannoni <ezannoni@redhat.com>
8096 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8097 vector and floating-point parameters.
8098 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8099 convention.
8100 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8101
1132738f
FN
81022003-03-17 Fernando Nasser <fnasser@redhat.com>
8103
8104 * MAINTAINERS: Remove my name from several maintainership roles.
8105
6dc42492
AC
81062003-03-17 Andrew Cagney <cagney@redhat.com>
8107
8108 Fix frame off-by-one bug.
8109 * frame-unwind.h (frame_this_id_ftype): Replace
8110 frame_unwind_id_ftype.
8111 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8112 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8113 with "prev_register".
8114 * frame-unwind.c (frame_unwind_find_by_pc): Return
8115 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8116 comment.
8117 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8118 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8119 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8120 (dummy_frame_unwind): Update.
8121 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8122 sentinel_frame_register_unwind.
8123 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8124 (sentinel_frame_unwinder): Update.
8125 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8126 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8127 * frame.c (create_sentinel_frame): Update. Initialize
8128 "prologue_cache" instead of "unwind_cache".
8129 (frame_register_unwind): Call this frame's prev_register with the
8130 next frame and this frame's prologue cache.
8131 (get_prev_frame): Simplify. Always call prev frame's this_id with
8132 this frame and prev frame's prologue cache. Document that this
8133 call is shifted one to the left when compared to the
8134 frame_register_unwind call.
8135 (legacy_saved_regs_prev_register): Replace
8136 frame_saved_regs_register_unwind.
8137 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8138 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8139 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8140 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8141 (d10v_frame_unwind): Update.
8142 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8143 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8144 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8145 "saved_regs" with "this_saved_regs".
8146
efd710d6
AC
81472003-03-16 Andrew Cagney <cagney@redhat.com>
8148
8149 * frame.c (frame_pop): Don't call target_store_registers. Fix
8150 problem reported by Mark Kettenis.
8151
4e259f09
MK
81522003-03-16 Mark Kettenis <kettenis@gnu.org>
8153
8154 * i386-tdep.c (i386_register_type): Renamed from
8155 i386_register_virtual_type. Adjust function signature.
8156 (i386_gdbarch_init): Set register_type instead of
8157 deprecated_max_register_raw_size,
8158 deprecated_max_register_virtual_size and register_virtual_type.
8159
055bb976
AC
81602003-03-14 Andrew Cagney <cagney@redhat.com>
8161
8162 * frame.c (get_prev_frame): When a legacy frame, always call
8163 legacy_get_prev_frame. Simplify unwind code using assumption that
8164 the unwinder is new.
8165 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8166 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8167 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8168
ac2adee5
AC
81692003-03-14 Andrew Cagney <cagney@redhat.com>
8170
8171 * frame.c (get_saved_register): Delete function.
8172 * frame.h (get_saved_register): Delete declaration.
8173 * xstormy16-tdep.c: Update comment.
8174 * regcache.h: Update comments.
8175 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8176 get_saved_register and extract_address, use
8177 frame_read_unsigned_register.
8178 (sparc_frame_saved_pc): Ditto.
8179 (sparc_get_saved_register): Instead of get_saved_register, use
8180 frame_register.
8181 (sparc_pop_frame): Ditto.
8182 * findvar.c: Update comments.
8183 (value_of_register): Call frame_register instead of
8184 get_saved_register.
8185 (value_from_register): Ditto.
8186 * config/sparc/tm-sparc.h: Update comment.
8187 * breakpoint.c: Update comment.
8188
129c1cd6
AC
81892003-03-14 Andrew Cagney <cagney@redhat.com>
8190
8191 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8192 GET_SAVED_REGISTER.
8193 * gdbarch.h, gdbarch.c: Re-generate.
8194 * frame.h: Update comments.
8195 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8196 * x86-64-tdep.c (x86_64_init_abi): Update.
8197 * sparc-tdep.c (sparc_gdbarch_init): Update.
8198 * sh-tdep.c (sh_gdbarch_init): Update.
8199 * mips-tdep.c (mips_gdbarch_init): Update.
8200 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8201 * cris-tdep.c (cris_gdbarch_init): Update.
8202 * ia64-tdep.c (ia64_gdbarch_init): Update.
8203 * frame.c (frame_register): Update.
8204 (get_saved_register): Update.
8205 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 8206
749b82f6
AC
82072003-03-13 Andrew Cagney <cagney@redhat.com>
8208
8209 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8210 * gdbarch.h, gdbarch.c: Regenerate.
8211 * valops.c (hand_function_call): Update comment.
8212 * stack.c (return_command): Update comment.
8213 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8214 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8215 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8216 * x86-64-tdep.c (x86_64_init_abi): Update.
8217 * vax-tdep.c (vax_gdbarch_init): Update.
8218 * v850-tdep.c (v850_gdbarch_init): Update.
8219 * sparc-tdep.c (sparc_gdbarch_init): Update.
8220 * sh-tdep.c (sh_gdbarch_init): Update.
8221 * s390-tdep.c (s390_gdbarch_init): Update.
8222 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8223 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8224 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8225 * mips-tdep.c (mips_gdbarch_init): Update.
8226 * mcore-tdep.c (mcore_gdbarch_init): Update.
8227 * m68k-tdep.c (m68k_gdbarch_init): Update.
8228 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8229 * ia64-tdep.c (ia64_gdbarch_init): Update.
8230 * i386-tdep.c (i386_gdbarch_init): Update.
8231 * hppa-tdep.c (hppa_gdbarch_init): Update.
8232 * h8300-tdep.c (h8300_gdbarch_init): Update.
8233 * frv-tdep.c (frv_gdbarch_init): Update.
8234 * cris-tdep.c (cris_gdbarch_init): Update.
8235 * avr-tdep.c (avr_gdbarch_init): Update.
8236 * arm-tdep.c (arm_gdbarch_init): Update.
8237 * alpha-tdep.c (alpha_gdbarch_init): Update.
8238
1594fa56
AC
82392003-03-13 Andrew Cagney <cagney@redhat.com>
8240
8241 * frame.c (legacy_frame_p): New function.
8242 (get_prev_frame): Use legacy_frame_p.
8243 * frame.h (legacy_frame_p): Declare.
8244
7717fda3
V
82452003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8246
fbe586ae 8247 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
8248 listing corrected.
8249
0c67cbe9
V
82502003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8251
fbe586ae 8252 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 8253
03febf99
AC
82542003-03-12 Andrew Cagney <cagney@redhat.com>
8255
8256 * frame.c (get_prev_frame): Rename the frame parameter to
8257 "this_frame".
8258 (get_next_frame, legacy_get_prev_frame): Ditto.
8259
0a1e1ca1
AC
82602003-03-12 Andrew Cagney <cagney@redhat.com>
8261
8262 * frame.c (get_current_frame): Check target_has_registers before
8263 checking target_has_stack.
8264 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8265 instead of deprecated_selected_frame.
8266 * findvar.c (value_of_register): Pass "frame", not
8267 deprecated_selected_frame, to value_of_builtin_reg.
8268
a66a9c23
AC
82692003-03-12 Andrew Cagney <cagney@redhat.com>
8270
8271 * regcache.c (regcache_cooked_write_signed): New function.
8272 (regcache_cooked_write_unsigned): New function.
8273 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8274 (regcache_cooked_read_signed): Fix regnum in range assertion.
8275 * regcache.h (regcache_cooked_write_signed): Declare.
8276 (regcache_cooked_write_unsigned): Declare.
8277
8bedc050
AC
82782003-03-12 Andrew Cagney <cagney@redhat.com>
8279
8280 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8281 * gdbarch.h, gdbarch.c: Re-generate.
8282 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8283 * x86-64-tdep.h: Update.
8284 * x86-64-tdep.c (x86_64_init_abi): Update.
8285 * v850-tdep.c (v850_gdbarch_init): Update.
8286 * sparc-tdep.c (sparc_gdbarch_init): Update.
8287 * sh-tdep.c (sh_gdbarch_init): Update.
8288 * s390-tdep.c (s390_gdbarch_init): Update.
8289 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8290 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8291 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8292 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8293 * mips-tdep.c (mips_gdbarch_init): Update.
8294 * mcore-tdep.c (mcore_gdbarch_init): Update.
8295 * m68k-tdep.c (m68k_gdbarch_init): Update.
8296 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8297 * ia64-tdep.c (ia64_gdbarch_init): Update.
8298 * i386-tdep.c (i386_gdbarch_init): Update.
8299 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8300 * hppa-tdep.c (hppa_gdbarch_init): Update.
8301 * h8300-tdep.c (h8300_gdbarch_init): Update.
8302 * frv-tdep.c (frv_gdbarch_init): Update.
8303 * cris-tdep.c (cris_gdbarch_init): Update.
8304 * avr-tdep.c (avr_gdbarch_init): Update.
8305 * arm-tdep.c (arm_gdbarch_init): Update.
8306 * alpha-tdep.c (alpha_gdbarch_init): Update.
8307 * sh-tdep.c (sh_init_extra_frame_info): Update.
8308 (sh64_init_extra_frame_info): Update.
8309 * ns32knbsd-nat.c (frame_num_args): Update.
8310 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8311 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8312 (xstormy16_frame_chain_valid): Update.
8313 * vax-tdep.c (vax_saved_pc_after_call): Update.
8314 * v850-tdep.c (v850_frame_chain): Update.
8315 (v850_pop_frame): Update.
8316 (v850_init_extra_frame_info): Update.
8317 * sparc-tdep.c (setup_arbitrary_frame): Update.
8318 * ns32k-tdep.c (umax_frame_num_args): Update.
8319 * s390-tdep.c (s390_pop_frame_regular): Update.
8320 * mn10300-tdep.c (mn10300_frame_chain): Update.
8321 (mn10300_pop_frame_regular): Update.
8322 (mn10300_init_extra_frame_info): Update.
8323 * mips-tdep.c (mips_init_frame_pc_first): Update.
8324 (mips_frame_chain): Update.
8325 (mips_pop_frame): Update.
8326 * mcore-tdep.c (mcore_frame_chain): Update.
8327 (mcore_pop_frame): Update.
8328 (mcore_init_extra_frame_info): Update.
8329 * arch-utils.c (init_frame_pc_default): Update.
8330 * m68k-tdep.c (isi_frame_num_args): Update.
8331 (delta68_frame_num_args): Update.
8332 (news_frame_num_args): Update.
8333 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8334 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8335 (alpha_frame_chain): Update.
8336 (alpha_pop_frame): Update.
8337 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8338 (hppa_init_extra_frame_info): Update.
8339 (hppa_frame_chain): Update.
8340 (hppa_frame_chain_valid): Update.
8341 * cris-tdep.c (cris_init_extra_frame_info): Update.
8342 * avr-tdep.c (avr_init_extra_frame_info): Update.
8343 * arm-tdep.c (arm_frame_chain_valid): Update.
8344 (arm_init_extra_frame_info): Update.
8345 (arm_pop_frame): Update.
8346 * frame.c (frame_pc_unwind): Update.
8347 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8348 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8349 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8350 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8351 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8352 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8353
7a25a7c1
AC
83542003-03-12 Andrew Cagney <cagney@redhat.com>
8355
8356 Eliminate the need for POP_FRAME.
8357 * frame.c (do_frame_unwind_register): New function.
8358 (frame_pop): When no POP_FRAME, pop the frame using register
8359 unwind and a scratch regcache.
8360 (frame_saved_regs_pop): Delete function.
8361 (trad_frame_unwinder): Update.
8362 * d10v-tdep.c (d10v_frame_pop): Delete function.
8363 (d10v_frame_unwind): Update.
8364 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8365 (sentinel_frame_unwinder): Update.
8366 * dummy-frame.c (dummy_frame_pop): Delete function.
8367 (dummy_frame_unwind): Update.
8368 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8369 (struct frame_unwind): Update.
8370
2f38ef89
KB
83712003-03-11 Kevin Buettner <kevinb@redhat.com>
8372
8373 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8374 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8375 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8376 Do range checks on register number obtained from debugging info.
8377 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8378 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8379 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8380 mapping function.
8381 (do_fp_register_row): Fix typo which caused double type to be
8382 used when attempting to unpack a float.
8383
552f4abf
JB
83842003-03-11 J. Brobecker <brobecker@gnat.com>
8385
8386 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8387
e0d2ae16
AC
83882003-03-11 Andrew Cagney <cagney@redhat.com>
8389
8390 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8391 frame. Problem found by Corinna Vinschen.
8392
ddbfdd06
PM
83932003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8394
8395 * doublest.c (floatformat_from_length): Accept also
8396 the real size of 'long double' type.
8397
088b2ddc 83982003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 8399
088b2ddc 8400 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
8401 * breakpoint.c (bpstat_copy): Copy the command lines as well
8402 as the old value, to match what is freed in bpstat_clear.
8403
f56f77c1
DC
84042003-03-10 David Carlton <carlton@math.stanford.edu>
8405
8406 * minsyms.c (add_minsym_to_hash_table): Replace
8407 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8408 (compare_minimal_symbols, compact_minimal_symbols)
8409 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8410 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8411 of DEPRECATED_SYMBOL_MATCHES_NAME.
8412 (lookup_minimal_symbol_solib_trampoline): Ditto.
8413
5602984a
AC
84142003-03-10 Andrew Cagney <cagney@redhat.com>
8415
8416 * regcache.h (regcache_cooked_read_ftype): Define.
8417 (regcache_save, regcache_restore): Add a cooked_read parameter.
8418 * regcache.c (regcache_save, regcache_restore): Update.
8419 (do_cooked_read): New function.
8420 (regcache_cpy): Pass do_cooked_read to regcache_save and
8421 regcache_restore.
8422
8bedc050
AC
84232003-03-10 Andrew Cagney <cagney@redhat.com>
8424
8425 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8426 * gdbarch.h, gdbarch.c: Re-generate.
8427 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8428 * x86-64-tdep.h: Update.
8429 * x86-64-tdep.c (x86_64_init_abi): Update.
8430 * v850-tdep.c (v850_gdbarch_init): Update.
8431 * sparc-tdep.c (sparc_gdbarch_init): Update.
8432 * sh-tdep.c (sh_gdbarch_init): Update.
8433 * s390-tdep.c (s390_gdbarch_init): Update.
8434 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8435 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8436 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8437 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8438 * mips-tdep.c (mips_gdbarch_init): Update.
8439 * mcore-tdep.c (mcore_gdbarch_init): Update.
8440 * m68k-tdep.c (m68k_gdbarch_init): Update.
8441 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8442 * ia64-tdep.c (ia64_gdbarch_init): Update.
8443 * i386-tdep.c (i386_gdbarch_init): Update.
8444 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8445 * hppa-tdep.c (hppa_gdbarch_init): Update.
8446 * h8300-tdep.c (h8300_gdbarch_init): Update.
8447 * frv-tdep.c (frv_gdbarch_init): Update.
8448 * cris-tdep.c (cris_gdbarch_init): Update.
8449 * avr-tdep.c (avr_gdbarch_init): Update.
8450 * arm-tdep.c (arm_gdbarch_init): Update.
8451 * alpha-tdep.c (alpha_gdbarch_init): Update.
8452 * sh-tdep.c (sh_init_extra_frame_info): Update.
8453 (sh64_init_extra_frame_info): Update.
8454 * ns32knbsd-nat.c (frame_num_args): Update.
8455 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8456 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8457 (xstormy16_frame_chain_valid): Update.
8458 * vax-tdep.c (vax_saved_pc_after_call): Update.
8459 * v850-tdep.c (v850_frame_chain): Update.
8460 (v850_pop_frame): Update.
8461 (v850_init_extra_frame_info): Update.
8462 * sparc-tdep.c (setup_arbitrary_frame): Update.
8463 * ns32k-tdep.c (umax_frame_num_args): Update.
8464 * s390-tdep.c (s390_pop_frame_regular): Update.
8465 * mn10300-tdep.c (mn10300_frame_chain): Update.
8466 (mn10300_pop_frame_regular): Update.
8467 (mn10300_init_extra_frame_info): Update.
8468 * mips-tdep.c (mips_init_frame_pc_first): Update.
8469 (mips_frame_chain): Update.
8470 (mips_pop_frame): Update.
8471 * mcore-tdep.c (mcore_frame_chain): Update.
8472 (mcore_pop_frame): Update.
8473 (mcore_init_extra_frame_info): Update.
8474 * arch-utils.c (init_frame_pc_default): Update.
8475 * m68k-tdep.c (isi_frame_num_args): Update.
8476 (delta68_frame_num_args): Update.
8477 (news_frame_num_args): Update.
8478 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8479 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8480 (alpha_frame_chain): Update.
8481 (alpha_pop_frame): Update.
8482 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8483 (hppa_init_extra_frame_info): Update.
8484 (hppa_frame_chain): Update.
8485 (hppa_frame_chain_valid): Update.
8486 * cris-tdep.c (cris_init_extra_frame_info): Update.
8487 * avr-tdep.c (avr_init_extra_frame_info): Update.
8488 * arm-tdep.c (arm_frame_chain_valid): Update.
8489 (arm_init_extra_frame_info): Update.
8490 (arm_pop_frame): Update.
8491 * frame.c (frame_pc_unwind): Update.
8492 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8493 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8494 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8495 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8496 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8497 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8498
12cc2063
AC
84992003-03-10 Andrew Cagney <cagney@redhat.com>
8500
8501 * gdbarch.sh (gdbarch_unwind_pc): New method.
8502 * gdbarch.h, gdbarch.c: Regenerate.
8503 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8504 but use read_pc and FRAME_SAVED_PC as fall backs.
8505 (frame_saved_regs_pc_unwind): Delete function.
8506 (trad_frame_unwinder): Update.
8507 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8508 (struct frame_unwind): Update.
8509 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8510 (dummy_frame_unwind): Update.
8511 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8512 (sentinel_frame_unwinder): Update.
8513 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8514 (d10v_frame_unwind): Update.
8515 (d10v_unwind_pc): New function.
8516 (d10v_gdbarch_init): Set unwind_pc.
8517
ef840a37
AC
85182003-03-10 Andrew Cagney <cagney@redhat.com>
8519
a2ce2e56
AC
8520 * gdbarch.h: Re-generate.
8521
ef840a37
AC
8522 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8523 PC.
8524 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8525 the PC register.
8526
08f3424b
MK
85272003-03-08 Mark Kettenis <kettenis@gnu.org>
8528
8529 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8530
1248ede2
AC
85312003-03-08 Andrew Cagney <cagney@redhat.com>
8532
8533 * cli-out.c: Update copyright.
8534 (cli_out_data): Define typedef. Use instead of ui_out_data.
8535
f49bacc8
AC
85362003-03-08 Andrew Cagney <cagney@redhat.com>
8537
8538 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8539 the result.
8540
9b05f993
AC
85412003-03-07 Andrew Cagney <cagney@redhat.com>
8542
8543 * gdbarch.sh: Don't generate two macro definitions when an
8544 undefined macro taking no arguments.
8545 * gdbarch.h: Regenerate.
8ffd9b1b 8546
166f4c7b
ML
85472002-03-07 Michal Ludvig <mludvig@suse.cz>
8548
8549 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8550 (x86_64_unwind_dummy_id): New functions.
8551 (x86_64_init_abi): Register these two new functions.
8552
6d686a84
ML
85532003-03-07 Michal Ludvig <mludvig@suse.cz>
8554
8555 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 8556 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
8557 separate function.
8558 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8559
6314f104
AC
85602003-03-05 Andrew Cagney <cagney@redhat.com>
8561
8562 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8563 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8564 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8565 to use unwind_dummy_id when a dummy frame.
8566 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8567 predicate.
8568 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 8569
ceea5145
AC
85702003-03-05 Andrew Cagney <cagney@redhat.com>
8571
8572 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8573 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8574 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8575 values.
8576
0d843116
AC
85772003-03-05 Andrew Cagney <cagney@redhat.com>
8578
8579 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8580 (struct d10v_unwind_cache): Delete field "frameless". Replace
8581 "next_addr" with "sp_offset". Add "r11_offset".
8582 (d10v_frame_unwind_cache): Update.
8583 (prologue_find_regs): Update. When "mv r11, sp", save the
8584 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8585 RN was saved in r11_offset.
8586
b2579786
AC
85872003-03-05 Andrew Cagney <cagney@redhat.com>
8588
8589 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8590 cached PC value in the next frame.
8591
218e5956
AC
85922003-03-05 Andrew Cagney <cagney@redhat.com>
8593
8594 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8595 "id_unwind_cache" with "id".
8596 (frame_id_unwind): Delete declaration.
8597 * frame.c (frame_id_unwind): Delete function.
8598 (get_prev_frame): Call the frame id unwind method directly. Store
8599 the returned next frame's ID value in NEXT_FRAME. Note that there
8600 is a problem with the wrong unwind ID being called with the wrong
8601 unwind cache.
8602
ed363b1b
DJ
86032003-03-05 Daniel Jacobowitz <drow@mvista.com>
8604
8605 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8606
fe1f4a5e
DJ
86072003-03-05 James Ingham <jingham@apple.com>
8608 Daniel Jacobowitz <drow@mvista.com>
8609
8610 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8611 (auto_cp_abi): New variable.
8612 (current_cp_abi, num_cp_abis): Make static.
8613 (CP_ABI_MAX): Define.
8614 (cp_abis): Turn into an array.
8615 (value_virtual_fn_field): Fix formatting.
8616 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8617 takes a pointer.
8618 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8619 (list_cp_abis, _initialize_cp_abi): New functions.
8620 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8621 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8622 switch_to_cp_abi. Update prototype for register_cp_abi.
8623 * Makefile.in (cp-abi.o): Update dependencies.
8624 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8625 instead of switch_to_cp_abi.
8626 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8627 register_cp_abi.
8628 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8629 register_cp_abi.
8630 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8631
e4adbba9
DJ
86322003-03-05 Daniel Jacobowitz <drow@mvista.com>
8633
8634 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8635 * dwarf2loc.c: Include "regcache.h".
8636 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8637 register_size.
8638 * Makefile.in (dwarf2loc.o): Update dependencies.
8639
91ccbfc1
TR
86402003-03-04 Theodore A. Roth <troth@openavr.org>
8641
8642 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8643 number of io registers reported by remote target is not a multiple of
8644 step.
8645
3d4e8fd2
DC
86462003-03-04 David Carlton <carlton@math.stanford.edu>
8647
8648 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8649 (lookup_symbol_aux_psymtabs): Update call to
8650 lookup_partial_symbol.
8651 (lookup_transparent_type, find_main_psymtab)
8652 (make_symbol_overload_list): Ditto.
8653
ed42d87b
KH
86542003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8655
8656 * MAINTAINERS (Write after approval): Update my email address.
8657
a0ed5532
AC
86582003-03-03 Andrew Cagney <cagney@redhat.com>
8659
8660 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8661 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8662 predicate. Replace MAX_REGISTER_RAW_SIZE.
8663 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8664 MAX_REGISTER_VIRTUAL_SIZE.
8665 * regcache.c (legacy_max_register_raw_size): New function.
8666 (legacy_max_register_virtual_size): New function.
8667 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8668 (MAX_REGISTER_RAW_SIZE): Define.
8669 (legacy_max_register_raw_size): Declare.
8670 (legacy_max_register_virtual_size): Declare.
8671 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8672 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8673 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8674 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8675 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8676 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8677 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8678 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8679 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8680 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8681 * vax-tdep.c (vax_gdbarch_init): Update.
8682 * v850-tdep.c (v850_gdbarch_init): Update.
8683 * sparc-tdep.c (sparc_gdbarch_init): Update.
8684 * sh-tdep.c (sh_gdbarch_init): Update.
8685 * s390-tdep.c (s390_gdbarch_init): Update.
8686 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8687 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8688 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8689 * mips-tdep.c (mips_gdbarch_init): Update.
8690 * mcore-tdep.c (mcore_gdbarch_init): Update.
8691 * m68k-tdep.c (m68k_gdbarch_init): Update.
8692 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8693 * ia64-tdep.c (ia64_gdbarch_init): Update.
8694 * i386-tdep.c (i386_gdbarch_init): Update.
8695 * hppa-tdep.c (hppa_gdbarch_init): Update.
8696 * h8300-tdep.c (h8300_gdbarch_init): Update.
8697 * frv-tdep.c (frv_gdbarch_init): Update.
8698 * cris-tdep.c (cris_gdbarch_init): Update.
8699 * avr-tdep.c (avr_gdbarch_init): Update.
8700 * arm-tdep.c (arm_gdbarch_init): Update.
8701 * alpha-tdep.c (alpha_gdbarch_init): Update.
8702 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8703 max_register_raw_size or max_register_virtual_size.
8704
8e437497
DC
87052003-03-03 David Carlton <carlton@math.stanford.edu>
8706
8707 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8708 SYMBOL_MATCHES_NAME, add comment.
8709 (SYMBOL_MATCHES_NATURAL_NAME): New.
8710 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8711 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8712 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8713 * symtab.c (lookup_partial_symbol): Use
8714 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8715 unhelpful comment.
8716 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8717 SYMBOL_MATCHES_NAME.
8718 Fix for PR c++/33.
8719
25120b0d
DC
87202003-03-03 David Carlton <carlton@math.stanford.edu>
8721
8722 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8723 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8724 by regexp matching against SYMBOL_NATURAL_NAME.
8725
78a11fb4
DC
87262003-03-03 David Carlton <carlton@math.stanford.edu>
8727
8728 * linespec.c (find_method): Extract code into collect_methods.
8729 (collect_methods): New.
8730
645dd519
MK
87312003-03-02 Mark Kettenis <kettenis@gnu.org>
8732
b4700d91
MK
8733 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8734 get_frame_base.
8735
645dd519
MK
8736 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8737 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8738
0aa7e1aa
SC
87392003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8740
8ffd9b1b 8741 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
8742 and not regnum when summing the size of all registers up to regnum.
8743
f30ee0bc
AC
87442003-03-01 Andrew Cagney <cagney@redhat.com>
8745
8746 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8747 FRAME_INIT_SAVED_REGS.
8748 * gdbarch.h, gdbarch.c: Regenerate.
8749 * stack.c (frame_info): Update.
8750 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8751 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8752 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8753 * ns32k-tdep.c (ns32k_pop_frame): Update.
8754 * mips-tdep.c (mips_pop_frame): Update.
8755 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8756 * ia64-tdep.c (ia64_frame_chain): Update.
8757 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8758 (ia64_frameless_function_invocation): Update.
8759 (ia64_init_extra_frame_info): Update.
8760 (ia64_pop_frame_regular): Update.
8761 * frame.h (struct frame_info): Update comment.
8762 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8763 * frame.c (frame_saved_regs_register_unwind): Update.
8764 (frame_saved_regs_register_unwind): Update.
8765 (deprecated_generic_get_saved_register): Update.
8766 * cris-tdep.c: Update comment.
8767 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8768 Rename macro.
8769 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8770 * x86-64-tdep.c (x86_64_init_abi): Update.
8771 * vax-tdep.c (vax_gdbarch_init): Update.
8772 * v850-tdep.c (v850_gdbarch_init): Update.
8773 * sparc-tdep.c (sparc_gdbarch_init): Update.
8774 * sh-tdep.c (sh_gdbarch_init): Update.
8775 * s390-tdep.c (s390_gdbarch_init): Update.
8776 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8777 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8778 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8779 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8780 * mips-tdep.c (mips_gdbarch_init): Update.
8781 * mcore-tdep.c (mcore_gdbarch_init): Update.
8782 * m68k-tdep.c (m68k_gdbarch_init): Update.
8783 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8784 * ia64-tdep.c (ia64_gdbarch_init): Update.
8785 * i386-tdep.c (i386_gdbarch_init): Update.
8786 * frv-tdep.c (frv_gdbarch_init): Update.
8787 * avr-tdep.c (avr_gdbarch_init): Update.
8788 * arm-tdep.c (arm_gdbarch_init): Update.
8789 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8790
42fa7c0f
AC
87912003-03-01 Andrew Cagney <cagney@redhat.com>
8792
8793 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8794 option enum and switch. When no windows, set the interpreter to
8795 INTERP_CONSOLE.
8ffd9b1b 8796
49c7e338
AC
87972003-03-01 Andrew Cagney <cagney@redhat.com>
8798
8799 * main.c (captured_main): Replace magic option characters with an
8800 enum.
8801
e9582e71
AC
88022003-03-01 Andrew Cagney <cagney@redhat.com>
8803
8804 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8805 INIT_EXTRA_FRAME_INFO.
8806 * gdbarch.h, gdbarch.c: Regenerate.
8807 * arm-tdep.c: Update comments.
8808 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8809 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8810 * frame.h, avr-tdep.c: Ditto.
8811 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8812 (create_new_frame, legacy_get_prev_frame): Ditto.
8813 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8814 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8815 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8816 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8817 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8818 * v850-tdep.c (v850_gdbarch_init): Ditto.
8819 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8820 * sh-tdep.c (sh_gdbarch_init): Ditto.
8821 * s390-tdep.c (s390_gdbarch_init): Ditto.
8822 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8823 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8824 * mips-tdep.c (mips_gdbarch_init): Ditto.
8825 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8826 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8827 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8828 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8829 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8830 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8831 * frv-tdep.c (frv_gdbarch_init): Ditto.
8832 * cris-tdep.c (cris_gdbarch_init): Ditto.
8833 * avr-tdep.c (avr_gdbarch_init): Ditto.
8834 * arm-tdep.c (arm_gdbarch_init): Ditto.
8835 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8836 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8837
35cac7cf
AC
88382003-03-01 Andrew Cagney <cagney@redhat.com>
8839
8840 * gdbarch.sh (register_type): New function with predicate.
8841 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8842 * gdbarch.h, gdbarch.c: Re-generate.
8843 * arch-utils.c (generic_register_byte): Use generic_register_size.
8844 (generic_register_size): When available, use
8845 gdbarch_register_type.
8846 * regcache.c (init_regcache_descr): When available, initialize the
8847 register type array using gdbarch_register_type. If the
8848 architecture supplies gdbarch_register_type, do not use the legacy
8849 regcache layout.
8850 * d10v-tdep.c (d10v_register_type): Replace
8851 d10v_register_virtual_type.
8852 (d10v_gdbarch_init): Set register_type instead of
8853 register_virtual_type.
8854
7b83296f
AC
88552003-03-01 Andrew Cagney <cagney@redhat.com>
8856
8857 * Makefile.in (ax-gdb.o): Update dependencies.
8858 * ax-gdb.c: Include "regcache.h".
8859 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8860 * findvar.c (value_of_register): Ditto.
8861 * infcmd.c (default_print_registers_info): Ditto.
8862
eadc1c87
MK
88632003-03-01 Mark Kettenis <kettenis@gnu.org>
8864
8865 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8866 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8867
14143612
MK
88682003-03-01 Mark Kettenis <kettenis@gnu.org>
8869
8870 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8871 of STREQ.
8872
a55cc764
DJ
88732003-02-28 Daniel Jacobowitz <drow@mvista.com>
8874
8875 * Makefile.in (dwarf2loc.o): Update dependencies.
8876 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8877 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8878 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8879 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8880 (locexpr_tracepoint_var_ref): New function.
8881 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8882
08a617da
AC
88832003-02-28 Andrew Cagney <cagney@redhat.com>
8884
8885 * regcache.c (register_size): New function.
8886 * regcache.h (register_size): Declare
8887 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8888 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8889
4224873a
DC
88902003-02-28 David Carlton <carlton@math.stanford.edu>
8891
8892 * linespec.c (decode_compound): Extract code into find_method.
8893 (find_method): New.
8894
ccdc5d7f
JB
88952003-02-28 J. Brobecker <brobecker@gnat.com>
8896
8897 * Makefile.in: Add rules to build and link in observer.o.
8898
974e8ced
JB
88992003-02-27 J. Brobecker <brobecker@gnat.com>
8900
8901 * observer.c: Minor comments edits.
8902
7a28f973
JB
89032003-02-27 J. Brobecker <brobecker@gnat.com>
8904
8905 * observer.h, observer.c: New file.
8906
27cddce2
AC
89072003-02-27 Andrew Cagney <cagney@redhat.com>
8908
8909 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8910
b94a41a1
SC
89112003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8912
8913 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8914 (M6812_OP_STS_EXT): Likewise.
8915 (m6811_prologue): Use the above to recognize prologue.
8916 (m6812_prologue): Likewise.
8917
c8be8951
DC
89182003-02-27 David Carlton <carlton@math.stanford.edu>
8919
8920 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8921 SYMBOL_PRINT_NAME.
8922 (compare_psymbols): Ditto.
8923 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8924
d05bb1fc
MS
89252003-02-27 Michael Snyder <msnyder@redhat.com>
8926
4e845cd3
MS
8927 * f-lang.c (build_fortran_types): New function.
8928 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
8929 * doublest.c (extract_floating): Fix warning text.
8930
f3824013
AC
89312003-02-27 Andrew Cagney <cagney@redhat.com>
8932
8933 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8934 predicate. Replaces PUSH_DUMMY_FRAME.
8935 * gdbarch.h, gdbarch.c: Regnerate.
8936 * valops.c (hand_function_call): Update. Call
8937 generic_push_dummy_frame directly.
8938 * vax-tdep.c (vax_gdbarch_init): Update.
8939 * sparc-tdep.c (sparc_gdbarch_init): Update.
8940 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8941 * m68k-tdep.c (m68k_gdbarch_init): Update.
8942 * hppa-tdep.c (hppa_gdbarch_init): Update.
8943 * alpha-tdep.c (alpha_gdbarch_init): Update.
8944 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8945 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8946 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8947 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8948 push_dummy_frame to generic_push_dummy_frame.
8949 * v850-tdep.c (v850_gdbarch_init): Ditto.
8950 * sh-tdep.c (sh_gdbarch_init): Ditto.
8951 * s390-tdep.c (s390_gdbarch_init): Ditto.
8952 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8953 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8954 * mips-tdep.c (mips_gdbarch_init): Ditto.
8955 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8956 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8957 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8958 * i386-tdep.c (i386_gdbarch_init): Ditto.
8959 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8960 * frv-tdep.c (frv_gdbarch_init): Ditto.
8961 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8962 * cris-tdep.c (cris_gdbarch_init): Ditto.
8963 * avr-tdep.c (avr_gdbarch_init): Ditto.
8964 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 8965
ad188201
KB
89662003-02-26 Kevin Buettner <kevinb@redhat.com>
8967
8968 * mips-tdep.c (show_mips_abi): New function.
8969 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8970 command ``show mips abi''.
8971
6b37567a 89722003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 8973
6b37567a 8974 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 8975 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
8976 more sline entries have been seen for the function.
8977
d3e0a5bf
MC
89782003-02-26 Michael Chastain <mec@shout.net>
8979
8980 * configure: Regenerate with autoconf 000227.
8981
18972eea
MC
89822003-02-26 Michael Chastain <mec@shout.net>
8983
8984 Close PR build/660.
8985 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8986 for old libc5/glibc.
8987 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8988
0bbde931
KW
89892003-02-26 Kris Warkentin <kewarken@qnx.com>
8990
8991 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8992 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8993
27ca5dad
MC
89942003-02-26 Michael Chastain <mec@shout.net>
8995
8996 * configure.in: New variable HAVE_UINTPTR_T.
8997 * configure, config.in: Regenerated.
8998
6f88d630
DJ
89992003-02-26 Daniel Jacobowitz <drow@mvista.com>
9000
9001 Fix PR build/1097.
9002 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9003
b14185ce
AC
90042003-02-25 Andrew Cagney <cagney@redhat.com>
9005
9006 * frame.c (get_prev_frame): Add comment on check for
9007 inside_entry_func. Only check for inside_entry_file when not a
9008 dummy and not a sentinel. Check that the new frame is not inner
9009 to the old frame.
9010
ac2bd0a9
AC
90112003-02-25 Andrew Cagney <cagney@redhat.com>
9012
9013 * frame.c (frame_debug): New variable.
9014 (_initialize_frame): Add "set/show debug frame" command.
9015 (get_prev_frame): When frame_debug, print reason why unwind
9016 failed.
9017
b18a0fd2
MC
90182003-02-25 Michael Chastain <mec@shout.net>
9019
9020 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9021 to avoid uintptr_t definition problems.
9022
22abf04a
DC
90232003-02-25 David Carlton <carlton@math.stanford.edu>
9024
9025 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9026 (SYMBOL_LINKAGE_NAME): Ditto.
9027 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9028 SYMBOL_LINKAGE_NAME.
9029 (struct general_symbol_info): Expand comment.
9030 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9031 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9032 (SYMBOL_MATCHES_REGEXP): Ditto.
9033 * symtab.c (symbol_natural_name): New function.
9034 * objfiles.h: Replace all uses of SYMBOL_NAME by
9035 DEPRECATED_SYMBOL_NAME.
9036 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9037 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9038 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9039 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9040 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9041 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9042 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9043 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9044 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9045 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9046 * ada-exp.y: Ditto.
9047 * ada-exp.y: Update copyright.
9048 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9049 * cp-valprint.c: Ditto.
9050
1a5848f6
JJ
90512003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9052
9053 * infptrace.c (detach): Do not flag error if ptrace detach fails
9054 and errno is set to ESRCH.
9055
7343d46a
AC
90562003-02-24 Andrew Cagney <cagney@redhat.com>
9057
9058 * infptrace.c (udot_info): Change type of udot_off to long. Use
9059 paddr when printing udot_off's value.
9060
49fa1dc2
DC
90612003-02-24 David Carlton <carlton@math.stanford.edu>
9062
9063 * symtab.c (make_symbol_overload_list): Only read in partial
9064 symtabs containing a matching partial symbol.
9065
0fe19209
DC
90662003-02-24 David Carlton <carlton@math.stanford.edu>
9067
9068 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9069 do the comparison, not strcmp.
9070 * symfile.c (compare_psymbols): Ditto.
9071 * defs.h: Declare strcmp_iw_ordered.
9072 * utils.c (strcmp_iw_ordered): New function.
9073
8e3ee7b5
JB
90742003-02-24 Jim Blandy <jimb@redhat.com>
9075
9076 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9077 support, shared libs): Remove my name from here, to better reflect
9078 reality.
9079
7df1a324
KW
90802003-02-24 Kris Warkentin <kewarken@qnx.com>
9081
9082 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9083 (target_ops): Add to_have_continuable_watchpoint.
9084 * target.c (update_current_target): Add INHERIT line for
9085 to_have_continuable_watchpoint.
9086 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9087 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9088 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9089 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9090
d1c76907
EZ
90912003-02-24 Elena Zannoni <ezannoni@redhat.com>
9092
9093 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9094 maintainership.
9095
2610b0bf
KW
90962003-02-24 Kris Warkentin <kewarken@qnx.com>
9097
f46169db
KW
9098 * solib.c (solib_open): Call target defined search function after
9099 failing with solib-search-path.
9100 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9101 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 9102
9a3c34fe
KW
91032003-02-24 Kris Warkentin <kewarken@qnx.com>
9104
f46169db 9105 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 9106
2417dd25
SC
91072003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9108
9109 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9110
b631436b
SC
91112003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9112
9113 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9114 (m68hc11_add_reggroups): New function.
9115 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9116 (m68hc11_gdbarch_init): Install the reggroups.
9117 (_initialize_m68hc11_tdep): Initialize them.
9118
0aa8c1e4
JW
91192003-02-21 James E Wilson <wilson@tuliptree.org>
9120
9121 * MAINTAINERS: Update my email address.
9122
50ceaba5
DC
91232003-02-21 David Carlton <carlton@math.stanford.edu>
9124
9125 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9126
4c2df51b
DJ
91272003-02-21 Daniel Jacobowitz <drow@mvista.com>
9128
9129 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9130 * symtab.h: Add opaque declarations of struct axs_value and
9131 struct agent_expr.
9132 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9133 (struct location_funcs): New type.
9134 (struct symbol): Add "loc" to aux_value.
9135 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9136 * dwarf2read.c: Include "dwarf2expr.h".
9137 (dwarf2_symbol_mark_computed): New function.
9138 (read_func_scope): Use it.
9139 (var_decode_location): New function.
9140 (new_symbol): Use it.
9141 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9142
9143 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9144 (dwarf2expr_h, dwarf2loc_h): New variables.
9145 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9146 (dwarf2expr.o, dwarf2loc.o): New rules.
9147 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9148 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9149 LOC_COMPUTED_ARG.
9150 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9151 * m2-exp.y (yylex): Likewise.
9152 * printcmd.c (address_info, print_frame_args): Likewise.
9153 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9154 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9155 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9156 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9157 * symtab.c (lookup_block_symbol): Likewise.
9158
5784d15e
AF
91592003-02-20 Adam Fedor <fedor@gnu.org>
9160
9161 * symtab.h: Remove objc_specific struct
9162 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9163 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9164 Have language_objc use cplus_specific struct.
9165
d4cad8db
TT
91662003-02-20 Tom Tromey <tromey@redhat.com>
9167
9168 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9169 TYPE_NAME, when printing a String value. PR java/1075.
9170
2f9a90b4
AF
91712003-02-20 Adam Fedor <fedor@gnu.org>
9172
d38074a8 9173 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 9174 * objc-lang.c (find_methods): Make static.
2f9a90b4 9175
6f17862b
CF
91762003-02-20 Christopher Faylor <cgf@redhat.com>
9177
9178 * win32-nat.c (get_image_name): Check return value from
9179 ReadProcessMemory.
9180 (child_xfer_memory): Ditto.
9181
715d1656
AO
91822003-02-20 Alexandre Oliva <aoliva@redhat.com>
9183
9184 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9185 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9186 '${exec_prefix}' (in addition to the expansion thereof) as
9187 relocatable.
9188 * configure: Rebuilt.
9189
b1262a02
DC
91902003-02-20 David Carlton <carlton@math.stanford.edu>
9191
9192 * symtab.c (search_symbols): Revert the search_symbols part of my
9193 2002-12-23 patch. Add comment.
9194
7134143f
DJ
91952002-02-20 Daniel Jacobowitz <drow@mvista.com>
9196
9197 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9198 * dbxread.c (elfstab_build_psymtabs): Don't call
9199 install_minimal_symbols.
9200 (stabsect_build_psymtabs): Likewise.
9201 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9202 earlier.
9203 * somread.c (som_symfile_read): Call install_minimal_symbols
9204 and do_cleanups earlier.
9205 * nlmread.c (nlm_symfile_read): Likewise.
9206 * mdebugread.c (elfmdebug_build_psymtabs): Call
9207 install_minimal_symbols and make appropriate cleanups.
9208
cf466558
KB
92092003-02-20 Kevin Buettner <kevinb@redhat.com>
9210
9211 * solib.c (reload_shared_libraries): New function.
9212 (_initialize_solib): Add callbacks for ``set solib-search-path''
9213 and ``set solib-absolute-prefix''.
9214
de5ad195
DC
92152003-02-20 David Carlton <carlton@math.stanford.edu>
9216
9217 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9218 expand comment.
9219 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9220 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9221 * ada-typeprint.c (ada_typedef_print): Ditto.
9222 * ax-gdb.c (gen_var_ref): Ditto.
9223 * breakpoint.c (print_one_breakpoint): Ditto.
9224 * buildsym.c (finish_block): Ditto.
9225 * c-valprint.c (c_val_print): Ditto.
9226 * expprint.c (print_subexp): Ditto.
9227 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
9228 * infcmd.c (jump_command): Ditto.
9229 * linespec.c (decode_line_2, decode_compound): Ditto.
9230 * maint.c (maintenance_translate_address): Ditto.
9231 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
9232 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9233 Ditto.
8ffd9b1b
AJ
9234 * p-valprint.c (pascal_val_print): Ditto.
9235 * stabsread.c (define_symbol): Ditto.
de5ad195 9236 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
9237 (print_frame_arg_vars, return_command): Ditto.
9238 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9239 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
9240 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9241 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
9242 (rbreak_command): Ditto.
9243 * tracepoint.c (tracepoints_info): Ditto.
9244 * typeprint.c (typedef_print): Ditto.
9245 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
9246 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9247 * ada-typeprint.c: Update Copyright.
9248 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9249 * tracepoint.c, cli/cli-cmds.c: Ditto.
9250
f796e4be
KB
92512003-02-20 Kevin Buettner <kevinb@redhat.com>
9252
9253 * frame.c (generic_unwind_get_saved_register): Make non-static.
9254 * frame.h (generic_unwind_get_saved_register): Declare.
9255 * mips-tdep.c (read_next_frame_reg): Fetch register from
9256 current regcache when frame is NULL.
9257 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9258 that must be NULL.
9259 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9260 instead of frame_register_unwind().
9261
836cc9f4
AC
92622003-02-20 Andrew Cagney <ac131313@redhat.com>
9263
9264 * remote-sim.c (gdbsim_insert_breakpoint)
9265 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9266 code.
9267
501eef12
AC
92682003-02-20 Andrew Cagney <ac131313@redhat.com>
9269
9270 * remote.c (_initialize_remote): Add commands "set/show remote
9271 hardware-watchpoint-limit" and "set/show remote
9272 hardware-breakpoint-limit".
9273 (remote_hw_watchpoint_limit): Initialize to -1.
9274 (remote_hw_breakpoint_limit): Ditto.
9275 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9276
1b6bc7e0
CF
92772003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9278
9279 * coff-pe-read.c: New file - support reading of minimal symbols from a
9280 portable executable using the export table.
9281 * coff-pe-read.h: New file.
9282 * coffread.c: Include coff-pe-read.h.
9283 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9284 debugging symbols found.
9285 * Makefile.in (SFILES): Add coff-pe-read.o.
9286 (coff_pe_read_h): Define.
9287 (COMMON_OBS): Add coff-pe-read.o.
9288 (coffread.o): Add coff_pe_read_h dependency.
9289 (coff-pe-read.o): New target.
9290
fe898f56
DC
92912003-02-19 David Carlton <carlton@math.stanford.edu>
9292
9293 * Makefile.in (SFILES): Add block.c.
9294 (block_h): New.
9295 (COMMON_OBS): Add block.o.
9296 (block.o): New.
9297 (x86-64-tdep.o): Add $(block_h).
9298 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9299 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9300 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9301 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9302 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9303 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9304 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9305 * value.h: Add opaque declaration for struct block.
9306 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9307 * ada-lang.h: Ditto.
9308 * x86-64-tdep.c: #include "block.h"
9309 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9310 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9311 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9312 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9313 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9314 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9315 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9316 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9317 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9318 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9319 * symtab.c (block_function): Ditto.
9320 (contained_in): Ditto.
9321 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9322 block.h. Add opaque declaration for struct block.
9323 * symtab.h: Move block_function and contained_in declarations to
9324 block.h. Add opaque declarations for struct block, struct
9325 blockvector.
9326 (struct block): Move to block.h.
9327 (struct blockvector): Ditto.
9328 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9329 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9330 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9331 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9332 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9333 Ditto.
9334 * block.c: New file.
9335 * block.h: New file.
9336
173345b5
TR
93372003-02-19 Theodore A. Roth <troth@openavr.org>
9338
9339 * avr-tdep.c (avr_extract_return_value): Remove function.
9340 (avr_store_return_value): Remove function.
9341 (avr_extract_struct_value_address): Remove function.
9342 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9343
338ef23d
AC
93442003-02-19 Andrew Cagney <ac131313@redhat.com>
9345
9346 * rs6000-tdep.c: Include "gdb_assert.h".
9347 (registers_e500): Add "acc" and "spefscr".
9348 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9349 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9350 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9351 really is "r0".
9352 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9353
5412f5f3
KS
93542003-02-18 Keith Seitz <keiths@redhat.com>
9355
9356 * Makefile.in: Add gdbtk-interps.c.
9357
881324eb
KB
93582003-02-18 Kevin Buettner <kevinb@redhat.com>
9359
9360 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9361 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9362
6a2f5abf
AC
93632003-02-18 Andrew Cagney <cagney@redhat.com>
9364
9365 * symtab.h (struct objfile): Add opaque declaration.
9366
54c7009d
EZ
93672003-02-18 Elena Zannoni <ezannoni@redhat.com>
9368
9369 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
9370 * dbxread.c (process_one_symbol): Use last_function_start rather
9371 than function_start_offset to find the real beginning of the
9372 current function. The latter is just the text section offset on
9373 some systems, the former is always the real function start.
54c7009d 9374
7ee6d7eb
AC
93752003-02-17 Andrew Cagney <cagney@redhat.com>
9376
9377 * configure.in: Revert ${target} != ${host}.
9378
2846da9b
AC
93792003-02-17 Andrew Cagney <ac131313@redhat.com>
9380
9381 * configure.in (Makefile): Use the test ${target} != ${host},
9382 instead of the absence of the "nm.h" file, to determine of the
9383 configuration non-native.
9384 * configure: Regenerate.
8ffd9b1b 9385
3b27aeea
EZ
93862003-02-14 Elena Zannoni <ezannoni@redhat.com>
9387
fbe586ae 9388 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
9389
9390 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9391 conditionalize tui_active test.
9392 (lookup_cmd_1): Ditto.
9393
b0b1c2c0
MK
93942003-02-14 Mark Kettenis <kettenis@gnu.org>
9395
9396 * configure.in: Add check for _etext.
9397 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9398 available.
9399 * config.in, configure: regenerated.
9400
8f05cde5
DJ
94012003-02-14 Daniel Jacobowitz <drow@mvista.com>
9402
9403 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9404
021e7609
AC
94052003-02-14 Andrew Cagney <ac131313@redhat.com>
9406
9407 * main.c (tui_version): Delete variable.
9408 (captured_main): When --tui, set interpreter_p to "tui" instead of
9409 enabling tui_version.
9410 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9411 tui_version.
9412 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9413 * cli/cli-cmds.c (disassemble_command): Ditto.
9414 * defs.h (tui_version): Delete declaration.
9415 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9416 (tui-interp.o): Add rules.
9417 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9418
e325dcec
CF
94192003-02-14 Christopher Faylor <cgf@redhat.com>
9420
36ffb041 9421 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
9422 just-loaded dll.
9423
c4f90d87
JM
94242003-02-12 Jason Molenda (jmolenda@apple.com)
9425
fbe586ae
RH
9426 * symmisc.c (print_objfile_statistics): Include information about
9427 the number of psymtabs and symtabs in each object file.
c4f90d87 9428
e46e5ccd
KS
94292003-02-13 Keith R Seitz <keiths@redhat.com>
9430
9431 * main.h (struct captured_main_args): Add interpreter_p.
9432 * main.c (captured_main): Initialize interpreter_p from context.
9433 * gdb.c (main): Set interpreter_p argument.
9434 * Makefile.in (gdb.o): Add dependency for interps.h.
9435
fe97fe9c
AC
94362003-02-12 Andrew Cagney <ac131313@redhat.com>
9437
9438 * event-top.c (cli_command_loop): Delete declaration.
9439 (_initialize_event_loop): Delete function setting event_loop_hook.
9440 * event-top.h (cli_command_loop): Declare. Update copyright.
9441 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9442 * interps.c (current_interp_command_loop): When event_loop_p, call
9443 cli_command_loop.
9444
1cdac4ef
AC
94452003-02-12 Andrew Cagney <ac131313@redhat.com>
9446
9447 * interps.h (interp_command_loop_ftype): Change return type to
9448 void.
9449
48037ead
ML
94502003-02-12 Michal Ludvig <mludvig@suse.cz>
9451
9452 * x86-64-tdep.c (x86_64_extract_return_value)
9453 (x86_64_store_return_value): Use regcache instead of regbuf.
9454 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9455 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9456
033afc63
AC
94572003-02-11 Andrew Cagney <ac131313@redhat.com>
9458
9459 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9460 * aclocal.m4: Regenerate.
9461 * configure: Regenerate.
9462
9463 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9464 TCL_LD_SEARCH_FLAGS.
9465
40d02bca
ML
94662003-02-10 Michal Ludvig <mludvig@suse.cz>
9467
9468 * dwarf2cfi.c: Reindented.
9469
11308a41
AC
94702003-02-09 Andrew Cagney <ac131313@redhat.com>
9471
9472 * interps.c (clear_interpreter_hooks): Convert function definition
9473 to ISO C.
9474
e1c1c0f6
DC
94752003-02-07 David Carlton <carlton@math.stanford.edu>
9476
9477 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9478
ab5d3da6
KB
94792003-02-07 Kevin Buettner <kevinb@redhat.com>
9480
9481 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9482 (struct type): ...to here.
9483 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9484 field.
9485 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9486 (replace_type): Set length on all type variants for a given type.
9487
b8a92b82
AC
94882003-02-07 Andrew Cagney <ac131313@redhat.com>
9489
9490 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9491 <sys/stat.h>.
9492 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 9493
5cb316ef
AC
94942003-02-06 Andrew Cagney <ac131313@redhat.com>
9495
2555fe1a
AC
9496 * Makefile.in (symm-nat.o): Update dependencies.
9497 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9498 (lynx-nat.o, ia64-linux-nat.): Ditto.
9499 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9500 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9501 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9502
44270758
AC
9503 * Makefile.in (inflow_h): Define.
9504 (procfs.o, inflow.o, procfs.o): Update dependencies.
9505 * inftarg.c (child_stop): Delete extern declaration of
9506 inferior_process_group. Include "inflow.h".
9507 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9508 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9509 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9510 (our_process_group, inferior_process_group): Extern declarations.
9511
df8f7274
AC
9512 * procfs.c: Include "gdb_assert.h".
9513
5cb316ef
AC
9514 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9515 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9516 * jv-typeprint.c (java_type_print_base): Ditto.
9517 * typeprint.c (typedef_print): Eliminate STREQ.
9518 * cli/cli-script.c (define_command, define_command): Ditto.
9519 * main.c (captured_main): Ditto.
9520 * values.c (lookup_internalvar): Ditto.
9521 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9522 within `if' conditional.
9523 * linespec.c (decode_line_2): Ditto.
9524 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9525 (bfd_openw_with_cleanup): Ditto.
9526
2a28ccea
MK
95272003-02-07 Mark Kettenis <kettenis@gnu.org>
9528
9529 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9530 legacy_extract_return_value and store_return_value to
9531 legacy_return_value.
9532
786b8124
CF
95332003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9534
9535 * win32-nat.c (get_relocated_section_addrs): New function. Find
9536 section load addresses for symbol handling in relocated DLLs.
9537 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9538
b871e4ec
FF
95392003-02-05 Fred Fish <fnf@intrinsity.com>
9540
9541 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9542 '=' and '!='.
9543 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9544 with '&' and '=='.
9545 (angel_RDI_info): Ditto.
9546 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9547 with '&' and '!='.
9548 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 9549
4389a95a 95502003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
9551 Keith Seitz <keiths@redhat.com>
9552 Elena Zannoni <ezannoni@redhat.com>
9553 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
9554
9555 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9556 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9557 (SUBDIR_MI_OBS): Add "mi-interp.o".
9558 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9559 (SFILES): Add "interps.c".
9560 (COMMON_OBS): Add "interps.o".
9561 (interps_h, mi_main_h): Define.
9562 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9563 (mi-main.o, main.o, event-top.o): Update dependencies.
9564 * cli/cli-interp.c: New file.
9565 * interps.h, interps.c: New files.
9566 * top.c: (gdb_init): Don't install the default interpreter, handed
9567 by captured_main.
9568 * main.c: Include "interps.h".
9569 (interpreter_p): Note that it should malloc'ed.
9570 (captured_command_loop): Call current_interp_command_loop.
9571 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9572 xfree and xstrdup when updating interpreter_p. Install the
9573 default interpreter. Add hack to stop mi1's copyright notice
9574 being encoded.
9575 * event-top.h (gdb_setup_readline): Declare.
9576 (gdb_disable_readline): Declare.
9577 * event-top.c: Include "interps.h".
9578 (display_gdb_prompt): Call current_interp_display_prompt_p.
9579 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9580 gdb_stdlog, and gdb_stdtarg.
9581 (_initialize_event_loop): Don't call gdb_setup_readline.
9582 * cli-out.c (cli_out_set_stream): New function.
9583 * cli-out.h (cli_out_set_stream): Declare.
9584
ff3b5810
MK
95852003-02-06 Mark Kettenis <kettenis@gnu.org>
9586
9587 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9588 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9589 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9590 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9591 config/i386/i386v42mp.mt: Removed.
9592
5b729aa5
MK
95932003-02-05 Mark Kettenis <kettenis@gnu.org>
9594
9595 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9596 GDB_OSABI_SOLARIS.
9597
8cc15142
MC
95982003-02-05 Michael Chastain <mec@shout.net>
9599
9600 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9601 2.12.1 and earlier versions.
9602
5aa5d4b9
AC
96032003-02-05 Andrew Cagney <ac131313@redhat.com>
9604
9605 Remove orphaned hosts, targets and files.
9606 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9607 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9608 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9609 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9610 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9611 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9612 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9613 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9614 * config/sparc/tm-sp64sim.h: Delete.
9615 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9616 hosts.
9617 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9618 mips*-dec-mach3* targets.
9619
b68767c1
MC
96202003-02-04 Michael Chastain <mec@shout.net>
9621
9622 * NEWS: Fix typo: sepcifying -> specifying.
9623
5ae7ca1d
MC
96242003-02-04 Michael Chastain <mec@shout.net>
9625
9626 * dwarfread.c: Add documentation on the state of dwarf-1,
9627 looking towards obsoletion.
9628
d08a4280
MC
96292003-02-03 Michael Chastain <mec@shout.net>
9630
9631 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9632 gdb/testsuite/gdb.c++/pr-1023.exp.
9633
e9be73e4
AC
96342003-02-04 Andrew Cagney <ac131313@redhat.com>
9635
9636 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9637 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9638
9639 * utils.c (init_page_info): Delete reference to MPW in comments.
9640 * main.c (captured_main): Delete #ifdef MPW.
9641
05d57f6f
AC
96422003-02-04 Andrew Cagney <ac131313@redhat.com>
9643
8ffd9b1b 9644 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
9645 * monitor.c (monitor_expect): Obsolete reference to m32r.
9646 * configure.tgt: Mark m32r-*-elf* as obsolete.
9647 * MAINTAINERS: Mark m32k as obsolete.
9648 * m32r-rom.c: Obsolete file.
9649 * config/m32r/m32r.mt: Obsolete file.
9650 * config/m32r/tm-m32r.h: Obsolete file.
9651 * m32r-stub.c: Obsolete file.
9652 * m32r-tdep.c: Obsolete file.
9653
8b0e5691
AC
96542003-02-04 Andrew Cagney <ac131313@redhat.com>
9655
9656 * NEWS: Mention that the z8k-zilog-none is obsolete.
9657 * MAINTAINERS: Mark z8k as obsolete.
9658 * configure.tgt: Obsolete the z8k-*-coff* target.
9659 * config/z8k/z8k.mt: Obsolete file.
9660 * config/z8k/tm-z8k.h: Obsolete file.
9661 * z8k-tdep.c: Obsolete file.
9662
67f16606
AC
96632003-02-04 Andrew Cagney <ac131313@redhat.com>
9664
9665 * NEWS: Mention that the mn10200-elf is obsolete.
9666 * configure.tgt: Obsolete mn10200-*-* target.
9667 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9668 mention that the mn10200 is obsolete.
9669 * breakpoint.h: Ditto.
9670 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9671 * config/mn10200/mn10200.mt: Obsolete file.
9672 * config/mn10200/tm-mn10200.h: Obsolete file.
9673 * mn10200-tdep.c: Obsolete file.
9674
fd2299bd
AC
96752003-02-04 Andrew Cagney <ac131313@redhat.com>
9676
9677 * MAINTAINERS: Mark h8500 as obsolete.
9678 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9679 * findvar.c (value_from_register): Ditto.
9680 * h8500-tdep.c: Mark file as obsolete.
9681 * config/h8500/h8500.mt: Ditto.
9682 * config/h8500/tm-h8500.h: Ditto.
9683 * NEWS: Mention that h8500 is obsolete.
9684
eb9a305d
DC
96852003-02-04 David Carlton <carlton@math.stanford.edu>
9686
9687 * objfiles.c (allocate_objfile): Always set name. Add comment at
9688 start of function.
9689 * jv-lang.c (get_dynamics_objfile): Add comment.
9690
406fc7fb
DC
96912003-02-04 David Carlton <carlton@math.stanford.edu>
9692
9693 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9694 * printcmd.c (build_address_symbolic): Replace uses of
9695 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9696 SYMBOL_NAME, and asm_demangle.
9697 Update copyright.
9698
93d91629
DC
96992003-02-04 David Carlton <carlton@math.stanford.edu>
9700
9701 * linespec.c (decode_compound): Extract code into
9702 lookup_prefix_sym.
9703 (lookup_prefix_sym): New function.
9704
1c5cb38e
DC
97052003-02-04 David Carlton <carlton@math.stanford.edu>
9706
9707 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9708 FLOAT_COERCION_BADNESS.
9709 * gdbtypes.c (rank_one_type): Replace all uses of
9710 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9711
0cf824c9
JB
97122003-02-04 Jim Blandy <jimb@redhat.com>
9713
9714 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9715 section, let dwarf_macinfo_section point to it, not
9716 dwarf_loc_section.
9717
a2d356b0
DJ
97182003-02-04 Daniel Jacobowitz <drow@mvista.com>
9719
9720 Pointed out by Anton Blanchard <anton@samba.org>.
9721 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9722 (ppc_linux_at_sigtramp_return_path): Use it.
9723
2de7ced7
DJ
97242003-02-04 Daniel Jacobowitz <drow@mvista.com>
9725
9726 * defs.h (streq): Add prototype.
9727 * utils.c (streq): New function.
9728
9729 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9730 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9731 * mdebugread.c (new_symbol): Likewise.
9732 * stabsread.c (define_symbol): Likewise.
9733 * coffread.c (process_coff_symbol): Likewise.
9734 * dwarfread.c (new_symbol): Likewise.
9735
9736 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9737 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9738 here.
9739 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9740 SYMBOL_INIT_DEMANGLED_NAME.
9741 * objfiles.c: Include "hashtab.h".
9742 (allocate_objfile): Call htab_set_functions_ex for the
9743 demangled_names_hash.
9744 (free_objfile): Call htab_delete for the demangled_names_hash.
9745 * objfiles.h (struct htab): Add declaration.
9746 (struct objfile): Add demangled_names_hash.
9747 * symfile.c: Include "hashtab.h".
9748 (reread_symbols): Call htab_delete for the demangled_names_hash.
9749 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9750 SYMBOL_NAME in the bcache.
9751 * symtab.c: Include "hashtab.h". Update comments.
9752 (create_demangled_names_hash, symbol_set_names): New functions.
9753 (symbol_find_demangled_name): New function, broken out from
9754 symbol_init_demangled_names.
9755 (symbol_init_demangled_names): Use it.
9756 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9757 (SYMBOL_SET_NAMES): New macro.
9758 (symbol_set_names): Add prototype.
9759
15831452
JB
97602003-02-03 Jim Blandy <jimb@redhat.com>
9761
9762 Use a single, consistent representation for an empty minimal
9763 symbol table in an objfile.
9764 * objfiles.c (terminate_minimal_symbol_table): New function.
9765 (allocate_objfile): Call it.
9766 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9767 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 9768 non-NULL.
15831452
JB
9769 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9770 objfile has minimal symbols, compare minimal_symbol_count to zero,
9771 instead of comparing msymbols with NULL.
9772 * objfiles.c (have_minimal_symbols): Same.
9773 * solib-sunos.c (solib_add_common_symbols): Call
9774 terminate_minimal_symbol_table.
9775 * symfile.c (reread_symbols): Same.
8ffd9b1b 9776
ffc65945
KB
97772003-02-03 Kevin Buettner <kevinb@redhat.com>
9778
9779 * s390-tdep.c (s390_address_class_type_flags)
9780 (s390_address_class_type_flags_to_name)
9781 (s390_address_class_name_to_type_flags): New functions.
9782 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9783 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9784
f211c6d4
MS
97852003-02-03 Michael Snyder <msnyder@redhat.com>
9786
9787 * arm-tdep.c: Fix spell-o in comment.
9788
659b0389
ML
97892003-02-03 Michal Ludvig <mludvig@suse.cz>
9790
9791 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9792 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 9793 error messages to contain BFD filename.
659b0389 9794
3b31d625
EZ
97952003-02-02 Elena Zannoni <ezannoni@redhat.com>
9796
997b089a 9797 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
9798 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9799 (do_mixed_source_and_assembly): Use
9800 make_cleanup_ui_out_tuple_begin_end and
9801 make_cleanup_ui_out_tuple_begin_end.
9802 (do_mixed_source_and_assembly): Ditto.
9803 * thread.c (do_captured_list_thread_ids): Ditto.
9804 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9805 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9806 ui_out_tuple_end): Delete prototypes.
9807 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9808 ui_out_list_end, ui_out_tuple_end): Delete.
9809
9810 From Kevin Buettner <kevinb@redhat.com>:
9811 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
9812 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9813 (do_cleanup_table_end): New functions.
9814 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9815 Use cleanups to invoke_ui_out_tuple_end().
9816 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
9817 * cli/cli-setshow.c (cmd_show_list): Use
9818 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 9819
5b181d62
AC
98202003-02-02 Andrew Cagney <ac131313@redhat.com>
9821
9822 * frame.c (frame_unwind_register): New function.
9823 (frame_unwind_unsigned_register): Use.
9824 (frame_unwind_signed_register): Use.
9825 (frame_read_register): New function.
9826 * frame.h (frame_unwind_register): Declare.
9827 (frame_read_register): Declare.
9828
9829 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9830 and frame_unwind_register instead of read_memory, write_register
9831 and deprecated_write_register_bytes.
9832
5f601589
AC
98332003-02-02 Andrew Cagney <ac131313@redhat.com>
9834
9835 * frame.h: Note that namelen can be negative.
9836 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9837 NAME's length.
9838
9839 * NEWS: Mention that the d10v's `regs' command is deprecated.
9840 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9841 (d10v_print_registers_info): New function.
9842 (show_regs): Call d10v_print_registers_info.
9843 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9844
6a3fe0a4
MK
98452003-02-02 Mark Kettenis <kettenis@gnu.org>
9846
9847 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9848 lost in the previous patch.
9849
075559bc
AC
98502003-02-01 Andrew Cagney <ac131313@redhat.com>
9851
9852 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
9853 * stack.c (print_frame_info_base): Output complete FRAME tuple
9854 for synthesized frames.
075559bc 9855
6789195b
AC
98562003-02-02 Andrew Cagney <ac131313@redhat.com>
9857
9858 * mips-nat.c (zerobuf): Delete.
9859 (fetch_inferior_registers): Alloc local zerobuf.
9860 (fetch_core_registers): Alloc local zerobuf.
9861 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9862 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9863 * thread-db.c (thread_db_store_registers): Ditto.
9864 * sh-tdep.c (sh_do_register): Ditto.
9865 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9866 * remote-sim.c (gdbsim_store_register): Ditto.
9867 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9868 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9869 * monitor.c (monitor_supply_register): Ditto.
9870 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9871 * mips-nat.c (fetch_inferior_registers): Ditto.
9872 * m68klinux-nat.c (fetch_register): Ditto.
9873 * lynx-nat.c (fetch_inferior_registers): Ditto.
9874 (fetch_inferior_registers): Ditto.
9875 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9876 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9877 (hpux_thread_store_registers): Ditto.
9878 * hppah-nat.c (fetch_register): Ditto.
9879 * hppab-nat.c (fetch_register): Ditto.
9880 * hppa-tdep.c (pa_register_look_aside): Ditto.
9881 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9882 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9883
e669114a
AC
98842003-02-01 Andrew Cagney <ac131313@redhat.com>
9885
9886 * gdbarch.sh: Explictly specify all method levels. When a
9887 variable with an empty level, provide a non-multi-arch default.
9888 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9889 * gdbarch.h: Re-generate.
9890 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9891 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9892
9a043c1d
AC
98932003-02-01 Andrew Cagney <ac131313@redhat.com>
9894
9895 * defs.h (host_pointer_to_address): Delete declaration.
9896 (address_to_host_pointer): Delete declaration.
9897 * utils.c (host_pointer_to_address): Delete function.
9898 (address_to_host_pointer): Delete function.
9899 * procfs.c (procfs_address_to_host_pointer): New function.
9900 * procfs.c (proc_set_watchpoint): Use.
9901 (procfs_can_use_hw_breakpoint): Update comments.
9902 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9903 (som_solib_add): Use.
9904 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9905 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 9906
7ca9f392
AC
99072003-02-01 Andrew Cagney <ac131313@redhat.com>
9908
94bbfd30
AC
9909 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9910 strlen d_name.
9911
7ca9f392
AC
9912 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9913 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9914 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9915 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9916 (define_symbol): Update.
9917 * symfile.c (generic_load): Remove references to nindy.
9918 * symtab.c: Remove references to nindy.
9919
31a85ea2
AC
99202003-02-01 Andrew Cagney <ac131313@redhat.com>
9921
9922 * infcmd.c (print_float_info): Delete code conditional on
9923 FLOAT_INFO.
9924 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9925 * config/m68k/nm-apollo68b.h: Ditto.
9926 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9927 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9928 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9929
f6e85fc8
MK
99302003-02-01 Mark Kettenis <kettenis@gnu.org>
9931
6015b6a0
MK
9932 * config/i386/tm-i386os9k.h: Removed.
9933
f7a30bdf
MK
9934 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9935 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9936 they're identical to i[3456]86-*-sysv* now.
9937 * config/i386/i386v32.mh: Removed.
9938 * config/i386/xm-i386v32.h: Removed.
9939 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9940
28d52111
MK
9941 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9942
4d3f6bce
MK
9943 * config/i386/i386dgux.mh: Removed.
9944 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9945
f6e85fc8
MK
9946 * configure.in: Fix typo.
9947 * configure: Regenerated.
9948
53955967
DC
99492003-01-31 David Carlton <carlton@math.stanford.edu>
9950
9951 * dwarf2read.c (dwarf2_locate_sections): Set
9952 dwarf_ranges_section.
9953
b1364885
AC
99542003-01-31 Andrew Cagney <ac131313@redhat.com>
9955
8dbb1c65
AC
9956 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9957 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 9958
8731e58e
AC
9959 * utils.c: Re-indent.
9960
b1364885
AC
9961 * config/djgpp/fnchange.lst: Delete nindy files.
9962 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9963 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9964 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9965 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9966 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9967 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9968 * Makefile.in (init.c): Remove nindy references.
9969 (saber_gdb): Delete rule.
9970 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9971 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9972 and a68v-nat.c.
9973 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9974 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9975 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9976 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9977 nindy-share/stop.h.
9978 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9979 * saber.suppress: Delete file.
9980
086df311
DJ
99812003-01-31 Daniel Jacobowitz <drow@mvista.com>
9982
9983 * dbxread.c (stabs_data): New static variable.
9984 (fill_symbuf): Support an in-memory buffer for stabs data.
9985 (stabs_seek): New function.
9986 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9987 (read_ofile_symtab): Use stabs_seek.
9988 (elfstab_build_psymtabs): Take an asection* instead of
9989 an offset and size. Relocate the stabs data if necessary.
9990 Save the section* for dbx_psymtab_to_symtab.
9991 * dwarf2read.c: Add section variables for each debug section.
9992 (dwarf2_locate_sections): Fill them in.
9993 (dwarf2_read_section): Take an asection* argument.
9994 Relocate the section contents if necessary.
9995 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9996 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9997 it to dwarf2_read_section.
9998 (dwarf2_build_frame_info): Update callers.
9999 * elfread.c (elf_symfile_read): Update call to
10000 elfstab_build_psymtabs.
10001 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10002 (DBX_STAB_SECTION): New macro.
8ffd9b1b 10003 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
10004 * symfile.c (symfile_dummy_outputs): New function.
10005 (symfile_relocate_debug_section): New function.
10006 * symfile.h (symfile_relocate_debug_section): Add prototype.
10007
87d1b352
RH
100082003-01-31 Richard Henderson <rth@redhat.com>
10009
10010 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10011 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10012 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10013 * alpha-tdep.c (alpha_register_name): Add "unique".
10014 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10015 (ALPHA_UNIQUE_REGNUM): New.
10016 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10017
c48861fb
AC
100182003-01-31 Andrew Cagney <ac131313@redhat.com>
10019
10020 * README: Remove reference to Ericsson 1800 monitor.
10021 * Makefile.in (remote-es.o): Delete rule.
10022 (ALLDEPFILES): Delete remote-es.c.
10023 * remote-es.c: Delete file.
10024 * config/m68k/es1800.mt: Delete file.
10025 * config/djgpp/fnchange.lst: Update.
10026 * configure.tgt: Delete m68*-ericsson-* target.
10027
d764a824
AF
100282003-01-31 Adam Fedor <fedor@gnu.org>
10029
10030 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10031 Remove duplicate/shadowing variable of same name.
10032
fe36c4f4
JB
100332003-01-30 Jim Blandy <jimb@redhat.com>
10034
10035 * symfile.c (find_separate_debug_file): Assert that the objfile's
10036 directory name we compute ends with a slash, and then assume that
10037 that's so everywhere we use it.
10038
cb741690
DJ
100392003-01-30 Daniel Jacobowitz <drow@mvista.com>
10040
10041 * valops.c (value_assign): Flush frame cache after stores to memory
10042 also.
10043
96ee5227
AC
100442003-01-30 Andrew Cagney <ac131313@redhat.com>
10045
10046 * Makefile.in (mon960-rom.o): Delete rule.
10047 * mon960-rom.c: Delete file.
10048
7f6104a9
AC
100492003-01-30 Andrew Cagney <ac131313@redhat.com>
10050
10051 * d10v-tdep.c: Include "frame-unwind.h".
10052 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10053 list.
10054 (next_addr, uses_frame): Delete.
10055 (struct d10v_unwind_cache): Define.
10056 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10057 Use info instead of next_addr and uses_frame globals.
10058 (d10v_frame_init_saved_regs): Delete function.
10059 (d10v_init_extra_frame_info): Delete function.
10060 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10061 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10062 init_frame_pc or frame_saved_pc.
10063 (d10v_pop_frame): Delete function.
10064 (do_d10v_pop_frame): Delete function.
10065 (d10v_frame_chain): Delete function.
10066 (d10v_frame_chain_valid): Delete function.
10067 (d10v_frame_pc_unwind): New function.
10068 (d10v_frame_id_unwind): New function.
10069 (saved_regs_unwinder): New function.
10070 (d10v_frame_register_unwind): New function.
10071 (d10v_frame_pop): New function.
10072 (d10v_frame_unwind): New variable.
10073 (d10v_frame_p): New function.
10074 (d10v_frame_saved_pc): Delete function.
10075 * Makefile.in (d10v-tdep.o): Update dependencies.
10076
cad2e848
JB
100772003-01-30 J. Brobecker <brobecker@gnat.com>
10078
10079 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10080 causing some regressions due to a change in the default value
10081 for this macro.
10082
af34e669
DJ
100832003-01-29 Richard Henderson <rth@redhat.com>
10084 Elena Zannoni <ezannoni@redhat.com>
10085 Daniel Jacobowitz <drow@mvista.com>
10086
10087 Fix PR gdb/961.
8ffd9b1b 10088 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
10089 variables.
10090 (RANGES_SECTION): New.
10091 (dwarf_ranges_buffer): New variable.
10092 (struct comp_unit_head): Add member "die".
10093 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10094 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10095 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10096 (dwarf2_locate_sections): Likewise.
10097 (dwarf2_build_psymtabs): Read .debug_ranges.
10098 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10099 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10100 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10101 Look for DW_AT_ranges and return the bounding box.
10102
baa93fa6
CF
101032003-01-29 Brian Ford <ford@vss.fsi.com>
10104
10105 * win32-nat.c (cygwin_pid): Removed as unused.
10106 (child_attach): Try fall back to Cygwin pid.
10107
c63f977f
JB
101082003-01-29 Jim Blandy <jimb@redhat.com>
10109
10110 * objfiles.h (struct objfile): Doc fix.
10111
d62d1979
AC
101122003-01-29 Andrew Cagney <ac131313@redhat.com>
10113
10114 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10115 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10116 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10117 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10118 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10119 (FRAME_SAVED_PC): Change to a function with predicate.
10120 * gdbarch.h, gdbarch.c: Re-generate.
10121
1ae18a04
AC
101222003-01-28 Andrew Cagney <ac131313@redhat.com>
10123
52287340
AC
10124 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10125
1ae18a04
AC
10126 * complaints.c (complain): Delete function.
10127 * complaints.h (struct deprecated_complaint): Delete definition.
10128 (complain): Delete declaration.
10129
f2c16bd6
KB
101302003-01-28 Kevin Buettner <kevinb@redhat.com>
10131
10132 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10133 dummy frames.
10134
a94dd1fd
AC
101352003-01-27 Andrew Cagney <ac131313@redhat.com>
10136
10137 * sentinel-frame.h, sentinel-frame.c: New files.
10138 * Makefile.in (frame.o): Update dependencies.
10139 (SFILES): Add sentinel-frame.c.
10140 (sentinel_frame_h): Define.
10141 (COMMON_OBS): Add sentinel-frame.o.
10142 (sentinel-frame.o): Specify dependencies.
10143 * frame.c: Include "sentinel-frame.h".
10144 (frame_register_unwind): Rewrite assuming that there is always a a
10145 ->next frame.
10146 (frame_register, generic_unwind_get_saved_register): Ditto.
10147 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10148 (create_sentinel_frame, unwind_to_current_frame): New functions.
10149 (get_current_frame): Rewrite using create_sentinel_frame and
10150 unwind_to_current_frame. When possible, always create a frame.
10151 (create_new_frame): Set next to the sentinel frame.
10152 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10153 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10154 ID cache when necessary.
10155 (frame_saved_regs_id_unwind): Use frame_relative_level.
10156 (deprecated_generic_get_saved_register): Use frame_relative_level,
10157 get_frame_saved_regs, get_frame_pc, get_frame_base and
10158 get_next_frame.
10159 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10160 frame_register.
10161
5378adc4
DJ
101622003-01-27 Daniel Jacobowitz <drow@mvista.com>
10163
10164 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10165
51ee2ddc
DJ
101662003-01-27 Daniel Jacobowitz <drow@mvista.com>
10167
10168 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10169 (maintenance_set_profile_cmd): Use error () instead of warning ().
10170
d9feb4e7
DJ
101712003-01-27 Daniel Jacobowitz <drow@mvista.com>
10172
10173 * configure.in: Check that -pg works if using --enable-profiling.
10174 Check for monstartup and _mcleanup regardless of --enable-profiling.
10175 * maint.c: Check for monstartup and _mcleanup before using them.
10176 * config.in: Regenerated.
10177 * configure: Regenerated.
10178
2d188dd3
NC
101792003-01-24 Nick Clifton <nickc@redhat.com>
10180
10181 * Add sh2e support:
10182
10183 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10184
10185 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10186 (sh2e_show_regs): New.
10187 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10188 * config/sh/tm-sh.h: Added sh2e to comments.
10189
cb3c37b2
JB
101902003-01-23 Jim Blandy <jimb@redhat.com>
10191
10192 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10193 symbols found)" message here; we haven't checked for a separate
10194 debug info file yet, so we don't know yet.
10195 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10196 we've looked everywhere. Also, there's no need to print a special
10197 message when we're loading the separate debug info file: the one
10198 symbol_file_add prints is fine.
10199
5b5d99cf
JB
102002003-01-23 Alexander Larsson <alexl@redhat.com>
10201 Jim Blandy <jimb@redhat.com>
10202
10203 Add support for executables whose debug info has been separated
10204 out into a separate file, leaving only a link behind.
10205 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10206 and separate_debug_objfile_backlink.
10207 (put_objfile_before): New declaration.
10208 * symfile.c: #include "filenames.h".
10209 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10210 debug info in a separate file, read that, too. Save the addrs
10211 argument, so we can use it again to read the separated debug info;
10212 syms_from_objfile modifies the table we pass it.
10213 (reread_symbols): After re-reading an objfile, call
10214 reread_separate_symbols to refresh its separate debug info
10215 objfile, if it has one.
10216 (reread_separate_symbols, find_separate_debug_file,
10217 get_debug_link_info, separate_debug_file_exists): New functions.
10218 (debug_file_directory): New global var.
10219 (_initialize_symfile): Initialize debug_file_directory, and
10220 provide the new `set debug-file-directory' command to let the user
10221 change it.
10222 * objfiles.c (free_objfile): If this objfile has its debug info in
10223 a separate objfile, free that one too. If this is itself a
10224 separate debug info objfile, clear our parent's backlink.
10225 (put_objfile_before): New function.
10226 * utils.c (gnu_debuglink_crc32): New function.
10227 * defs.h (gnu_debuglink_crc32): New declaration.
10228 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10229 * configure.in: Handle --with-separate-debug-dir config option.
10230 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10231 * acconfig.h (DEBUGDIR): New macro.
10232 * configure, aclocal.m4, config.in: Regenerated.
10233
7e8580c1
JB
102342003-01-22 Jim Blandy <jimb@redhat.com>
10235
7904e09f
JB
10236 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10237 like the old symbol_file_add, but taking new arguments: you can
10238 now pass in either a `struct section_addr_info' list to say where
10239 each section is loaded, or a `struct section_offsets' table. Pass
10240 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 10241 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
10242 with the appropriate quiescent values for the new arguments.
10243
7e8580c1
JB
10244 * symfile.c: #include "gdb_assert.h".
10245 (syms_from_objfile): Add the ability to pass in a section offset
10246 table directly, as an alternative to the section_addr_info table.
10247 Document arguments better.
10248 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10249 * symfile.h (syms_from_objfile): Update declaration.
10250 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10251 syms_from_objfile.
10252 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10253
d28f9cdf
DJ
102542003-01-22 Daniel Jacobowitz <drow@mvista.com>
10255
10256 Original patch by Tom Tromey <tromey@cygnus.com> and
10257 Jason Molenda <jmolenda@apple.com>.
10258 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10259 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10260 * NEWS: Mention profiling.
10261 * configure.in (--enable-gdbtk): Fix typo.
10262 (--enable-profiling): New. Set PROFILE_CFLAGS.
10263 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10264 Fill in function.
10265 (profiling_state): New variable.
10266 (mcleanup_wrapper): New function.
10267 (_initialize_maint): Remove NOTYET, fix call to
10268 add_setshow_boolean_cmd for "maint set profile".
10269 * configure: Regenerated.
10270
df21e465
MH
102712003-01-21 Martin M. Hunt <hunt@redhat.com>
10272
10273 * Makefile.in (install-gdbtk): Install PNG images too.
10274
73c1f219
AC
102752003-01-21 Andrew Cagney <ac131313@redhat.com>
10276
10277 * exec.c (text_start): Delete global variable.
10278 (exec_file_attach): Make text_start local to the function.
10279 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10280 * valops.c (hand_function_call): Delete code that handles
10281 BEFORE_TEXT_END and AFTER_TEXT_END.
10282 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10283 of CALL_DUMMY_LOCATION.
10284 * gdbarch.c: Regenerate.
10285 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10286 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10287 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10288 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10289 (text_end): Delete extern declaration.
10290
eb4f72c5
AC
102912003-01-21 Andrew Cagney <ac131313@redhat.com>
10292
10293 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10294 * blockframe.c (backtrace_below_main): Move to "frame.c".
10295 (frame_chain_valid): Delete check for backtrace_below_main.
10296 (_initialize_blockframe): Delete initialization, move ``set
10297 backtrace-below-main'' command to "frame.c".
10298 (do_flush_frames_sfunc): Delete function.
10299 * frame.c: Include "command.h" and "gdbcmd.h".
10300 (frame_type_from_pc): New function.
10301 (create_new_frame): Use frame_type_from_pc.
10302 (legacy_get_prev_frame): New function.
10303 (get_prev_frame): Rewrite. When an old style frame, call
10304 legacy_get_prev_frame. Otherwize, unwind the PC first.
10305 (_initialize_frame): Add ``set backtrace-below-main'' command.
10306 * Makefile.in (frame.o): Update dependencies.
10307
778ce8cc
AC
103082003-01-19 Andrew Cagney <ac131313@redhat.com>
10309
10310 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10311 DEPRECATED_REGISTERS_INFO.
10312
01c193c8
AC
103132003-01-19 Andrew Cagney <ac131313@redhat.com>
10314
10315 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10316 Maintainers'. Update `Various Maintainers'.
10317
dedc2a2b
AC
103182003-01-19 Andrew Cagney <ac131313@redhat.com>
10319
10320 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10321 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10322 Suppress actual parameters when `-'.
10323 * gdbarch.h, gdbarch.c: Regenerate.
10324
b7261c70
AC
103252003-01-19 Andrew Cagney <ac131313@redhat.com>
10326
10327 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10328 code handling dummy frames.
10329
dbe9fe58
AC
103302003-01-19 Andrew Cagney <ac131313@redhat.com>
10331
10332 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10333 (struct frame_unwind): Add field pop.
10334 * frame.h (frame_pop): Declare.
10335 * frame.c (frame_saved_regs_pop): New function.
10336 (trad_frame_unwinder): Add frame_saved_regs_pop.
10337 (frame_pop): New function.
10338 * dummy-frame.c (dummy_frame_pop): New function.
10339 (discard_innermost_dummy): New function.
10340 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10341 (dummy_frame_unwind): Add dummy_frame_pop.
10342 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10343 * valops.c (hand_function_call): Ditto.
10344 * stack.c (return_command): Ditto.
10345
570b8f7c
AC
103462003-01-18 Andrew Cagney <ac131313@redhat.com>
10347
10348 * cris-tdep.c: Fix function declaration indentation.
10349 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10350 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10351 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10352 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10353 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10354 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10355
103562003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
10357
10358 * README (Unpacking and Installation -- quick overview):
10359 Warn against ".../gdb-5.3/gdb/configure".
10360
494cca16
AC
103612003-01-18 Andrew Cagney <ac131313@redhat.com>
10362
10363 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10364 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10365 (struct frame_unwind): Declare opaque.
10366 (dummy_frame_p): Declare function.
10367 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10368 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10369 * dummy-frame.c: Include "frame-unwind.h".
10370 (dummy_frame_p): New function.
10371 (dummy_frame_unwind): New variable.
10372 * frame.c: Include "frame-unwind.h".
10373 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10374 to use the new unwind field.
10375 (set_unwind_by_pc): Delete function.
10376 (create_new_frame, get_prev_frame): Set unwind field using
10377 frame_unwind_find_by_pc.
10378 (trad_frame_unwind, trad_frame_unwinder): New variables.
10379 * frame.h (trad_frame_unwind): Declare variable.
10380 (frame_id_unwind_ftype): Delete declaration.
10381 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10382 (struct frame_unwind): Declare opaque.
10383 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10384 register_unwind with a single unwind pointer.
10385 * frame-unwind.h, frame-unwind.c: New files.
10386 * Makefile.in (SFILES): Add frame-unwind.c.
10387 (frame_unwind_h): Define.
10388 (COMMON_OBS): Add frame-unwind.o.
10389 (frame-unwind.o): Specify dependencies.
10390 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 10391
4efb68b1
AC
103922003-01-18 Andrew Cagney <ac131313@redhat.com>
10393
10394 * ada-valprint.c: Eliminate PTR.
10395 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10396 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10397 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10398 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10399 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10400 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10401 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 10402
a84d24ee
AC
104032003-01-17 Andrew Cagney <ac131313@redhat.com>
10404
762f08a3
AC
10405 * main.c (captured_main): Don't use PTR.
10406 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10407 * gdbtypes.c (lookup_primitive_typename): Ditto.
10408 (lookup_struct_elt_type): Ditto.
10409 * f-valprint.c (info_common_command): Ditto.
10410 (list_all_visible_commons): Ditto.
10411 * jv-typeprint.c (java_type_print_base): Ditto.
10412
a84d24ee
AC
10413 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10414 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10415 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10416 i386-interix-nat.c and i386-interix-tdep.c. Rename
10417 m68klinux-nat.c and m68klinux-tdep.c. Rename
10418 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10419 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10420 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10421 * main.c (captured_main): Use xfree, not free.
10422
c170fb60
AC
104232003-01-16 Andrew Cagney <ac131313@redhat.com>
10424
10425 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10426 ID back using a parameter.
10427 * frame.c (frame_id_unwind): Update call.
10428 (frame_saved_regs_id_unwind): Update.
10429 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10430 * dummy-frame.h (struct frame_id): Add opaque declaration.
10431 (dummy_frame_id_unwind): Update declaration.
10432
867f3898
AC
104332003-01-15 Andrew Cagney <ac131313@redhat.com>
10434
10435 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10436
40622be8 104372003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 10438
40622be8 10439 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 10440
ae66c1fc
EZ
104412003-01-14 Elena Zannoni <ezannoni@redhat.com>
10442
997b089a 10443 Fix PR gdb/898
ae66c1fc
EZ
10444 * breakpoint.c (until_break_command): Add new argument. Use it to
10445 decide whether to stop only at the current frame or not.
10446 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 10447 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
10448 call.
10449 (advance_command): New function.
10450 (_initialize_infcmd): Update help string for 'until' command.
10451 Add new 'advance' command.
10452
a04257e6
DC
104532003-01-14 David Carlton <carlton@math.stanford.edu>
10454
10455 * linespec.c (decode_line_1): Normalize comments.
10456 (set_flags): Ditto.
10457 (locate_first_half): Ditto.
10458 (decode_compound): Ditto.
10459 (symtab_from_filename): Ditto.
10460 (decode_all_digits): Ditto.
10461 (decode_dollar): Ditto.
10462 (find_methods): Ditto.
10463 (find_toplevel_char): Ditto.
10464
1bac305b
AC
104652003-01-13 Andrew Cagney <ac131313@redhat.com>
10466
10467 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10468 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10469 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10470 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10471 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10472 * language.c, language.h, m32r-tdep.c: Update copyright.
10473 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10474 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10475 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10476 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10477 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10478 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10479
25caa7a8
EZ
104802003-01-13 Elena Zannoni <ezannoni@redhat.com>
10481
10482 * stabsread.h (process_later, resolve_cfront_continuation):
10483 Obsolete.
10484 Update copyright years.
10485 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10486 Update copyright year.
10487 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 10488 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
10489 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10490 Update copyright year.
10491 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10492 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10493 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10494 (parse_partial_symbols): Obsolete cfront support.
10495 * stabsread.c
10496 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10497 macros.
10498 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10499 read_cfront_baseclasses, read_cfront_member_functions,
10500 resolve_cfront_continuation,read_cfront_static_fields,
10501 copy_cfront_struct_fields): Obsolete functions.
10502 (define_symbol, read_one_struct_field): Obsolete cfront support.
10503 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10504 Update Copyright year.
10505
7789c6f5
EZ
105062003-01-13 Elena Zannoni <ezannoni@redhat.com>
10507
10508 * stack.c (print_frame_info, print_stack_frame_base_stub,
10509 print_stack_frame_base, show_and_print_stack_frame_stub,
10510 show_and_print_stack_frame, print_only_stack_frame_stub,
10511 print_only_stack_frame): Delete functions.
10512 (print_stack_frame_stub): Call print_frame_info instead of
10513 print_frame_info_base.
10514 (print_frame_info_base): Rename to print_frame_info.
10515 (backtrace_command_1): Call print_frame_info, instead of
10516 print_frame_info_base.
10517 (current_frame_command): Call print_stack_frame, instead of
10518 print_only_stack_frame.
10519 (frame_command): Call print_stack_frame, instead of
10520 show_and_print_stack_frame.
10521 (up_command): Ditto.
10522 (down_command): Ditto.
10523 * frame.h (print_only_stack_frame): Delete prototype.
10524 * infrun.c (normal_stop): Call print_stack_frame, instead of
10525 show_and_print_stack_frame.
10526 * thread.c (info_threads_command): Call print_stack_frame, instead
10527 of print_only_stack_frame.
10528
3f5a3016
AC
105292003-01-13 Andrew Cagney <ac131313@redhat.com>
10530
d99ba314
AC
10531 * README (Graphical interface to GDB): Update URL. Point at
10532 gdb/links/.
10533
3f5a3016
AC
10534 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10535 version match.
10536
083ae935
DJ
105372003-01-13 Daniel Jacobowitz <drow@mvista.com>
10538
10539 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10540 lines.
10541
5365276c
DJ
105422003-01-13 Daniel Jacobowitz <drow@mvista.com>
10543
10544 * thread-db.c (attach_thread): Prototype.
10545 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10546 thread information (ti), and valid flags (th_valid, ti_valid).
10547 (attach_thread): Move target_pid_to_str call to after the thread
10548 is added to GDB's list. Initialize the cache.
10549 (thread_get_info_callback, thread_db_map_id2thr)
10550 (thread_db_get_info): New functions.
10551 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10552 (thread_db_store_registers, thread_db_thread_alive)
10553 (thread_db_get_thread_local_address): Use them.
10554 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10555 of calling error() for threads in unknown state.
10556
10557 (clear_lwpid_callback): New function.
10558 (thread_db_resume): Use it to clear the cache.
10559
9fc30b6b
DJ
105602003-01-13 Daniel Jacobowitz <drow@mvista.com>
10561
10562 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10563 (resume_callback): Remove dead code.
10564
8f871025
AC
105652003-01-13 Andrew Cagney <ac131313@redhat.com>
10566
10567 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10568 predicate.
10569 * gdbarch.h, gdbarch.c: Regenerate.
10570 * stack.c (frame_info): Only initialize the saved registers when
10571 FRAME_INIT_SAVED_REGS_P.
10572 * frame.c (frame_saved_regs_register_unwind): Assert
10573 FRAME_INIT_SAVED_REGS_P.
10574 (deprecated_generic_get_saved_register): Ditto.
10575
3f565f1e
DJ
105762003-01-13 Daniel Jacobowitz <drow@mvista.com>
10577
10578 * source.c (openp): Squelch warning about "filename".
10579
072b1022
DJ
105802003-01-13 Daniel Jacobowitz <drow@mvista.com>
10581
10582 * source.c (openp): If the file does not exist don't necessarily
10583 search the path.
10584
973ccf8b
DJ
105852003-01-13 Daniel Jacobowitz <drow@mvista.com>
10586
10587 Fix PR gdb/872.
10588 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10589 (integer_types_same_name_p): New function.
10590 (rank_one_type): Use it.
10591 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10592
030292b7
DJ
105932003-01-13 Daniel Jacobowitz <drow@mvista.com>
10594
10595 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10596 variables.
10597 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10598 * configure.in: Add --with-sysroot.
10599 * configure: Regenerated.
10600 * main.c (gdb_sysroot): New variable.
10601 (captured_main): Initialize gdb_sysroot.
10602 * defs.h (gdb_sysroot): New extern declaration.
10603 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10604
afb5d334
MC
106052003-01-12 Michael Chastain <mec@shout.net>
10606
10607 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10608
751ceeb4
MC
106092003-01-12 Michael Chastain <mec@shout.net>
10610
10611 * top.c (print_gdb_version): Bump copyright year to 2003.
10612
94cd26f8
DC
106132003-01-12 David Carlton <carlton@bactrian.org>
10614
10615 * linespec.c (symtab_from_filename): Rename variable 's' to
10616 'file_symtab'.
10617
1ce79225
AC
106182003-01-12 Andrew Cagney <ac131313@redhat.com>
10619
10620 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10621 dummy frame.
10622 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10623
fa1fd571
AC
106242003-01-12 Andrew Cagney <ac131313@redhat.com>
10625
10626 * d10v-tdep.c: Include "gdb_assert.h".
10627 (d10v_store_return_value): Rewrite to match current interface.
10628 (d10v_extract_struct_value_address): Ditto.
10629 (d10v_extract_return_value): Ditto.
10630 (d10v_gdbarch_init): Set store_restore_value,
10631 extract_struct_value_address and extract_return_value.
10632
68b8d23e
JB
106332003-01-12 J. Brobecker <brobecker@gnat.com>
10634
10635 * hpread.c (set_namestring): New procedure replacing the
10636 SET_NAMESTRING macro.
10637 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10638 by calls to set_namestring.
10639
106402003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
10641
10642 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10643 a compilation warning.
10644 (hpread_process_one_debug_symbol): Likewise.
10645
88d262ca
DC
106462003-01-10 David Carlton <carlton@math.stanford.edu>
10647
10648 * linespec.c (decode_line_1): Rename variable 's' to
10649 'file_symtab'.
10650 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10651 (decode_dollar): Ditto.
10652 (decode_variable): Ditto.
10653 (symbol_found): Ditto.
10654
86669319
MC
106552003-01-09 Michael Chastain <mec@shout.net>
10656
10657 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10658
616a9dc4
CV
106592003-01-07 Corinna Vinschen <vinschen@redhat.com>
10660
10661 * win32-nat.c (set_process_privilege): New function.
10662 (child_attach): Call set_process_privilege() to enable the
10663 SE_DEBUG_NAME user privilege if available in process token.
10664
3269bcfa
JB
106652003-01-10 J. Brobecker <brobecker@gnat.com>
10666
10667 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10668 compilation error in the previous revision.
10669
2b0ee454
DC
106702003-01-09 David Carlton <carlton@math.stanford.edu>
10671
10672 * linespec.c: Update copyright.
10673
b3ba1b44
DJ
106742003-01-09 Daniel Jacobowitz <drow@mvista.com>
10675
10676 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10677 than inferior_ptid.
10678 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10679
4ef3f3be
AC
106802003-01-09 Andrew Cagney <ac131313@redhat.com>
10681
479ab5a0
AC
10682 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10683 Update comments.
10684 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10685 (frame_saved_regs_zalloc): Update.
10686 (frame_saved_regs_register_unwind): Update.
10687 (create_new_frame): Update.
10688 (get_prev_frame): Update.
10689 (frame_extra_info_zalloc): Update.
10690 (deprecated_get_frame_saved_regs): Update.
10691 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10692 * cris-tdep.c: Update comment.
10693
bde58177
AC
10694 * somsolib.h: Fix function indentation.
10695 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10696 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10697 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10698 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10699 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10700
4ef3f3be
AC
10701 * infrun.c (follow_fork): Use ISO C definition.
10702 * expprint.c (print_subexp): Use xfree instead of free.
10703 * charset.c: Include "gdb_string.h" instead of <string.h>.
10704 (register_iconv_charsets): Use ISO C definition.
10705 (host_charset, target_charset): Ditto.
10706 * Makefile.in (charset.o): Update dependencies.
10707 (mi-cmd-env.o): Update dependencies.
10708
1c615f7a
AC
107092003-01-08 Andrew Cagney <cagney@redhat.com>
10710
10711 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10712 get_frame_base.
10713
c9a1dc08
AC
107142003-01-08 Andrew Cagney <ac131313@redhat.com>
10715
10716 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10717 build directories. Save edited gdb output in Mbuild.log. If a
10718 build fails, remove any final GDB executable.
10719
dbad9d94
AC
107202003-01-08 Andrew Cagney <ac131313@redhat.com>
10721
10722 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10723 replacing hex constants with function names and stripping leading
10724 file name directory prefixes.
10725
8d357cca
AC
107262003-01-08 Andrew Cagney <cagney@redhat.com>
10727
10728 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10729 get_frame_base.
10730
bca02a8a
DC
107312003-01-08 David Carlton <carlton@math.stanford.edu>
10732
10733 * linespec.c (decode_line_1): Move code into decode_variable.
10734 (decode_variable): New function.
10735
7f8ab3a0
AC
107362003-01-08 Andrew Cagney <ac131313@redhat.com>
10737
10738 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10739
7b5849cc
AC
107402003-01-08 Andrew Cagney <cagney@redhat.com>
10741
10742 * cris-tdep.c (cris_frame_init_saved_regs): Use
10743 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10744 saved_regs buffer.
10745 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10746 (sh64_nofp_frame_init_saved_regs): Ditto.
10747 (sh_fp_frame_init_saved_regs): Ditto.
10748 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10749 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10750 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10751 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10752
72a5efb3
DJ
107532003-01-08 Daniel Jacobowitz <drow@mvista.com>
10754
10755 * minsyms.c (lookup_minimal_symbol): Update comment.
10756 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10757 (lookup_minimal_symbol_solib_trampoline): Likewise.
10758
11c02a10
AC
107592003-01-08 Andrew Cagney <cagney@redhat.com>
10760
aab3ea25
AC
10761 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10762 frame_relative_level.
10763
da50a4b7
AC
10764 * alpha-tdep.c: Use get_frame_extra_info.
10765 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10766 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10767 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10768 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10769
11c02a10
AC
10770 * alpha-tdep.c: Use get_next_frame.
10771 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10772 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10773 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10774 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10775 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10776 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10777 * xstormy16-tdep.c: Ditto.
8ffd9b1b 10778
1e2330ba
AC
107792003-01-07 Andrew Cagney <cagney@redhat.com>
10780
10781 * alpha-tdep.c: Use get_frame_base.
10782 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10783 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10784 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10785 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10786 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10787 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10788 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10789 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 10790
2d75187b
AC
107912003-01-07 Andrew Cagney <cagney@redhat.com>
10792
10793 * frame.c (deprecated_get_frame_context): New function.
10794 (deprecated_set_frame_context): New function.
10795 * frame.h (deprecated_get_frame_context): Declare.
10796 (deprecated_set_frame_context): Declare.
10797 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10798 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 10799
483d36b2
AC
108002003-01-07 Andrew Cagney <cagney@redhat.com>
10801
10802 * frame.c (deprecated_set_frame_next_hack): New function.
10803 (deprecated_set_frame_prev_hack): New function.
10804 * frame.h (deprecated_set_frame_next_hack): Declare.
10805 (deprecated_set_frame_prev_hack): Declare.
10806 * mcore-tdep.c (analyze_dummy_frame): Use
10807 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10808 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10809
14e91ac5
DC
108102003-01-07 David Carlton <carlton@math.stanford.edu>
10811
10812 * linespec.c (decode_line_1): Move code into decode_dollar.
10813 (decode_dollar): New function.
10814
b0c6b05c
AC
108152003-01-07 Andrew Cagney <cagney@redhat.com>
10816
10817 * arm-tdep.c (arm_init_extra_frame_info): Use
10818 deprecated_update_frame_base_hack.
10819 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10820 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10821 (fix_frame_pointer): Ditto.
10822 (mn10300_analyze_prologue): Ditto.
10823
a00a19e9
AC
108242003-01-07 Andrew Cagney <cagney@redhat.com>
10825
10826 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10827 extra_info using frame_extra_info_zalloc.
10828 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10829 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10830 (sh64_init_extra_frame_info): Ditto.
10831 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10832 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10833 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10834 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10835 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10836 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10837 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10838 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10839 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10840 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10841 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10842 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10843
10844 * mn10300-tdep.c (analyze_dummy_frame): Use
10845 deprecated_set_frame_extra_info_hack.
10846 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10847
1fb4c65b
JB
108482003-01-07 J. Brobecker <brobecker@gnat.com>
10849
10850 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10851 class is not scText. These do not define "real" procedures.
10852 (parse_partial_symbols): Likewise.
10853
9fe7d6bf
MS
108542003-01-06 Michael Snyder <msnyder@redhat.com>
10855
10856 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10857
f6c609c4
AC
108582003-01-06 Andrew Cagney <ac131313@redhat.com>
10859
10860 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10861 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10862 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10863 deprecated_frame_xmalloc_with_cleanup.
10864 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10865 deprecated_frame_xmalloc.
10866 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10867 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10868
d995ff4b
AC
108692003-01-06 Andrew Cagney <cagney@redhat.com>
10870
84dc46cb
AC
10871 * x86-64-linux-tdep.c: Include "osabi.h".
10872 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10873
d995ff4b
AC
10874 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10875
66140c26
AC
108762003-01-06 Andrew Cagney <cagney@redhat.com>
10877
10878 * MAINTAINERS (Target Instruction Set Architectures): Update
10879 arm-elf. Can be built with -Werror, has been multiarched.
10880
10881 * value.h (unpack_long): Make buffer parameter constant.
10882 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10883 * scm-lang.h (scm_parse): Ditto.
10884 * defs.h (extract_typed_address, extract_address): Ditto.
10885 (extract_long_unsigned_integer): Ditto.
10886 * inferior.h (unsigned_pointer_to_address): Ditto.
10887 (signed_pointer_to_address): Ditto.
10888 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10889 * gdbarch.h, gdbarch.c: Regenerate.
10890 * findvar.c (extract_long_unsigned_integer): Update.
10891 (extract_address): Update.
10892 (extract_typed_address): Update.
10893 (unsigned_pointer_to_address): Update.
10894 * values.c (unpack_long): Update.
10895 (unpack_double): Update.
10896 (unpack_pointer): Update.
10897 (unpack_field_as_long): Update.
10898 * d10v-tdep.c (d10v_pointer_to_address): Update.
10899 * avr-tdep.c (avr_pointer_to_address): Update.
10900 * scm-lang.c (scm_unpack): Update.
10901 * findvar.c (signed_pointer_to_address): Update.
10902
b089b3da
ML
109032003-01-06 Michal Ludvig <mludvig@suse.cz>
10904
8ffd9b1b 10905 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
10906 since it is in i386-tdep.c.
10907
aff87235
JB
109082003-01-06 J. Brobecker <brobecker@gnat.com>
10909
10910 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10911 failure introduced in the previous change.
10912
34f5e845
MC
109132003-01-05 Michael Chastain <mec@shout.net>
10914
10915 * README: Remove references to deleted remote-*.c files:
10916 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10917 remote-nrom.c, remote-os9k.c, remote-udi.c.
10918
28bcfd30
MK
109192003-01-05 Mark Kettenis <kettenis@gnu.org>
10920
10921 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10922 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10923 i386_get_longjmp_target.
10924
15a5b3ee
AC
109252003-01-05 Andrew Cagney <ac131313@redhat.com>
10926
10927 * arm-tdep.c (prologue_cache): Change to a pointer.
10928 (_initialize_arm_tdep): Allocate prologue_cache.
10929 (check_prologue_cache): Update.
10930 (save_prologue_cache): Update.
10931 (arm_gdbarch_init): Update.
10932
c263362b
DJ
109332003-01-04 Daniel Jacobowitz <drow@mvista.com>
10934
10935 * stabsread.c (update_method_name_from_physname): Call complaint()
10936 instead of error.
10937
51603483
DJ
109382003-01-04 Daniel Jacobowitz <drow@mvista.com>
10939
10940 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10941 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10942 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10943
10944 * blockframe.c: Include "gdbcmd.h" and "command.h".
10945 (backtrace_below_main): New variable.
10946 (file_frame_chain_valid, func_frame_chain_valid)
10947 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10948 (generic_func_frame_chain_valid): Remove functions.
10949 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10950 (_initialize_blockframe): New function.
10951 * Makefile.in (blockframe.o): Update dependencies.
10952 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10953 comment. Call frame_chain_valid ().
10954 * frame.h: Remove old prototypes. Add prototype for
10955 frame_chain_valid and update comments to match.
10956 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10957 Remove old comment.
10958 * gdbarch.h: Regenerated.
10959 * gdbarch.c: Regenerated.
10960
10961 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10962 set_gdbarch_frame_chain_valid.
10963 * avr-tdep.c (avr_gdbarch_init): Likewise.
10964 * cris-tdep.c (cris_gdbarch_init): Likewise.
10965 * frv-tdep.c (frv_gdbarch_init): Likewise.
10966 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10967 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10968 (i386_nw_init_abi): Likewise.
10969 (i386_gdbarch_init): Likewise.
10970 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10971 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10972 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10973 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10974 * mips-tdep.c (mips_gdbarch_init): Likewise.
10975 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10976 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10977 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10978 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10979 * s390-tdep.c (s390_gdbarch_init): Likewise.
10980 * sh-tdep.c (sh_gdbarch_init): Likewise.
10981 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10982 * v850-tdep.c (v850_gdbarch_init): Likewise.
10983 * vax-tdep.c (vax_gdbarch_init): Likewise.
10984 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10985
10986 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10987 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10988 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10989 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10990 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10991 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10992 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10993 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10994
b00a8037
DJ
109952002-01-04 Daniel Jacobowitz <drow@mvista.com>
10996
10997 * Makefile.in (acconfig_h): Remove incorrect macro.
10998 (config_h): Define.
10999 (osabi.o): Update dependencies.
11000 * configure.tgt: Set gdb_osabi based on target triplet.
11001 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11002 * configure: Regenerated.
11003 * config.in: Regenerated.
11004 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11005 (GDB_OSABI_DEFAULT): Define if not already defined.
11006 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11007 (set_osabi_string): New variables.
11008 (gdbarch_register_osabi): Add new OS ABI to
11009 gdb_osabi_available_names.
11010 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11011 (set_osabi, show_osabi): New functions.
11012 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11013
4be87837
DJ
110142003-01-04 Daniel Jacobowitz <drow@mvista.com>
11015
11016 * arch-utils.c (gdbarch_info_init): Set osabi to
11017 GDB_OSABI_UNINITIALIZED.
11018 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11019 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11020 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11021 * gdbarch.c: Regenerated.
11022 * gdbarch.h: Regenerated.
11023 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11024 there's no BFD.
11025 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11026 * osabi.h (enum gdb_osabi): Move to defs.h.
11027 (gdbarch_init_osabi): Update prototype.
11028 * defs.h (enum gdb_osabi): Moved here.
11029 * Makefile.in: Update dependencies.
11030
11031 * alpha-tdep.h: Don't include "osabi.h".
11032 (struct gdbarch_tdep): Remove osabi member.
11033 * alpha-tdep.c: Include "osabi.h".
11034 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11035 iterate over arches. Update call to gdbarch_init_osabi.
11036 (alpha_dump_tdep): Don't dump osabi.
11037 * alpha-linux-tdep.c: Include "osabi.h".
11038 * alpha-osf1-tdep.c: Include "osabi.h".
11039 * alphafbsd-tdep.c: Include "osabi.h".
11040 * alphanbsd-tdep.c: Include "osabi.h".
11041
11042 * arm-tdep.h: Don't include "osabi.h".
11043 (struct gdbarch_tdep): Remove osabi member.
11044 * arm-tdep.c: Include "osabi.h".
11045 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11046 iterate over arches. Update call to gdbarch_init_osabi.
11047 (arm_dump_tdep): Don't dump osabi.
11048 * arm-linux-tdep.c: Include "osabi.h".
11049 * armnbsd-tdep.c: Include "osabi.h".
11050
11051 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11052 Update call to gdbarch_init_osabi.
11053
11054 * i386-tdep.h: Don't include "osabi.h".
11055 (struct gdbarch_tdep): Remove osabi member.
11056 * i386-tdep.c: Include "osabi.h".
11057 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11058 iterate over arches. Update call to gdbarch_init_osabi.
11059 (i386_dump_tdep): Don't dump osabi.
11060 * i386-linux-tdep.c: Include "osabi.h".
11061 * i386-sol2-tdep.c: Include "osabi.h".
11062 * i386bsd-tdep.c: Include "osabi.h".
11063 * i386gnu-tdep.c: Include "osabi.h".
11064 * i386ly-tdep.c: Include "osabi.h".
11065 * i386nbsd-tdep.c: Include "osabi.h".
11066 * i386obsd-tdep.c: Include "osabi.h".
11067
11068 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11069 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11070 check osabi when iterating over arches. Update call to
11071 gdbarch_init_osabi.
11072 (mips_dump_tdep): Don't dump osabi.
11073
11074 * ns32k-tdep.h: Don't include "osabi.h".
11075 (struct gdbarch_tdep): Remove.
11076 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11077 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11078 allocate tdep. Update call to gdbarch_init_osabi.
11079 (ns32k_dump_tdep): Remove.
11080 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11081 * ns32knbsd-tdep.c: Include "osabi.h".
11082
11083 * ppc-tdep.h: Don't include "osabi.h".
11084 (struct gdbarch_tdep): Remove osabi member.
11085 * rs6000-tdep.c: Include "osabi.h".
11086 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11087 osabi when iterating over arches. Update call to
11088 gdbarch_init_osabi.
11089 (rs6000_dump_tdep): Don't dump osabi.
11090 * ppc-linux-tdep.c: Include "osabi.h".
11091 * ppcnbsd-tdep.c: Include "osabi.h".
11092
11093 * sh-tdep.h: Don't include "osabi.h".
11094 (struct gdbarch_tdep): Remove osabi member.
11095 * sh-tdep.c: Include "osabi.h".
11096 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11097 iterate over arches. Update call to gdbarch_init_osabi.
11098 (sh_dump_tdep): Don't dump osabi.
11099 * shnbsd-tdep.c: Include "osabi.h".
11100
11101 * sparc-tdep.c: Include "osabi.h".
11102 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11103 iterate over arches. Update call to gdbarch_init_osabi.
11104 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11105 tdep structure.
11106
11107 * vax-tdep.h: Don't include "osabi.h".
11108 (struct gdbarch_tdep): Remove.
11109 * vax-tdep.c: Include "osabi.h".
11110 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11111 iterate over arches. Don't allocate tdep. Update call
11112 to gdbarch_init_osabi.
11113 (vax_dump_tdep): Remove.
11114 (_initialize_vax_tdep): Update call to gdbarch_register.
11115
a881cf8e
DJ
111162003-01-04 Daniel Jacobowitz <drow@mvista.com>
11117
11118 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11119 entirely.
11120 (breakpoint_re_set_one): Don't fetch the value for a disabled
11121 watchpoint.
11122
1e698235
DJ
111232003-01-04 Daniel Jacobowitz <drow@mvista.com>
11124
11125 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11126 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11127 (COERCE_FLOAT_TO_DOUBLE): Remove.
11128 * gdbarch.c: Regenerate.
11129 * gdbarch.h: Regenerate.
11130 * Makefile.in: Remove value_h from gdbarch_h.
11131 * valops.c (coerce_float_to_double): New variable.
11132 (default_coerce_float_to_double): Remove.
11133 (standard_coerce_float_to_double): Remove.
11134 (value_arg_coerce): Use coerce_float_to_double.
11135 (_initialize_valops): Add "set coerce-float-to-double".
11136 * value.h (default_coerce_float_to_double): Remove prototype.
11137 (standard_coerce_float_to_double): Remove prototype.
11138
11139 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11140 prototyped.
11141 * mdebugread.c (parse_symbol): Likewise.
11142 * stabsread.c (define_symbol): Mark all functions as prototyped.
11143
11144 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11145 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11146 set_gdbarch_coerce_float_to_double.
11147 * arm-tdep.c (arm_gdbarch_init): Likewise.
11148 * frv-tdep.c (frv_gdbarch_init): Likewise.
11149 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11150 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11151 * mips-tdep.c (mips_gdbarch_init): Likewise.
11152 (mips_coerce_float_to_double): Remove.
11153 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11154 (rs6000_coerce_float_to_double): Remove.
11155 * s390-tdep.c (s390_gdbarch_init): Likewise.
11156 * sh-tdep.c (sh_gdbarch_init): Likewise.
11157 (sh_coerce_float_to_double): Remove.
11158 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11159 (sparc_coerce_float_to_double): Remove.
11160 * v850-tdep.c (v850_gdbarch_init): Likewise.
11161 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11162 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11163 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11164 (hppa_coerce_float_to_double): Remove prototype.
11165 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11166
f436a26a
DJ
111672003-01-04 Daniel Jacobowitz <drow@mvista.com>
11168
11169 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11170
248f8055
DJ
111712003-01-04 Daniel Jacobowitz <drow@mvista.com>
11172
11173 Suggested by Stewart Brown <sb24@avaya.com>:
11174 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11175 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11176 (c_type_print_varspec_suffix): Likewise.
11177
72cfdc76
MK
111782003-01-04 Mark Kettenis <kettenis@gnu.org>
11179
bfd260bb
MK
11180 * configure.in: Don't set and AC_SUBST SUBDIRS.
11181 * configure: Regenerated.
11182
72cfdc76
MK
11183 * configure.in: Remove code dealing with shared libraries.
11184 * Makefile.in: Remove HLDFLAGS and HLDENV.
11185 * configure: Regenerated.
11186
c8b8a898
AC
111872003-01-04 Andrew Cagney <ac131313@redhat.com>
11188
11189 * frame.c (deprecated_frame_xmalloc): New function.
11190 (deprecated_set_frame_saved_regs_hack): New function.
11191 (deprecated_set_frame_extra_info_hack): New function.
11192 * frame.h (deprecated_frame_xmalloc): Declare.
11193 (deprecated_set_frame_saved_regs_hack): Declare.
11194 (deprecated_set_frame_extra_info_hack): Declare.
11195
14abd0fb
MK
111962003-01-04 Mark Kettenis <kettenis@gnu.org>
11197
8ee53726
MK
11198 * configure.in: Move code that provides the --enable-gdbtk option
11199 right after the code that handles the --enable-tui option, and
11200 polish it somewhat.
11201 * configure: Regenerated.
11202
14abd0fb
MK
11203 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11204 AC_CHECK_FUNCS and remove the old check for pread64.
11205 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11206 * acconfig.h (_GNU_SOURCE): Add.
11207 (HAVE_PREAD64): Remove.
11208 * configure, aclocal.m4, config.in: Regenerated.
11209
b2fb4676
AC
112102003-01-03 Andrew Cagney <ac131313@redhat.com>
11211
11212 * alpha-tdep.c: Use get_frame_saved_regs.
11213 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11214 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11215 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11216 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11217 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11218
8dcde887
MK
112192003-01-03 Mark Kettenis <kettenis@gnu.org>
11220
11221 * configure.in: Remove all use of the SUBDIRS variable; add
11222 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11223 code providing the --enable-multi-ice option, and move it right in
11224 front of the code that checks whether gdbserver is supported.
11225 Polish that too.
11226 * configure: Regenerated.
11227 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11228 @SUBDIRS@.
11229
8ccd593b
AC
112302003-01-03 Andrew Cagney <cagney@redhat.com>
11231
11232 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11233 * avr-tdep.c, cris-tdep.c: Ditto.
11234 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11235 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 11236
91151a06
MK
112372003-01-03 Mark Kettenis <kettenis@gnu.org>
11238
11239 * configure.in: Remove --enable-netrom option.
11240 * configure: Regenerated.
11241
8fe84d01
MK
112422003-01-03 Mark Kettenis <kettenis@gnu.org>
11243
11244 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11245 declaration for `struct re_pattern_buffer' instead.
11246 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11247
f0394be6
JB
112482003-01-03 J. Brobecker <brobecker@gnat.com>
11249
11250 * mdebugread.c (parse_symbol): Count until the stEnd matching
11251 the structure name.
11252
27e9bf90
MK
112532003-01-02 Mark Kettenis <kettenis@gnu.org>
11254
93d331ba
MK
11255 * configure.in: Remove --with-cpu option.
11256 subscripts. Remove evil changequotes here.
11257 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11258 * config.in, configure: Regenerated.
8ffd9b1b 11259
27e9bf90
MK
11260 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11261 * configure.in: Cleanup section that sources GDB and BFD configure
11262 subscripts. Remove evil changequotes here.
11263 * config.in, configure: Regenerated.
11264
50abf9e5
AC
112652003-01-02 Andrew Cagney <ac131313@redhat.com>
11266
11267 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11268 frame accessor methods.
11269 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11270 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11271 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11272 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11273 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11274 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11275 * z8k-tdep.c: Ditto.
8ffd9b1b 11276
287c1a40
MK
112772003-01-02 Mark Kettenis <kettenis@gnu.org>
11278
f5dbc56d
MK
11279 * configure.in: Remove UI_OUT configuration code.
11280 * ada-lang.c: Update assuming UI_OUT is always true.
11281 * Makefile.in (UIOUT_CFLAGS): Remove.
11282 * configure: Regenerated.
11283 * TODO: Remove blurb about elimination of -DUI_OUT.
11284
627af7ea
MK
11285 * configure.in: Move code that provides the --enable-gdbcli,
11286 --enable-gdbmi options right before the code that handles the
11287 --enable-tui option. Polish a bit.
11288 * configure: Regenerated.
11289
06825bd1
MK
11290 * configure.in: Rewrite check for GNU regex and the
11291 --without-included regex option, and move it into the "Checks for
11292 library functions" section. This makes us use the system regex
11293 again by default on systems with version 2 of the GNU C library.
11294 This was apparently broken.
11295 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11296 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11297 * config.in, configure: Regenerated.
11298
287c1a40
MK
11299 * configure.in: Move code that provides the --enable-tui option
11300 before the "Checks for libraries" section. Polish the code
11301 somewhat and set need_curses to yes if we build the TUI. Rewrite
11302 code that looks for a library providing termcap functionality to
11303 match more closely what's done in the Readline library, and move
11304 it into to the "Checks for libraries" section.
11305 * configure: Regenerated.
11306 * Makefile.in (TERMCAP): Remove variable.
11307 * config/i386/go32.mh (TERMCAP): Remove variable.
11308
684e56bf
AC
113092003-01-02 Andrew Cagney <ac131313@redhat.com>
11310
11311 * MAINTAINERS: Mention gdb_mbuild.sh.
11312 * gdb_mbuild.sh: Rewrite.
11313
e1ea1d75
MK
113142003-01-02 Mark Kettenis <kettenis@gnu.org>
11315
11316 * configure.in: Fix typo in last change.
11317 * config.in, configure: Regenerated.
11318
1b831c93
AC
113192003-01-02 Andrew Cagney <ac131313@redhat.com>
11320
11321 * valarith.c (value_binop): Delete obsolete code and comments.
11322 * configure.host: Ditto.
11323 * buildsym.h (make_blockvector): Ditto.
11324 * buildsym.c (make_blockvector): Ditto.
11325 * defs.h (enum language): Ditto.
11326 (chill_demangle): Ditto.
11327 * elfread.c (elf_symtab_read): Ditto.
11328 * dwarfread.c (CHILL_PRODUCER): Ditto.
11329 (set_cu_language): Ditto.
11330 (handle_producer): Ditto.
11331 * expprint.c (print_subexp): Ditto.
11332 * gdbtypes.c (chill_varying_type): Ditto.
11333 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11334 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11335 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11336 (chill_varying_type): Ditto.
11337 * language.h (_LANG_chill): Ditto.
11338 * language.c (binop_result_type, integral_type): Ditto.
11339 (character_type, string_type, structured_type): Ditto.
11340 (lang_bool_type, binop_type_check): Ditto.
11341 * stabsread.h (os9k_stabs): Ditto.
11342 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11343 (define_symbol, read_type, read_struct_fields): Ditto.
11344 (read_array_type, read_enum_type, read_huge_number): Ditto.
11345 (read_range_type, start_stabs): Ditto.
11346 * symfile.c (init_filename_language_table): Ditto.
11347 (add_psymbol_with_dem_name_to_list): Ditto.
11348 * symtab.c (symbol_init_language_specific): Ditto.
11349 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11350 * symtab.h (struct general_symbol_info): Ditto.
11351 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11352 * typeprint.c (typedef_print): Ditto.
11353 * utils.c (fprintf_symbol_filtered): Ditto.
11354 * valops.c (value_cast, search_struct_field, value_slice): Delete
11355 obsolete code.
11356 (varying_to_slice): Delete function.
11357 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11358 (varying_to_slice): Delete declaration.
11359 * MAINTAINERS: Update.
11360
8bb2c122
MK
113612003-01-02 Mark Kettenis <kettenis@gnu.org>
11362
97bf5e38
MK
11363 * configure.in: Reorganize "Checks for library functions section"
11364 a bit. Remove check for `btowc' and `isascii' functions.
11365 * configure: Regenerated.
11366
5ee754fc
MK
11367 * acconfig.h (_MSE_INT_H): Remove.
11368 * configure.in: Create "Checks for header files" section, and move
11369 appropriate tests there. Don't check for objlist.h, wchar.h,
11370 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11371 misdetection fix. Also add "Checks for types", "Checks for
11372 compiler characteristics" and "Checks for library functions"
11373 sections.
11374 * config.in, configure: Regenerated.
11375
8bb2c122
MK
11376 * configure.in: Create "Checks for programs" section, and move
11377 appropriate tests there.
11378
9a156167
MK
113792003-01-01 Mark Kettenis <kettenis@gnu.org>
11380
11381 * configure.in: Create "Checks for libraries" section, and move
11382 appropriate tests there. Cleanup check for wctype in libw. Use
11383 AC_SEARCH_LIBS to see whether we need libsocket.
11384 * configure: Regenerated.
11385
a80e2bcb 11386For older changes see ChangeLog-2002
c906108c
SS
11387\f
11388Local Variables:
11389mode: change-log
11390left-margin: 8
11391fill-column: 74
11392version-control: never
11393End:
This page took 1.065083 seconds and 4 git commands to generate.